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-0082250
Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 52 hours? A few lines of Python do it: ```python rate = 20.0 hours = 52 regular = 40 * rate # 800.0 overtime = (hours - 40) * rate * 1.5 # 360.0 pay = regular + overtime # 1160.0 print(f"{pay:.2f}") ``` This prints: 1160.00 The ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "1160.00", "printed": "1160.00", "notation": null}
nlprog_det-setting-0082251
A pack of 12 hard drives sells for $672. What does each cost? The unit price is $56.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "56", "printed": "56", "notation": null}
nlprog_det-setting-0082252
<|start|><|system|> You check calculations for an accounting team.<|eot|> <|user|> With $12,500 in costs and $15,000 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|> <|assistant|> ```python revenue = 15000 costs = 12500 profit = revenue - costs # 2500 margin = profit / revenue * 100 # 16.66...
chat
[ { "role": "system", "content": "You check calculations for an accounting team." }, { "role": "user", "content": "With $12,500 in costs and $15,000 in revenue, what percent of revenue is profit? Round to one decimal." }, { "role": "assistant", "content": "```python\nrevenue = 15000\nc...
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "16.7", "printed": "16.7", "notation": null}
nlprog_det-setting-0082253
Convert 33.6 km to meters. A few lines of Python do it: km = 33.6 meters = km * 1000 # 33600.0 print(round(meters)) # output: 33600 That is 33,600 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "33600", "printed": "33600", "notation": null}
nlprog_det-setting-0082254
How long, in days, is it from November 18, 2019 until September 1, 2020? The computation: ```python from datetime import date first = date(2019, 11, 18) # datetime.date(2019, 11, 18) second = date(2020, 9, 1) # datetime.date(2020, 9, 1) print((second - first).days) ``` Interpreter output — 288 There are 288 days be...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "288", "printed": "288", "notation": null}
nlprog_det-setting-0082255
How many whole days and leftover hours are in 217 hours? ```python hours = 217 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Execution prints 9 days and 1 hours, as expected. 217 hours is 9 days and 1 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "9 days and 1 hours", "printed": "9 days and 1 hours", "notation": null}
nlprog_det-setting-0082256
Rent of $1,800 goes up 6%. What is the new rent? One way, in code: ```python rent = 1800 increase = 6 / 100 # 0.06 new_rent = rent * (1 + increase) # 1908.0 print(f"{new_rent:.2f}") ``` The run gives 1908.00, as expected. It rises to $1,908.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "1908.00", "printed": "1908.00", "notation": null}
nlprog_det-setting-0082257
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> Meals are $79 per day and lodging $110 per night. What is the allowance for 5 days and 4 nights?<|eot|> <|assistant|> ```python days = 5 meal_rate = 79 lodging_rate = 110 nights = days - 1 # 4 total = days * meal_rate + nights * lodging_rate # 835 print(tot...
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "Meals are $79 per day and lodging $110 per night. What is the allowance for 5 days and 4 nights?" }, { "role": "assistant", "content": "```python\ndays = 5\nmeal_rate = 79\nlodging_rate = 110\n...
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "835", "printed": "835", "notation": null}
nlprog_det-setting-0082258
At 2% a month (simple), what interest builds on $2,500 over 4 months? Script: ```python balance = 2500 monthly_rate = 2 / 100 # 0.02 months = 4 interest = balance * monthly_rate * months # 200.0 print(f"{interest:.2f}") ``` When run, it prints 200.00. $200.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "200.00", "printed": "200.00", "notation": null}
nlprog_det-setting-0082259
<|start|><|system|> You are a careful assistant.<|eot|> <|user|> 288 volunteers are split into 3 equal teams. How many are on each team, and how many are left over?<|eot|> <|assistant|> ```python total = 288 groups = 3 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` st...
chat
[ { "role": "system", "content": "You are a careful assistant." }, { "role": "user", "content": "288 volunteers are split into 3 equal teams. How many are on each team, and how many are left over?" }, { "role": "assistant", "content": "```python\ntotal = 288\ngroups = 3\nper_group, rem...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "96 each, 0 left over", "printed": "96 each, 0 left over", "notation": null}
nlprog_det-setting-0082261
<|start|><|user|> Which is cheaper per unit: 6 for $12.06 (A) or 24 for $18.17 (B)?<|eot|> <|assistant|> ```python pack_a = 12.06 / 6 # 2.0100000000000002 pack_b = 18.17 / 24 # 0.7570833333333334 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` (Out: B) Pack B is cheaper per item.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Which is cheaper per unit: 6 for $12.06 (A) or 24 for $18.17 (B)?" }, { "role": "assistant", "content": "```python\npack_a = 12.06 / 6 # 2.0100000000000002\npack_b = 18.17 / 24 # 0.7570833333333334\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'B'\nprint(cheap...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0082262
<|start|><|user|> A service costs $15 a month or $168 a year. How much does the yearly plan save over 12 monthly payments?<|eot|> <|assistant|> ```python monthly = 15 yearly = 168 savings = monthly * 12 - yearly # 12 print(savings) ``` Output — 12 $12 is saved.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A service costs $15 a month or $168 a year. How much does the yearly plan save over 12 monthly payments?" }, { "role": "assistant", "content": "```python\nmonthly = 15\nyearly = 168\nsavings = monthly * 12 - yearly # 12\nprint(savings)\n```\nOutput — 12\n\n$12 is s...
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0082263
<|start|><|system|> You may call the tools below. [{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}, {"name": "run_python", "description":...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\": [\"tit...
nlprog_det
setting
original
null
deterministic
[]
[]
361
{"gold": "52.5", "printed": "52.5", "notation": null}
nlprog_det-setting-0082264
<|start|><|user|> Convert 4 h 22 min (the length of a deposition) to minutes.<|eot|> <|assistant|> ```python hours = 4 minutes = 22 total_minutes = hours * 60 + minutes # 262 print(total_minutes) ``` (Execution result: 262) That is 262 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 4 h 22 min (the length of a deposition) to minutes." }, { "role": "assistant", "content": "```python\nhours = 4\nminutes = 22\ntotal_minutes = hours * 60 + minutes # 262\nprint(total_minutes)\n```\n(Execution result: 262)\n\nThat is 262 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "262", "printed": "262", "notation": null}
nlprog_det-setting-0082265
<|start|><|user|> A library charges $0.25 per book per day late. What is the fine for 3 books that are 12 days late?<|eot|> <|assistant|> ```python per_day = 0.25 days_late = 12 books = 3 fine = per_day * days_late * books # 9.0 print(f"{fine:.2f}") ``` Output — 9.00 The fine is $9.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A library charges $0.25 per book per day late. What is the fine for 3 books that are 12 days late?" }, { "role": "assistant", "content": "```python\nper_day = 0.25\ndays_late = 12\nbooks = 3\nfine = per_day * days_late * books # 9.0\nprint(f\"{fine:.2f}\")\n```\nOu...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "9.00", "printed": "9.00", "notation": null}
nlprog_det-setting-0082266
Express 339 hours in days and hours. Python makes this quick: ```python hours = 339 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` It prints 14 days and 3 hours, as expected. That is 14 days and 3 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "14 days and 3 hours", "printed": "14 days and 3 hours", "notation": null}
nlprog_det-setting-0082267
<|start|><|user|> At 1.5% a month (simple), what interest builds on $2,500 over 5 months?<|eot|> <|assistant|> ```python balance = 2500 monthly_rate = 1.5 / 100 # 0.015 months = 5 interest = balance * monthly_rate * months # 187.5 print(f"{interest:.2f}") ``` (Out: 187.50) $187.50 accrues.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 1.5% a month (simple), what interest builds on $2,500 over 5 months?" }, { "role": "assistant", "content": "```python\nbalance = 2500\nmonthly_rate = 1.5 / 100 # 0.015\nmonths = 5\ninterest = balance * monthly_rate * months # 187.5\nprint(f\"{interest:.2f}\")\n...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "187.50", "printed": "187.50", "notation": null}
nlprog_det-setting-0082268
<|start|><|system|> Available functions (JSON Schema): [{"name": "calculator", "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|> <|user|> Con...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"calculator\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code...
nlprog_det
setting
original
null
deterministic
[]
[]
211
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0082269
<|start|><|user|> Straight-line depreciation: cost $18,000, salvage $6,000, 6 years. How much per year?<|eot|> <|assistant|> cost = 18000 salvage = 6000 years = 6 per_year = (cost - salvage) / years # 2000.0 print(f"{per_year:.2f}") # execution result: 2000.00 $2,000.00 a year.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Straight-line depreciation: cost $18,000, salvage $6,000, 6 years. How much per year?" }, { "role": "assistant", "content": " cost = 18000\n salvage = 6000\n years = 6\n per_year = (cost - salvage) / years # 2000.0\n print(f\"{per_year:.2f}\")\n# exe...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0082270
<|start|><|system|> Be concise.<|eot|> <|user|> A measure needs at least 67% of 233 votes. How many votes is that, rounded up?<|eot|> <|assistant|> ```python import math voters = 233 needed = math.ceil(voters * 67 / 100) # 157 print(needed) ``` Output of the run — 157 157 votes are needed.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "A measure needs at least 67% of 233 votes. How many votes is that, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 233\nneeded = math.ceil(voters * 67 / 100) # 157\nprin...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "157", "printed": "157", "notation": null}
nlprog_det-setting-0082271
What simple interest does $5,000 earn at 2% a year over 3 years? Program: principal = 5000 rate = 2 / 100 # 0.02 years = 3 interest = principal * rate * years # 300.0 print(f"{interest:.2f}") Run it and it prints 300.00. It earns $300.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "300.00", "printed": "300.00", "notation": null}
nlprog_det-setting-0082272
A pack of 10 rulers sells for $170. What does each cost? Set it up in Python: ```python total = 170 count = 10 per_item = total // count # 17 print(per_item) ``` The program prints 17, as expected. The unit price is $17.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0082273
Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 42 hours? Programmatically: ```python rate = 16.0 hours = 42 regular = 40 * rate # 640.0 overtime = (hours - 40) * rate * 1.5 # 48.0 pay = regular + overtime # 688.0 print(f"{pay:.2f}") ``` Execution result: 688.00 The weekly pa...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "688.00", "printed": "688.00", "notation": null}
nlprog_det-setting-0082274
4 claimants share a $2,640 settlement equally. What is each share? A short script: ```python settlement = 2640 parties = 4 share = settlement // parties # 660 print(share) ``` Program output: 660 Each party receives $660.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "660", "printed": "660", "notation": null}
nlprog_det-setting-0082275
Straight-line depreciation: cost $30,000, salvage $2,000, 4 years. How much per year? Let's compute it with Python. cost = 30000 salvage = 2000 years = 4 per_year = (cost - salvage) / years # 7000.0 print(f"{per_year:.2f}") It outputs 7000.00. $7,000.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "7000.00", "printed": "7000.00", "notation": null}
nlprog_det-setting-0082276
<|start|><|user|> Divide 252 items among 3 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|> <|assistant|> total = 252 groups = 3 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") It prints 84 each, 0 left over, a...
chat
[ { "role": "user", "content": "Divide 252 items among 3 groups as evenly as possible with equal groups. How many per group, and how many remain?" }, { "role": "assistant", "content": " total = 252\n groups = 3\n per_group, remainder = divmod(total, groups)\n print(f\"{per_group} each,...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "84 each, 0 left over", "printed": "84 each, 0 left over", "notation": null}
nlprog_det-setting-0082277
<|start|><|user|> The rules require 1/3 of 32 members (round up) to be present. How many is that?<|eot|> <|assistant|> ```python import math members = 32 quorum = math.ceil(members * 1 / 3) # 11 print(quorum) ``` stdout — 11 That is 11 members.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The rules require 1/3 of 32 members (round up) to be present. How many is that?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 32\nquorum = math.ceil(members * 1 / 3) # 11\nprint(quorum)\n```\nstdout — 11\n\nThat is 11 members." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0082278
The paralegal logged 12 hours at a rate of $410. How much is billed? As a program: ```python hours = 12 rate = 410 bill = hours * rate # 4920 print(f"{bill:.2f}") ``` Python prints 4920.00, as expected. That comes to $4,920.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "4920.00", "printed": "4920.00", "notation": null}
nlprog_det-setting-0082279
<|start|><|user|> A pack of 6 folders sells for $192. What does each cost?<|eot|> <|assistant|> ```python total = 192 count = 6 per_item = total // count # 32 print(per_item) ``` Shell output — 32 Each one costs $32.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A pack of 6 folders sells for $192. What does each cost?" }, { "role": "assistant", "content": "```python\ntotal = 192\ncount = 6\nper_item = total // count # 32\nprint(per_item)\n```\nShell output — 32\n\nEach one costs $32." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0082280
Which is cheaper per unit: 6 for $11.26 (A) or 15 for $19.51 (B)? Translated to Python: ```python pack_a = 11.26 / 6 # 1.8766666666666667 pack_b = 19.51 / 15 # 1.3006666666666669 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` (stdout: B) B has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0082281
<|start|><|system|> You can call tools. Available tools: {"name": "sandbox_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|> ...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"sandbox_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Pytho...
nlprog_det
setting
original
null
deterministic
[]
[]
270
{"gold": "108.00", "printed": "108.00", "notation": null}
nlprog_det-setting-0082282
An invoice lists 37 hard drives at $3 each, plus 5% sales tax. What is the invoice total? The total with tax is $116.55.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "116.55", "printed": "116.55", "notation": null}
nlprog_det-setting-0082283
<|start|><|system|> Tool definitions: {"name": "py_exec", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> The statute was...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"py_exec\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requ...
nlprog_det
setting
original
null
deterministic
[]
[]
192
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0082284
A hearing lasted 5 hours and 53 minutes. How many minutes is that? As Python: ```python hours = 5 minutes = 53 total_minutes = hours * 60 + minutes print(total_minutes) ``` (Out: 353) That is 353 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "353", "printed": "353", "notation": null}
nlprog_det-setting-0082285
<|start|><|user|> 4 friends split a $180 bill plus a 20% tip evenly. How much does each pay?<|eot|> <|assistant|> ```python bill = 180 tip_rate = 20 / 100 # 0.2 people = 4 each = bill * (1 + tip_rate) / people # 54.0 print(f"{each:.2f}") ``` It outputs 54.00. Each person pays $54.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "4 friends split a $180 bill plus a 20% tip evenly. How much does each pay?" }, { "role": "assistant", "content": "```python\nbill = 180\ntip_rate = 20 / 100 # 0.2\npeople = 4\neach = bill * (1 + tip_rate) / people # 54.0\nprint(f\"{each:.2f}\")\n```\nIt outputs 54...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "54.00", "printed": "54.00", "notation": null}
nlprog_det-setting-0082286
<|start|><|user|> 67 volunteers are split into 5 equal teams. How many are on each team, and how many are left over?<|eot|> <|assistant|> total = 67 groups = 5 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") Executing it gives 13 each, 2 left over, as expec...
chat
[ { "role": "user", "content": "67 volunteers are split into 5 equal teams. How many are on each team, and how many are left over?" }, { "role": "assistant", "content": " total = 67\n groups = 5\n per_group, remainder = divmod(total, groups)\n print(f\"{per_group} each, {remainder} lef...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "13 each, 2 left over", "printed": "13 each, 2 left over", "notation": null}
nlprog_det-setting-0082287
Notice was given on March 15, 2026. The notice period is 45 days. When does it run out? Python does the arithmetic: ```python from datetime import date, timedelta start = date(2026, 3, 15) # datetime.date(2026, 3, 15) end = start + timedelta(days=45) # datetime.date(2026, 4, 29) print(end.isoformat()) ``` Executing ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "2026-04-29", "printed": "2026-04-29", "notation": null}
nlprog_det-setting-0082288
Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 41 hours? ```python rate = 18.5 hours = 41 regular = 40 * rate # 740.0 overtime = (hours - 40) * rate * 1.5 # 27.75 pay = regular + overtime # 767.75 print(f"{pay:.2f}") ``` It prints 767.75. Joelle earns $767.75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "767.75", "printed": "767.75", "notation": null}
nlprog_det-setting-0082289
<|start|><|user|> A car travels 390 miles in 2 hours. What is its average speed in miles per hour?<|eot|> <|assistant|> ```python distance = 390 hours = 2 speed = distance / hours # 195.0 print(round(speed)) ``` Output = 195 It averages 195 miles per hour.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A car travels 390 miles in 2 hours. What is its average speed in miles per hour?" }, { "role": "assistant", "content": "```python\ndistance = 390\nhours = 2\nspeed = distance / hours # 195.0\nprint(round(speed))\n```\nOutput = 195\n\nIt averages 195 miles per hour....
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "195", "printed": "195", "notation": null}
nlprog_det-setting-0082290
27 staplers cost $3 apiece. With 10% tax added, what is the total? Set it up in Python: ```python quantity = 27 unit_price = 3 subtotal = quantity * unit_price # 81 total = subtotal * (1 + 10 / 100) # 89.10000000000001 print(f"{total:.2f}") ``` Execution result — 89.10 The invoice total is $89.10.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "89.10", "printed": "89.10", "notation": null}
nlprog_det-setting-0082291
75 files go into boxes of 12. How many boxes does that take? As a program: ```python import math files = 75 per_box = 12 boxes = math.ceil(files / per_box) # 7 print(boxes) ``` On running, it outputs 7. 7 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "7", "printed": "7", "notation": null}
nlprog_det-setting-0082292
Equal monthly payments repay $3,600 plus 6% simple yearly interest over 24 months. How large is a payment? ```python principal = 3600 annual_rate = 6 / 100 # 0.06 months = 24 interest = principal * annual_rate * months / 12 # 432.0 payment = (principal + interest) / months # 168.0 print(f"{payment:.2f}") ``` Result...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "168.00", "printed": "168.00", "notation": null}
nlprog_det-setting-0082293
<|start|><|user|> A $2,000 security deposit has deductions of $150, $60 and $60. How much is refunded?<|eot|> <|assistant|> ```python deposit = 2000 deductions = [150, 60, 60] refund = deposit - sum(deductions) # 1730 print(refund) ``` The printout reads 1730. The refund is $1,730.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $2,000 security deposit has deductions of $150, $60 and $60. How much is refunded?" }, { "role": "assistant", "content": "```python\ndeposit = 2000\ndeductions = [150, 60, 60]\nrefund = deposit - sum(deductions) # 1730\nprint(refund)\n```\nThe printout reads 1730...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "1730", "printed": "1730", "notation": null}
nlprog_det-setting-0082294
<|start|><|user|> 156 copies of a 31-page packet are printed at $0.05 per page. What is the cost?<|eot|> <|assistant|> The job costs $241.80.<|eot|> <|end|>
chat
[ { "role": "user", "content": "156 copies of a 31-page packet are printed at $0.05 per page. What is the cost?" }, { "role": "assistant", "content": "The job costs $241.80." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "241.80", "printed": "241.80", "notation": null}
nlprog_det-setting-0082295
Grace lends $20,000 at 5% simple interest per year for 2 years. How much interest is earned? Let the code do the arithmetic: principal = 20000 rate = 5 / 100 # 0.05 years = 2 interest = principal * rate * years # 2000.0 print(f"{interest:.2f}") The interpreter prints: 2000.00 It earns $2,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0082297
<|start|><|user|> An office budget of $5,000 has expenses of $684, $429, $1,752. How much of the budget is left?<|eot|> <|assistant|> ```python budget = 5000 expenses = [684, 429, 1752] left = budget - sum(expenses) print(left) ``` Python prints 2135, as expected. The remaining budget is $2,135.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An office budget of $5,000 has expenses of $684, $429, $1,752. How much of the budget is left?" }, { "role": "assistant", "content": "```python\nbudget = 5000\nexpenses = [684, 429, 1752]\nleft = budget - sum(expenses)\nprint(left)\n```\nPython prints 2135, as expec...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "2135", "printed": "2135", "notation": null}
nlprog_det-setting-0082298
<|start|><|user|> A jacket costs $80. It is 10% off. What is the sale price?<|eot|> <|assistant|> ```python price = 80 discount = 10 / 100 # 0.1 sale_price = price * (1 - discount) # 72.0 print(f"{sale_price:.2f}") ``` stdout — 72.00 The sale price is $72.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A jacket costs $80. It is 10% off. What is the sale price?" }, { "role": "assistant", "content": "```python\nprice = 80\ndiscount = 10 / 100 # 0.1\nsale_price = price * (1 - discount) # 72.0\nprint(f\"{sale_price:.2f}\")\n```\nstdout — 72.00\n\nThe sale price is $...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "72.00", "printed": "72.00", "notation": null}
nlprog_det-setting-0082299
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> Of a $10,000 budget, $2,600 has been spent. What percent is that?<|eot|> <|assistant|> ```python budget = 10000 spent = 2600 percent = spent / budget * 100 # 26.0 print(round(percent, 1)) ``` Printed — 26.0 26.0% has been spent.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "Of a $10,000 budget, $2,600 has been spent. What percent is that?" }, { "role": "assistant", "content": "```python\nbudget = 10000\nspent = 2600\npercent = spent / budget * 100 # 26.0\nprint(rou...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "26.0", "printed": "26.0", "notation": null}
nlprog_det-setting-0082300
<|start|><|user|> Water costs $18 a month plus $4.75 for each 1,000 gallons over 0,000. What is owed for 14,000 gallons?<|eot|> <|assistant|> ```python base = 18 rate = 4.75 used = 14 free = 0 bill = base + rate * max(0, used - free) # 84.5 print(f"{bill:.2f}") ``` Execution result: 84.50 $84.50 is owed.<|eot|> <|end...
chat
[ { "role": "user", "content": "Water costs $18 a month plus $4.75 for each 1,000 gallons over 0,000. What is owed for 14,000 gallons?" }, { "role": "assistant", "content": "```python\nbase = 18\nrate = 4.75\nused = 14\nfree = 0\nbill = base + rate * max(0, used - free) # 84.5\nprint(f\"{bill:.2f...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "84.50", "printed": "84.50", "notation": null}
nlprog_det-setting-0082301
A 162-page report must be reviewed in 6 days. How many pages a day is that, evenly? ```python pages = 162 days = 6 per_day = pages // days print(per_day) ``` Out: 27 That is 27 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0082302
<|start|><|user|> Starting with 1616 staplers and using 24 per day, how many remain after 9 days?<|eot|> <|assistant|> ```python stock = 1616 per_day = 24 days = 9 left = stock - per_day * days # 1400 print(left) ``` Out = 1400 1400 remain.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting with 1616 staplers and using 24 per day, how many remain after 9 days?" }, { "role": "assistant", "content": "```python\nstock = 1616\nper_day = 24\ndays = 9\nleft = stock - per_day * days # 1400\nprint(left)\n```\nOut = 1400\n\n1400 remain." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "1400", "printed": "1400", "notation": null}
nlprog_det-setting-0082303
Papers were served by mail on November 21, 2025. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date? A short script: ```python from datetime import date, timedelta served = date(2025, 11, 21) # datetime.date(2025, 11, 21) response_days = 28 mail_days = 3 due = served + timede...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
181
{"gold": "2025-12-22", "printed": "2025-12-22", "notation": null}
nlprog_det-setting-0082304
<|start|><|system|> Tools you may use: {"name": "calculator", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> <|user|> On which we...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"calculator\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"...
nlprog_det
setting
original
null
deterministic
[]
[]
212
{"gold": "Wednesday", "printed": "Wednesday", "notation": null}
nlprog_det-setting-0082305
<|start|><|user|> Counting the first and last day, how many days are there from March 22, 2025 through April 15, 2025?<|eot|> <|assistant|> ```python from datetime import date first = date(2025, 3, 22) # datetime.date(2025, 3, 22) last = date(2025, 4, 15) # datetime.date(2025, 4, 15) days = (last - first).days + 1 #...
chat
[ { "role": "user", "content": "Counting the first and last day, how many days are there from March 22, 2025 through April 15, 2025?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2025, 3, 22) # datetime.date(2025, 3, 22)\nlast = date(2025, 4, 15) # dat...
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0082306
<|start|><|user|> Counting only Monday through Friday, how many business days are there after February 19, 2027 through March 11, 2027?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2027, 2, 19) end = date(2027, 3, 11) count = 0 for k in range(1, (end - start).days + 1): if (start...
chat
[ { "role": "user", "content": "Counting only Monday through Friday, how many business days are there after February 19, 2027 through March 11, 2027?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2027, 2, 19)\nend = date(2027, 3, 11)\ncount = ...
nlprog_det
setting
original
null
deterministic
[]
[]
157
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0082307
Starting from $8,000, the team spends $2,503, $702. What remains? Computing it: ```python budget = 8000 expenses = [2503, 702] left = budget - sum(expenses) # 4795 print(left) ``` Run result — 4795 The remaining budget is $4,795.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "4795", "printed": "4795", "notation": null}
nlprog_det-setting-0082308
<|start|><|user|> Rent of $1,500 goes up 8%. What is the new rent?<|eot|> <|assistant|> ```python rent = 1500 increase = 8 / 100 # 0.08 new_rent = rent * (1 + increase) # 1620.0 print(f"{new_rent:.2f}") ``` Output: 1620.00 It rises to $1,620.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rent of $1,500 goes up 8%. What is the new rent?" }, { "role": "assistant", "content": "```python\nrent = 1500\nincrease = 8 / 100 # 0.08\nnew_rent = rent * (1 + increase) # 1620.0\nprint(f\"{new_rent:.2f}\")\n```\nOutput: 1620.00\n\nIt rises to $1,620.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "1620.00", "printed": "1620.00", "notation": null}
nlprog_det-setting-0082309
<|start|><|user|> A lawyer's fee is 35% of a $150,000 recovery. How large is the fee?<|eot|> <|assistant|> recovery = 150000 rate = 35 / 100 # 0.35 fee = recovery * rate # 52500.0 print(f"{fee:.2f}") Execution result — 52500.00 The fee is $52,500.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lawyer's fee is 35% of a $150,000 recovery. How large is the fee?" }, { "role": "assistant", "content": " recovery = 150000\n rate = 35 / 100 # 0.35\n fee = recovery * rate # 52500.0\n print(f\"{fee:.2f}\")\nExecution result — 52500.00\n\nThe fee is ...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "52500.00", "printed": "52500.00", "notation": null}
nlprog_det-setting-0082310
<|start|><|user|> Revenue is $24,000 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|> <|assistant|> ```python revenue = 24000 costs = 20000 profit = revenue - costs # 4000 margin = profit / revenue * 100 # 16.666666666666664 print(round(margin, 1)) ``` # result: 16.7 Pro...
chat
[ { "role": "user", "content": "Revenue is $24,000 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?" }, { "role": "assistant", "content": "```python\nrevenue = 24000\ncosts = 20000\nprofit = revenue - costs # 4000\nmargin = profit / revenue * 100 # 16.66666...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "16.7", "printed": "16.7", "notation": null}
nlprog_det-setting-0082311
Papers were served by mail on October 13, 2022. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date? Program: ```python from datetime import date, timedelta served = date(2022, 10, 13) # datetime.date(2022, 10, 13) response_days = 21 mail_days = 3 due = served + timedelta(days...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
172
{"gold": "2022-11-06", "printed": "2022-11-06", "notation": null}
nlprog_det-setting-0082312
<|start|><|user|> Straight-line depreciation: cost $18,000, salvage $0, 8 years. How much per year?<|eot|> <|assistant|> ```python cost = 18000 salvage = 0 years = 8 per_year = (cost - salvage) / years # 2250.0 print(f"{per_year:.2f}") ``` Executed, it shows: 2250.00 $2,250.00 a year.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Straight-line depreciation: cost $18,000, salvage $0, 8 years. How much per year?" }, { "role": "assistant", "content": "```python\ncost = 18000\nsalvage = 0\nyears = 8\nper_year = (cost - salvage) / years # 2250.0\nprint(f\"{per_year:.2f}\")\n```\nExecuted, it sho...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "2250.00", "printed": "2250.00", "notation": null}
nlprog_det-setting-0082313
<|start|><|user|> Which is cheaper per unit: 12 for $5.99 (A) or 24 for $11.14 (B)?<|eot|> <|assistant|> Pack B is cheaper per item.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Which is cheaper per unit: 12 for $5.99 (A) or 24 for $11.14 (B)?" }, { "role": "assistant", "content": "Pack B is cheaper per item." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0082315
Notice was given on October 24, 2022. The notice period is 60 days. When does it run out? Here is the program. ```python from datetime import date, timedelta start = date(2022, 10, 24) # datetime.date(2022, 10, 24) end = start + timedelta(days=60) # datetime.date(2022, 12, 23) print(end.isoformat()) ``` The run give...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "2022-12-23", "printed": "2022-12-23", "notation": null}
nlprog_det-setting-0082316
17 clipboards cost $8 apiece. With 8% tax added, what is the total? Written as code: ```python quantity = 17 unit_price = 8 subtotal = quantity * unit_price # 136 total = subtotal * (1 + 8 / 100) # 146.88 print(f"{total:.2f}") ``` The program outputs 146.88. The total with tax is $146.88.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "146.88", "printed": "146.88", "notation": null}
nlprog_det-setting-0082317
What does $2,000 grow to in 5 years at 2% annual compounding? Coded up: ```python principal = 2000 rate = 2 / 100 # 0.02 years = 5 value = principal * (1 + rate) ** years # 2208.1616064 print(f"{value:.2f}") ``` When run, it prints 2208.16. It is worth $2,208.16.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "2208.16", "printed": "2208.16", "notation": null}
nlprog_det-setting-0082318
<|start|><|user|> How much sales tax is charged on a $341.18 purchase at 5%?<|eot|> <|assistant|> $17.06 in tax.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How much sales tax is charged on a $341.18 purchase at 5%?" }, { "role": "assistant", "content": "$17.06 in tax." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "17.06", "printed": "17.06", "notation": null}
nlprog_det-setting-0082319
<|start|><|user|> What does $1,000 grow to in 5 years at 2% annual compounding?<|eot|> <|assistant|> ```python principal = 1000 rate = 2 / 100 years = 5 value = principal * (1 + rate) ** years print(f"{value:.2f}") ``` (Result: 1104.08) The balance is $1,104.08.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What does $1,000 grow to in 5 years at 2% annual compounding?" }, { "role": "assistant", "content": "```python\nprincipal = 1000\nrate = 2 / 100\nyears = 5\nvalue = principal * (1 + rate) ** years\nprint(f\"{value:.2f}\")\n```\n(Result: 1104.08)\n\nThe balance is $1...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "1104.08", "printed": "1104.08", "notation": null}
nlprog_det-setting-0082321
<|start|><|user|> At an exchange rate of 1.35 USD per CHF, how many USD is 543 CHF?<|eot|> <|assistant|> ```python amount = 543 rate = 1.35 converted = amount * rate # 733.0500000000001 print(f"{converted:.2f}") ``` The script prints 733.05, as expected. That is 733.05 USD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At an exchange rate of 1.35 USD per CHF, how many USD is 543 CHF?" }, { "role": "assistant", "content": "```python\namount = 543\nrate = 1.35\nconverted = amount * rate # 733.0500000000001\nprint(f\"{converted:.2f}\")\n```\nThe script prints 733.05, as expected.\n\...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "733.05", "printed": "733.05", "notation": null}
nlprog_det-setting-0082322
A 20 × 5 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up? ```python import math length = 20 width = 5 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 25 print(tiles) ``` When run, it prints 25, as expected. 25 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0082323
Papers were served by mail on October 18, 2019. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date? As a program: ```python from datetime import date, timedelta served = date(2019, 10, 18) # datetime.date(2019, 10, 18) response_days = 21 mail_days = 3 due = served + timedelta...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
175
{"gold": "2019-11-11", "printed": "2019-11-11", "notation": null}
nlprog_det-setting-0082324
<|start|><|system|> Give the answer first.<|eot|> <|user|> Nilufar drove 245 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?<|eot|> <|assistant|> ```python miles = 245 rate = 0.65 reimbursement = miles * rate # 159.25 print(f"{reimbursement:.2f}") ``` (Output: 159.25) The reim...
chat
[ { "role": "system", "content": "Give the answer first." }, { "role": "user", "content": "Nilufar drove 245 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?" }, { "role": "assistant", "content": "```python\nmiles = 245\nrate = 0.65\nreimbursemen...
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "159.25", "printed": "159.25", "notation": null}
nlprog_det-setting-0082325
At 2% a month (simple), what interest builds on $12,000 over 2 months? A short script: ```python balance = 12000 monthly_rate = 2 / 100 # 0.02 months = 2 interest = balance * monthly_rate * months # 480.0 print(f"{interest:.2f}") ``` It outputs 480.00. $480.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "480.00", "printed": "480.00", "notation": null}
nlprog_det-setting-0082326
Find the mean of these test scores: 70, 52, 72, 73, 53, 72 and 70. The Python version: ```python scores = [70, 52, 72, 73, 53, 72, 70] average = sum(scores) // len(scores) # 66 print(average) ``` The run gives: 66 The mean is 66.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "66", "printed": "66", "notation": null}
nlprog_det-setting-0082327
<|start|><|system|> Be concise.<|eot|> <|user|> The rules require 1/3 of 15 members (round up) to be present. How many is that?<|eot|> <|assistant|> ```python import math members = 15 quorum = math.ceil(members * 1 / 3) # 5 print(quorum) ``` Run result: 5 That is 5 members.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "The rules require 1/3 of 15 members (round up) to be present. How many is that?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 15\nquorum = math.ceil(members * 1 / 3) # 5\nprint(q...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0082328
<|start|><|user|> Monthly: $25. Annual: $270. What is saved per year by paying annually?<|eot|> <|assistant|> ```python monthly = 25 yearly = 270 savings = monthly * 12 - yearly # 30 print(savings) ``` Run it and it prints 30. $30 is saved.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Monthly: $25. Annual: $270. What is saved per year by paying annually?" }, { "role": "assistant", "content": "```python\nmonthly = 25\nyearly = 270\nsavings = monthly * 12 - yearly # 30\nprint(savings)\n```\nRun it and it prints 30.\n\n$30 is saved." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0082329
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "calculator", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> Ada ...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"calculator\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source cod...
nlprog_det
setting
original
null
deterministic
[]
[]
230
{"gold": "1600.00", "printed": "1600.00", "notation": null}
nlprog_det-setting-0082330
A $60,000 grant pays $3,000 up front and the rest in 3 equal installments. How large is each installment? One way, in code: grant = 60000 up_front = 3000 installments = 3 each = (grant - up_front) / installments # 19000.0 print(f"{each:.2f}") Output of the run: 19000.00 $19,000.00 per installment...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "19000.00", "printed": "19000.00", "notation": null}
nlprog_det-setting-0082331
A $2,000 security deposit has deductions of $85, $120 and $60. How much is refunded? Written as code: ```python deposit = 2000 deductions = [85, 120, 60] refund = deposit - sum(deductions) # 1735 print(refund) ``` (Run result: 1735) The refund is $1,735.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "1735", "printed": "1735", "notation": null}
nlprog_det-setting-0082332
<|start|><|user|> A 18-month warranty starts on July 26, 2018. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date start = date(2018, 7, 26) months = 18 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat...
chat
[ { "role": "user", "content": "A 18-month warranty starts on July 26, 2018. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2018, 7, 26)\nmonths = 18\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(start.ye...
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "2020-01-26", "printed": "2020-01-26", "notation": null}
nlprog_det-setting-0082333
<|start|><|system|> Functions: [{"name": "interpreter", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> Ivan lends $1,000 at 3% simple interest per...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"interpreter\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}]" }...
nlprog_det
setting
original
null
deterministic
[]
[]
220
{"gold": "120.00", "printed": "120.00", "notation": null}
nlprog_det-setting-0082334
<|start|><|user|> A penalty of $250 a day accrues, capped at $5,000. What is owed after 33 days?<|eot|> <|assistant|> ```python per_day = 250 days = 33 cap = 5000 fine = min(per_day * days, cap) # 5000 print(fine) ``` The printout reads: 5000 $5,000 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A penalty of $250 a day accrues, capped at $5,000. What is owed after 33 days?" }, { "role": "assistant", "content": "```python\nper_day = 250\ndays = 33\ncap = 5000\nfine = min(per_day * days, cap) # 5000\nprint(fine)\n```\nThe printout reads: 5000\n\n$5,000 is ow...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "5000", "printed": "5000", "notation": null}
nlprog_det-setting-0082335
<|start|><|user|> What does $10,000 grow to in 2 years at 4% annual compounding?<|eot|> <|assistant|> The balance is $10,816.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What does $10,000 grow to in 2 years at 4% annual compounding?" }, { "role": "assistant", "content": "The balance is $10,816.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "10816.00", "printed": "10816.00", "notation": null}
nlprog_det-setting-0082336
If a 150-minute seminar begins at 12:40 PM, what time does it finish? It ends at 3:10 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "3:10 PM", "printed": "3:10 PM", "notation": null}
nlprog_det-setting-0082337
<|start|><|user|> Rania's scores were 67, 75, 59, 96 and 98. What is the average score?<|eot|> <|assistant|> scores = [67, 75, 59, 96, 98] average = sum(scores) // len(scores) # 79 print(average) # run result: 79 The mean is 79.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rania's scores were 67, 75, 59, 96 and 98. What is the average score?" }, { "role": "assistant", "content": " scores = [67, 75, 59, 96, 98]\n average = sum(scores) // len(scores) # 79\n print(average)\n# run result: 79\n\nThe mean is 79." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "79", "printed": "79", "notation": null}
nlprog_det-setting-0082338
Starting with 988 hard drives and using 10 per day, how many remain after 9 days? Script: ```python stock = 988 per_day = 10 days = 9 left = stock - per_day * days print(left) ``` The program outputs: 898 898 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "898", "printed": "898", "notation": null}
nlprog_det-setting-0082339
Each storage box holds 40 files. How many boxes are needed for 488 files? Python does the arithmetic: ```python import math files = 488 per_box = 40 boxes = math.ceil(files / per_box) # 13 print(boxes) ``` Running it prints 13, as expected. 13 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0082340
Find the mean of these test scores: 64, 95, 75, 76 and 65. Here is the program. ```python scores = [64, 95, 75, 76, 65] average = sum(scores) // len(scores) # 75 print(average) ``` (Out: 75) The average score is 75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "75", "printed": "75", "notation": null}
nlprog_det-setting-0082341
<|start|><|user|> What day of the week is August 3, 2028?<|eot|> <|assistant|> ```python from datetime import date hearing = date(2028, 8, 3) # datetime.date(2028, 8, 3) print(hearing.strftime("%A")) ``` # run result: Thursday It is a Thursday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What day of the week is August 3, 2028?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(2028, 8, 3) # datetime.date(2028, 8, 3)\nprint(hearing.strftime(\"%A\"))\n```\n# run result: Thursday\n\nIt is a Thursday." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "Thursday", "printed": "Thursday", "notation": null}
nlprog_det-setting-0082342
A shift runs from 9:34 AM to 4:07 PM. How long is it in minutes? Python: ```python start = 9 * 60 + 34 # 574 end = 16 * 60 + 7 # 967 print(end - start) ``` The run gives 393, as expected. It is 393 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "393", "printed": "393", "notation": null}
nlprog_det-setting-0082343
<|start|><|user|> How many days are there from January 10, 2024 to September 17, 2024?<|eot|> <|assistant|> ```python from datetime import date first = date(2024, 1, 10) # datetime.date(2024, 1, 10) second = date(2024, 9, 17) # datetime.date(2024, 9, 17) print((second - first).days) ``` The code prints 251. There ar...
chat
[ { "role": "user", "content": "How many days are there from January 10, 2024 to September 17, 2024?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2024, 1, 10) # datetime.date(2024, 1, 10)\nsecond = date(2024, 9, 17) # datetime.date(2024, 9, 17)\nprint...
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "251", "printed": "251", "notation": null}
nlprog_det-setting-0082344
<|start|><|user|> A water bill is $15 plus $5.10 per thousand gallons beyond the first 2 thousand. What is the bill for 5 thousand gallons?<|eot|> <|assistant|> ```python base = 15 rate = 5.1 used = 5 free = 2 bill = base + rate * max(0, used - free) # 30.299999999999997 print(f"{bill:.2f}") ``` Output = 30.30 $30.30...
chat
[ { "role": "user", "content": "A water bill is $15 plus $5.10 per thousand gallons beyond the first 2 thousand. What is the bill for 5 thousand gallons?" }, { "role": "assistant", "content": "```python\nbase = 15\nrate = 5.1\nused = 5\nfree = 2\nbill = base + rate * max(0, used - free) # 30.2999...
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "30.30", "printed": "30.30", "notation": null}
nlprog_det-setting-0082345
<|start|><|user|> What average speed covers 73 miles in 0.5 hours?<|eot|> <|assistant|> distance = 73 hours = 0.5 speed = distance / hours # 146.0 print(round(speed)) (Out: 146) The average speed is 146 mph.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What average speed covers 73 miles in 0.5 hours?" }, { "role": "assistant", "content": " distance = 73\n hours = 0.5\n speed = distance / hours # 146.0\n print(round(speed))\n(Out: 146)\n\nThe average speed is 146 mph." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
71
{"gold": "146", "printed": "146", "notation": null}
nlprog_det-setting-0082346
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> Wen and Cyrus share $3,170 in the ratio 2:3. How much does Wen get?<|eot|> <|assistant|> ```python total = 3170 parts_a = 2 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 1268 print(share_a) ``` Executing it gives 1268. Wen's share ...
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "Wen and Cyrus share $3,170 in the ratio 2:3. How much does Wen get?" }, { "role": "assistant", "content": "```python\ntotal = 3170\nparts_a = 2\nparts_b = 3\nshare_a = total * parts_a ...
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "1268", "printed": "1268", "notation": null}
nlprog_det-setting-0082347
<|start|><|system|> Tools (call with JSON): [{"name": "python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "convert_units", "description...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": ...
nlprog_det
setting
original
null
deterministic
[]
[]
341
{"gold": "16000.00", "printed": "16000.00", "notation": null}
nlprog_det-setting-0082348
Counting the first and last day, how many days are there from May 24, 2023 through June 2, 2023? The Python version: ```python from datetime import date first = date(2023, 5, 24) # datetime.date(2023, 5, 24) last = date(2023, 6, 2) # datetime.date(2023, 6, 2) days = (last - first).days + 1 # 10 print(days) ``` Prin...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0082349
What percentage of $5,000 is $1,300? In code: ```python budget = 5000 spent = 1300 percent = spent / budget * 100 # 26.0 print(round(percent, 1)) ``` Run it and it prints 26.0. That is 26.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "26.0", "printed": "26.0", "notation": null}
nlprog_det-setting-0082350
A $180 dinner bill gets a 18% tip, and 4 people share the cost equally. What is each person's share? Code: ```python bill = 180 tip_rate = 18 / 100 # 0.18 people = 4 each = bill * (1 + tip_rate) / people # 53.099999999999994 print(f"{each:.2f}") ``` (Run result: 53.10) The share is $53.10 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "53.10", "printed": "53.10", "notation": null}
nlprog_det-setting-0082351
A quorum is 2/3 of the 55 members, rounded up. How many members make a quorum? Program: ```python import math members = 55 quorum = math.ceil(members * 2 / 3) # 37 print(quorum) ``` Program output — 37 37 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "37", "printed": "37", "notation": null}
nlprog_det-setting-0082352
A shift runs from 10:47 AM to 4:38 PM. How long is it in minutes? 351 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "351", "printed": "351", "notation": null}
nlprog_det-setting-0082353
<|start|><|user|> A 6-month warranty starts on December 5, 2025. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date start = date(2025, 12, 5) months = 6 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoforma...
chat
[ { "role": "user", "content": "A 6-month warranty starts on December 5, 2025. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2025, 12, 5)\nmonths = 6\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(start.y...
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "2026-06-05", "printed": "2026-06-05", "notation": null}