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-0053135
A car travels 276 miles in 2 hours. What is its average speed in miles per hour? Written as code: ```python distance = 276 hours = 2 speed = distance / hours # 138.0 print(round(speed)) ``` Result: 138 It averages 138 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "138", "printed": "138", "notation": null}
nlprog_det-setting-0053136
What commission does Cyrus make on $114,499 in sales at 3%? ```python sales = 114499 rate = 3 / 100 # 0.03 commission = sales * rate # 3434.97 print(f"{commission:.2f}") ``` (Program output: 3434.97) Cyrus earns $3,434.97.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "3434.97", "printed": "3434.97", "notation": null}
nlprog_det-setting-0053137
<|start|><|system|> Tool definitions: [{"name": "python_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "define_word", "description": "Return a dictionary ...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"python_exec\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}, {\"na...
nlprog_det
setting
original
null
deterministic
[]
[]
267
{"gold": "48900", "printed": "48900", "notation": null}
nlprog_det-setting-0053138
How many units at $20 each (variable cost $12) cover $6,000 of fixed costs? Programmatically: ```python import math fixed = 6000 price = 20 variable = 12 units = math.ceil(fixed / (price - variable)) # 750 print(units) ``` Execution result: 750 750 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0053139
<|start|><|system|> Functions: [{"name": "run_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"]}}, {"name": "search_cases", "descrip...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"run_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\"}}, \"require...
nlprog_det
setting
original
null
deterministic
[]
[]
436
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0053140
<|start|><|user|> A customer buys 2 notebooks at $26 each, 4 rulers at $30 each, 2 binders at $18 each, 1 notebooks at $5 each and pays with $250. How much change is due?<|eot|> <|assistant|> ```python items = [(2, 26), (4, 30), (2, 18), (1, 5)] total = sum(q * p for q, p in items) # 213 paid = 250 change = paid - tot...
chat
[ { "role": "user", "content": "A customer buys 2 notebooks at $26 each, 4 rulers at $30 each, 2 binders at $18 each, 1 notebooks at $5 each and pays with $250. How much change is due?" }, { "role": "assistant", "content": "```python\nitems = [(2, 26), (4, 30), (2, 18), (1, 5)]\ntotal = sum(q * p ...
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "37", "printed": "37", "notation": null}
nlprog_det-setting-0053142
Fines run at $25 per day up to a maximum of $5,000. How much after 25 days? Here is a short program for it. ```python per_day = 25 days = 25 cap = 5000 fine = min(per_day * days, cap) # 625 print(fine) ``` That prints 625. The fine is $625.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "625", "printed": "625", "notation": null}
nlprog_det-setting-0053143
<|start|><|user|> How many weekdays (Monday to Friday) fall after February 19, 2027 up to and including March 27, 2027?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2027, 2, 19) end = date(2027, 3, 27) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(day...
chat
[ { "role": "user", "content": "How many weekdays (Monday to Friday) fall after February 19, 2027 up to and including March 27, 2027?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2027, 2, 19)\nend = date(2027, 3, 27)\ncount = 0\nfor k in rang...
nlprog_det
setting
original
null
deterministic
[]
[]
158
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0053144
7 hours of work at $225 an hour: what is the total charge? Computing it: ```python hours = 7 rate = 225 bill = hours * rate # 1575 print(f"{bill:.2f}") ``` When run, it prints 1575.00. That comes to $1,575.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "1575.00", "printed": "1575.00", "notation": null}
nlprog_det-setting-0053145
Pack A has 12 items for $8.54. Pack B has 15 items for $31.07. Which has the lower price per item? Python: ```python pack_a = 8.54 / 12 # 0.7116666666666666 pack_b = 31.07 / 15 # 2.0713333333333335 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` Out: A A has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0053147
<|start|><|user|> A water bill is $18 plus $4.75 per thousand gallons beyond the first 2 thousand. What is the bill for 20 thousand gallons?<|eot|> <|assistant|> ```python base = 18 rate = 4.75 used = 20 free = 2 bill = base + rate * max(0, used - free) # 103.5 print(f"{bill:.2f}") ``` Result: 103.50 The bill is $103...
chat
[ { "role": "user", "content": "A water bill is $18 plus $4.75 per thousand gallons beyond the first 2 thousand. What is the bill for 20 thousand gallons?" }, { "role": "assistant", "content": "```python\nbase = 18\nrate = 4.75\nused = 20\nfree = 2\nbill = base + rate * max(0, used - free) # 103....
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "103.50", "printed": "103.50", "notation": null}
nlprog_det-setting-0053148
<|start|><|system|> Functions: [{"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|> Equal monthly payments repay $3,600 plus 10% ...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"python_exec\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program\"]}}]" }, ...
nlprog_det
setting
original
null
deterministic
[]
[]
249
{"gold": "330.00", "printed": "330.00", "notation": null}
nlprog_det-setting-0053149
Goods bought on May 1, 2025 carry a 24-month warranty. When does it expire? We write it as a program: ```python from datetime import date start = date(2025, 5, 1) months = 24 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "2027-05-01", "printed": "2027-05-01", "notation": null}
nlprog_det-setting-0053150
Monthly rent is $900. A tenant moves in with 17 days left in a 30-day month. What is the prorated rent? Here is a short program for it. ```python rent = 900 days_in_month = 30 days_occupied = 17 prorated = rent * days_occupied / days_in_month print(f"{prorated:.2f}") ``` Output: 510.00 The tenant owes $510.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "510.00", "printed": "510.00", "notation": null}
nlprog_det-setting-0053151
<|start|><|user|> How much sales tax is charged on a $873.94 purchase at 6%?<|eot|> <|assistant|> ```python price = 873.94 tax_rate = 6 / 100 # 0.06 tax = price * tax_rate # 52.4364 print(f"{tax:.2f}") ``` (Execution result: 52.44) $52.44 in tax.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How much sales tax is charged on a $873.94 purchase at 6%?" }, { "role": "assistant", "content": "```python\nprice = 873.94\ntax_rate = 6 / 100 # 0.06\ntax = price * tax_rate # 52.4364\nprint(f\"{tax:.2f}\")\n```\n(Execution result: 52.44)\n\n$52.44 in tax." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "52.44", "printed": "52.44", "notation": null}
nlprog_det-setting-0053152
A 8 × 8 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up? As Python: ```python import math length = 8 width = 8 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 64 print(tiles) ``` Out: 64 It takes 64 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "64", "printed": "64", "notation": null}
nlprog_det-setting-0053153
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> A clerk's office charges $90 for each filing. Helga submits 19 filings. What is the total fee?<|eot|> <|assistant|> ```python fee = 90 filings = 19 total = fee * filings # 1710 print(total) ``` The program outputs 1710. The total fee is $1,710.<|eot|> <|end...
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "A clerk's office charges $90 for each filing. Helga submits 19 filings. What is the total fee?" }, { "role": "assistant", "content": "```python\nfee = 90\nfilings = 19\ntotal = fee * filings #...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "1710", "printed": "1710", "notation": null}
nlprog_det-setting-0053154
<|start|><|user|> A car travels 426 miles in 1.5 hours. What is its average speed in miles per hour?<|eot|> <|assistant|> distance = 426 hours = 1.5 speed = distance / hours # 284.0 print(round(speed)) Running it prints: 284 It averages 284 miles per hour.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A car travels 426 miles in 1.5 hours. What is its average speed in miles per hour?" }, { "role": "assistant", "content": " distance = 426\n hours = 1.5\n speed = distance / hours # 284.0\n print(round(speed))\nRunning it prints: 284\n\nIt averages 284 m...
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "284", "printed": "284", "notation": null}
nlprog_det-setting-0053156
<|start|><|system|> You may call the tools below. [{"name": "calc", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> What commission doe...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"calc\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\...
nlprog_det
setting
original
null
deterministic
[]
[]
226
{"gold": "2522.46", "printed": "2522.46", "notation": null}
nlprog_det-setting-0053157
The rules require 2/3 of 34 members (round up) to be present. How many is that? Computation in Python: import math members = 34 quorum = math.ceil(members * 2 / 3) # 23 print(quorum) Out = 23 23 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0053158
A car travels 296 miles in 2 hours. What is its average speed in miles per hour? distance = 296 hours = 2 speed = distance / hours # 148.0 print(round(speed)) The interpreter prints: 148 It averages 148 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "148", "printed": "148", "notation": null}
nlprog_det-setting-0053159
<|start|><|user|> Tomas earns a 8% commission on $32,970 of sales. What is the commission?<|eot|> <|assistant|> ```python sales = 32970 rate = 8 / 100 # 0.08 commission = sales * rate # 2637.6 print(f"{commission:.2f}") ``` Output: 2637.60 Tomas earns $2,637.60.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Tomas earns a 8% commission on $32,970 of sales. What is the commission?" }, { "role": "assistant", "content": "```python\nsales = 32970\nrate = 8 / 100 # 0.08\ncommission = sales * rate # 2637.6\nprint(f\"{commission:.2f}\")\n```\nOutput: 2637.60\n\nTomas earns $...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "2637.60", "printed": "2637.60", "notation": null}
nlprog_det-setting-0053160
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> A car travels 162 miles in 2 hours. What is its average speed in miles per hour?<|eot|> <|assistant|> ```python distance = 162 hours = 2 speed = distance / hours # 81.0 print(round(speed)) ``` (Execution result: 81) The average speed is 81 mph.<|eot|> <|end...
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "A car travels 162 miles in 2 hours. What is its average speed in miles per hour?" }, { "role": "assistant", "content": "```python\ndistance = 162\nhours = 2\nspeed = distance / hours # 81.0\np...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "81", "printed": "81", "notation": null}
nlprog_det-setting-0053161
<|start|><|user|> Goods bought on January 19, 2021 carry a 24-month warranty. When does it expire?<|eot|> <|assistant|> ```python from datetime import date start = date(2021, 1, 19) months = 24 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end...
chat
[ { "role": "user", "content": "Goods bought on January 19, 2021 carry a 24-month warranty. When does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2021, 1, 19)\nmonths = 24\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = dat...
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "2023-01-19", "printed": "2023-01-19", "notation": null}
nlprog_det-setting-0053162
How many units at $20 each (variable cost $15) cover $1,200 of fixed costs? A Python solution: ```python import math fixed = 1200 price = 20 variable = 15 units = math.ceil(fixed / (price - variable)) # 240 print(units) ``` What it prints — 240 240 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "240", "printed": "240", "notation": null}
nlprog_det-setting-0053163
Someone works 12 hours at $16.30 per hour. What are the earnings? ```python rate = 16.3 hours = 12 earnings = rate * hours # 195.60000000000002 print(f"{earnings:.2f}") ``` Output of the run: 195.60 The pay is $195.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "195.60", "printed": "195.60", "notation": null}
nlprog_det-setting-0053164
685 files go into boxes of 24. How many boxes does that take? Code: ```python import math files = 685 per_box = 24 boxes = math.ceil(files / per_box) # 29 print(boxes) ``` Out — 29 It takes 29 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0053165
<|start|><|user|> At 1.5% a month (simple), what interest builds on $2,500 over 3 months?<|eot|> <|assistant|> ```python balance = 2500 monthly_rate = 1.5 / 100 # 0.015 months = 3 interest = balance * monthly_rate * months # 112.5 print(f"{interest:.2f}") ``` The interpreter prints: 112.50 The interest is $112.50.<|...
chat
[ { "role": "user", "content": "At 1.5% a month (simple), what interest builds on $2,500 over 3 months?" }, { "role": "assistant", "content": "```python\nbalance = 2500\nmonthly_rate = 1.5 / 100 # 0.015\nmonths = 3\ninterest = balance * monthly_rate * months # 112.5\nprint(f\"{interest:.2f}\")\n...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "112.50", "printed": "112.50", "notation": null}
nlprog_det-setting-0053166
$5,000 is invested at 4% compounded yearly. What is it worth after 5 years? Translated to Python: ```python principal = 5000 rate = 4 / 100 # 0.04 years = 5 value = principal * (1 + rate) ** years # 6083.264512000001 print(f"{value:.2f}") ``` # printed result: 6083.26 The balance is $6,083.26.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "6083.26", "printed": "6083.26", "notation": null}
nlprog_det-setting-0053167
<|start|><|user|> At 1.5% a month (simple), what interest builds on $4,000 over 5 months?<|eot|> <|assistant|> ```python balance = 4000 monthly_rate = 1.5 / 100 # 0.015 months = 5 interest = balance * monthly_rate * months # 300.0 print(f"{interest:.2f}") ``` Python prints 300.00. $300.00 accrues.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 1.5% a month (simple), what interest builds on $4,000 over 5 months?" }, { "role": "assistant", "content": "```python\nbalance = 4000\nmonthly_rate = 1.5 / 100 # 0.015\nmonths = 5\ninterest = balance * monthly_rate * months # 300.0\nprint(f\"{interest:.2f}\")\n...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "300.00", "printed": "300.00", "notation": null}
nlprog_det-setting-0053168
33 volunteers are split into 8 equal teams. How many are on each team, and how many are left over? The answer: 4 each, 1 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "4 each, 1 left over", "printed": "4 each, 1 left over", "notation": null}
nlprog_det-setting-0053169
Tomas earns a 10% commission on $87,536 of sales. What is the commission? Python: ```python sales = 87536 rate = 10 / 100 # 0.1 commission = sales * rate # 8753.6 print(f"{commission:.2f}") ``` Printed: 8753.60 Tomas earns $8,753.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "8753.60", "printed": "8753.60", "notation": null}
nlprog_det-setting-0053170
<|start|><|user|> Fines run at $100 per day up to a maximum of $2,500. How much after 49 days?<|eot|> <|assistant|> ```python per_day = 100 days = 49 cap = 2500 fine = min(per_day * days, cap) # 2500 print(fine) ``` Run result — 2500 $2,500 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Fines run at $100 per day up to a maximum of $2,500. How much after 49 days?" }, { "role": "assistant", "content": "```python\nper_day = 100\ndays = 49\ncap = 2500\nfine = min(per_day * days, cap) # 2500\nprint(fine)\n```\nRun result — 2500\n\n$2,500 is owed." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0053171
<|start|><|user|> At a 9% tax rate, what is the tax on $197.22?<|eot|> <|assistant|> ```python price = 197.22 tax_rate = 9 / 100 # 0.09 tax = price * tax_rate # 17.7498 print(f"{tax:.2f}") ``` Running it prints: 17.75 The tax is $17.75.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At a 9% tax rate, what is the tax on $197.22?" }, { "role": "assistant", "content": "```python\nprice = 197.22\ntax_rate = 9 / 100 # 0.09\ntax = price * tax_rate # 17.7498\nprint(f\"{tax:.2f}\")\n```\nRunning it prints: 17.75\n\nThe tax is $17.75." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "17.75", "printed": "17.75", "notation": null}
nlprog_det-setting-0053173
<|start|><|system|> Tools (call with JSON): {"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}} {"name": "calc", "description": "Evaluates Py...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\": [\"title\", \...
nlprog_det
setting
original
null
deterministic
[]
[]
396
{"gold": "480.00", "printed": "480.00", "notation": null}
nlprog_det-setting-0053174
At $0.67 per mile, what is the reimbursement for 411 miles? ```python miles = 411 rate = 0.67 reimbursement = miles * rate # 275.37 print(f"{reimbursement:.2f}") ``` On running, it outputs 275.37. The reimbursement is $275.37.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "275.37", "printed": "275.37", "notation": null}
nlprog_det-setting-0053175
Water costs $12 a month plus $5.10 for each 1,000 gallons over 3,000. What is owed for 6,000 gallons? Script: ```python base = 12 rate = 5.1 used = 6 free = 3 bill = base + rate * max(0, used - free) # 27.299999999999997 print(f"{bill:.2f}") ``` What it prints — 27.30 The bill is $27.30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "27.30", "printed": "27.30", "notation": null}
nlprog_det-setting-0053176
<|start|><|user|> A count moves from 400 to 460. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> ```python old = 400 new = 460 change = (new - old) / old * 100 # 15.0 print(round(change)) ``` # output: 15 It changed by 15%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A count moves from 400 to 460. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": "```python\nold = 400\nnew = 460\nchange = (new - old) / old * 100 # 15.0\nprint(round(change))\n```\n# output: 15\n\nIt changed by 15%...
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0053177
After a 25% fee is taken from a $48,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share? Translated to Python: ```python award = 48000 fee = award * 25 / 100 remaining = award - fee per_client = remaining / 3 print(f"{per_client:.2f}") ``` The program prints: 12000.00 Each share is ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "12000.00", "printed": "12000.00", "notation": null}
nlprog_det-setting-0053178
A service costs $19 a month or $216 a year. How much does the yearly plan save over 12 monthly payments? Python: ```python monthly = 19 yearly = 216 savings = monthly * 12 - yearly # 12 print(savings) ``` Out: 12 $12 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0053179
An office budget of $5,000 has expenses of $2,184, $2,821, $767, $950. How much of the budget is left? A few lines of Python do it: ```python budget = 5000 expenses = [2184, 2821, 767, 950] left = budget - sum(expenses) # -1722 print(left) ``` It prints: -1722 The remaining budget is -$1,722.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "-1722", "printed": "-1722", "notation": null}
nlprog_det-setting-0053180
Equal monthly payments repay $6,000 plus 5% simple yearly interest over 12 months. How large is a payment? Python does the arithmetic: principal = 6000 annual_rate = 5 / 100 # 0.05 months = 12 interest = principal * annual_rate * months / 12 # 300.0 payment = (principal + interest) / months # 52...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "525.00", "printed": "525.00", "notation": null}
nlprog_det-setting-0053181
A recipe for 8 people uses 450 grams of oats. How many grams are needed for 12 people? Python code: grams = 450 serves = 8 needed_for = 12 scaled = grams * needed_for // serves # 675 print(scaled) The code prints 675. Use 675 g of oats.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "675", "printed": "675", "notation": null}
nlprog_det-setting-0053182
<|start|><|user|> A 7 lb package ships at $5 base plus $1.20/lb. What is the charge?<|eot|> <|assistant|> ```python base = 5 per_pound = 1.2 weight = 7 cost = base + per_pound * weight # 13.4 print(f"{cost:.2f}") ``` # printed: 13.40 The charge is $13.40.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 7 lb package ships at $5 base plus $1.20/lb. What is the charge?" }, { "role": "assistant", "content": "```python\nbase = 5\nper_pound = 1.2\nweight = 7\ncost = base + per_pound * weight # 13.4\nprint(f\"{cost:.2f}\")\n```\n# printed: 13.40\n\nThe charge is $13.4...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "13.40", "printed": "13.40", "notation": null}
nlprog_det-setting-0053183
A party has 30 days to respond to a motion served on December 17, 2025, with 3 days added because service was by mail. When is the response due? The response is due on January 19, 2026.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "2026-01-19", "printed": "2026-01-19", "notation": null}
nlprog_det-setting-0053184
<|start|><|user|> Equal monthly payments repay $6,000 plus 6% simple yearly interest over 24 months. How large is a payment?<|eot|> <|assistant|> Each payment is $280.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Equal monthly payments repay $6,000 plus 6% simple yearly interest over 24 months. How large is a payment?" }, { "role": "assistant", "content": "Each payment is $280.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "280.00", "printed": "280.00", "notation": null}
nlprog_det-setting-0053185
A settlement of $1,200 is split equally among 2 parties. How much does each party receive? Translated to Python: settlement = 1200 parties = 2 share = settlement // parties print(share) Run result — 600 Each party receives $600.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
71
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0053186
Counting the first and last day, how many days are there from March 10, 2020 through March 25, 2020? Programmatically: ```python from datetime import date first = date(2020, 3, 10) # datetime.date(2020, 3, 10) last = date(2020, 3, 25) # datetime.date(2020, 3, 25) days = (last - first).days + 1 # 16 print(days) ``` ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0053187
<|start|><|system|> You can call tools. Available tools: [{"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"]}}]<|eot|> <|user|> 3 friends spli...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\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\"}}, \"r...
nlprog_det
setting
original
null
deterministic
[]
[]
239
{"gold": "82.60", "printed": "82.60", "notation": null}
nlprog_det-setting-0053188
<|start|><|user|> A storeroom has 2000 chairs. The office uses 19 a day. How many are left after 11 days?<|eot|> <|assistant|> ```python stock = 2000 per_day = 19 days = 11 left = stock - per_day * days # 1791 print(left) ``` (Program output: 1791) 1791 remain.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A storeroom has 2000 chairs. The office uses 19 a day. How many are left after 11 days?" }, { "role": "assistant", "content": "```python\nstock = 2000\nper_day = 19\ndays = 11\nleft = stock - per_day * days # 1791\nprint(left)\n```\n(Program output: 1791)\n\n1791 r...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "1791", "printed": "1791", "notation": null}
nlprog_det-setting-0053189
<|start|><|user|> Meals are $69 per day and lodging $140 per night. What is the allowance for 4 days and 3 nights?<|eot|> <|assistant|> ```python days = 4 meal_rate = 69 lodging_rate = 140 nights = days - 1 # 3 total = days * meal_rate + nights * lodging_rate # 696 print(total) ``` # printed: 696 That comes to $696....
chat
[ { "role": "user", "content": "Meals are $69 per day and lodging $140 per night. What is the allowance for 4 days and 3 nights?" }, { "role": "assistant", "content": "```python\ndays = 4\nmeal_rate = 69\nlodging_rate = 140\nnights = days - 1 # 3\ntotal = days * meal_rate + nights * lodging_rate ...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "696", "printed": "696", "notation": null}
nlprog_det-setting-0053190
A $1,200 loan carries 8% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment? Here's the code. principal = 1200 annual_rate = 8 / 100 # 0.08 months = 36 interest = principal * annual_rate * months / 12 # 288.0 payment = (princip...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "41.33", "printed": "41.33", "notation": null}
nlprog_det-setting-0053191
<|start|><|user|> How many meters are in 91.7 kilometers?<|eot|> <|assistant|> ```python km = 91.7 meters = km * 1000 # 91700.0 print(round(meters)) ``` This prints: 91700 That is 91,700 meters.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many meters are in 91.7 kilometers?" }, { "role": "assistant", "content": "```python\nkm = 91.7\nmeters = km * 1000 # 91700.0\nprint(round(meters))\n```\nThis prints: 91700\n\nThat is 91,700 meters." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "91700", "printed": "91700", "notation": null}
nlprog_det-setting-0053192
Express 126 hours in days and hours. We can compute it in Python. ```python hours = 126 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Run result = 5 days and 6 hours 126 hours is 5 days and 6 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "5 days and 6 hours", "printed": "5 days and 6 hours", "notation": null}
nlprog_det-setting-0053193
Pack A has 12 items for $12.36. Pack B has 30 items for $19.61. Which has the lower price per item? Programmatically: ```python pack_a = 12.36 / 12 # 1.03 pack_b = 19.61 / 30 # 0.6536666666666666 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` The script prints B. B has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0053194
<|start|><|system|> You are a data assistant.<|eot|> <|user|> How much sales tax is charged on a $450.68 purchase at 8%?<|eot|> <|assistant|> price = 450.68 tax_rate = 8 / 100 # 0.08 tax = price * tax_rate # 36.0544 print(f"{tax:.2f}") Shell output — 36.05 The tax is $36.05.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a data assistant." }, { "role": "user", "content": "How much sales tax is charged on a $450.68 purchase at 8%?" }, { "role": "assistant", "content": " price = 450.68\n tax_rate = 8 / 100 # 0.08\n tax = price * tax_rate # 36.0544\n ...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "36.05", "printed": "36.05", "notation": null}
nlprog_det-setting-0053195
With 24 rows of 15 chairs and 18 empty chairs, how many chairs are taken? Python: ```python rows = 24 per_row = 15 empty = 18 seated = rows * per_row - empty # 342 print(seated) ``` Result: 342 342 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "342", "printed": "342", "notation": null}
nlprog_det-setting-0053196
<|start|><|user|> A lease runs for 12 months at $975 per month. How much rent is paid over the whole term?<|eot|> <|assistant|> ```python monthly_rent = 975 months = 12 total = monthly_rent * months # 11700 print(total) ``` It outputs: 11700 The rent over the term is $11,700.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lease runs for 12 months at $975 per month. How much rent is paid over the whole term?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 975\nmonths = 12\ntotal = monthly_rent * months # 11700\nprint(total)\n```\nIt outputs: 11700\n\nThe rent over ...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "11700", "printed": "11700", "notation": null}
nlprog_det-setting-0053198
From a $5,000 retainer, 7 hours at $275/hour have been drawn. What remains? ```python retainer = 5000 hours = 7 rate = 275 left = retainer - hours * rate # 3075 print(left) ``` The program prints: 3075 $3,075 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "3075", "printed": "3075", "notation": null}
nlprog_det-setting-0053199
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> Starting from $12,000, the team spends $1,126, $2,462, $2,655, $3,713. What remains?<|eot|> <|assistant|> ```python budget = 12000 expenses = [1126, 2462, 2655, 3713] left = budget - sum(expenses) # 2044 print(left) ``` The code prints: 2044 $2,044 is ...
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "role": "user", "content": "Starting from $12,000, the team spends $1,126, $2,462, $2,655, $3,713. What remains?" }, { "role": "assistant", "content": "```python\nbudget = 12000\nexpenses = [1126, 2462, 2655, 3713]\n...
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "2044", "printed": "2044", "notation": null}
nlprog_det-setting-0053200
Find the mean of these test scores: 89, 78, 64, 71, 86, 92 and 66. The average score is 78.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "78", "printed": "78", "notation": null}
nlprog_det-setting-0053201
<|start|><|user|> After a 25% fee is taken from a $60,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|> <|assistant|> ```python award = 60000 fee = award * 25 / 100 # 15000.0 remaining = award - fee # 45000.0 per_client = remaining / 4 # 11250.0 print(f"{per_client:.2f}")...
chat
[ { "role": "user", "content": "After a 25% fee is taken from a $60,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?" }, { "role": "assistant", "content": "```python\naward = 60000\nfee = award * 25 / 100 # 15000.0\nremaining = award - fee # 45000.0\nper_cl...
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "11250.00", "printed": "11250.00", "notation": null}
nlprog_det-setting-0053202
One can of paint covers 400 square feet. How many cans are needed for 335 square feet of wall? A few lines of Python do it: ```python import math area = 335 coverage = 400 cans = math.ceil(area / coverage) # 1 print(cans) ``` The interpreter prints 1. Buy 1 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "1", "printed": "1", "notation": null}
nlprog_det-setting-0053203
Sales went from 800 to 680. What is the percent change? ```python old = 800 new = 680 change = (new - old) / old * 100 # -15.0 print(round(change)) ``` The code prints: -15 The change is -15%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "-15", "printed": "-15", "notation": null}
nlprog_det-setting-0053205
<|start|><|user|> An unpaid balance of $4,000 accrues 2% simple interest per month. How much interest accrues in 2 months?<|eot|> <|assistant|> ```python balance = 4000 monthly_rate = 2 / 100 # 0.02 months = 2 interest = balance * monthly_rate * months # 160.0 print(f"{interest:.2f}") ``` Out = 160.00 The interest i...
chat
[ { "role": "user", "content": "An unpaid balance of $4,000 accrues 2% simple interest per month. How much interest accrues in 2 months?" }, { "role": "assistant", "content": "```python\nbalance = 4000\nmonthly_rate = 2 / 100 # 0.02\nmonths = 2\ninterest = balance * monthly_rate * months # 160.0...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "160.00", "printed": "160.00", "notation": null}
nlprog_det-setting-0053206
<|start|><|user|> 4 clients win $96,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> Each share is $18,000.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "4 clients win $96,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": "Each share is $18,000.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "18000.00", "printed": "18000.00", "notation": null}
nlprog_det-setting-0053207
<|start|><|system|> Avoid unnecessary detail.<|eot|> <|user|> A 45-day notice period begins on June 10, 2025. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2025, 6, 10) # datetime.date(2025, 6, 10) end = start + timedelta(days=45) # datetime.date(2025, 7, 2...
chat
[ { "role": "system", "content": "Avoid unnecessary detail." }, { "role": "user", "content": "A 45-day notice period begins on June 10, 2025. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2025, 6, 10) # d...
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "2025-07-25", "printed": "2025-07-25", "notation": null}
nlprog_det-setting-0053208
Rania buys 12 boxes of 24 toner kits each and gives away 7 toner kits. How many toner kits are left? Here's the code. ```python boxes = 12 per_box = 24 given_away = 7 left = boxes * per_box - given_away # 281 print(left) ``` # console output: 281 281 toner kits are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "281", "printed": "281", "notation": null}
nlprog_det-setting-0053209
<|start|><|user|> Fixed costs are $4,000. Each unit sells for $25 and costs $21 to make. How many units must be sold to break even?<|eot|> <|assistant|> 1000 units are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Fixed costs are $4,000. Each unit sells for $25 and costs $21 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "1000 units are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0053210
<|start|><|user|> At an exchange rate of 1.35 CAD per USD, how many CAD is 8,648 USD?<|eot|> <|assistant|> ```python amount = 8648 rate = 1.35 converted = amount * rate # 11674.800000000001 print(f"{converted:.2f}") ``` Output of the run — 11674.80 That is 11,674.80 CAD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At an exchange rate of 1.35 CAD per USD, how many CAD is 8,648 USD?" }, { "role": "assistant", "content": "```python\namount = 8648\nrate = 1.35\nconverted = amount * rate # 11674.800000000001\nprint(f\"{converted:.2f}\")\n```\nOutput of the run — 11674.80\n\nThat ...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "11674.80", "printed": "11674.80", "notation": null}
nlprog_det-setting-0053211
Express 373 hours in days and hours. Translated to Python: ```python hours = 373 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Python prints: 15 days and 13 hours That is 15 days and 13 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "15 days and 13 hours", "printed": "15 days and 13 hours", "notation": null}
nlprog_det-setting-0053212
A 45-day notice period begins on November 11, 2025. On what date does it end? Python does the arithmetic: ```python from datetime import date, timedelta start = date(2025, 11, 11) # datetime.date(2025, 11, 11) end = start + timedelta(days=45) # datetime.date(2025, 12, 26) print(end.isoformat()) ``` It prints 2025-12...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "2025-12-26", "printed": "2025-12-26", "notation": null}
nlprog_det-setting-0053213
An invoice lists 31 chairs at $15 each, plus 10% sales tax. What is the invoice total? The invoice total is $511.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "511.50", "printed": "511.50", "notation": null}
nlprog_det-setting-0053214
A water bill is $15 plus $3.50 per thousand gallons beyond the first 3 thousand. What is the bill for 10 thousand gallons? Python makes this quick: ```python base = 15 rate = 3.5 used = 10 free = 3 bill = base + rate * max(0, used - free) # 39.5 print(f"{bill:.2f}") ``` Execution prints 39.50. $39.50 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "39.50", "printed": "39.50", "notation": null}
nlprog_det-setting-0053215
<|start|><|system|> Answer the user's question directly.<|eot|> <|user|> A car gets 36 miles per gallon. Gas is $3.45 a gallon. What does fuel cost for a 180-mile trip?<|eot|> <|assistant|> Fuel costs $17.25.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer the user's question directly." }, { "role": "user", "content": "A car gets 36 miles per gallon. Gas is $3.45 a gallon. What does fuel cost for a 180-mile trip?" }, { "role": "assistant", "content": "Fuel costs $17.25." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
61
{"gold": "17.25", "printed": "17.25", "notation": null}
nlprog_det-setting-0053216
Convert 3 h 55 min (the length of a deposition) to minutes. Program: ```python hours = 3 minutes = 55 total_minutes = hours * 60 + minutes # 235 print(total_minutes) ``` Out: 235 That is 235 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "235", "printed": "235", "notation": null}
nlprog_det-setting-0053218
A 2% increase is applied to $1,500 monthly rent. What is the new amount? ```python rent = 1500 increase = 2 / 100 new_rent = rent * (1 + increase) print(f"{new_rent:.2f}") ``` Result: 1530.00 The new rent is $1,530.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "1530.00", "printed": "1530.00", "notation": null}
nlprog_det-setting-0053219
<|start|><|user|> A clerk's office charges $405 for each filing. Jamal submits 19 filings. What is the total fee?<|eot|> <|assistant|> ```python fee = 405 filings = 19 total = fee * filings # 7695 print(total) ``` Run it and it prints: 7695 The total fee is $7,695.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A clerk's office charges $405 for each filing. Jamal submits 19 filings. What is the total fee?" }, { "role": "assistant", "content": "```python\nfee = 405\nfilings = 19\ntotal = fee * filings # 7695\nprint(total)\n```\nRun it and it prints: 7695\n\nThe total fee i...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "7695", "printed": "7695", "notation": null}
nlprog_det-setting-0053220
A recipe for 4 people uses 150 grams of lentils. How many grams are needed for 10 people? In Python: grams = 150 serves = 4 needed_for = 10 scaled = grams * needed_for // serves print(scaled) Running this gives 375. Use 375 g of lentils.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "375", "printed": "375", "notation": null}
nlprog_det-setting-0053221
<|start|><|system|> Be brief and correct.<|eot|> <|user|> At a 4% tax rate, what is the tax on $895.83?<|eot|> <|assistant|> $35.83 in tax.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be brief and correct." }, { "role": "user", "content": "At a 4% tax rate, what is the tax on $895.83?" }, { "role": "assistant", "content": "$35.83 in tax." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "35.83", "printed": "35.83", "notation": null}
nlprog_det-setting-0053222
136 files go into boxes of 20. How many boxes does that take? In code: ```python import math files = 136 per_box = 20 boxes = math.ceil(files / per_box) # 7 print(boxes) ``` The run gives: 7 It takes 7 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "7", "printed": "7", "notation": null}
nlprog_det-setting-0053223
An invoice lists 26 ink cartridges at $15 each, plus 5% sales tax. What is the invoice total? Python: ```python quantity = 26 unit_price = 15 subtotal = quantity * unit_price # 390 total = subtotal * (1 + 5 / 100) # 409.5 print(f"{total:.2f}") ``` (Program output: 409.50) The invoice total is $409.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "409.50", "printed": "409.50", "notation": null}
nlprog_det-setting-0053224
153 files go into boxes of 40. How many boxes does that take? Python version: ```python import math files = 153 per_box = 40 boxes = math.ceil(files / per_box) # 4 print(boxes) ``` Interpreter output: 4 It takes 4 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0053226
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> How long, in days, is it from November 5, 2020 until January 7, 2021?<|eot|> <|assistant|> ```python from datetime import date first = date(2020, 11, 5) # datetime.date(2020, 11, 5) second = date(2021, 1, 7) # datetime.date(2021, 1, 7) print((second - ...
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "role": "user", "content": "How long, in days, is it from November 5, 2020 until January 7, 2021?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2020, 11, 5) # datetime.dat...
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "63", "printed": "63", "notation": null}
nlprog_det-setting-0053227
<|start|><|system|> Tool definitions: [{"name": "calc", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "lookup_statute", "description": "Loo...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"calc\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snipp...
nlprog_det
setting
original
null
deterministic
[]
[]
314
{"gold": "11848.50", "printed": "11848.50", "notation": null}
nlprog_det-setting-0053228
A penalty of $250 a day accrues, capped at $2,500. What is owed after 23 days? In code: ```python per_day = 250 days = 23 cap = 2500 fine = min(per_day * days, cap) print(fine) ``` Output = 2500 The fine is $2,500.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0053229
<|start|><|user|> Flooring at $6/sq ft for a 21 ft × 14 ft room costs how much?<|eot|> <|assistant|> The flooring costs $1,764.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Flooring at $6/sq ft for a 21 ft × 14 ft room costs how much?" }, { "role": "assistant", "content": "The flooring costs $1,764." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "1764", "printed": "1764", "notation": null}
nlprog_det-setting-0053230
A trial runs from March 12, 2025 to March 21, 2025, counting both days. How many calendar days is that? Python: from datetime import date first = date(2025, 3, 12) # datetime.date(2025, 3, 12) last = date(2025, 3, 21) # datetime.date(2025, 3, 21) days = (last - first).days + 1 # 10 print(days) T...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0053231
Zainab's scores were 104, 73, 74, 54, 52, 76 and 50. What is the average score? Computing it: ```python scores = [104, 73, 74, 54, 52, 76, 50] average = sum(scores) // len(scores) # 69 print(average) ``` Printed = 69 The average score is 69.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "69", "printed": "69", "notation": null}
nlprog_det-setting-0053234
At $24.22 an hour, what does 32 hours of work pay? ```python rate = 24.22 hours = 32 earnings = rate * hours # 775.04 print(f"{earnings:.2f}") ``` Out: 775.04 That earns $775.04.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "775.04", "printed": "775.04", "notation": null}
nlprog_det-setting-0053235
<|start|><|user|> A board has 49 members. A majority is more than half. How many votes make a majority?<|eot|> <|assistant|> ```python members = 49 majority = members // 2 + 1 # 25 print(majority) ``` Execution result — 25 25 members are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A board has 49 members. A majority is more than half. How many votes make a majority?" }, { "role": "assistant", "content": "```python\nmembers = 49\nmajority = members // 2 + 1 # 25\nprint(majority)\n```\nExecution result — 25\n\n25 members are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0053236
A customer buys 6 clipboards at $11 each, 1 ink cartridges at $17 each, 6 pens at $5 each, 5 badges at $26 each and pays with $250. How much change is due? $7 comes back.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
60
{"gold": "7", "printed": "7", "notation": null}
nlprog_det-setting-0053237
<|start|><|system|> Functions: [{"name": "python_exec", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> How many meters are in 53.3 kilometers?...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"python_exec\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program\"]}}]"...
nlprog_det
setting
original
null
deterministic
[]
[]
194
{"gold": "53300", "printed": "53300", "notation": null}
nlprog_det-setting-0053238
<|start|><|system|> You are a careful assistant.<|eot|> <|user|> Counting the first and last day, how many days are there from December 21, 2022 through December 29, 2022?<|eot|> <|assistant|> ```python from datetime import date first = date(2022, 12, 21) # datetime.date(2022, 12, 21) last = date(2022, 12, 29) # date...
chat
[ { "role": "system", "content": "You are a careful assistant." }, { "role": "user", "content": "Counting the first and last day, how many days are there from December 21, 2022 through December 29, 2022?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst...
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0053239
<|start|><|user|> How many minutes pass from 10:55 AM to 11:38 AM on the same day?<|eot|> <|assistant|> ```python start = 10 * 60 + 55 # 655 end = 11 * 60 + 38 # 698 print(end - start) ``` The program prints: 43 It is 43 minutes long.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many minutes pass from 10:55 AM to 11:38 AM on the same day?" }, { "role": "assistant", "content": "```python\nstart = 10 * 60 + 55 # 655\nend = 11 * 60 + 38 # 698\nprint(end - start)\n```\nThe program prints: 43\n\nIt is 43 minutes long." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "43", "printed": "43", "notation": null}
nlprog_det-setting-0053240
<|start|><|user|> 5 boxes hold 24 mugs each. After 19 are handed out, how many are left?<|eot|> <|assistant|> 101 mugs are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "5 boxes hold 24 mugs each. After 19 are handed out, how many are left?" }, { "role": "assistant", "content": "101 mugs are left." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "101", "printed": "101", "notation": null}
nlprog_det-setting-0053241
How many meters are in 8.2 kilometers? Python: ```python km = 8.2 meters = km * 1000 # 8200.0 print(round(meters)) ``` The program prints 8200, as expected. That is 8,200 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "8200", "printed": "8200", "notation": null}
nlprog_det-setting-0053242
<|start|><|user|> A $48,000 grant pays $6,000 up front and the rest in 3 equal installments. How large is each installment?<|eot|> <|assistant|> ```python grant = 48000 up_front = 6000 installments = 3 each = (grant - up_front) / installments # 14000.0 print(f"{each:.2f}") ``` # console output: 14000.00 $14,000.00 pe...
chat
[ { "role": "user", "content": "A $48,000 grant pays $6,000 up front and the rest in 3 equal installments. How large is each installment?" }, { "role": "assistant", "content": "```python\ngrant = 48000\nup_front = 6000\ninstallments = 3\neach = (grant - up_front) / installments # 14000.0\nprint(f...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "14000.00", "printed": "14000.00", "notation": null}
nlprog_det-setting-0053243
Xavier was born on April 8, 1993. How old is Xavier on June 7, 2022? Coded up: ```python from datetime import date born = date(1993, 4, 8) # datetime.date(1993, 4, 8) on = date(2022, 6, 7) # datetime.date(2022, 6, 7) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 29 print(age) ``` Runni...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
157
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0053244
<|start|><|user|> Counting the first and last day, how many days are there from November 4, 2022 through November 17, 2022?<|eot|> <|assistant|> from datetime import date first = date(2022, 11, 4) # datetime.date(2022, 11, 4) last = date(2022, 11, 17) # datetime.date(2022, 11, 17) days = (last - first...
chat
[ { "role": "user", "content": "Counting the first and last day, how many days are there from November 4, 2022 through November 17, 2022?" }, { "role": "assistant", "content": " from datetime import date\n first = date(2022, 11, 4) # datetime.date(2022, 11, 4)\n last = date(2022, 11, 17)...
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "14", "printed": "14", "notation": null}