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-0064159
<|start|><|user|> At a 4% tax rate, what is the tax on $828.47?<|eot|> <|assistant|> ```python price = 828.47 tax_rate = 4 / 100 # 0.04 tax = price * tax_rate # 33.1388 print(f"{tax:.2f}") ``` (Run result: 33.14) The tax is $33.14.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At a 4% tax rate, what is the tax on $828.47?" }, { "role": "assistant", "content": "```python\nprice = 828.47\ntax_rate = 4 / 100 # 0.04\ntax = price * tax_rate # 33.1388\nprint(f\"{tax:.2f}\")\n```\n(Run result: 33.14)\n\nThe tax is $33.14." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "33.14", "printed": "33.14", "notation": null}
nlprog_det-setting-0064160
Filing fees are $75 per document. What do 7 filings cost? Set it up in Python: ```python fee = 75 filings = 7 total = fee * filings print(total) ``` The code prints: 525 The total fee is $525.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "525", "printed": "525", "notation": null}
nlprog_det-setting-0064161
<|start|><|system|> You are a precise assistant.<|eot|> <|user|> How many 2-foot square tiles cover a 12 ft by 7 ft floor (round up)?<|eot|> <|assistant|> import math length = 12 width = 7 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 21 print(tiles) Run result: 21 It takes 21 t...
chat
[ { "role": "system", "content": "You are a precise assistant." }, { "role": "user", "content": "How many 2-foot square tiles cover a 12 ft by 7 ft floor (round up)?" }, { "role": "assistant", "content": " import math\n length = 12\n width = 7\n tile = 2\n tiles = math.c...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0064162
Split $6,672 between Goran and Rania in the ratio 3 to 5. What is Goran's share? Let the code do the arithmetic: total = 6672 parts_a = 3 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 2502 print(share_a) # printed: 2502 Goran gets $2,502.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "2502", "printed": "2502", "notation": null}
nlprog_det-setting-0064163
105 copies of a 16-page packet are printed at $0.08 per page. What is the cost? Python, step by step: ```python pages = 16 copies = 105 cost_per_page = 0.08 cost = pages * copies * cost_per_page # 134.4 print(f"{cost:.2f}") ``` Run result: 134.40 The job costs $134.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "134.40", "printed": "134.40", "notation": null}
nlprog_det-setting-0064164
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> A meal costs $30.99. How much is a 20% tip?<|eot|> <|assistant|> Leave $6.20.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "A meal costs $30.99. How much is a 20% tip?" }, { "role": "assistant", "content": "Leave $6.20." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "6.20", "printed": "6.20", "notation": null}
nlprog_det-setting-0064165
With 8 rows of 21 chairs and 26 empty chairs, how many chairs are taken? ```python rows = 8 per_row = 21 empty = 26 seated = rows * per_row - empty # 142 print(seated) ``` Execution prints 142. 142 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "142", "printed": "142", "notation": null}
nlprog_det-setting-0064166
Fixed costs are $2,500. Each unit sells for $40 and costs $36 to make. How many units must be sold to break even? A short script: ```python import math fixed = 2500 price = 40 variable = 36 units = math.ceil(fixed / (price - variable)) # 625 print(units) ``` The printout reads: 625 Break-even is 625 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "625", "printed": "625", "notation": null}
nlprog_det-setting-0064167
<|start|><|system|> Tool definitions: [{"name": "interpreter", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "get_weather", "description": "Get th...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"interpreter\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"progr...
nlprog_det
setting
original
null
deterministic
[]
[]
314
{"gold": "4:50 PM", "printed": "4:50 PM", "notation": null}
nlprog_det-setting-0064168
Revenue is $6,500 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)? The program: ```python revenue = 6500 costs = 4000 profit = revenue - costs # 2500 margin = profit / revenue * 100 # 38.46153846153847 print(round(margin, 1)) ``` (Output: 38.5) Profit is 38.5% of revenue.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "38.5", "printed": "38.5", "notation": null}
nlprog_det-setting-0064169
<|start|><|user|> A 24-month warranty starts on March 18, 2022. On what date does it end?<|eot|> <|assistant|> It expires on March 18, 2024.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 24-month warranty starts on March 18, 2022. On what date does it end?" }, { "role": "assistant", "content": "It expires on March 18, 2024." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "2024-03-18", "printed": "2024-03-18", "notation": null}
nlprog_det-setting-0064171
Liesel drove 267 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement? Computing it: ```python miles = 267 rate = 0.65 reimbursement = miles * rate # 173.55 print(f"{reimbursement:.2f}") ``` Execution prints 173.55, as expected. The reimbursement is $173.55.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "173.55", "printed": "173.55", "notation": null}
nlprog_det-setting-0064172
Parking is $4 per hour with a daily maximum of $24. What do 11 hours cost? Programmatically: ```python rate = 4 hours = 11 daily_max = 24 cost = min(rate * hours, daily_max) # 24 print(cost) ``` Running it prints 24, as expected. The charge is $24.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0064173
<|start|><|user|> A water bill is $15 plus $5.10 per thousand gallons beyond the first 0 thousand. What is the bill for 21 thousand gallons?<|eot|> <|assistant|> ```python base = 15 rate = 5.1 used = 21 free = 0 bill = base + rate * max(0, used - free) # 122.1 print(f"{bill:.2f}") ``` What it prints: 122.10 The bill ...
chat
[ { "role": "user", "content": "A water bill is $15 plus $5.10 per thousand gallons beyond the first 0 thousand. What is the bill for 21 thousand gallons?" }, { "role": "assistant", "content": "```python\nbase = 15\nrate = 5.1\nused = 21\nfree = 0\nbill = base + rate * max(0, used - free) # 122.1...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "122.10", "printed": "122.10", "notation": null}
nlprog_det-setting-0064174
<|start|><|system|> You help with homework problems.<|eot|> <|user|> A count moves from 500 to 575. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> ```python old = 500 new = 575 change = (new - old) / old * 100 # 15.0 print(round(change)) ``` (Printed result: 15) The change is 15%.<|...
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "A count moves from 500 to 575. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": "```python\nold = 500\nnew = 575\nchange = (new - old) ...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0064175
How many days are there from November 22, 2018 to April 27, 2019? Let the code do the arithmetic: ```python from datetime import date first = date(2018, 11, 22) # datetime.date(2018, 11, 22) second = date(2019, 4, 27) # datetime.date(2019, 4, 27) print((second - first).days) ``` (Result: 156) It is 156 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "156", "printed": "156", "notation": null}
nlprog_det-setting-0064176
A car travels 572 miles in 2 hours. What is its average speed in miles per hour? Let the code do the arithmetic: ```python distance = 572 hours = 2 speed = distance / hours # 286.0 print(round(speed)) ``` (Program output: 286) The average speed is 286 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "286", "printed": "286", "notation": null}
nlprog_det-setting-0064177
What percentage of $8,000 is $1,400? Here is a short program for it. ```python budget = 8000 spent = 1400 percent = spent / budget * 100 # 17.5 print(round(percent, 1)) ``` Interpreter output — 17.5 That is 17.5% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "17.5", "printed": "17.5", "notation": null}
nlprog_det-setting-0064178
A 72-page report must be reviewed in 4 days. How many pages a day is that, evenly? Python version: ```python pages = 72 days = 4 per_day = pages // days # 18 print(per_day) ``` Out: 18 18 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0064179
Under a 25% contingency agreement, what fee is owed on a $150,000 award? Here is a short program for it. ```python recovery = 150000 rate = 25 / 100 # 0.25 fee = recovery * rate # 37500.0 print(f"{fee:.2f}") ``` The interpreter prints 37500.00. The fee is $37,500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "37500.00", "printed": "37500.00", "notation": null}
nlprog_det-setting-0064180
<|start|><|system|> You check calculations for an accounting team.<|eot|> <|user|> Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 46 hours?<|eot|> <|assistant|> ```python rate = 25.0 hours = 46 regular = 40 * rate # 1000.0 overtime = (hours - 40) * rate * 1.5 # 225.0 pay = regu...
chat
[ { "role": "system", "content": "You check calculations for an accounting team." }, { "role": "user", "content": "Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 46 hours?" }, { "role": "assistant", "content": "```python\nrate = 25.0\nhours = 46\...
nlprog_det
setting
original
null
deterministic
[]
[]
160
{"gold": "1225.00", "printed": "1225.00", "notation": null}
nlprog_det-setting-0064181
<|start|><|system|> Tool definitions: {"name": "calc", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> On which weekday doe...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"calc\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required...
nlprog_det
setting
original
null
deterministic
[]
[]
202
{"gold": "Friday", "printed": "Friday", "notation": null}
nlprog_det-setting-0064182
The rules require 1/3 of 43 members (round up) to be present. How many is that? Translated to Python: ```python import math members = 43 quorum = math.ceil(members * 1 / 3) # 15 print(quorum) ``` Run output — 15 That is 15 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0064183
A recipe for 2 people uses 300 grams of lentils. How many grams are needed for 6 people? Set it up in Python: ```python grams = 300 serves = 2 needed_for = 6 scaled = grams * needed_for // serves # 900 print(scaled) ``` (Out: 900) 900 grams of lentils are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0064184
<|start|><|user|> 3 boxes hold 8 envelopes each. After 12 are handed out, how many are left?<|eot|> <|assistant|> ```python boxes = 3 per_box = 8 given_away = 12 left = boxes * per_box - given_away print(left) ``` # execution result: 12 That leaves 12 envelopes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "3 boxes hold 8 envelopes each. After 12 are handed out, how many are left?" }, { "role": "assistant", "content": "```python\nboxes = 3\nper_box = 8\ngiven_away = 12\nleft = boxes * per_box - given_away\nprint(left)\n```\n# execution result: 12\n\nThat leaves 12 enve...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0064185
Parking is $5 per hour with a daily maximum of $15. What do 10 hours cost? Python: ```python rate = 5 hours = 10 daily_max = 15 cost = min(rate * hours, daily_max) print(cost) ``` The program outputs 15. Parking costs $15.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0064186
Shipping costs $12 plus $1.20 per pound. What does a 39-pound parcel cost to ship? Let's compute it with Python. ```python base = 12 per_pound = 1.2 weight = 39 cost = base + per_pound * weight # 58.8 print(f"{cost:.2f}") ``` Out: 58.80 Shipping costs $58.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "58.80", "printed": "58.80", "notation": null}
nlprog_det-setting-0064187
<|start|><|system|> Available functions (JSON Schema): {"name": "calculator", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}} {"name": "define_word", "description": "Re...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"calculator\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\...
nlprog_det
setting
original
null
deterministic
[]
[]
307
{"gold": "108.00", "printed": "108.00", "notation": null}
nlprog_det-setting-0064188
A 13 × 3 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up? Computation in Python: ```python import math length = 13 width = 3 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 39 print(tiles) ``` Shell output: 39 It takes 39 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "39", "printed": "39", "notation": null}
nlprog_det-setting-0064189
<|start|><|system|> You may call the tools below. [{"name": "py_exec", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> How many of 59 votes m...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"py_exec\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": ...
nlprog_det
setting
original
null
deterministic
[]
[]
213
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0064190
<|start|><|system|> Double-check numbers before answering.<|eot|> <|user|> A 6-month warranty starts on January 18, 2019. On what date does it end?<|eot|> <|assistant|> from datetime import date start = date(2019, 1, 18) months = 6 years, month_index = divmod(start.month - 1 + months, 12) end = date...
chat
[ { "role": "system", "content": "Double-check numbers before answering." }, { "role": "user", "content": "A 6-month warranty starts on January 18, 2019. On what date does it end?" }, { "role": "assistant", "content": " from datetime import date\n start = date(2019, 1, 18)\n m...
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "2019-07-18", "printed": "2019-07-18", "notation": null}
nlprog_det-setting-0064191
<|start|><|system|> Tools you may use: [{"name": "calculator", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "convert_units", "description": "Convert a quantity...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"calculator\", \"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
[]
[]
345
{"gold": "2017-10-14", "printed": "2017-10-14", "notation": null}
nlprog_det-setting-0064192
Wen was born on January 3, 2000. How old is Wen on October 7, 2025? A short script: ```python from datetime import date born = date(2000, 1, 3) # datetime.date(2000, 1, 3) on = date(2025, 10, 7) # datetime.date(2025, 10, 7) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 25 print(age) ``...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0064193
At a 8% tax rate, what is the tax on $498.07? Python, step by step: price = 498.07 tax_rate = 8 / 100 # 0.08 tax = price * tax_rate # 39.8456 print(f"{tax:.2f}") Run output — 39.85 $39.85 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "39.85", "printed": "39.85", "notation": null}
nlprog_det-setting-0064194
What simple interest does $8,000 earn at 3% a year over 6 years? It earns $1,440.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "1440.00", "printed": "1440.00", "notation": null}
nlprog_det-setting-0064195
A $24,000 grant pays $3,000 up front and the rest in 12 equal installments. How large is each installment? ```python grant = 24000 up_front = 3000 installments = 12 each = (grant - up_front) / installments # 1750.0 print(f"{each:.2f}") ``` When run, it prints: 1750.00 $1,750.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "1750.00", "printed": "1750.00", "notation": null}
nlprog_det-setting-0064196
<|start|><|system|> Be concise.<|eot|> <|user|> 3 claimants share a $1,200 settlement equally. What is each share?<|eot|> <|assistant|> ```python settlement = 1200 parties = 3 share = settlement // parties # 400 print(share) ``` That prints 400. Each party receives $400.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "3 claimants share a $1,200 settlement equally. What is each share?" }, { "role": "assistant", "content": "```python\nsettlement = 1200\nparties = 3\nshare = settlement // parties # 400\nprint(share)\n```\n...
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "400", "printed": "400", "notation": null}
nlprog_det-setting-0064197
A claim accrued on June 3, 2012. The limitations period is 5 years. On what date does it expire? In Python: ```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.isoformat()) ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "2017-06-03", "printed": "2017-06-03", "notation": null}
nlprog_det-setting-0064198
A 30-day notice period begins on October 12, 2024. On what date does it end? The period ends on November 11, 2024.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "2024-11-11", "printed": "2024-11-11", "notation": null}
nlprog_det-setting-0064199
<|start|><|system|> You help paralegals with routine tasks.<|eot|> <|user|> Convert 0 °C to Fahrenheit.<|eot|> <|assistant|> It equals 32 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help paralegals with routine tasks." }, { "role": "user", "content": "Convert 0 °C to Fahrenheit." }, { "role": "assistant", "content": "It equals 32 degrees Fahrenheit." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
49
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0064200
At a 8% tax rate, what is the tax on $182.22? As Python: ```python price = 182.22 tax_rate = 8 / 100 # 0.08 tax = price * tax_rate # 14.5776 print(f"{tax:.2f}") ``` # program output: 14.58 $14.58 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "14.58", "printed": "14.58", "notation": null}
nlprog_det-setting-0064201
A $2,500 security deposit has deductions of $200, $60 and $150. How much is refunded? Python version: ```python deposit = 2500 deductions = [200, 60, 150] refund = deposit - sum(deductions) # 2090 print(refund) ``` On running, it outputs 2090. $2,090 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "2090", "printed": "2090", "notation": null}
nlprog_det-setting-0064203
<|start|><|user|> How many meters are in 46.8 kilometers?<|eot|> <|assistant|> 46,800 m.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many meters are in 46.8 kilometers?" }, { "role": "assistant", "content": "46,800 m." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "46800", "printed": "46800", "notation": null}
nlprog_det-setting-0064204
<|start|><|user|> Starting from $5,000, the team spends $465, $2,215, $1,659, $339. What remains?<|eot|> <|assistant|> ```python budget = 5000 expenses = [465, 2215, 1659, 339] left = budget - sum(expenses) # 322 print(left) ``` Printed result — 322 $322 is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting from $5,000, the team spends $465, $2,215, $1,659, $339. What remains?" }, { "role": "assistant", "content": "```python\nbudget = 5000\nexpenses = [465, 2215, 1659, 339]\nleft = budget - sum(expenses) # 322\nprint(left)\n```\nPrinted result — 322\n\n$322 i...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "322", "printed": "322", "notation": null}
nlprog_det-setting-0064205
The bridge was finished in 2001. How many years had passed by 2039? Here is a short program for it. ```python start_year = 2001 end_year = 2039 print(end_year - start_year) ``` Execution prints 38, as expected. 38 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "38", "printed": "38", "notation": null}
nlprog_det-setting-0064206
Each storage box holds 20 files. How many boxes are needed for 891 files? Computation in Python: import math files = 891 per_box = 20 boxes = math.ceil(files / per_box) # 45 print(boxes) Run output — 45 45 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "45", "printed": "45", "notation": null}
nlprog_det-setting-0064207
A 220-mile drive at a steady 40 mph takes how many minutes? The trip takes 330 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
25
{"gold": "330", "printed": "330", "notation": null}
nlprog_det-setting-0064208
How much is a $59 daily meal allowance over 4 days? Let's compute it with Python. ```python days = 4 meal_rate = 59 total = days * meal_rate # 236 print(total) ``` It prints: 236 The allowance is $236.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "236", "printed": "236", "notation": null}
nlprog_det-setting-0064209
Printing costs 10 cents a page. What does it cost to print 142 copies of a 56-page handout? Python does the arithmetic: ```python pages = 56 copies = 142 cost_per_page = 0.1 cost = pages * copies * cost_per_page # 795.2 print(f"{cost:.2f}") ``` Console output — 795.20 The job costs $795.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "795.20", "printed": "795.20", "notation": null}
nlprog_det-setting-0064210
<|start|><|user|> Express 389 hours in days and hours.<|eot|> <|assistant|> ```python hours = 389 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` (Execution result: 16 days and 5 hours) That is 16 days and 5 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Express 389 hours in days and hours." }, { "role": "assistant", "content": "```python\nhours = 389\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\n(Execution result: 16 days and 5 hours)\n\nThat is 16 days and 5 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "16 days and 5 hours", "printed": "16 days and 5 hours", "notation": null}
nlprog_det-setting-0064211
<|start|><|user|> Under a 35% contingency agreement, what fee is owed on a $150,000 award?<|eot|> <|assistant|> ```python recovery = 150000 rate = 35 / 100 # 0.35 fee = recovery * rate # 52500.0 print(f"{fee:.2f}") ``` Printed: 52500.00 The lawyer's fee comes to $52,500.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Under a 35% contingency agreement, what fee is owed on a $150,000 award?" }, { "role": "assistant", "content": "```python\nrecovery = 150000\nrate = 35 / 100 # 0.35\nfee = recovery * rate # 52500.0\nprint(f\"{fee:.2f}\")\n```\nPrinted: 52500.00\n\nThe lawyer's fee...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "52500.00", "printed": "52500.00", "notation": null}
nlprog_det-setting-0064212
Papers were served by mail on February 14, 2026. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date? The response is due on March 3, 2026.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
48
{"gold": "2026-03-03", "printed": "2026-03-03", "notation": null}
nlprog_det-setting-0064213
$2,000 is invested at 2% compounded yearly. What is it worth after 5 years? principal = 2000 rate = 2 / 100 # 0.02 years = 5 value = principal * (1 + rate) ** years # 2208.1616064 print(f"{value:.2f}") # printed: 2208.16 It is worth $2,208.16.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "2208.16", "printed": "2208.16", "notation": null}
nlprog_det-setting-0064214
A $48,000 grant pays $6,000 up front and the rest in 12 equal installments. How large is each installment? Python code: ```python grant = 48000 up_front = 6000 installments = 12 each = (grant - up_front) / installments # 3500.0 print(f"{each:.2f}") ``` Result: 3500.00 $3,500.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "3500.00", "printed": "3500.00", "notation": null}
nlprog_det-setting-0064215
<|start|><|user|> Rania drove 160 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?<|eot|> <|assistant|> ```python miles = 160 rate = 0.65 reimbursement = miles * rate # 104.0 print(f"{reimbursement:.2f}") ``` It prints: 104.00 Rania is owed $104.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rania drove 160 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?" }, { "role": "assistant", "content": "```python\nmiles = 160\nrate = 0.65\nreimbursement = miles * rate # 104.0\nprint(f\"{reimbursement:.2f}\")\n```\nIt print...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "104.00", "printed": "104.00", "notation": null}
nlprog_det-setting-0064216
<|start|><|user|> A customer buys 3 toner kits at $16 each, 3 ink cartridges at $27 each, 3 flash drives at $21 each, 5 ink cartridges at $5 each and pays with $250. How much change is due?<|eot|> <|assistant|> ```python items = [(3, 16), (3, 27), (3, 21), (5, 5)] total = sum(q * p for q, p in items) # 217 paid = 250 ...
chat
[ { "role": "user", "content": "A customer buys 3 toner kits at $16 each, 3 ink cartridges at $27 each, 3 flash drives at $21 each, 5 ink cartridges at $5 each and pays with $250. How much change is due?" }, { "role": "assistant", "content": "```python\nitems = [(3, 16), (3, 27), (3, 21), (5, 5)]\...
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "33", "printed": "33", "notation": null}
nlprog_det-setting-0064218
<|start|><|user|> 3 claimants share a $7,350 settlement equally. What is each share?<|eot|> <|assistant|> Each party receives $2,450.<|eot|> <|end|>
chat
[ { "role": "user", "content": "3 claimants share a $7,350 settlement equally. What is each share?" }, { "role": "assistant", "content": "Each party receives $2,450." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "2450", "printed": "2450", "notation": null}
nlprog_det-setting-0064220
<|start|><|user|> If a 75-minute appointment begins at 8:15 AM, what time does it finish?<|eot|> <|assistant|> ```python start = 8 * 60 + 15 end = start + 75 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Shell output — 9:30 AM It ends at 9:30 AM.<|eot|> <...
chat
[ { "role": "user", "content": "If a 75-minute appointment begins at 8:15 AM, what time does it finish?" }, { "role": "assistant", "content": "```python\nstart = 8 * 60 + 15\nend = start + 75\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}...
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "9:30 AM", "printed": "9:30 AM", "notation": null}
nlprog_det-setting-0064221
A 6 lb package ships at $12 base plus $0.75/lb. What is the charge? The charge is $16.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "16.50", "printed": "16.50", "notation": null}
nlprog_det-setting-0064222
A 6-month warranty starts on December 11, 2020. On what date does it end? As Python: ```python from datetime import date start = date(2020, 12, 11) months = 6 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` It outputs 2021-...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "2021-06-11", "printed": "2021-06-11", "notation": null}
nlprog_det-setting-0064223
A kettle costs $40. It is 40% off. What is the sale price? Code: ```python price = 40 discount = 40 / 100 # 0.4 sale_price = price * (1 - discount) # 24.0 print(f"{sale_price:.2f}") ``` Execution prints 24.00, as expected. The sale price is $24.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "24.00", "printed": "24.00", "notation": null}
nlprog_det-setting-0064224
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> How long, in days, is it from June 19, 2028 until October 13, 2028?<|eot|> <|assistant|> There are 116 days between the two dates.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "role": "user", "content": "How long, in days, is it from June 19, 2028 until October 13, 2028?" }, { "role": "assistant", "content": "There are 116 days between the two dates." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
50
{"gold": "116", "printed": "116", "notation": null}
nlprog_det-setting-0064225
<|start|><|system|> Answer the user's question directly.<|eot|> <|user|> Water costs $15 a month plus $4.75 for each 1,000 gallons over 2,000. What is owed for 21,000 gallons?<|eot|> <|assistant|> ```python base = 15 rate = 4.75 used = 21 free = 2 bill = base + rate * max(0, used - free) # 105.25 print(f"{bill:.2f}") ...
chat
[ { "role": "system", "content": "Answer the user's question directly." }, { "role": "user", "content": "Water costs $15 a month plus $4.75 for each 1,000 gallons over 2,000. What is owed for 21,000 gallons?" }, { "role": "assistant", "content": "```python\nbase = 15\nrate = 4.75\nused...
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "105.25", "printed": "105.25", "notation": null}
nlprog_det-setting-0064226
<|start|><|user|> A penalty of $50 a day accrues, capped at $1,000. What is owed after 34 days?<|eot|> <|assistant|> The fine is $1,000.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A penalty of $50 a day accrues, capped at $1,000. What is owed after 34 days?" }, { "role": "assistant", "content": "The fine is $1,000." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0064227
A 36-month warranty starts on August 5, 2022. On what date does it end? Program: ```python from datetime import date start = date(2022, 8, 5) months = 36 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` (Run result: 2025-08-...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "2025-08-05", "printed": "2025-08-05", "notation": null}
nlprog_det-setting-0064229
<|start|><|user|> 3 runs at 200 calories each burn how many calories in total?<|eot|> <|assistant|> ```python per_session = 200 sessions = 3 total = per_session * sessions # 600 print(total) ``` The program outputs: 600 600 calories in total.<|eot|> <|end|>
chat
[ { "role": "user", "content": "3 runs at 200 calories each burn how many calories in total?" }, { "role": "assistant", "content": "```python\nper_session = 200\nsessions = 3\ntotal = per_session * sessions # 600\nprint(total)\n```\nThe program outputs: 600\n\n600 calories in total." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0064230
Chen has 7 documents to file, and each filing costs $35. How much are the filing fees in total? As a program: ```python fee = 35 filings = 7 total = fee * filings # 245 print(total) ``` (Printed: 245) The filings cost $245 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "245", "printed": "245", "notation": null}
nlprog_det-setting-0064231
<|start|><|user|> How many minutes pass from 10:00 AM to 2:50 PM on the same day?<|eot|> <|assistant|> It is 290 minutes long.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many minutes pass from 10:00 AM to 2:50 PM on the same day?" }, { "role": "assistant", "content": "It is 290 minutes long." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "290", "printed": "290", "notation": null}
nlprog_det-setting-0064232
A shift runs from 8:20 AM to 12:25 PM. How long is it in minutes? We write it as a program: ```python start = 8 * 60 + 20 # 500 end = 12 * 60 + 25 # 745 print(end - start) ``` The program outputs: 245 245 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "245", "printed": "245", "notation": null}
nlprog_det-setting-0064233
<|start|><|system|> Give the answer first.<|eot|> <|user|> Paula earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 51-hour week?<|eot|> <|assistant|> ```python rate = 18.5 hours = 51 regular = 40 * rate # 740.0 overtime = (hours - 40) * rate * 1.5 # 305.25 pay = regular + overtime # 1...
chat
[ { "role": "system", "content": "Give the answer first." }, { "role": "user", "content": "Paula earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 51-hour week?" }, { "role": "assistant", "content": "```python\nrate = 18.5\nhours = 51\nregular = 40 * rat...
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "1045.25", "printed": "1045.25", "notation": null}
nlprog_det-setting-0064234
<|start|><|system|> Tools (call with JSON): {"name": "interpreter", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> <|user|> Filing fees are $45 per do...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"interpreter\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"...
nlprog_det
setting
original
null
deterministic
[]
[]
204
{"gold": "225", "printed": "225", "notation": null}
nlprog_det-setting-0064236
Papers were served by mail on September 1, 2026. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date? Here's the code. ```python from datetime import date, timedelta served = date(2026, 9, 1) # datetime.date(2026, 9, 1) response_days = 28 mail_days = 3 due = served + timedelta...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
182
{"gold": "2026-10-02", "printed": "2026-10-02", "notation": null}
nlprog_det-setting-0064237
What is the total rent on a 36-month lease at $975 a month? Python version: ```python monthly_rent = 975 months = 36 total = monthly_rent * months # 35100 print(total) ``` stdout: 35100 In total, $35,100 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "35100", "printed": "35100", "notation": null}
nlprog_det-setting-0064238
A meal costs $205.09. How much is a 25% tip? The computation: bill = 205.09 tip_rate = 25 / 100 # 0.25 tip = bill * tip_rate # 51.2725 print(f"{tip:.2f}") Out = 51.27 Leave $51.27.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "51.27", "printed": "51.27", "notation": null}
nlprog_det-setting-0064239
What is the total rent on a 12-month lease at $975 a month? In total, $11,700 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "11700", "printed": "11700", "notation": null}
nlprog_det-setting-0064240
Convert 15 °C to Fahrenheit. It equals 59 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "59", "printed": "59", "notation": null}
nlprog_det-setting-0064241
A $800 security deposit has deductions of $75, $200 and $85. How much is refunded? ```python deposit = 800 deductions = [75, 200, 85] refund = deposit - sum(deductions) # 440 print(refund) ``` The interpreter prints 440. The refund is $440.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "440", "printed": "440", "notation": null}
nlprog_det-setting-0064242
<|start|><|system|> You can call tools. Available tools: [{"name": "interpreter", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"interpreter\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python ...
nlprog_det
setting
original
null
deterministic
[]
[]
255
{"gold": "174.00", "printed": "174.00", "notation": null}
nlprog_det-setting-0064243
<|start|><|user|> The rules require 2/3 of 43 members (round up) to be present. How many is that?<|eot|> <|assistant|> import math members = 43 quorum = math.ceil(members * 2 / 3) # 29 print(quorum) The script prints 29. 29 members are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The rules require 2/3 of 43 members (round up) to be present. How many is that?" }, { "role": "assistant", "content": " import math\n members = 43\n quorum = math.ceil(members * 2 / 3) # 29\n print(quorum)\nThe script prints 29.\n\n29 members are needed...
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0064244
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> A meal costs $42.53. How much is a 18% tip?<|eot|> <|assistant|> ```python bill = 42.53 tip_rate = 18 / 100 # 0.18 tip = bill * tip_rate # 7.6554 print(f"{tip:.2f}") ``` Output of the run: 7.66 Leave $7.66.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "A meal costs $42.53. How much is a 18% tip?" }, { "role": "assistant", "content": "```python\nbill = 42.53\ntip_rate = 18 / 100 # 0.18\ntip = bill * tip_rate # 7.6554\nprint(f\"{tip:...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "7.66", "printed": "7.66", "notation": null}
nlprog_det-setting-0064245
511 files go into boxes of 15. How many boxes does that take? Here is a short program for it. ```python import math files = 511 per_box = 15 boxes = math.ceil(files / per_box) print(boxes) ``` Run result = 35 35 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "35", "printed": "35", "notation": null}
nlprog_det-setting-0064246
<|start|><|user|> A 7-day trip pays $64 a day for meals and $175 a night for lodging (6 nights). What is the total allowance?<|eot|> <|assistant|> ```python days = 7 meal_rate = 64 lodging_rate = 175 nights = days - 1 # 6 total = days * meal_rate + nights * lodging_rate # 1498 print(total) ``` Output of the run: 1498...
chat
[ { "role": "user", "content": "A 7-day trip pays $64 a day for meals and $175 a night for lodging (6 nights). What is the total allowance?" }, { "role": "assistant", "content": "```python\ndays = 7\nmeal_rate = 64\nlodging_rate = 175\nnights = days - 1 # 6\ntotal = days * meal_rate + nights * lo...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "1498", "printed": "1498", "notation": null}
nlprog_det-setting-0064248
A trial runs from April 3, 2027 to April 17, 2027, counting both days. How many calendar days is that? ```python from datetime import date first = date(2027, 4, 3) # datetime.date(2027, 4, 3) last = date(2027, 4, 17) # datetime.date(2027, 4, 17) days = (last - first).days + 1 # 15 print(days) ``` Shell output — 15 ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0064249
At $19.65 an hour, what does 20 hours of work pay? Python code: ```python rate = 19.65 hours = 20 earnings = rate * hours # 393.0 print(f"{earnings:.2f}") ``` # execution result: 393.00 That earns $393.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "393.00", "printed": "393.00", "notation": null}
nlprog_det-setting-0064250
<|start|><|user|> A 15 × 11 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?<|eot|> <|assistant|> 42 tiles are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 15 × 11 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?" }, { "role": "assistant", "content": "42 tiles are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "42", "printed": "42", "notation": null}
nlprog_det-setting-0064251
A count moves from 2,500 to 1,500. By what percent did it change (use a minus sign for a drop)? A Python solution: ```python old = 2500 new = 1500 change = (new - old) / old * 100 # -40.0 print(round(change)) ``` Printed = -40 It changed by -40%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "-40", "printed": "-40", "notation": null}
nlprog_det-setting-0064252
Equal monthly payments repay $2,400 plus 8% simple yearly interest over 36 months. How large is a payment? A Python solution: ```python principal = 2400 annual_rate = 8 / 100 # 0.08 months = 36 interest = principal * annual_rate * months / 12 # 576.0 payment = (principal + interest) / months # 82.66666666666667 pri...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "82.67", "printed": "82.67", "notation": null}
nlprog_det-setting-0064253
A hall has 18 rows of 23 seats, and 37 seats are empty. How many people are seated? Translated to Python: ```python rows = 18 per_row = 23 empty = 37 seated = rows * per_row - empty # 377 print(seated) ``` Printed: 377 377 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "377", "printed": "377", "notation": null}
nlprog_det-setting-0064254
<|start|><|user|> Counting only Monday through Friday, how many business days are there after March 1, 2021 through April 10, 2021?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2021, 3, 1) end = date(2021, 4, 10) 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 March 1, 2021 through April 10, 2021?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2021, 3, 1)\nend = date(2021, 4, 10)\ncount = 0\nfo...
nlprog_det
setting
original
null
deterministic
[]
[]
157
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0064255
<|start|><|user|> Leon buys 7 boxes of 6 tape rolls each and gives away 17 tape rolls. How many tape rolls are left?<|eot|> <|assistant|> ```python boxes = 7 per_box = 6 given_away = 17 left = boxes * per_box - given_away # 25 print(left) ``` Console: 25 25 tape rolls are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Leon buys 7 boxes of 6 tape rolls each and gives away 17 tape rolls. How many tape rolls are left?" }, { "role": "assistant", "content": "```python\nboxes = 7\nper_box = 6\ngiven_away = 17\nleft = boxes * per_box - given_away # 25\nprint(left)\n```\nConsole:\n25\n\...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0064256
The rules require 2/3 of 8 members (round up) to be present. How many is that? As a program: ```python import math members = 8 quorum = math.ceil(members * 2 / 3) # 6 print(quorum) ``` Result: 6 That is 6 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0064257
How many 2-foot square tiles cover a 4 ft by 9 ft floor (round up)? Program: ```python import math length = 4 width = 9 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 9 print(tiles) ``` stdout = 9 9 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0064258
<|start|><|user|> A recipe for 8 people uses 300 grams of rice. How many grams are needed for 6 people?<|eot|> <|assistant|> ```python grams = 300 serves = 8 needed_for = 6 scaled = grams * needed_for // serves # 225 print(scaled) ``` The script prints 225, as expected. 225 grams of rice are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A recipe for 8 people uses 300 grams of rice. How many grams are needed for 6 people?" }, { "role": "assistant", "content": "```python\ngrams = 300\nserves = 8\nneeded_for = 6\nscaled = grams * needed_for // serves # 225\nprint(scaled)\n```\nThe script prints 225, ...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "225", "printed": "225", "notation": null}
nlprog_det-setting-0064259
A customer buys 4 water bottles at $4 each, 4 markers at $29 each, 6 folders at $28 each and pays with $350. How much change is due? Computing it: ```python items = [(4, 4), (4, 29), (6, 28)] total = sum(q * p for q, p in items) paid = 350 change = paid - total print(change) ``` (Program output: 50) $50 comes back.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0064260
<|start|><|user|> Fines run at $50 per day up to a maximum of $2,500. How much after 29 days?<|eot|> <|assistant|> The fine is $1,450.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Fines run at $50 per day up to a maximum of $2,500. How much after 29 days?" }, { "role": "assistant", "content": "The fine is $1,450." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "1450", "printed": "1450", "notation": null}
nlprog_det-setting-0064261
A 84-page report must be reviewed in 3 days. How many pages a day is that, evenly? Python, step by step: ```python pages = 84 days = 3 per_day = pages // days # 28 print(per_day) ``` The script prints 28, as expected. That is 28 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0064262
<|start|><|user|> What is a 25% tip on a $123.89 bill?<|eot|> <|assistant|> ```python bill = 123.89 tip_rate = 25 / 100 # 0.25 tip = bill * tip_rate # 30.9725 print(f"{tip:.2f}") ``` Console output: 30.97 Leave $30.97.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is a 25% tip on a $123.89 bill?" }, { "role": "assistant", "content": "```python\nbill = 123.89\ntip_rate = 25 / 100 # 0.25\ntip = bill * tip_rate # 30.9725\nprint(f\"{tip:.2f}\")\n```\nConsole output: 30.97\n\nLeave $30.97." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "30.97", "printed": "30.97", "notation": null}
nlprog_det-setting-0064263
With 15% off, what does a $80 chair cost? Computation in Python: ```python price = 80 discount = 15 / 100 # 0.15 sale_price = price * (1 - discount) # 68.0 print(f"{sale_price:.2f}") ``` (Result: 68.00) It costs $68.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "68.00", "printed": "68.00", "notation": null}
nlprog_det-setting-0064264
What is the total rent on a 24-month lease at $1,200 a month? ```python monthly_rent = 1200 months = 24 total = monthly_rent * months # 28800 print(total) ``` # printed: 28800 The rent over the term is $28,800.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "28800", "printed": "28800", "notation": null}
nlprog_det-setting-0064265
<|start|><|system|> Keep answers short and correct.<|eot|> <|user|> 8 claimants share a $4,496 settlement equally. What is each share?<|eot|> <|assistant|> ```python settlement = 4496 parties = 8 share = settlement // parties print(share) ``` Program output — 562 Each party receives $562.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Keep answers short and correct." }, { "role": "user", "content": "8 claimants share a $4,496 settlement equally. What is each share?" }, { "role": "assistant", "content": "```python\nsettlement = 4496\nparties = 8\nshare = settlement // parties\nprint(...
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "562", "printed": "562", "notation": null}