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-0078925
How many 2-foot square tiles cover a 16 ft by 5 ft floor (round up)? The Python version: ```python import math length = 16 width = 5 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 20 print(tiles) ``` Printed: 20 20 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0078926
<|start|><|user|> To read 288 pages in 6 days, how many pages per day are needed?<|eot|> <|assistant|> pages = 288 days = 6 per_day = pages // days # 48 print(per_day) It outputs: 48 That is 48 pages per day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "To read 288 pages in 6 days, how many pages per day are needed?" }, { "role": "assistant", "content": " pages = 288\n days = 6\n per_day = pages // days # 48\n print(per_day)\nIt outputs: 48\n\nThat is 48 pages per day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
69
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0078927
<|start|><|user|> Zoe drove 211 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement?<|eot|> <|assistant|> ```python miles = 211 rate = 0.58 reimbursement = miles * rate # 122.38 print(f"{reimbursement:.2f}") ``` Execution result — 122.38 The reimbursement is $122.38.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Zoe drove 211 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement?" }, { "role": "assistant", "content": "```python\nmiles = 211\nrate = 0.58\nreimbursement = miles * rate # 122.38\nprint(f\"{reimbursement:.2f}\")\n```\nExecution...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "122.38", "printed": "122.38", "notation": null}
nlprog_det-setting-0078928
A hall has 24 rows of 24 seats, and 26 seats are empty. How many people are seated? Python version: ```python rows = 24 per_row = 24 empty = 26 seated = rows * per_row - empty print(seated) ``` Running it prints 550, as expected. 550 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "550", "printed": "550", "notation": null}
nlprog_det-setting-0078930
<|start|><|system|> Answer the user's question directly.<|eot|> <|user|> Tariq has 3 documents to file, and each filing costs $125. How much are the filing fees in total?<|eot|> <|assistant|> ```python fee = 125 filings = 3 total = fee * filings # 375 print(total) ``` (Output: 375) The total fee is $375.<|eot|> <|end...
chat
[ { "role": "system", "content": "Answer the user's question directly." }, { "role": "user", "content": "Tariq has 3 documents to file, and each filing costs $125. How much are the filing fees in total?" }, { "role": "assistant", "content": "```python\nfee = 125\nfilings = 3\ntotal = f...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "375", "printed": "375", "notation": null}
nlprog_det-setting-0078931
<|start|><|user|> A 5-day trip pays $74 a day for meals and $140 a night for lodging (4 nights). What is the total allowance?<|eot|> <|assistant|> That comes to $930.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 5-day trip pays $74 a day for meals and $140 a night for lodging (4 nights). What is the total allowance?" }, { "role": "assistant", "content": "That comes to $930." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
51
{"gold": "930", "printed": "930", "notation": null}
nlprog_det-setting-0078933
A 18-month warranty starts on March 13, 2027. On what date does it end? The Python version: ```python from datetime import date start = date(2027, 3, 13) months = 18 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` # printed...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "2028-09-13", "printed": "2028-09-13", "notation": null}
nlprog_det-setting-0078934
<|start|><|user|> Printing costs 8 cents a page. What does it cost to print 144 copies of a 56-page handout?<|eot|> <|assistant|> ```python pages = 56 copies = 144 cost_per_page = 0.08 cost = pages * copies * cost_per_page # 645.12 print(f"{cost:.2f}") ``` When run, it prints: 645.12 The job costs $645.12.<|eot|> <|e...
chat
[ { "role": "user", "content": "Printing costs 8 cents a page. What does it cost to print 144 copies of a 56-page handout?" }, { "role": "assistant", "content": "```python\npages = 56\ncopies = 144\ncost_per_page = 0.08\ncost = pages * copies * cost_per_page # 645.12\nprint(f\"{cost:.2f}\")\n```\...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "645.12", "printed": "645.12", "notation": null}
nlprog_det-setting-0078935
<|start|><|user|> Scale 150 g of sugar from 4 servings to 6 servings.<|eot|> <|assistant|> ```python grams = 150 serves = 4 needed_for = 6 scaled = grams * needed_for // serves # 225 print(scaled) ``` stdout — 225 225 grams of sugar are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Scale 150 g of sugar from 4 servings to 6 servings." }, { "role": "assistant", "content": "```python\ngrams = 150\nserves = 4\nneeded_for = 6\nscaled = grams * needed_for // serves # 225\nprint(scaled)\n```\nstdout — 225\n\n225 grams of sugar are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "225", "printed": "225", "notation": null}
nlprog_det-setting-0078936
What is the total rent on a 36-month lease at $3,250 a month? The rent over the term is $117,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "117000", "printed": "117000", "notation": null}
nlprog_det-setting-0078937
Starting from $5,000, the team spends $1,577, $2,516. What remains? A short script: ```python budget = 5000 expenses = [1577, 2516] left = budget - sum(expenses) # 907 print(left) ``` That prints: 907 $907 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "907", "printed": "907", "notation": null}
nlprog_det-setting-0078938
Monthly: $15. Annual: $132. What is saved per year by paying annually? ```python monthly = 15 yearly = 132 savings = monthly * 12 - yearly # 48 print(savings) ``` Result: 48 The annual plan saves $48.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0078939
<|start|><|user|> A court charges $10 per request plus $0.50 per page after the first 10 pages. What does a 118-page copy cost?<|eot|> <|assistant|> ```python pages = 118 base = 10 per_page = 0.5 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 64.0 print(f"{cost:.2f}") ``` (Execution result: 64.0...
chat
[ { "role": "user", "content": "A court charges $10 per request plus $0.50 per page after the first 10 pages. What does a 118-page copy cost?" }, { "role": "assistant", "content": "```python\npages = 118\nbase = 10\nper_page = 0.5\nfree_pages = 10\ncost = base + max(0, pages - free_pages) * per_pa...
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "64.00", "printed": "64.00", "notation": null}
nlprog_det-setting-0078940
An unpaid balance of $12,000 accrues 2% simple interest per month. How much interest accrues in 3 months? $720.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "720.00", "printed": "720.00", "notation": null}
nlprog_det-setting-0078941
<|start|><|user|> Find the mean of these test scores: 90, 80, 92, 89, 79 and 68.<|eot|> <|assistant|> ```python scores = [90, 80, 92, 89, 79, 68] average = sum(scores) // len(scores) # 83 print(average) ``` # console output: 83 The average score is 83.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Find the mean of these test scores: 90, 80, 92, 89, 79 and 68." }, { "role": "assistant", "content": "```python\nscores = [90, 80, 92, 89, 79, 68]\naverage = sum(scores) // len(scores) # 83\nprint(average)\n```\n# console output: 83\n\nThe average score is 83." }...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "83", "printed": "83", "notation": null}
nlprog_det-setting-0078942
How much sales tax is charged on a $158.00 purchase at 7%? We can compute it in Python. ```python price = 158.0 tax_rate = 7 / 100 tax = price * tax_rate print(f"{tax:.2f}") ``` (Execution result: 11.06) The tax is $11.06.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "11.06", "printed": "11.06", "notation": null}
nlprog_det-setting-0078943
Which is cheaper per unit: 10 for $8.31 (A) or 30 for $25.11 (B)? Program: ```python pack_a = 8.31 / 10 # 0.8310000000000001 pack_b = 25.11 / 30 # 0.837 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` # printed result: A Pack A is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0078944
<|start|><|user|> How many days are there from October 16, 2023 to September 1, 2024?<|eot|> <|assistant|> ```python from datetime import date first = date(2023, 10, 16) # datetime.date(2023, 10, 16) second = date(2024, 9, 1) # datetime.date(2024, 9, 1) print((second - first).days) ``` # printed: 321 There are 321 d...
chat
[ { "role": "user", "content": "How many days are there from October 16, 2023 to September 1, 2024?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2023, 10, 16) # datetime.date(2023, 10, 16)\nsecond = date(2024, 9, 1) # datetime.date(2024, 9, 1)\nprint(...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "321", "printed": "321", "notation": null}
nlprog_det-setting-0078945
<|start|><|user|> Shipping costs $12 plus $1.20 per pound. What does a 12-pound parcel cost to ship?<|eot|> <|assistant|> ```python base = 12 per_pound = 1.2 weight = 12 cost = base + per_pound * weight # 26.4 print(f"{cost:.2f}") ``` The script prints: 26.40 The charge is $26.40.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Shipping costs $12 plus $1.20 per pound. What does a 12-pound parcel cost to ship?" }, { "role": "assistant", "content": "```python\nbase = 12\nper_pound = 1.2\nweight = 12\ncost = base + per_pound * weight # 26.4\nprint(f\"{cost:.2f}\")\n```\nThe script prints: 26...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "26.40", "printed": "26.40", "notation": null}
nlprog_det-setting-0078946
A penalty of $250 a day accrues, capped at $2,500. What is owed after 50 days? Set it up in Python: ```python per_day = 250 days = 50 cap = 2500 fine = min(per_day * days, cap) # 2500 print(fine) ``` Running this gives 2500. The fine is $2,500.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0078947
<|start|><|user|> A 35 lb package ships at $12 base plus $2.00/lb. What is the charge?<|eot|> <|assistant|> ```python base = 12 per_pound = 2.0 weight = 35 cost = base + per_pound * weight # 82.0 print(f"{cost:.2f}") ``` Execution result — 82.00 The charge is $82.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 35 lb package ships at $12 base plus $2.00/lb. What is the charge?" }, { "role": "assistant", "content": "```python\nbase = 12\nper_pound = 2.0\nweight = 35\ncost = base + per_pound * weight # 82.0\nprint(f\"{cost:.2f}\")\n```\nExecution result — 82.00\n\nThe cha...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "82.00", "printed": "82.00", "notation": null}
nlprog_det-setting-0078948
A lawyer's fee is 25% of a $40,000 recovery. How large is the fee? Python version: ```python recovery = 40000 rate = 25 / 100 # 0.25 fee = recovery * rate # 10000.0 print(f"{fee:.2f}") ``` Program output: 10000.00 The lawyer's fee comes to $10,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "10000.00", "printed": "10000.00", "notation": null}
nlprog_det-setting-0078949
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> A court charges $15 per request plus $0.50 per page after the first 20 pages. What does a 101-page copy cost?<|eot|> <|assistant|> ```python pages = 101 base = 15 per_page = 0.5 free_pages = 20 cost = base + max(0, pages - free_pages) * per_pa...
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "A court charges $15 per request plus $0.50 per page after the first 20 pages. What does a 101-page copy cost?" }, { "role": "assistant", "content": "```python\npages = 101\nbase...
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "55.50", "printed": "55.50", "notation": null}
nlprog_det-setting-0078950
<|start|><|user|> From a $2,500 retainer, 9 hours at $275/hour have been drawn. What remains?<|eot|> <|assistant|> ```python retainer = 2500 hours = 9 rate = 275 left = retainer - hours * rate # 25 print(left) ``` When run, it prints: 25 The remaining balance is $25.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From a $2,500 retainer, 9 hours at $275/hour have been drawn. What remains?" }, { "role": "assistant", "content": "```python\nretainer = 2500\nhours = 9\nrate = 275\nleft = retainer - hours * rate # 25\nprint(left)\n```\nWhen run, it prints: 25\n\nThe remaining bal...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0078952
7 walks at 150 calories each burn how many calories in total? Programmatically: ```python per_session = 150 sessions = 7 total = per_session * sessions # 1050 print(total) ``` It outputs 1050. That burns 1050 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "1050", "printed": "1050", "notation": null}
nlprog_det-setting-0078953
Express 207 hours in days and hours. Python version: ```python hours = 207 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Executing it gives: 8 days and 15 hours 207 hours is 8 days and 15 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "8 days and 15 hours", "printed": "8 days and 15 hours", "notation": null}
nlprog_det-setting-0078954
<|start|><|user|> A claim accrued on March 26, 2012. The limitations period is 2 years. On what date does it expire?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2012, 3, 26) # datetime.date(2012, 3, 26) years = 2 expires = accrued.replace(year=accrued.year + years) # datetime.date(2014, 3,...
chat
[ { "role": "user", "content": "A claim accrued on March 26, 2012. The limitations period is 2 years. On what date does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2012, 3, 26) # datetime.date(2012, 3, 26)\nyears = 2\nexpires = accrued.re...
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "2014-03-26", "printed": "2014-03-26", "notation": null}
nlprog_det-setting-0078955
<|start|><|system|> Tool definitions: {"name": "calculator", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}} {"name": "translate", "description": "Transla...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"calculator\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"so...
nlprog_det
setting
original
null
deterministic
[]
[]
283
{"gold": "2.0", "printed": "2.0", "notation": null}
nlprog_det-setting-0078956
Starting with 725 chairs and using 29 per day, how many remain after 3 days? 638 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "638", "printed": "638", "notation": null}
nlprog_det-setting-0078957
<|start|><|user|> Of a $10,000 budget, $1,300 has been spent. What percent is that?<|eot|> <|assistant|> ```python budget = 10000 spent = 1300 percent = spent / budget * 100 # 13.0 print(round(percent, 1)) ``` # printed: 13.0 That is 13.0% of the budget.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Of a $10,000 budget, $1,300 has been spent. What percent is that?" }, { "role": "assistant", "content": "```python\nbudget = 10000\nspent = 1300\npercent = spent / budget * 100 # 13.0\nprint(round(percent, 1))\n```\n# printed: 13.0\n\nThat is 13.0% of the budget." ...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "13.0", "printed": "13.0", "notation": null}
nlprog_det-setting-0078958
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> How much sales tax is charged on a $190.36 purchase at 7%?<|eot|> <|assistant|> The tax is $13.33.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "role": "user", "content": "How much sales tax is charged on a $190.36 purchase at 7%?" }, { "role": "assistant", "content": "The tax is $13.33." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "13.33", "printed": "13.33", "notation": null}
nlprog_det-setting-0078959
What commission does Ivan make on $93,457 in sales at 8%? Python code: ```python sales = 93457 rate = 8 / 100 # 0.08 commission = sales * rate # 7476.56 print(f"{commission:.2f}") ``` Executed, it shows 7476.56. Ivan earns $7,476.56.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "7476.56", "printed": "7476.56", "notation": null}
nlprog_det-setting-0078960
<|start|><|user|> An office budget of $12,000 has expenses of $3,635, $2,867. How much of the budget is left?<|eot|> <|assistant|> ```python budget = 12000 expenses = [3635, 2867] left = budget - sum(expenses) # 5498 print(left) ``` This prints: 5498 The remaining budget is $5,498.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An office budget of $12,000 has expenses of $3,635, $2,867. How much of the budget is left?" }, { "role": "assistant", "content": "```python\nbudget = 12000\nexpenses = [3635, 2867]\nleft = budget - sum(expenses) # 5498\nprint(left)\n```\nThis prints: 5498\n\nThe r...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "5498", "printed": "5498", "notation": null}
nlprog_det-setting-0078961
<|start|><|user|> Of a $10,000 budget, $2,900 has been spent. What percent is that?<|eot|> <|assistant|> ```python budget = 10000 spent = 2900 percent = spent / budget * 100 # 28.999999999999996 print(round(percent, 1)) ``` Output = 29.0 29.0% has been spent.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Of a $10,000 budget, $2,900 has been spent. What percent is that?" }, { "role": "assistant", "content": "```python\nbudget = 10000\nspent = 2900\npercent = spent / budget * 100 # 28.999999999999996\nprint(round(percent, 1))\n```\nOutput = 29.0\n\n29.0% has been spe...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "29.0", "printed": "29.0", "notation": null}
nlprog_det-setting-0078962
A quorum is 1/3 of the 13 members, rounded up. How many members make a quorum? Computation in Python: ```python import math members = 13 quorum = math.ceil(members * 1 / 3) print(quorum) ``` Python prints 5, as expected. That is 5 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0078963
An invoice lists 3 staplers at $4 each, plus 10% sales tax. What is the invoice total? Programmatically: ```python quantity = 3 unit_price = 4 subtotal = quantity * unit_price # 12 total = subtotal * (1 + 10 / 100) # 13.200000000000001 print(f"{total:.2f}") ``` Output of the run: 13.20 The total with tax is $13.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "13.20", "printed": "13.20", "notation": null}
nlprog_det-setting-0078964
<|start|><|user|> Convert 5 h 45 min (the length of a meeting) to minutes.<|eot|> <|assistant|> ```python hours = 5 minutes = 45 total_minutes = hours * 60 + minutes # 345 print(total_minutes) ``` It prints: 345 The meeting lasted 345 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 5 h 45 min (the length of a meeting) to minutes." }, { "role": "assistant", "content": "```python\nhours = 5\nminutes = 45\ntotal_minutes = hours * 60 + minutes # 345\nprint(total_minutes)\n```\nIt prints: 345\n\nThe meeting lasted 345 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "345", "printed": "345", "notation": null}
nlprog_det-setting-0078965
A clerk's office charges $25 for each filing. Uma submits 11 filings. What is the total fee? ```python fee = 25 filings = 11 total = fee * filings # 275 print(total) ``` # printed result: 275 The total fee is $275.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "275", "printed": "275", "notation": null}
nlprog_det-setting-0078966
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> Starting with 1217 file boxes and using 13 per day, how many remain after 13 days?<|eot|> <|assistant|> ```python stock = 1217 per_day = 13 days = 13 left = stock - per_day * days # 1048 print(left) ``` Run output: 1048 1048 remain.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "Starting with 1217 file boxes and using 13 per day, how many remain after 13 days?" }, { "role": "assistant", "content": "```python\nstock = 1217\nper_day = 13\ndays = 13\nleft = stock - per_da...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "1048", "printed": "1048", "notation": null}
nlprog_det-setting-0078967
<|start|><|system|> Show working only when it helps.<|eot|> <|user|> Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 52 hours?<|eot|> <|assistant|> ```python rate = 16.0 hours = 52 regular = 40 * rate # 640.0 overtime = (hours - 40) * rate * 1.5 # 288.0 pay = regular + overtime ...
chat
[ { "role": "system", "content": "Show working only when it helps." }, { "role": "user", "content": "Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 52 hours?" }, { "role": "assistant", "content": "```python\nrate = 16.0\nhours = 52\nregular = 40 ...
nlprog_det
setting
original
null
deterministic
[]
[]
154
{"gold": "928.00", "printed": "928.00", "notation": null}
nlprog_det-setting-0078968
<|start|><|user|> What is the total rent on a 6-month lease at $2,100 a month?<|eot|> <|assistant|> ```python monthly_rent = 2100 months = 6 total = monthly_rent * months # 12600 print(total) ``` Executing it gives 12600. In total, $12,600 is paid.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is the total rent on a 6-month lease at $2,100 a month?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 2100\nmonths = 6\ntotal = monthly_rent * months # 12600\nprint(total)\n```\nExecuting it gives 12600.\n\nIn total, $12,600 is paid." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "12600", "printed": "12600", "notation": null}
nlprog_det-setting-0078969
<|start|><|user|> Revenue is $40,000 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|> <|assistant|> ```python revenue = 40000 costs = 36000 profit = revenue - costs # 4000 margin = profit / revenue * 100 # 10.0 print(round(margin, 1)) ``` Output of the run — 10.0 Profit ...
chat
[ { "role": "user", "content": "Revenue is $40,000 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?" }, { "role": "assistant", "content": "```python\nrevenue = 40000\ncosts = 36000\nprofit = revenue - costs # 4000\nmargin = profit / revenue * 100 # 10.0\npr...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "10.0", "printed": "10.0", "notation": null}
nlprog_det-setting-0078970
A settlement of $84,000 is split equally among 3 parties. How much does each party receive? Python code: ```python settlement = 84000 parties = 3 share = settlement // parties # 28000 print(share) ``` Executed, it shows 28000. Each share is $28,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "28000", "printed": "28000", "notation": null}
nlprog_det-setting-0078971
Revenue is $14,500 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)? The margin is 13.8%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "13.8", "printed": "13.8", "notation": null}
nlprog_det-setting-0078972
<|start|><|user|> After a 25% fee is taken from a $30,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|> <|assistant|> ```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}") `...
chat
[ { "role": "user", "content": "After a 25% fee is taken from a $30,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?" }, { "role": "assistant", "content": "```python\naward = 30000\nfee = award * 25 / 100 # 7500.0\nremaining = award - fee # 22500.0\nper_cli...
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "5625.00", "printed": "5625.00", "notation": null}
nlprog_det-setting-0078973
<|start|><|user|> An unpaid balance of $7,500 accrues 1% simple interest per month. How much interest accrues in 3 months?<|eot|> <|assistant|> ```python balance = 7500 monthly_rate = 1 / 100 # 0.01 months = 3 interest = balance * monthly_rate * months # 225.0 print(f"{interest:.2f}") ``` The interpreter prints 225.0...
chat
[ { "role": "user", "content": "An unpaid balance of $7,500 accrues 1% simple interest per month. How much interest accrues in 3 months?" }, { "role": "assistant", "content": "```python\nbalance = 7500\nmonthly_rate = 1 / 100 # 0.01\nmonths = 3\ninterest = balance * monthly_rate * months # 225.0...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "225.00", "printed": "225.00", "notation": null}
nlprog_det-setting-0078974
A count moves from 1,000 to 1,200. By what percent did it change (use a minus sign for a drop)? old = 1000 new = 1200 change = (new - old) / old * 100 # 20.0 print(round(change)) Output — 20 The change is 20%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0078975
<|start|><|user|> What average speed covers 517 miles in 0.5 hours?<|eot|> <|assistant|> ```python distance = 517 hours = 0.5 speed = distance / hours # 1034.0 print(round(speed)) ``` Running it prints 1034. It averages 1034 miles per hour.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What average speed covers 517 miles in 0.5 hours?" }, { "role": "assistant", "content": "```python\ndistance = 517\nhours = 0.5\nspeed = distance / hours # 1034.0\nprint(round(speed))\n```\nRunning it prints 1034.\n\nIt averages 1034 miles per hour." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "1034", "printed": "1034", "notation": null}
nlprog_det-setting-0078976
<|start|><|user|> Goods bought on December 15, 2024 carry a 36-month warranty. When does it expire?<|eot|> <|assistant|> The warranty ends on December 15, 2027.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Goods bought on December 15, 2024 carry a 36-month warranty. When does it expire?" }, { "role": "assistant", "content": "The warranty ends on December 15, 2027." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "2027-12-15", "printed": "2027-12-15", "notation": null}
nlprog_det-setting-0078977
A $84 dinner bill gets a 15% tip, and 5 people share the cost equally. What is each person's share? ```python bill = 84 tip_rate = 15 / 100 people = 5 each = bill * (1 + tip_rate) / people print(f"{each:.2f}") ``` Printed result — 19.32 The share is $19.32 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "19.32", "printed": "19.32", "notation": null}
nlprog_det-setting-0078978
<|start|><|system|> Tools you may use: [{"name": "python_exec", "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\": \"python_exec\", \"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
[]
[]
281
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0078979
<|start|><|user|> With $4,000 in costs and $6,000 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|> <|assistant|> ```python revenue = 6000 costs = 4000 profit = revenue - costs # 2000 margin = profit / revenue * 100 # 33.33333333333333 print(round(margin, 1)) ``` Printed result: 33.3 The ma...
chat
[ { "role": "user", "content": "With $4,000 in costs and $6,000 in revenue, what percent of revenue is profit? Round to one decimal." }, { "role": "assistant", "content": "```python\nrevenue = 6000\ncosts = 4000\nprofit = revenue - costs # 2000\nmargin = profit / revenue * 100 # 33.3333333333333...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "33.3", "printed": "33.3", "notation": null}
nlprog_det-setting-0078980
<|start|><|system|> You may call the tools below. {"name": "eval_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> <|user|> Tobias ...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"eval_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}...
nlprog_det
setting
original
null
deterministic
[]
[]
242
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0078981
Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 49 hours? Python does the arithmetic: ```python rate = 20.0 hours = 49 regular = 40 * rate # 800.0 overtime = (hours - 40) * rate * 1.5 # 270.0 pay = regular + overtime # 1070.0 print(f"{pay:.2f}") ``` # printed: 1070.00 The wee...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "1070.00", "printed": "1070.00", "notation": null}
nlprog_det-setting-0078982
Revenue is $5,000 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)? In Python: ```python revenue = 5000 costs = 4000 profit = revenue - costs # 1000 margin = profit / revenue * 100 # 20.0 print(round(margin, 1)) ``` Program output — 20.0 Profit is 20.0% of revenue.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "20.0", "printed": "20.0", "notation": null}
nlprog_det-setting-0078984
<|start|><|user|> What is a 22% tip on a $36.07 bill?<|eot|> <|assistant|> Leave $7.94.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is a 22% tip on a $36.07 bill?" }, { "role": "assistant", "content": "Leave $7.94." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "7.94", "printed": "7.94", "notation": null}
nlprog_det-setting-0078985
What is a 18% tip on a $38.48 bill? Program: ```python bill = 38.48 tip_rate = 18 / 100 # 0.18 tip = bill * tip_rate # 6.926399999999999 print(f"{tip:.2f}") ``` Program output — 6.93 The tip is $6.93.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "6.93", "printed": "6.93", "notation": null}
nlprog_det-setting-0078986
<|start|><|system|> Tool definitions: {"name": "run_python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> The rules require 3/5 of 1...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"run_python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"...
nlprog_det
setting
original
null
deterministic
[]
[]
208
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0078987
Parking is $5 per hour with a daily maximum of $20. What do 3 hours cost? Here's the code. ```python rate = 5 hours = 3 daily_max = 20 cost = min(rate * hours, daily_max) # 15 print(cost) ``` Result: 15 Parking costs $15.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0078988
<|start|><|system|> Tools (call with JSON): [{"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": "sandbox_python", "description": "...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\": [\"title\", ...
nlprog_det
setting
original
null
deterministic
[]
[]
322
{"gold": "3.32", "printed": "3.32", "notation": null}
nlprog_det-setting-0078989
A storeroom has 290 markers. The office uses 5 a day. How many are left after 8 days? Here is the program. stock = 290 per_day = 5 days = 8 left = stock - per_day * days print(left) That prints: 250 250 markers are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "250", "printed": "250", "notation": null}
nlprog_det-setting-0078991
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "compute", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}} {"name": "f...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"compute\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python sou...
nlprog_det
setting
original
null
deterministic
[]
[]
372
{"gold": "70600", "printed": "70600", "notation": null}
nlprog_det-setting-0078992
Goods bought on June 27, 2027 carry a 12-month warranty. When does it expire? We can compute it in Python. ```python from datetime import date start = date(2027, 6, 27) months = 12 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
[]
[]
153
{"gold": "2028-06-27", "printed": "2028-06-27", "notation": null}
nlprog_det-setting-0078993
<|start|><|user|> 30 headsets cost $8 apiece. With 5% tax added, what is the total?<|eot|> <|assistant|> ```python quantity = 30 unit_price = 8 subtotal = quantity * unit_price # 240 total = subtotal * (1 + 5 / 100) # 252.0 print(f"{total:.2f}") ``` Run result: 252.00 The invoice total is $252.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "30 headsets cost $8 apiece. With 5% tax added, what is the total?" }, { "role": "assistant", "content": "```python\nquantity = 30\nunit_price = 8\nsubtotal = quantity * unit_price # 240\ntotal = subtotal * (1 + 5 / 100) # 252.0\nprint(f\"{total:.2f}\")\n```\nRun r...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "252.00", "printed": "252.00", "notation": null}
nlprog_det-setting-0078994
<|start|><|user|> A pack of 8 headsets sells for $32. What does each cost?<|eot|> <|assistant|> ```python total = 32 count = 8 per_item = total // count # 4 print(per_item) ``` Python prints: 4 The unit price is $4.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A pack of 8 headsets sells for $32. What does each cost?" }, { "role": "assistant", "content": "```python\ntotal = 32\ncount = 8\nper_item = total // count # 4\nprint(per_item)\n```\nPython prints: 4\n\nThe unit price is $4." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0078995
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> Buying 4 flash drives at $8 each, 6 envelopes at $22 each, 5 water bottles at $9 each, someone hands over $250. What change comes back?<|eot|> <|assistant|> ```python items = [(4, 8), (6, 22), (5, 9)] total = sum(q * p for q, p in items) # 209 paid = 2...
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "role": "user", "content": "Buying 4 flash drives at $8 each, 6 envelopes at $22 each, 5 water bottles at $9 each, someone hands over $250. What change comes back?" }, { "role": "assistant", "content": "```python\ni...
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "41", "printed": "41", "notation": null}
nlprog_det-setting-0078996
<|start|><|user|> With 30% off, what does a $300 chair cost?<|eot|> <|assistant|> ```python price = 300 discount = 30 / 100 # 0.3 sale_price = price * (1 - discount) # 210.0 print(f"{sale_price:.2f}") ``` Interpreter output: 210.00 It costs $210.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 30% off, what does a $300 chair cost?" }, { "role": "assistant", "content": "```python\nprice = 300\ndiscount = 30 / 100 # 0.3\nsale_price = price * (1 - discount) # 210.0\nprint(f\"{sale_price:.2f}\")\n```\nInterpreter output: 210.00\n\nIt costs $210.00." ...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "210.00", "printed": "210.00", "notation": null}
nlprog_det-setting-0078997
At $31.02 an hour, what does 36 hours of work pay? The pay is $1,116.72.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "1116.72", "printed": "1116.72", "notation": null}
nlprog_det-setting-0078998
<|start|><|user|> Starting from $25,000, the team spends $1,719, $466. What remains?<|eot|> <|assistant|> ```python budget = 25000 expenses = [1719, 466] left = budget - sum(expenses) # 22815 print(left) ``` Executed, it shows 22815. $22,815 is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting from $25,000, the team spends $1,719, $466. What remains?" }, { "role": "assistant", "content": "```python\nbudget = 25000\nexpenses = [1719, 466]\nleft = budget - sum(expenses) # 22815\nprint(left)\n```\nExecuted, it shows 22815.\n\n$22,815 is left." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "22815", "printed": "22815", "notation": null}
nlprog_det-setting-0078999
Convert 5,469 CHF to USD at 1 CHF = 1.08 USD. ```python amount = 5469 rate = 1.08 converted = amount * rate # 5906.52 print(f"{converted:.2f}") ``` Shell output — 5906.52 It converts to 5,906.52 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "5906.52", "printed": "5906.52", "notation": null}
nlprog_det-setting-0079000
If a 75-minute shift begins at 8:45 AM, what time does it finish? Translated to Python: ```python start = 8 * 60 + 45 end = start + 75 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` (Output: 10:00 AM) The shift finishes at 10:00 AM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "10:00 AM", "printed": "10:00 AM", "notation": null}
nlprog_det-setting-0079001
What is -15 degrees Celsius in Fahrenheit? Here is the program. ```python celsius = -15 fahrenheit = celsius * 9 / 5 + 32 # 5.0 print(round(fahrenheit)) ``` The program prints 5. It equals 5 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0079002
<|start|><|user|> Fixed costs are $1,200. Each unit sells for $25 and costs $21 to make. How many units must be sold to break even?<|eot|> <|assistant|> Break-even is 300 units.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Fixed costs are $1,200. Each unit sells for $25 and costs $21 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "Break-even is 300 units." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
50
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0079003
From 2014 to 2051, how many years is that? Let's compute it with Python. ```python start_year = 2014 end_year = 2051 print(end_year - start_year) ``` Out: 37 That is 37 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "37", "printed": "37", "notation": null}
nlprog_det-setting-0079004
A trial runs from November 24, 2025 to December 8, 2025, counting both days. How many calendar days is that? Here is the program. from datetime import date first = date(2025, 11, 24) # datetime.date(2025, 11, 24) last = date(2025, 12, 8) # datetime.date(2025, 12, 8) days = (last - first).days + 1 # ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0079006
A library charges $0.25 per book per day late. What is the fine for 2 books that are 30 days late? Script: ```python per_day = 0.25 days_late = 30 books = 2 fine = per_day * days_late * books # 15.0 print(f"{fine:.2f}") ``` (Output: 15.00) $15.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "15.00", "printed": "15.00", "notation": null}
nlprog_det-setting-0079007
Of a $5,000 budget, $800 has been spent. What percent is that? 16.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "16.0", "printed": "16.0", "notation": null}
nlprog_det-setting-0079008
<|start|><|user|> Counting only Monday through Friday, how many business days are there after May 16, 2028 through June 13, 2028?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2028, 5, 16) end = date(2028, 6, 13) count = 0 for k in range(1, (end - start).days + 1): if (start + tim...
chat
[ { "role": "user", "content": "Counting only Monday through Friday, how many business days are there after May 16, 2028 through June 13, 2028?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2028, 5, 16)\nend = date(2028, 6, 13)\ncount = 0\nfor...
nlprog_det
setting
original
null
deterministic
[]
[]
159
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0079009
<|start|><|user|> What is the total rent on a 24-month lease at $1,475 a month?<|eot|> <|assistant|> ```python monthly_rent = 1475 months = 24 total = monthly_rent * months # 35400 print(total) ``` Out: 35400 The rent over the term is $35,400.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is the total rent on a 24-month lease at $1,475 a month?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 1475\nmonths = 24\ntotal = monthly_rent * months # 35400\nprint(total)\n```\nOut: 35400\n\nThe rent over the term is $35,400." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "35400", "printed": "35400", "notation": null}
nlprog_det-setting-0079010
A lawyer's fee is 33% of a $60,000 recovery. How large is the fee? Translated to Python: ```python recovery = 60000 rate = 33 / 100 fee = recovery * rate print(f"{fee:.2f}") ``` It prints 19800.00. The lawyer's fee comes to $19,800.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "19800.00", "printed": "19800.00", "notation": null}
nlprog_det-setting-0079011
With 10% off, what does a $40 filing cabinet cost? A Python solution: ```python price = 40 discount = 10 / 100 # 0.1 sale_price = price * (1 - discount) # 36.0 print(f"{sale_price:.2f}") ``` Run it and it prints 36.00. The sale price is $36.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "36.00", "printed": "36.00", "notation": null}
nlprog_det-setting-0079012
<|start|><|user|> Equipment costs $24,000, has a salvage value of $6,000, and a useful life of 6 years. What is the straight-line depreciation per year?<|eot|> <|assistant|> $3,000.00 a year.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Equipment costs $24,000, has a salvage value of $6,000, and a useful life of 6 years. What is the straight-line depreciation per year?" }, { "role": "assistant", "content": "$3,000.00 a year." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
55
{"gold": "3000.00", "printed": "3000.00", "notation": null}
nlprog_det-setting-0079013
Shipping costs $5 plus $1.50 per pound. What does a 30-pound parcel cost to ship? In code: ```python base = 5 per_pound = 1.5 weight = 30 cost = base + per_pound * weight print(f"{cost:.2f}") ``` Result: 50.00 The charge is $50.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "50.00", "printed": "50.00", "notation": null}
nlprog_det-setting-0079014
Someone born September 7, 1991 turns how old by November 20, 2020? Give the age in whole years. Python, step by step: ```python from datetime import date born = date(1991, 9, 7) # datetime.date(1991, 9, 7) on = date(2020, 11, 20) # datetime.date(2020, 11, 20) age = on.year - born.year - ((on.month, on.day) < (born.m...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
161
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0079015
Papers were served by mail on May 13, 2018. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date? In Python: ```python from datetime import date, timedelta served = date(2018, 5, 13) # datetime.date(2018, 5, 13) response_days = 21 mail_days = 3 due = served + timedelta(days=res...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
176
{"gold": "2018-06-06", "printed": "2018-06-06", "notation": null}
nlprog_det-setting-0079016
A count moves from 500 to 550. By what percent did it change (use a minus sign for a drop)? We can compute it in Python. ```python old = 500 new = 550 change = (new - old) / old * 100 # 10.0 print(round(change)) ``` Run output: 10 The change is 10%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0079017
<|start|><|system|> You can call tools. Available tools: {"name": "calculator", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> 5 claimants shar...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"calculator\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requ...
nlprog_det
setting
original
null
deterministic
[]
[]
200
{"gold": "528", "printed": "528", "notation": null}
nlprog_det-setting-0079018
<|start|><|user|> The landlord deducts $150, $150 and $60 from a $2,000 deposit. What is returned to the tenant?<|eot|> <|assistant|> ```python deposit = 2000 deductions = [150, 150, 60] refund = deposit - sum(deductions) # 1640 print(refund) ``` Shell output — 1640 The refund is $1,640.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The landlord deducts $150, $150 and $60 from a $2,000 deposit. What is returned to the tenant?" }, { "role": "assistant", "content": "```python\ndeposit = 2000\ndeductions = [150, 150, 60]\nrefund = deposit - sum(deductions) # 1640\nprint(refund)\n```\nShell output...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "1640", "printed": "1640", "notation": null}
nlprog_det-setting-0079019
A car travels 194 miles in 2 hours. What is its average speed in miles per hour? We can compute it in Python. ```python distance = 194 hours = 2 speed = distance / hours # 97.0 print(round(speed)) ``` It prints 97, as expected. The average speed is 97 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "97", "printed": "97", "notation": null}
nlprog_det-setting-0079020
<|start|><|user|> 8 claimants share a $7,344 settlement equally. What is each share?<|eot|> <|assistant|> ```python settlement = 7344 parties = 8 share = settlement // parties # 918 print(share) ``` Run output: 918 Each party receives $918.<|eot|> <|end|>
chat
[ { "role": "user", "content": "8 claimants share a $7,344 settlement equally. What is each share?" }, { "role": "assistant", "content": "```python\nsettlement = 7344\nparties = 8\nshare = settlement // parties # 918\nprint(share)\n```\nRun output: 918\n\nEach party receives $918." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "918", "printed": "918", "notation": null}
nlprog_det-setting-0079021
<|start|><|system|> Functions: {"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}} {"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "pro...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}\n{\"name\": \"convert_units\", \"description\": \"Convert a quan...
nlprog_det
setting
original
null
deterministic
[]
[]
405
{"gold": "80.00", "printed": "80.00", "notation": null}
nlprog_det-setting-0079023
<|start|><|user|> A 26 lb package ships at $10 base plus $1.20/lb. What is the charge?<|eot|> <|assistant|> ```python base = 10 per_pound = 1.2 weight = 26 cost = base + per_pound * weight # 41.2 print(f"{cost:.2f}") ``` Printed = 41.20 The charge is $41.20.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 26 lb package ships at $10 base plus $1.20/lb. What is the charge?" }, { "role": "assistant", "content": "```python\nbase = 10\nper_pound = 1.2\nweight = 26\ncost = base + per_pound * weight # 41.2\nprint(f\"{cost:.2f}\")\n```\nPrinted = 41.20\n\nThe charge is $4...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "41.20", "printed": "41.20", "notation": null}
nlprog_det-setting-0079025
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> Convert 26.5 km to meters.<|eot|> <|assistant|> ```python km = 26.5 meters = km * 1000 # 26500.0 print(round(meters)) ``` The program prints 26500, as expected. 26,500 m.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "Convert 26.5 km to meters." }, { "role": "assistant", "content": "```python\nkm = 26.5\nmeters = km * 1000 # 26500.0\nprint(round(meters))\n```\nThe program prints 26500, as expected.\n\n2...
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "26500", "printed": "26500", "notation": null}
nlprog_det-setting-0079026
<|start|><|system|> Tools you may use: [{"name": "compute", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "fetch_filing", "descriptio...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"compute\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"...
nlprog_det
setting
original
null
deterministic
[]
[]
273
{"gold": "69.0", "printed": "69.0", "notation": null}
nlprog_det-setting-0079027
How many meters are in 24.4 kilometers? Set it up in Python: ```python km = 24.4 meters = km * 1000 # 24400.0 print(round(meters)) ``` Shell output — 24400 24,400 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "24400", "printed": "24400", "notation": null}
nlprog_det-setting-0079029
Meals are $64 per day and lodging $140 per night. What is the allowance for 7 days and 6 nights? Python version: ```python days = 7 meal_rate = 64 lodging_rate = 140 nights = days - 1 # 6 total = days * meal_rate + nights * lodging_rate # 1288 print(total) ``` That prints 1288. That comes to $1,288.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "1288", "printed": "1288", "notation": null}
nlprog_det-setting-0079030
<|start|><|user|> A lawyer's fee is 33% of a $12,000 recovery. How large is the fee?<|eot|> <|assistant|> The lawyer's fee comes to $3,960.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lawyer's fee is 33% of a $12,000 recovery. How large is the fee?" }, { "role": "assistant", "content": "The lawyer's fee comes to $3,960.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "3960.00", "printed": "3960.00", "notation": null}
nlprog_det-setting-0079031
A 648-page report must be reviewed in 18 days. How many pages a day is that, evenly? A short script: ```python pages = 648 days = 18 per_day = pages // days # 36 print(per_day) ``` Out: 36 That is 36 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0079033
A library charges $0.25 per book per day late. What is the fine for 3 books that are 7 days late? $5.25 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "5.25", "printed": "5.25", "notation": null}
nlprog_det-setting-0079034
Convert 1,254 USD to EUR at 1 USD = 0.92 EUR. Python does the arithmetic: ```python amount = 1254 rate = 0.92 converted = amount * rate # 1153.68 print(f"{converted:.2f}") ``` Output — 1153.68 It converts to 1,153.68 EUR.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "1153.68", "printed": "1153.68", "notation": null}