id
stringlengths
23
26
text
stringlengths
20
1.37k
format
stringclasses
2 values
messages
listlengths
2
4
⌀
family
stringclasses
1 value
sub
stringclasses
3 values
variant
stringclasses
1 value
variant_of
stringclasses
0 values
generator
stringclasses
1 value
sources
listlengths
0
0
source_ids
listlengths
0
0
n_tokens_alea
int64
8
494
meta
stringlengths
47
170
nlprog_det-setting-0070026
A 5 × 14 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up? 70 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "70", "printed": "70", "notation": null}
nlprog_det-setting-0070027
On which weekday does February 15, 2019 fall? Here's the code. ```python from datetime import date hearing = date(2019, 2, 15) # datetime.date(2019, 2, 15) print(hearing.strftime("%A")) ``` Output: Friday February 15, 2019 is a Friday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "Friday", "printed": "Friday", "notation": null}
nlprog_det-setting-0070028
A lawyer's fee is 33% of a $40,000 recovery. How large is the fee? Python version: ```python recovery = 40000 rate = 33 / 100 # 0.33 fee = recovery * rate # 13200.0 print(f"{fee:.2f}") ``` # printed: 13200.00 The lawyer's fee comes to $13,200.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "13200.00", "printed": "13200.00", "notation": null}
nlprog_det-setting-0070029
<|start|><|user|> From 2014 to 2047, how many years is that?<|eot|> <|assistant|> That is 33 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From 2014 to 2047, how many years is that?" }, { "role": "assistant", "content": "That is 33 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "33", "printed": "33", "notation": null}
nlprog_det-setting-0070030
How many of 112 votes make 67% (round up)? Here is the program. ```python import math voters = 112 needed = math.ceil(voters * 67 / 100) # 76 print(needed) ``` Shell output: 76 At least 76 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "76", "printed": "76", "notation": null}
nlprog_det-setting-0070031
<|start|><|system|> You can call tools. Available tools: {"name": "compute", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> <|user|> Sales went from 1,0...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"compute\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required...
nlprog_det
setting
original
null
deterministic
[]
[]
208
{"gold": "-25", "printed": "-25", "notation": null}
nlprog_det-setting-0070032
6 walks at 400 calories each burn how many calories in total? 2400 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "2400", "printed": "2400", "notation": null}
nlprog_det-setting-0070033
A trial runs from April 8, 2026 to April 23, 2026, counting both days. How many calendar days is that? 16 calendar days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0070034
What does $1,000 grow to in 4 years at 5% annual compounding? We can compute it in Python. ```python principal = 1000 rate = 5 / 100 # 0.05 years = 4 value = principal * (1 + rate) ** years # 1215.5062500000001 print(f"{value:.2f}") ``` Run it and it prints 1215.51. The balance is $1,215.51.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "1215.51", "printed": "1215.51", "notation": null}
nlprog_det-setting-0070035
<|start|><|user|> A lease runs for 6 months at $2,100 per month. How much rent is paid over the whole term?<|eot|> <|assistant|> ```python monthly_rent = 2100 months = 6 total = monthly_rent * months # 12600 print(total) ``` Output — 12600 The rent over the term is $12,600.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lease runs for 6 months at $2,100 per month. How much rent is paid over the whole term?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 2100\nmonths = 6\ntotal = monthly_rent * months # 12600\nprint(total)\n```\nOutput — 12600\n\nThe rent over th...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "12600", "printed": "12600", "notation": null}
nlprog_det-setting-0070036
<|start|><|user|> A lawyer's fee is 30% of a $12,000 recovery. How large is the fee?<|eot|> <|assistant|> recovery = 12000 rate = 30 / 100 # 0.3 fee = recovery * rate # 3600.0 print(f"{fee:.2f}") That prints 3600.00. The fee is $3,600.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lawyer's fee is 30% of a $12,000 recovery. How large is the fee?" }, { "role": "assistant", "content": " recovery = 12000\n rate = 30 / 100 # 0.3\n fee = recovery * rate # 3600.0\n print(f\"{fee:.2f}\")\nThat prints 3600.00.\n\nThe fee is $3,600.00."...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "3600.00", "printed": "3600.00", "notation": null}
nlprog_det-setting-0070037
A 24 lb package ships at $10 base plus $0.75/lb. What is the charge? Written as code: ```python base = 10 per_pound = 0.75 weight = 24 cost = base + per_pound * weight # 28.0 print(f"{cost:.2f}") ``` This prints 28.00, as expected. Shipping costs $28.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "28.00", "printed": "28.00", "notation": null}
nlprog_det-setting-0070038
151 volunteers are split into 4 equal teams. How many are on each team, and how many are left over? The answer: 37 each, 3 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "37 each, 3 left over", "printed": "37 each, 3 left over", "notation": null}
nlprog_det-setting-0070039
Rent of $2,200 goes up 8%. What is the new rent? Computing it: ```python rent = 2200 increase = 8 / 100 # 0.08 new_rent = rent * (1 + increase) # 2376.0 print(f"{new_rent:.2f}") ``` Executing it gives 2376.00, as expected. The new rent is $2,376.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "2376.00", "printed": "2376.00", "notation": null}
nlprog_det-setting-0070040
A trial runs from March 3, 2023 to March 16, 2023, counting both days. How many calendar days is that? As Python: ```python from datetime import date first = date(2023, 3, 3) # datetime.date(2023, 3, 3) last = date(2023, 3, 16) # datetime.date(2023, 3, 16) days = (last - first).days + 1 # 14 print(days) ``` Program...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0070041
<|start|><|system|> Tool definitions: [{"name": "python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> Convert 1 h 28 min (...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require...
nlprog_det
setting
original
null
deterministic
[]
[]
204
{"gold": "88", "printed": "88", "notation": null}
nlprog_det-setting-0070042
<|start|><|user|> With 20 rows of 10 chairs and 17 empty chairs, how many chairs are taken?<|eot|> <|assistant|> ```python rows = 20 per_row = 10 empty = 17 seated = rows * per_row - empty # 183 print(seated) ``` Running it prints 183, as expected. 183 people are seated.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 20 rows of 10 chairs and 17 empty chairs, how many chairs are taken?" }, { "role": "assistant", "content": "```python\nrows = 20\nper_row = 10\nempty = 17\nseated = rows * per_row - empty # 183\nprint(seated)\n```\nRunning it prints 183, as expected.\n\n183 pe...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "183", "printed": "183", "notation": null}
nlprog_det-setting-0070043
A 13 × 10 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up? Here is a short program for it. ```python import math length = 13 width = 10 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 33 print(tiles) ``` It prints 33, as expected. 33 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "33", "printed": "33", "notation": null}
nlprog_det-setting-0070044
<|start|><|user|> Divide 32 items among 8 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|> <|assistant|> ```python total = 32 groups = 8 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Executing it gives: 4 each, 0 left ov...
chat
[ { "role": "user", "content": "Divide 32 items among 8 groups as evenly as possible with equal groups. How many per group, and how many remain?" }, { "role": "assistant", "content": "```python\ntotal = 32\ngroups = 8\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remai...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "4 each, 0 left over", "printed": "4 each, 0 left over", "notation": null}
nlprog_det-setting-0070045
<|start|><|user|> Dara's scores were 59, 99, 74, 68, 69 and 93. What is the average score?<|eot|> <|assistant|> ```python scores = [59, 99, 74, 68, 69, 93] average = sum(scores) // len(scores) # 77 print(average) ``` (Printed result: 77) The average score is 77.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Dara's scores were 59, 99, 74, 68, 69 and 93. What is the average score?" }, { "role": "assistant", "content": "```python\nscores = [59, 99, 74, 68, 69, 93]\naverage = sum(scores) // len(scores) # 77\nprint(average)\n```\n(Printed result: 77)\n\nThe average score i...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0070046
<|start|><|user|> At $0.70 per mile, what is the reimbursement for 373 miles?<|eot|> <|assistant|> The reimbursement is $261.10.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $0.70 per mile, what is the reimbursement for 373 miles?" }, { "role": "assistant", "content": "The reimbursement is $261.10." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "261.10", "printed": "261.10", "notation": null}
nlprog_det-setting-0070047
Papers were served by mail on June 1, 2028. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date? The Python version: ```python from datetime import date, timedelta served = date(2028, 6, 1) # datetime.date(2028, 6, 1) response_days = 21 mail_days = 3 due = served + timedelta(d...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
186
{"gold": "2028-06-25", "printed": "2028-06-25", "notation": null}
nlprog_det-setting-0070048
<|start|><|user|> A settlement of $522 is split equally among 6 parties. How much does each party receive?<|eot|> <|assistant|> ```python settlement = 522 parties = 6 share = settlement // parties # 87 print(share) ``` Running it prints 87. Each party receives $87.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A settlement of $522 is split equally among 6 parties. How much does each party receive?" }, { "role": "assistant", "content": "```python\nsettlement = 522\nparties = 6\nshare = settlement // parties # 87\nprint(share)\n```\nRunning it prints 87.\n\nEach party rece...
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "87", "printed": "87", "notation": null}
nlprog_det-setting-0070049
A meal costs $89.97. How much is a 18% tip? Python does the arithmetic: ```python bill = 89.97 tip_rate = 18 / 100 # 0.18 tip = bill * tip_rate # 16.194599999999998 print(f"{tip:.2f}") ``` The script prints: 16.19 Leave $16.19.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "16.19", "printed": "16.19", "notation": null}
nlprog_det-setting-0070050
<|start|><|system|> Tool definitions: {"name": "compute", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> A library charges $0.15 per book per d...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"compute\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program\"]}}...
nlprog_det
setting
original
null
deterministic
[]
[]
220
{"gold": "9.00", "printed": "9.00", "notation": null}
nlprog_det-setting-0070051
Equipment costs $12,000, has a salvage value of $0, and a useful life of 10 years. What is the straight-line depreciation per year? $1,200.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "1200.00", "printed": "1200.00", "notation": null}
nlprog_det-setting-0070053
Someone works 16 hours at $29.91 per hour. What are the earnings? The pay is $478.56.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "478.56", "printed": "478.56", "notation": null}
nlprog_det-setting-0070054
<|start|><|user|> 4 claimants share a $84,000 settlement equally. What is each share?<|eot|> <|assistant|> Each share is $21,000.<|eot|> <|end|>
chat
[ { "role": "user", "content": "4 claimants share a $84,000 settlement equally. What is each share?" }, { "role": "assistant", "content": "Each share is $21,000." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "21000", "printed": "21000", "notation": null}
nlprog_det-setting-0070055
With 20 rows of 19 chairs and 11 empty chairs, how many chairs are taken? ```python rows = 20 per_row = 19 empty = 11 seated = rows * per_row - empty print(seated) ``` Execution prints 369. 369 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "369", "printed": "369", "notation": null}
nlprog_det-setting-0070056
<|start|><|user|> 4 clients win $48,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> ```python award = 48000 fee = award * 40 / 100 # 19200.0 remaining = award - fee # 28800.0 per_client = remaining / 4 # 7200.0 print(f"{per_client:.2f}") ``` stdout = 7200...
chat
[ { "role": "user", "content": "4 clients win $48,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": "```python\naward = 48000\nfee = award * 40 / 100 # 19200.0\nremaining = award - fee # 28800.0\nper_client = remaining ...
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "7200.00", "printed": "7200.00", "notation": null}
nlprog_det-setting-0070057
Abel's scores were 52, 92 and 57. What is the average score? One way, in code: scores = [52, 92, 57] average = sum(scores) // len(scores) # 67 print(average) Out: 67 The mean is 67.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "67", "printed": "67", "notation": null}
nlprog_det-setting-0070059
<|start|><|user|> Split $2,043 between Paula and Jonas in the ratio 1 to 2. What is Paula's share?<|eot|> <|assistant|> ```python total = 2043 parts_a = 1 parts_b = 2 share_a = total * parts_a // (parts_a + parts_b) # 681 print(share_a) ``` Out = 681 Paula gets $681.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Split $2,043 between Paula and Jonas in the ratio 1 to 2. What is Paula's share?" }, { "role": "assistant", "content": "```python\ntotal = 2043\nparts_a = 1\nparts_b = 2\nshare_a = total * parts_a // (parts_a + parts_b) # 681\nprint(share_a)\n```\nOut = 681\n\nPaul...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "681", "printed": "681", "notation": null}
nlprog_det-setting-0070060
A claim accrued on March 14, 2024. The limitations period is 3 years. On what date does it expire? Here is a short program for it. ```python from datetime import date accrued = date(2024, 3, 14) # datetime.date(2024, 3, 14) years = 3 expires = accrued.replace(year=accrued.year + years) # datetime.date(2027, 3, 14) p...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "2027-03-14", "printed": "2027-03-14", "notation": null}
nlprog_det-setting-0070061
<|start|><|user|> Ada buys 8 boxes of 6 labels each and gives away 6 labels. How many labels are left?<|eot|> <|assistant|> 42 labels are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Ada buys 8 boxes of 6 labels each and gives away 6 labels. How many labels are left?" }, { "role": "assistant", "content": "42 labels are left." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "42", "printed": "42", "notation": null}
nlprog_det-setting-0070062
What does $2,000 grow to in 2 years at 2% annual compounding? Computation in Python: principal = 2000 rate = 2 / 100 # 0.02 years = 2 value = principal * (1 + rate) ** years # 2080.8 print(f"{value:.2f}") Output: 2080.80 It is worth $2,080.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "2080.80", "printed": "2080.80", "notation": null}
nlprog_det-setting-0070063
<|start|><|user|> An invoice lists 38 water bottles at $9 each, plus 6% sales tax. What is the invoice total?<|eot|> <|assistant|> ```python quantity = 38 unit_price = 9 subtotal = quantity * unit_price # 342 total = subtotal * (1 + 6 / 100) # 362.52000000000004 print(f"{total:.2f}") ``` Running this gives: 362.52 T...
chat
[ { "role": "user", "content": "An invoice lists 38 water bottles at $9 each, plus 6% sales tax. What is the invoice total?" }, { "role": "assistant", "content": "```python\nquantity = 38\nunit_price = 9\nsubtotal = quantity * unit_price # 342\ntotal = subtotal * (1 + 6 / 100) # 362.520000000000...
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "362.52", "printed": "362.52", "notation": null}
nlprog_det-setting-0070065
<|start|><|system|> Answer the user's question directly.<|eot|> <|user|> Count 30 days forward from August 9, 2027. What date is that?<|eot|> <|assistant|> It ends on September 8, 2027.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer the user's question directly." }, { "role": "user", "content": "Count 30 days forward from August 9, 2027. What date is that?" }, { "role": "assistant", "content": "It ends on September 8, 2027." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "2027-09-08", "printed": "2027-09-08", "notation": null}
nlprog_det-setting-0070066
<|start|><|user|> A 900-page report must be reviewed in 18 days. How many pages a day is that, evenly?<|eot|> <|assistant|> pages = 900 days = 18 per_day = pages // days # 50 print(per_day) Executing it gives 50, as expected. 50 pages a day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 900-page report must be reviewed in 18 days. How many pages a day is that, evenly?" }, { "role": "assistant", "content": " pages = 900\n days = 18\n per_day = pages // days # 50\n print(per_day)\nExecuting it gives 50, as expected.\n\n50 pages a day."...
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0070067
<|start|><|system|> You are a data assistant.<|eot|> <|user|> Papers were served by mail on May 18, 2019. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date?<|eot|> <|assistant|> The response is due on June 18, 2019.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a data assistant." }, { "role": "user", "content": "Papers were served by mail on May 18, 2019. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date?" }, { "role": "assistant", "content": "The response is...
nlprog_det
setting
original
null
deterministic
[]
[]
62
{"gold": "2019-06-18", "printed": "2019-06-18", "notation": null}
nlprog_det-setting-0070068
Convert -10 °C to Fahrenheit. Python: ```python celsius = -10 fahrenheit = celsius * 9 / 5 + 32 # 14.0 print(round(fahrenheit)) ``` (Printed: 14) That is 14 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0070069
Sami buys 12 boxes of 24 badges each and gives away 7 badges. How many badges are left? Let's compute it with Python. ```python boxes = 12 per_box = 24 given_away = 7 left = boxes * per_box - given_away # 281 print(left) ``` Result: 281 That leaves 281 badges.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "281", "printed": "281", "notation": null}
nlprog_det-setting-0070070
Equal monthly payments repay $2,400 plus 6% simple yearly interest over 36 months. How large is a payment? Programmatically: ```python principal = 2400 annual_rate = 6 / 100 months = 36 interest = principal * annual_rate * months / 12 payment = (principal + interest) / months print(f"{payment:.2f}") ``` Interpreter ou...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "78.67", "printed": "78.67", "notation": null}
nlprog_det-setting-0070072
Divide 283 items among 5 groups as evenly as possible with equal groups. How many per group, and how many remain? Python code: total = 283 groups = 5 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") Run output: 56 each, 3 left over The answer: 56 each, 3 l...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "56 each, 3 left over", "printed": "56 each, 3 left over", "notation": null}
nlprog_det-setting-0070073
<|start|><|user|> Monthly rent is $900. A tenant moves in with 21 days left in a 30-day month. What is the prorated rent?<|eot|> <|assistant|> ```python rent = 900 days_in_month = 30 days_occupied = 21 prorated = rent * days_occupied / days_in_month # 630.0 print(f"{prorated:.2f}") ``` The run gives 630.00. The tenan...
chat
[ { "role": "user", "content": "Monthly rent is $900. A tenant moves in with 21 days left in a 30-day month. What is the prorated rent?" }, { "role": "assistant", "content": "```python\nrent = 900\ndays_in_month = 30\ndays_occupied = 21\nprorated = rent * days_occupied / days_in_month # 630.0\npr...
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "630.00", "printed": "630.00", "notation": null}
nlprog_det-setting-0070074
<|start|><|user|> A car travels 98 miles in 2 hours. What is its average speed in miles per hour?<|eot|> <|assistant|> The average speed is 49 mph.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A car travels 98 miles in 2 hours. What is its average speed in miles per hour?" }, { "role": "assistant", "content": "The average speed is 49 mph." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "49", "printed": "49", "notation": null}
nlprog_det-setting-0070075
Each of Oskar's walks burns 350 calories. How many calories over 7 walks? Python version: ```python per_session = 350 sessions = 7 total = per_session * sessions # 2450 print(total) ``` Execution result — 2450 That burns 2450 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "2450", "printed": "2450", "notation": null}
nlprog_det-setting-0070076
A class starts at 12:10 PM and lasts 90 minutes. When does it end? Let the code do the arithmetic: ```python start = 12 * 60 + 10 end = start + 90 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` (Out: 1:40 PM) The class finishes at 1:40 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "1:40 PM", "printed": "1:40 PM", "notation": null}
nlprog_det-setting-0070077
10 boxes hold 12 keyboards each. After 2 are handed out, how many are left? In code: ```python boxes = 10 per_box = 12 given_away = 2 left = boxes * per_box - given_away # 118 print(left) ``` Run result — 118 That leaves 118 keyboards.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "118", "printed": "118", "notation": null}
nlprog_det-setting-0070078
After a 40% fee is taken from a $60,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share? Program: award = 60000 fee = award * 40 / 100 # 24000.0 remaining = award - fee # 36000.0 per_client = remaining / 3 # 12000.0 print(f"{per_client:.2f}") When run, it print...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "12000.00", "printed": "12000.00", "notation": null}
nlprog_det-setting-0070080
Idris has 3 documents to file, and each filing costs $50. How much are the filing fees in total? In code: ```python fee = 50 filings = 3 total = fee * filings # 150 print(total) ``` When run, it prints: 150 The total fee is $150.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0070082
<|start|><|system|> You have access to these functions: [{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "interpreter", "description": "Eval...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", ...
nlprog_det
setting
original
null
deterministic
[]
[]
422
{"gold": "1337.50", "printed": "1337.50", "notation": null}
nlprog_det-setting-0070083
<|start|><|user|> Attendance was 75 out of 100. Express it as a percent.<|eot|> <|assistant|> 75.0% attended.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Attendance was 75 out of 100. Express it as a percent." }, { "role": "assistant", "content": "75.0% attended." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "75.0", "printed": "75.0", "notation": null}
nlprog_det-setting-0070084
A 15 × 4 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up? We can compute it in Python. ```python import math length = 15 width = 4 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 60 print(tiles) ``` It prints 60. 60 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0070085
<|start|><|user|> At $25.18 an hour, what does 24 hours of work pay?<|eot|> <|assistant|> rate = 25.18 hours = 24 earnings = rate * hours # 604.3199999999999 print(f"{earnings:.2f}") # stdout: 604.32 The pay is $604.32.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $25.18 an hour, what does 24 hours of work pay?" }, { "role": "assistant", "content": " rate = 25.18\n hours = 24\n earnings = rate * hours # 604.3199999999999\n print(f\"{earnings:.2f}\")\n# stdout: 604.32\n\nThe pay is $604.32." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "604.32", "printed": "604.32", "notation": null}
nlprog_det-setting-0070086
<|start|><|user|> How many weekdays (Monday to Friday) fall after March 26, 2023 up to and including May 5, 2023?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2023, 3, 26) end = date(2023, 5, 5) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).w...
chat
[ { "role": "user", "content": "How many weekdays (Monday to Friday) fall after March 26, 2023 up to and including May 5, 2023?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2023, 3, 26)\nend = date(2023, 5, 5)\ncount = 0\nfor k in range(1, (e...
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0070087
Convert 4 h 20 min (the length of a workshop) to minutes. Python version: ```python hours = 4 minutes = 20 total_minutes = hours * 60 + minutes # 260 print(total_minutes) ``` The interpreter prints: 260 The workshop lasted 260 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "260", "printed": "260", "notation": null}
nlprog_det-setting-0070089
<|start|><|user|> Under a 30% contingency agreement, what fee is owed on a $12,000 award?<|eot|> <|assistant|> ```python recovery = 12000 rate = 30 / 100 fee = recovery * rate print(f"{fee:.2f}") ``` Running it prints: 3600.00 The lawyer's fee comes to $3,600.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Under a 30% contingency agreement, what fee is owed on a $12,000 award?" }, { "role": "assistant", "content": "```python\nrecovery = 12000\nrate = 30 / 100\nfee = recovery * rate\nprint(f\"{fee:.2f}\")\n```\nRunning it prints: 3600.00\n\nThe lawyer's fee comes to $3...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "3600.00", "printed": "3600.00", "notation": null}
nlprog_det-setting-0070090
How many minutes pass from 9:54 AM to 12:57 PM on the same day? Translated to Python: ```python start = 9 * 60 + 54 # 594 end = 12 * 60 + 57 # 777 print(end - start) ``` The run gives: 183 183 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "183", "printed": "183", "notation": null}
nlprog_det-setting-0070091
<|start|><|user|> After an initial $0, the remainder of a $48,000 grant is paid in 3 equal parts. What is each part?<|eot|> <|assistant|> $16,000.00 per installment.<|eot|> <|end|>
chat
[ { "role": "user", "content": "After an initial $0, the remainder of a $48,000 grant is paid in 3 equal parts. What is each part?" }, { "role": "assistant", "content": "$16,000.00 per installment." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "16000.00", "printed": "16000.00", "notation": null}
nlprog_det-setting-0070092
<|start|><|user|> Jonas was born on December 4, 1974. How old is Jonas on September 15, 2021?<|eot|> <|assistant|> ```python from datetime import date born = date(1974, 12, 4) # datetime.date(1974, 12, 4) on = date(2021, 9, 15) # datetime.date(2021, 9, 15) age = on.year - born.year - ((on.month, on.day) < (born.month...
chat
[ { "role": "user", "content": "Jonas was born on December 4, 1974. How old is Jonas on September 15, 2021?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1974, 12, 4) # datetime.date(1974, 12, 4)\non = date(2021, 9, 15) # datetime.date(2021, 9, 15)\nage...
nlprog_det
setting
original
null
deterministic
[]
[]
157
{"gold": "46", "printed": "46", "notation": null}
nlprog_det-setting-0070093
<|start|><|user|> Equipment costs $12,000, has a salvage value of $6,000, and a useful life of 3 years. What is the straight-line depreciation per year?<|eot|> <|assistant|> ```python cost = 12000 salvage = 6000 years = 3 per_year = (cost - salvage) / years # 2000.0 print(f"{per_year:.2f}") ``` Printed: 2000.00 Depre...
chat
[ { "role": "user", "content": "Equipment costs $12,000, has a salvage value of $6,000, and a useful life of 3 years. What is the straight-line depreciation per year?" }, { "role": "assistant", "content": "```python\ncost = 12000\nsalvage = 6000\nyears = 3\nper_year = (cost - salvage) / years # 2...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0070094
<|start|><|user|> Walls total 1282 sq ft and each can covers 250 sq ft. How many cans should be bought?<|eot|> <|assistant|> ```python import math area = 1282 coverage = 250 cans = math.ceil(area / coverage) # 6 print(cans) ``` Run it and it prints 6. 6 cans are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Walls total 1282 sq ft and each can covers 250 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "```python\nimport math\narea = 1282\ncoverage = 250\ncans = math.ceil(area / coverage) # 6\nprint(cans)\n```\nRun it and it prints 6.\n\n6 c...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0070095
<|start|><|user|> A meeting lasted 2 hours and 13 minutes. How many minutes is that?<|eot|> <|assistant|> The meeting lasted 133 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A meeting lasted 2 hours and 13 minutes. How many minutes is that?" }, { "role": "assistant", "content": "The meeting lasted 133 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "133", "printed": "133", "notation": null}
nlprog_det-setting-0070097
<|start|><|user|> A bicycle helmet costs $40. It is 30% off. What is the sale price?<|eot|> <|assistant|> price = 40 discount = 30 / 100 # 0.3 sale_price = price * (1 - discount) # 28.0 print(f"{sale_price:.2f}") Program output: 28.00 It costs $28.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A bicycle helmet costs $40. It is 30% off. What is the sale price?" }, { "role": "assistant", "content": " price = 40\n discount = 30 / 100 # 0.3\n sale_price = price * (1 - discount) # 28.0\n print(f\"{sale_price:.2f}\")\nProgram output: 28.00\n\nIt c...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "28.00", "printed": "28.00", "notation": null}
nlprog_det-setting-0070098
The landlord deducts $120, $75 and $75 from a $1,000 deposit. What is returned to the tenant? Let the code do the arithmetic: deposit = 1000 deductions = [120, 75, 75] refund = deposit - sum(deductions) # 730 print(refund) The interpreter prints: 730 $730 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "730", "printed": "730", "notation": null}
nlprog_det-setting-0070099
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "math_engine", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "search_...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"math_engine\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source co...
nlprog_det
setting
original
null
deterministic
[]
[]
295
{"gold": "400", "printed": "400", "notation": null}
nlprog_det-setting-0070101
A bicycle helmet costs $45. It is 10% off. What is the sale price? Coded up: ```python price = 45 discount = 10 / 100 # 0.1 sale_price = price * (1 - discount) # 40.5 print(f"{sale_price:.2f}") ``` Python prints: 40.50 The sale price is $40.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "40.50", "printed": "40.50", "notation": null}
nlprog_det-setting-0070102
At $23.63 an hour, what does 12 hours of work pay? As a program: ```python rate = 23.63 hours = 12 earnings = rate * hours # 283.56 print(f"{earnings:.2f}") ``` The run gives: 283.56 That earns $283.56.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "283.56", "printed": "283.56", "notation": null}
nlprog_det-setting-0070103
<|start|><|user|> A recipe for 2 people uses 200 grams of lentils. How many grams are needed for 8 people?<|eot|> <|assistant|> 800 grams of lentils are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A recipe for 2 people uses 200 grams of lentils. How many grams are needed for 8 people?" }, { "role": "assistant", "content": "800 grams of lentils are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "800", "printed": "800", "notation": null}
nlprog_det-setting-0070104
A board has 49 members. A majority is more than half. How many votes make a majority? Let the code do the arithmetic: ```python members = 49 majority = members // 2 + 1 # 25 print(majority) ``` (Printed result: 25) That is 25 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0070105
Express 287 hours in days and hours. The program: ```python hours = 287 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Result: 11 days and 23 hours 287 hours is 11 days and 23 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "11 days and 23 hours", "printed": "11 days and 23 hours", "notation": null}
nlprog_det-setting-0070106
<|start|><|user|> Starting with 1091 pens and using 18 per day, how many remain after 12 days?<|eot|> <|assistant|> ```python stock = 1091 per_day = 18 days = 12 left = stock - per_day * days # 875 print(left) ``` # program output: 875 875 remain.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting with 1091 pens and using 18 per day, how many remain after 12 days?" }, { "role": "assistant", "content": "```python\nstock = 1091\nper_day = 18\ndays = 12\nleft = stock - per_day * days # 875\nprint(left)\n```\n# program output: 875\n\n875 remain." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "875", "printed": "875", "notation": null}
nlprog_det-setting-0070107
<|start|><|user|> A measure needs at least 67% of 158 votes. How many votes is that, rounded up?<|eot|> <|assistant|> ```python import math voters = 158 needed = math.ceil(voters * 67 / 100) # 106 print(needed) ``` What it prints — 106 106 votes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A measure needs at least 67% of 158 votes. How many votes is that, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 158\nneeded = math.ceil(voters * 67 / 100) # 106\nprint(needed)\n```\nWhat it prints — 106\n\n106 votes are needed...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "106", "printed": "106", "notation": null}
nlprog_det-setting-0070108
<|start|><|system|> You are a math tutor.<|eot|> <|user|> Jonas and Amir share $2,868 in the ratio 1:3. How much does Jonas get?<|eot|> <|assistant|> ```python total = 2868 parts_a = 1 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) print(share_a) ``` This prints 717, as expected. Jonas's share is $717.<|...
chat
[ { "role": "system", "content": "You are a math tutor." }, { "role": "user", "content": "Jonas and Amir share $2,868 in the ratio 1:3. How much does Jonas get?" }, { "role": "assistant", "content": "```python\ntotal = 2868\nparts_a = 1\nparts_b = 3\nshare_a = total * parts_a // (parts...
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "717", "printed": "717", "notation": null}
nlprog_det-setting-0070109
<|start|><|user|> An attorney bills 2.5 hours at $250 per hour. What is the bill?<|eot|> <|assistant|> The bill is $625.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An attorney bills 2.5 hours at $250 per hour. What is the bill?" }, { "role": "assistant", "content": "The bill is $625.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "625.00", "printed": "625.00", "notation": null}
nlprog_det-setting-0070110
A 13 × 4 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up? Program: ```python import math length = 13 width = 4 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 52 print(tiles) ``` Printed — 52 It takes 52 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "52", "printed": "52", "notation": null}
nlprog_det-setting-0070111
Straight-line depreciation: cost $12,000, salvage $6,000, 8 years. How much per year? Python version: ```python cost = 12000 salvage = 6000 years = 8 per_year = (cost - salvage) / years # 750.0 print(f"{per_year:.2f}") ``` The script prints 750.00. Depreciation is $750.00 per year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "750.00", "printed": "750.00", "notation": null}
nlprog_det-setting-0070112
4 friends split a $84 bill plus a 18% tip evenly. How much does each pay? Let the code do the arithmetic: ```python bill = 84 tip_rate = 18 / 100 # 0.18 people = 4 each = bill * (1 + tip_rate) / people # 24.779999999999998 print(f"{each:.2f}") ``` On running, it outputs 24.78. The share is $24.78 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "24.78", "printed": "24.78", "notation": null}
nlprog_det-setting-0070113
A 19 × 5 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up? Let's compute it with Python. ```python import math length = 19 width = 5 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 24 print(tiles) ``` Running it prints 24, as expected. It takes 24 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0070114
Which is cheaper per unit: 10 for $14.99 (A) or 18 for $23.94 (B)? The program: ```python pack_a = 14.99 / 10 # 1.499 pack_b = 23.94 / 18 # 1.33 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` Shell output: B B has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0070115
A penalty of $100 a day accrues, capped at $1,000. What is owed after 18 days? Computation in Python: per_day = 100 days = 18 cap = 1000 fine = min(per_day * days, cap) print(fine) Shell output: 1000 $1,000 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0070116
<|start|><|user|> A 6 × 15 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?<|eot|> <|assistant|> import math length = 6 width = 15 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 23 print(tiles) # stdout: 23 23 tiles are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 6 × 15 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?" }, { "role": "assistant", "content": " import math\n length = 6\n width = 15\n tile = 2\n tiles = math.ceil(length * width / (tile * tile)) # 23\n print(tiles)\n# st...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0070117
Olga buys 10 boxes of 6 labels each and gives away 15 labels. How many labels are left? Written as code: ```python boxes = 10 per_box = 6 given_away = 15 left = boxes * per_box - given_away print(left) ``` Program output: 45 That leaves 45 labels.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "45", "printed": "45", "notation": null}
nlprog_det-setting-0070118
<|start|><|system|> Answer in plain English.<|eot|> <|user|> After a 30% fee is taken from a $96,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|> <|assistant|> Each share is $22,400.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer in plain English." }, { "role": "user", "content": "After a 30% fee is taken from a $96,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?" }, { "role": "assistant", "content": "Each share is $22,400.00." }...
nlprog_det
setting
original
null
deterministic
[]
[]
59
{"gold": "22400.00", "printed": "22400.00", "notation": null}
nlprog_det-setting-0070119
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}} {"name": "run_python", "description": "Run Python code in a sandbox; th...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}\n{\"name\": \"run_py...
nlprog_det
setting
original
null
deterministic
[]
[]
321
{"gold": "64", "printed": "64", "notation": null}
nlprog_det-setting-0070121
Jamal lends $12,000 at 2% simple interest per year for 6 years. How much interest is earned? As Python: ```python principal = 12000 rate = 2 / 100 # 0.02 years = 6 interest = principal * rate * years # 1440.0 print(f"{interest:.2f}") ``` Execution prints: 1440.00 The interest is $1,440.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "1440.00", "printed": "1440.00", "notation": null}
nlprog_det-setting-0070122
Convert 5 h 52 min (the length of a training session) to minutes. A short script: ```python hours = 5 minutes = 52 total_minutes = hours * 60 + minutes # 352 print(total_minutes) ``` Printed result — 352 That is 352 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "352", "printed": "352", "notation": null}
nlprog_det-setting-0070123
The paralegal logged 12 hours at a rate of $225. How much is billed? Python version: ```python hours = 12 rate = 225 bill = hours * rate # 2700 print(f"{bill:.2f}") ``` Running it prints 2700.00, as expected. The bill is $2,700.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "2700.00", "printed": "2700.00", "notation": null}
nlprog_det-setting-0070124
If a 4-year limitations period starts on June 28, 2024, when does it end? Program: ```python from datetime import date accrued = date(2024, 6, 28) # datetime.date(2024, 6, 28) years = 4 expires = accrued.replace(year=accrued.year + years) # datetime.date(2028, 6, 28) print(expires.isoformat()) ``` Printed = 2028-06-...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "2028-06-28", "printed": "2028-06-28", "notation": null}
nlprog_det-setting-0070126
After an initial $0, the remainder of a $48,000 grant is paid in 12 equal parts. What is each part? As Python: ```python grant = 48000 up_front = 0 installments = 12 each = (grant - up_front) / installments # 4000.0 print(f"{each:.2f}") ``` # console output: 4000.00 Each installment is $4,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "4000.00", "printed": "4000.00", "notation": null}
nlprog_det-setting-0070127
How many whole days and leftover hours are in 188 hours? As a program: ```python hours = 188 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` It prints: 7 days and 20 hours That is 7 days and 20 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "7 days and 20 hours", "printed": "7 days and 20 hours", "notation": null}
nlprog_det-setting-0070128
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> How much is a $59 daily meal allowance over 4 days?<|eot|> <|assistant|> ```python days = 4 meal_rate = 59 total = days * meal_rate # 236 print(total) ``` When run, it prints 236, as expected. That comes to $236.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "role": "user", "content": "How much is a $59 daily meal allowance over 4 days?" }, { "role": "assistant", "content": "```python\ndays = 4\nmeal_rate = 59\ntotal = days * meal_rate # 236\nprint(total)\n```\nWhen ru...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "236", "printed": "236", "notation": null}
nlprog_det-setting-0070129
On which weekday does November 20, 2026 fall? Script: ```python from datetime import date hearing = date(2026, 11, 20) # datetime.date(2026, 11, 20) print(hearing.strftime("%A")) ``` Running it prints Friday. It is a Friday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "Friday", "printed": "Friday", "notation": null}
nlprog_det-setting-0070130
<|start|><|user|> A 22 lb package ships at $10 base plus $2.00/lb. What is the charge?<|eot|> <|assistant|> ```python base = 10 per_pound = 2.0 weight = 22 cost = base + per_pound * weight # 54.0 print(f"{cost:.2f}") ``` Out: 54.00 Shipping costs $54.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 22 lb package ships at $10 base plus $2.00/lb. What is the charge?" }, { "role": "assistant", "content": "```python\nbase = 10\nper_pound = 2.0\nweight = 22\ncost = base + per_pound * weight # 54.0\nprint(f\"{cost:.2f}\")\n```\nOut: 54.00\n\nShipping costs $54.00...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "54.00", "printed": "54.00", "notation": null}
nlprog_det-setting-0070131
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> What is the total rent on a 18-month lease at $850 a month?<|eot|> <|assistant|> ```python monthly_rent = 850 months = 18 total = monthly_rent * months # 15300 print(total) ``` It outputs: 15300 In total, $15,300 is paid.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "What is the total rent on a 18-month lease at $850 a month?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 850\nmonths = 18\ntotal = monthly_rent * months # 15300\np...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "15300", "printed": "15300", "notation": null}
nlprog_det-setting-0070132
How many of 45 members form a majority (more than half)? Program: ```python members = 45 majority = members // 2 + 1 # 23 print(majority) ``` The interpreter prints 23. 23 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0070133
Each of Yara's walks burns 200 calories. How many calories over 6 walks? Let the code do the arithmetic: ```python per_session = 200 sessions = 6 total = per_session * sessions # 1200 print(total) ``` (Printed: 1200) 1200 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0070135
Papers were served by mail on July 4, 2022. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date? Here's the code. ```python from datetime import date, timedelta served = date(2022, 7, 4) # datetime.date(2022, 7, 4) response_days = 21 mail_days = 3 due = served + timedelta(days...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
175
{"gold": "2022-07-28", "printed": "2022-07-28", "notation": null}
nlprog_det-setting-0070136
Fines run at $250 per day up to a maximum of $2,500. How much after 56 days? Let the code do the arithmetic: ```python per_day = 250 days = 56 cap = 2500 fine = min(per_day * days, cap) # 2500 print(fine) ``` # execution result: 2500 The fine is $2,500.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0070137
<|start|><|user|> At an exchange rate of 1.08 USD per EUR, how many USD is 4,110 EUR?<|eot|> <|assistant|> ```python amount = 4110 rate = 1.08 converted = amount * rate # 4438.8 print(f"{converted:.2f}") ``` Result — 4438.80 It converts to 4,438.80 USD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At an exchange rate of 1.08 USD per EUR, how many USD is 4,110 EUR?" }, { "role": "assistant", "content": "```python\namount = 4110\nrate = 1.08\nconverted = amount * rate # 4438.8\nprint(f\"{converted:.2f}\")\n```\nResult — 4438.80\n\nIt converts to 4,438.80 USD."...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "4438.80", "printed": "4438.80", "notation": null}