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-0058729
A deposition lasted 4 hours and 47 minutes. How many minutes is that? A Python solution: ```python hours = 4 minutes = 47 total_minutes = hours * 60 + minutes # 287 print(total_minutes) ``` This prints 287, as expected. The deposition lasted 287 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "287", "printed": "287", "notation": null}
nlprog_det-setting-0058730
On which weekday does October 20, 2022 fall? from datetime import date hearing = date(2022, 10, 20) # datetime.date(2022, 10, 20) print(hearing.strftime("%A")) This prints Thursday, as expected. October 20, 2022 is a Thursday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "Thursday", "printed": "Thursday", "notation": null}
nlprog_det-setting-0058731
<|start|><|system|> You are a math tutor.<|eot|> <|user|> Convert 5 h 11 min (the length of a film) to minutes.<|eot|> <|assistant|> ```python hours = 5 minutes = 11 total_minutes = hours * 60 + minutes # 311 print(total_minutes) ``` (Execution result: 311) That is 311 minutes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a math tutor." }, { "role": "user", "content": "Convert 5 h 11 min (the length of a film) to minutes." }, { "role": "assistant", "content": "```python\nhours = 5\nminutes = 11\ntotal_minutes = hours * 60 + minutes # 311\nprint(total_minutes)\n...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "311", "printed": "311", "notation": null}
nlprog_det-setting-0058732
<|start|><|user|> Priya drove 537 miles for work. Mileage is reimbursed at 67 cents a mile. How much is the reimbursement?<|eot|> <|assistant|> ```python miles = 537 rate = 0.67 reimbursement = miles * rate # 359.79 print(f"{reimbursement:.2f}") ``` On running, it outputs: 359.79 Priya is owed $359.79.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Priya drove 537 miles for work. Mileage is reimbursed at 67 cents a mile. How much is the reimbursement?" }, { "role": "assistant", "content": "```python\nmiles = 537\nrate = 0.67\nreimbursement = miles * rate # 359.79\nprint(f\"{reimbursement:.2f}\")\n```\nOn runn...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "359.79", "printed": "359.79", "notation": null}
nlprog_det-setting-0058733
A lease runs for 6 months at $2,100 per month. How much rent is paid over the whole term? A few lines of Python do it: monthly_rent = 2100 months = 6 total = monthly_rent * months # 12600 print(total) Printed result — 12600 In total, $12,600 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "12600", "printed": "12600", "notation": null}
nlprog_det-setting-0058734
Divide 67 items among 6 groups as evenly as possible with equal groups. How many per group, and how many remain? ```python total = 67 groups = 6 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` When run, it prints: 11 each, 1 left over The answer: 11 each, 1 left over...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "11 each, 1 left over", "printed": "11 each, 1 left over", "notation": null}
nlprog_det-setting-0058735
A car travels 553 miles in 0.5 hours. What is its average speed in miles per hour? Python, step by step: ```python distance = 553 hours = 0.5 speed = distance / hours # 1106.0 print(round(speed)) ``` This prints: 1106 It averages 1106 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "1106", "printed": "1106", "notation": null}
nlprog_det-setting-0058736
After an initial $2,000, the remainder of a $24,000 grant is paid in 12 equal parts. What is each part? Python, step by step: grant = 24000 up_front = 2000 installments = 12 each = (grant - up_front) / installments print(f"{each:.2f}") The program outputs: 1833.33 Each installment is $1,833.33.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "1833.33", "printed": "1833.33", "notation": null}
nlprog_det-setting-0058737
Starting with 777 cables and using 40 per day, how many remain after 19 days? Python does the arithmetic: ```python stock = 777 per_day = 40 days = 19 left = stock - per_day * days # 17 print(left) ``` What it prints — 17 17 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0058738
<|start|><|user|> After an initial $3,000, the remainder of a $48,000 grant is paid in 12 equal parts. What is each part?<|eot|> <|assistant|> ```python grant = 48000 up_front = 3000 installments = 12 each = (grant - up_front) / installments # 3750.0 print(f"{each:.2f}") ``` Interpreter output: 3750.00 $3,750.00 per ...
chat
[ { "role": "user", "content": "After an initial $3,000, the remainder of a $48,000 grant is paid in 12 equal parts. What is each part?" }, { "role": "assistant", "content": "```python\ngrant = 48000\nup_front = 3000\ninstallments = 12\neach = (grant - up_front) / installments # 3750.0\nprint(f\"...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "3750.00", "printed": "3750.00", "notation": null}
nlprog_det-setting-0058739
111 volunteers are split into 5 equal teams. How many are on each team, and how many are left over? Script: ```python total = 111 groups = 5 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` What it prints: 22 each, 1 left over 22 each, 1 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "22 each, 1 left over", "printed": "22 each, 1 left over", "notation": null}
nlprog_det-setting-0058740
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> A recipe for 4 people uses 200 grams of oats. How many grams are needed for 8 people?<|eot|> <|assistant|> ```python grams = 200 serves = 4 needed_for = 8 scaled = grams * needed_for // serves # 400 print(scaled) ``` stdout = 400 400 grams of oats are needed....
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "A recipe for 4 people uses 200 grams of oats. How many grams are needed for 8 people?" }, { "role": "assistant", "content": "```python\ngrams = 200\nserves = 4\nneeded_for = 8\nscaled = grams * n...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "400", "printed": "400", "notation": null}
nlprog_det-setting-0058741
<|start|><|user|> Priya was born on December 8, 1959. How old is Priya on October 5, 2020?<|eot|> <|assistant|> ```python from datetime import date born = date(1959, 12, 8) # datetime.date(1959, 12, 8) on = date(2020, 10, 5) # datetime.date(2020, 10, 5) age = on.year - born.year - ((on.month, on.day) < (born.month, b...
chat
[ { "role": "user", "content": "Priya was born on December 8, 1959. How old is Priya on October 5, 2020?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1959, 12, 8) # datetime.date(1959, 12, 8)\non = date(2020, 10, 5) # datetime.date(2020, 10, 5)\nage = ...
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0058742
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "sandbox_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"sandbox_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python s...
nlprog_det
setting
original
null
deterministic
[]
[]
208
{"gold": "67900", "printed": "67900", "notation": null}
nlprog_det-setting-0058744
<|start|><|user|> A client paid a $10,000 retainer. The firm has billed 13 hours at $275 per hour. How much of the retainer is left?<|eot|> <|assistant|> ```python retainer = 10000 hours = 13 rate = 275 left = retainer - hours * rate # 6425 print(left) ``` (Output: 6425) The remaining balance is $6,425.<|eot|> <|end|...
chat
[ { "role": "user", "content": "A client paid a $10,000 retainer. The firm has billed 13 hours at $275 per hour. How much of the retainer is left?" }, { "role": "assistant", "content": "```python\nretainer = 10000\nhours = 13\nrate = 275\nleft = retainer - hours * rate # 6425\nprint(left)\n```\n(...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "6425", "printed": "6425", "notation": null}
nlprog_det-setting-0058745
<|start|><|system|> You are a careful assistant.<|eot|> <|user|> Someone works 40 hours at $21.17 per hour. What are the earnings?<|eot|> <|assistant|> ```python rate = 21.17 hours = 40 earnings = rate * hours # 846.8000000000001 print(f"{earnings:.2f}") ``` Execution prints 846.80. The pay is $846.80.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a careful assistant." }, { "role": "user", "content": "Someone works 40 hours at $21.17 per hour. What are the earnings?" }, { "role": "assistant", "content": "```python\nrate = 21.17\nhours = 40\nearnings = rate * hours # 846.8000000000001\np...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "846.80", "printed": "846.80", "notation": null}
nlprog_det-setting-0058746
<|start|><|user|> Revenue is $20,500 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|> <|assistant|> ```python revenue = 20500 costs = 20000 profit = revenue - costs # 500 margin = profit / revenue * 100 # 2.4390243902439024 print(round(margin, 1)) ``` The program prints: ...
chat
[ { "role": "user", "content": "Revenue is $20,500 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?" }, { "role": "assistant", "content": "```python\nrevenue = 20500\ncosts = 20000\nprofit = revenue - costs # 500\nmargin = profit / revenue * 100 # 2.4390243...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "2.4", "printed": "2.4", "notation": null}
nlprog_det-setting-0058747
<|start|><|user|> Starting from $8,000, the team spends $3,491, $2,592, $3,244, $1,616. What remains?<|eot|> <|assistant|> ```python budget = 8000 expenses = [3491, 2592, 3244, 1616] left = budget - sum(expenses) # -2943 print(left) ``` The code prints: -2943 -$2,943 is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting from $8,000, the team spends $3,491, $2,592, $3,244, $1,616. What remains?" }, { "role": "assistant", "content": "```python\nbudget = 8000\nexpenses = [3491, 2592, 3244, 1616]\nleft = budget - sum(expenses) # -2943\nprint(left)\n```\nThe code prints: -2943...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "-2943", "printed": "-2943", "notation": null}
nlprog_det-setting-0058748
Starting with 1945 tape rolls and using 16 per day, how many remain after 6 days? Translated to Python: stock = 1945 per_day = 16 days = 6 left = stock - per_day * days # 1849 print(left) Console output: 1849 1849 tape rolls are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "1849", "printed": "1849", "notation": null}
nlprog_det-setting-0058749
<|start|><|system|> You can call tools. Available tools: {"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}} {"name": "calculator", "description": "Python sandbox for calculations. Returns printed text....
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}\n{\"name\": \"calculator\", \"description\...
nlprog_det
setting
original
null
deterministic
[]
[]
397
{"gold": "9000.00", "printed": "9000.00", "notation": null}
nlprog_det-setting-0058750
<|start|><|user|> Starting with 1332 binders and using 13 per day, how many remain after 5 days?<|eot|> <|assistant|> ```python stock = 1332 per_day = 13 days = 5 left = stock - per_day * days # 1267 print(left) ``` Executing it gives 1267. 1267 binders are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting with 1332 binders and using 13 per day, how many remain after 5 days?" }, { "role": "assistant", "content": "```python\nstock = 1332\nper_day = 13\ndays = 5\nleft = stock - per_day * days # 1267\nprint(left)\n```\nExecuting it gives 1267.\n\n1267 binders a...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "1267", "printed": "1267", "notation": null}
nlprog_det-setting-0058751
<|start|><|user|> A 18-month warranty starts on September 9, 2018. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date start = date(2018, 9, 9) months = 18 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isofor...
chat
[ { "role": "user", "content": "A 18-month warranty starts on September 9, 2018. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2018, 9, 9)\nmonths = 18\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(start...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "2020-03-09", "printed": "2020-03-09", "notation": null}
nlprog_det-setting-0058752
Express 238 hours in days and hours. Translated to Python: hours = 238 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") What it prints: 9 days and 22 hours 238 hours is 9 days and 22 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "9 days and 22 hours", "printed": "9 days and 22 hours", "notation": null}
nlprog_det-setting-0058753
<|start|><|user|> Count 30 days forward from January 6, 2026. What date is that?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2026, 1, 6) # datetime.date(2026, 1, 6) end = start + timedelta(days=30) # datetime.date(2026, 2, 5) print(end.isoformat()) ``` It outputs 2026-02-05. That...
chat
[ { "role": "user", "content": "Count 30 days forward from January 6, 2026. What date is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2026, 1, 6) # datetime.date(2026, 1, 6)\nend = start + timedelta(days=30) # datetime.date(2026, 2, 5...
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "2026-02-05", "printed": "2026-02-05", "notation": null}
nlprog_det-setting-0058754
Of a $4,000 budget, $900 has been spent. What percent is that? That is 22.5% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "22.5", "printed": "22.5", "notation": null}
nlprog_det-setting-0058755
<|start|><|user|> Printing costs 12 cents a page. What does it cost to print 189 copies of a 53-page handout?<|eot|> <|assistant|> ```python pages = 53 copies = 189 cost_per_page = 0.12 cost = pages * copies * cost_per_page # 1202.04 print(f"{cost:.2f}") ``` Shell output: 1202.04 The job costs $1,202.04.<|eot|> <|end...
chat
[ { "role": "user", "content": "Printing costs 12 cents a page. What does it cost to print 189 copies of a 53-page handout?" }, { "role": "assistant", "content": "```python\npages = 53\ncopies = 189\ncost_per_page = 0.12\ncost = pages * copies * cost_per_page # 1202.04\nprint(f\"{cost:.2f}\")\n``...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "1202.04", "printed": "1202.04", "notation": null}
nlprog_det-setting-0058756
<|start|><|system|> Tool definitions: {"name": "sandbox_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> <|user|> How many...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"sandbox_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}},...
nlprog_det
setting
original
null
deterministic
[]
[]
208
{"gold": "16900", "printed": "16900", "notation": null}
nlprog_det-setting-0058757
<|start|><|user|> A 5-day trip pays $74 a day for meals and $140 a night for lodging (4 nights). What is the total allowance?<|eot|> <|assistant|> days = 5 meal_rate = 74 lodging_rate = 140 nights = days - 1 # 4 total = days * meal_rate + nights * lodging_rate # 930 print(total) The interprete...
chat
[ { "role": "user", "content": "A 5-day trip pays $74 a day for meals and $140 a night for lodging (4 nights). What is the total allowance?" }, { "role": "assistant", "content": " days = 5\n meal_rate = 74\n lodging_rate = 140\n nights = days - 1 # 4\n total = days * meal_rate + ni...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "930", "printed": "930", "notation": null}
nlprog_det-setting-0058758
<|start|><|system|> Tools you may use: {"name": "py_exec", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> 4 clients win $48,000. The l...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"py_exec\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"pr...
nlprog_det
setting
original
null
deterministic
[]
[]
237
{"gold": "8400.00", "printed": "8400.00", "notation": null}
nlprog_det-setting-0058760
<|start|><|user|> 53 volunteers are split into 6 equal teams. How many are on each team, and how many are left over?<|eot|> <|assistant|> ```python total = 53 groups = 6 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Running this gives: 8 each, 5 left over 8 each, 5 ...
chat
[ { "role": "user", "content": "53 volunteers are split into 6 equal teams. How many are on each team, and how many are left over?" }, { "role": "assistant", "content": "```python\ntotal = 53\ngroups = 6\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remainder} left ove...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "8 each, 5 left over", "printed": "8 each, 5 left over", "notation": null}
nlprog_det-setting-0058761
<|start|><|user|> Bilal lends $12,000 at 2% simple interest per year for 4 years. How much interest is earned?<|eot|> <|assistant|> ```python principal = 12000 rate = 2 / 100 # 0.02 years = 4 interest = principal * rate * years # 960.0 print(f"{interest:.2f}") ``` (Result: 960.00) It earns $960.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Bilal lends $12,000 at 2% simple interest per year for 4 years. How much interest is earned?" }, { "role": "assistant", "content": "```python\nprincipal = 12000\nrate = 2 / 100 # 0.02\nyears = 4\ninterest = principal * rate * years # 960.0\nprint(f\"{interest:.2f}...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "960.00", "printed": "960.00", "notation": null}
nlprog_det-setting-0058762
If a 5-year limitations period starts on December 21, 2020, when does it end? A few lines of Python do it: ```python from datetime import date accrued = date(2020, 12, 21) # datetime.date(2020, 12, 21) years = 5 expires = accrued.replace(year=accrued.year + years) # datetime.date(2025, 12, 21) print(expires.isoforma...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "2025-12-21", "printed": "2025-12-21", "notation": null}
nlprog_det-setting-0058763
Kemal's scores were 61, 71, 68, 69, 52, 68 and 52. What is the average score? Python version: ```python scores = [61, 71, 68, 69, 52, 68, 52] average = sum(scores) // len(scores) # 63 print(average) ``` Execution result: 63 The average score is 63.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "63", "printed": "63", "notation": null}
nlprog_det-setting-0058764
<|start|><|user|> $10,000 is invested at 2% compounded yearly. What is it worth after 3 years?<|eot|> <|assistant|> ```python principal = 10000 rate = 2 / 100 # 0.02 years = 3 value = principal * (1 + rate) ** years # 10612.080000000002 print(f"{value:.2f}") ``` Python prints: 10612.08 The balance is $10,612.08.<|eo...
chat
[ { "role": "user", "content": "$10,000 is invested at 2% compounded yearly. What is it worth after 3 years?" }, { "role": "assistant", "content": "```python\nprincipal = 10000\nrate = 2 / 100 # 0.02\nyears = 3\nvalue = principal * (1 + rate) ** years # 10612.080000000002\nprint(f\"{value:.2f}\"...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "10612.08", "printed": "10612.08", "notation": null}
nlprog_det-setting-0058765
Of a $4,000 budget, $3,800 has been spent. What percent is that? Program: budget = 4000 spent = 3800 percent = spent / budget * 100 # 95.0 print(round(percent, 1)) Running this gives: 95.0 95.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "95.0", "printed": "95.0", "notation": null}
nlprog_det-setting-0058766
A shift runs from 8:05 AM to 9:46 AM. How long is it in minutes? One way, in code: ```python start = 8 * 60 + 5 # 485 end = 9 * 60 + 46 # 586 print(end - start) ``` Printed — 101 It is 101 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "101", "printed": "101", "notation": null}
nlprog_det-setting-0058767
<|start|><|user|> 12 hours of work at $410 an hour: what is the total charge?<|eot|> <|assistant|> hours = 12 rate = 410 bill = hours * rate print(f"{bill:.2f}") Result = 4920.00 The bill is $4,920.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "12 hours of work at $410 an hour: what is the total charge?" }, { "role": "assistant", "content": " hours = 12\n rate = 410\n bill = hours * rate\n print(f\"{bill:.2f}\")\nResult = 4920.00\n\nThe bill is $4,920.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "4920.00", "printed": "4920.00", "notation": null}
nlprog_det-setting-0058768
<|start|><|system|> Available functions (JSON Schema): {"name": "calc", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> Scale 200 g of pasta from 8 se...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"calc\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"c...
nlprog_det
setting
original
null
deterministic
[]
[]
210
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0058770
$1,000 is invested at 2% compounded yearly. What is it worth after 5 years? A Python solution: ```python principal = 1000 rate = 2 / 100 # 0.02 years = 5 value = principal * (1 + rate) ** years # 1104.0808032 print(f"{value:.2f}") ``` # stdout: 1104.08 The balance is $1,104.08.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "1104.08", "printed": "1104.08", "notation": null}
nlprog_det-setting-0058771
<|start|><|user|> Each of Bruna's bike rides burns 300 calories. How many calories over 3 bike rides?<|eot|> <|assistant|> 900 calories in total.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each of Bruna's bike rides burns 300 calories. How many calories over 3 bike rides?" }, { "role": "assistant", "content": "900 calories in total." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0058772
<|start|><|system|> You can call tools. Available tools: [{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "python", "description": "Runs a short Python snippet and returns what it print...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"python\", \"description\...
nlprog_det
setting
original
null
deterministic
[]
[]
406
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0058773
Count the days between February 9, 2019 and October 26, 2019. Let's compute it with Python. ```python from datetime import date first = date(2019, 2, 9) # datetime.date(2019, 2, 9) second = date(2019, 10, 26) # datetime.date(2019, 10, 26) print((second - first).days) ``` Printed: 259 There are 259 days between the ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "259", "printed": "259", "notation": null}
nlprog_det-setting-0058774
From a $7,500 retainer, 9 hours at $250/hour have been drawn. What remains? ```python retainer = 7500 hours = 9 rate = 250 left = retainer - hours * rate # 5250 print(left) ``` The interpreter prints: 5250 The remaining balance is $5,250.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "5250", "printed": "5250", "notation": null}
nlprog_det-setting-0058775
<|start|><|user|> What is 30 degrees Celsius in Fahrenheit?<|eot|> <|assistant|> ```python celsius = 30 fahrenheit = celsius * 9 / 5 + 32 # 86.0 print(round(fahrenheit)) ``` Console: 86 That is 86 °F.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is 30 degrees Celsius in Fahrenheit?" }, { "role": "assistant", "content": "```python\ncelsius = 30\nfahrenheit = celsius * 9 / 5 + 32 # 86.0\nprint(round(fahrenheit))\n```\nConsole:\n86\n\nThat is 86 °F." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "86", "printed": "86", "notation": null}
nlprog_det-setting-0058776
What is a 20% tip on a $156.23 bill? As Python: ```python bill = 156.23 tip_rate = 20 / 100 # 0.2 tip = bill * tip_rate # 31.246 print(f"{tip:.2f}") ``` # printed result: 31.25 The tip is $31.25.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "31.25", "printed": "31.25", "notation": null}
nlprog_det-setting-0058777
A library charges $0.25 per book per day late. What is the fine for 2 books that are 25 days late? Translated to Python: ```python per_day = 0.25 days_late = 25 books = 2 fine = per_day * days_late * books # 12.5 print(f"{fine:.2f}") ``` Python prints: 12.50 $12.50 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "12.50", "printed": "12.50", "notation": null}
nlprog_det-setting-0058778
A $2,500 security deposit has deductions of $120 and $60. How much is refunded? We can compute it in Python. ```python deposit = 2500 deductions = [120, 60] refund = deposit - sum(deductions) # 2320 print(refund) ``` Execution prints 2320, as expected. $2,320 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "2320", "printed": "2320", "notation": null}
nlprog_det-setting-0058779
How many whole days and leftover hours are in 90 hours? The computation: hours = 90 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") The run gives 3 days and 18 hours. 90 hours is 3 days and 18 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "3 days and 18 hours", "printed": "3 days and 18 hours", "notation": null}
nlprog_det-setting-0058780
<|start|><|user|> Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 48 hours?<|eot|> <|assistant|> ```python rate = 16.0 hours = 48 regular = 40 * rate # 640.0 overtime = (hours - 40) * rate * 1.5 # 192.0 pay = regular + overtime # 832.0 print(f"{pay:.2f}") ``` Executing it gives...
chat
[ { "role": "user", "content": "Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 48 hours?" }, { "role": "assistant", "content": "```python\nrate = 16.0\nhours = 48\nregular = 40 * rate # 640.0\novertime = (hours - 40) * rate * 1.5 # 192.0\npay = regular + o...
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "832.00", "printed": "832.00", "notation": null}
nlprog_det-setting-0058781
With $36,000 in costs and $38,500 in revenue, what percent of revenue is profit? Round to one decimal. Here is the program. ```python revenue = 38500 costs = 36000 profit = revenue - costs # 2500 margin = profit / revenue * 100 # 6.493506493506493 print(round(margin, 1)) ``` The script prints 6.5. The margin is 6.5...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "6.5", "printed": "6.5", "notation": null}
nlprog_det-setting-0058782
<|start|><|user|> How many days are there from July 13, 2018 to November 15, 2018?<|eot|> <|assistant|> ```python from datetime import date first = date(2018, 7, 13) # datetime.date(2018, 7, 13) second = date(2018, 11, 15) # datetime.date(2018, 11, 15) print((second - first).days) ``` Running it prints 125, as expect...
chat
[ { "role": "user", "content": "How many days are there from July 13, 2018 to November 15, 2018?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2018, 7, 13) # datetime.date(2018, 7, 13)\nsecond = date(2018, 11, 15) # datetime.date(2018, 11, 15)\nprint((...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "125", "printed": "125", "notation": null}
nlprog_det-setting-0058783
What average speed covers 190 miles in 2 hours? Python version: ```python distance = 190 hours = 2 speed = distance / hours # 95.0 print(round(speed)) ``` (Out: 95) It averages 95 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "95", "printed": "95", "notation": null}
nlprog_det-setting-0058784
What average speed covers 236 miles in 2 hours? Coded up: ```python distance = 236 hours = 2 speed = distance / hours # 118.0 print(round(speed)) ``` That prints 118. It averages 118 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "118", "printed": "118", "notation": null}
nlprog_det-setting-0058785
<|start|><|system|> Keep explanations short.<|eot|> <|user|> Convert 1,208 CHF to USD at 1 CHF = 1.27 USD.<|eot|> <|assistant|> ```python amount = 1208 rate = 1.27 converted = amount * rate # 1534.16 print(f"{converted:.2f}") ``` The printout reads 1534.16. That is 1,534.16 USD.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Keep explanations short." }, { "role": "user", "content": "Convert 1,208 CHF to USD at 1 CHF = 1.27 USD." }, { "role": "assistant", "content": "```python\namount = 1208\nrate = 1.27\nconverted = amount * rate # 1534.16\nprint(f\"{converted:.2f}\")\n``...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "1534.16", "printed": "1534.16", "notation": null}
nlprog_det-setting-0058786
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "calculator", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> ...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"calculator\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python...
nlprog_det
setting
original
null
deterministic
[]
[]
248
{"gold": "1612", "printed": "1612", "notation": null}
nlprog_det-setting-0058787
<|start|><|system|> Tool definitions: {"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}} {"name": "translate", "description": "Translate text into anoth...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\", \"end\"]}}\n{\"...
nlprog_det
setting
original
null
deterministic
[]
[]
398
{"gold": "2018-07-23", "printed": "2018-07-23", "notation": null}
nlprog_det-setting-0058788
Pack A has 12 items for $5.65. Pack B has 24 items for $15.91. Which has the lower price per item? Set it up in Python: ```python pack_a = 5.65 / 12 # 0.4708333333333334 pack_b = 15.91 / 24 # 0.6629166666666667 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` Output of the run: A Pack A is cheape...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0058789
<|start|><|user|> What does $5,000 grow to in 2 years at 3% annual compounding?<|eot|> <|assistant|> ```python principal = 5000 rate = 3 / 100 # 0.03 years = 2 value = principal * (1 + rate) ** years # 5304.5 print(f"{value:.2f}") ``` # printed: 5304.50 It is worth $5,304.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What does $5,000 grow to in 2 years at 3% annual compounding?" }, { "role": "assistant", "content": "```python\nprincipal = 5000\nrate = 3 / 100 # 0.03\nyears = 2\nvalue = principal * (1 + rate) ** years # 5304.5\nprint(f\"{value:.2f}\")\n```\n# printed: 5304.50\n...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "5304.50", "printed": "5304.50", "notation": null}
nlprog_det-setting-0058790
<|start|><|user|> Someone works 24 hours at $17.91 per hour. What are the earnings?<|eot|> <|assistant|> ```python rate = 17.91 hours = 24 earnings = rate * hours # 429.84000000000003 print(f"{earnings:.2f}") ``` Result — 429.84 That earns $429.84.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Someone works 24 hours at $17.91 per hour. What are the earnings?" }, { "role": "assistant", "content": "```python\nrate = 17.91\nhours = 24\nearnings = rate * hours # 429.84000000000003\nprint(f\"{earnings:.2f}\")\n```\nResult — 429.84\n\nThat earns $429.84." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "429.84", "printed": "429.84", "notation": null}
nlprog_det-setting-0058791
<|start|><|user|> A 95-page report must be reviewed in 5 days. How many pages a day is that, evenly?<|eot|> <|assistant|> ```python pages = 95 days = 5 per_day = pages // days # 19 print(per_day) ``` It prints 19. 19 pages a day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 95-page report must be reviewed in 5 days. How many pages a day is that, evenly?" }, { "role": "assistant", "content": "```python\npages = 95\ndays = 5\nper_day = pages // days # 19\nprint(per_day)\n```\nIt prints 19.\n\n19 pages a day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0058792
<|start|><|user|> Under a 33% contingency agreement, what fee is owed on a $40,000 award?<|eot|> <|assistant|> ```python recovery = 40000 rate = 33 / 100 # 0.33 fee = recovery * rate # 13200.0 print(f"{fee:.2f}") ``` Run it and it prints: 13200.00 The lawyer's fee comes to $13,200.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Under a 33% contingency agreement, what fee is owed on a $40,000 award?" }, { "role": "assistant", "content": "```python\nrecovery = 40000\nrate = 33 / 100 # 0.33\nfee = recovery * rate # 13200.0\nprint(f\"{fee:.2f}\")\n```\nRun it and it prints: 13200.00\n\nThe l...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "13200.00", "printed": "13200.00", "notation": null}
nlprog_det-setting-0058793
<|start|><|user|> $1,000 is invested at 2% compounded yearly. What is it worth after 2 years?<|eot|> <|assistant|> principal = 1000 rate = 2 / 100 years = 2 value = principal * (1 + rate) ** years print(f"{value:.2f}") It prints: 1040.40 The balance is $1,040.40.<|eot|> <|end|>
chat
[ { "role": "user", "content": "$1,000 is invested at 2% compounded yearly. What is it worth after 2 years?" }, { "role": "assistant", "content": " principal = 1000\n rate = 2 / 100\n years = 2\n value = principal * (1 + rate) ** years\n print(f\"{value:.2f}\")\nIt prints: 1040.40\n...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "1040.40", "printed": "1040.40", "notation": null}
nlprog_det-setting-0058794
<|start|><|user|> Buying 3 file boxes at $22 each, 3 chairs at $15 each, 2 notebooks at $30 each, 2 notebooks at $7 each, someone hands over $200. What change comes back?<|eot|> <|assistant|> ```python items = [(3, 22), (3, 15), (2, 30), (2, 7)] total = sum(q * p for q, p in items) # 185 paid = 200 change = paid - tot...
chat
[ { "role": "user", "content": "Buying 3 file boxes at $22 each, 3 chairs at $15 each, 2 notebooks at $30 each, 2 notebooks at $7 each, someone hands over $200. What change comes back?" }, { "role": "assistant", "content": "```python\nitems = [(3, 22), (3, 15), (2, 30), (2, 7)]\ntotal = sum(q * p ...
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0058795
<|start|><|user|> Zoe and Rafael share $4,459 in the ratio 3:4. How much does Zoe get?<|eot|> <|assistant|> Zoe gets $1,911.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Zoe and Rafael share $4,459 in the ratio 3:4. How much does Zoe get?" }, { "role": "assistant", "content": "Zoe gets $1,911." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "1911", "printed": "1911", "notation": null}
nlprog_det-setting-0058796
<|start|><|system|> You are a data assistant.<|eot|> <|user|> Count the days between June 10, 2027 and June 21, 2028.<|eot|> <|assistant|> ```python from datetime import date first = date(2027, 6, 10) # datetime.date(2027, 6, 10) second = date(2028, 6, 21) # datetime.date(2028, 6, 21) print((second - first).days) ```...
chat
[ { "role": "system", "content": "You are a data assistant." }, { "role": "user", "content": "Count the days between June 10, 2027 and June 21, 2028." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2027, 6, 10) # datetime.date(2027, 6, 10)\nse...
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "377", "printed": "377", "notation": null}
nlprog_det-setting-0058797
<|start|><|system|> You are a data assistant.<|eot|> <|user|> Papers were served by mail on March 17, 2028. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date?<|eot|> <|assistant|> The response is due on April 10, 2028.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a data assistant." }, { "role": "user", "content": "Papers were served by mail on March 17, 2028. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date?" }, { "role": "assistant", "content": "The response ...
nlprog_det
setting
original
null
deterministic
[]
[]
64
{"gold": "2028-04-10", "printed": "2028-04-10", "notation": null}
nlprog_det-setting-0058798
The paralegal logged 7 hours at a rate of $300. How much is billed? ```python hours = 7 rate = 300 bill = hours * rate # 2100 print(f"{bill:.2f}") ``` # run result: 2100.00 The bill is $2,100.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "2100.00", "printed": "2100.00", "notation": null}
nlprog_det-setting-0058799
A 5-day trip pays $69 a day for meals and $140 a night for lodging (4 nights). What is the total allowance? The Python version: ```python days = 5 meal_rate = 69 lodging_rate = 140 nights = days - 1 # 4 total = days * meal_rate + nights * lodging_rate # 905 print(total) ``` Run result: 905 That comes to $905.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "905", "printed": "905", "notation": null}
nlprog_det-setting-0058800
Each of Dara's swims burns 400 calories. How many calories over 5 swims? In Python: ```python per_session = 400 sessions = 5 total = per_session * sessions # 2000 print(total) ``` Executed, it shows 2000. That burns 2000 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "2000", "printed": "2000", "notation": null}
nlprog_det-setting-0058801
Pack A has 10 items for $13.28. Pack B has 15 items for $29.20. Which has the lower price per item? We can compute it in Python. ```python pack_a = 13.28 / 10 # 1.3279999999999998 pack_b = 29.2 / 15 # 1.9466666666666665 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` The script prints A, as expec...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
153
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0058802
Divide 132 items among 4 groups as evenly as possible with equal groups. How many per group, and how many remain? The Python version: ```python total = 132 groups = 4 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Executing it gives 33 each, 0 left over, as expected....
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "33 each, 0 left over", "printed": "33 each, 0 left over", "notation": null}
nlprog_det-setting-0058803
<|start|><|system|> You may call the tools below. {"name": "compute", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> Copies cost $15 plus $0.10 f...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"compute\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"s...
nlprog_det
setting
original
null
deterministic
[]
[]
240
{"gold": "17.00", "printed": "17.00", "notation": null}
nlprog_det-setting-0058804
A garage charges $5 an hour, never more than $15 a day. How much for 9 hours? Programmatically: ```python rate = 5 hours = 9 daily_max = 15 cost = min(rate * hours, daily_max) # 15 print(cost) ``` Run result — 15 Parking costs $15.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0058805
Straight-line depreciation: cost $45,000, salvage $2,000, 8 years. How much per year? Depreciation is $5,375.00 per year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
48
{"gold": "5375.00", "printed": "5375.00", "notation": null}
nlprog_det-setting-0058806
A penalty of $250 a day accrues, capped at $2,500. What is owed after 28 days? Python code: per_day = 250 days = 28 cap = 2500 fine = min(per_day * days, cap) # 2500 print(fine) It prints 2500. The fine is $2,500.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0058807
The landlord deducts $200 and $150 from a $2,000 deposit. What is returned to the tenant? Here is the program. deposit = 2000 deductions = [200, 150] refund = deposit - sum(deductions) # 1650 print(refund) That prints 1650. The refund is $1,650.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "1650", "printed": "1650", "notation": null}
nlprog_det-setting-0058808
A 210-mile drive at a steady 60 mph takes how many minutes? The Python version: ```python distance = 210 speed = 60 minutes = distance / speed * 60 # 210.0 print(round(minutes)) ``` The program prints 210. 210 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "210", "printed": "210", "notation": null}
nlprog_det-setting-0058809
At $0.67 per mile, what is the reimbursement for 97 miles? Set it up in Python: ```python miles = 97 rate = 0.67 reimbursement = miles * rate # 64.99000000000001 print(f"{reimbursement:.2f}") ``` On running, it outputs 64.99. The reimbursement is $64.99.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "64.99", "printed": "64.99", "notation": null}
nlprog_det-setting-0058810
<|start|><|system|> You can call tools. Available tools: [{"name": "python_exec", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"python_exec\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python ...
nlprog_det
setting
original
null
deterministic
[]
[]
245
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0058811
How long, in days, is it from January 10, 2021 until August 20, 2021? Python makes this quick: ```python from datetime import date first = date(2021, 1, 10) # datetime.date(2021, 1, 10) second = date(2021, 8, 20) # datetime.date(2021, 8, 20) print((second - first).days) ``` The printout reads: 222 It is 222 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "222", "printed": "222", "notation": null}
nlprog_det-setting-0058812
<|start|><|user|> Revenue is $14,500 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)?<|eot|> <|assistant|> revenue = 14500 costs = 12500 profit = revenue - costs # 2000 margin = profit / revenue * 100 # 13.793103448275861 print(round(margin, 1)) The script pr...
chat
[ { "role": "user", "content": "Revenue is $14,500 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)?" }, { "role": "assistant", "content": " revenue = 14500\n costs = 12500\n profit = revenue - costs # 2000\n margin = profit / revenue * 100 # 13....
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "13.8", "printed": "13.8", "notation": null}
nlprog_det-setting-0058813
Parking is $2 per hour with a daily maximum of $24. What do 8 hours cost? Python code: ```python rate = 2 hours = 8 daily_max = 24 cost = min(rate * hours, daily_max) # 16 print(cost) ``` This prints 16, as expected. Parking costs $16.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0058814
2 claimants share a $4,500 settlement equally. What is each share? Here is the program. ```python settlement = 4500 parties = 2 share = settlement // parties print(share) ``` Out: 2250 Each party receives $2,250.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "2250", "printed": "2250", "notation": null}
nlprog_det-setting-0058815
A trial runs from February 22, 2026 to March 18, 2026, counting both days. How many calendar days is that? ```python from datetime import date first = date(2026, 2, 22) # datetime.date(2026, 2, 22) last = date(2026, 3, 18) # datetime.date(2026, 3, 18) days = (last - first).days + 1 # 25 print(days) ``` The script p...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0058816
<|start|><|user|> Water costs $12 a month plus $4.75 for each 1,000 gallons over 3,000. What is owed for 4,000 gallons?<|eot|> <|assistant|> The bill is $16.75.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Water costs $12 a month plus $4.75 for each 1,000 gallons over 3,000. What is owed for 4,000 gallons?" }, { "role": "assistant", "content": "The bill is $16.75." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
51
{"gold": "16.75", "printed": "16.75", "notation": null}
nlprog_det-setting-0058817
<|start|><|user|> Printing costs 10 cents a page. What does it cost to print 114 copies of a 52-page handout?<|eot|> <|assistant|> ```python pages = 52 copies = 114 cost_per_page = 0.1 cost = pages * copies * cost_per_page # 592.8000000000001 print(f"{cost:.2f}") ``` Execution prints 592.80, as expected. Printing cos...
chat
[ { "role": "user", "content": "Printing costs 10 cents a page. What does it cost to print 114 copies of a 52-page handout?" }, { "role": "assistant", "content": "```python\npages = 52\ncopies = 114\ncost_per_page = 0.1\ncost = pages * copies * cost_per_page # 592.8000000000001\nprint(f\"{cost:.2...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "592.80", "printed": "592.80", "notation": null}
nlprog_det-setting-0058818
At a 9% tax rate, what is the tax on $76.03? Computation in Python: ```python price = 76.03 tax_rate = 9 / 100 # 0.09 tax = price * tax_rate # 6.8427 print(f"{tax:.2f}") ``` Output — 6.84 $6.84 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "6.84", "printed": "6.84", "notation": null}
nlprog_det-setting-0058819
<|start|><|user|> What simple interest does $20,000 earn at 8% a year over 4 years?<|eot|> <|assistant|> ```python principal = 20000 rate = 8 / 100 # 0.08 years = 4 interest = principal * rate * years # 6400.0 print(f"{interest:.2f}") ``` Python prints: 6400.00 It earns $6,400.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What simple interest does $20,000 earn at 8% a year over 4 years?" }, { "role": "assistant", "content": "```python\nprincipal = 20000\nrate = 8 / 100 # 0.08\nyears = 4\ninterest = principal * rate * years # 6400.0\nprint(f\"{interest:.2f}\")\n```\nPython prints: 6...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "6400.00", "printed": "6400.00", "notation": null}
nlprog_det-setting-0058822
Tobias lends $1,000 at 6% simple interest per year for 5 years. How much interest is earned? Set it up in Python: principal = 1000 rate = 6 / 100 # 0.06 years = 5 interest = principal * rate * years # 300.0 print(f"{interest:.2f}") The run gives 300.00, as expected. It earns $300.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "300.00", "printed": "300.00", "notation": null}
nlprog_det-setting-0058824
<|start|><|user|> Attendance was 80 out of 80. Express it as a percent.<|eot|> <|assistant|> 100.0% attended.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Attendance was 80 out of 80. Express it as a percent." }, { "role": "assistant", "content": "100.0% attended." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "100.0", "printed": "100.0", "notation": null}
nlprog_det-setting-0058825
<|start|><|user|> Sales went from 200 to 180. What is the percent change?<|eot|> <|assistant|> ```python old = 200 new = 180 change = (new - old) / old * 100 # -10.0 print(round(change)) ``` The program prints: -10 The change is -10%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Sales went from 200 to 180. What is the percent change?" }, { "role": "assistant", "content": "```python\nold = 200\nnew = 180\nchange = (new - old) / old * 100 # -10.0\nprint(round(change))\n```\nThe program prints: -10\n\nThe change is -10%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "-10", "printed": "-10", "notation": null}
nlprog_det-setting-0058826
<|start|><|user|> After an initial $6,000, the remainder of a $48,000 grant is paid in 6 equal parts. What is each part?<|eot|> <|assistant|> ```python grant = 48000 up_front = 6000 installments = 6 each = (grant - up_front) / installments # 7000.0 print(f"{each:.2f}") ``` Output of the run — 7000.00 $7,000.00 per in...
chat
[ { "role": "user", "content": "After an initial $6,000, the remainder of a $48,000 grant is paid in 6 equal parts. What is each part?" }, { "role": "assistant", "content": "```python\ngrant = 48000\nup_front = 6000\ninstallments = 6\neach = (grant - up_front) / installments # 7000.0\nprint(f\"{e...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "7000.00", "printed": "7000.00", "notation": null}
nlprog_det-setting-0058827
Under a 40% contingency agreement, what fee is owed on a $60,000 award? Python version: ```python recovery = 60000 rate = 40 / 100 # 0.4 fee = recovery * rate # 24000.0 print(f"{fee:.2f}") ``` Run result — 24000.00 The fee is $24,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "24000.00", "printed": "24000.00", "notation": null}
nlprog_det-setting-0058828
A training session lasted 5 hours and 20 minutes. How many minutes is that? A short script: ```python hours = 5 minutes = 20 total_minutes = hours * 60 + minutes # 320 print(total_minutes) ``` The code prints: 320 The training session lasted 320 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "320", "printed": "320", "notation": null}
nlprog_det-setting-0058829
The meal allowance is $79 per day. What is it for 7 days? We write it as a program: days = 7 meal_rate = 79 total = days * meal_rate # 553 print(total) Output: 553 That comes to $553.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
69
{"gold": "553", "printed": "553", "notation": null}
nlprog_det-setting-0058830
Convert 16.3 km to meters. Let the code do the arithmetic: km = 16.3 meters = km * 1000 # 16300.0 print(round(meters)) Run output — 16300 16,300 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
69
{"gold": "16300", "printed": "16300", "notation": null}
nlprog_det-setting-0058831
<|start|><|system|> Tool definitions: [{"name": "py_exec", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "lookup_statute", "description": "Look u...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"py_exec\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\...
nlprog_det
setting
original
null
deterministic
[]
[]
367
{"gold": "2029-03-19", "printed": "2029-03-19", "notation": null}
nlprog_det-setting-0058832
<|start|><|user|> A training session lasted 2 hours and 22 minutes. How many minutes is that?<|eot|> <|assistant|> ```python hours = 2 minutes = 22 total_minutes = hours * 60 + minutes # 142 print(total_minutes) ``` Program output: 142 The training session lasted 142 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A training session lasted 2 hours and 22 minutes. How many minutes is that?" }, { "role": "assistant", "content": "```python\nhours = 2\nminutes = 22\ntotal_minutes = hours * 60 + minutes # 142\nprint(total_minutes)\n```\nProgram output: 142\n\nThe training session...
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "142", "printed": "142", "notation": null}
nlprog_det-setting-0058833
<|start|><|user|> The building opened in 2020. How many years had passed by 2025?<|eot|> <|assistant|> ```python start_year = 2020 end_year = 2025 print(end_year - start_year) ``` (Out: 5) That is 5 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The building opened in 2020. How many years had passed by 2025?" }, { "role": "assistant", "content": "```python\nstart_year = 2020\nend_year = 2025\nprint(end_year - start_year)\n```\n(Out: 5)\n\nThat is 5 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0058834
Zoe's scores were 84, 73 and 80. What is the average score? In Python: ```python scores = [84, 73, 80] average = sum(scores) // len(scores) # 79 print(average) ``` This prints 79. The average score is 79.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "79", "printed": "79", "notation": null}