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-0073349
How many minutes pass from 7:28 AM to 9:15 AM on the same day? Program: ```python start = 7 * 60 + 28 # 448 end = 9 * 60 + 15 # 555 print(end - start) ``` The interpreter prints 107. 107 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "107", "printed": "107", "notation": null}
nlprog_det-setting-0073350
<|start|><|user|> What simple interest does $8,000 earn at 2% a year over 4 years?<|eot|> <|assistant|> ```python principal = 8000 rate = 2 / 100 # 0.02 years = 4 interest = principal * rate * years # 640.0 print(f"{interest:.2f}") ``` Interpreter output — 640.00 It earns $640.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What simple interest does $8,000 earn at 2% a year over 4 years?" }, { "role": "assistant", "content": "```python\nprincipal = 8000\nrate = 2 / 100 # 0.02\nyears = 4\ninterest = principal * rate * years # 640.0\nprint(f\"{interest:.2f}\")\n```\nInterpreter output ...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "640.00", "printed": "640.00", "notation": null}
nlprog_det-setting-0073351
Rent of $900 goes up 2%. What is the new rent? We write it as a program: ```python rent = 900 increase = 2 / 100 # 0.02 new_rent = rent * (1 + increase) # 918.0 print(f"{new_rent:.2f}") ``` This prints: 918.00 The new rent is $918.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "918.00", "printed": "918.00", "notation": null}
nlprog_det-setting-0073354
Goods bought on June 8, 2026 carry a 36-month warranty. When does it expire? It expires on June 8, 2029.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "2029-06-08", "printed": "2029-06-08", "notation": null}
nlprog_det-setting-0073355
<|start|><|user|> A meal costs $55.43. How much is a 15% tip?<|eot|> <|assistant|> ```python bill = 55.43 tip_rate = 15 / 100 # 0.15 tip = bill * tip_rate # 8.314499999999999 print(f"{tip:.2f}") ``` Printed: 8.31 Leave $8.31.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A meal costs $55.43. How much is a 15% tip?" }, { "role": "assistant", "content": "```python\nbill = 55.43\ntip_rate = 15 / 100 # 0.15\ntip = bill * tip_rate # 8.314499999999999\nprint(f\"{tip:.2f}\")\n```\nPrinted: 8.31\n\nLeave $8.31." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "8.31", "printed": "8.31", "notation": null}
nlprog_det-setting-0073356
2.5 hours of work at $225 an hour: what is the total charge? ```python hours = 2.5 rate = 225 bill = hours * rate # 562.5 print(f"{bill:.2f}") ``` Out — 562.50 That comes to $562.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "562.50", "printed": "562.50", "notation": null}
nlprog_det-setting-0073357
At $0.67 per mile, what is the reimbursement for 189 miles? Tariq is owed $126.63.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "126.63", "printed": "126.63", "notation": null}
nlprog_det-setting-0073358
An invoice lists 21 staplers at $9 each, plus 8% sales tax. What is the invoice total? A few lines of Python do it: ```python quantity = 21 unit_price = 9 subtotal = quantity * unit_price # 189 total = subtotal * (1 + 8 / 100) # 204.12 print(f"{total:.2f}") ``` Program output: 204.12 The total with tax is $204.12.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "204.12", "printed": "204.12", "notation": null}
nlprog_det-setting-0073359
Goods bought on May 1, 2020 carry a 6-month warranty. When does it expire? Coded up: ```python from datetime import date start = date(2020, 5, 1) months = 6 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` (Out: 2020-11-01) ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "2020-11-01", "printed": "2020-11-01", "notation": null}
nlprog_det-setting-0073360
<|start|><|system|> You are a careful reviewer of figures.<|eot|> <|user|> 4 books come back 14 days late, at $0.20 a day each. What is the fine?<|eot|> <|assistant|> per_day = 0.2 days_late = 14 books = 4 fine = per_day * days_late * books # 11.200000000000001 print(f"{fine:.2f}") Console output —...
chat
[ { "role": "system", "content": "You are a careful reviewer of figures." }, { "role": "user", "content": "4 books come back 14 days late, at $0.20 a day each. What is the fine?" }, { "role": "assistant", "content": " per_day = 0.2\n days_late = 14\n books = 4\n fine = per_...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "11.20", "printed": "11.20", "notation": null}
nlprog_det-setting-0073361
<|start|><|user|> A service costs $15 a month or $132 a year. How much does the yearly plan save over 12 monthly payments?<|eot|> <|assistant|> ```python monthly = 15 yearly = 132 savings = monthly * 12 - yearly # 48 print(savings) ``` Shell output — 48 The annual plan saves $48.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A service costs $15 a month or $132 a year. How much does the yearly plan save over 12 monthly payments?" }, { "role": "assistant", "content": "```python\nmonthly = 15\nyearly = 132\nsavings = monthly * 12 - yearly # 48\nprint(savings)\n```\nShell output — 48\n\nTh...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0073362
<|start|><|system|> You have access to these functions: {"name": "run_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> 6.5 hour...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"run_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"...
nlprog_det
setting
original
null
deterministic
[]
[]
216
{"gold": "1625.00", "printed": "1625.00", "notation": null}
nlprog_det-setting-0073363
Convert 2,745 USD to EUR at 1 USD = 1.12 EUR. Let the code do the arithmetic: ```python amount = 2745 rate = 1.12 converted = amount * rate # 3074.4 print(f"{converted:.2f}") ``` (Printed: 3074.40) It converts to 3,074.40 EUR.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "3074.40", "printed": "3074.40", "notation": null}
nlprog_det-setting-0073364
Eamon was born on April 25, 1993. How old is Eamon on January 26, 2026? Set it up in Python: ```python from datetime import date born = date(1993, 4, 25) # datetime.date(1993, 4, 25) on = date(2026, 1, 26) # datetime.date(2026, 1, 26) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 32 pr...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
160
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0073365
Yoko lends $1,000 at 2% simple interest per year for 2 years. How much interest is earned? The interest is $40.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "40.00", "printed": "40.00", "notation": null}
nlprog_det-setting-0073366
A 12-month warranty starts on June 17, 2018. On what date does it end? The Python version: ```python from datetime import date start = date(2018, 6, 17) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Console: 2...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "2019-06-17", "printed": "2019-06-17", "notation": null}
nlprog_det-setting-0073367
With 24 rows of 19 chairs and 0 empty chairs, how many chairs are taken? Python does the arithmetic: ```python rows = 24 per_row = 19 empty = 0 seated = rows * per_row - empty # 456 print(seated) ``` When run, it prints 456, as expected. 456 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "456", "printed": "456", "notation": null}
nlprog_det-setting-0073368
A car travels 380 miles in 2 hours. What is its average speed in miles per hour? Python, step by step: ```python distance = 380 hours = 2 speed = distance / hours # 190.0 print(round(speed)) ``` Printed: 190 The average speed is 190 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "190", "printed": "190", "notation": null}
nlprog_det-setting-0073369
7 walks at 350 calories each burn how many calories in total? Program: ```python per_session = 350 sessions = 7 total = per_session * sessions # 2450 print(total) ``` The run gives: 2450 2450 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "2450", "printed": "2450", "notation": null}
nlprog_det-setting-0073370
<|start|><|user|> Someone born March 1, 1997 turns how old by March 14, 2028? Give the age in whole years.<|eot|> <|assistant|> ```python from datetime import date born = date(1997, 3, 1) on = date(2028, 3, 14) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) print(age) ``` Result — 31 The age...
chat
[ { "role": "user", "content": "Someone born March 1, 1997 turns how old by March 14, 2028? Give the age in whole years." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1997, 3, 1)\non = date(2028, 3, 14)\nage = on.year - born.year - ((on.month, on.day) < (...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "31", "printed": "31", "notation": null}
nlprog_det-setting-0073371
<|start|><|user|> A library charges $0.20 per book per day late. What is the fine for 2 books that are 29 days late?<|eot|> <|assistant|> per_day = 0.2 days_late = 29 books = 2 fine = per_day * days_late * books # 11.600000000000001 print(f"{fine:.2f}") Result: 11.60 $11.60 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A library charges $0.20 per book per day late. What is the fine for 2 books that are 29 days late?" }, { "role": "assistant", "content": " per_day = 0.2\n days_late = 29\n books = 2\n fine = per_day * days_late * books # 11.600000000000001\n print(f\...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "11.60", "printed": "11.60", "notation": null}
nlprog_det-setting-0073372
Scale 240 g of sugar from 6 servings to 3 servings. Programmatically: ```python grams = 240 serves = 6 needed_for = 3 scaled = grams * needed_for // serves # 120 print(scaled) ``` It outputs 120. Use 120 g of sugar.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0073373
<|start|><|system|> You are a careful assistant.<|eot|> <|user|> Divide 107 items among 5 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|> <|assistant|> ```python total = 107 groups = 5 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left...
chat
[ { "role": "system", "content": "You are a careful assistant." }, { "role": "user", "content": "Divide 107 items among 5 groups as evenly as possible with equal groups. How many per group, and how many remain?" }, { "role": "assistant", "content": "```python\ntotal = 107\ngroups = 5\n...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "21 each, 2 left over", "printed": "21 each, 2 left over", "notation": null}
nlprog_det-setting-0073374
<|start|><|system|> You may call the tools below. [{"name": "sandbox_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "define...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"sandbox_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source...
nlprog_det
setting
original
null
deterministic
[]
[]
406
{"gold": "187.00", "printed": "187.00", "notation": null}
nlprog_det-setting-0073375
<|start|><|user|> Parking is $4 per hour with a daily maximum of $24. What do 7 hours cost?<|eot|> <|assistant|> ```python rate = 4 hours = 7 daily_max = 24 cost = min(rate * hours, daily_max) # 24 print(cost) ``` Run result = 24 Parking costs $24.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Parking is $4 per hour with a daily maximum of $24. What do 7 hours cost?" }, { "role": "assistant", "content": "```python\nrate = 4\nhours = 7\ndaily_max = 24\ncost = min(rate * hours, daily_max) # 24\nprint(cost)\n```\nRun result = 24\n\nParking costs $24." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0073376
A count moves from 1,000 to 850. By what percent did it change (use a minus sign for a drop)? Python: ```python old = 1000 new = 850 change = (new - old) / old * 100 # -15.0 print(round(change)) ``` Printed = -15 It changed by -15%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "-15", "printed": "-15", "notation": null}
nlprog_det-setting-0073377
<|start|><|user|> A recipe for 8 people uses 300 grams of rice. How many grams are needed for 2 people?<|eot|> <|assistant|> 75 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 2 people?" }, { "role": "assistant", "content": "75 grams of rice are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "75", "printed": "75", "notation": null}
nlprog_det-setting-0073379
If a 3-year limitations period starts on January 6, 2022, when does it end? A short script: ```python from datetime import date accrued = date(2022, 1, 6) # datetime.date(2022, 1, 6) years = 3 expires = accrued.replace(year=accrued.year + years) # datetime.date(2025, 1, 6) print(expires.isoformat()) ``` On running, ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "2025-01-06", "printed": "2025-01-06", "notation": null}
nlprog_det-setting-0073381
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value"...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"},...
nlprog_det
setting
original
null
deterministic
[]
[]
336
{"gold": "100.10", "printed": "100.10", "notation": null}
nlprog_det-setting-0073382
<|start|><|user|> What day of the week is November 28, 2025?<|eot|> <|assistant|> November 28, 2025 is a Friday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What day of the week is November 28, 2025?" }, { "role": "assistant", "content": "November 28, 2025 is a Friday." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "Friday", "printed": "Friday", "notation": null}
nlprog_det-setting-0073383
<|start|><|user|> If a 75-minute hearing begins at 2:20 PM, what time does it finish?<|eot|> <|assistant|> ```python start = 14 * 60 + 20 end = start + 75 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` When run, it prints 3:35 PM. It ends at 3:35 PM.<|eot|...
chat
[ { "role": "user", "content": "If a 75-minute hearing begins at 2:20 PM, what time does it finish?" }, { "role": "assistant", "content": "```python\nstart = 14 * 60 + 20\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
[]
[]
131
{"gold": "3:35 PM", "printed": "3:35 PM", "notation": null}
nlprog_det-setting-0073384
Starting with 1516 markers and using 34 per day, how many remain after 17 days? stock = 1516 per_day = 34 days = 17 left = stock - per_day * days # 938 print(left) Executing it gives 938. 938 markers are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "938", "printed": "938", "notation": null}
nlprog_det-setting-0073386
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"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|> ...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"interpreter\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source co...
nlprog_det
setting
original
null
deterministic
[]
[]
237
{"gold": "75.00", "printed": "75.00", "notation": null}
nlprog_det-setting-0073387
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> A recipe for 4 people uses 100 grams of oats. How many grams are needed for 8 people?<|eot|> <|assistant|> ```python grams = 100 serves = 4 needed_for = 8 scaled = grams * needed_for // serves # 200 print(scaled) ``` Running it prints 200, as expected. ...
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "role": "user", "content": "A recipe for 4 people uses 100 grams of oats. How many grams are needed for 8 people?" }, { "role": "assistant", "content": "```python\ngrams = 100\nserves = 4\nneeded_for = 8\nscaled = gr...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "200", "printed": "200", "notation": null}
nlprog_det-setting-0073388
431 files go into boxes of 50. How many boxes does that take? Computation in Python: ```python import math files = 431 per_box = 50 boxes = math.ceil(files / per_box) # 9 print(boxes) ``` The program prints 9. 9 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0073389
<|start|><|user|> Prorate $2,400 of monthly rent for 17 days of a 31-day month.<|eot|> <|assistant|> The prorated rent is $1,316.13.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Prorate $2,400 of monthly rent for 17 days of a 31-day month." }, { "role": "assistant", "content": "The prorated rent is $1,316.13." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "1316.13", "printed": "1316.13", "notation": null}
nlprog_det-setting-0073390
A 4-day trip pays $59 a day for meals and $140 a night for lodging (3 nights). What is the total allowance? As Python: ```python days = 4 meal_rate = 59 lodging_rate = 140 nights = days - 1 # 3 total = days * meal_rate + nights * lodging_rate # 656 print(total) ``` Console output: 656 That comes to $656.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "656", "printed": "656", "notation": null}
nlprog_det-setting-0073391
A 3% increase is applied to $2,200 monthly rent. What is the new amount? The new rent is $2,266.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "2266.00", "printed": "2266.00", "notation": null}
nlprog_det-setting-0073392
<|start|><|user|> Revenue is $12,000 and costs are $8,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|> <|assistant|> ```python revenue = 12000 costs = 8000 profit = revenue - costs # 4000 margin = profit / revenue * 100 # 33.33333333333333 print(round(margin, 1)) ``` Out = 33.3 The margin...
chat
[ { "role": "user", "content": "Revenue is $12,000 and costs are $8,000. What is the profit margin as a percent of revenue (one decimal)?" }, { "role": "assistant", "content": "```python\nrevenue = 12000\ncosts = 8000\nprofit = revenue - costs # 4000\nmargin = profit / revenue * 100 # 33.3333333...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "33.3", "printed": "33.3", "notation": null}
nlprog_det-setting-0073393
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "python_exec", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"python_exec\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Pyth...
nlprog_det
setting
original
null
deterministic
[]
[]
283
{"gold": "2023-01-19", "printed": "2023-01-19", "notation": null}
nlprog_det-setting-0073394
A $150 dinner bill gets a 18% tip, and 6 people share the cost equally. What is each person's share? Each person pays $29.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "29.50", "printed": "29.50", "notation": null}
nlprog_det-setting-0073395
Revenue is $36,500 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)? Let the code do the arithmetic: ```python revenue = 36500 costs = 36000 profit = revenue - costs # 500 margin = profit / revenue * 100 # 1.36986301369863 print(round(margin, 1)) ``` Run it and it prints: 1.4 T...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "1.4", "printed": "1.4", "notation": null}
nlprog_det-setting-0073396
From 2013 to 2018, how many years is that? We can compute it in Python. ```python start_year = 2013 end_year = 2018 print(end_year - start_year) ``` Executing it gives 5. 5 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
71
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0073397
Fixed costs are $6,000. Each unit sells for $30 and costs $22 to make. How many units must be sold to break even? We write it as a program: ```python import math fixed = 6000 price = 30 variable = 22 units = math.ceil(fixed / (price - variable)) print(units) ``` It outputs 750. 750 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0073398
<|start|><|user|> Rent of $1,100 goes up 8%. What is the new rent?<|eot|> <|assistant|> It rises to $1,188.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rent of $1,100 goes up 8%. What is the new rent?" }, { "role": "assistant", "content": "It rises to $1,188.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "1188.00", "printed": "1188.00", "notation": null}
nlprog_det-setting-0073399
<|start|><|user|> 4 books come back 26 days late, at $0.15 a day each. What is the fine?<|eot|> <|assistant|> ```python per_day = 0.15 days_late = 26 books = 4 fine = per_day * days_late * books # 15.6 print(f"{fine:.2f}") ``` Run output: 15.60 $15.60 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "4 books come back 26 days late, at $0.15 a day each. What is the fine?" }, { "role": "assistant", "content": "```python\nper_day = 0.15\ndays_late = 26\nbooks = 4\nfine = per_day * days_late * books # 15.6\nprint(f\"{fine:.2f}\")\n```\nRun output: 15.60\n\n$15.60 i...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "15.60", "printed": "15.60", "notation": null}
nlprog_det-setting-0073400
A $2,000 security deposit has deductions of $75, $120 and $150. How much is refunded? $1,655 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "1655", "printed": "1655", "notation": null}
nlprog_det-setting-0073401
<|start|><|user|> Buying 1 file boxes at $11 each, 2 hard drives at $9 each, 5 sticky pads at $10 each, 3 tape rolls at $3 each, someone hands over $100. What change comes back?<|eot|> <|assistant|> ```python items = [(1, 11), (2, 9), (5, 10), (3, 3)] total = sum(q * p for q, p in items) # 88 paid = 100 change = paid ...
chat
[ { "role": "user", "content": "Buying 1 file boxes at $11 each, 2 hard drives at $9 each, 5 sticky pads at $10 each, 3 tape rolls at $3 each, someone hands over $100. What change comes back?" }, { "role": "assistant", "content": "```python\nitems = [(1, 11), (2, 9), (5, 10), (3, 3)]\ntotal = sum(...
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0073402
<|start|><|user|> With $36,000 in costs and $37,000 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|> <|assistant|> ```python revenue = 37000 costs = 36000 profit = revenue - costs # 1000 margin = profit / revenue * 100 # 2.7027027027027026 print(round(margin, 1)) ``` # out: 2.7 The margin ...
chat
[ { "role": "user", "content": "With $36,000 in costs and $37,000 in revenue, what percent of revenue is profit? Round to one decimal." }, { "role": "assistant", "content": "```python\nrevenue = 37000\ncosts = 36000\nprofit = revenue - costs # 1000\nmargin = profit / revenue * 100 # 2.7027027027...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "2.7", "printed": "2.7", "notation": null}
nlprog_det-setting-0073403
Express 61 hours in days and hours. ```python hours = 61 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Run result — 2 days and 13 hours 61 hours is 2 days and 13 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "2 days and 13 hours", "printed": "2 days and 13 hours", "notation": null}
nlprog_det-setting-0073404
At $16.82 an hour, what does 24 hours of work pay? In Python: ```python rate = 16.82 hours = 24 earnings = rate * hours # 403.68 print(f"{earnings:.2f}") ``` # output: 403.68 The pay is $403.68.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "403.68", "printed": "403.68", "notation": null}
nlprog_det-setting-0073405
Carmen's scores were 52, 63 and 95. What is the average score? Here is the program. ```python scores = [52, 63, 95] average = sum(scores) // len(scores) # 70 print(average) ``` Program output: 70 The mean is 70.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "70", "printed": "70", "notation": null}
nlprog_det-setting-0073406
11 of 20 members attended. What percent attended? ```python present = 11 total = 20 percent = present / total * 100 # 55.00000000000001 print(round(percent, 1)) ``` The interpreter prints: 55.0 55.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "55.0", "printed": "55.0", "notation": null}
nlprog_det-setting-0073407
178 files go into boxes of 40. How many boxes does that take? Python version: ```python import math files = 178 per_box = 40 boxes = math.ceil(files / per_box) # 5 print(boxes) ``` Out = 5 It takes 5 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0073408
<|start|><|user|> Fines run at $100 per day up to a maximum of $2,500. How much after 45 days?<|eot|> <|assistant|> ```python per_day = 100 days = 45 cap = 2500 fine = min(per_day * days, cap) print(fine) ``` Run it and it prints 2500. The fine is $2,500.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Fines run at $100 per day up to a maximum of $2,500. How much after 45 days?" }, { "role": "assistant", "content": "```python\nper_day = 100\ndays = 45\ncap = 2500\nfine = min(per_day * days, cap)\nprint(fine)\n```\nRun it and it prints 2500.\n\nThe fine is $2,500."...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0073409
156 copies of a 19-page packet are printed at $0.12 per page. What is the cost? Printing costs $355.68.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "355.68", "printed": "355.68", "notation": null}
nlprog_det-setting-0073410
$5,000 is invested at 4% compounded yearly. What is it worth after 3 years? Written as code: principal = 5000 rate = 4 / 100 # 0.04 years = 3 value = principal * (1 + rate) ** years # 5624.320000000001 print(f"{value:.2f}") (Console output: 5624.32) The balance is $5,624.32.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "5624.32", "printed": "5624.32", "notation": null}
nlprog_det-setting-0073411
At $22.78 an hour, what does 32 hours of work pay? The pay is $728.96.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "728.96", "printed": "728.96", "notation": null}
nlprog_det-setting-0073412
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> At 60 miles per hour, how many minutes does a 330-mile trip take?<|eot|> <|assistant|> ```python distance = 330 speed = 60 minutes = distance / speed * 60 # 330.0 print(round(minutes)) ``` This prints 330, as expected. 330 minutes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "role": "user", "content": "At 60 miles per hour, how many minutes does a 330-mile trip take?" }, { "role": "assistant", "content": "```python\ndistance = 330\nspeed = 60\nminutes = distance / speed * 60 # 330.0\npr...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "330", "printed": "330", "notation": null}
nlprog_det-setting-0073413
<|start|><|user|> The bridge was finished in 2011. How many years had passed by 2020?<|eot|> <|assistant|> ```python start_year = 2011 end_year = 2020 print(end_year - start_year) ``` stdout: 9 9 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The bridge was finished in 2011. How many years had passed by 2020?" }, { "role": "assistant", "content": "```python\nstart_year = 2011\nend_year = 2020\nprint(end_year - start_year)\n```\nstdout:\n9\n\n9 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
70
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0073414
At $0.67 per mile, what is the reimbursement for 525 miles? Vera is owed $351.75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "351.75", "printed": "351.75", "notation": null}
nlprog_det-setting-0073415
<|start|><|system|> You can call tools. Available tools: [{"name": "calculator", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> Fines run at...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"calculator\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"re...
nlprog_det
setting
original
null
deterministic
[]
[]
217
{"gold": "4100", "printed": "4100", "notation": null}
nlprog_det-setting-0073416
<|start|><|user|> A quorum is 3/5 of the 8 members, rounded up. How many members make a quorum?<|eot|> <|assistant|> ```python import math members = 8 quorum = math.ceil(members * 3 / 5) print(quorum) ``` The program outputs 5. That is 5 members.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A quorum is 3/5 of the 8 members, rounded up. How many members make a quorum?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 8\nquorum = math.ceil(members * 3 / 5)\nprint(quorum)\n```\nThe program outputs 5.\n\nThat is 5 members." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0073417
$2,000 is invested at 2% compounded yearly. What is it worth after 3 years? The balance is $2,122.42.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "2122.42", "printed": "2122.42", "notation": null}
nlprog_det-setting-0073418
A 594-page report must be reviewed in 11 days. How many pages a day is that, evenly? That is 54 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "54", "printed": "54", "notation": null}
nlprog_det-setting-0073419
7 boxes hold 12 binders each. After 11 are handed out, how many are left? A few lines of Python do it: ```python boxes = 7 per_box = 12 given_away = 11 left = boxes * per_box - given_away # 73 print(left) ``` Running it prints 73, as expected. 73 binders are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "73", "printed": "73", "notation": null}
nlprog_det-setting-0073420
How many of 57 votes make 67% (round up)? The program: ```python import math voters = 57 needed = math.ceil(voters * 67 / 100) # 39 print(needed) ``` stdout = 39 39 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "39", "printed": "39", "notation": null}
nlprog_det-setting-0073421
<|start|><|system|> Available functions (JSON Schema): {"name": "calculator", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> Filing fees ...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"calculator\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"...
nlprog_det
setting
original
null
deterministic
[]
[]
201
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0073422
<|start|><|user|> An office budget of $5,000 has expenses of $1,600, $1,280, $2,719. How much of the budget is left?<|eot|> <|assistant|> The remaining budget is -$599.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An office budget of $5,000 has expenses of $1,600, $1,280, $2,719. How much of the budget is left?" }, { "role": "assistant", "content": "The remaining budget is -$599." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
53
{"gold": "-599", "printed": "-599", "notation": null}
nlprog_det-setting-0073424
A penalty of $25 a day accrues, capped at $5,000. What is owed after 28 days? The fine is $700.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "700", "printed": "700", "notation": null}
nlprog_det-setting-0073425
Liesel earns a 8% commission on $13,956 of sales. What is the commission? The program: ```python sales = 13956 rate = 8 / 100 # 0.08 commission = sales * rate # 1116.48 print(f"{commission:.2f}") ``` Result: 1116.48 Liesel earns $1,116.48.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "1116.48", "printed": "1116.48", "notation": null}
nlprog_det-setting-0073426
How many weekdays (Monday to Friday) fall after August 20, 2019 up to and including September 12, 2019? There are 17 business days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0073427
Jonas buys 6 boxes of 8 flash drives each and gives away 20 flash drives. How many flash drives are left? Programmatically: ```python boxes = 6 per_box = 8 given_away = 20 left = boxes * per_box - given_away # 28 print(left) ``` Shell output — 28 28 flash drives are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0073428
A $1,000 security deposit has deductions of $60 and $45. How much is refunded? Coded up: ```python deposit = 1000 deductions = [60, 45] refund = deposit - sum(deductions) # 895 print(refund) ``` That prints: 895 $895 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "895", "printed": "895", "notation": null}
nlprog_det-setting-0073429
A settlement of $15,000 is split equally among 3 parties. How much does each party receive? Set it up in Python: ```python settlement = 15000 parties = 3 share = settlement // parties # 5000 print(share) ``` stdout = 5000 Each share is $5,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "5000", "printed": "5000", "notation": null}
nlprog_det-setting-0073430
<|start|><|user|> Count the days between April 1, 2024 and May 12, 2024.<|eot|> <|assistant|> ```python from datetime import date first = date(2024, 4, 1) # datetime.date(2024, 4, 1) second = date(2024, 5, 12) # datetime.date(2024, 5, 12) print((second - first).days) ``` The program outputs 41. It is 41 days.<|eot|>...
chat
[ { "role": "user", "content": "Count the days between April 1, 2024 and May 12, 2024." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2024, 4, 1) # datetime.date(2024, 4, 1)\nsecond = date(2024, 5, 12) # datetime.date(2024, 5, 12)\nprint((second - first...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "41", "printed": "41", "notation": null}
nlprog_det-setting-0073431
With 20% off, what does a $120 bicycle helmet cost? The Python version: ```python price = 120 discount = 20 / 100 # 0.2 sale_price = price * (1 - discount) # 96.0 print(f"{sale_price:.2f}") ``` When run, it prints 96.00, as expected. It costs $96.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "96.00", "printed": "96.00", "notation": null}
nlprog_det-setting-0073432
Someone born September 16, 2005 turns how old by May 9, 2023? Give the age in whole years. Computation in Python: from datetime import date born = date(2005, 9, 16) # datetime.date(2005, 9, 16) on = date(2023, 5, 9) # datetime.date(2023, 5, 9) age = on.year - born.year - ((on.month, on.day) < (born.m...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0073433
A service costs $12 a month or $126 a year. How much does the yearly plan save over 12 monthly payments? Computing it: ```python monthly = 12 yearly = 126 savings = monthly * 12 - yearly # 18 print(savings) ``` The program prints 18, as expected. $18 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0073434
<|start|><|user|> Each of Helga's walks burns 250 calories. How many calories over 3 walks?<|eot|> <|assistant|> per_session = 250 sessions = 3 total = per_session * sessions # 750 print(total) Printed result — 750 That burns 750 calories.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each of Helga's walks burns 250 calories. How many calories over 3 walks?" }, { "role": "assistant", "content": " per_session = 250\n sessions = 3\n total = per_session * sessions # 750\n print(total)\nPrinted result — 750\n\nThat burns 750 calories." ...
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0073435
Rania has 9 documents to file, and each filing costs $25. How much are the filing fees in total? The filings cost $225 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "225", "printed": "225", "notation": null}
nlprog_det-setting-0073436
<|start|><|user|> A hearing is set for October 25, 2022. What day of the week is that?<|eot|> <|assistant|> from datetime import date hearing = date(2022, 10, 25) # datetime.date(2022, 10, 25) print(hearing.strftime("%A")) # printed: Tuesday It is a Tuesday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hearing is set for October 25, 2022. What day of the week is that?" }, { "role": "assistant", "content": " from datetime import date\n hearing = date(2022, 10, 25) # datetime.date(2022, 10, 25)\n print(hearing.strftime(\"%A\"))\n# printed: Tuesday\n\nIt ...
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "Tuesday", "printed": "Tuesday", "notation": null}
nlprog_det-setting-0073438
<|start|><|user|> 12 boxes hold 24 envelopes each. After 9 are handed out, how many are left?<|eot|> <|assistant|> ```python boxes = 12 per_box = 24 given_away = 9 left = boxes * per_box - given_away # 279 print(left) ``` This prints 279, as expected. 279 envelopes are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "12 boxes hold 24 envelopes each. After 9 are handed out, how many are left?" }, { "role": "assistant", "content": "```python\nboxes = 12\nper_box = 24\ngiven_away = 9\nleft = boxes * per_box - given_away # 279\nprint(left)\n```\nThis prints 279, as expected.\n\n279...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "279", "printed": "279", "notation": null}
nlprog_det-setting-0073439
A measure needs at least 67% of 202 votes. How many votes is that, rounded up? Coded up: ```python import math voters = 202 needed = math.ceil(voters * 67 / 100) # 136 print(needed) ``` Executing it gives 136. At least 136 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "136", "printed": "136", "notation": null}
nlprog_det-setting-0073440
<|start|><|system|> Tools (call with JSON): {"name": "calc", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> <|user|> Starting with 1484 cables and usi...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"calc\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet...
nlprog_det
setting
original
null
deterministic
[]
[]
216
{"gold": "1016", "printed": "1016", "notation": null}
nlprog_det-setting-0073441
A 11 × 8 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up? Script: ```python import math length = 11 width = 8 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 88 print(tiles) ``` The run gives 88. It takes 88 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "88", "printed": "88", "notation": null}
nlprog_det-setting-0073442
A $9,000 loan carries 6% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment? Let's compute it with Python. ```python principal = 9000 annual_rate = 6 / 100 # 0.06 months = 36 interest = principal * annual_rate * months / 12 # 1620.0 payment = (pri...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "295.00", "printed": "295.00", "notation": null}
nlprog_det-setting-0073443
Count the days between August 22, 2025 and September 18, 2026. A few lines of Python do it: ```python from datetime import date first = date(2025, 8, 22) # datetime.date(2025, 8, 22) second = date(2026, 9, 18) # datetime.date(2026, 9, 18) print((second - first).days) ``` Executing it gives 392, as expected. There a...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "392", "printed": "392", "notation": null}
nlprog_det-setting-0073444
How many weekdays (Monday to Friday) fall after November 23, 2020 up to and including December 2, 2020? Code: ```python from datetime import date, timedelta start = date(2020, 11, 23) end = date(2020, 12, 2) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() < 5: ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "7", "printed": "7", "notation": null}
nlprog_det-setting-0073445
<|start|><|system|> Tool definitions: {"name": "math_engine", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> Count 10 days forward from ...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"math_engine\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"...
nlprog_det
setting
original
null
deterministic
[]
[]
230
{"gold": "2028-07-29", "printed": "2028-07-29", "notation": null}
nlprog_det-setting-0073446
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "python_exec", "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":...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"python_exec\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"d...
nlprog_det
setting
original
null
deterministic
[]
[]
250
{"gold": "120.00", "printed": "120.00", "notation": null}
nlprog_det-setting-0073447
<|start|><|system|> Tools (call with JSON): {"name": "python", "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|> A hall has 1...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"python\", \"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\"}}, \"...
nlprog_det
setting
original
null
deterministic
[]
[]
223
{"gold": "323", "printed": "323", "notation": null}
nlprog_det-setting-0073448
A 3 lb package ships at $5 base plus $2.50/lb. What is the charge? ```python base = 5 per_pound = 2.5 weight = 3 cost = base + per_pound * weight # 12.5 print(f"{cost:.2f}") ``` Running it prints 12.50, as expected. The charge is $12.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "12.50", "printed": "12.50", "notation": null}
nlprog_det-setting-0073449
How many minutes pass from 8:25 AM to 10:47 AM on the same day? Coded up: ```python start = 8 * 60 + 25 end = 10 * 60 + 47 print(end - start) ``` It prints 142, as expected. 142 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "142", "printed": "142", "notation": null}
nlprog_det-setting-0073450
Parking is $4 per hour with a daily maximum of $20. What do 11 hours cost? A short script: ```python rate = 4 hours = 11 daily_max = 20 cost = min(rate * hours, daily_max) print(cost) ``` The interpreter prints: 20 Parking costs $20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0073451
Each storage box holds 40 files. How many boxes are needed for 163 files? In code: ```python import math files = 163 per_box = 40 boxes = math.ceil(files / per_box) # 5 print(boxes) ``` The interpreter prints 5. 5 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0073452
<|start|><|user|> What day of the week is October 16, 2010?<|eot|> <|assistant|> October 16, 2010 is a Saturday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What day of the week is October 16, 2010?" }, { "role": "assistant", "content": "October 16, 2010 is a Saturday." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "Saturday", "printed": "Saturday", "notation": null}
nlprog_det-setting-0073453
What commission does Mateo make on $41,748 in sales at 2%? Here is a short program for it. ```python sales = 41748 rate = 2 / 100 # 0.02 commission = sales * rate # 834.96 print(f"{commission:.2f}") ``` (Result: 834.96) The commission is $834.96.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "834.96", "printed": "834.96", "notation": null}
nlprog_det-setting-0073454
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> A car travels 458 miles in 2 hours. What is its average speed in miles per hour?<|eot|> <|assistant|> ```python distance = 458 hours = 2 speed = distance / hours # 229.0 print(round(speed)) ``` The interpreter prints: 229 It averages 229 miles per ...
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "A car travels 458 miles in 2 hours. What is its average speed in miles per hour?" }, { "role": "assistant", "content": "```python\ndistance = 458\nhours = 2\nspeed = distance / hours ...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "229", "printed": "229", "notation": null}
nlprog_det-setting-0073455
Split $320 between Wanjiru and Reza in the ratio 3 to 5. What is Wanjiru's share? Python makes this quick: ```python total = 320 parts_a = 3 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 120 print(share_a) ``` The interpreter prints: 120 Wanjiru gets $120.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "120", "printed": "120", "notation": null}