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-0056356
How many of 262 votes make 75% (round up)? As Python: ```python import math voters = 262 needed = math.ceil(voters * 75 / 100) # 197 print(needed) ``` Executed, it shows: 197 197 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "197", "printed": "197", "notation": null}
nlprog_det-setting-0056357
<|start|><|system|> Be brief and correct.<|eot|> <|user|> Copies cost $10 plus $0.25 for each page beyond 0. How much for 114 pages?<|eot|> <|assistant|> ```python pages = 114 base = 10 per_page = 0.25 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 38.5 print(f"{cost:.2f}") ``` Execution prints: ...
chat
[ { "role": "system", "content": "Be brief and correct." }, { "role": "user", "content": "Copies cost $10 plus $0.25 for each page beyond 0. How much for 114 pages?" }, { "role": "assistant", "content": "```python\npages = 114\nbase = 10\nper_page = 0.25\nfree_pages = 0\ncost = base + ...
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "38.50", "printed": "38.50", "notation": null}
nlprog_det-setting-0056358
An unpaid balance of $1,000 accrues 1% simple interest per month. How much interest accrues in 2 months? Program: ```python balance = 1000 monthly_rate = 1 / 100 # 0.01 months = 2 interest = balance * monthly_rate * months # 20.0 print(f"{interest:.2f}") ``` It prints: 20.00 $20.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "20.00", "printed": "20.00", "notation": null}
nlprog_det-setting-0056359
<|start|><|user|> Convert 60.6 km to meters.<|eot|> <|assistant|> ```python km = 60.6 meters = km * 1000 # 60600.0 print(round(meters)) ``` # out: 60600 That is 60,600 meters.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 60.6 km to meters." }, { "role": "assistant", "content": "```python\nkm = 60.6\nmeters = km * 1000 # 60600.0\nprint(round(meters))\n```\n# out: 60600\n\nThat is 60,600 meters." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "60600", "printed": "60600", "notation": null}
nlprog_det-setting-0056361
<|start|><|user|> Equipment costs $45,000, has a salvage value of $2,000, and a useful life of 10 years. What is the straight-line depreciation per year?<|eot|> <|assistant|> ```python cost = 45000 salvage = 2000 years = 10 per_year = (cost - salvage) / years # 4300.0 print(f"{per_year:.2f}") ``` Result: 4300.00 $4,3...
chat
[ { "role": "user", "content": "Equipment costs $45,000, has a salvage value of $2,000, and a useful life of 10 years. What is the straight-line depreciation per year?" }, { "role": "assistant", "content": "```python\ncost = 45000\nsalvage = 2000\nyears = 10\nper_year = (cost - salvage) / years #...
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "4300.00", "printed": "4300.00", "notation": null}
nlprog_det-setting-0056362
<|start|><|user|> One can of paint covers 350 square feet. How many cans are needed for 682 square feet of wall?<|eot|> <|assistant|> ```python import math area = 682 coverage = 350 cans = math.ceil(area / coverage) # 2 print(cans) ``` The program prints 2. Buy 2 cans.<|eot|> <|end|>
chat
[ { "role": "user", "content": "One can of paint covers 350 square feet. How many cans are needed for 682 square feet of wall?" }, { "role": "assistant", "content": "```python\nimport math\narea = 682\ncoverage = 350\ncans = math.ceil(area / coverage) # 2\nprint(cans)\n```\nThe program prints 2.\...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0056363
Split $1,496 between Delia and Bilal in the ratio 1 to 3. What is Delia's share? In Python: ```python total = 1496 parts_a = 1 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 374 print(share_a) ``` The script prints 374, as expected. Delia gets $374.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "374", "printed": "374", "notation": null}
nlprog_det-setting-0056364
What average speed covers 188 miles in 2 hours? Python, step by step: ```python distance = 188 hours = 2 speed = distance / hours # 94.0 print(round(speed)) ``` Execution result — 94 It averages 94 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "94", "printed": "94", "notation": null}
nlprog_det-setting-0056365
<|start|><|system|> Tools (call with JSON): [{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_unit", "to_unit"]}}, {"name...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\": \"string\"...
nlprog_det
setting
original
null
deterministic
[]
[]
415
{"gold": "2400.00", "printed": "2400.00", "notation": null}
nlprog_det-setting-0056366
<|start|><|system|> Double-check numbers before answering.<|eot|> <|user|> A backpack costs $180. It is 30% off. What is the sale price?<|eot|> <|assistant|> price = 180 discount = 30 / 100 # 0.3 sale_price = price * (1 - discount) # 125.99999999999999 print(f"{sale_price:.2f}") It prints: 126.00 It ...
chat
[ { "role": "system", "content": "Double-check numbers before answering." }, { "role": "user", "content": "A backpack costs $180. It is 30% off. What is the sale price?" }, { "role": "assistant", "content": " price = 180\n discount = 30 / 100 # 0.3\n sale_price = price * (1 -...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "126.00", "printed": "126.00", "notation": null}
nlprog_det-setting-0056367
To read 540 pages in 10 days, how many pages per day are needed? Script: ```python pages = 540 days = 10 per_day = pages // days # 54 print(per_day) ``` It outputs 54. That is 54 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "54", "printed": "54", "notation": null}
nlprog_det-setting-0056368
329 files go into boxes of 20. How many boxes does that take? Python, step by step: ```python import math files = 329 per_box = 20 boxes = math.ceil(files / per_box) # 17 print(boxes) ``` # printed: 17 17 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0056369
Water costs $20 a month plus $4.20 for each 1,000 gallons over 0,000. What is owed for 25,000 gallons? One way, in code: ```python base = 20 rate = 4.2 used = 25 free = 0 bill = base + rate * max(0, used - free) # 125.0 print(f"{bill:.2f}") ``` Out: 125.00 $125.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "125.00", "printed": "125.00", "notation": null}
nlprog_det-setting-0056370
A hall has 6 rows of 17 seats, and 21 seats are empty. How many people are seated? Here's the code. ```python rows = 6 per_row = 17 empty = 21 seated = rows * per_row - empty # 81 print(seated) ``` The script prints 81. 81 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "81", "printed": "81", "notation": null}
nlprog_det-setting-0056371
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "python_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> Of a $8,...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"python_exec\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, ...
nlprog_det
setting
original
null
deterministic
[]
[]
219
{"gold": "75.0", "printed": "75.0", "notation": null}
nlprog_det-setting-0056372
<|start|><|system|> Keep answers short and correct.<|eot|> <|user|> A 12-month warranty starts on May 23, 2024. On what date does it end?<|eot|> <|assistant|> from datetime import date start = date(2024, 5, 23) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.ye...
chat
[ { "role": "system", "content": "Keep answers short and correct." }, { "role": "user", "content": "A 12-month warranty starts on May 23, 2024. On what date does it end?" }, { "role": "assistant", "content": " from datetime import date\n start = date(2024, 5, 23)\n months = 12...
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "2025-05-23", "printed": "2025-05-23", "notation": null}
nlprog_det-setting-0056373
<|start|><|user|> 50 files go into boxes of 40. How many boxes does that take?<|eot|> <|assistant|> ```python import math files = 50 per_box = 40 boxes = math.ceil(files / per_box) # 2 print(boxes) ``` Output of the run — 2 It takes 2 boxes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "50 files go into boxes of 40. How many boxes does that take?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 50\nper_box = 40\nboxes = math.ceil(files / per_box) # 2\nprint(boxes)\n```\nOutput of the run — 2\n\nIt takes 2 boxes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0056374
The rules require 2/3 of 31 members (round up) to be present. How many is that? Python: ```python import math members = 31 quorum = math.ceil(members * 2 / 3) # 21 print(quorum) ``` The run gives 21. That is 21 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0056375
At $0.62 per mile, what is the reimbursement for 14 miles? Python code: miles = 14 rate = 0.62 reimbursement = miles * rate # 8.68 print(f"{reimbursement:.2f}") # out: 8.68 Yara is owed $8.68.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "8.68", "printed": "8.68", "notation": null}
nlprog_det-setting-0056376
A kettle costs $45. It is 20% off. What is the sale price? ```python price = 45 discount = 20 / 100 # 0.2 sale_price = price * (1 - discount) # 36.0 print(f"{sale_price:.2f}") ``` Run result: 36.00 It costs $36.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "36.00", "printed": "36.00", "notation": null}
nlprog_det-setting-0056377
<|start|><|system|> You may call the tools below. [{"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"]}}]<|eot|> <|user|> A ...
chat
[ { "role": "system", "content": "You may call the tools below.\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\": \"Python source code...
nlprog_det
setting
original
null
deterministic
[]
[]
244
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0056378
<|start|><|system|> You can call tools. Available tools: [{"name": "python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> Rent of $2,200 goes up 5...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\...
nlprog_det
setting
original
null
deterministic
[]
[]
222
{"gold": "2310.00", "printed": "2310.00", "notation": null}
nlprog_det-setting-0056379
A lease runs for 12 months at $2,100 per month. How much rent is paid over the whole term? Python, step by step: ```python monthly_rent = 2100 months = 12 total = monthly_rent * months # 25200 print(total) ``` Run output — 25200 The rent over the term is $25,200.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "25200", "printed": "25200", "notation": null}
nlprog_det-setting-0056380
3 claimants share a $15,000 settlement equally. What is each share? Each share is $5,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "5000", "printed": "5000", "notation": null}
nlprog_det-setting-0056381
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> How many units at $30 each (variable cost $22) cover $9,000 of fixed costs?<|eot|> <|assistant|> ```python import math fixed = 9000 price = 30 variable = 22 units = math.ceil(fixed / (price - variable)) # 1125 print(units) ``` (Result: 1125) 1125 units are ne...
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "How many units at $30 each (variable cost $22) cover $9,000 of fixed costs?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 9000\nprice = 30\nvariable = 22\nunits = math.ce...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "1125", "printed": "1125", "notation": null}
nlprog_det-setting-0056382
The landlord deducts $60 and $45 from a $800 deposit. What is returned to the tenant? Here is the program. ```python deposit = 800 deductions = [60, 45] refund = deposit - sum(deductions) # 695 print(refund) ``` Result = 695 The refund is $695.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "695", "printed": "695", "notation": null}
nlprog_det-setting-0056383
<|start|><|user|> At a 5% tax rate, what is the tax on $655.01?<|eot|> <|assistant|> ```python price = 655.01 tax_rate = 5 / 100 # 0.05 tax = price * tax_rate # 32.7505 print(f"{tax:.2f}") ``` # stdout: 32.75 The tax is $32.75.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At a 5% tax rate, what is the tax on $655.01?" }, { "role": "assistant", "content": "```python\nprice = 655.01\ntax_rate = 5 / 100 # 0.05\ntax = price * tax_rate # 32.7505\nprint(f\"{tax:.2f}\")\n```\n# stdout: 32.75\n\nThe tax is $32.75." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "32.75", "printed": "32.75", "notation": null}
nlprog_det-setting-0056384
2.5 hours of work at $300 an hour: what is the total charge? Python does the arithmetic: ```python hours = 2.5 rate = 300 bill = hours * rate # 750.0 print(f"{bill:.2f}") ``` The interpreter prints 750.00. That comes to $750.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "750.00", "printed": "750.00", "notation": null}
nlprog_det-setting-0056386
<|start|><|user|> 6.5 hours of work at $350 an hour: what is the total charge?<|eot|> <|assistant|> hours = 6.5 rate = 350 bill = hours * rate # 2275.0 print(f"{bill:.2f}") Printed result: 2275.00 That comes to $2,275.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "6.5 hours of work at $350 an hour: what is the total charge?" }, { "role": "assistant", "content": " hours = 6.5\n rate = 350\n bill = hours * rate # 2275.0\n print(f\"{bill:.2f}\")\nPrinted result: 2275.00\n\nThat comes to $2,275.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "2275.00", "printed": "2275.00", "notation": null}
nlprog_det-setting-0056388
<|start|><|user|> Someone works 32 hours at $22.66 per hour. What are the earnings?<|eot|> <|assistant|> That earns $725.12.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Someone works 32 hours at $22.66 per hour. What are the earnings?" }, { "role": "assistant", "content": "That earns $725.12." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "725.12", "printed": "725.12", "notation": null}
nlprog_det-setting-0056389
What is the total rent on a 12-month lease at $1,640 a month? Let the code do the arithmetic: ```python monthly_rent = 1640 months = 12 total = monthly_rent * months # 19680 print(total) ``` (Printed result: 19680) The rent over the term is $19,680.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "19680", "printed": "19680", "notation": null}
nlprog_det-setting-0056390
<|start|><|user|> Each of Lena's walks burns 150 calories. How many calories over 5 walks?<|eot|> <|assistant|> per_session = 150 sessions = 5 total = per_session * sessions # 750 print(total) # printed result: 750 750 calories in total.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each of Lena's walks burns 150 calories. How many calories over 5 walks?" }, { "role": "assistant", "content": " per_session = 150\n sessions = 5\n total = per_session * sessions # 750\n print(total)\n# printed result: 750\n\n750 calories in total." }...
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0056391
At $26.26 an hour, what does 38 hours of work pay? Written as code: ```python rate = 26.26 hours = 38 earnings = rate * hours # 997.8800000000001 print(f"{earnings:.2f}") ``` The script prints: 997.88 That earns $997.88.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "997.88", "printed": "997.88", "notation": null}
nlprog_det-setting-0056392
<|start|><|user|> Sales went from 400 to 340. What is the percent change?<|eot|> <|assistant|> ```python old = 400 new = 340 change = (new - old) / old * 100 # -15.0 print(round(change)) ``` Executing it gives -15. It changed by -15%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Sales went from 400 to 340. What is the percent change?" }, { "role": "assistant", "content": "```python\nold = 400\nnew = 340\nchange = (new - old) / old * 100 # -15.0\nprint(round(change))\n```\nExecuting it gives -15.\n\nIt changed by -15%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "-15", "printed": "-15", "notation": null}
nlprog_det-setting-0056393
How much sales tax is charged on a $644.51 purchase at 8%? $51.56 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "51.56", "printed": "51.56", "notation": null}
nlprog_det-setting-0056394
<|start|><|user|> 7 runs at 250 calories each burn how many calories in total?<|eot|> <|assistant|> per_session = 250 sessions = 7 total = per_session * sessions # 1750 print(total) It prints 1750. That burns 1750 calories.<|eot|> <|end|>
chat
[ { "role": "user", "content": "7 runs at 250 calories each burn how many calories in total?" }, { "role": "assistant", "content": " per_session = 250\n sessions = 7\n total = per_session * sessions # 1750\n print(total)\nIt prints 1750.\n\nThat burns 1750 calories." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "1750", "printed": "1750", "notation": null}
nlprog_det-setting-0056395
Counting the first and last day, how many days are there from July 15, 2028 through August 8, 2028? Python makes this quick: ```python from datetime import date first = date(2028, 7, 15) # datetime.date(2028, 7, 15) last = date(2028, 8, 8) # datetime.date(2028, 8, 8) days = (last - first).days + 1 # 25 print(days) ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0056396
<|start|><|user|> At 2% a month (simple), what interest builds on $2,500 over 4 months?<|eot|> <|assistant|> ```python balance = 2500 monthly_rate = 2 / 100 months = 4 interest = balance * monthly_rate * months print(f"{interest:.2f}") ``` Result = 200.00 The interest is $200.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 2% a month (simple), what interest builds on $2,500 over 4 months?" }, { "role": "assistant", "content": "```python\nbalance = 2500\nmonthly_rate = 2 / 100\nmonths = 4\ninterest = balance * monthly_rate * months\nprint(f\"{interest:.2f}\")\n```\nResult = 200.00\n...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "200.00", "printed": "200.00", "notation": null}
nlprog_det-setting-0056397
3 runs at 150 calories each burn how many calories in total? Program: ```python per_session = 150 sessions = 3 total = per_session * sessions # 450 print(total) ``` The run gives: 450 That burns 450 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "450", "printed": "450", "notation": null}
nlprog_det-setting-0056398
<|start|><|user|> Counting only Monday through Friday, how many business days are there after November 2, 2026 through November 18, 2026?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2026, 11, 2) end = date(2026, 11, 18) count = 0 for k in range(1, (end - start).days + 1): if (st...
chat
[ { "role": "user", "content": "Counting only Monday through Friday, how many business days are there after November 2, 2026 through November 18, 2026?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2026, 11, 2)\nend = date(2026, 11, 18)\ncount...
nlprog_det
setting
original
null
deterministic
[]
[]
158
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0056399
Equal monthly payments repay $1,200 plus 6% simple yearly interest over 12 months. How large is a payment? ```python principal = 1200 annual_rate = 6 / 100 # 0.06 months = 12 interest = principal * annual_rate * months / 12 # 72.0 payment = (principal + interest) / months # 106.0 print(f"{payment:.2f}") ``` Execute...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "106.00", "printed": "106.00", "notation": null}
nlprog_det-setting-0056400
How many minutes pass from 8:31 AM to 11:36 AM on the same day? A Python solution: ```python start = 8 * 60 + 31 end = 11 * 60 + 36 print(end - start) ``` Result — 185 It is 185 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "185", "printed": "185", "notation": null}
nlprog_det-setting-0056401
<|start|><|system|> You are a careful reviewer of figures.<|eot|> <|user|> A 4-day trip pays $74 a day for meals and $175 a night for lodging (3 nights). What is the total allowance?<|eot|> <|assistant|> days = 4 meal_rate = 74 lodging_rate = 175 nights = days - 1 # 3 total = days * meal_rate + nig...
chat
[ { "role": "system", "content": "You are a careful reviewer of figures." }, { "role": "user", "content": "A 4-day trip pays $74 a day for meals and $175 a night for lodging (3 nights). What is the total allowance?" }, { "role": "assistant", "content": " days = 4\n meal_rate = 74...
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "821", "printed": "821", "notation": null}
nlprog_det-setting-0056402
How many weekdays (Monday to Friday) fall after November 20, 2020 up to and including December 13, 2020? ```python from datetime import date, timedelta start = date(2020, 11, 20) end = date(2020, 12, 13) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() < 5: coun...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0056403
A 13 lb package ships at $8 base plus $2.50/lb. What is the charge? A few lines of Python do it: ```python base = 8 per_pound = 2.5 weight = 13 cost = base + per_pound * weight # 40.5 print(f"{cost:.2f}") ``` (Execution result: 40.50) Shipping costs $40.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "40.50", "printed": "40.50", "notation": null}
nlprog_det-setting-0056404
<|start|><|system|> You may call the tools below. [{"name": "py_exec", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "translate", "description": ...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"py_exec\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required...
nlprog_det
setting
original
null
deterministic
[]
[]
302
{"gold": "1880", "printed": "1880", "notation": null}
nlprog_det-setting-0056405
<|start|><|user|> A shift runs from 9:06 AM to 2:54 PM. How long is it in minutes?<|eot|> <|assistant|> ```python start = 9 * 60 + 6 # 546 end = 14 * 60 + 54 # 894 print(end - start) ``` # stdout: 348 It is 348 minutes long.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A shift runs from 9:06 AM to 2:54 PM. How long is it in minutes?" }, { "role": "assistant", "content": "```python\nstart = 9 * 60 + 6 # 546\nend = 14 * 60 + 54 # 894\nprint(end - start)\n```\n# stdout: 348\n\nIt is 348 minutes long." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "348", "printed": "348", "notation": null}
nlprog_det-setting-0056406
Revenue is $40,000 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)? A short script: ```python revenue = 40000 costs = 36000 profit = revenue - costs # 4000 margin = profit / revenue * 100 # 10.0 print(round(margin, 1)) ``` # program output: 10.0 The margin is 10.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "10.0", "printed": "10.0", "notation": null}
nlprog_det-setting-0056407
A claim accrued on June 6, 2013. The limitations period is 3 years. On what date does it expire? We can compute it in Python. ```python from datetime import date accrued = date(2013, 6, 6) # datetime.date(2013, 6, 6) years = 3 expires = accrued.replace(year=accrued.year + years) # datetime.date(2016, 6, 6) print(exp...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "2016-06-06", "printed": "2016-06-06", "notation": null}
nlprog_det-setting-0056408
Monthly: $29. Annual: $300. What is saved per year by paying annually? In code: ```python monthly = 29 yearly = 300 savings = monthly * 12 - yearly # 48 print(savings) ``` What it prints — 48 The annual plan saves $48.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0056410
A claim accrued on June 3, 2012. The limitations period is 5 years. On what date does it expire? Programmatically: ```python from datetime import date accrued = date(2012, 6, 3) # datetime.date(2012, 6, 3) years = 5 expires = accrued.replace(year=accrued.year + years) # datetime.date(2017, 6, 3) print(expires.isofor...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "2017-06-03", "printed": "2017-06-03", "notation": null}
nlprog_det-setting-0056411
Pay is $22.40/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 44 hours? ```python rate = 22.4 hours = 44 regular = 40 * rate # 896.0 overtime = (hours - 40) * rate * 1.5 # 134.39999999999998 pay = regular + overtime # 1030.4 print(f"{pay:.2f}") ``` Out = 1030.40 Farah earns $1,030.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "1030.40", "printed": "1030.40", "notation": null}
nlprog_det-setting-0056412
<|start|><|system|> Be brief and correct.<|eot|> <|user|> Parking is $3 per hour with a daily maximum of $24. What do 1 hours cost?<|eot|> <|assistant|> ```python rate = 3 hours = 1 daily_max = 24 cost = min(rate * hours, daily_max) # 3 print(cost) ``` Printed: 3 The charge is $3.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be brief and correct." }, { "role": "user", "content": "Parking is $3 per hour with a daily maximum of $24. What do 1 hours cost?" }, { "role": "assistant", "content": "```python\nrate = 3\nhours = 1\ndaily_max = 24\ncost = min(rate * hours, daily_max)...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0056413
An office budget of $20,000 has expenses of $835, $1,450. How much of the budget is left? We write it as a program: ```python budget = 20000 expenses = [835, 1450] left = budget - sum(expenses) # 17715 print(left) ``` The script prints 17715, as expected. The remaining budget is $17,715.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "17715", "printed": "17715", "notation": null}
nlprog_det-setting-0056414
Starting with 1586 binders and using 23 per day, how many remain after 11 days? 1333 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "1333", "printed": "1333", "notation": null}
nlprog_det-setting-0056415
Count the days between September 19, 2025 and January 19, 2026. Computation in Python: ```python from datetime import date first = date(2025, 9, 19) # datetime.date(2025, 9, 19) second = date(2026, 1, 19) # datetime.date(2026, 1, 19) print((second - first).days) ``` (Out: 122) It is 122 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "122", "printed": "122", "notation": null}
nlprog_det-setting-0056416
How much is a $69 daily meal allowance over 7 days? Code: ```python days = 7 meal_rate = 69 total = days * meal_rate # 483 print(total) ``` Output = 483 That comes to $483.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "483", "printed": "483", "notation": null}
nlprog_det-setting-0056417
<|start|><|user|> Starting from $25,000, the team spends $3,846, $962, $1,148. What remains?<|eot|> <|assistant|> ```python budget = 25000 expenses = [3846, 962, 1148] left = budget - sum(expenses) # 19044 print(left) ``` (Run result: 19044) The remaining budget is $19,044.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting from $25,000, the team spends $3,846, $962, $1,148. What remains?" }, { "role": "assistant", "content": "```python\nbudget = 25000\nexpenses = [3846, 962, 1148]\nleft = budget - sum(expenses) # 19044\nprint(left)\n```\n(Run result: 19044)\n\nThe remaining ...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "19044", "printed": "19044", "notation": null}
nlprog_det-setting-0056418
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> At 65 miles per hour, how many minutes does a 65-mile trip take?<|eot|> <|assistant|> ```python distance = 65 speed = 65 minutes = distance / speed * 60 # 60.0 print(round(minutes)) ``` Printed: 60 The trip takes 60 minutes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "At 65 miles per hour, how many minutes does a 65-mile trip take?" }, { "role": "assistant", "content": "```python\ndistance = 65\nspeed = 65\nminutes = distance / speed * 60 # 60.0\nprint(round(...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0056419
An invoice lists 24 keyboards at $15 each, plus 10% sales tax. What is the invoice total? In Python: ```python quantity = 24 unit_price = 15 subtotal = quantity * unit_price # 360 total = subtotal * (1 + 10 / 100) # 396.00000000000006 print(f"{total:.2f}") ``` That prints 396.00. The invoice total is $396.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "396.00", "printed": "396.00", "notation": null}
nlprog_det-setting-0056420
How many of 257 votes make 60% (round up)? ```python import math voters = 257 needed = math.ceil(voters * 60 / 100) # 155 print(needed) ``` (Run result: 155) 155 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "155", "printed": "155", "notation": null}
nlprog_det-setting-0056421
<|start|><|user|> How many days are there from July 10, 2022 to October 29, 2022?<|eot|> <|assistant|> ```python from datetime import date first = date(2022, 7, 10) second = date(2022, 10, 29) print((second - first).days) ``` Output: 111 It is 111 days.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many days are there from July 10, 2022 to October 29, 2022?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2022, 7, 10)\nsecond = date(2022, 10, 29)\nprint((second - first).days)\n```\nOutput: 111\n\nIt is 111 days." ...
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "111", "printed": "111", "notation": null}
nlprog_det-setting-0056422
An office budget of $5,000 has expenses of $1,773, $1,032, $3,047. How much of the budget is left? ```python budget = 5000 expenses = [1773, 1032, 3047] left = budget - sum(expenses) # -852 print(left) ``` (Output: -852) The remaining budget is -$852.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "-852", "printed": "-852", "notation": null}
nlprog_det-setting-0056423
A $210 dinner bill gets a 20% tip, and 3 people share the cost equally. What is each person's share? The share is $84.00 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "84.00", "printed": "84.00", "notation": null}
nlprog_det-setting-0056424
<|start|><|system|> Tools (call with JSON): {"name": "code_runner", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> Split $5,136 between Tariq and Elena...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"code_runner\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\"]...
nlprog_det
setting
original
null
deterministic
[]
[]
247
{"gold": "1926", "printed": "1926", "notation": null}
nlprog_det-setting-0056425
<|start|><|user|> Which is cheaper per unit: 6 for $3.86 (A) or 20 for $10.85 (B)?<|eot|> <|assistant|> ```python pack_a = 3.86 / 6 # 0.6433333333333333 pack_b = 10.85 / 20 # 0.5425 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` Interpreter output: B B has the lower unit price.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Which is cheaper per unit: 6 for $3.86 (A) or 20 for $10.85 (B)?" }, { "role": "assistant", "content": "```python\npack_a = 3.86 / 6 # 0.6433333333333333\npack_b = 10.85 / 20 # 0.5425\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'B'\nprint(cheaper)\n```\nInte...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0056426
<|start|><|user|> If a 5-year limitations period starts on April 11, 2012, when does it end?<|eot|> <|assistant|> It runs out on April 11, 2017.<|eot|> <|end|>
chat
[ { "role": "user", "content": "If a 5-year limitations period starts on April 11, 2012, when does it end?" }, { "role": "assistant", "content": "It runs out on April 11, 2017." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "2017-04-11", "printed": "2017-04-11", "notation": null}
nlprog_det-setting-0056427
A customer buys 6 envelopes at $8 each, 6 folders at $14 each, 5 file boxes at $11 each, 1 rulers at $11 each and pays with $200. How much change is due? Python, step by step: items = [(6, 8), (6, 14), (5, 11), (1, 11)] total = sum(q * p for q, p in items) # 198 paid = 200 change = paid - total # 2 ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0056428
<|start|><|user|> Counting only Monday through Friday, how many business days are there after April 17, 2024 through May 12, 2024?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2024, 4, 17) end = date(2024, 5, 12) count = 0 for k in range(1, (end - start).days + 1): if (start + ti...
chat
[ { "role": "user", "content": "Counting only Monday through Friday, how many business days are there after April 17, 2024 through May 12, 2024?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2024, 4, 17)\nend = date(2024, 5, 12)\ncount = 0\nfo...
nlprog_det
setting
original
null
deterministic
[]
[]
157
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0056429
An unpaid balance of $2,500 accrues 1% simple interest per month. How much interest accrues in 4 months? Let the code do the arithmetic: ```python balance = 2500 monthly_rate = 1 / 100 # 0.01 months = 4 interest = balance * monthly_rate * months # 100.0 print(f"{interest:.2f}") ``` Running this gives 100.00. The in...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "100.00", "printed": "100.00", "notation": null}
nlprog_det-setting-0056430
Straight-line depreciation: cost $18,000, salvage $3,000, 4 years. How much per year? Python makes this quick: cost = 18000 salvage = 3000 years = 4 per_year = (cost - salvage) / years # 3750.0 print(f"{per_year:.2f}") Out — 3750.00 Depreciation is $3,750.00 per year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "3750.00", "printed": "3750.00", "notation": null}
nlprog_det-setting-0056431
<|start|><|user|> With 24 rows of 21 chairs and 6 empty chairs, how many chairs are taken?<|eot|> <|assistant|> ```python rows = 24 per_row = 21 empty = 6 seated = rows * per_row - empty # 498 print(seated) ``` It prints 498. 498 seats are taken.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 24 rows of 21 chairs and 6 empty chairs, how many chairs are taken?" }, { "role": "assistant", "content": "```python\nrows = 24\nper_row = 21\nempty = 6\nseated = rows * per_row - empty # 498\nprint(seated)\n```\nIt prints 498.\n\n498 seats are taken." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "498", "printed": "498", "notation": null}
nlprog_det-setting-0056432
<|start|><|system|> You have access to these functions: {"name": "code_runner", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> Of a $2...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"code_runner\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}...
nlprog_det
setting
original
null
deterministic
[]
[]
207
{"gold": "50.0", "printed": "50.0", "notation": null}
nlprog_det-setting-0056433
A recipe for 6 people uses 450 grams of flour. How many grams are needed for 10 people? The program: ```python grams = 450 serves = 6 needed_for = 10 scaled = grams * needed_for // serves # 750 print(scaled) ``` Output — 750 750 grams of flour are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0056434
Pay is $22.40/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 49 hours? A few lines of Python do it: ```python rate = 22.4 hours = 49 regular = 40 * rate # 896.0 overtime = (hours - 40) * rate * 1.5 # 302.4 pay = regular + overtime # 1198.4 print(f"{pay:.2f}") ``` Result = 1198.40 The week...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "1198.40", "printed": "1198.40", "notation": null}
nlprog_det-setting-0056435
Shipping costs $8 plus $1.20 per pound. What does a 2-pound parcel cost to ship? As a program: ```python base = 8 per_pound = 1.2 weight = 2 cost = base + per_pound * weight # 10.4 print(f"{cost:.2f}") ``` # out: 10.40 Shipping costs $10.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "10.40", "printed": "10.40", "notation": null}
nlprog_det-setting-0056436
Monthly rent is $1,500. A tenant moves in with 19 days left in a 31-day month. What is the prorated rent? Here is a short program for it. ```python rent = 1500 days_in_month = 31 days_occupied = 19 prorated = rent * days_occupied / days_in_month # 919.3548387096774 print(f"{prorated:.2f}") ``` Python prints 919.35. ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "919.35", "printed": "919.35", "notation": null}
nlprog_det-setting-0056438
<|start|><|user|> If a 3-year limitations period starts on June 4, 2013, when does it end?<|eot|> <|assistant|> It runs out on June 4, 2016.<|eot|> <|end|>
chat
[ { "role": "user", "content": "If a 3-year limitations period starts on June 4, 2013, when does it end?" }, { "role": "assistant", "content": "It runs out on June 4, 2016." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "2016-06-04", "printed": "2016-06-04", "notation": null}
nlprog_det-setting-0056439
Count the days between February 8, 2023 and September 2, 2023. There are 206 days between the two dates.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
25
{"gold": "206", "printed": "206", "notation": null}
nlprog_det-setting-0056440
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "sandbox_python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"sandbox_python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\...
nlprog_det
setting
original
null
deterministic
[]
[]
211
{"gold": "37", "printed": "37", "notation": null}
nlprog_det-setting-0056441
104 volunteers are split into 4 equal teams. How many are on each team, and how many are left over? Script: total = 104 groups = 4 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") Running it prints 26 each, 0 left over, as expected. 26 each, 0 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "26 each, 0 left over", "printed": "26 each, 0 left over", "notation": null}
nlprog_det-setting-0056442
<|start|><|user|> With 30% off, what does a $45 backpack cost?<|eot|> <|assistant|> ```python price = 45 discount = 30 / 100 # 0.3 sale_price = price * (1 - discount) # 31.499999999999996 print(f"{sale_price:.2f}") ``` # result: 31.50 It costs $31.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 30% off, what does a $45 backpack cost?" }, { "role": "assistant", "content": "```python\nprice = 45\ndiscount = 30 / 100 # 0.3\nsale_price = price * (1 - discount) # 31.499999999999996\nprint(f\"{sale_price:.2f}\")\n```\n# result: 31.50\n\nIt costs $31.50." ...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "31.50", "printed": "31.50", "notation": null}
nlprog_det-setting-0056443
A 5-day trip pays $59 a day for meals and $140 a night for lodging (4 nights). What is the total allowance? Set it up in Python: ```python days = 5 meal_rate = 59 lodging_rate = 140 nights = days - 1 # 4 total = days * meal_rate + nights * lodging_rate # 855 print(total) ``` Run output — 855 That comes to $855.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "855", "printed": "855", "notation": null}
nlprog_det-setting-0056444
Sales went from 1,000 to 1,100. What is the percent change? One way, in code: ```python old = 1000 new = 1100 change = (new - old) / old * 100 print(round(change)) ``` Running it prints 10, as expected. The change is 10%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0056445
Equal monthly payments repay $9,000 plus 6% simple yearly interest over 12 months. How large is a payment? Python code: ```python principal = 9000 annual_rate = 6 / 100 # 0.06 months = 12 interest = principal * annual_rate * months / 12 # 540.0 payment = (principal + interest) / months # 795.0 print(f"{payment:.2f}...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "795.00", "printed": "795.00", "notation": null}
nlprog_det-setting-0056446
<|start|><|user|> A garage charges $2 an hour, never more than $15 a day. How much for 11 hours?<|eot|> <|assistant|> ```python rate = 2 hours = 11 daily_max = 15 cost = min(rate * hours, daily_max) # 15 print(cost) ``` The program prints: 15 The charge is $15.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A garage charges $2 an hour, never more than $15 a day. How much for 11 hours?" }, { "role": "assistant", "content": "```python\nrate = 2\nhours = 11\ndaily_max = 15\ncost = min(rate * hours, daily_max) # 15\nprint(cost)\n```\nThe program prints: 15\n\nThe charge i...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0056448
<|start|><|system|> You are a patient tutor.<|eot|> <|user|> A measure needs at least 60% of 20 votes. How many votes is that, rounded up?<|eot|> <|assistant|> ```python import math voters = 20 needed = math.ceil(voters * 60 / 100) # 12 print(needed) ``` # console output: 12 At least 12 votes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a patient tutor." }, { "role": "user", "content": "A measure needs at least 60% of 20 votes. How many votes is that, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 20\nneeded = math.ceil(voters * 60 / 100) ...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0056449
Prorate $1,800 of monthly rent for 10 days of a 30-day month. Here is the program. ```python rent = 1800 days_in_month = 30 days_occupied = 10 prorated = rent * days_occupied / days_in_month # 600.0 print(f"{prorated:.2f}") ``` The interpreter prints 600.00. The tenant owes $600.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "600.00", "printed": "600.00", "notation": null}
nlprog_det-setting-0056450
<|start|><|user|> Pack A has 8 items for $5.67. Pack B has 15 items for $29.20. Which has the lower price per item?<|eot|> <|assistant|> ```python pack_a = 5.67 / 8 # 0.70875 pack_b = 29.2 / 15 # 1.9466666666666665 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` Run result: A Pack A is cheaper pe...
chat
[ { "role": "user", "content": "Pack A has 8 items for $5.67. Pack B has 15 items for $29.20. Which has the lower price per item?" }, { "role": "assistant", "content": "```python\npack_a = 5.67 / 8 # 0.70875\npack_b = 29.2 / 15 # 1.9466666666666665\ncheaper = \"A\" if pack_a < pack_b else \"B\" ...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0056451
A 12-month warranty starts on November 5, 2019. On what date does it end? Coded up: ```python from datetime import date start = date(2019, 11, 5) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Output of the run...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "2020-11-05", "printed": "2020-11-05", "notation": null}
nlprog_det-setting-0056452
An unpaid balance of $1,000 accrues 1% simple interest per month. How much interest accrues in 4 months? The program: ```python balance = 1000 monthly_rate = 1 / 100 # 0.01 months = 4 interest = balance * monthly_rate * months # 40.0 print(f"{interest:.2f}") ``` Program output — 40.00 The interest is $40.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "40.00", "printed": "40.00", "notation": null}
nlprog_det-setting-0056453
A library charges $0.50 per book per day late. What is the fine for 2 books that are 15 days late? ```python per_day = 0.5 days_late = 15 books = 2 fine = per_day * days_late * books # 15.0 print(f"{fine:.2f}") ``` Python prints 15.00. $15.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "15.00", "printed": "15.00", "notation": null}
nlprog_det-setting-0056454
<|start|><|user|> 3 friends split a $84 bill plus a 18% tip evenly. How much does each pay?<|eot|> <|assistant|> ```python bill = 84 tip_rate = 18 / 100 # 0.18 people = 3 each = bill * (1 + tip_rate) / people # 33.04 print(f"{each:.2f}") ``` The code prints: 33.04 The share is $33.04 each.<|eot|> <|end|>
chat
[ { "role": "user", "content": "3 friends split a $84 bill plus a 18% tip evenly. How much does each pay?" }, { "role": "assistant", "content": "```python\nbill = 84\ntip_rate = 18 / 100 # 0.18\npeople = 3\neach = bill * (1 + tip_rate) / people # 33.04\nprint(f\"{each:.2f}\")\n```\nThe code prin...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "33.04", "printed": "33.04", "notation": null}
nlprog_det-setting-0056455
A garage charges $5 an hour, never more than $18 a day. How much for 7 hours? A short script: ```python rate = 5 hours = 7 daily_max = 18 cost = min(rate * hours, daily_max) # 18 print(cost) ``` Printed: 18 The charge is $18.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0056456
<|start|><|user|> At a 8% tax rate, what is the tax on $655.34?<|eot|> <|assistant|> ```python price = 655.34 tax_rate = 8 / 100 # 0.08 tax = price * tax_rate # 52.427200000000006 print(f"{tax:.2f}") ``` Printed result: 52.43 The tax is $52.43.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At a 8% tax rate, what is the tax on $655.34?" }, { "role": "assistant", "content": "```python\nprice = 655.34\ntax_rate = 8 / 100 # 0.08\ntax = price * tax_rate # 52.427200000000006\nprint(f\"{tax:.2f}\")\n```\nPrinted result: 52.43\n\nThe tax is $52.43." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "52.43", "printed": "52.43", "notation": null}
nlprog_det-setting-0056457
Someone born February 4, 1983 turns how old by May 13, 2028? Give the age in whole years. ```python from datetime import date born = date(1983, 2, 4) # datetime.date(1983, 2, 4) on = date(2028, 5, 13) # datetime.date(2028, 5, 13) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 45 print(a...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
154
{"gold": "45", "printed": "45", "notation": null}
nlprog_det-setting-0056458
<|start|><|user|> Ada and Grace share $1,582 in the ratio 2:5. How much does Ada get?<|eot|> <|assistant|> ```python total = 1582 parts_a = 2 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 452 print(share_a) ``` The program prints 452. Ada gets $452.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Ada and Grace share $1,582 in the ratio 2:5. How much does Ada get?" }, { "role": "assistant", "content": "```python\ntotal = 1582\nparts_a = 2\nparts_b = 5\nshare_a = total * parts_a // (parts_a + parts_b) # 452\nprint(share_a)\n```\nThe program prints 452.\n\nAda...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "452", "printed": "452", "notation": null}
nlprog_det-setting-0056459
<|start|><|system|> Tools (call with JSON): {"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}} {"name": "compute", "description": "Executes a Python prog...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"target\"]}}...
nlprog_det
setting
original
null
deterministic
[]
[]
294
{"gold": "1050", "printed": "1050", "notation": null}
nlprog_det-setting-0056460
Counting the first and last day, how many days are there from August 25, 2025 through August 28, 2025? In code: ```python from datetime import date first = date(2025, 8, 25) # datetime.date(2025, 8, 25) last = date(2025, 8, 28) # datetime.date(2025, 8, 28) days = (last - first).days + 1 # 4 print(days) ``` When run...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0056462
How many days are there from November 26, 2021 to February 7, 2022? One way, in code: ```python from datetime import date first = date(2021, 11, 26) # datetime.date(2021, 11, 26) second = date(2022, 2, 7) # datetime.date(2022, 2, 7) print((second - first).days) ``` Execution prints: 73 It is 73 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "73", "printed": "73", "notation": null}