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-0047114
<|start|><|user|> An unpaid balance of $2,500 accrues 1.5% simple interest per month. How much interest accrues in 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}") ``` # printed: 187.50 $187...
chat
[ { "role": "user", "content": "An unpaid balance of $2,500 accrues 1.5% simple interest per month. How much interest accrues in 5 months?" }, { "role": "assistant", "content": "```python\nbalance = 2500\nmonthly_rate = 1.5 / 100 # 0.015\nmonths = 5\ninterest = balance * monthly_rate * months # ...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "187.50", "printed": "187.50", "notation": null}
nlprog_det-setting-0047115
<|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": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "business_days", "d...
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\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \...
nlprog_det
setting
original
null
deterministic
[]
[]
334
{"gold": "1672", "printed": "1672", "notation": null}
nlprog_det-setting-0047116
A penalty of $100 a day accrues, capped at $2,500. What is owed after 26 days? ```python per_day = 100 days = 26 cap = 2500 fine = min(per_day * days, cap) # 2500 print(fine) ``` Printed — 2500 The fine is $2,500.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0047117
5 bike rides at 200 calories each burn how many calories in total? Let's compute it with Python. ```python per_session = 200 sessions = 5 total = per_session * sessions # 1000 print(total) ``` Output of the run — 1000 That burns 1000 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0047118
<|start|><|user|> A meeting starts at 1:20 PM and lasts 25 minutes. When does it end?<|eot|> <|assistant|> ```python start = 13 * 60 + 20 end = start + 25 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` (Output: 1:45 PM) The meeting finishes at 1:45 PM.<|eo...
chat
[ { "role": "user", "content": "A meeting starts at 1:20 PM and lasts 25 minutes. When does it end?" }, { "role": "assistant", "content": "```python\nstart = 13 * 60 + 20\nend = start + 25\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}\")...
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "1:45 PM", "printed": "1:45 PM", "notation": null}
nlprog_det-setting-0047119
<|start|><|user|> A customer buys 4 calendars at $14 each, 5 paper reams at $9 each, 2 hard drives at $20 each and pays with $150. How much change is due?<|eot|> <|assistant|> items = [(4, 14), (5, 9), (2, 20)] total = sum(q * p for q, p in items) # 141 paid = 150 change = paid - total # 9 print(c...
chat
[ { "role": "user", "content": "A customer buys 4 calendars at $14 each, 5 paper reams at $9 each, 2 hard drives at $20 each and pays with $150. How much change is due?" }, { "role": "assistant", "content": " items = [(4, 14), (5, 9), (2, 20)]\n total = sum(q * p for q, p in items) # 141\n ...
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0047120
Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 46 hours? Computing it: ```python rate = 25.0 hours = 46 regular = 40 * rate # 1000.0 overtime = (hours - 40) * rate * 1.5 # 225.0 pay = regular + overtime # 1225.0 print(f"{pay:.2f}") ``` Output: 1225.00 The weekly pay is $1,22...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "1225.00", "printed": "1225.00", "notation": null}
nlprog_det-setting-0047121
8 boxes hold 8 lanyards each. After 14 are handed out, how many are left? Here is a short program for it. ```python boxes = 8 per_box = 8 given_away = 14 left = boxes * per_box - given_away # 50 print(left) ``` (Result: 50) That leaves 50 lanyards.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0047122
What is a 22% tip on a $60.68 bill? Coded up: bill = 60.68 tip_rate = 22 / 100 # 0.22 tip = bill * tip_rate # 13.3496 print(f"{tip:.2f}") Output = 13.35 The tip is $13.35.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "13.35", "printed": "13.35", "notation": null}
nlprog_det-setting-0047123
An unpaid balance of $1,000 accrues 1% simple interest per month. How much interest accrues in 5 months? Python code: ```python balance = 1000 monthly_rate = 1 / 100 # 0.01 months = 5 interest = balance * monthly_rate * months # 50.0 print(f"{interest:.2f}") ``` Run result = 50.00 The interest is $50.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "50.00", "printed": "50.00", "notation": null}
nlprog_det-setting-0047124
What is a 20% tip on a $217.22 bill? Script: ```python bill = 217.22 tip_rate = 20 / 100 # 0.2 tip = bill * tip_rate # 43.444 print(f"{tip:.2f}") ``` (Program output: 43.44) The tip is $43.44.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "43.44", "printed": "43.44", "notation": null}
nlprog_det-setting-0047125
<|start|><|user|> Buying 4 folders at $28 each, 1 hard drives at $4 each, 2 calendars at $23 each, 4 rulers at $8 each, someone hands over $200. What change comes back?<|eot|> <|assistant|> The change is $6.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Buying 4 folders at $28 each, 1 hard drives at $4 each, 2 calendars at $23 each, 4 rulers at $8 each, someone hands over $200. What change comes back?" }, { "role": "assistant", "content": "The change is $6." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
62
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0047126
<|start|><|system|> You can call tools. Available tools: [{"name": "sandbox_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> A storero...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"sandbox_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, ...
nlprog_det
setting
original
null
deterministic
[]
[]
231
{"gold": "751", "printed": "751", "notation": null}
nlprog_det-setting-0047127
At 30 miles per hour, how many minutes does a 160-mile trip take? We can compute it in Python. ```python distance = 160 speed = 30 minutes = distance / speed * 60 # 320.0 print(round(minutes)) ``` When run, it prints 320, as expected. The trip takes 320 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "320", "printed": "320", "notation": null}
nlprog_det-setting-0047128
A 36-month warranty starts on October 17, 2021. On what date does it end? Python version: ```python from datetime import date start = date(2021, 10, 17) months = 36 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Execution ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "2024-10-17", "printed": "2024-10-17", "notation": null}
nlprog_det-setting-0047129
<|start|><|user|> How long, in days, is it from December 9, 2024 until March 27, 2025?<|eot|> <|assistant|> ```python from datetime import date first = date(2024, 12, 9) # datetime.date(2024, 12, 9) second = date(2025, 3, 27) # datetime.date(2025, 3, 27) print((second - first).days) ``` On running, it outputs: 108 I...
chat
[ { "role": "user", "content": "How long, in days, is it from December 9, 2024 until March 27, 2025?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2024, 12, 9) # datetime.date(2024, 12, 9)\nsecond = date(2025, 3, 27) # datetime.date(2025, 3, 27)\nprint...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "108", "printed": "108", "notation": null}
nlprog_det-setting-0047130
One can of paint covers 250 square feet. How many cans are needed for 1078 square feet of wall? The Python version: ```python import math area = 1078 coverage = 250 cans = math.ceil(area / coverage) # 5 print(cans) ``` The run gives: 5 5 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0047131
Shipping costs $5 plus $0.75 per pound. What does a 18-pound parcel cost to ship? The Python version: ```python base = 5 per_pound = 0.75 weight = 18 cost = base + per_pound * weight # 18.5 print(f"{cost:.2f}") ``` On running, it outputs: 18.50 The charge is $18.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "18.50", "printed": "18.50", "notation": null}
nlprog_det-setting-0047132
618 files go into boxes of 20. How many boxes does that take? 31 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "31", "printed": "31", "notation": null}
nlprog_det-setting-0047133
Monthly rent is $900. A tenant moves in with 17 days left in a 30-day month. What is the prorated rent? Here is a short program for it. ```python rent = 900 days_in_month = 30 days_occupied = 17 prorated = rent * days_occupied / days_in_month # 510.0 print(f"{prorated:.2f}") ``` stdout = 510.00 The prorated rent is ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "510.00", "printed": "510.00", "notation": null}
nlprog_det-setting-0047134
<|start|><|user|> 251 volunteers are split into 8 equal teams. How many are on each team, and how many are left over?<|eot|> <|assistant|> The answer: 31 each, 3 left over.<|eot|> <|end|>
chat
[ { "role": "user", "content": "251 volunteers are split into 8 equal teams. How many are on each team, and how many are left over?" }, { "role": "assistant", "content": "The answer: 31 each, 3 left over." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "31 each, 3 left over", "printed": "31 each, 3 left over", "notation": null}
nlprog_det-setting-0047135
<|start|><|system|> Functions: {"name": "py_exec", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> A 30-day notice period b...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"py_exec\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": ...
nlprog_det
setting
original
null
deterministic
[]
[]
237
{"gold": "2028-07-31", "printed": "2028-07-31", "notation": null}
nlprog_det-setting-0047136
<|start|><|system|> Be concise.<|eot|> <|user|> Goods bought on August 2, 2019 carry a 18-month warranty. When does it expire?<|eot|> <|assistant|> from datetime import date start = date(2019, 8, 2) months = 18 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, ...
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "Goods bought on August 2, 2019 carry a 18-month warranty. When does it expire?" }, { "role": "assistant", "content": " from datetime import date\n start = date(2019, 8, 2)\n months = 18\n years,...
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "2021-02-02", "printed": "2021-02-02", "notation": null}
nlprog_det-setting-0047137
If a 6-year limitations period starts on March 2, 2012, when does it end? Here is a short program for it. ```python from datetime import date accrued = date(2012, 3, 2) # datetime.date(2012, 3, 2) years = 6 expires = accrued.replace(year=accrued.year + years) # datetime.date(2018, 3, 2) print(expires.isoformat()) ``...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "2018-03-02", "printed": "2018-03-02", "notation": null}
nlprog_det-setting-0047138
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> To read 528 pages in 12 days, how many pages per day are needed?<|eot|> <|assistant|> ```python pages = 528 days = 12 per_day = pages // days # 44 print(per_day) ``` Execution prints 44. That is 44 pages per day.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "To read 528 pages in 12 days, how many pages per day are needed?" }, { "role": "assistant", "content": "```python\npages = 528\ndays = 12\nper_day = pages // days # 44\nprint(per_day)...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "44", "printed": "44", "notation": null}
nlprog_det-setting-0047139
Count 10 days forward from October 3, 2026. What date is that? ```python from datetime import date, timedelta start = date(2026, 10, 3) # datetime.date(2026, 10, 3) end = start + timedelta(days=10) # datetime.date(2026, 10, 13) print(end.isoformat()) ``` Run it and it prints 2026-10-13. That date is October 13, 202...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "2026-10-13", "printed": "2026-10-13", "notation": null}
nlprog_det-setting-0047141
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> What is 30 degrees Celsius in Fahrenheit?<|eot|> <|assistant|> ```python celsius = 30 fahrenheit = celsius * 9 / 5 + 32 # 86.0 print(round(fahrenheit)) ``` The program prints 86, as expected. It equals 86 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "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```\nThe prog...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "86", "printed": "86", "notation": null}
nlprog_det-setting-0047142
At 1.5% a month (simple), what interest builds on $7,500 over 4 months? Here is the program. ```python balance = 7500 monthly_rate = 1.5 / 100 # 0.015 months = 4 interest = balance * monthly_rate * months # 450.0 print(f"{interest:.2f}") ``` Printed result: 450.00 The interest is $450.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "450.00", "printed": "450.00", "notation": null}
nlprog_det-setting-0047143
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> Starting with 659 file boxes and using 31 per day, how many remain after 14 days?<|eot|> <|assistant|> ```python stock = 659 per_day = 31 days = 14 left = stock - per_day * days # 225 print(left) ``` (Output: 225) 225 remain.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "Starting with 659 file boxes and using 31 per day, how many remain after 14 days?" }, { "role": "assistant", "content": "```python\nstock = 659\nper_day = 31\ndays = 14\nleft = stock - per_day ...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "225", "printed": "225", "notation": null}
nlprog_det-setting-0047144
A shift runs from 8:16 AM to 9:28 AM. How long is it in minutes? Script: start = 8 * 60 + 16 # 496 end = 9 * 60 + 28 # 568 print(end - start) # out: 72 72 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
69
{"gold": "72", "printed": "72", "notation": null}
nlprog_det-setting-0047145
<|start|><|user|> How many meters are in 32.7 kilometers?<|eot|> <|assistant|> km = 32.7 meters = km * 1000 # 32700.000000000004 print(round(meters)) Program output — 32700 That is 32,700 meters.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many meters are in 32.7 kilometers?" }, { "role": "assistant", "content": " km = 32.7\n meters = km * 1000 # 32700.000000000004\n print(round(meters))\nProgram output — 32700\n\nThat is 32,700 meters." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "32700", "printed": "32700", "notation": null}
nlprog_det-setting-0047147
3 clients win $48,000. The lawyer takes 30%, and the rest is split equally. How much does each client get? Each client gets $11,200.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "11200.00", "printed": "11200.00", "notation": null}
nlprog_det-setting-0047148
Convert 1 h 48 min (the length of a hearing) to minutes. ```python hours = 1 minutes = 48 total_minutes = hours * 60 + minutes # 108 print(total_minutes) ``` Python prints 108, as expected. That is 108 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "108", "printed": "108", "notation": null}
nlprog_det-setting-0047149
How long, in days, is it from March 11, 2025 until August 30, 2025? ```python from datetime import date first = date(2025, 3, 11) # datetime.date(2025, 3, 11) second = date(2025, 8, 30) # datetime.date(2025, 8, 30) print((second - first).days) ``` Output — 172 It is 172 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "172", "printed": "172", "notation": null}
nlprog_det-setting-0047150
A client paid a $5,000 retainer. The firm has billed 6 hours at $150 per hour. How much of the retainer is left? Here's the code. ```python retainer = 5000 hours = 6 rate = 150 left = retainer - hours * rate # 4100 print(left) ``` Interpreter output: 4100 The remaining balance is $4,100.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "4100", "printed": "4100", "notation": null}
nlprog_det-setting-0047151
How many meters are in 63.7 kilometers? Program: ```python km = 63.7 meters = km * 1000 # 63700.0 print(round(meters)) ``` (Execution result: 63700) That is 63,700 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "63700", "printed": "63700", "notation": null}
nlprog_det-setting-0047152
<|start|><|user|> How many units at $25 each (variable cost $21) cover $2,500 of fixed costs?<|eot|> <|assistant|> Break-even is 625 units.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many units at $25 each (variable cost $21) cover $2,500 of fixed costs?" }, { "role": "assistant", "content": "Break-even is 625 units." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "625", "printed": "625", "notation": null}
nlprog_det-setting-0047153
<|start|><|system|> Tool definitions: {"name": "python_exec", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> How long, in days, is it fr...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"python_exec\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"...
nlprog_det
setting
original
null
deterministic
[]
[]
218
{"gold": "86", "printed": "86", "notation": null}
nlprog_det-setting-0047154
<|start|><|user|> Joelle was born on March 13, 1960. How old is Joelle on October 17, 2027?<|eot|> <|assistant|> ```python from datetime import date born = date(1960, 3, 13) # datetime.date(1960, 3, 13) on = date(2027, 10, 17) # datetime.date(2027, 10, 17) age = on.year - born.year - ((on.month, on.day) < (born.month...
chat
[ { "role": "user", "content": "Joelle was born on March 13, 1960. How old is Joelle on October 17, 2027?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1960, 3, 13) # datetime.date(1960, 3, 13)\non = date(2027, 10, 17) # datetime.date(2027, 10, 17)\nage...
nlprog_det
setting
original
null
deterministic
[]
[]
160
{"gold": "67", "printed": "67", "notation": null}
nlprog_det-setting-0047155
<|start|><|user|> A lawyer's fee is 40% of a $12,000 recovery. How large is the fee?<|eot|> <|assistant|> recovery = 12000 rate = 40 / 100 # 0.4 fee = recovery * rate # 4800.0 print(f"{fee:.2f}") stdout = 4800.00 The lawyer's fee comes to $4,800.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lawyer's fee is 40% of a $12,000 recovery. How large is the fee?" }, { "role": "assistant", "content": " recovery = 12000\n rate = 40 / 100 # 0.4\n fee = recovery * rate # 4800.0\n print(f\"{fee:.2f}\")\nstdout = 4800.00\n\nThe lawyer's fee comes to ...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "4800.00", "printed": "4800.00", "notation": null}
nlprog_det-setting-0047156
7 walks at 200 calories each burn how many calories in total? In code: ```python per_session = 200 sessions = 7 total = per_session * sessions # 1400 print(total) ``` # program output: 1400 1400 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "1400", "printed": "1400", "notation": null}
nlprog_det-setting-0047157
$1,000 is invested at 2% compounded yearly. What is it worth after 5 years? Python version: ```python principal = 1000 rate = 2 / 100 # 0.02 years = 5 value = principal * (1 + rate) ** years # 1104.0808032 print(f"{value:.2f}") ``` Execution result — 1104.08 The balance is $1,104.08.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "1104.08", "printed": "1104.08", "notation": null}
nlprog_det-setting-0047158
How much is a $74 daily meal allowance over 7 days? Here is the program. ```python days = 7 meal_rate = 74 total = days * meal_rate # 518 print(total) ``` Executing it gives: 518 The allowance is $518.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "518", "printed": "518", "notation": null}
nlprog_det-setting-0047159
<|start|><|user|> 4 bike rides at 200 calories each burn how many calories in total?<|eot|> <|assistant|> ```python per_session = 200 sessions = 4 total = per_session * sessions # 800 print(total) ``` Out: 800 800 calories in total.<|eot|> <|end|>
chat
[ { "role": "user", "content": "4 bike rides at 200 calories each burn how many calories in total?" }, { "role": "assistant", "content": "```python\nper_session = 200\nsessions = 4\ntotal = per_session * sessions # 800\nprint(total)\n```\nOut:\n800\n\n800 calories in total." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "800", "printed": "800", "notation": null}
nlprog_det-setting-0047160
<|start|><|system|> You have access to these functions: {"name": "code_runner", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}} {"name": "define_word", "descrip...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"code_runner\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requ...
nlprog_det
setting
original
null
deterministic
[]
[]
382
{"gold": "100.00", "printed": "100.00", "notation": null}
nlprog_det-setting-0047161
A 315-page report must be reviewed in 15 days. How many pages a day is that, evenly? Set it up in Python: ```python pages = 315 days = 15 per_day = pages // days # 21 print(per_day) ``` Executed, it shows 21. That is 21 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0047162
A lease runs for 12 months at $1,640 per month. How much rent is paid over the whole term? Python makes this quick: ```python monthly_rent = 1640 months = 12 total = monthly_rent * months print(total) ``` (Program output: 19680) The rent over the term is $19,680.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "19680", "printed": "19680", "notation": null}
nlprog_det-setting-0047163
Revenue is $38,500 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)? Translated to Python: revenue = 38500 costs = 36000 profit = revenue - costs # 2500 margin = profit / revenue * 100 # 6.493506493506493 print(round(margin, 1)) The program prints 6.5, as exp...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "6.5", "printed": "6.5", "notation": null}
nlprog_det-setting-0047164
A settlement of $18,000 is split equally among 2 parties. How much does each party receive? In code: ```python settlement = 18000 parties = 2 share = settlement // parties # 9000 print(share) ``` (Printed: 9000) Each party receives $9,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "9000", "printed": "9000", "notation": null}
nlprog_det-setting-0047165
<|start|><|user|> An unpaid balance of $4,000 accrues 2% simple interest per month. How much interest accrues in 3 months?<|eot|> <|assistant|> ```python balance = 4000 monthly_rate = 2 / 100 # 0.02 months = 3 interest = balance * monthly_rate * months # 240.0 print(f"{interest:.2f}") ``` Python prints 240.00, as exp...
chat
[ { "role": "user", "content": "An unpaid balance of $4,000 accrues 2% simple interest per month. How much interest accrues in 3 months?" }, { "role": "assistant", "content": "```python\nbalance = 4000\nmonthly_rate = 2 / 100 # 0.02\nmonths = 3\ninterest = balance * monthly_rate * months # 240.0...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "240.00", "printed": "240.00", "notation": null}
nlprog_det-setting-0047166
<|start|><|user|> After a 40% fee is taken from a $30,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|> <|assistant|> ```python award = 30000 fee = award * 40 / 100 # 12000.0 remaining = award - fee # 18000.0 per_client = remaining / 2 # 9000.0 print(f"{per_client:.2f}") ...
chat
[ { "role": "user", "content": "After a 40% fee is taken from a $30,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?" }, { "role": "assistant", "content": "```python\naward = 30000\nfee = award * 40 / 100 # 12000.0\nremaining = award - fee # 18000.0\nper_cl...
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "9000.00", "printed": "9000.00", "notation": null}
nlprog_det-setting-0047167
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> A car gets 30 miles per gallon. Gas is $3.19 a gallon. What does fuel cost for a 120-mile trip?<|eot|> <|assistant|> The trip uses $12.76 of gas.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "role": "user", "content": "A car gets 30 miles per gallon. Gas is $3.19 a gallon. What does fuel cost for a 120-mile trip?" }, { "role": "assistant", "content": "The trip uses $12.76 of gas." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
62
{"gold": "12.76", "printed": "12.76", "notation": null}
nlprog_det-setting-0047168
<|start|><|user|> How long, in days, is it from March 1, 2027 until May 2, 2027?<|eot|> <|assistant|> ```python from datetime import date first = date(2027, 3, 1) # datetime.date(2027, 3, 1) second = date(2027, 5, 2) # datetime.date(2027, 5, 2) print((second - first).days) ``` The program prints: 62 There are 62 day...
chat
[ { "role": "user", "content": "How long, in days, is it from March 1, 2027 until May 2, 2027?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2027, 3, 1) # datetime.date(2027, 3, 1)\nsecond = date(2027, 5, 2) # datetime.date(2027, 5, 2)\nprint((second -...
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "62", "printed": "62", "notation": null}
nlprog_det-setting-0047169
With $4,000 in costs and $8,000 in revenue, what percent of revenue is profit? Round to one decimal. Profit is 50.0% of revenue.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "50.0", "printed": "50.0", "notation": null}
nlprog_det-setting-0047170
<|start|><|user|> How much sales tax is charged on a $816.78 purchase at 4%?<|eot|> <|assistant|> ```python price = 816.78 tax_rate = 4 / 100 tax = price * tax_rate print(f"{tax:.2f}") ``` (Result: 32.67) $32.67 in tax.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How much sales tax is charged on a $816.78 purchase at 4%?" }, { "role": "assistant", "content": "```python\nprice = 816.78\ntax_rate = 4 / 100\ntax = price * tax_rate\nprint(f\"{tax:.2f}\")\n```\n(Result: 32.67)\n\n$32.67 in tax." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "32.67", "printed": "32.67", "notation": null}
nlprog_det-setting-0047171
Copies cost $15 plus $0.10 for each page beyond 0. How much for 94 pages? A Python solution: ```python pages = 94 base = 15 per_page = 0.1 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 24.4 print(f"{cost:.2f}") ``` On running, it outputs: 24.40 The copy costs $24.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "24.40", "printed": "24.40", "notation": null}
nlprog_det-setting-0047172
<|start|><|user|> Express 309 hours in days and hours.<|eot|> <|assistant|> That is 12 days and 21 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Express 309 hours in days and hours." }, { "role": "assistant", "content": "That is 12 days and 21 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "12 days and 21 hours", "printed": "12 days and 21 hours", "notation": null}
nlprog_det-setting-0047173
Fixed costs are $1,200. Each unit sells for $30 and costs $22 to make. How many units must be sold to break even? Here is the program. ```python import math fixed = 1200 price = 30 variable = 22 units = math.ceil(fixed / (price - variable)) # 150 print(units) ``` The program prints: 150 Break-even is 150 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0047174
How many weekdays (Monday to Friday) fall after June 15, 2025 up to and including June 21, 2025? ```python from datetime import date, timedelta start = date(2025, 6, 15) end = date(2025, 6, 21) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() < 5: count += 1 pri...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0047175
<|start|><|user|> Beatriz earns a 4% commission on $108,338 of sales. What is the commission?<|eot|> <|assistant|> ```python sales = 108338 rate = 4 / 100 # 0.04 commission = sales * rate # 4333.52 print(f"{commission:.2f}") ``` Running it prints 4333.52, as expected. Beatriz earns $4,333.52.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Beatriz earns a 4% commission on $108,338 of sales. What is the commission?" }, { "role": "assistant", "content": "```python\nsales = 108338\nrate = 4 / 100 # 0.04\ncommission = sales * rate # 4333.52\nprint(f\"{commission:.2f}\")\n```\nRunning it prints 4333.52, ...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "4333.52", "printed": "4333.52", "notation": null}
nlprog_det-setting-0047176
Counting the first and last day, how many days are there from September 24, 2019 through October 7, 2019? We write it as a program: ```python from datetime import date first = date(2019, 9, 24) # datetime.date(2019, 9, 24) last = date(2019, 10, 7) # datetime.date(2019, 10, 7) days = (last - first).days + 1 # 14 pri...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0047177
<|start|><|system|> Tools you may use: {"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": "interpreter", "description": "Executes P...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\": [\"title\", \"sect...
nlprog_det
setting
original
null
deterministic
[]
[]
361
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0047178
A party has 21 days to respond to a motion served on January 8, 2018, with 3 days added because service was by mail. When is the response due? As a program: ```python from datetime import date, timedelta served = date(2018, 1, 8) # datetime.date(2018, 1, 8) response_days = 21 mail_days = 3 due = served + timedelta(da...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
172
{"gold": "2018-02-01", "printed": "2018-02-01", "notation": null}
nlprog_det-setting-0047179
A measure needs at least 75% of 268 votes. How many votes is that, rounded up? A few lines of Python do it: ```python import math voters = 268 needed = math.ceil(voters * 75 / 100) # 201 print(needed) ``` Executing it gives 201, as expected. 201 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "201", "printed": "201", "notation": null}
nlprog_det-setting-0047180
Starting from $25,000, the team spends $2,211, $2,488, $2,506, $1,030. What remains? Computing it: ```python budget = 25000 expenses = [2211, 2488, 2506, 1030] left = budget - sum(expenses) # 16765 print(left) ``` The printout reads 16765. The remaining budget is $16,765.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "16765", "printed": "16765", "notation": null}
nlprog_det-setting-0047181
<|start|><|user|> A count moves from 200 to 220. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> ```python old = 200 new = 220 change = (new - old) / old * 100 # 10.0 print(round(change)) ``` Executing it gives 10, as expected. It changed by 10%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A count moves from 200 to 220. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": "```python\nold = 200\nnew = 220\nchange = (new - old) / old * 100 # 10.0\nprint(round(change))\n```\nExecuting it gives 10, as expecte...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0047182
<|start|><|user|> A 8% increase is applied to $1,250 monthly rent. What is the new amount?<|eot|> <|assistant|> ```python rent = 1250 increase = 8 / 100 # 0.08 new_rent = rent * (1 + increase) # 1350.0 print(f"{new_rent:.2f}") ``` The printout reads: 1350.00 It rises to $1,350.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 8% increase is applied to $1,250 monthly rent. What is the new amount?" }, { "role": "assistant", "content": "```python\nrent = 1250\nincrease = 8 / 100 # 0.08\nnew_rent = rent * (1 + increase) # 1350.0\nprint(f\"{new_rent:.2f}\")\n```\nThe printout reads: 1350....
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "1350.00", "printed": "1350.00", "notation": null}
nlprog_det-setting-0047183
At 1% a month (simple), what interest builds on $7,500 over 2 months? Let the code do the arithmetic: ```python balance = 7500 monthly_rate = 1 / 100 # 0.01 months = 2 interest = balance * monthly_rate * months # 150.0 print(f"{interest:.2f}") ``` The script prints 150.00. $150.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "150.00", "printed": "150.00", "notation": null}
nlprog_det-setting-0047184
<|start|><|user|> With $8,000 in costs and $10,500 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|> <|assistant|> ```python revenue = 10500 costs = 8000 profit = revenue - costs # 2500 margin = profit / revenue * 100 # 23.809523809523807 print(round(margin, 1)) ``` # console output: 23.8 P...
chat
[ { "role": "user", "content": "With $8,000 in costs and $10,500 in revenue, what percent of revenue is profit? Round to one decimal." }, { "role": "assistant", "content": "```python\nrevenue = 10500\ncosts = 8000\nprofit = revenue - costs # 2500\nmargin = profit / revenue * 100 # 23.80952380952...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "23.8", "printed": "23.8", "notation": null}
nlprog_det-setting-0047185
<|start|><|user|> 7 swims at 250 calories each burn how many calories in total?<|eot|> <|assistant|> ```python per_session = 250 sessions = 7 total = per_session * sessions # 1750 print(total) ``` The interpreter prints: 1750 1750 calories in total.<|eot|> <|end|>
chat
[ { "role": "user", "content": "7 swims at 250 calories each burn how many calories in total?" }, { "role": "assistant", "content": "```python\nper_session = 250\nsessions = 7\ntotal = per_session * sessions # 1750\nprint(total)\n```\nThe interpreter prints: 1750\n\n1750 calories in total." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "1750", "printed": "1750", "notation": null}
nlprog_det-setting-0047186
Convert 5 h 49 min (the length of a meeting) to minutes. Python code: ```python hours = 5 minutes = 49 total_minutes = hours * 60 + minutes # 349 print(total_minutes) ``` Printed result — 349 The meeting lasted 349 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "349", "printed": "349", "notation": null}
nlprog_det-setting-0047188
<|start|><|system|> You can call tools. Available tools: [{"name": "sandbox_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "translate", "d...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"sandbox_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, ...
nlprog_det
setting
original
null
deterministic
[]
[]
439
{"gold": "72", "printed": "72", "notation": null}
nlprog_det-setting-0047189
<|start|><|user|> A meeting starts at 2:45 PM and lasts 25 minutes. When does it end?<|eot|> <|assistant|> ```python start = 14 * 60 + 45 end = start + 25 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Run result = 3:10 PM It ends at 3:10 PM.<|eot|> <|end|...
chat
[ { "role": "user", "content": "A meeting starts at 2:45 PM and lasts 25 minutes. When does it end?" }, { "role": "assistant", "content": "```python\nstart = 14 * 60 + 45\nend = start + 25\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}\")...
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "3:10 PM", "printed": "3:10 PM", "notation": null}
nlprog_det-setting-0047190
84 volunteers are split into 4 equal teams. How many are on each team, and how many are left over? In Python: ```python total = 84 groups = 4 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Running it prints 21 each, 0 left over. The answer: 21 each, 0 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "21 each, 0 left over", "printed": "21 each, 0 left over", "notation": null}
nlprog_det-setting-0047191
<|start|><|user|> 111 of 200 members attended. What percent attended?<|eot|> <|assistant|> ```python present = 111 total = 200 percent = present / total * 100 # 55.50000000000001 print(round(percent, 1)) ``` (Out: 55.5) Attendance was 55.5%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "111 of 200 members attended. What percent attended?" }, { "role": "assistant", "content": "```python\npresent = 111\ntotal = 200\npercent = present / total * 100 # 55.50000000000001\nprint(round(percent, 1))\n```\n(Out: 55.5)\n\nAttendance was 55.5%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "55.5", "printed": "55.5", "notation": null}
nlprog_det-setting-0047192
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "py_exec", "...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"...
nlprog_det
setting
original
null
deterministic
[]
[]
297
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0047193
4 books come back 23 days late, at $0.15 a day each. What is the fine? A few lines of Python do it: per_day = 0.15 days_late = 23 books = 4 fine = per_day * days_late * books # 13.799999999999999 print(f"{fine:.2f}") (Out: 13.80) $13.80 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "13.80", "printed": "13.80", "notation": null}
nlprog_det-setting-0047194
<|start|><|system|> You can call tools. Available tools: {"name": "interpreter", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> A $1,000 sec...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"interpreter\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, ...
nlprog_det
setting
original
null
deterministic
[]
[]
210
{"gold": "915", "printed": "915", "notation": null}
nlprog_det-setting-0047195
<|start|><|user|> Which is cheaper per unit: 6 for $4.34 (A) or 18 for $19.91 (B)?<|eot|> <|assistant|> ```python pack_a = 4.34 / 6 # 0.7233333333333333 pack_b = 19.91 / 18 # 1.106111111111111 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` It prints A, as expected. Pack A is cheaper per item.<|e...
chat
[ { "role": "user", "content": "Which is cheaper per unit: 6 for $4.34 (A) or 18 for $19.91 (B)?" }, { "role": "assistant", "content": "```python\npack_a = 4.34 / 6 # 0.7233333333333333\npack_b = 19.91 / 18 # 1.106111111111111\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'A'\nprint(cheaper)...
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0047196
How many 1-foot square tiles cover a 15 ft by 13 ft floor (round up)? It takes 195 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "195", "printed": "195", "notation": null}
nlprog_det-setting-0047197
<|start|><|system|> Tools you may use: [{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.",...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"name\": \"lookup_statute\", \"d...
nlprog_det
setting
original
null
deterministic
[]
[]
370
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0047198
A claim accrued on April 21, 2024. The limitations period is 6 years. On what date does it expire? As Python: from datetime import date accrued = date(2024, 4, 21) years = 6 expires = accrued.replace(year=accrued.year + years) print(expires.isoformat()) The program prints 2030-04-21, as expected. ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "2030-04-21", "printed": "2030-04-21", "notation": null}
nlprog_det-setting-0047200
Counting only Monday through Friday, how many business days are there after December 9, 2021 through December 19, 2021? Let the code do the arithmetic: ```python from datetime import date, timedelta start = date(2021, 12, 9) end = date(2021, 12, 19) count = 0 for k in range(1, (end - start).days + 1): if (start + ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
159
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0047201
A measure needs at least 75% of 289 votes. How many votes is that, rounded up? We can compute it in Python. ```python import math voters = 289 needed = math.ceil(voters * 75 / 100) # 217 print(needed) ``` # stdout: 217 217 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "217", "printed": "217", "notation": null}
nlprog_det-setting-0047202
6 claimants share a $84,000 settlement equally. What is each share? The program: ```python settlement = 84000 parties = 6 share = settlement // parties # 14000 print(share) ``` Program output: 14000 Each party receives $14,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "14000", "printed": "14000", "notation": null}
nlprog_det-setting-0047203
Convert 1 h 42 min (the length of a training session) to minutes. ```python hours = 1 minutes = 42 total_minutes = hours * 60 + minutes # 102 print(total_minutes) ``` The script prints: 102 That is 102 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "102", "printed": "102", "notation": null}
nlprog_det-setting-0047204
<|start|><|user|> A 18 × 8 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?<|eot|> <|assistant|> ```python import math length = 18 width = 8 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 36 print(tiles) ``` The code prints 36. It takes 36 tiles.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 18 × 8 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 18\nwidth = 8\ntile = 2\ntiles = math.ceil(length * width / (tile * tile)) # 36\nprint(tiles)\n```\nThe code pri...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0047205
One can of paint covers 250 square feet. How many cans are needed for 298 square feet of wall? ```python import math area = 298 coverage = 250 cans = math.ceil(area / coverage) # 2 print(cans) ``` Executed, it shows: 2 Buy 2 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0047206
<|start|><|system|> Double-check numbers before answering.<|eot|> <|user|> Sales went from 2,500 to 2,125. What is the percent change?<|eot|> <|assistant|> ```python old = 2500 new = 2125 change = (new - old) / old * 100 # -15.0 print(round(change)) ``` # out: -15 The change is -15%.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Double-check numbers before answering." }, { "role": "user", "content": "Sales went from 2,500 to 2,125. What is the percent change?" }, { "role": "assistant", "content": "```python\nold = 2500\nnew = 2125\nchange = (new - old) / old * 100 # -15.0\npr...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "-15", "printed": "-15", "notation": null}
nlprog_det-setting-0047207
How many weekdays (Monday to Friday) fall after June 4, 2024 up to and including July 3, 2024? One way, in code: ```python from datetime import date, timedelta start = date(2024, 6, 4) end = date(2024, 7, 3) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() < 5: ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
159
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0047208
<|start|><|user|> A penalty of $100 a day accrues, capped at $1,000. What is owed after 50 days?<|eot|> <|assistant|> ```python per_day = 100 days = 50 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` stdout: 1000 The fine is $1,000.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A penalty of $100 a day accrues, capped at $1,000. What is owed after 50 days?" }, { "role": "assistant", "content": "```python\nper_day = 100\ndays = 50\ncap = 1000\nfine = min(per_day * days, cap) # 1000\nprint(fine)\n```\nstdout:\n1000\n\nThe fine is $1,000." ...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0047209
What simple interest does $8,000 earn at 5% a year over 3 years? The computation: ```python principal = 8000 rate = 5 / 100 # 0.05 years = 3 interest = principal * rate * years # 1200.0 print(f"{interest:.2f}") ``` This prints: 1200.00 The interest is $1,200.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "1200.00", "printed": "1200.00", "notation": null}
nlprog_det-setting-0047210
<|start|><|system|> You are a math tutor.<|eot|> <|user|> What is a 20% tip on a $211.38 bill?<|eot|> <|assistant|> ```python bill = 211.38 tip_rate = 20 / 100 # 0.2 tip = bill * tip_rate # 42.276 print(f"{tip:.2f}") ``` Run output: 42.28 The tip is $42.28.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a math tutor." }, { "role": "user", "content": "What is a 20% tip on a $211.38 bill?" }, { "role": "assistant", "content": "```python\nbill = 211.38\ntip_rate = 20 / 100 # 0.2\ntip = bill * tip_rate # 42.276\nprint(f\"{tip:.2f}\")\n```\nRun o...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "42.28", "printed": "42.28", "notation": null}
nlprog_det-setting-0047212
<|start|><|user|> Water costs $15 a month plus $4.75 for each 1,000 gallons over 3,000. What is owed for 21,000 gallons?<|eot|> <|assistant|> $100.50 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Water costs $15 a month plus $4.75 for each 1,000 gallons over 3,000. What is owed for 21,000 gallons?" }, { "role": "assistant", "content": "$100.50 is owed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
50
{"gold": "100.50", "printed": "100.50", "notation": null}
nlprog_det-setting-0047213
<|start|><|system|> You may call the tools below. [{"name": "interpreter", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> How many days are there...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"interpreter\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"...
nlprog_det
setting
original
null
deterministic
[]
[]
211
{"gold": "367", "printed": "367", "notation": null}
nlprog_det-setting-0047214
<|start|><|system|> Tools you may use: {"name": "py_exec", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> From a $5,000 retainer, 7 hours at ...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"py_exec\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program\"...
nlprog_det
setting
original
null
deterministic
[]
[]
214
{"gold": "3950", "printed": "3950", "notation": null}
nlprog_det-setting-0047215
Count 45 days forward from August 20, 2023. What date is that? Python code: ```python from datetime import date, timedelta start = date(2023, 8, 20) end = start + timedelta(days=45) print(end.isoformat()) ``` This prints 2023-10-04, as expected. It ends on October 4, 2023.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "2023-10-04", "printed": "2023-10-04", "notation": null}
nlprog_det-setting-0047216
<|start|><|user|> A clerk's office charges $125 for each filing. Liesel submits 6 filings. What is the total fee?<|eot|> <|assistant|> ```python fee = 125 filings = 6 total = fee * filings # 750 print(total) ``` Output = 750 $750 in filing fees.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A clerk's office charges $125 for each filing. Liesel submits 6 filings. What is the total fee?" }, { "role": "assistant", "content": "```python\nfee = 125\nfilings = 6\ntotal = fee * filings # 750\nprint(total)\n```\nOutput = 750\n\n$750 in filing fees." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0047217
Equipment costs $18,000, has a salvage value of $2,000, and a useful life of 4 years. What is the straight-line depreciation per year? Let's compute it with Python. ```python cost = 18000 salvage = 2000 years = 4 per_year = (cost - salvage) / years # 4000.0 print(f"{per_year:.2f}") ``` What it prints: 4000.00 $4,000...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "4000.00", "printed": "4000.00", "notation": null}
nlprog_det-setting-0047219
Express 286 hours in days and hours. ```python hours = 286 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Execution result — 11 days and 22 hours 286 hours is 11 days and 22 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "11 days and 22 hours", "printed": "11 days and 22 hours", "notation": null}