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-0066185
<|start|><|user|> An office budget of $5,000 has expenses of $1,454, $3,288, $847, $539. How much of the budget is left?<|eot|> <|assistant|> budget = 5000 expenses = [1454, 3288, 847, 539] left = budget - sum(expenses) # -1128 print(left) Execution prints -1128, as expected. -$1,128 is left.<|eot|> <...
chat
[ { "role": "user", "content": "An office budget of $5,000 has expenses of $1,454, $3,288, $847, $539. How much of the budget is left?" }, { "role": "assistant", "content": " budget = 5000\n expenses = [1454, 3288, 847, 539]\n left = budget - sum(expenses) # -1128\n print(left)\nExecu...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "-1128", "printed": "-1128", "notation": null}
nlprog_det-setting-0066186
<|start|><|user|> Copies cost $15 plus $0.10 for each page beyond 20. How much for 29 pages?<|eot|> <|assistant|> pages = 29 base = 15 per_page = 0.1 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page print(f"{cost:.2f}") Running it prints 15.90. The total is $15.90.<|eot|> <|e...
chat
[ { "role": "user", "content": "Copies cost $15 plus $0.10 for each page beyond 20. How much for 29 pages?" }, { "role": "assistant", "content": " pages = 29\n base = 15\n per_page = 0.1\n free_pages = 20\n cost = base + max(0, pages - free_pages) * per_page\n print(f\"{cost:.2f}...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "15.90", "printed": "15.90", "notation": null}
nlprog_det-setting-0066188
Convert 0 °C to Fahrenheit. A short script: ```python celsius = 0 fahrenheit = celsius * 9 / 5 + 32 # 32.0 print(round(fahrenheit)) ``` Execution result: 32 That is 32 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0066189
After a 30% fee is taken from a $60,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share? Python version: award = 60000 fee = award * 30 / 100 # 18000.0 remaining = award - fee # 42000.0 per_client = remaining / 3 # 14000.0 print(f"{per_client:.2f}") Output — 14...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "14000.00", "printed": "14000.00", "notation": null}
nlprog_det-setting-0066190
A lease runs for 24 months at $1,640 per month. How much rent is paid over the whole term? ```python monthly_rent = 1640 months = 24 total = monthly_rent * months # 39360 print(total) ``` (Output: 39360) In total, $39,360 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "39360", "printed": "39360", "notation": null}
nlprog_det-setting-0066191
Buying 2 tape rolls at $18 each, 2 markers at $26 each, someone hands over $100. What change comes back? Programmatically: ```python items = [(2, 18), (2, 26)] total = sum(q * p for q, p in items) paid = 100 change = paid - total print(change) ``` It prints 12. $12 comes back.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0066192
<|start|><|system|> Give the answer first.<|eot|> <|user|> Someone born August 4, 1992 turns how old by October 21, 2026? Give the age in whole years.<|eot|> <|assistant|> from datetime import date born = date(1992, 8, 4) # datetime.date(1992, 8, 4) on = date(2026, 10, 21) # datetime.date(2026, 10, 21) ...
chat
[ { "role": "system", "content": "Give the answer first." }, { "role": "user", "content": "Someone born August 4, 1992 turns how old by October 21, 2026? Give the age in whole years." }, { "role": "assistant", "content": " from datetime import date\n born = date(1992, 8, 4) # da...
nlprog_det
setting
original
null
deterministic
[]
[]
163
{"gold": "34", "printed": "34", "notation": null}
nlprog_det-setting-0066193
Ines lends $5,000 at 8% simple interest per year for 6 years. How much interest is earned? It earns $2,400.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "2400.00", "printed": "2400.00", "notation": null}
nlprog_det-setting-0066194
<|start|><|user|> How many weekdays (Monday to Friday) fall after November 19, 2026 up to and including November 25, 2026?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2026, 11, 19) end = date(2026, 11, 25) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelt...
chat
[ { "role": "user", "content": "How many weekdays (Monday to Friday) fall after November 19, 2026 up to and including November 25, 2026?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2026, 11, 19)\nend = date(2026, 11, 25)\ncount = 0\nfor k in...
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0066195
At an exchange rate of 1.35 USD per GBP, how many USD is 3,479 GBP? As a program: ```python amount = 3479 rate = 1.35 converted = amount * rate # 4696.650000000001 print(f"{converted:.2f}") ``` Executed, it shows 4696.65. That is 4,696.65 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "4696.65", "printed": "4696.65", "notation": null}
nlprog_det-setting-0066196
7 boxes hold 25 headsets each. After 13 are handed out, how many are left? Python version: ```python boxes = 7 per_box = 25 given_away = 13 left = boxes * per_box - given_away # 162 print(left) ``` (Console output: 162) 162 headsets are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "162", "printed": "162", "notation": null}
nlprog_det-setting-0066197
<|start|><|system|> Show working only when it helps.<|eot|> <|user|> A 437-page report must be reviewed in 19 days. How many pages a day is that, evenly?<|eot|> <|assistant|> ```python pages = 437 days = 19 per_day = pages // days # 23 print(per_day) ``` The script prints: 23 23 pages a day.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Show working only when it helps." }, { "role": "user", "content": "A 437-page report must be reviewed in 19 days. How many pages a day is that, evenly?" }, { "role": "assistant", "content": "```python\npages = 437\ndays = 19\nper_day = pages // days #...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0066198
Lena buys 3 boxes of 25 markers each and gives away 5 markers. How many markers are left? Programmatically: ```python boxes = 3 per_box = 25 given_away = 5 left = boxes * per_box - given_away print(left) ``` The program prints: 70 That leaves 70 markers.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "70", "printed": "70", "notation": null}
nlprog_det-setting-0066199
4 clients win $30,000. The lawyer takes 25%, and the rest is split equally. How much does each client get? Python code: ```python award = 30000 fee = award * 25 / 100 # 7500.0 remaining = award - fee # 22500.0 per_client = remaining / 4 # 5625.0 print(f"{per_client:.2f}") ``` Running it prints: 5625.00 Each client...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "5625.00", "printed": "5625.00", "notation": null}
nlprog_det-setting-0066200
Convert 7,297 USD to EUR at 1 USD = 1.12 EUR. Python does the arithmetic: amount = 7297 rate = 1.12 converted = amount * rate # 8172.64 print(f"{converted:.2f}") Run result: 8172.64 It converts to 8,172.64 EUR.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "8172.64", "printed": "8172.64", "notation": null}
nlprog_det-setting-0066201
A $210 dinner bill gets a 18% tip, and 2 people share the cost equally. What is each person's share? The Python version: ```python bill = 210 tip_rate = 18 / 100 # 0.18 people = 2 each = bill * (1 + tip_rate) / people # 123.89999999999999 print(f"{each:.2f}") ``` Printed result: 123.90 The share is $123.90 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "123.90", "printed": "123.90", "notation": null}
nlprog_det-setting-0066202
3 claimants share a $960 settlement equally. What is each share? Coded up: ```python settlement = 960 parties = 3 share = settlement // parties # 320 print(share) ``` It outputs: 320 Each party receives $320.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "320", "printed": "320", "notation": null}
nlprog_det-setting-0066203
A hearing is set for August 22, 2015. What day of the week is that? Python, step by step: ```python from datetime import date hearing = date(2015, 8, 22) # datetime.date(2015, 8, 22) print(hearing.strftime("%A")) ``` Printed = Saturday It is a Saturday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "Saturday", "printed": "Saturday", "notation": null}
nlprog_det-setting-0066204
If a 6-year limitations period starts on October 9, 2013, when does it end? Python, step by step: ```python from datetime import date accrued = date(2013, 10, 9) # datetime.date(2013, 10, 9) years = 6 expires = accrued.replace(year=accrued.year + years) # datetime.date(2019, 10, 9) print(expires.isoformat()) ``` Pro...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "2019-10-09", "printed": "2019-10-09", "notation": null}
nlprog_det-setting-0066205
<|start|><|user|> 2 books come back 2 days late, at $0.50 a day each. What is the fine?<|eot|> <|assistant|> ```python per_day = 0.5 days_late = 2 books = 2 fine = per_day * days_late * books # 2.0 print(f"{fine:.2f}") ``` Execution result: 2.00 The fine is $2.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "2 books come back 2 days late, at $0.50 a day each. What is the fine?" }, { "role": "assistant", "content": "```python\nper_day = 0.5\ndays_late = 2\nbooks = 2\nfine = per_day * days_late * books # 2.0\nprint(f\"{fine:.2f}\")\n```\nExecution result: 2.00\n\nThe fin...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "2.00", "printed": "2.00", "notation": null}
nlprog_det-setting-0066206
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> Starting from $12,000, the team spends $1,598, $938, $3,111, $2,925. What remains?<|eot|> <|assistant|> ```python budget = 12000 expenses = [1598, 938, 3111, 2925] left = budget - sum(expenses) # 3428 print(left) ``` stdout: 3428 $3,428 is left.<|e...
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "Starting from $12,000, the team spends $1,598, $938, $3,111, $2,925. What remains?" }, { "role": "assistant", "content": "```python\nbudget = 12000\nexpenses = [1598, 938, 3111, 2925]\...
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "3428", "printed": "3428", "notation": null}
nlprog_det-setting-0066207
Nilufar earns a 8% commission on $26,404 of sales. What is the commission? Let's compute it with Python. ```python sales = 26404 rate = 8 / 100 # 0.08 commission = sales * rate # 2112.32 print(f"{commission:.2f}") ``` Result — 2112.32 Nilufar earns $2,112.32.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "2112.32", "printed": "2112.32", "notation": null}
nlprog_det-setting-0066208
At $15.68 an hour, what does 20 hours of work pay? ```python rate = 15.68 hours = 20 earnings = rate * hours # 313.6 print(f"{earnings:.2f}") ``` Execution prints 313.60, as expected. That earns $313.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "313.60", "printed": "313.60", "notation": null}
nlprog_det-setting-0066210
<|start|><|user|> An invoice lists 14 binders at $5 each, plus 7% sales tax. What is the invoice total?<|eot|> <|assistant|> ```python quantity = 14 unit_price = 5 subtotal = quantity * unit_price # 70 total = subtotal * (1 + 7 / 100) # 74.9 print(f"{total:.2f}") ``` # printed: 74.90 The invoice total is $74.90.<|eo...
chat
[ { "role": "user", "content": "An invoice lists 14 binders at $5 each, plus 7% sales tax. What is the invoice total?" }, { "role": "assistant", "content": "```python\nquantity = 14\nunit_price = 5\nsubtotal = quantity * unit_price # 70\ntotal = subtotal * (1 + 7 / 100) # 74.9\nprint(f\"{total:....
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "74.90", "printed": "74.90", "notation": null}
nlprog_det-setting-0066211
189 copies of a 41-page packet are printed at $0.12 per page. What is the cost? Coded up: ```python pages = 41 copies = 189 cost_per_page = 0.12 cost = pages * copies * cost_per_page print(f"{cost:.2f}") ``` What it prints — 929.88 The job costs $929.88.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "929.88", "printed": "929.88", "notation": null}
nlprog_det-setting-0066212
A meeting starts at 9:30 AM and lasts 75 minutes. When does it end? Programmatically: ```python start = 9 * 60 + 30 end = start + 75 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` This prints: 10:45 AM The meeting finishes at 10:45 AM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "10:45 AM", "printed": "10:45 AM", "notation": null}
nlprog_det-setting-0066213
A 10-day notice period begins on October 26, 2018. On what date does it end? We can compute it in Python. ```python from datetime import date, timedelta start = date(2018, 10, 26) # datetime.date(2018, 10, 26) end = start + timedelta(days=10) # datetime.date(2018, 11, 5) print(end.isoformat()) ``` Executing it gives...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "2018-11-05", "printed": "2018-11-05", "notation": null}
nlprog_det-setting-0066214
Papers were served by mail on March 28, 2025. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date? In Python: ```python from datetime import date, timedelta served = date(2025, 3, 28) # datetime.date(2025, 3, 28) response_days = 30 mail_days = 3 due = served + timedelta(days=r...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
182
{"gold": "2025-04-30", "printed": "2025-04-30", "notation": null}
nlprog_det-setting-0066215
Buying 6 headsets at $12 each, 3 cables at $8 each, someone hands over $100. What change comes back? Here is a short program for it. ```python items = [(6, 12), (3, 8)] total = sum(q * p for q, p in items) # 96 paid = 100 change = paid - total # 4 print(change) ``` Program output: 4 The change is $4.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0066216
<|start|><|user|> A $2,400 loan carries 6% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|> <|assistant|> ```python principal = 2400 annual_rate = 6 / 100 # 0.06 months = 36 interest = principal * annual_rate * months / 12 # 432.0 payment...
chat
[ { "role": "user", "content": "A $2,400 loan carries 6% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?" }, { "role": "assistant", "content": "```python\nprincipal = 2400\nannual_rate = 6 / 100 # 0.06\nmonths = 36\ninteres...
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "78.67", "printed": "78.67", "notation": null}
nlprog_det-setting-0066217
<|start|><|user|> After an initial $0, the remainder of a $30,000 grant is paid in 4 equal parts. What is each part?<|eot|> <|assistant|> ```python grant = 30000 up_front = 0 installments = 4 each = (grant - up_front) / installments # 7500.0 print(f"{each:.2f}") ``` (Printed result: 7500.00) $7,500.00 per installment...
chat
[ { "role": "user", "content": "After an initial $0, the remainder of a $30,000 grant is paid in 4 equal parts. What is each part?" }, { "role": "assistant", "content": "```python\ngrant = 30000\nup_front = 0\ninstallments = 4\neach = (grant - up_front) / installments # 7500.0\nprint(f\"{each:.2f...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "7500.00", "printed": "7500.00", "notation": null}
nlprog_det-setting-0066218
<|start|><|system|> You are a precise assistant.<|eot|> <|user|> Walls total 239 sq ft and each can covers 400 sq ft. How many cans should be bought?<|eot|> <|assistant|> ```python import math area = 239 coverage = 400 cans = math.ceil(area / coverage) print(cans) ``` Executing it gives 1. Buy 1 cans.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a precise assistant." }, { "role": "user", "content": "Walls total 239 sq ft and each can covers 400 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "```python\nimport math\narea = 239\ncoverage = 400\ncans = math.c...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "1", "printed": "1", "notation": null}
nlprog_det-setting-0066219
Convert 2,829 GBP to USD at 1 GBP = 1.08 USD. In code: ```python amount = 2829 rate = 1.08 converted = amount * rate # 3055.32 print(f"{converted:.2f}") ``` Python prints 3055.32, as expected. It converts to 3,055.32 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "3055.32", "printed": "3055.32", "notation": null}
nlprog_det-setting-0066220
<|start|><|user|> Printing costs 12 cents a page. What does it cost to print 48 copies of a 6-page handout?<|eot|> <|assistant|> ```python pages = 6 copies = 48 cost_per_page = 0.12 cost = pages * copies * cost_per_page # 34.56 print(f"{cost:.2f}") ``` Executing it gives 34.56, as expected. The job costs $34.56.<|eot...
chat
[ { "role": "user", "content": "Printing costs 12 cents a page. What does it cost to print 48 copies of a 6-page handout?" }, { "role": "assistant", "content": "```python\npages = 6\ncopies = 48\ncost_per_page = 0.12\ncost = pages * copies * cost_per_page # 34.56\nprint(f\"{cost:.2f}\")\n```\nExe...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "34.56", "printed": "34.56", "notation": null}
nlprog_det-setting-0066221
<|start|><|user|> The building opened in 2025. How many years had passed by 2051?<|eot|> <|assistant|> ```python start_year = 2025 end_year = 2051 print(end_year - start_year) ``` It outputs 26. That is 26 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The building opened in 2025. How many years had passed by 2051?" }, { "role": "assistant", "content": "```python\nstart_year = 2025\nend_year = 2051\nprint(end_year - start_year)\n```\nIt outputs 26.\n\nThat is 26 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0066222
<|start|><|system|> You are a data assistant.<|eot|> <|user|> If a 40-minute class begins at 11:30 AM, what time does it finish?<|eot|> <|assistant|> start = 11 * 60 + 30 end = start + 40 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") (Printed r...
chat
[ { "role": "system", "content": "You are a data assistant." }, { "role": "user", "content": "If a 40-minute class begins at 11:30 AM, what time does it finish?" }, { "role": "assistant", "content": " start = 11 * 60 + 30\n end = start + 40\n hour, minute = divmod(end, 60)\n ...
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "12:10 PM", "printed": "12:10 PM", "notation": null}
nlprog_det-setting-0066223
What is -15 degrees Celsius in Fahrenheit? Python, step by step: ```python celsius = -15 fahrenheit = celsius * 9 / 5 + 32 # 5.0 print(round(fahrenheit)) ``` stdout: 5 That is 5 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0066224
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "compute", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|us...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"compute\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python sour...
nlprog_det
setting
original
null
deterministic
[]
[]
268
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0066225
<|start|><|user|> With 23 rows of 8 chairs and 10 empty chairs, how many chairs are taken?<|eot|> <|assistant|> ```python rows = 23 per_row = 8 empty = 10 seated = rows * per_row - empty # 174 print(seated) ``` (Program output: 174) 174 people are seated.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 23 rows of 8 chairs and 10 empty chairs, how many chairs are taken?" }, { "role": "assistant", "content": "```python\nrows = 23\nper_row = 8\nempty = 10\nseated = rows * per_row - empty # 174\nprint(seated)\n```\n(Program output: 174)\n\n174 people are seated....
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "174", "printed": "174", "notation": null}
nlprog_det-setting-0066226
<|start|><|system|> You are a logic tutor.<|eot|> <|user|> An invoice lists 15 pens at $8 each, plus 10% sales tax. What is the invoice total?<|eot|> <|assistant|> ```python quantity = 15 unit_price = 8 subtotal = quantity * unit_price # 120 total = subtotal * (1 + 10 / 100) # 132.0 print(f"{total:.2f}") ``` # stdout...
chat
[ { "role": "system", "content": "You are a logic tutor." }, { "role": "user", "content": "An invoice lists 15 pens at $8 each, plus 10% sales tax. What is the invoice total?" }, { "role": "assistant", "content": "```python\nquantity = 15\nunit_price = 8\nsubtotal = quantity * unit_pri...
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "132.00", "printed": "132.00", "notation": null}
nlprog_det-setting-0066227
How many meters are in 4.5 kilometers? Program: ```python km = 4.5 meters = km * 1000 # 4500.0 print(round(meters)) ``` Out: 4500 That is 4,500 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "4500", "printed": "4500", "notation": null}
nlprog_det-setting-0066228
Mateo was born on April 10, 1982. How old is Mateo on October 17, 2028? Python, step by step: ```python from datetime import date born = date(1982, 4, 10) # datetime.date(1982, 4, 10) on = date(2028, 10, 17) # datetime.date(2028, 10, 17) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 46...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
159
{"gold": "46", "printed": "46", "notation": null}
nlprog_det-setting-0066229
What does $10,000 grow to in 2 years at 3% annual compounding? Code: ```python principal = 10000 rate = 3 / 100 years = 2 value = principal * (1 + rate) ** years print(f"{value:.2f}") ``` Executed, it shows: 10609.00 It is worth $10,609.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "10609.00", "printed": "10609.00", "notation": null}
nlprog_det-setting-0066230
If a 2-year limitations period starts on April 19, 2016, when does it end? Python version: ```python from datetime import date accrued = date(2016, 4, 19) # datetime.date(2016, 4, 19) years = 2 expires = accrued.replace(year=accrued.year + years) # datetime.date(2018, 4, 19) print(expires.isoformat()) ``` Execution ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "2018-04-19", "printed": "2018-04-19", "notation": null}
nlprog_det-setting-0066231
<|start|><|system|> Give the answer first.<|eot|> <|user|> 4 claimants share a $4,500 settlement equally. What is each share?<|eot|> <|assistant|> Each share is $1,125.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Give the answer first." }, { "role": "user", "content": "4 claimants share a $4,500 settlement equally. What is each share?" }, { "role": "assistant", "content": "Each share is $1,125." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "1125", "printed": "1125", "notation": null}
nlprog_det-setting-0066232
How much sales tax is charged on a $609.24 purchase at 7%? Program: ```python price = 609.24 tax_rate = 7 / 100 # 0.07 tax = price * tax_rate # 42.646800000000006 print(f"{tax:.2f}") ``` Executed, it shows 42.65. The tax is $42.65.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "42.65", "printed": "42.65", "notation": null}
nlprog_det-setting-0066233
Shipping costs $8 plus $2.00 per pound. What does a 37-pound parcel cost to ship? Script: ```python base = 8 per_pound = 2.0 weight = 37 cost = base + per_pound * weight # 82.0 print(f"{cost:.2f}") ``` Interpreter output — 82.00 Shipping costs $82.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "82.00", "printed": "82.00", "notation": null}
nlprog_det-setting-0066234
A service costs $25 a month or $276 a year. How much does the yearly plan save over 12 monthly payments? Here's the code. ```python monthly = 25 yearly = 276 savings = monthly * 12 - yearly # 24 print(savings) ``` Output = 24 The annual plan saves $24.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0066235
The paralegal logged 7 hours at a rate of $225. How much is billed? Python: ```python hours = 7 rate = 225 bill = hours * rate print(f"{bill:.2f}") ``` Run it and it prints: 1575.00 That comes to $1,575.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "1575.00", "printed": "1575.00", "notation": null}
nlprog_det-setting-0066236
What does $5,000 grow to in 4 years at 2% annual compounding? As a program: ```python principal = 5000 rate = 2 / 100 # 0.02 years = 4 value = principal * (1 + rate) ** years # 5412.1608 print(f"{value:.2f}") ``` (Program output: 5412.16) The balance is $5,412.16.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "5412.16", "printed": "5412.16", "notation": null}
nlprog_det-setting-0066238
Walls total 1201 sq ft and each can covers 350 sq ft. How many cans should be bought? Set it up in Python: ```python import math area = 1201 coverage = 350 cans = math.ceil(area / coverage) # 4 print(cans) ``` Running it prints: 4 Buy 4 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0066239
How many minutes pass from 7:05 AM to 9:02 AM on the same day? 117 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
26
{"gold": "117", "printed": "117", "notation": null}
nlprog_det-setting-0066240
A $60,000 grant pays $3,000 up front and the rest in 12 equal installments. How large is each installment? Each installment is $4,750.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "4750.00", "printed": "4750.00", "notation": null}
nlprog_det-setting-0066241
On which weekday does October 4, 2006 fall? Coded up: ```python from datetime import date hearing = date(2006, 10, 4) # datetime.date(2006, 10, 4) print(hearing.strftime("%A")) ``` The program outputs Wednesday. October 4, 2006 is a Wednesday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "Wednesday", "printed": "Wednesday", "notation": null}
nlprog_det-setting-0066242
12 hours of work at $300 an hour: what is the total charge? Computation in Python: ```python hours = 12 rate = 300 bill = hours * rate # 3600 print(f"{bill:.2f}") ``` The program prints 3600.00. The bill is $3,600.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "3600.00", "printed": "3600.00", "notation": null}
nlprog_det-setting-0066243
<|start|><|system|> You have access to these functions: [{"name": "python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> Walls total 398 ...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir...
nlprog_det
setting
original
null
deterministic
[]
[]
225
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0066244
Sami lends $12,000 at 5% simple interest per year for 5 years. How much interest is earned? The interest is $3,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "3000.00", "printed": "3000.00", "notation": null}
nlprog_det-setting-0066245
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> A customer buys 4 ink cartridges at $5 each, 4 binders at $25 each, 4 desk lamps at $30 each, 3 staplers at $10 each and pays with $300. How much change is due?<|eot|> <|assistant|> ```python items = [(4, 5), (4, 25), (4, 30), (3, 10)] total = sum(q * p for q...
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "A customer buys 4 ink cartridges at $5 each, 4 binders at $25 each, 4 desk lamps at $30 each, 3 staplers at $10 each and pays with $300. How much change is due?" }, { "role": "assistant", "cont...
nlprog_det
setting
original
null
deterministic
[]
[]
162
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0066246
Papers were served by mail on January 20, 2025. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date? The program: ```python from datetime import date, timedelta served = date(2025, 1, 20) # datetime.date(2025, 1, 20) response_days = 14 mail_days = 3 due = served + timedelta(da...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
180
{"gold": "2025-02-06", "printed": "2025-02-06", "notation": null}
nlprog_det-setting-0066247
Convert 6,727 EUR to USD at 1 EUR = 1.27 USD. amount = 6727 rate = 1.27 converted = amount * rate # 8543.29 print(f"{converted:.2f}") Executed, it shows 8543.29. That is 8,543.29 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "8543.29", "printed": "8543.29", "notation": null}
nlprog_det-setting-0066248
1.5 hours of work at $410 an hour: what is the total charge? Python does the arithmetic: ```python hours = 1.5 rate = 410 bill = hours * rate print(f"{bill:.2f}") ``` When run, it prints 615.00, as expected. That comes to $615.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "615.00", "printed": "615.00", "notation": null}
nlprog_det-setting-0066249
After a 40% fee is taken from a $30,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share? We write it as a program: ```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}") ``` Running ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "9000.00", "printed": "9000.00", "notation": null}
nlprog_det-setting-0066250
<|start|><|user|> 3 runs at 250 calories each burn how many calories in total?<|eot|> <|assistant|> ```python per_session = 250 sessions = 3 total = per_session * sessions # 750 print(total) ``` Executed, it shows: 750 750 calories in total.<|eot|> <|end|>
chat
[ { "role": "user", "content": "3 runs at 250 calories each burn how many calories in total?" }, { "role": "assistant", "content": "```python\nper_session = 250\nsessions = 3\ntotal = per_session * sessions # 750\nprint(total)\n```\nExecuted, it shows: 750\n\n750 calories in total." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0066251
<|start|><|user|> 5 boxes hold 10 mugs each. After 17 are handed out, how many are left?<|eot|> <|assistant|> ```python boxes = 5 per_box = 10 given_away = 17 left = boxes * per_box - given_away # 33 print(left) ``` Execution prints 33, as expected. That leaves 33 mugs.<|eot|> <|end|>
chat
[ { "role": "user", "content": "5 boxes hold 10 mugs each. After 17 are handed out, how many are left?" }, { "role": "assistant", "content": "```python\nboxes = 5\nper_box = 10\ngiven_away = 17\nleft = boxes * per_box - given_away # 33\nprint(left)\n```\nExecution prints 33, as expected.\n\nThat ...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "33", "printed": "33", "notation": null}
nlprog_det-setting-0066252
Copies cost $15 plus $0.10 for each page beyond 10. How much for 45 pages? Python does the arithmetic: ```python pages = 45 base = 15 per_page = 0.1 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 18.5 print(f"{cost:.2f}") ``` Output: 18.50 The copy costs $18.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "18.50", "printed": "18.50", "notation": null}
nlprog_det-setting-0066253
Notice was given on November 18, 2028. The notice period is 30 days. When does it run out? As a program: ```python from datetime import date, timedelta start = date(2028, 11, 18) end = start + timedelta(days=30) print(end.isoformat()) ``` Program output — 2028-12-18 The period ends on December 18, 2028.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "2028-12-18", "printed": "2028-12-18", "notation": null}
nlprog_det-setting-0066254
Goods bought on February 12, 2018 carry a 6-month warranty. When does it expire? Here is the program. ```python from datetime import date start = date(2018, 2, 12) months = 6 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "2018-08-12", "printed": "2018-08-12", "notation": null}
nlprog_det-setting-0066255
Attendance was 35 out of 40. Express it as a percent. The program: ```python present = 35 total = 40 percent = present / total * 100 print(round(percent, 1)) ``` stdout = 87.5 Attendance was 87.5%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "87.5", "printed": "87.5", "notation": null}
nlprog_det-setting-0066256
From a $5,000 retainer, 3 hours at $150/hour have been drawn. What remains? We write it as a program: ```python retainer = 5000 hours = 3 rate = 150 left = retainer - hours * rate # 4550 print(left) ``` Output: 4550 $4,550 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "4550", "printed": "4550", "notation": null}
nlprog_det-setting-0066257
<|start|><|user|> Someone born September 2, 1993 turns how old by March 18, 2022? Give the age in whole years.<|eot|> <|assistant|> ```python from datetime import date born = date(1993, 9, 2) # datetime.date(1993, 9, 2) on = date(2022, 3, 18) # datetime.date(2022, 3, 18) age = on.year - born.year - ((on.month, on.day...
chat
[ { "role": "user", "content": "Someone born September 2, 1993 turns how old by March 18, 2022? Give the age in whole years." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1993, 9, 2) # datetime.date(1993, 9, 2)\non = date(2022, 3, 18) # datetime.date(20...
nlprog_det
setting
original
null
deterministic
[]
[]
156
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0066258
<|start|><|system|> You check calculations for an accounting team.<|eot|> <|user|> Rent of $1,500 goes up 2%. What is the new rent?<|eot|> <|assistant|> ```python rent = 1500 increase = 2 / 100 # 0.02 new_rent = rent * (1 + increase) # 1530.0 print(f"{new_rent:.2f}") ``` Python prints 1530.00. It rises to $1,530.00....
chat
[ { "role": "system", "content": "You check calculations for an accounting team." }, { "role": "user", "content": "Rent of $1,500 goes up 2%. What is the new rent?" }, { "role": "assistant", "content": "```python\nrent = 1500\nincrease = 2 / 100 # 0.02\nnew_rent = rent * (1 + increase...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "1530.00", "printed": "1530.00", "notation": null}
nlprog_det-setting-0066260
<|start|><|user|> A 14-day notice period begins on October 7, 2026. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2026, 10, 7) # datetime.date(2026, 10, 7) end = start + timedelta(days=14) # datetime.date(2026, 10, 21) print(end.isoformat()) ``` Execution r...
chat
[ { "role": "user", "content": "A 14-day notice period begins on October 7, 2026. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2026, 10, 7) # datetime.date(2026, 10, 7)\nend = start + timedelta(days=14) # datetime....
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "2026-10-21", "printed": "2026-10-21", "notation": null}
nlprog_det-setting-0066261
<|start|><|system|> Be concise.<|eot|> <|user|> Filing fees are $405 per document. What do 17 filings cost?<|eot|> <|assistant|> ```python fee = 405 filings = 17 total = fee * filings # 6885 print(total) ``` Interpreter output — 6885 The filings cost $6,885 in all.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "Filing fees are $405 per document. What do 17 filings cost?" }, { "role": "assistant", "content": "```python\nfee = 405\nfilings = 17\ntotal = fee * filings # 6885\nprint(total)\n```\nInterpreter output — ...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "6885", "printed": "6885", "notation": null}
nlprog_det-setting-0066262
How many of 26 votes make 67% (round up)? At least 18 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
24
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0066263
<|start|><|user|> What is 40 degrees Celsius in Fahrenheit?<|eot|> <|assistant|> ```python celsius = 40 fahrenheit = celsius * 9 / 5 + 32 print(round(fahrenheit)) ``` Executing it gives 104. It equals 104 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is 40 degrees Celsius in Fahrenheit?" }, { "role": "assistant", "content": "```python\ncelsius = 40\nfahrenheit = celsius * 9 / 5 + 32\nprint(round(fahrenheit))\n```\nExecuting it gives 104.\n\nIt equals 104 degrees Fahrenheit." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "104", "printed": "104", "notation": null}
nlprog_det-setting-0066264
6.5 hours of work at $150 an hour: what is the total charge? Here is a short program for it. ```python hours = 6.5 rate = 150 bill = hours * rate # 975.0 print(f"{bill:.2f}") ``` Result: 975.00 That comes to $975.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "975.00", "printed": "975.00", "notation": null}
nlprog_det-setting-0066265
A storeroom has 369 badges. The office uses 22 a day. How many are left after 5 days? 259 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "259", "printed": "259", "notation": null}
nlprog_det-setting-0066266
<|start|><|user|> From 2005 to 2018, how many years is that?<|eot|> <|assistant|> ```python start_year = 2005 end_year = 2018 print(end_year - start_year) ``` The run gives 13, as expected. That is 13 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From 2005 to 2018, how many years is that?" }, { "role": "assistant", "content": "```python\nstart_year = 2005\nend_year = 2018\nprint(end_year - start_year)\n```\nThe run gives 13, as expected.\n\nThat is 13 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
70
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0066267
Convert 1,881 USD to EUR at 1 USD = 1.12 EUR. Python makes this quick: ```python amount = 1881 rate = 1.12 converted = amount * rate # 2106.7200000000003 print(f"{converted:.2f}") ``` Output: 2106.72 It converts to 2,106.72 EUR.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "2106.72", "printed": "2106.72", "notation": null}
nlprog_det-setting-0066268
<|start|><|user|> 4 clients win $60,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> ```python award = 60000 fee = award * 30 / 100 # 18000.0 remaining = award - fee # 42000.0 per_client = remaining / 4 # 10500.0 print(f"{per_client:.2f}") ``` # printed re...
chat
[ { "role": "user", "content": "4 clients win $60,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": "```python\naward = 60000\nfee = award * 30 / 100 # 18000.0\nremaining = award - fee # 42000.0\nper_client = remaining ...
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "10500.00", "printed": "10500.00", "notation": null}
nlprog_det-setting-0066269
<|start|><|user|> Split $2,160 between Viktor and Quinn in the ratio 2 to 3. What is Viktor's share?<|eot|> <|assistant|> ```python total = 2160 parts_a = 2 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 864 print(share_a) ``` Executing it gives 864, as expected. Viktor gets $864.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Split $2,160 between Viktor and Quinn in the ratio 2 to 3. What is Viktor's share?" }, { "role": "assistant", "content": "```python\ntotal = 2160\nparts_a = 2\nparts_b = 3\nshare_a = total * parts_a // (parts_a + parts_b) # 864\nprint(share_a)\n```\nExecuting it gi...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "864", "printed": "864", "notation": null}
nlprog_det-setting-0066270
How many minutes pass from 9:13 AM to 9:35 AM on the same day? We write it as a program: ```python start = 9 * 60 + 13 # 553 end = 9 * 60 + 35 # 575 print(end - start) ``` Printed result: 22 It is 22 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0066271
1 books come back 27 days late, at $0.10 a day each. What is the fine? The fine is $2.70.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "2.70", "printed": "2.70", "notation": null}
nlprog_det-setting-0066272
How long, in days, is it from November 5, 2022 until August 8, 2023? It is 276 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "276", "printed": "276", "notation": null}
nlprog_det-setting-0066273
Scale 240 g of oats from 4 servings to 2 servings. Python, step by step: ```python grams = 240 serves = 4 needed_for = 2 scaled = grams * needed_for // serves # 120 print(scaled) ``` Python prints: 120 120 grams of oats are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0066274
<|start|><|user|> A recipe for 4 people uses 240 grams of oats. How many grams are needed for 6 people?<|eot|> <|assistant|> ```python grams = 240 serves = 4 needed_for = 6 scaled = grams * needed_for // serves # 360 print(scaled) ``` # program output: 360 360 grams of oats are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A recipe for 4 people uses 240 grams of oats. How many grams are needed for 6 people?" }, { "role": "assistant", "content": "```python\ngrams = 240\nserves = 4\nneeded_for = 6\nscaled = grams * needed_for // serves # 360\nprint(scaled)\n```\n# program output: 360\n...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "360", "printed": "360", "notation": null}
nlprog_det-setting-0066275
A $48,000 grant pays $0 up front and the rest in 4 equal installments. How large is each installment? ```python grant = 48000 up_front = 0 installments = 4 each = (grant - up_front) / installments # 12000.0 print(f"{each:.2f}") ``` # console output: 12000.00 $12,000.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "12000.00", "printed": "12000.00", "notation": null}
nlprog_det-setting-0066276
A recipe for 6 people uses 240 grams of pasta. How many grams are needed for 8 people? Coded up: ```python grams = 240 serves = 6 needed_for = 8 scaled = grams * needed_for // serves # 320 print(scaled) ``` # run result: 320 320 grams of pasta are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "320", "printed": "320", "notation": null}
nlprog_det-setting-0066277
What is the total rent on a 12-month lease at $975 a month? As Python: ```python monthly_rent = 975 months = 12 total = monthly_rent * months # 11700 print(total) ``` # out: 11700 The rent over the term is $11,700.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "11700", "printed": "11700", "notation": null}
nlprog_det-setting-0066278
A court charges $15 per request plus $0.50 per page after the first 20 pages. What does a 89-page copy cost? ```python pages = 89 base = 15 per_page = 0.5 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 49.5 print(f"{cost:.2f}") ``` When run, it prints 49.50. The total is $49.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "49.50", "printed": "49.50", "notation": null}
nlprog_det-setting-0066279
Bilal and Mateo share $1,197 in the ratio 1:2. How much does Bilal get? One way, in code: ```python total = 1197 parts_a = 1 parts_b = 2 share_a = total * parts_a // (parts_a + parts_b) # 399 print(share_a) ``` Program output — 399 Bilal's share is $399.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "399", "printed": "399", "notation": null}
nlprog_det-setting-0066280
An office budget of $5,000 has expenses of $1,181, $3,996, $2,067. How much of the budget is left? Let the code do the arithmetic: ```python budget = 5000 expenses = [1181, 3996, 2067] left = budget - sum(expenses) # -2244 print(left) ``` Execution prints: -2244 The remaining budget is -$2,244.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "-2244", "printed": "-2244", "notation": null}
nlprog_det-setting-0066281
Equipment costs $24,000, has a salvage value of $0, and a useful life of 10 years. What is the straight-line depreciation per year? Here's the code. ```python cost = 24000 salvage = 0 years = 10 per_year = (cost - salvage) / years print(f"{per_year:.2f}") ``` (Printed result: 2400.00) $2,400.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "2400.00", "printed": "2400.00", "notation": null}
nlprog_det-setting-0066282
<|start|><|system|> Be brief and correct.<|eot|> <|user|> A lease runs for 36 months at $1,200 per month. How much rent is paid over the whole term?<|eot|> <|assistant|> monthly_rent = 1200 months = 36 total = monthly_rent * months # 43200 print(total) # result: 43200 The rent over the term is $43,200...
chat
[ { "role": "system", "content": "Be brief and correct." }, { "role": "user", "content": "A lease runs for 36 months at $1,200 per month. How much rent is paid over the whole term?" }, { "role": "assistant", "content": " monthly_rent = 1200\n months = 36\n total = monthly_rent...
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "43200", "printed": "43200", "notation": null}
nlprog_det-setting-0066283
<|start|><|system|> Tool definitions: [{"name": "calc", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> Shipping costs $12 plus $1.20 per pou...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"calc\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\"]}}...
nlprog_det
setting
original
null
deterministic
[]
[]
227
{"gold": "36.00", "printed": "36.00", "notation": null}
nlprog_det-setting-0066284
<|start|><|system|> Tools (call with JSON): [{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "interpreter", "description": "Use for arithme...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\", \"end\"]...
nlprog_det
setting
original
null
deterministic
[]
[]
339
{"gold": "825.00", "printed": "825.00", "notation": null}
nlprog_det-setting-0066285
A $6,000 loan carries 5% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment? We write it as a program: ```python principal = 6000 annual_rate = 5 / 100 # 0.05 months = 24 interest = principal * annual_rate * months / 12 # 600.0 payment = (principa...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "275.00", "printed": "275.00", "notation": null}
nlprog_det-setting-0066286
The landlord deducts $200 from a $1,500 deposit. What is returned to the tenant? We write it as a program: ```python deposit = 1500 deductions = [200] refund = deposit - sum(deductions) # 1300 print(refund) ``` It outputs 1300. The refund is $1,300.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "1300", "printed": "1300", "notation": null}
nlprog_det-setting-0066287
A client paid a $7,500 retainer. The firm has billed 13 hours at $200 per hour. How much of the retainer is left? Python makes this quick: retainer = 7500 hours = 13 rate = 200 left = retainer - hours * rate # 4900 print(left) On running, it outputs: 4900 $4,900 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "4900", "printed": "4900", "notation": null}
nlprog_det-setting-0066288
<|start|><|system|> You help paralegals with routine tasks.<|eot|> <|user|> At $15.30 an hour, what does 38 hours of work pay?<|eot|> <|assistant|> ```python rate = 15.3 hours = 38 earnings = rate * hours # 581.4 print(f"{earnings:.2f}") ``` What it prints — 581.40 That earns $581.40.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help paralegals with routine tasks." }, { "role": "user", "content": "At $15.30 an hour, what does 38 hours of work pay?" }, { "role": "assistant", "content": "```python\nrate = 15.3\nhours = 38\nearnings = rate * hours # 581.4\nprint(f\"{earnings...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "581.40", "printed": "581.40", "notation": null}