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-0084166
<|start|><|user|> A $1,200 loan carries 6% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|> <|assistant|> ```python principal = 1200 annual_rate = 6 / 100 # 0.06 months = 24 interest = principal * annual_rate * months / 12 # 144.0 payment...
chat
[ { "role": "user", "content": "A $1,200 loan carries 6% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?" }, { "role": "assistant", "content": "```python\nprincipal = 1200\nannual_rate = 6 / 100 # 0.06\nmonths = 24\ninteres...
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "56.00", "printed": "56.00", "notation": null}
nlprog_det-setting-0084167
A 21 lb package ships at $10 base plus $2.00/lb. What is the charge? Translated to Python: ```python base = 10 per_pound = 2.0 weight = 21 cost = base + per_pound * weight # 52.0 print(f"{cost:.2f}") ``` Printed result: 52.00 Shipping costs $52.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "52.00", "printed": "52.00", "notation": null}
nlprog_det-setting-0084168
<|start|><|user|> An office budget of $12,000 has expenses of $3,650, $1,939, $3,082, $323. How much of the budget is left?<|eot|> <|assistant|> ```python budget = 12000 expenses = [3650, 1939, 3082, 323] left = budget - sum(expenses) # 3006 print(left) ``` The interpreter prints 3006. $3,006 is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An office budget of $12,000 has expenses of $3,650, $1,939, $3,082, $323. How much of the budget is left?" }, { "role": "assistant", "content": "```python\nbudget = 12000\nexpenses = [3650, 1939, 3082, 323]\nleft = budget - sum(expenses) # 3006\nprint(left)\n```\nT...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "3006", "printed": "3006", "notation": null}
nlprog_det-setting-0084169
<|start|><|user|> 3 claimants share a $1,200 settlement equally. What is each share?<|eot|> <|assistant|> ```python settlement = 1200 parties = 3 share = settlement // parties # 400 print(share) ``` (Printed result: 400) Each share is $400.<|eot|> <|end|>
chat
[ { "role": "user", "content": "3 claimants share a $1,200 settlement equally. What is each share?" }, { "role": "assistant", "content": "```python\nsettlement = 1200\nparties = 3\nshare = settlement // parties # 400\nprint(share)\n```\n(Printed result: 400)\n\nEach share is $400." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "400", "printed": "400", "notation": null}
nlprog_det-setting-0084170
<|start|><|system|> Tools you may use: [{"name": "compute", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> A lawyer's fee is 40...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"compute\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"...
nlprog_det
setting
original
null
deterministic
[]
[]
210
{"gold": "36000.00", "printed": "36000.00", "notation": null}
nlprog_det-setting-0084171
How many units at $40 each (variable cost $35) cover $2,500 of fixed costs? Set it up in Python: ```python import math fixed = 2500 price = 40 variable = 35 units = math.ceil(fixed / (price - variable)) print(units) ``` Result: 500 Break-even is 500 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "500", "printed": "500", "notation": null}
nlprog_det-setting-0084172
What does $1,000 grow to in 5 years at 5% annual compounding? One way, in code: ```python principal = 1000 rate = 5 / 100 # 0.05 years = 5 value = principal * (1 + rate) ** years # 1276.2815625000003 print(f"{value:.2f}") ``` Running this gives 1276.28. It is worth $1,276.28.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "1276.28", "printed": "1276.28", "notation": null}
nlprog_det-setting-0084173
What is -10 degrees Celsius in Fahrenheit? As Python: ```python celsius = -10 fahrenheit = celsius * 9 / 5 + 32 # 14.0 print(round(fahrenheit)) ``` That prints 14. That is 14 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0084174
<|start|><|user|> A trial runs from October 22, 2020 to October 30, 2020, counting both days. How many calendar days is that?<|eot|> <|assistant|> ```python from datetime import date first = date(2020, 10, 22) # datetime.date(2020, 10, 22) last = date(2020, 10, 30) # datetime.date(2020, 10, 30) days = (last - first)....
chat
[ { "role": "user", "content": "A trial runs from October 22, 2020 to October 30, 2020, counting both days. How many calendar days is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2020, 10, 22) # datetime.date(2020, 10, 22)\nlast = date(2020, 10, ...
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0084175
<|start|><|system|> Keep answers short and correct.<|eot|> <|user|> At an exchange rate of 1.08 USD per GBP, how many USD is 1,999 GBP?<|eot|> <|assistant|> amount = 1999 rate = 1.08 converted = amount * rate # 2158.92 print(f"{converted:.2f}") (Execution result: 2158.92) It converts to 2,158.92 USD.<...
chat
[ { "role": "system", "content": "Keep answers short and correct." }, { "role": "user", "content": "At an exchange rate of 1.08 USD per GBP, how many USD is 1,999 GBP?" }, { "role": "assistant", "content": " amount = 1999\n rate = 1.08\n converted = amount * rate # 2158.92\n ...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "2158.92", "printed": "2158.92", "notation": null}
nlprog_det-setting-0084176
Starting with 570 lanyards and using 28 per day, how many remain after 14 days? We write it as a program: ```python stock = 570 per_day = 28 days = 14 left = stock - per_day * days print(left) ``` Execution prints 178. 178 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "178", "printed": "178", "notation": null}
nlprog_det-setting-0084177
How many meters are in 39.2 kilometers? Let's compute it with Python. ```python km = 39.2 meters = km * 1000 # 39200.0 print(round(meters)) ``` This prints 39200. That is 39,200 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "39200", "printed": "39200", "notation": null}
nlprog_det-setting-0084178
Equal monthly payments repay $1,200 plus 5% simple yearly interest over 12 months. How large is a payment? Each payment is $105.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "105.00", "printed": "105.00", "notation": null}
nlprog_det-setting-0084180
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> Express 81 hours in days and hours.<|eot|> <|assistant|> ```python hours = 81 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` This prints 3 days and 9 hours, as expected. That is 3 days and 9 hours.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "role": "user", "content": "Express 81 hours in days and hours." }, { "role": "assistant", "content": "```python\nhours = 81\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nThis print...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "3 days and 9 hours", "printed": "3 days and 9 hours", "notation": null}
nlprog_det-setting-0084181
From a $7,500 retainer, 10 hours at $250/hour have been drawn. What remains? Python, step by step: ```python retainer = 7500 hours = 10 rate = 250 left = retainer - hours * rate # 5000 print(left) ``` Run output — 5000 The remaining balance is $5,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "5000", "printed": "5000", "notation": null}
nlprog_det-setting-0084182
The rules require 2/3 of 50 members (round up) to be present. How many is that? A Python solution: import math members = 50 quorum = math.ceil(members * 2 / 3) # 34 print(quorum) Executing it gives 34, as expected. 34 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "34", "printed": "34", "notation": null}
nlprog_det-setting-0084183
Equipment costs $24,000, has a salvage value of $2,000, and a useful life of 6 years. What is the straight-line depreciation per year? Let's compute it with Python. ```python cost = 24000 salvage = 2000 years = 6 per_year = (cost - salvage) / years # 3666.6666666666665 print(f"{per_year:.2f}") ``` Running it prints: ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "3666.67", "printed": "3666.67", "notation": null}
nlprog_det-setting-0084184
<|start|><|user|> Printing costs 10 cents a page. What does it cost to print 60 copies of a 44-page handout?<|eot|> <|assistant|> ```python pages = 44 copies = 60 cost_per_page = 0.1 cost = pages * copies * cost_per_page # 264.0 print(f"{cost:.2f}") ``` Printed = 264.00 The job costs $264.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Printing costs 10 cents a page. What does it cost to print 60 copies of a 44-page handout?" }, { "role": "assistant", "content": "```python\npages = 44\ncopies = 60\ncost_per_page = 0.1\ncost = pages * copies * cost_per_page # 264.0\nprint(f\"{cost:.2f}\")\n```\nPr...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "264.00", "printed": "264.00", "notation": null}
nlprog_det-setting-0084185
Count 60 days forward from October 4, 2026. What date is that? We write it as a program: ```python from datetime import date, timedelta start = date(2026, 10, 4) # datetime.date(2026, 10, 4) end = start + timedelta(days=60) # datetime.date(2026, 12, 3) print(end.isoformat()) ``` The program outputs: 2026-12-03 The ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "2026-12-03", "printed": "2026-12-03", "notation": null}
nlprog_det-setting-0084186
<|start|><|user|> Buying 6 desk lamps at $10 each, 4 labels at $5 each, someone hands over $100. What change comes back?<|eot|> <|assistant|> The change is $20.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Buying 6 desk lamps at $10 each, 4 labels at $5 each, someone hands over $100. What change comes back?" }, { "role": "assistant", "content": "The change is $20." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0084187
A 250-mile drive at a steady 50 mph takes how many minutes? Programmatically: ```python distance = 250 speed = 50 minutes = distance / speed * 60 # 300.0 print(round(minutes)) ``` Result: 300 300 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0084188
An office budget of $12,000 has expenses of $1,284, $644, $3,681. How much of the budget is left? A Python solution: ```python budget = 12000 expenses = [1284, 644, 3681] left = budget - sum(expenses) print(left) ``` The interpreter prints 6391. The remaining budget is $6,391.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "6391", "printed": "6391", "notation": null}
nlprog_det-setting-0084189
<|start|><|user|> A car travels 192 miles in 3 hours. What is its average speed in miles per hour?<|eot|> <|assistant|> ```python distance = 192 hours = 3 speed = distance / hours # 64.0 print(round(speed)) ``` Printed: 64 It averages 64 miles per hour.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A car travels 192 miles in 3 hours. What is its average speed in miles per hour?" }, { "role": "assistant", "content": "```python\ndistance = 192\nhours = 3\nspeed = distance / hours # 64.0\nprint(round(speed))\n```\nPrinted: 64\n\nIt averages 64 miles per hour." ...
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "64", "printed": "64", "notation": null}
nlprog_det-setting-0084191
<|start|><|user|> Omar earns a 8% commission on $103,240 of sales. What is the commission?<|eot|> <|assistant|> ```python sales = 103240 rate = 8 / 100 # 0.08 commission = sales * rate # 8259.2 print(f"{commission:.2f}") ``` Execution prints: 8259.20 Omar earns $8,259.20.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Omar earns a 8% commission on $103,240 of sales. What is the commission?" }, { "role": "assistant", "content": "```python\nsales = 103240\nrate = 8 / 100 # 0.08\ncommission = sales * rate # 8259.2\nprint(f\"{commission:.2f}\")\n```\nExecution prints: 8259.20\n\nOm...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "8259.20", "printed": "8259.20", "notation": null}
nlprog_det-setting-0084193
Someone works 30 hours at $27.95 per hour. What are the earnings? Coded up: ```python rate = 27.95 hours = 30 earnings = rate * hours # 838.5 print(f"{earnings:.2f}") ``` The program prints 838.50, as expected. The pay is $838.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "838.50", "printed": "838.50", "notation": null}
nlprog_det-setting-0084194
A shift runs from 8:33 AM to 1:09 PM. How long is it in minutes? Translated to Python: ```python start = 8 * 60 + 33 # 513 end = 13 * 60 + 9 # 789 print(end - start) ``` What it prints — 276 276 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "276", "printed": "276", "notation": null}
nlprog_det-setting-0084195
To read 864 pages in 16 days, how many pages per day are needed? Script: ```python pages = 864 days = 16 per_day = pages // days # 54 print(per_day) ``` The interpreter prints: 54 That is 54 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "54", "printed": "54", "notation": null}
nlprog_det-setting-0084196
A trial runs from May 28, 2027 to June 18, 2027, counting both days. How many calendar days is that? That is 22 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0084197
<|start|><|system|> You can call tools. Available tools: [{"name": "run_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> The la...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"run_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}...
nlprog_det
setting
original
null
deterministic
[]
[]
224
{"gold": "1850", "printed": "1850", "notation": null}
nlprog_det-setting-0084199
At $20.87 an hour, what does 30 hours of work pay? Computing it: rate = 20.87 hours = 30 earnings = rate * hours # 626.1 print(f"{earnings:.2f}") Interpreter output: 626.10 The pay is $626.10.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "626.10", "printed": "626.10", "notation": null}
nlprog_det-setting-0084200
<|start|><|user|> 45 of 80 members attended. What percent attended?<|eot|> <|assistant|> ```python present = 45 total = 80 percent = present / total * 100 # 56.25 print(round(percent, 1)) ``` Out: 56.2 Attendance was 56.2%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "45 of 80 members attended. What percent attended?" }, { "role": "assistant", "content": "```python\npresent = 45\ntotal = 80\npercent = present / total * 100 # 56.25\nprint(round(percent, 1))\n```\nOut:\n56.2\n\nAttendance was 56.2%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "56.2", "printed": "56.2", "notation": null}
nlprog_det-setting-0084201
$1,000 is invested at 5% compounded yearly. What is it worth after 2 years? Written as code: ```python principal = 1000 rate = 5 / 100 # 0.05 years = 2 value = principal * (1 + rate) ** years # 1102.5 print(f"{value:.2f}") ``` Run it and it prints: 1102.50 It is worth $1,102.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "1102.50", "printed": "1102.50", "notation": null}
nlprog_det-setting-0084202
Monthly rent is $1,200. A tenant moves in with 8 days left in a 30-day month. What is the prorated rent? Let's compute it with Python. ```python rent = 1200 days_in_month = 30 days_occupied = 8 prorated = rent * days_occupied / days_in_month # 320.0 print(f"{prorated:.2f}") ``` This prints: 320.00 The tenant owes $3...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "320.00", "printed": "320.00", "notation": null}
nlprog_det-setting-0084204
How many days are there from December 11, 2026 to August 12, 2027? Code: ```python from datetime import date first = date(2026, 12, 11) # datetime.date(2026, 12, 11) second = date(2027, 8, 12) # datetime.date(2027, 8, 12) print((second - first).days) ``` It prints 244. It is 244 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "244", "printed": "244", "notation": null}
nlprog_det-setting-0084205
<|start|><|system|> You are a study helper for students.<|eot|> <|user|> A $9,000 loan carries 10% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|> <|assistant|> principal = 9000 annual_rate = 10 / 100 # 0.1 months = 24 int...
chat
[ { "role": "system", "content": "You are a study helper for students." }, { "role": "user", "content": "A $9,000 loan carries 10% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?" }, { "role": "assistant", "conte...
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "450.00", "printed": "450.00", "notation": null}
nlprog_det-setting-0084206
The statute was enacted in 1990. How many years had passed by 2003? Python does the arithmetic: ```python start_year = 1990 end_year = 2003 print(end_year - start_year) ``` It prints 13. That is 13 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0084207
<|start|><|user|> 5 bike rides at 150 calories each burn how many calories in total?<|eot|> <|assistant|> per_session = 150 sessions = 5 total = per_session * sessions print(total) (stdout: 750) That burns 750 calories.<|eot|> <|end|>
chat
[ { "role": "user", "content": "5 bike rides at 150 calories each burn how many calories in total?" }, { "role": "assistant", "content": " per_session = 150\n sessions = 5\n total = per_session * sessions\n print(total)\n(stdout: 750)\n\nThat burns 750 calories." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0084208
<|start|><|system|> Keep explanations short.<|eot|> <|user|> Emeka and Delia share $2,513 in the ratio 2:5. How much does Emeka get?<|eot|> <|assistant|> total = 2513 parts_a = 2 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 718 print(share_a) It prints 718, as expected. Emeka get...
chat
[ { "role": "system", "content": "Keep explanations short." }, { "role": "user", "content": "Emeka and Delia share $2,513 in the ratio 2:5. How much does Emeka get?" }, { "role": "assistant", "content": " total = 2513\n parts_a = 2\n parts_b = 5\n share_a = total * parts_a ...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "718", "printed": "718", "notation": null}
nlprog_det-setting-0084209
Equipment costs $18,000, has a salvage value of $3,000, and a useful life of 3 years. What is the straight-line depreciation per year? Depreciation is $5,000.00 per year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
53
{"gold": "5000.00", "printed": "5000.00", "notation": null}
nlprog_det-setting-0084210
3 books come back 10 days late, at $0.10 a day each. What is the fine? Computing it: ```python per_day = 0.1 days_late = 10 books = 3 fine = per_day * days_late * books # 3.0 print(f"{fine:.2f}") ``` Out — 3.00 The fine is $3.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "3.00", "printed": "3.00", "notation": null}
nlprog_det-setting-0084211
5 swims at 400 calories each burn how many calories in total? Computing it: ```python per_session = 400 sessions = 5 total = per_session * sessions # 2000 print(total) ``` # program output: 2000 2000 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "2000", "printed": "2000", "notation": null}
nlprog_det-setting-0084212
Emeka drove 334 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement? One way, in code: miles = 334 rate = 0.65 reimbursement = miles * rate print(f"{reimbursement:.2f}") Running it prints 217.10. Emeka is owed $217.10.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "217.10", "printed": "217.10", "notation": null}
nlprog_det-setting-0084213
<|start|><|user|> At 60 miles per hour, how many minutes does a 100-mile trip take?<|eot|> <|assistant|> ```python distance = 100 speed = 60 minutes = distance / speed * 60 # 100.0 print(round(minutes)) ``` Interpreter output: 100 100 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 60 miles per hour, how many minutes does a 100-mile trip take?" }, { "role": "assistant", "content": "```python\ndistance = 100\nspeed = 60\nminutes = distance / speed * 60 # 100.0\nprint(round(minutes))\n```\nInterpreter output: 100\n\n100 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "100", "printed": "100", "notation": null}
nlprog_det-setting-0084214
<|start|><|system|> Show working only when it helps.<|eot|> <|user|> Fines run at $100 per day up to a maximum of $5,000. How much after 31 days?<|eot|> <|assistant|> ```python per_day = 100 days = 31 cap = 5000 fine = min(per_day * days, cap) # 3100 print(fine) ``` Running this gives: 3100 $3,100 is owed.<|eot|> <|e...
chat
[ { "role": "system", "content": "Show working only when it helps." }, { "role": "user", "content": "Fines run at $100 per day up to a maximum of $5,000. How much after 31 days?" }, { "role": "assistant", "content": "```python\nper_day = 100\ndays = 31\ncap = 5000\nfine = min(per_day *...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "3100", "printed": "3100", "notation": null}
nlprog_det-setting-0084215
<|start|><|system|> You help with homework problems.<|eot|> <|user|> What percentage of $8,000 is $5,600?<|eot|> <|assistant|> ```python budget = 8000 spent = 5600 percent = spent / budget * 100 # 70.0 print(round(percent, 1)) ``` The code prints: 70.0 70.0% has been spent.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "What percentage of $8,000 is $5,600?" }, { "role": "assistant", "content": "```python\nbudget = 8000\nspent = 5600\npercent = spent / budget * 100 # 70.0\nprint(round(percent, 1))\n```...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "70.0", "printed": "70.0", "notation": null}
nlprog_det-setting-0084216
<|start|><|user|> Someone born January 23, 1979 turns how old by April 9, 2029? Give the age in whole years.<|eot|> <|assistant|> ```python from datetime import date born = date(1979, 1, 23) # datetime.date(1979, 1, 23) on = date(2029, 4, 9) # datetime.date(2029, 4, 9) age = on.year - born.year - ((on.month, on.day) ...
chat
[ { "role": "user", "content": "Someone born January 23, 1979 turns how old by April 9, 2029? Give the age in whole years." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1979, 1, 23) # datetime.date(1979, 1, 23)\non = date(2029, 4, 9) # datetime.date(202...
nlprog_det
setting
original
null
deterministic
[]
[]
160
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0084218
A seminar starts at 9:30 AM and lasts 75 minutes. When does it end? A short script: ```python start = 9 * 60 + 30 end = start + 75 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Running it prints 10:45 AM. The seminar finishes at 10:45 AM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "10:45 AM", "printed": "10:45 AM", "notation": null}
nlprog_det-setting-0084219
Convert 3,365 USD to CAD at 1 USD = 1.31 CAD. In Python: ```python amount = 3365 rate = 1.31 converted = amount * rate # 4408.150000000001 print(f"{converted:.2f}") ``` It prints: 4408.15 That is 4,408.15 CAD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "4408.15", "printed": "4408.15", "notation": null}
nlprog_det-setting-0084220
18 of 20 members attended. What percent attended? Let the code do the arithmetic: ```python present = 18 total = 20 percent = present / total * 100 # 90.0 print(round(percent, 1)) ``` Out — 90.0 90.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "90.0", "printed": "90.0", "notation": null}
nlprog_det-setting-0084221
To read 900 pages in 18 days, how many pages per day are needed? That is 50 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0084222
<|start|><|system|> You are a teaching assistant.<|eot|> <|user|> Revenue is $17,500 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)?<|eot|> <|assistant|> revenue = 17500 costs = 12500 profit = revenue - costs # 5000 margin = profit / revenue * 100 # 28.571428571...
chat
[ { "role": "system", "content": "You are a teaching assistant." }, { "role": "user", "content": "Revenue is $17,500 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)?" }, { "role": "assistant", "content": " revenue = 17500\n costs = 12500\n ...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "28.6", "printed": "28.6", "notation": null}
nlprog_det-setting-0084223
From 1994 to 2005, how many years is that? Program: start_year = 1994 end_year = 2005 print(end_year - start_year) It prints 11, as expected. That is 11 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
57
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0084224
<|start|><|system|> Answer the user's question directly.<|eot|> <|user|> Convert 6,102 USD to EUR at 1 USD = 1.27 EUR.<|eot|> <|assistant|> amount = 6102 rate = 1.27 converted = amount * rate # 7749.54 print(f"{converted:.2f}") Execution result: 7749.54 It converts to 7,749.54 EUR.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer the user's question directly." }, { "role": "user", "content": "Convert 6,102 USD to EUR at 1 USD = 1.27 EUR." }, { "role": "assistant", "content": " amount = 6102\n rate = 1.27\n converted = amount * rate # 7749.54\n print(f\"{conv...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "7749.54", "printed": "7749.54", "notation": null}
nlprog_det-setting-0084225
7 walks at 150 calories each burn how many calories in total? Here is a short program for it. ```python per_session = 150 sessions = 7 total = per_session * sessions print(total) ``` That prints 1050. That burns 1050 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "1050", "printed": "1050", "notation": null}
nlprog_det-setting-0084226
A quorum is 3/5 of the 15 members, rounded up. How many members make a quorum? Let's compute it with Python. ```python import math members = 15 quorum = math.ceil(members * 3 / 5) # 9 print(quorum) ``` # run result: 9 9 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0084227
Zainab drove 93 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement? Zainab is owed $53.94.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "53.94", "printed": "53.94", "notation": null}
nlprog_det-setting-0084229
One can of paint covers 300 square feet. How many cans are needed for 869 square feet of wall? The Python version: ```python import math area = 869 coverage = 300 cans = math.ceil(area / coverage) # 3 print(cans) ``` # result: 3 3 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0084230
<|start|><|user|> A party has 30 days to respond to a motion served on April 5, 2020, with 3 days added because service was by mail. When is the response due?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2020, 4, 5) # datetime.date(2020, 4, 5) response_days = 30 mail_days = 3 due =...
chat
[ { "role": "user", "content": "A party has 30 days to respond to a motion served on April 5, 2020, with 3 days added because service was by mail. When is the response due?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nserved = date(2020, 4, 5) # datetime...
nlprog_det
setting
original
null
deterministic
[]
[]
175
{"gold": "2020-05-08", "printed": "2020-05-08", "notation": null}
nlprog_det-setting-0084231
6 friends split a $210 bill plus a 15% tip evenly. How much does each pay? Let the code do the arithmetic: ```python bill = 210 tip_rate = 15 / 100 # 0.15 people = 6 each = bill * (1 + tip_rate) / people # 40.24999999999999 print(f"{each:.2f}") ``` # stdout: 40.25 Each person pays $40.25.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "40.25", "printed": "40.25", "notation": null}
nlprog_det-setting-0084232
<|start|><|user|> From 2015 to 2049, how many years is that?<|eot|> <|assistant|> ```python start_year = 2015 end_year = 2049 print(end_year - start_year) ``` The code prints 34. That is 34 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From 2015 to 2049, how many years is that?" }, { "role": "assistant", "content": "```python\nstart_year = 2015\nend_year = 2049\nprint(end_year - start_year)\n```\nThe code prints 34.\n\nThat is 34 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
70
{"gold": "34", "printed": "34", "notation": null}
nlprog_det-setting-0084233
<|start|><|system|> You may call the tools below. {"name": "run_python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}} {"name": "business_days", "descr...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"run_python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requ...
nlprog_det
setting
original
null
deterministic
[]
[]
321
{"gold": "1412", "printed": "1412", "notation": null}
nlprog_det-setting-0084234
How many whole days and leftover hours are in 191 hours? The program: ```python hours = 191 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Python prints 7 days and 23 hours. That is 7 days and 23 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "7 days and 23 hours", "printed": "7 days and 23 hours", "notation": null}
nlprog_det-setting-0084235
<|start|><|user|> Filing fees are $35 per document. What do 12 filings cost?<|eot|> <|assistant|> ```python fee = 35 filings = 12 total = fee * filings # 420 print(total) ``` (Console output: 420) $420 in filing fees.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Filing fees are $35 per document. What do 12 filings cost?" }, { "role": "assistant", "content": "```python\nfee = 35\nfilings = 12\ntotal = fee * filings # 420\nprint(total)\n```\n(Console output: 420)\n\n$420 in filing fees." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "420", "printed": "420", "notation": null}
nlprog_det-setting-0084236
How many meters are in 25.1 kilometers? The computation: ```python km = 25.1 meters = km * 1000 # 25100.0 print(round(meters)) ``` The run gives 25100. That is 25,100 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "25100", "printed": "25100", "notation": null}
nlprog_det-setting-0084237
<|start|><|system|> Tools you may use: {"name": "run_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> <|user|> Revenue is $17,500 ...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"run_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required...
nlprog_det
setting
original
null
deterministic
[]
[]
235
{"gold": "28.6", "printed": "28.6", "notation": null}
nlprog_det-setting-0084238
<|start|><|user|> At $23.86 an hour, what does 20 hours of work pay?<|eot|> <|assistant|> ```python rate = 23.86 hours = 20 earnings = rate * hours # 477.2 print(f"{earnings:.2f}") ``` # run result: 477.20 The pay is $477.20.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $23.86 an hour, what does 20 hours of work pay?" }, { "role": "assistant", "content": "```python\nrate = 23.86\nhours = 20\nearnings = rate * hours # 477.2\nprint(f\"{earnings:.2f}\")\n```\n# run result: 477.20\n\nThe pay is $477.20." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "477.20", "printed": "477.20", "notation": null}
nlprog_det-setting-0084239
Parking is $5 per hour with a daily maximum of $18. What do 3 hours cost? Let's compute it with Python. ```python rate = 5 hours = 3 daily_max = 18 cost = min(rate * hours, daily_max) # 15 print(cost) ``` (Out: 15) Parking costs $15.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0084240
<|start|><|user|> What percentage of $2,000 is $1,900?<|eot|> <|assistant|> ```python budget = 2000 spent = 1900 percent = spent / budget * 100 # 95.0 print(round(percent, 1)) ``` When run, it prints: 95.0 95.0% has been spent.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What percentage of $2,000 is $1,900?" }, { "role": "assistant", "content": "```python\nbudget = 2000\nspent = 1900\npercent = spent / budget * 100 # 95.0\nprint(round(percent, 1))\n```\nWhen run, it prints: 95.0\n\n95.0% has been spent." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "95.0", "printed": "95.0", "notation": null}
nlprog_det-setting-0084241
Parking is $3 per hour with a daily maximum of $24. What do 3 hours cost? Computing it: rate = 3 hours = 3 daily_max = 24 cost = min(rate * hours, daily_max) # 9 print(cost) (Program output: 9) The charge is $9.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0084242
<|start|><|user|> Fuel for 300 miles at 30 mpg, with gas at $4.59/gallon: what is the cost?<|eot|> <|assistant|> The trip uses $45.90 of gas.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Fuel for 300 miles at 30 mpg, with gas at $4.59/gallon: what is the cost?" }, { "role": "assistant", "content": "The trip uses $45.90 of gas." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "45.90", "printed": "45.90", "notation": null}
nlprog_det-setting-0084243
A 2% increase is applied to $2,200 monthly rent. What is the new amount? Script: ```python rent = 2200 increase = 2 / 100 # 0.02 new_rent = rent * (1 + increase) # 2244.0 print(f"{new_rent:.2f}") ``` The program prints: 2244.00 The new rent is $2,244.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "2244.00", "printed": "2244.00", "notation": null}
nlprog_det-setting-0084244
<|start|><|user|> Fixed costs are $9,000. Each unit sells for $20 and costs $14 to make. How many units must be sold to break even?<|eot|> <|assistant|> ```python import math fixed = 9000 price = 20 variable = 14 units = math.ceil(fixed / (price - variable)) # 1500 print(units) ``` This prints 1500. Break-even is 150...
chat
[ { "role": "user", "content": "Fixed costs are $9,000. Each unit sells for $20 and costs $14 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 9000\nprice = 20\nvariable = 14\nunits = math.ceil(fixed / (price - variable)) #...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0084245
With $12,500 in costs and $14,500 in revenue, what percent of revenue is profit? Round to one decimal. In Python: ```python revenue = 14500 costs = 12500 profit = revenue - costs # 2000 margin = profit / revenue * 100 # 13.793103448275861 print(round(margin, 1)) ``` On running, it outputs: 13.8 Profit is 13.8% of r...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "13.8", "printed": "13.8", "notation": null}
nlprog_det-setting-0084246
A 24-month warranty starts on January 11, 2020. On what date does it end? Set it up in Python: ```python from datetime import date start = date(2020, 1, 11) months = 24 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Progra...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "2022-01-11", "printed": "2022-01-11", "notation": null}
nlprog_det-setting-0084247
A settlement of $960 is split equally among 2 parties. How much does each party receive? Each party receives $480.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "480", "printed": "480", "notation": null}
nlprog_det-setting-0084249
<|start|><|system|> You have access to these functions: [{"name": "math_engine", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> Someone works 16 h...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"math_engine\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requi...
nlprog_det
setting
original
null
deterministic
[]
[]
214
{"gold": "394.88", "printed": "394.88", "notation": null}
nlprog_det-setting-0084250
Starting with 847 water bottles and using 22 per day, how many remain after 14 days? The computation: ```python stock = 847 per_day = 22 days = 14 left = stock - per_day * days # 539 print(left) ``` The script prints: 539 539 water bottles are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "539", "printed": "539", "notation": null}
nlprog_det-setting-0084251
A quorum is 3/5 of the 28 members, rounded up. How many members make a quorum? As a program: ```python import math members = 28 quorum = math.ceil(members * 3 / 5) # 17 print(quorum) ``` Execution prints: 17 That is 17 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0084252
Each storage box holds 15 files. How many boxes are needed for 35 files? We can compute it in Python. ```python import math files = 35 per_box = 15 boxes = math.ceil(files / per_box) # 3 print(boxes) ``` Result: 3 It takes 3 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0084253
<|start|><|user|> A measure needs at least 67% of 126 votes. How many votes is that, rounded up?<|eot|> <|assistant|> ```python import math voters = 126 needed = math.ceil(voters * 67 / 100) # 85 print(needed) ``` Executing it gives: 85 85 votes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A measure needs at least 67% of 126 votes. How many votes is that, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 126\nneeded = math.ceil(voters * 67 / 100) # 85\nprint(needed)\n```\nExecuting it gives: 85\n\n85 votes are needed...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "85", "printed": "85", "notation": null}
nlprog_det-setting-0084254
What does $1,000 grow to in 5 years at 2% annual compounding? We can compute it in Python. ```python principal = 1000 rate = 2 / 100 # 0.02 years = 5 value = principal * (1 + rate) ** years # 1104.0808032 print(f"{value:.2f}") ``` Out = 1104.08 It is worth $1,104.08.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "1104.08", "printed": "1104.08", "notation": null}
nlprog_det-setting-0084255
<|start|><|system|> Functions: [{"name": "interpreter", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> A shift runs from 7:08 AM to 10:38 A...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"interpreter\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}...
nlprog_det
setting
original
null
deterministic
[]
[]
197
{"gold": "210", "printed": "210", "notation": null}
nlprog_det-setting-0084256
<|start|><|user|> How many of 60 members form a majority (more than half)?<|eot|> <|assistant|> ```python members = 60 majority = members // 2 + 1 # 31 print(majority) ``` stdout — 31 That is 31 members.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 60 members form a majority (more than half)?" }, { "role": "assistant", "content": "```python\nmembers = 60\nmajority = members // 2 + 1 # 31\nprint(majority)\n```\nstdout — 31\n\nThat is 31 members." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "31", "printed": "31", "notation": null}
nlprog_det-setting-0084257
To read 540 pages in 18 days, how many pages per day are needed? One way, in code: ```python pages = 540 days = 18 per_day = pages // days # 30 print(per_day) ``` The code prints: 30 That is 30 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0084258
<|start|><|system|> Answer in plain English.<|eot|> <|user|> 2 friends split a $180 bill plus a 15% tip evenly. How much does each pay?<|eot|> <|assistant|> ```python bill = 180 tip_rate = 15 / 100 # 0.15 people = 2 each = bill * (1 + tip_rate) / people # 103.49999999999999 print(f"{each:.2f}") ``` Running it prints:...
chat
[ { "role": "system", "content": "Answer in plain English." }, { "role": "user", "content": "2 friends split a $180 bill plus a 15% tip evenly. How much does each pay?" }, { "role": "assistant", "content": "```python\nbill = 180\ntip_rate = 15 / 100 # 0.15\npeople = 2\neach = bill * (...
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "103.50", "printed": "103.50", "notation": null}
nlprog_det-setting-0084259
A storeroom has 682 pens. The office uses 29 a day. How many are left after 20 days? Python code: ```python stock = 682 per_day = 29 days = 20 left = stock - per_day * days # 102 print(left) ``` Python prints 102. 102 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "102", "printed": "102", "notation": null}
nlprog_det-setting-0084260
<|start|><|user|> A $240 dinner bill gets a 20% tip, and 5 people share the cost equally. What is each person's share?<|eot|> <|assistant|> ```python bill = 240 tip_rate = 20 / 100 # 0.2 people = 5 each = bill * (1 + tip_rate) / people # 57.6 print(f"{each:.2f}") ``` (Result: 57.60) The share is $57.60 each.<|eot|> ...
chat
[ { "role": "user", "content": "A $240 dinner bill gets a 20% tip, and 5 people share the cost equally. What is each person's share?" }, { "role": "assistant", "content": "```python\nbill = 240\ntip_rate = 20 / 100 # 0.2\npeople = 5\neach = bill * (1 + tip_rate) / people # 57.6\nprint(f\"{each:....
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "57.60", "printed": "57.60", "notation": null}
nlprog_det-setting-0084261
<|start|><|user|> A client paid a $5,000 retainer. The firm has billed 14 hours at $250 per hour. How much of the retainer is left?<|eot|> <|assistant|> retainer = 5000 hours = 14 rate = 250 left = retainer - hours * rate # 1500 print(left) This prints 1500, as expected. $1,500 of the retainer is ...
chat
[ { "role": "user", "content": "A client paid a $5,000 retainer. The firm has billed 14 hours at $250 per hour. How much of the retainer is left?" }, { "role": "assistant", "content": " retainer = 5000\n hours = 14\n rate = 250\n left = retainer - hours * rate # 1500\n print(left)\...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0084262
Attendance was 34 out of 50. Express it as a percent. Script: ```python present = 34 total = 50 percent = present / total * 100 # 68.0 print(round(percent, 1)) ``` (Printed: 68.0) Attendance was 68.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "68.0", "printed": "68.0", "notation": null}
nlprog_det-setting-0084263
A garage charges $4 an hour, never more than $18 a day. How much for 6 hours? Python version: ```python rate = 4 hours = 6 daily_max = 18 cost = min(rate * hours, daily_max) # 18 print(cost) ``` Shell output: 18 Parking costs $18.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0084264
A court charges $10 per request plus $0.10 per page after the first 20 pages. What does a 78-page copy cost? Python makes this quick: ```python pages = 78 base = 10 per_page = 0.1 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 15.8 print(f"{cost:.2f}") ``` The interpreter prints 15.80. The tot...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "15.80", "printed": "15.80", "notation": null}
nlprog_det-setting-0084265
Convert 4,030 USD to CAD at 1 USD = 1.08 CAD. Written as code: ```python amount = 4030 rate = 1.08 converted = amount * rate # 4352.400000000001 print(f"{converted:.2f}") ``` The code prints: 4352.40 It converts to 4,352.40 CAD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "4352.40", "printed": "4352.40", "notation": null}
nlprog_det-setting-0084266
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|e...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"P...
nlprog_det
setting
original
null
deterministic
[]
[]
297
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0084267
What percentage of $5,000 is $900? Translated to Python: ```python budget = 5000 spent = 900 percent = spent / budget * 100 # 18.0 print(round(percent, 1)) ``` (Out: 18.0) 18.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "18.0", "printed": "18.0", "notation": null}
nlprog_det-setting-0084268
How long, in days, is it from January 7, 2026 until August 23, 2026? Python, step by step: ```python from datetime import date first = date(2026, 1, 7) # datetime.date(2026, 1, 7) second = date(2026, 8, 23) # datetime.date(2026, 8, 23) print((second - first).days) ``` What it prints: 228 There are 228 days between ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "228", "printed": "228", "notation": null}
nlprog_det-setting-0084269
<|start|><|user|> How many meters are in 80.5 kilometers?<|eot|> <|assistant|> 80,500 m.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many meters are in 80.5 kilometers?" }, { "role": "assistant", "content": "80,500 m." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "80500", "printed": "80500", "notation": null}
nlprog_det-setting-0084270
Parking is $4 per hour with a daily maximum of $24. What do 10 hours cost? A few lines of Python do it: rate = 4 hours = 10 daily_max = 24 cost = min(rate * hours, daily_max) # 24 print(cost) The printout reads 24. The charge is $24.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0084271
Equal monthly payments repay $6,000 plus 5% simple yearly interest over 36 months. How large is a payment? ```python principal = 6000 annual_rate = 5 / 100 # 0.05 months = 36 interest = principal * annual_rate * months / 12 # 900.0 payment = (principal + interest) / months # 191.66666666666666 print(f"{payment:.2f}...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "191.67", "printed": "191.67", "notation": null}
nlprog_det-setting-0084272
<|start|><|user|> A lawyer's fee is 33% of a $12,000 recovery. How large is the fee?<|eot|> <|assistant|> ```python recovery = 12000 rate = 33 / 100 # 0.33 fee = recovery * rate # 3960.0 print(f"{fee:.2f}") ``` Output — 3960.00 The lawyer's fee comes to $3,960.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lawyer's fee is 33% of a $12,000 recovery. How large is the fee?" }, { "role": "assistant", "content": "```python\nrecovery = 12000\nrate = 33 / 100 # 0.33\nfee = recovery * rate # 3960.0\nprint(f\"{fee:.2f}\")\n```\nOutput — 3960.00\n\nThe lawyer's fee comes to...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "3960.00", "printed": "3960.00", "notation": null}
nlprog_det-setting-0084273
<|start|><|system|> Available functions (JSON Schema): {"name": "interpreter", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}} {"name": "lookup_statute", "descrip...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"interpreter\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require...
nlprog_det
setting
original
null
deterministic
[]
[]
296
{"gold": "30", "printed": "30", "notation": null}