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-0069276
<|start|><|user|> How many meters are in 77.3 kilometers?<|eot|> <|assistant|> That is 77,300 meters.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many meters are in 77.3 kilometers?" }, { "role": "assistant", "content": "That is 77,300 meters." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "77300", "printed": "77300", "notation": null}
nlprog_det-setting-0069278
<|start|><|system|> Tools you may use: {"name": "run_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> What is the total rent on a 12-month ...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"run_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}...
nlprog_det
setting
original
null
deterministic
[]
[]
209
{"gold": "34500", "printed": "34500", "notation": null}
nlprog_det-setting-0069279
A trial runs from October 19, 2025 to October 26, 2025, counting both days. How many calendar days is that? In code: ```python from datetime import date first = date(2025, 10, 19) # datetime.date(2025, 10, 19) last = date(2025, 10, 26) # datetime.date(2025, 10, 26) days = (last - first).days + 1 # 8 print(days) ```...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0069280
3 books come back 13 days late, at $0.20 a day each. What is the fine? In Python: ```python per_day = 0.2 days_late = 13 books = 3 fine = per_day * days_late * books # 7.800000000000001 print(f"{fine:.2f}") ``` Output of the run: 7.80 The fine is $7.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "7.80", "printed": "7.80", "notation": null}
nlprog_det-setting-0069281
A hall has 15 rows of 21 seats, and 25 seats are empty. How many people are seated? Here is a short program for it. ```python rows = 15 per_row = 21 empty = 25 seated = rows * per_row - empty # 290 print(seated) ``` Run result — 290 290 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "290", "printed": "290", "notation": null}
nlprog_det-setting-0069282
<|start|><|user|> A lawyer's fee is 25% of a $150,000 recovery. How large is the fee?<|eot|> <|assistant|> ```python recovery = 150000 rate = 25 / 100 # 0.25 fee = recovery * rate # 37500.0 print(f"{fee:.2f}") ``` Console output: 37500.00 The lawyer's fee comes to $37,500.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lawyer's fee is 25% of a $150,000 recovery. How large is the fee?" }, { "role": "assistant", "content": "```python\nrecovery = 150000\nrate = 25 / 100 # 0.25\nfee = recovery * rate # 37500.0\nprint(f\"{fee:.2f}\")\n```\nConsole output: 37500.00\n\nThe lawyer's f...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "37500.00", "printed": "37500.00", "notation": null}
nlprog_det-setting-0069283
<|start|><|user|> If a 105-minute seminar begins at 2:30 PM, what time does it finish?<|eot|> <|assistant|> The seminar finishes at 4:15 PM.<|eot|> <|end|>
chat
[ { "role": "user", "content": "If a 105-minute seminar begins at 2:30 PM, what time does it finish?" }, { "role": "assistant", "content": "The seminar finishes at 4:15 PM." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "4:15 PM", "printed": "4:15 PM", "notation": null}
nlprog_det-setting-0069284
Yara earns a 2% commission on $35,154 of sales. What is the commission? The program: ```python sales = 35154 rate = 2 / 100 # 0.02 commission = sales * rate # 703.08 print(f"{commission:.2f}") ``` Result = 703.08 The commission is $703.08.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "703.08", "printed": "703.08", "notation": null}
nlprog_det-setting-0069285
Of a $10,000 budget, $900 has been spent. What percent is that? We can compute it in Python. budget = 10000 spent = 900 percent = spent / budget * 100 # 9.0 print(round(percent, 1)) Out: 9.0 That is 9.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "9.0", "printed": "9.0", "notation": null}
nlprog_det-setting-0069286
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}, {"name": "calculator", "description": "Run Python code in a sandbox; the result ...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}, {\"name\": \"calculator\", \"...
nlprog_det
setting
original
null
deterministic
[]
[]
296
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0069287
A settlement of $2,640 is split equally among 6 parties. How much does each party receive? In Python: ```python settlement = 2640 parties = 6 share = settlement // parties # 440 print(share) ``` Program output — 440 Each party receives $440.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "440", "printed": "440", "notation": null}
nlprog_det-setting-0069288
Scale 240 g of oats from 8 servings to 2 servings. Coded up: ```python grams = 240 serves = 8 needed_for = 2 scaled = grams * needed_for // serves # 60 print(scaled) ``` It outputs 60. 60 grams of oats are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0069289
<|start|><|user|> The paralegal logged 10.5 hours at a rate of $250. How much is billed?<|eot|> <|assistant|> ```python hours = 10.5 rate = 250 bill = hours * rate # 2625.0 print(f"{bill:.2f}") ``` (Result: 2625.00) The bill is $2,625.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The paralegal logged 10.5 hours at a rate of $250. How much is billed?" }, { "role": "assistant", "content": "```python\nhours = 10.5\nrate = 250\nbill = hours * rate # 2625.0\nprint(f\"{bill:.2f}\")\n```\n(Result: 2625.00)\n\nThe bill is $2,625.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "2625.00", "printed": "2625.00", "notation": null}
nlprog_det-setting-0069290
An attorney bills 10.5 hours at $300 per hour. What is the bill? The Python version: ```python hours = 10.5 rate = 300 bill = hours * rate # 3150.0 print(f"{bill:.2f}") ``` What it prints — 3150.00 That comes to $3,150.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "3150.00", "printed": "3150.00", "notation": null}
nlprog_det-setting-0069291
A pack of 5 envelopes sells for $300. What does each cost? Program: ```python total = 300 count = 5 per_item = total // count # 60 print(per_item) ``` The interpreter prints 60. Each one costs $60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0069292
<|start|><|system|> Functions: [{"name": "math_engine", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> A quorum is 2/3 of the 45 members, rou...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"math_engine\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\"]}}]...
nlprog_det
setting
original
null
deterministic
[]
[]
212
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0069293
<|start|><|user|> Attendance was 14 out of 25. Express it as a percent.<|eot|> <|assistant|> ```python present = 14 total = 25 percent = present / total * 100 # 56.00000000000001 print(round(percent, 1)) ``` # program output: 56.0 56.0% attended.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Attendance was 14 out of 25. Express it as a percent." }, { "role": "assistant", "content": "```python\npresent = 14\ntotal = 25\npercent = present / total * 100 # 56.00000000000001\nprint(round(percent, 1))\n```\n# program output: 56.0\n\n56.0% attended." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "56.0", "printed": "56.0", "notation": null}
nlprog_det-setting-0069294
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> Copies cost $5 plus $0.50 for each page beyond 20. How much for 79 pages?<|eot|> <|assistant|> ```python pages = 79 base = 5 per_page = 0.5 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 34.5 print(f"{cost:.2f}") ``` Console o...
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "Copies cost $5 plus $0.50 for each page beyond 20. How much for 79 pages?" }, { "role": "assistant", "content": "```python\npages = 79\nbase = 5\nper_page = 0.5\nfree_pages = 20\ncost ...
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "34.50", "printed": "34.50", "notation": null}
nlprog_det-setting-0069295
<|start|><|system|> You may call the tools below. [{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "python", "description": "Runs a short Python snippet and returns what it prints.", "...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"python\", \"description\": \"R...
nlprog_det
setting
original
null
deterministic
[]
[]
298
{"gold": "8800", "printed": "8800", "notation": null}
nlprog_det-setting-0069296
<|start|><|user|> Printing costs 8 cents a page. What does it cost to print 117 copies of a 21-page handout?<|eot|> <|assistant|> ```python pages = 21 copies = 117 cost_per_page = 0.08 cost = pages * copies * cost_per_page # 196.56 print(f"{cost:.2f}") ``` Out: 196.56 Printing costs $196.56.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Printing costs 8 cents a page. What does it cost to print 117 copies of a 21-page handout?" }, { "role": "assistant", "content": "```python\npages = 21\ncopies = 117\ncost_per_page = 0.08\ncost = pages * copies * cost_per_page # 196.56\nprint(f\"{cost:.2f}\")\n```\...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "196.56", "printed": "196.56", "notation": null}
nlprog_det-setting-0069297
<|start|><|system|> Tools you may use: [{"name": "eval_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "get_weather", "description": "Get the w...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"eval_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\...
nlprog_det
setting
original
null
deterministic
[]
[]
321
{"gold": "980.00", "printed": "980.00", "notation": null}
nlprog_det-setting-0069298
<|start|><|system|> Functions: [{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}, {"name": "python_exec", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"typ...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}, {\"name\": \"python_exec\", \"description\": \"Runs a short Python...
nlprog_det
setting
original
null
deterministic
[]
[]
410
{"gold": "2015-05-01", "printed": "2015-05-01", "notation": null}
nlprog_det-setting-0069299
Pack A has 12 items for $6.76. Pack B has 30 items for $27.58. Which has the lower price per item? Set it up in Python: ```python pack_a = 6.76 / 12 # 0.5633333333333334 pack_b = 27.58 / 30 # 0.9193333333333332 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` Out — A Pack A is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0069300
<|start|><|user|> A meal costs $157.04. How much is a 25% tip?<|eot|> <|assistant|> ```python bill = 157.04 tip_rate = 25 / 100 # 0.25 tip = bill * tip_rate # 39.26 print(f"{tip:.2f}") ``` # console output: 39.26 The tip is $39.26.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A meal costs $157.04. How much is a 25% tip?" }, { "role": "assistant", "content": "```python\nbill = 157.04\ntip_rate = 25 / 100 # 0.25\ntip = bill * tip_rate # 39.26\nprint(f\"{tip:.2f}\")\n```\n# console output: 39.26\n\nThe tip is $39.26." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "39.26", "printed": "39.26", "notation": null}
nlprog_det-setting-0069301
<|start|><|user|> Notice was given on February 1, 2023. The notice period is 21 days. When does it run out?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2023, 2, 1) # datetime.date(2023, 2, 1) end = start + timedelta(days=21) # datetime.date(2023, 2, 22) print(end.isoformat()) ``` ...
chat
[ { "role": "user", "content": "Notice was given on February 1, 2023. The notice period is 21 days. When does it run out?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2023, 2, 1) # datetime.date(2023, 2, 1)\nend = start + timedelta(days=21) ...
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "2023-02-22", "printed": "2023-02-22", "notation": null}
nlprog_det-setting-0069302
<|start|><|user|> From a $10,000 retainer, 2 hours at $200/hour have been drawn. What remains?<|eot|> <|assistant|> ```python retainer = 10000 hours = 2 rate = 200 left = retainer - hours * rate # 9600 print(left) ``` # execution result: 9600 $9,600 of the retainer is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From a $10,000 retainer, 2 hours at $200/hour have been drawn. What remains?" }, { "role": "assistant", "content": "```python\nretainer = 10000\nhours = 2\nrate = 200\nleft = retainer - hours * rate # 9600\nprint(left)\n```\n# execution result: 9600\n\n$9,600 of th...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "9600", "printed": "9600", "notation": null}
nlprog_det-setting-0069303
<|start|><|system|> Be concise.<|eot|> <|user|> Counting only Monday through Friday, how many business days are there after December 17, 2028 through January 26, 2029?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2028, 12, 17) end = date(2029, 1, 26) count = 0 for k in range(1, (end ...
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "Counting only Monday through Friday, how many business days are there after December 17, 2028 through January 26, 2029?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta...
nlprog_det
setting
original
null
deterministic
[]
[]
163
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0069304
Oskar and Zainab share $1,035 in the ratio 1:2. How much does Oskar get? We write it as a program: ```python total = 1035 parts_a = 1 parts_b = 2 share_a = total * parts_a // (parts_a + parts_b) # 345 print(share_a) ``` Run result = 345 Oskar's share is $345.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "345", "printed": "345", "notation": null}
nlprog_det-setting-0069305
<|start|><|user|> A party has 28 days to respond to a motion served on November 9, 2025, with 3 days added because service was by mail. When is the response due?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2025, 11, 9) # datetime.date(2025, 11, 9) response_days = 28 mail_days = 3 ...
chat
[ { "role": "user", "content": "A party has 28 days to respond to a motion served on November 9, 2025, with 3 days added because service was by mail. When is the response due?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nserved = date(2025, 11, 9) # date...
nlprog_det
setting
original
null
deterministic
[]
[]
179
{"gold": "2025-12-10", "printed": "2025-12-10", "notation": null}
nlprog_det-setting-0069306
An office budget of $25,000 has expenses of $2,509, $1,569, $2,518. How much of the budget is left? Coded up: ```python budget = 25000 expenses = [2509, 1569, 2518] left = budget - sum(expenses) print(left) ``` The run gives 18404, as expected. $18,404 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "18404", "printed": "18404", "notation": null}
nlprog_det-setting-0069307
<|start|><|user|> Under a 25% contingency agreement, what fee is owed on a $25,000 award?<|eot|> <|assistant|> ```python recovery = 25000 rate = 25 / 100 # 0.25 fee = recovery * rate # 6250.0 print(f"{fee:.2f}") ``` Program output — 6250.00 The lawyer's fee comes to $6,250.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Under a 25% contingency agreement, what fee is owed on a $25,000 award?" }, { "role": "assistant", "content": "```python\nrecovery = 25000\nrate = 25 / 100 # 0.25\nfee = recovery * rate # 6250.0\nprint(f\"{fee:.2f}\")\n```\nProgram output — 6250.00\n\nThe lawyer's...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "6250.00", "printed": "6250.00", "notation": null}
nlprog_det-setting-0069308
Goods bought on October 16, 2024 carry a 12-month warranty. When does it expire? Programmatically: ```python from datetime import date start = date(2024, 10, 16) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` O...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "2025-10-16", "printed": "2025-10-16", "notation": null}
nlprog_det-setting-0069309
<|start|><|user|> How many meters are in 44.1 kilometers?<|eot|> <|assistant|> ```python km = 44.1 meters = km * 1000 # 44100.0 print(round(meters)) ``` Output: 44100 That is 44,100 meters.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many meters are in 44.1 kilometers?" }, { "role": "assistant", "content": "```python\nkm = 44.1\nmeters = km * 1000 # 44100.0\nprint(round(meters))\n```\nOutput:\n44100\n\nThat is 44,100 meters." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "44100", "printed": "44100", "notation": null}
nlprog_det-setting-0069310
Of a $2,000 budget, $300 has been spent. What percent is that? budget = 2000 spent = 300 percent = spent / budget * 100 # 15.0 print(round(percent, 1)) # printed result: 15.0 15.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
67
{"gold": "15.0", "printed": "15.0", "notation": null}
nlprog_det-setting-0069311
Fixed costs are $1,200. Each unit sells for $40 and costs $36 to make. How many units must be sold to break even? Computing it: ```python import math fixed = 1200 price = 40 variable = 36 units = math.ceil(fixed / (price - variable)) # 300 print(units) ``` Program output: 300 Break-even is 300 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0069312
To read 85 pages in 5 days, how many pages per day are needed? Python, step by step: ```python pages = 85 days = 5 per_day = pages // days # 17 print(per_day) ``` The printout reads: 17 17 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0069313
<|start|><|user|> Someone works 40 hours at $25.51 per hour. What are the earnings?<|eot|> <|assistant|> rate = 25.51 hours = 40 earnings = rate * hours # 1020.4000000000001 print(f"{earnings:.2f}") Run output — 1020.40 That earns $1,020.40.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Someone works 40 hours at $25.51 per hour. What are the earnings?" }, { "role": "assistant", "content": " rate = 25.51\n hours = 40\n earnings = rate * hours # 1020.4000000000001\n print(f\"{earnings:.2f}\")\nRun output — 1020.40\n\nThat earns $1,020.40...
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "1020.40", "printed": "1020.40", "notation": null}
nlprog_det-setting-0069314
What simple interest does $12,000 earn at 3% a year over 2 years? The interest is $720.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "720.00", "printed": "720.00", "notation": null}
nlprog_det-setting-0069315
What is 20 degrees Celsius in Fahrenheit? Python: celsius = 20 fahrenheit = celsius * 9 / 5 + 32 # 68.0 print(round(fahrenheit)) Running it prints 68, as expected. It equals 68 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "68", "printed": "68", "notation": null}
nlprog_det-setting-0069316
Prorate $1,500 of monthly rent for 23 days of a 31-day month. ```python rent = 1500 days_in_month = 31 days_occupied = 23 prorated = rent * days_occupied / days_in_month # 1112.9032258064517 print(f"{prorated:.2f}") ``` Run result = 1112.90 The prorated rent is $1,112.90.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "1112.90", "printed": "1112.90", "notation": null}
nlprog_det-setting-0069317
<|start|><|user|> A $84 dinner bill gets a 15% tip, and 3 people share the cost equally. What is each person's share?<|eot|> <|assistant|> bill = 84 tip_rate = 15 / 100 # 0.15 people = 3 each = bill * (1 + tip_rate) / people # 32.199999999999996 print(f"{each:.2f}") Result: 32.20 Each person pays...
chat
[ { "role": "user", "content": "A $84 dinner bill gets a 15% tip, and 3 people share the cost equally. What is each person's share?" }, { "role": "assistant", "content": " bill = 84\n tip_rate = 15 / 100 # 0.15\n people = 3\n each = bill * (1 + tip_rate) / people # 32.199999999999996...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "32.20", "printed": "32.20", "notation": null}
nlprog_det-setting-0069318
A water bill is $12 plus $4.20 per thousand gallons beyond the first 0 thousand. What is the bill for 5 thousand gallons? $33.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "33.00", "printed": "33.00", "notation": null}
nlprog_det-setting-0069319
A garage charges $4 an hour, never more than $18 a day. How much for 3 hours? We write it as a program: ```python rate = 4 hours = 3 daily_max = 18 cost = min(rate * hours, daily_max) # 12 print(cost) ``` Run output: 12 The charge is $12.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0069320
Buying 2 water bottles at $21 each, 4 lanyards at $17 each, 3 scissors at $14 each, 4 batteries at $12 each, someone hands over $250. What change comes back? Let the code do the arithmetic: ```python items = [(2, 21), (4, 17), (3, 14), (4, 12)] total = sum(q * p for q, p in items) # 200 paid = 250 change = paid - tot...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0069321
<|start|><|system|> You can call tools. Available tools: [{"name": "code_runner", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> A jacket costs $...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"code_runner\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"req...
nlprog_det
setting
original
null
deterministic
[]
[]
229
{"gold": "108.00", "printed": "108.00", "notation": null}
nlprog_det-setting-0069322
Monthly: $29. Annual: $318. What is saved per year by paying annually? Here's the code. ```python monthly = 29 yearly = 318 savings = monthly * 12 - yearly # 30 print(savings) ``` The program outputs 30. The annual plan saves $30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0069323
A 30-day notice period begins on July 20, 2025. On what date does it end? Set it up in Python: ```python from datetime import date, timedelta start = date(2025, 7, 20) # datetime.date(2025, 7, 20) end = start + timedelta(days=30) # datetime.date(2025, 8, 19) print(end.isoformat()) ``` Run it and it prints: 2025-08-1...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "2025-08-19", "printed": "2025-08-19", "notation": null}
nlprog_det-setting-0069324
<|start|><|user|> A party has 14 days to respond to a motion served on April 14, 2021, with 3 days added because service was by mail. When is the response due?<|eot|> <|assistant|> The response is due on May 1, 2021.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A party has 14 days to respond to a motion served on April 14, 2021, with 3 days added because service was by mail. When is the response due?" }, { "role": "assistant", "content": "The response is due on May 1, 2021." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
49
{"gold": "2021-05-01", "printed": "2021-05-01", "notation": null}
nlprog_det-setting-0069325
A 1062-page report must be reviewed in 18 days. How many pages a day is that, evenly? Script: ```python pages = 1062 days = 18 per_day = pages // days print(per_day) ``` This prints 59, as expected. That is 59 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "59", "printed": "59", "notation": null}
nlprog_det-setting-0069326
<|start|><|user|> From 2012 to 2035, how many years is that?<|eot|> <|assistant|> ```python start_year = 2012 end_year = 2035 print(end_year - start_year) ``` Running it prints 23. That is 23 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From 2012 to 2035, how many years is that?" }, { "role": "assistant", "content": "```python\nstart_year = 2012\nend_year = 2035\nprint(end_year - start_year)\n```\nRunning it prints 23.\n\nThat is 23 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0069327
How much sales tax is charged on a $228.15 purchase at 8%? Code: ```python price = 228.15 tax_rate = 8 / 100 # 0.08 tax = price * tax_rate # 18.252000000000002 print(f"{tax:.2f}") ``` Python prints: 18.25 $18.25 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "18.25", "printed": "18.25", "notation": null}
nlprog_det-setting-0069328
Copies cost $5 plus $0.10 for each page beyond 10. How much for 44 pages? In Python: ```python pages = 44 base = 5 per_page = 0.1 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 8.4 print(f"{cost:.2f}") ``` Console output: 8.40 The copy costs $8.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "8.40", "printed": "8.40", "notation": null}
nlprog_det-setting-0069329
A 12-month warranty starts on June 20, 2020. On what date does it end? Python version: ```python from datetime import date start = date(2020, 6, 20) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Executed, it s...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "2021-06-20", "printed": "2021-06-20", "notation": null}
nlprog_det-setting-0069330
A $2,000 security deposit has deductions of $60, $45 and $75. How much is refunded? $1,820 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "1820", "printed": "1820", "notation": null}
nlprog_det-setting-0069331
2 books come back 25 days late, at $0.15 a day each. What is the fine? The program: ```python per_day = 0.15 days_late = 25 books = 2 fine = per_day * days_late * books # 7.5 print(f"{fine:.2f}") ``` This prints 7.50. $7.50 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "7.50", "printed": "7.50", "notation": null}
nlprog_det-setting-0069332
What is a 18% tip on a $63.95 bill? Set it up in Python: ```python bill = 63.95 tip_rate = 18 / 100 # 0.18 tip = bill * tip_rate # 11.511 print(f"{tip:.2f}") ``` stdout: 11.51 Leave $11.51.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "11.51", "printed": "11.51", "notation": null}
nlprog_det-setting-0069333
<|start|><|user|> A quorum is 1/3 of the 29 members, rounded up. How many members make a quorum?<|eot|> <|assistant|> ```python import math members = 29 quorum = math.ceil(members * 1 / 3) # 10 print(quorum) ``` Shell output: 10 10 members are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A quorum is 1/3 of the 29 members, rounded up. How many members make a quorum?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 29\nquorum = math.ceil(members * 1 / 3) # 10\nprint(quorum)\n```\nShell output: 10\n\n10 members are needed." }...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0069334
<|start|><|user|> Convert 40 °C to Fahrenheit.<|eot|> <|assistant|> ```python celsius = 40 fahrenheit = celsius * 9 / 5 + 32 # 104.0 print(round(fahrenheit)) ``` Output: 104 That is 104 °F.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 40 °C to Fahrenheit." }, { "role": "assistant", "content": "```python\ncelsius = 40\nfahrenheit = celsius * 9 / 5 + 32 # 104.0\nprint(round(fahrenheit))\n```\nOutput:\n104\n\nThat is 104 °F." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "104", "printed": "104", "notation": null}
nlprog_det-setting-0069335
<|start|><|user|> A client paid a $5,000 retainer. The firm has billed 11 hours at $200 per hour. How much of the retainer is left?<|eot|> <|assistant|> ```python retainer = 5000 hours = 11 rate = 200 left = retainer - hours * rate # 2800 print(left) ``` Output — 2800 $2,800 of the retainer is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A client paid a $5,000 retainer. The firm has billed 11 hours at $200 per hour. How much of the retainer is left?" }, { "role": "assistant", "content": "```python\nretainer = 5000\nhours = 11\nrate = 200\nleft = retainer - hours * rate # 2800\nprint(left)\n```\nOut...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "2800", "printed": "2800", "notation": null}
nlprog_det-setting-0069336
A 26 lb package ships at $8 base plus $1.50/lb. What is the charge? The charge is $47.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "47.00", "printed": "47.00", "notation": null}
nlprog_det-setting-0069337
<|start|><|user|> Revenue is $9,000 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|> <|assistant|> ```python revenue = 9000 costs = 4000 profit = revenue - costs # 5000 margin = profit / revenue * 100 # 55.55555555555556 print(round(margin, 1)) ``` (Program output: 55.6) ...
chat
[ { "role": "user", "content": "Revenue is $9,000 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)?" }, { "role": "assistant", "content": "```python\nrevenue = 9000\ncosts = 4000\nprofit = revenue - costs # 5000\nmargin = profit / revenue * 100 # 55.555555555...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "55.6", "printed": "55.6", "notation": null}
nlprog_det-setting-0069338
Copies cost $5 plus $0.10 for each page beyond 0. How much for 75 pages? Let's compute it with Python. ```python pages = 75 base = 5 per_page = 0.1 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 12.5 print(f"{cost:.2f}") ``` Execution result — 12.50 The copy costs $12.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "12.50", "printed": "12.50", "notation": null}
nlprog_det-setting-0069339
<|start|><|user|> Counting the first and last day, how many days are there from October 18, 2019 through October 28, 2019?<|eot|> <|assistant|> ```python from datetime import date first = date(2019, 10, 18) # datetime.date(2019, 10, 18) last = date(2019, 10, 28) # datetime.date(2019, 10, 28) days = (last - first).day...
chat
[ { "role": "user", "content": "Counting the first and last day, how many days are there from October 18, 2019 through October 28, 2019?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2019, 10, 18) # datetime.date(2019, 10, 18)\nlast = date(2019, 10, 28)...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0069340
If a 105-minute hearing begins at 2:40 PM, what time does it finish? The program: ```python start = 14 * 60 + 40 end = start + 105 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` (Console output: 4:25 PM) The hearing finishes at 4:25 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "4:25 PM", "printed": "4:25 PM", "notation": null}
nlprog_det-setting-0069341
<|start|><|system|> Be concise.<|eot|> <|user|> A service costs $12 a month or $114 a year. How much does the yearly plan save over 12 monthly payments?<|eot|> <|assistant|> The annual plan saves $30.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "A service costs $12 a month or $114 a year. How much does the yearly plan save over 12 monthly payments?" }, { "role": "assistant", "content": "The annual plan saves $30." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
52
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0069342
A measure needs at least 60% of 287 votes. How many votes is that, rounded up? At least 173 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "173", "printed": "173", "notation": null}
nlprog_det-setting-0069343
Count 14 days forward from February 25, 2020. What date is that? Set it up in Python: ```python from datetime import date, timedelta start = date(2020, 2, 25) # datetime.date(2020, 2, 25) end = start + timedelta(days=14) # datetime.date(2020, 3, 10) print(end.isoformat()) ``` Console: 2020-03-10 It ends on March 10...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "2020-03-10", "printed": "2020-03-10", "notation": null}
nlprog_det-setting-0069344
<|start|><|system|> Available functions (JSON Schema): [{"name": "code_runner", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "search_cases", ...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"code_runner\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, ...
nlprog_det
setting
original
null
deterministic
[]
[]
330
{"gold": "3750.00", "printed": "3750.00", "notation": null}
nlprog_det-setting-0069345
A penalty of $50 a day accrues, capped at $1,000. What is owed after 49 days? Programmatically: ```python per_day = 50 days = 49 cap = 1000 fine = min(per_day * days, cap) print(fine) ``` When run, it prints 1000, as expected. The fine is $1,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0069346
Papers were served by mail on May 11, 2027. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date? ```python from datetime import date, timedelta served = date(2027, 5, 11) response_days = 21 mail_days = 3 due = served + timedelta(days=response_days + mail_days) print(due.isoform...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "2027-06-04", "printed": "2027-06-04", "notation": null}
nlprog_det-setting-0069347
A 90-mile drive at a steady 60 mph takes how many minutes? ```python distance = 90 speed = 60 minutes = distance / speed * 60 # 90.0 print(round(minutes)) ``` Output — 90 90 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "90", "printed": "90", "notation": null}
nlprog_det-setting-0069348
A lawyer's fee is 40% of a $40,000 recovery. How large is the fee? Code: ```python recovery = 40000 rate = 40 / 100 fee = recovery * rate print(f"{fee:.2f}") ``` Output: 16000.00 The lawyer's fee comes to $16,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "16000.00", "printed": "16000.00", "notation": null}
nlprog_det-setting-0069349
<|start|><|system|> Available functions (JSON Schema): [{"name": "interpreter", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "business...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"interpreter\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source cod...
nlprog_det
setting
original
null
deterministic
[]
[]
355
{"gold": "13700", "printed": "13700", "notation": null}
nlprog_det-setting-0069350
Divide 189 items among 8 groups as evenly as possible with equal groups. How many per group, and how many remain? ```python total = 189 groups = 8 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Output — 23 each, 5 left over The answer: 23 each, 5 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "23 each, 5 left over", "printed": "23 each, 5 left over", "notation": null}
nlprog_det-setting-0069351
<|start|><|system|> Avoid unnecessary detail.<|eot|> <|user|> At $0.58 per mile, what is the reimbursement for 202 miles?<|eot|> <|assistant|> ```python miles = 202 rate = 0.58 reimbursement = miles * rate # 117.16 print(f"{reimbursement:.2f}") ``` Printed — 117.16 Hugo is owed $117.16.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Avoid unnecessary detail." }, { "role": "user", "content": "At $0.58 per mile, what is the reimbursement for 202 miles?" }, { "role": "assistant", "content": "```python\nmiles = 202\nrate = 0.58\nreimbursement = miles * rate # 117.16\nprint(f\"{reimbu...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "117.16", "printed": "117.16", "notation": null}
nlprog_det-setting-0069352
<|start|><|user|> Convert 1 h 6 min (the length of a deposition) to minutes.<|eot|> <|assistant|> That is 66 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 1 h 6 min (the length of a deposition) to minutes." }, { "role": "assistant", "content": "That is 66 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "66", "printed": "66", "notation": null}
nlprog_det-setting-0069353
How many meters are in 65.6 kilometers? The Python version: km = 65.6 meters = km * 1000 # 65600.0 print(round(meters)) It outputs: 65600 65,600 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
69
{"gold": "65600", "printed": "65600", "notation": null}
nlprog_det-setting-0069355
The building opened in 1996. How many years had passed by 2018? The computation: ```python start_year = 1996 end_year = 2018 print(end_year - start_year) ``` Run it and it prints: 22 That is 22 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0069356
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "math_engine", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> A 6%...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"math_engine\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\...
nlprog_det
setting
original
null
deterministic
[]
[]
230
{"gold": "2332.00", "printed": "2332.00", "notation": null}
nlprog_det-setting-0069357
A 60-mile drive at a steady 45 mph takes how many minutes? ```python distance = 60 speed = 45 minutes = distance / speed * 60 print(round(minutes)) ``` The run gives 80, as expected. 80 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
70
{"gold": "80", "printed": "80", "notation": null}
nlprog_det-setting-0069358
Water costs $12 a month plus $3.50 for each 1,000 gallons over 0,000. What is owed for 11,000 gallons? Written as code: ```python base = 12 rate = 3.5 used = 11 free = 0 bill = base + rate * max(0, used - free) # 50.5 print(f"{bill:.2f}") ``` (Printed result: 50.50) The bill is $50.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "50.50", "printed": "50.50", "notation": null}
nlprog_det-setting-0069359
Express 239 hours in days and hours. Python: ```python hours = 239 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` This prints: 9 days and 23 hours That is 9 days and 23 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "9 days and 23 hours", "printed": "9 days and 23 hours", "notation": null}
nlprog_det-setting-0069361
<|start|><|user|> Each of Chen's bike rides burns 250 calories. How many calories over 6 bike rides?<|eot|> <|assistant|> ```python per_session = 250 sessions = 6 total = per_session * sessions # 1500 print(total) ``` # printed result: 1500 That burns 1500 calories.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each of Chen's bike rides burns 250 calories. How many calories over 6 bike rides?" }, { "role": "assistant", "content": "```python\nper_session = 250\nsessions = 6\ntotal = per_session * sessions # 1500\nprint(total)\n```\n# printed result: 1500\n\nThat burns 1500...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0069362
<|start|><|user|> 79 copies of a 51-page packet are printed at $0.12 per page. What is the cost?<|eot|> <|assistant|> ```python pages = 51 copies = 79 cost_per_page = 0.12 cost = pages * copies * cost_per_page # 483.47999999999996 print(f"{cost:.2f}") ``` (Console output: 483.48) The job costs $483.48.<|eot|> <|end|>
chat
[ { "role": "user", "content": "79 copies of a 51-page packet are printed at $0.12 per page. What is the cost?" }, { "role": "assistant", "content": "```python\npages = 51\ncopies = 79\ncost_per_page = 0.12\ncost = pages * copies * cost_per_page # 483.47999999999996\nprint(f\"{cost:.2f}\")\n```\n...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "483.48", "printed": "483.48", "notation": null}
nlprog_det-setting-0069365
<|start|><|user|> An unpaid balance of $4,000 accrues 1.5% simple interest per month. How much interest accrues in 6 months?<|eot|> <|assistant|> ```python balance = 4000 monthly_rate = 1.5 / 100 # 0.015 months = 6 interest = balance * monthly_rate * months # 360.0 print(f"{interest:.2f}") ``` (Console output: 360.00...
chat
[ { "role": "user", "content": "An unpaid balance of $4,000 accrues 1.5% simple interest per month. How much interest accrues in 6 months?" }, { "role": "assistant", "content": "```python\nbalance = 4000\nmonthly_rate = 1.5 / 100 # 0.015\nmonths = 6\ninterest = balance * monthly_rate * months # ...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "360.00", "printed": "360.00", "notation": null}
nlprog_det-setting-0069366
Each of Joelle's walks burns 300 calories. How many calories over 7 walks? ```python per_session = 300 sessions = 7 total = per_session * sessions # 2100 print(total) ``` # run result: 2100 That burns 2100 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "2100", "printed": "2100", "notation": null}
nlprog_det-setting-0069368
Rent of $1,500 goes up 4%. What is the new rent? The new rent is $1,560.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "1560.00", "printed": "1560.00", "notation": null}
nlprog_det-setting-0069369
<|start|><|user|> Express 253 hours in days and hours.<|eot|> <|assistant|> ```python hours = 253 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` The script prints 10 days and 13 hours, as expected. 253 hours is 10 days and 13 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Express 253 hours in days and hours." }, { "role": "assistant", "content": "```python\nhours = 253\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nThe script prints 10 days and 13 hours, as expected.\n\n253 hours is 10 days and 13 hou...
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "10 days and 13 hours", "printed": "10 days and 13 hours", "notation": null}
nlprog_det-setting-0069370
A hearing is set for June 21, 1991. What day of the week is that? Coded up: ```python from datetime import date hearing = date(1991, 6, 21) # datetime.date(1991, 6, 21) print(hearing.strftime("%A")) ``` Printed: Friday It is a Friday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "Friday", "printed": "Friday", "notation": null}
nlprog_det-setting-0069371
A measure needs at least 67% of 67 votes. How many votes is that, rounded up? Written as code: ```python import math voters = 67 needed = math.ceil(voters * 67 / 100) # 45 print(needed) ``` Out: 45 45 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "45", "printed": "45", "notation": null}
nlprog_det-setting-0069373
<|start|><|user|> What is 10 degrees Celsius in Fahrenheit?<|eot|> <|assistant|> ```python celsius = 10 fahrenheit = celsius * 9 / 5 + 32 # 50.0 print(round(fahrenheit)) ``` Shell output — 50 That is 50 °F.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is 10 degrees Celsius in Fahrenheit?" }, { "role": "assistant", "content": "```python\ncelsius = 10\nfahrenheit = celsius * 9 / 5 + 32 # 50.0\nprint(round(fahrenheit))\n```\nShell output — 50\n\nThat is 50 °F." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0069374
A storeroom has 1824 folders. The office uses 11 a day. How many are left after 8 days? The computation: ```python stock = 1824 per_day = 11 days = 8 left = stock - per_day * days # 1736 print(left) ``` Execution result — 1736 1736 folders are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "1736", "printed": "1736", "notation": null}
nlprog_det-setting-0069375
2 clients win $30,000. The lawyer takes 30%, and the rest is split equally. How much does each client get? We write it as a program: ```python award = 30000 fee = award * 30 / 100 # 9000.0 remaining = award - fee # 21000.0 per_client = remaining / 2 # 10500.0 print(f"{per_client:.2f}") ``` It outputs 10500.00. Eac...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "10500.00", "printed": "10500.00", "notation": null}
nlprog_det-setting-0069376
From 2011 to 2048, how many years is that? 37 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
17
{"gold": "37", "printed": "37", "notation": null}
nlprog_det-setting-0069377
Pack A has 12 items for $9.24. Pack B has 20 items for $22.24. Which has the lower price per item? Translated to Python: pack_a = 9.24 / 12 # 0.77 pack_b = 22.24 / 20 # 1.1119999999999999 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) Console: A A has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0069378
<|start|><|user|> Fixed costs are $6,000. Each unit sells for $40 and costs $34 to make. How many units must be sold to break even?<|eot|> <|assistant|> ```python import math fixed = 6000 price = 40 variable = 34 units = math.ceil(fixed / (price - variable)) # 1000 print(units) ``` It prints 1000. 1000 units are need...
chat
[ { "role": "user", "content": "Fixed costs are $6,000. Each unit sells for $40 and costs $34 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 6000\nprice = 40\nvariable = 34\nunits = math.ceil(fixed / (price - variable)) #...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0069379
<|start|><|system|> Be concise.<|eot|> <|user|> How many of 44 votes make 60% (round up)?<|eot|> <|assistant|> ```python import math voters = 44 needed = math.ceil(voters * 60 / 100) # 27 print(needed) ``` # execution result: 27 27 votes are needed.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "How many of 44 votes make 60% (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 44\nneeded = math.ceil(voters * 60 / 100) # 27\nprint(needed)\n```\n# execution result: 27\...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0069380
<|start|><|user|> Someone works 32 hours at $16.40 per hour. What are the earnings?<|eot|> <|assistant|> ```python rate = 16.4 hours = 32 earnings = rate * hours # 524.8 print(f"{earnings:.2f}") ``` Console: 524.80 The pay is $524.80.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Someone works 32 hours at $16.40 per hour. What are the earnings?" }, { "role": "assistant", "content": "```python\nrate = 16.4\nhours = 32\nearnings = rate * hours # 524.8\nprint(f\"{earnings:.2f}\")\n```\nConsole:\n524.80\n\nThe pay is $524.80." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "524.80", "printed": "524.80", "notation": null}
nlprog_det-setting-0069381
Papers were served by mail on May 19, 2022. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date? As Python: ```python from datetime import date, timedelta served = date(2022, 5, 19) # datetime.date(2022, 5, 19) response_days = 14 mail_days = 3 due = served + timedelta(days=res...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
176
{"gold": "2022-06-05", "printed": "2022-06-05", "notation": null}
nlprog_det-setting-0069382
<|start|><|system|> You help with homework problems.<|eot|> <|user|> A penalty of $250 a day accrues, capped at $1,000. What is owed after 4 days?<|eot|> <|assistant|> ```python per_day = 250 days = 4 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` Printed: 1000 The fine is $1,000.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "A penalty of $250 a day accrues, capped at $1,000. What is owed after 4 days?" }, { "role": "assistant", "content": "```python\nper_day = 250\ndays = 4\ncap = 1000\nfine = min(per_day *...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "1000", "printed": "1000", "notation": null}