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-0051947
8 claimants share a $4,496 settlement equally. What is each share? Each party receives $562.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "562", "printed": "562", "notation": null}
nlprog_det-setting-0051948
Shipping costs $8 plus $1.50 per pound. What does a 25-pound parcel cost to ship? ```python base = 8 per_pound = 1.5 weight = 25 cost = base + per_pound * weight # 45.5 print(f"{cost:.2f}") ``` Execution prints 45.50. The charge is $45.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "45.50", "printed": "45.50", "notation": null}
nlprog_det-setting-0051949
<|start|><|user|> A $1,000 security deposit has deductions of $200, $60 and $120. How much is refunded?<|eot|> <|assistant|> ```python deposit = 1000 deductions = [200, 60, 120] refund = deposit - sum(deductions) # 620 print(refund) ``` Printed result — 620 The refund is $620.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $1,000 security deposit has deductions of $200, $60 and $120. How much is refunded?" }, { "role": "assistant", "content": "```python\ndeposit = 1000\ndeductions = [200, 60, 120]\nrefund = deposit - sum(deductions) # 620\nprint(refund)\n```\nPrinted result — 620\n...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "620", "printed": "620", "notation": null}
nlprog_det-setting-0051950
<|start|><|user|> Count the days between January 1, 2020 and May 5, 2020.<|eot|> <|assistant|> ```python from datetime import date first = date(2020, 1, 1) # datetime.date(2020, 1, 1) second = date(2020, 5, 5) # datetime.date(2020, 5, 5) print((second - first).days) ``` # printed: 125 It is 125 days.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Count the days between January 1, 2020 and May 5, 2020." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2020, 1, 1) # datetime.date(2020, 1, 1)\nsecond = date(2020, 5, 5) # datetime.date(2020, 5, 5)\nprint((second - first)...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "125", "printed": "125", "notation": null}
nlprog_det-setting-0051951
A $240 dinner bill gets a 18% tip, and 2 people share the cost equally. What is each person's share? Code: ```python bill = 240 tip_rate = 18 / 100 # 0.18 people = 2 each = bill * (1 + tip_rate) / people # 141.6 print(f"{each:.2f}") ``` Printed: 141.60 Each person pays $141.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "141.60", "printed": "141.60", "notation": null}
nlprog_det-setting-0051952
Monthly rent is $1,500. A tenant moves in with 6 days left in a 30-day month. What is the prorated rent? In code: ```python rent = 1500 days_in_month = 30 days_occupied = 6 prorated = rent * days_occupied / days_in_month # 300.0 print(f"{prorated:.2f}") ``` It prints: 300.00 The tenant owes $300.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "300.00", "printed": "300.00", "notation": null}
nlprog_det-setting-0051953
<|start|><|user|> Fines run at $100 per day up to a maximum of $2,500. How much after 26 days?<|eot|> <|assistant|> per_day = 100 days = 26 cap = 2500 fine = min(per_day * days, cap) # 2500 print(fine) On running, it outputs: 2500 $2,500 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Fines run at $100 per day up to a maximum of $2,500. How much after 26 days?" }, { "role": "assistant", "content": " per_day = 100\n days = 26\n cap = 2500\n fine = min(per_day * days, cap) # 2500\n print(fine)\nOn running, it outputs: 2500\n\n$2,500...
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0051954
<|start|><|user|> A 40-mile drive at a steady 40 mph takes how many minutes?<|eot|> <|assistant|> distance = 40 speed = 40 minutes = distance / speed * 60 # 60.0 print(round(minutes)) Printed — 60 60 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 40-mile drive at a steady 40 mph takes how many minutes?" }, { "role": "assistant", "content": " distance = 40\n speed = 40\n minutes = distance / speed * 60 # 60.0\n print(round(minutes))\nPrinted — 60\n\n60 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
65
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0051955
Counting the first and last day, how many days are there from February 6, 2026 through February 9, 2026? A Python solution: ```python from datetime import date first = date(2026, 2, 6) # datetime.date(2026, 2, 6) last = date(2026, 2, 9) # datetime.date(2026, 2, 9) days = (last - first).days + 1 # 4 print(days) ``` ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0051956
<|start|><|user|> A $30,000 grant pays $6,000 up front and the rest in 6 equal installments. How large is each installment?<|eot|> <|assistant|> ```python grant = 30000 up_front = 6000 installments = 6 each = (grant - up_front) / installments # 4000.0 print(f"{each:.2f}") ``` Execution result: 4000.00 Each installmen...
chat
[ { "role": "user", "content": "A $30,000 grant pays $6,000 up front and the rest in 6 equal installments. How large is each installment?" }, { "role": "assistant", "content": "```python\ngrant = 30000\nup_front = 6000\ninstallments = 6\neach = (grant - up_front) / installments # 4000.0\nprint(f\...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "4000.00", "printed": "4000.00", "notation": null}
nlprog_det-setting-0051957
At an exchange rate of 1.08 USD per EUR, how many USD is 4,638 EUR? It converts to 5,009.04 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "5009.04", "printed": "5009.04", "notation": null}
nlprog_det-setting-0051958
<|start|><|user|> Counting the first and last day, how many days are there from November 18, 2022 through November 28, 2022?<|eot|> <|assistant|> ```python from datetime import date first = date(2022, 11, 18) # datetime.date(2022, 11, 18) last = date(2022, 11, 28) # datetime.date(2022, 11, 28) days = (last - first).d...
chat
[ { "role": "user", "content": "Counting the first and last day, how many days are there from November 18, 2022 through November 28, 2022?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2022, 11, 18) # datetime.date(2022, 11, 18)\nlast = date(2022, 11, 2...
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0051959
<|start|><|system|> Tools (call with JSON): [{"name": "calculator", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> A recipe for 4 people us...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"calculator\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\":...
nlprog_det
setting
original
null
deterministic
[]
[]
227
{"gold": "375", "printed": "375", "notation": null}
nlprog_det-setting-0051960
Someone born April 28, 1965 turns how old by December 18, 2021? Give the age in whole years. Python makes this quick: ```python from datetime import date born = date(1965, 4, 28) # datetime.date(1965, 4, 28) on = date(2021, 12, 18) # datetime.date(2021, 12, 18) age = on.year - born.year - ((on.month, on.day) < (born...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
163
{"gold": "56", "printed": "56", "notation": null}
nlprog_det-setting-0051961
8 hours of work at $410 an hour: what is the total charge? Python version: hours = 8 rate = 410 bill = hours * rate # 3280 print(f"{bill:.2f}") Out: 3280.00 The bill is $3,280.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "3280.00", "printed": "3280.00", "notation": null}
nlprog_det-setting-0051962
How many days are there from June 24, 2025 to May 22, 2026? Program: ```python from datetime import date first = date(2025, 6, 24) # datetime.date(2025, 6, 24) second = date(2026, 5, 22) # datetime.date(2026, 5, 22) print((second - first).days) ``` Result — 332 It is 332 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "332", "printed": "332", "notation": null}
nlprog_det-setting-0051963
A $9,000 loan carries 5% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment? Python makes this quick: principal = 9000 annual_rate = 5 / 100 # 0.05 months = 24 interest = principal * annual_rate * months / 12 # 900.0 payment = ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "412.50", "printed": "412.50", "notation": null}
nlprog_det-setting-0051964
Equal monthly payments repay $6,000 plus 5% simple yearly interest over 24 months. How large is a payment? Each payment is $275.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "275.00", "printed": "275.00", "notation": null}
nlprog_det-setting-0051965
<|start|><|user|> If a 6-year limitations period starts on May 12, 2014, when does it end?<|eot|> <|assistant|> from datetime import date accrued = date(2014, 5, 12) # datetime.date(2014, 5, 12) years = 6 expires = accrued.replace(year=accrued.year + years) # datetime.date(2020, 5, 12) print(expir...
chat
[ { "role": "user", "content": "If a 6-year limitations period starts on May 12, 2014, when does it end?" }, { "role": "assistant", "content": " from datetime import date\n accrued = date(2014, 5, 12) # datetime.date(2014, 5, 12)\n years = 6\n expires = accrued.replace(year=accrued.ye...
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "2020-05-12", "printed": "2020-05-12", "notation": null}
nlprog_det-setting-0051966
<|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": "fetch_filing", "description": "Fetch an...
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
[]
[]
421
{"gold": "1075.00", "printed": "1075.00", "notation": null}
nlprog_det-setting-0051967
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "sandbox_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"n...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"sandbox_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Py...
nlprog_det
setting
original
null
deterministic
[]
[]
289
{"gold": "270", "printed": "270", "notation": null}
nlprog_det-setting-0051969
Fines run at $250 per day up to a maximum of $1,000. How much after 7 days? As Python: ```python per_day = 250 days = 7 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` Shell output: 1000 The fine is $1,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0051970
<|start|><|user|> A storeroom has 885 labels. The office uses 33 a day. How many are left after 14 days?<|eot|> <|assistant|> 423 remain.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A storeroom has 885 labels. The office uses 33 a day. How many are left after 14 days?" }, { "role": "assistant", "content": "423 remain." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "423", "printed": "423", "notation": null}
nlprog_det-setting-0051972
<|start|><|system|> You have access to these functions: {"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}} {"name": "python", "description": "Run Python code in a sandbox; the result is whatever th...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}\n{\"name\": \"python\", \"description\"...
nlprog_det
setting
original
null
deterministic
[]
[]
358
{"gold": "235", "printed": "235", "notation": null}
nlprog_det-setting-0051973
At $17.49 an hour, what does 12 hours of work pay? Program: ```python rate = 17.49 hours = 12 earnings = rate * hours # 209.88 print(f"{earnings:.2f}") ``` stdout: 209.88 That earns $209.88.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "209.88", "printed": "209.88", "notation": null}
nlprog_det-setting-0051974
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> 4 clients win $72,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> ```python award = 72000 fee = award * 25 / 100 # 18000.0 remaining = award - fee # 54000.0 per_client = remaining / 4 # 13500.0 pr...
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "4 clients win $72,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": "```python\naward = 72000\nfee = award * 25 / 100 ...
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "13500.00", "printed": "13500.00", "notation": null}
nlprog_det-setting-0051975
<|start|><|user|> Filing fees are $125 per document. What do 6 filings cost?<|eot|> <|assistant|> ```python fee = 125 filings = 6 total = fee * filings # 750 print(total) ``` Running this gives 750. $750 in filing fees.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Filing fees are $125 per document. What do 6 filings cost?" }, { "role": "assistant", "content": "```python\nfee = 125\nfilings = 6\ntotal = fee * filings # 750\nprint(total)\n```\nRunning this gives 750.\n\n$750 in filing fees." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0051976
4 books come back 15 days late, at $0.25 a day each. What is the fine? The program: ```python per_day = 0.25 days_late = 15 books = 4 fine = per_day * days_late * books # 15.0 print(f"{fine:.2f}") ``` Executed, it shows: 15.00 The fine is $15.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "15.00", "printed": "15.00", "notation": null}
nlprog_det-setting-0051977
What percentage of $10,000 is $3,600? 36.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
24
{"gold": "36.0", "printed": "36.0", "notation": null}
nlprog_det-setting-0051978
A chair costs $300. It is 40% off. What is the sale price? price = 300 discount = 40 / 100 # 0.4 sale_price = price * (1 - discount) # 180.0 print(f"{sale_price:.2f}") Output of the run: 180.00 The sale price is $180.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "180.00", "printed": "180.00", "notation": null}
nlprog_det-setting-0051979
<|start|><|user|> From 2009 to 2038, how many years is that?<|eot|> <|assistant|> ```python start_year = 2009 end_year = 2038 print(end_year - start_year) ``` # printed: 29 29 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From 2009 to 2038, how many years is that?" }, { "role": "assistant", "content": "```python\nstart_year = 2009\nend_year = 2038\nprint(end_year - start_year)\n```\n# printed: 29\n\n29 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
65
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0051980
<|start|><|user|> Convert 5,954 GBP to USD at 1 GBP = 0.74 USD.<|eot|> <|assistant|> ```python amount = 5954 rate = 0.74 converted = amount * rate # 4405.96 print(f"{converted:.2f}") ``` Out — 4405.96 That is 4,405.96 USD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 5,954 GBP to USD at 1 GBP = 0.74 USD." }, { "role": "assistant", "content": "```python\namount = 5954\nrate = 0.74\nconverted = amount * rate # 4405.96\nprint(f\"{converted:.2f}\")\n```\nOut — 4405.96\n\nThat is 4,405.96 USD." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "4405.96", "printed": "4405.96", "notation": null}
nlprog_det-setting-0051981
<|start|><|user|> Water costs $18 a month plus $4.20 for each 1,000 gallons over 2,000. What is owed for 7,000 gallons?<|eot|> <|assistant|> ```python base = 18 rate = 4.2 used = 7 free = 2 bill = base + rate * max(0, used - free) # 39.0 print(f"{bill:.2f}") ``` (Console output: 39.00) $39.00 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Water costs $18 a month plus $4.20 for each 1,000 gallons over 2,000. What is owed for 7,000 gallons?" }, { "role": "assistant", "content": "```python\nbase = 18\nrate = 4.2\nused = 7\nfree = 2\nbill = base + rate * max(0, used - free) # 39.0\nprint(f\"{bill:.2f}\"...
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "39.00", "printed": "39.00", "notation": null}
nlprog_det-setting-0051982
<|start|><|user|> A $30,000 grant pays $2,000 up front and the rest in 3 equal installments. How large is each installment?<|eot|> <|assistant|> ```python grant = 30000 up_front = 2000 installments = 3 each = (grant - up_front) / installments # 9333.333333333334 print(f"{each:.2f}") ``` # printed result: 9333.33 $9,3...
chat
[ { "role": "user", "content": "A $30,000 grant pays $2,000 up front and the rest in 3 equal installments. How large is each installment?" }, { "role": "assistant", "content": "```python\ngrant = 30000\nup_front = 2000\ninstallments = 3\neach = (grant - up_front) / installments # 9333.33333333333...
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "9333.33", "printed": "9333.33", "notation": null}
nlprog_det-setting-0051983
How many minutes pass from 11:05 AM to 6:00 PM on the same day? As a program: ```python start = 11 * 60 + 5 # 665 end = 18 * 60 + 0 # 1080 print(end - start) ``` # result: 415 415 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "415", "printed": "415", "notation": null}
nlprog_det-setting-0051984
2 clients win $72,000. The lawyer takes 30%, and the rest is split equally. How much does each client get? In code: ```python award = 72000 fee = award * 30 / 100 # 21600.0 remaining = award - fee # 50400.0 per_client = remaining / 2 # 25200.0 print(f"{per_client:.2f}") ``` The interpreter prints: 25200.00 Each sh...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "25200.00", "printed": "25200.00", "notation": null}
nlprog_det-setting-0051985
At $0.58 per mile, what is the reimbursement for 162 miles? Abel is owed $93.96.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "93.96", "printed": "93.96", "notation": null}
nlprog_det-setting-0051987
A customer buys 4 file boxes at $24 each, 1 notebooks at $8 each, 1 binders at $4 each and pays with $150. How much change is due? Here's the code. items = [(4, 24), (1, 8), (1, 4)] total = sum(q * p for q, p in items) # 108 paid = 150 change = paid - total # 42 print(change) (Printed: 42) $42 c...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "42", "printed": "42", "notation": null}
nlprog_det-setting-0051988
Notice was given on August 2, 2024. The notice period is 120 days. When does it run out? The computation: ```python from datetime import date, timedelta start = date(2024, 8, 2) # datetime.date(2024, 8, 2) end = start + timedelta(days=120) # datetime.date(2024, 11, 30) print(end.isoformat()) ``` Result = 2024-11-30 ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "2024-11-30", "printed": "2024-11-30", "notation": null}
nlprog_det-setting-0051989
What simple interest does $5,000 earn at 5% a year over 6 years? A Python solution: ```python principal = 5000 rate = 5 / 100 # 0.05 years = 6 interest = principal * rate * years # 1500.0 print(f"{interest:.2f}") ``` The interpreter prints: 1500.00 The interest is $1,500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "1500.00", "printed": "1500.00", "notation": null}
nlprog_det-setting-0051990
<|start|><|user|> At an exchange rate of 0.92 USD per GBP, how many USD is 3,548 GBP?<|eot|> <|assistant|> amount = 3548 rate = 0.92 converted = amount * rate # 3264.1600000000003 print(f"{converted:.2f}") # result: 3264.16 That is 3,264.16 USD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At an exchange rate of 0.92 USD per GBP, how many USD is 3,548 GBP?" }, { "role": "assistant", "content": " amount = 3548\n rate = 0.92\n converted = amount * rate # 3264.1600000000003\n print(f\"{converted:.2f}\")\n# result: 3264.16\n\nThat is 3,264.16...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "3264.16", "printed": "3264.16", "notation": null}
nlprog_det-setting-0051991
<|start|><|user|> How many 2-foot square tiles cover a 17 ft by 12 ft floor (round up)?<|eot|> <|assistant|> ```python import math length = 17 width = 12 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 51 print(tiles) ``` Run output: 51 It takes 51 tiles.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many 2-foot square tiles cover a 17 ft by 12 ft floor (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 17\nwidth = 12\ntile = 2\ntiles = math.ceil(length * width / (tile * tile)) # 51\nprint(tiles)\n```\nRun output: 51\n\nIt t...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "51", "printed": "51", "notation": null}
nlprog_det-setting-0051992
Meals are $74 per day and lodging $140 per night. What is the allowance for 4 days and 3 nights? Computing it: days = 4 meal_rate = 74 lodging_rate = 140 nights = days - 1 # 3 total = days * meal_rate + nights * lodging_rate # 716 print(total) # execution result: 716 The allowance is $716.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "716", "printed": "716", "notation": null}
nlprog_det-setting-0051993
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "eval_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|u...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"eval_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python sou...
nlprog_det
setting
original
null
deterministic
[]
[]
236
{"gold": "2000", "printed": "2000", "notation": null}
nlprog_det-setting-0051994
How many weekdays (Monday to Friday) fall after January 9, 2018 up to and including February 8, 2018? Code: ```python from datetime import date, timedelta start = date(2018, 1, 9) end = date(2018, 2, 8) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() < 5: count...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0051995
<|start|><|system|> You can call tools. Available tools: [{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}, {"name": "translate", "descrip...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\":...
nlprog_det
setting
original
null
deterministic
[]
[]
418
{"gold": "6381.41", "printed": "6381.41", "notation": null}
nlprog_det-setting-0051996
<|start|><|user|> What is a 10% tip on a $158.89 bill?<|eot|> <|assistant|> ```python bill = 158.89 tip_rate = 10 / 100 # 0.1 tip = bill * tip_rate # 15.889 print(f"{tip:.2f}") ``` Printed result: 15.89 Leave $15.89.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is a 10% tip on a $158.89 bill?" }, { "role": "assistant", "content": "```python\nbill = 158.89\ntip_rate = 10 / 100 # 0.1\ntip = bill * tip_rate # 15.889\nprint(f\"{tip:.2f}\")\n```\nPrinted result: 15.89\n\nLeave $15.89." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "15.89", "printed": "15.89", "notation": null}
nlprog_det-setting-0051997
At $17.06 an hour, what does 36 hours of work pay? We write it as a program: ```python rate = 17.06 hours = 36 earnings = rate * hours # 614.16 print(f"{earnings:.2f}") ``` The run gives 614.16, as expected. The pay is $614.16.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "614.16", "printed": "614.16", "notation": null}
nlprog_det-setting-0051998
What is the total rent on a 6-month lease at $3,250 a month? Programmatically: ```python monthly_rent = 3250 months = 6 total = monthly_rent * months # 19500 print(total) ``` Executing it gives 19500. The rent over the term is $19,500.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "19500", "printed": "19500", "notation": null}
nlprog_det-setting-0051999
What simple interest does $12,000 earn at 6% a year over 3 years? Code: ```python principal = 12000 rate = 6 / 100 # 0.06 years = 3 interest = principal * rate * years # 2160.0 print(f"{interest:.2f}") ``` Result: 2160.00 It earns $2,160.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "2160.00", "printed": "2160.00", "notation": null}
nlprog_det-setting-0052000
Counting the first and last day, how many days are there from July 16, 2028 through July 19, 2028? Here is a short program for it. ```python from datetime import date first = date(2028, 7, 16) # datetime.date(2028, 7, 16) last = date(2028, 7, 19) # datetime.date(2028, 7, 19) days = (last - first).days + 1 # 4 print...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0052001
$1,000 is invested at 5% compounded yearly. What is it worth after 2 years? Set it up in Python: ```python principal = 1000 rate = 5 / 100 # 0.05 years = 2 value = principal * (1 + rate) ** years # 1102.5 print(f"{value:.2f}") ``` # out: 1102.50 It is worth $1,102.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "1102.50", "printed": "1102.50", "notation": null}
nlprog_det-setting-0052002
Rafael's scores were 58, 72 and 80. What is the average score? The program: scores = [58, 72, 80] average = sum(scores) // len(scores) # 70 print(average) # execution result: 70 The average score is 70.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "70", "printed": "70", "notation": null}
nlprog_det-setting-0052003
<|start|><|user|> Signe and Ulla share $1,464 in the ratio 1:3. How much does Signe get?<|eot|> <|assistant|> ```python total = 1464 parts_a = 1 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 366 print(share_a) ``` Result: 366 Signe's share is $366.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Signe and Ulla share $1,464 in the ratio 1:3. How much does Signe get?" }, { "role": "assistant", "content": "```python\ntotal = 1464\nparts_a = 1\nparts_b = 3\nshare_a = total * parts_a // (parts_a + parts_b) # 366\nprint(share_a)\n```\nResult:\n366\n\nSigne's sha...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "366", "printed": "366", "notation": null}
nlprog_det-setting-0052004
On which weekday does December 24, 2024 fall? Set it up in Python: ```python from datetime import date hearing = date(2024, 12, 24) print(hearing.strftime("%A")) ``` It prints Tuesday, as expected. December 24, 2024 is a Tuesday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "Tuesday", "printed": "Tuesday", "notation": null}
nlprog_det-setting-0052005
<|start|><|system|> Available functions (JSON Schema): [{"name": "eval_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> Bi...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"eval_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source cod...
nlprog_det
setting
original
null
deterministic
[]
[]
237
{"gold": "500.00", "printed": "500.00", "notation": null}
nlprog_det-setting-0052006
At 1% a month (simple), what interest builds on $12,000 over 2 months? ```python balance = 12000 monthly_rate = 1 / 100 # 0.01 months = 2 interest = balance * monthly_rate * months # 240.0 print(f"{interest:.2f}") ``` # out: 240.00 The interest is $240.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "240.00", "printed": "240.00", "notation": null}
nlprog_det-setting-0052007
Buying 4 ink cartridges at $23 each, 5 scissors at $17 each, 5 rulers at $8 each, 3 scissors at $9 each, someone hands over $250. What change comes back? Python version: ```python items = [(4, 23), (5, 17), (5, 8), (3, 9)] total = sum(q * p for q, p in items) # 244 paid = 250 change = paid - total # 6 print(change) ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0052008
Goods bought on April 21, 2025 carry a 18-month warranty. When does it expire? Written as code: ```python from datetime import date start = date(2025, 4, 21) months = 18 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Execu...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "2026-10-21", "printed": "2026-10-21", "notation": null}
nlprog_det-setting-0052009
<|start|><|user|> At a 8% tax rate, what is the tax on $788.60?<|eot|> <|assistant|> ```python price = 788.6 tax_rate = 8 / 100 # 0.08 tax = price * tax_rate # 63.088 print(f"{tax:.2f}") ``` (Printed: 63.09) The tax is $63.09.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At a 8% tax rate, what is the tax on $788.60?" }, { "role": "assistant", "content": "```python\nprice = 788.6\ntax_rate = 8 / 100 # 0.08\ntax = price * tax_rate # 63.088\nprint(f\"{tax:.2f}\")\n```\n(Printed: 63.09)\n\nThe tax is $63.09." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "63.09", "printed": "63.09", "notation": null}
nlprog_det-setting-0052011
Rent of $900 goes up 5%. What is the new rent? Python code: ```python rent = 900 increase = 5 / 100 # 0.05 new_rent = rent * (1 + increase) # 945.0 print(f"{new_rent:.2f}") ``` Running it prints 945.00. It rises to $945.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "945.00", "printed": "945.00", "notation": null}
nlprog_det-setting-0052012
A 8-day trip pays $59 a day for meals and $140 a night for lodging (7 nights). What is the total allowance? That comes to $1,452.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "1452", "printed": "1452", "notation": null}
nlprog_det-setting-0052013
<|start|><|user|> Parking is $2 per hour with a daily maximum of $15. What do 10 hours cost?<|eot|> <|assistant|> ```python rate = 2 hours = 10 daily_max = 15 cost = min(rate * hours, daily_max) # 15 print(cost) ``` # run result: 15 Parking costs $15.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Parking is $2 per hour with a daily maximum of $15. What do 10 hours cost?" }, { "role": "assistant", "content": "```python\nrate = 2\nhours = 10\ndaily_max = 15\ncost = min(rate * hours, daily_max) # 15\nprint(cost)\n```\n# run result: 15\n\nParking costs $15." ...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0052014
<|start|><|system|> You have access to these functions: [{"name": "math_engine", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "get_weather", "description": "Ge...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"math_engine\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [...
nlprog_det
setting
original
null
deterministic
[]
[]
292
{"gold": "4800.60", "printed": "4800.60", "notation": null}
nlprog_det-setting-0052015
<|start|><|system|> You can call tools. Available tools: {"name": "py_exec", "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": "convert_unit...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"py_exec\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"...
nlprog_det
setting
original
null
deterministic
[]
[]
339
{"gold": "-609", "printed": "-609", "notation": null}
nlprog_det-setting-0052016
At 30 miles per hour, how many minutes does a 30-mile trip take? Translated to Python: ```python distance = 30 speed = 30 minutes = distance / speed * 60 # 60.0 print(round(minutes)) ``` It prints 60. 60 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0052017
A 60-day notice period begins on June 22, 2022. On what date does it end? Computing it: ```python from datetime import date, timedelta start = date(2022, 6, 22) end = start + timedelta(days=60) print(end.isoformat()) ``` Shell output — 2022-08-21 It ends on August 21, 2022.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "2022-08-21", "printed": "2022-08-21", "notation": null}
nlprog_det-setting-0052018
At $0.65 per mile, what is the reimbursement for 574 miles? Translated to Python: ```python miles = 574 rate = 0.65 reimbursement = miles * rate # 373.1 print(f"{reimbursement:.2f}") ``` Printed: 373.10 The reimbursement is $373.10.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "373.10", "printed": "373.10", "notation": null}
nlprog_det-setting-0052019
A 162-page report must be reviewed in 6 days. How many pages a day is that, evenly? The Python version: ```python pages = 162 days = 6 per_day = pages // days # 27 print(per_day) ``` # program output: 27 That is 27 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0052020
<|start|><|system|> Be brief and correct.<|eot|> <|user|> How much is a $79 daily meal allowance over 7 days?<|eot|> <|assistant|> ```python days = 7 meal_rate = 79 total = days * meal_rate # 553 print(total) ``` When run, it prints: 553 The allowance is $553.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be brief and correct." }, { "role": "user", "content": "How much is a $79 daily meal allowance over 7 days?" }, { "role": "assistant", "content": "```python\ndays = 7\nmeal_rate = 79\ntotal = days * meal_rate # 553\nprint(total)\n```\nWhen run, it pri...
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "553", "printed": "553", "notation": null}
nlprog_det-setting-0052021
Express 384 hours in days and hours. Python: ```python hours = 384 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Executing it gives 16 days and 0 hours. That is 16 days and 0 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "16 days and 0 hours", "printed": "16 days and 0 hours", "notation": null}
nlprog_det-setting-0052022
<|start|><|user|> What day of the week is September 27, 2000?<|eot|> <|assistant|> ```python from datetime import date hearing = date(2000, 9, 27) # datetime.date(2000, 9, 27) print(hearing.strftime("%A")) ``` (Printed: Wednesday) It is a Wednesday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What day of the week is September 27, 2000?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(2000, 9, 27) # datetime.date(2000, 9, 27)\nprint(hearing.strftime(\"%A\"))\n```\n(Printed: Wednesday)\n\nIt is a Wednesday." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "Wednesday", "printed": "Wednesday", "notation": null}
nlprog_det-setting-0052023
<|start|><|user|> At 1.5% a month (simple), what interest builds on $7,500 over 4 months?<|eot|> <|assistant|> The interest is $450.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 1.5% a month (simple), what interest builds on $7,500 over 4 months?" }, { "role": "assistant", "content": "The interest is $450.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "450.00", "printed": "450.00", "notation": null}
nlprog_det-setting-0052024
The firm was founded in 2012. How many years had passed by 2050? Script: ```python start_year = 2012 end_year = 2050 print(end_year - start_year) ``` (stdout: 38) 38 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
71
{"gold": "38", "printed": "38", "notation": null}
nlprog_det-setting-0052025
After an initial $2,000, the remainder of a $12,000 grant is paid in 12 equal parts. What is each part? The Python version: ```python grant = 12000 up_front = 2000 installments = 12 each = (grant - up_front) / installments print(f"{each:.2f}") ``` Output: 833.33 $833.33 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "833.33", "printed": "833.33", "notation": null}
nlprog_det-setting-0052026
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "calculator", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"calculator\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Pyt...
nlprog_det
setting
original
null
deterministic
[]
[]
243
{"gold": "281.88", "printed": "281.88", "notation": null}
nlprog_det-setting-0052027
A count moves from 1,200 to 1,020. By what percent did it change (use a minus sign for a drop)? ```python old = 1200 new = 1020 change = (new - old) / old * 100 print(round(change)) ``` The script prints -15. The change is -15%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "-15", "printed": "-15", "notation": null}
nlprog_det-setting-0052028
<|start|><|system|> You are a precise assistant.<|eot|> <|user|> Each of Tobias's walks burns 350 calories. How many calories over 5 walks?<|eot|> <|assistant|> ```python per_session = 350 sessions = 5 total = per_session * sessions # 1750 print(total) ``` # stdout: 1750 That burns 1750 calories.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a precise assistant." }, { "role": "user", "content": "Each of Tobias's walks burns 350 calories. How many calories over 5 walks?" }, { "role": "assistant", "content": "```python\nper_session = 350\nsessions = 5\ntotal = per_session * sessions ...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "1750", "printed": "1750", "notation": null}
nlprog_det-setting-0052029
A clerk's office charges $75 for each filing. Tomas submits 16 filings. What is the total fee? Here's the code. ```python fee = 75 filings = 16 total = fee * filings # 1200 print(total) ``` The run gives 1200. The total fee is $1,200.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0052030
The rules require 1/3 of 53 members (round up) to be present. How many is that? 18 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0052031
<|start|><|system|> You check calculations for an accounting team.<|eot|> <|user|> How many of 248 votes make 67% (round up)?<|eot|> <|assistant|> ```python import math voters = 248 needed = math.ceil(voters * 67 / 100) # 167 print(needed) ``` Python prints 167. 167 votes are needed.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You check calculations for an accounting team." }, { "role": "user", "content": "How many of 248 votes make 67% (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 248\nneeded = math.ceil(voters * 67 / 100) # 167\nprint...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "167", "printed": "167", "notation": null}
nlprog_det-setting-0052032
A party has 21 days to respond to a motion served on May 18, 2027, with 3 days added because service was by mail. When is the response due? The program: ```python from datetime import date, timedelta served = date(2027, 5, 18) # datetime.date(2027, 5, 18) response_days = 21 mail_days = 3 due = served + timedelta(days...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
180
{"gold": "2027-06-11", "printed": "2027-06-11", "notation": null}
nlprog_det-setting-0052033
A garage charges $4 an hour, never more than $20 a day. How much for 8 hours? Python, step by step: ```python rate = 4 hours = 8 daily_max = 20 cost = min(rate * hours, daily_max) # 20 print(cost) ``` The program prints: 20 Parking costs $20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0052035
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> A 65-mile drive at a steady 65 mph takes how many minutes?<|eot|> <|assistant|> ```python distance = 65 speed = 65 minutes = distance / speed * 60 # 60.0 print(round(minutes)) ``` # stdout: 60 60 minutes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "A 65-mile drive at a steady 65 mph takes how many minutes?" }, { "role": "assistant", "content": "```python\ndistance = 65\nspeed = 65\nminutes = distance / speed * 60 # 60.0\nprint(round(minu...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0052036
<|start|><|user|> Under a 33% contingency agreement, what fee is owed on a $60,000 award?<|eot|> <|assistant|> ```python recovery = 60000 rate = 33 / 100 # 0.33 fee = recovery * rate # 19800.0 print(f"{fee:.2f}") ``` # stdout: 19800.00 The lawyer's fee comes to $19,800.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Under a 33% contingency agreement, what fee is owed on a $60,000 award?" }, { "role": "assistant", "content": "```python\nrecovery = 60000\nrate = 33 / 100 # 0.33\nfee = recovery * rate # 19800.0\nprint(f\"{fee:.2f}\")\n```\n# stdout: 19800.00\n\nThe lawyer's fee ...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "19800.00", "printed": "19800.00", "notation": null}
nlprog_det-setting-0052037
What is -10 degrees Celsius in Fahrenheit? That is 14 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0052038
650 files go into boxes of 40. How many boxes does that take? Program: import math files = 650 per_box = 40 boxes = math.ceil(files / per_box) # 17 print(boxes) Run it and it prints 17. 17 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0052039
A pack of 4 folders sells for $236. What does each cost? Each one costs $59.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
26
{"gold": "59", "printed": "59", "notation": null}
nlprog_det-setting-0052040
<|start|><|user|> Equipment costs $24,000, has a salvage value of $3,000, and a useful life of 5 years. What is the straight-line depreciation per year?<|eot|> <|assistant|> cost = 24000 salvage = 3000 years = 5 per_year = (cost - salvage) / years # 4200.0 print(f"{per_year:.2f}") Running it prints...
chat
[ { "role": "user", "content": "Equipment costs $24,000, has a salvage value of $3,000, and a useful life of 5 years. What is the straight-line depreciation per year?" }, { "role": "assistant", "content": " cost = 24000\n salvage = 3000\n years = 5\n per_year = (cost - salvage) / years...
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "4200.00", "printed": "4200.00", "notation": null}
nlprog_det-setting-0052041
How much sales tax is charged on a $517.37 purchase at 9%? Python version: ```python price = 517.37 tax_rate = 9 / 100 # 0.09 tax = price * tax_rate # 46.5633 print(f"{tax:.2f}") ``` Output = 46.56 $46.56 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "46.56", "printed": "46.56", "notation": null}
nlprog_det-setting-0052043
A claim accrued on April 22, 2021. The limitations period is 5 years. On what date does it expire? Coded up: ```python from datetime import date accrued = date(2021, 4, 22) # datetime.date(2021, 4, 22) years = 5 expires = accrued.replace(year=accrued.year + years) # datetime.date(2026, 4, 22) print(expires.isoformat...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "2026-04-22", "printed": "2026-04-22", "notation": null}
nlprog_det-setting-0052044
The paralegal logged 8 hours at a rate of $225. How much is billed? Translated to Python: ```python hours = 8 rate = 225 bill = hours * rate print(f"{bill:.2f}") ``` Out: 1800.00 That comes to $1,800.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "1800.00", "printed": "1800.00", "notation": null}
nlprog_det-setting-0052045
<|start|><|system|> You can call tools. Available tools: [{"name": "python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> One can of paint c...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require...
nlprog_det
setting
original
null
deterministic
[]
[]
221
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0052046
A customer buys 1 notebooks at $9 each, 6 file boxes at $17 each, 1 mugs at $24 each and pays with $150. How much change is due? Translated to Python: ```python items = [(1, 9), (6, 17), (1, 24)] total = sum(q * p for q, p in items) # 135 paid = 150 change = paid - total # 15 print(change) ``` Out: 15 $15 comes bac...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0052047
The paralegal logged 12 hours at a rate of $350. How much is billed? Here is the program. ```python hours = 12 rate = 350 bill = hours * rate # 4200 print(f"{bill:.2f}") ``` Interpreter output: 4200.00 The bill is $4,200.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "4200.00", "printed": "4200.00", "notation": null}
nlprog_det-setting-0052048
<|start|><|system|> Functions: {"name": "run_python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}} {"name": "translate", "description": "Translate tex...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"run_python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"...
nlprog_det
setting
original
null
deterministic
[]
[]
387
{"gold": "42.68", "printed": "42.68", "notation": null}
nlprog_det-setting-0052049
What is a 25% tip on a $46.34 bill? Python code: ```python bill = 46.34 tip_rate = 25 / 100 # 0.25 tip = bill * tip_rate # 11.585 print(f"{tip:.2f}") ``` Running it prints 11.59, as expected. The tip is $11.59.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "11.59", "printed": "11.59", "notation": null}
nlprog_det-setting-0052050
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> One can of paint covers 250 square feet. How many cans are needed for 396 square feet of wall?<|eot|> <|assistant|> ```python import math area = 396 coverage = 250 cans = math.ceil(area / coverage) # 2 print(cans) ``` Output — 2 2 cans are needed.<|eot...
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "role": "user", "content": "One can of paint covers 250 square feet. How many cans are needed for 396 square feet of wall?" }, { "role": "assistant", "content": "```python\nimport math\narea = 396\ncoverage = 250\nca...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0052051
With $36,000 in costs and $40,000 in revenue, what percent of revenue is profit? Round to one decimal. In Python: ```python revenue = 40000 costs = 36000 profit = revenue - costs # 4000 margin = profit / revenue * 100 # 10.0 print(round(margin, 1)) ``` Running this gives: 10.0 Profit is 10.0% of revenue.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "10.0", "printed": "10.0", "notation": null}
nlprog_det-setting-0052052
A water bill is $15 plus $4.75 per thousand gallons beyond the first 3 thousand. What is the bill for 18 thousand gallons? Computation in Python: ```python base = 15 rate = 4.75 used = 18 free = 3 bill = base + rate * max(0, used - free) # 86.25 print(f"{bill:.2f}") ``` The script prints 86.25, as expected. The bill...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "86.25", "printed": "86.25", "notation": null}