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-0045941
<|start|><|system|> You are a teaching assistant.<|eot|> <|user|> Of a $8,000 budget, $800 has been spent. What percent is that?<|eot|> <|assistant|> ```python budget = 8000 spent = 800 percent = spent / budget * 100 print(round(percent, 1)) ``` Executing it gives 10.0, as expected. 10.0% has been spent.<|eot|> <|end|...
chat
[ { "role": "system", "content": "You are a teaching assistant." }, { "role": "user", "content": "Of a $8,000 budget, $800 has been spent. What percent is that?" }, { "role": "assistant", "content": "```python\nbudget = 8000\nspent = 800\npercent = spent / budget * 100\nprint(round(per...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "10.0", "printed": "10.0", "notation": null}
nlprog_det-setting-0045942
A storeroom has 1903 paper reams. The office uses 9 a day. How many are left after 6 days? 1849 paper reams are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "1849", "printed": "1849", "notation": null}
nlprog_det-setting-0045943
<|start|><|user|> Split $2,560 between Bilal and Chen in the ratio 1 to 3. What is Bilal's share?<|eot|> <|assistant|> ```python total = 2560 parts_a = 1 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 640 print(share_a) ``` (Run result: 640) Bilal gets $640.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Split $2,560 between Bilal and Chen in the ratio 1 to 3. What is Bilal's share?" }, { "role": "assistant", "content": "```python\ntotal = 2560\nparts_a = 1\nparts_b = 3\nshare_a = total * parts_a // (parts_a + parts_b) # 640\nprint(share_a)\n```\n(Run result: 640)\...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "640", "printed": "640", "notation": null}
nlprog_det-setting-0045945
Sami buys 11 boxes of 25 desk lamps each and gives away 2 desk lamps. How many desk lamps are left? Program: boxes = 11 per_box = 25 given_away = 2 left = boxes * per_box - given_away # 273 print(left) The program prints: 273 273 desk lamps are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "273", "printed": "273", "notation": null}
nlprog_det-setting-0045946
A $210 dinner bill gets a 20% tip, and 3 people share the cost equally. What is each person's share? The share is $84.00 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "84.00", "printed": "84.00", "notation": null}
nlprog_det-setting-0045947
What average speed covers 586 miles in 2 hours? ```python distance = 586 hours = 2 speed = distance / hours # 293.0 print(round(speed)) ``` Output — 293 It averages 293 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "293", "printed": "293", "notation": null}
nlprog_det-setting-0045948
Buying 4 file boxes at $5 each, 3 sticky pads at $11 each, 1 binders at $29 each, 5 scissors at $18 each, someone hands over $200. What change comes back? A Python solution: ```python items = [(4, 5), (3, 11), (1, 29), (5, 18)] total = sum(q * p for q, p in items) # 172 paid = 200 change = paid - total # 28 print(ch...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0045951
Kofi earns $22.40 an hour and time and a half for hours over 40. What is the pay for a 41-hour week? Translated to Python: ```python rate = 22.4 hours = 41 regular = 40 * rate # 896.0 overtime = (hours - 40) * rate * 1.5 # 33.599999999999994 pay = regular + overtime # 929.6 print(f"{pay:.2f}") ``` Executed, it show...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "929.60", "printed": "929.60", "notation": null}
nlprog_det-setting-0045952
Kaito earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 54-hour week? In Python: ```python rate = 20.0 hours = 54 regular = 40 * rate # 800.0 overtime = (hours - 40) * rate * 1.5 # 420.0 pay = regular + overtime # 1220.0 print(f"{pay:.2f}") ``` The program outputs: 1220.00 Kaito ear...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "1220.00", "printed": "1220.00", "notation": null}
nlprog_det-setting-0045953
<|start|><|user|> 794 files go into boxes of 25. How many boxes does that take?<|eot|> <|assistant|> ```python import math files = 794 per_box = 25 boxes = math.ceil(files / per_box) print(boxes) ``` Running this gives: 32 It takes 32 boxes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "794 files go into boxes of 25. How many boxes does that take?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 794\nper_box = 25\nboxes = math.ceil(files / per_box)\nprint(boxes)\n```\nRunning this gives: 32\n\nIt takes 32 boxes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0045954
Find the mean of these test scores: 86, 54, 95, 60 and 95. A few lines of Python do it: ```python scores = [86, 54, 95, 60, 95] average = sum(scores) // len(scores) # 78 print(average) ``` This prints: 78 The average score is 78.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "78", "printed": "78", "notation": null}
nlprog_det-setting-0045955
<|start|><|user|> Attendance was 36 out of 40. Express it as a percent.<|eot|> <|assistant|> ```python present = 36 total = 40 percent = present / total * 100 # 90.0 print(round(percent, 1)) ``` Execution prints 90.0, as expected. 90.0% attended.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Attendance was 36 out of 40. Express it as a percent." }, { "role": "assistant", "content": "```python\npresent = 36\ntotal = 40\npercent = present / total * 100 # 90.0\nprint(round(percent, 1))\n```\nExecution prints 90.0, as expected.\n\n90.0% attended." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "90.0", "printed": "90.0", "notation": null}
nlprog_det-setting-0045956
<|start|><|user|> A clerk's office charges $405 for each filing. Rania submits 4 filings. What is the total fee?<|eot|> <|assistant|> fee = 405 filings = 4 total = fee * filings # 1620 print(total) # result: 1620 The total fee is $1,620.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A clerk's office charges $405 for each filing. Rania submits 4 filings. What is the total fee?" }, { "role": "assistant", "content": " fee = 405\n filings = 4\n total = fee * filings # 1620\n print(total)\n# result: 1620\n\nThe total fee is $1,620." }...
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "1620", "printed": "1620", "notation": null}
nlprog_det-setting-0045959
<|start|><|user|> A lease runs for 18 months at $3,250 per month. How much rent is paid over the whole term?<|eot|> <|assistant|> ```python monthly_rent = 3250 months = 18 total = monthly_rent * months # 58500 print(total) ``` stdout: 58500 The rent over the term is $58,500.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lease runs for 18 months at $3,250 per month. How much rent is paid over the whole term?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 3250\nmonths = 18\ntotal = monthly_rent * months # 58500\nprint(total)\n```\nstdout: 58500\n\nThe rent over t...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "58500", "printed": "58500", "notation": null}
nlprog_det-setting-0045960
The paralegal logged 1.5 hours at a rate of $350. How much is billed? The bill is $525.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "525.00", "printed": "525.00", "notation": null}
nlprog_det-setting-0045961
<|start|><|user|> A pack of 4 desk lamps sells for $152. What does each cost?<|eot|> <|assistant|> ```python total = 152 count = 4 per_item = total // count # 38 print(per_item) ``` Running this gives 38. The unit price is $38.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A pack of 4 desk lamps sells for $152. What does each cost?" }, { "role": "assistant", "content": "```python\ntotal = 152\ncount = 4\nper_item = total // count # 38\nprint(per_item)\n```\nRunning this gives 38.\n\nThe unit price is $38." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "38", "printed": "38", "notation": null}
nlprog_det-setting-0045962
After an initial $2,000, the remainder of a $60,000 grant is paid in 6 equal parts. What is each part? Here is a short program for it. ```python grant = 60000 up_front = 2000 installments = 6 each = (grant - up_front) / installments # 9666.666666666666 print(f"{each:.2f}") ``` That prints 9666.67. Each installment i...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "9666.67", "printed": "9666.67", "notation": null}
nlprog_det-setting-0045963
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "py_exec", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> A wate...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"py_exec\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}...
nlprog_det
setting
original
null
deterministic
[]
[]
246
{"gold": "86.50", "printed": "86.50", "notation": null}
nlprog_det-setting-0045964
<|start|><|user|> A $30,000 grant pays $3,000 up front and the rest in 12 equal installments. How large is each installment?<|eot|> <|assistant|> ```python grant = 30000 up_front = 3000 installments = 12 each = (grant - up_front) / installments # 2250.0 print(f"{each:.2f}") ``` Python prints 2250.00, as expected. Eac...
chat
[ { "role": "user", "content": "A $30,000 grant pays $3,000 up front and the rest in 12 equal installments. How large is each installment?" }, { "role": "assistant", "content": "```python\ngrant = 30000\nup_front = 3000\ninstallments = 12\neach = (grant - up_front) / installments # 2250.0\nprint(...
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "2250.00", "printed": "2250.00", "notation": null}
nlprog_det-setting-0045965
<|start|><|user|> What is 40 degrees Celsius in Fahrenheit?<|eot|> <|assistant|> ```python celsius = 40 fahrenheit = celsius * 9 / 5 + 32 # 104.0 print(round(fahrenheit)) ``` Program output: 104 That is 104 °F.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is 40 degrees Celsius in Fahrenheit?" }, { "role": "assistant", "content": "```python\ncelsius = 40\nfahrenheit = celsius * 9 / 5 + 32 # 104.0\nprint(round(fahrenheit))\n```\nProgram output: 104\n\nThat is 104 °F." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "104", "printed": "104", "notation": null}
nlprog_det-setting-0045966
From a $2,500 retainer, 2 hours at $200/hour have been drawn. What remains? The remaining balance is $2,100.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "2100", "printed": "2100", "notation": null}
nlprog_det-setting-0045967
<|start|><|user|> At $24.70 an hour, what does 32 hours of work pay?<|eot|> <|assistant|> ```python rate = 24.7 hours = 32 earnings = rate * hours # 790.4 print(f"{earnings:.2f}") ``` Executed, it shows: 790.40 The pay is $790.40.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $24.70 an hour, what does 32 hours of work pay?" }, { "role": "assistant", "content": "```python\nrate = 24.7\nhours = 32\nearnings = rate * hours # 790.4\nprint(f\"{earnings:.2f}\")\n```\nExecuted, it shows: 790.40\n\nThe pay is $790.40." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "790.40", "printed": "790.40", "notation": null}
nlprog_det-setting-0045968
<|start|><|user|> A clerk's office charges $350 for each filing. Pilar submits 7 filings. What is the total fee?<|eot|> <|assistant|> ```python fee = 350 filings = 7 total = fee * filings # 2450 print(total) ``` Printed = 2450 The total fee is $2,450.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A clerk's office charges $350 for each filing. Pilar submits 7 filings. What is the total fee?" }, { "role": "assistant", "content": "```python\nfee = 350\nfilings = 7\ntotal = fee * filings # 2450\nprint(total)\n```\nPrinted = 2450\n\nThe total fee is $2,450." }...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "2450", "printed": "2450", "notation": null}
nlprog_det-setting-0045969
<|start|><|user|> A backpack costs $45. It is 20% off. What is the sale price?<|eot|> <|assistant|> ```python price = 45 discount = 20 / 100 # 0.2 sale_price = price * (1 - discount) # 36.0 print(f"{sale_price:.2f}") ``` stdout — 36.00 It costs $36.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A backpack costs $45. It is 20% off. What is the sale price?" }, { "role": "assistant", "content": "```python\nprice = 45\ndiscount = 20 / 100 # 0.2\nsale_price = price * (1 - discount) # 36.0\nprint(f\"{sale_price:.2f}\")\n```\nstdout — 36.00\n\nIt costs $36.00."...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "36.00", "printed": "36.00", "notation": null}
nlprog_det-setting-0045970
Fines run at $25 per day up to a maximum of $5,000. How much after 17 days? The fine is $425.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "425", "printed": "425", "notation": null}
nlprog_det-setting-0045971
<|start|><|system|> You have access to these functions: [{"name": "code_runner", "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"]}}]<|eot|> <|user|> C...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"code_runner\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source co...
nlprog_det
setting
original
null
deterministic
[]
[]
230
{"gold": "2018-06-25", "printed": "2018-06-25", "notation": null}
nlprog_det-setting-0045972
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "code_runner", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"code_runner\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\"...
nlprog_det
setting
original
null
deterministic
[]
[]
215
{"gold": "Saturday", "printed": "Saturday", "notation": null}
nlprog_det-setting-0045973
Counting only Monday through Friday, how many business days are there after March 17, 2025 through March 27, 2025? Python, step by step: ```python from datetime import date, timedelta start = date(2025, 3, 17) end = date(2025, 3, 27) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
160
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0045974
One can of paint covers 400 square feet. How many cans are needed for 908 square feet of wall? Written as code: ```python import math area = 908 coverage = 400 cans = math.ceil(area / coverage) # 3 print(cans) ``` Running it prints 3. Buy 3 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0045975
What is the total rent on a 6-month lease at $975 a month? Script: ```python monthly_rent = 975 months = 6 total = monthly_rent * months # 5850 print(total) ``` Shell output: 5850 In total, $5,850 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "5850", "printed": "5850", "notation": null}
nlprog_det-setting-0045977
<|start|><|user|> At $20.24 an hour, what does 12 hours of work pay?<|eot|> <|assistant|> ```python rate = 20.24 hours = 12 earnings = rate * hours # 242.88 print(f"{earnings:.2f}") ``` Out = 242.88 That earns $242.88.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $20.24 an hour, what does 12 hours of work pay?" }, { "role": "assistant", "content": "```python\nrate = 20.24\nhours = 12\nearnings = rate * hours # 242.88\nprint(f\"{earnings:.2f}\")\n```\nOut = 242.88\n\nThat earns $242.88." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "242.88", "printed": "242.88", "notation": null}
nlprog_det-setting-0045978
A service costs $29 a month or $318 a year. How much does the yearly plan save over 12 monthly payments? The annual plan saves $30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0045979
<|start|><|user|> What is 20 degrees Celsius in Fahrenheit?<|eot|> <|assistant|> ```python celsius = 20 fahrenheit = celsius * 9 / 5 + 32 # 68.0 print(round(fahrenheit)) ``` Python prints 68, as expected. It equals 68 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is 20 degrees Celsius in Fahrenheit?" }, { "role": "assistant", "content": "```python\ncelsius = 20\nfahrenheit = celsius * 9 / 5 + 32 # 68.0\nprint(round(fahrenheit))\n```\nPython prints 68, as expected.\n\nIt equals 68 degrees Fahrenheit." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "68", "printed": "68", "notation": null}
nlprog_det-setting-0045980
A meeting starts at 10:20 AM and lasts 50 minutes. When does it end? Translated to Python: ```python start = 10 * 60 + 20 end = start + 50 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Printed result — 11:10 AM It ends at 11:10 AM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "11:10 AM", "printed": "11:10 AM", "notation": null}
nlprog_det-setting-0045981
Zoe drove 297 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement? ```python miles = 297 rate = 0.58 reimbursement = miles * rate # 172.26 print(f"{reimbursement:.2f}") ``` Program output: 172.26 Zoe is owed $172.26.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "172.26", "printed": "172.26", "notation": null}
nlprog_det-setting-0045982
The firm was founded in 1993. How many years had passed by 2031? ```python start_year = 1993 end_year = 2031 print(end_year - start_year) ``` Output = 38 38 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
65
{"gold": "38", "printed": "38", "notation": null}
nlprog_det-setting-0045983
A $60,000 grant pays $0 up front and the rest in 3 equal installments. How large is each installment? Computation in Python: ```python grant = 60000 up_front = 0 installments = 3 each = (grant - up_front) / installments # 20000.0 print(f"{each:.2f}") ``` Out — 20000.00 Each installment is $20,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "20000.00", "printed": "20000.00", "notation": null}
nlprog_det-setting-0045984
<|start|><|user|> A quorum is 2/3 of the 22 members, rounded up. How many members make a quorum?<|eot|> <|assistant|> That is 15 members.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A quorum is 2/3 of the 22 members, rounded up. How many members make a quorum?" }, { "role": "assistant", "content": "That is 15 members." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0045985
<|start|><|user|> An attorney bills 2 hours at $410 per hour. What is the bill?<|eot|> <|assistant|> ```python hours = 2 rate = 410 bill = hours * rate # 820 print(f"{bill:.2f}") ``` When run, it prints: 820.00 That comes to $820.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An attorney bills 2 hours at $410 per hour. What is the bill?" }, { "role": "assistant", "content": "```python\nhours = 2\nrate = 410\nbill = hours * rate # 820\nprint(f\"{bill:.2f}\")\n```\nWhen run, it prints: 820.00\n\nThat comes to $820.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "820.00", "printed": "820.00", "notation": null}
nlprog_det-setting-0045986
One can of paint covers 400 square feet. How many cans are needed for 1294 square feet of wall? Buy 4 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0045987
A $120 dinner bill gets a 20% tip, and 3 people share the cost equally. What is each person's share? The Python version: ```python bill = 120 tip_rate = 20 / 100 # 0.2 people = 3 each = bill * (1 + tip_rate) / people # 48.0 print(f"{each:.2f}") ``` Printed result: 48.00 The share is $48.00 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "48.00", "printed": "48.00", "notation": null}
nlprog_det-setting-0045988
On which weekday does February 14, 2021 fall? We can compute it in Python. from datetime import date hearing = date(2021, 2, 14) # datetime.date(2021, 2, 14) print(hearing.strftime("%A")) Printed: Sunday It is a Sunday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "Sunday", "printed": "Sunday", "notation": null}
nlprog_det-setting-0045990
<|start|><|user|> 4 boxes hold 6 flash drives each. After 5 are handed out, how many are left?<|eot|> <|assistant|> ```python boxes = 4 per_box = 6 given_away = 5 left = boxes * per_box - given_away print(left) ``` On running, it outputs 19. That leaves 19 flash drives.<|eot|> <|end|>
chat
[ { "role": "user", "content": "4 boxes hold 6 flash drives each. After 5 are handed out, how many are left?" }, { "role": "assistant", "content": "```python\nboxes = 4\nper_box = 6\ngiven_away = 5\nleft = boxes * per_box - given_away\nprint(left)\n```\nOn running, it outputs 19.\n\nThat leaves 19...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0045991
A $1,200 loan carries 5% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment? ```python principal = 1200 annual_rate = 5 / 100 # 0.05 months = 12 interest = principal * annual_rate * months / 12 # 60.0 payment = (principal + interest) / months # 1...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "105.00", "printed": "105.00", "notation": null}
nlprog_det-setting-0045992
Cyrus earns a 2% commission on $86,027 of sales. What is the commission? A short script: ```python sales = 86027 rate = 2 / 100 # 0.02 commission = sales * rate # 1720.54 print(f"{commission:.2f}") ``` It prints: 1720.54 Cyrus earns $1,720.54.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "1720.54", "printed": "1720.54", "notation": null}
nlprog_det-setting-0045993
At $0.62 per mile, what is the reimbursement for 96 miles? The reimbursement is $59.52.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "59.52", "printed": "59.52", "notation": null}
nlprog_det-setting-0045994
<|start|><|user|> Buying 6 markers at $23 each, 5 binders at $23 each, someone hands over $300. What change comes back?<|eot|> <|assistant|> ```python items = [(6, 23), (5, 23)] total = sum(q * p for q, p in items) # 253 paid = 300 change = paid - total # 47 print(change) ``` Interpreter output: 47 $47 comes back.<|...
chat
[ { "role": "user", "content": "Buying 6 markers at $23 each, 5 binders at $23 each, someone hands over $300. What change comes back?" }, { "role": "assistant", "content": "```python\nitems = [(6, 23), (5, 23)]\ntotal = sum(q * p for q, p in items) # 253\npaid = 300\nchange = paid - total # 47\n...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "47", "printed": "47", "notation": null}
nlprog_det-setting-0045996
Parking is $3 per hour with a daily maximum of $20. What do 9 hours cost? Python makes this quick: ```python rate = 3 hours = 9 daily_max = 20 cost = min(rate * hours, daily_max) # 20 print(cost) ``` Run it and it prints 20. The charge is $20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0045997
<|start|><|user|> A car travels 220 miles in 2 hours. What is its average speed in miles per hour?<|eot|> <|assistant|> ```python distance = 220 hours = 2 speed = distance / hours # 110.0 print(round(speed)) ``` Execution result: 110 The average speed is 110 mph.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A car travels 220 miles in 2 hours. What is its average speed in miles per hour?" }, { "role": "assistant", "content": "```python\ndistance = 220\nhours = 2\nspeed = distance / hours # 110.0\nprint(round(speed))\n```\nExecution result: 110\n\nThe average speed is 1...
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "110", "printed": "110", "notation": null}
nlprog_det-setting-0045998
Express 97 hours in days and hours. Script: ```python hours = 97 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` The program prints 4 days and 1 hours. That is 4 days and 1 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "4 days and 1 hours", "printed": "4 days and 1 hours", "notation": null}
nlprog_det-setting-0045999
How many meters are in 47.3 kilometers? Python makes this quick: ```python km = 47.3 meters = km * 1000 # 47300.0 print(round(meters)) ``` (stdout: 47300) 47,300 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "47300", "printed": "47300", "notation": null}
nlprog_det-setting-0046000
The paralegal logged 10.5 hours at a rate of $225. How much is billed? That comes to $2,362.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "2362.50", "printed": "2362.50", "notation": null}
nlprog_det-setting-0046001
How many minutes pass from 11:57 AM to 1:19 PM on the same day? Coded up: ```python start = 11 * 60 + 57 # 717 end = 13 * 60 + 19 # 799 print(end - start) ``` # printed result: 82 It is 82 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "82", "printed": "82", "notation": null}
nlprog_det-setting-0046002
<|start|><|user|> Attendance was 21 out of 40. Express it as a percent.<|eot|> <|assistant|> ```python present = 21 total = 40 percent = present / total * 100 # 52.5 print(round(percent, 1)) ``` Output: 52.5 52.5% attended.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Attendance was 21 out of 40. Express it as a percent." }, { "role": "assistant", "content": "```python\npresent = 21\ntotal = 40\npercent = present / total * 100 # 52.5\nprint(round(percent, 1))\n```\nOutput:\n52.5\n\n52.5% attended." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "52.5", "printed": "52.5", "notation": null}
nlprog_det-setting-0046003
Count the days between June 8, 2025 and December 18, 2025. We can compute it in Python. ```python from datetime import date first = date(2025, 6, 8) # datetime.date(2025, 6, 8) second = date(2025, 12, 18) # datetime.date(2025, 12, 18) print((second - first).days) ``` stdout — 193 It is 193 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "193", "printed": "193", "notation": null}
nlprog_det-setting-0046004
How many minutes pass from 7:28 AM to 1:35 PM on the same day? As Python: ```python start = 7 * 60 + 28 # 448 end = 13 * 60 + 35 # 815 print(end - start) ``` Executed, it shows: 367 367 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "367", "printed": "367", "notation": null}
nlprog_det-setting-0046005
<|start|><|system|> Show working only when it helps.<|eot|> <|user|> How many minutes pass from 7:37 AM to 8:05 AM on the same day?<|eot|> <|assistant|> ```python start = 7 * 60 + 37 # 457 end = 8 * 60 + 5 # 485 print(end - start) ``` When run, it prints: 28 It is 28 minutes long.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Show working only when it helps." }, { "role": "user", "content": "How many minutes pass from 7:37 AM to 8:05 AM on the same day?" }, { "role": "assistant", "content": "```python\nstart = 7 * 60 + 37 # 457\nend = 8 * 60 + 5 # 485\nprint(end - start)\...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0046006
How many minutes pass from 10:38 AM to 11:55 AM on the same day? The computation: ```python start = 10 * 60 + 38 # 638 end = 11 * 60 + 55 # 715 print(end - start) ``` # run result: 77 77 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0046007
<|start|><|user|> A storeroom has 1501 cables. The office uses 5 a day. How many are left after 9 days?<|eot|> <|assistant|> ```python stock = 1501 per_day = 5 days = 9 left = stock - per_day * days # 1456 print(left) ``` The program prints 1456. 1456 cables are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A storeroom has 1501 cables. The office uses 5 a day. How many are left after 9 days?" }, { "role": "assistant", "content": "```python\nstock = 1501\nper_day = 5\ndays = 9\nleft = stock - per_day * days # 1456\nprint(left)\n```\nThe program prints 1456.\n\n1456 cab...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "1456", "printed": "1456", "notation": null}
nlprog_det-setting-0046008
A car travels 98 miles in 2 hours. What is its average speed in miles per hour? We write it as a program: ```python distance = 98 hours = 2 speed = distance / hours # 49.0 print(round(speed)) ``` It prints 49, as expected. The average speed is 49 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "49", "printed": "49", "notation": null}
nlprog_det-setting-0046009
<|start|><|system|> You can call tools. Available tools: [{"name": "math_engine", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> Buying 1 rulers ...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"math_engine\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"req...
nlprog_det
setting
original
null
deterministic
[]
[]
254
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0046010
The building opened in 2009. How many years had passed by 2032? We write it as a program: ```python start_year = 2009 end_year = 2032 print(end_year - start_year) ``` It prints 23, as expected. That is 23 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0046011
<|start|><|system|> Tools you may use: [{"name": "math_engine", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> A client paid a $5,000 ...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"math_engine\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [...
nlprog_det
setting
original
null
deterministic
[]
[]
227
{"gold": "3625", "printed": "3625", "notation": null}
nlprog_det-setting-0046012
Counting the first and last day, how many days are there from July 3, 2021 through July 9, 2021? That is 7 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "7", "printed": "7", "notation": null}
nlprog_det-setting-0046013
How many minutes pass from 9:25 AM to 10:31 AM on the same day? Let's compute it with Python. start = 9 * 60 + 25 # 565 end = 10 * 60 + 31 # 631 print(end - start) Running this gives 66. It is 66 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "66", "printed": "66", "notation": null}
nlprog_det-setting-0046014
<|start|><|system|> You have access to these functions: [{"name": "calculator", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "lookup_statute", "descr...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"calculator\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir...
nlprog_det
setting
original
null
deterministic
[]
[]
316
{"gold": "10612.08", "printed": "10612.08", "notation": null}
nlprog_det-setting-0046015
A customer buys 1 lanyards at $11 each, 6 toner kits at $22 each, 2 calendars at $29 each, 5 binders at $24 each and pays with $350. How much change is due? $29 comes back.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
60
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0046016
A count moves from 500 to 450. By what percent did it change (use a minus sign for a drop)? Python code: old = 500 new = 450 change = (new - old) / old * 100 # -10.0 print(round(change)) Output — -10 It changed by -10%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "-10", "printed": "-10", "notation": null}
nlprog_det-setting-0046017
Monthly: $25. Annual: $288. What is saved per year by paying annually? Python version: ```python monthly = 25 yearly = 288 savings = monthly * 12 - yearly # 12 print(savings) ``` (Printed: 12) $12 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0046018
<|start|><|system|> Double-check numbers before answering.<|eot|> <|user|> How many of 91 votes make 75% (round up)?<|eot|> <|assistant|> At least 69 votes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Double-check numbers before answering." }, { "role": "user", "content": "How many of 91 votes make 75% (round up)?" }, { "role": "assistant", "content": "At least 69 votes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "69", "printed": "69", "notation": null}
nlprog_det-setting-0046019
<|start|><|user|> Goods bought on September 17, 2026 carry a 36-month warranty. When does it expire?<|eot|> <|assistant|> from datetime import date start = date(2026, 9, 17) months = 36 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.da...
chat
[ { "role": "user", "content": "Goods bought on September 17, 2026 carry a 36-month warranty. When does it expire?" }, { "role": "assistant", "content": " from datetime import date\n start = date(2026, 9, 17)\n months = 36\n years, month_index = divmod(start.month - 1 + months, 12)\n ...
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "2029-09-17", "printed": "2029-09-17", "notation": null}
nlprog_det-setting-0046020
Nilufar earns a 3% commission on $111,996 of sales. What is the commission? In code: sales = 111996 rate = 3 / 100 # 0.03 commission = sales * rate # 3359.8799999999997 print(f"{commission:.2f}") Printed result — 3359.88 The commission is $3,359.88.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "3359.88", "printed": "3359.88", "notation": null}
nlprog_det-setting-0046021
A 10-day notice period begins on January 3, 2022. On what date does it end? It ends on January 13, 2022.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "2022-01-13", "printed": "2022-01-13", "notation": null}
nlprog_det-setting-0046024
What does $10,000 grow to in 2 years at 3% annual compounding? Python version: ```python principal = 10000 rate = 3 / 100 # 0.03 years = 2 value = principal * (1 + rate) ** years # 10609.0 print(f"{value:.2f}") ``` The interpreter prints: 10609.00 The balance is $10,609.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "10609.00", "printed": "10609.00", "notation": null}
nlprog_det-setting-0046025
A water bill is $20 plus $4.20 per thousand gallons beyond the first 2 thousand. What is the bill for 19 thousand gallons? The bill is $91.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "91.40", "printed": "91.40", "notation": null}
nlprog_det-setting-0046026
<|start|><|user|> A 5% increase is applied to $1,250 monthly rent. What is the new amount?<|eot|> <|assistant|> It rises to $1,312.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 5% increase is applied to $1,250 monthly rent. What is the new amount?" }, { "role": "assistant", "content": "It rises to $1,312.50." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "1312.50", "printed": "1312.50", "notation": null}
nlprog_det-setting-0046027
<|start|><|user|> Papers were served by mail on October 16, 2027. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2027, 10, 16) response_days = 28 mail_days = 3 due = served + timedelta(days=r...
chat
[ { "role": "user", "content": "Papers were served by mail on October 16, 2027. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nserved = date(2027, 10, 16)\nrespons...
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "2027-11-16", "printed": "2027-11-16", "notation": null}
nlprog_det-setting-0046028
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> 280 volunteers are split into 9 equal teams. How many are on each team, and how many are left over?<|eot|> <|assistant|> ```python total = 280 groups = 9 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") `...
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "280 volunteers are split into 9 equal teams. How many are on each team, and how many are left over?" }, { "role": "assistant", "content": "```python\ntotal = 280\ngroups = 9\nper_group...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "31 each, 1 left over", "printed": "31 each, 1 left over", "notation": null}
nlprog_det-setting-0046029
<|start|><|user|> Printing costs 5 cents a page. What does it cost to print 183 copies of a 29-page handout?<|eot|> <|assistant|> Printing costs $265.35.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Printing costs 5 cents a page. What does it cost to print 183 copies of a 29-page handout?" }, { "role": "assistant", "content": "Printing costs $265.35." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "265.35", "printed": "265.35", "notation": null}
nlprog_det-setting-0046030
Find the mean of these test scores: 73, 86, 79 and 98. A Python solution: ```python scores = [73, 86, 79, 98] average = sum(scores) // len(scores) # 84 print(average) ``` Run output: 84 The average score is 84.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "84", "printed": "84", "notation": null}
nlprog_det-setting-0046031
After a 30% fee is taken from a $30,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share? award = 30000 fee = award * 30 / 100 # 9000.0 remaining = award - fee # 21000.0 per_client = remaining / 4 # 5250.0 print(f"{per_client:.2f}") Printed — 5250.00 Each share...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "5250.00", "printed": "5250.00", "notation": null}
nlprog_det-setting-0046032
47 volunteers are split into 6 equal teams. How many are on each team, and how many are left over? 7 each, 5 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "7 each, 5 left over", "printed": "7 each, 5 left over", "notation": null}
nlprog_det-setting-0046033
<|start|><|system|> Give the answer first.<|eot|> <|user|> With 20% off, what does a $250 filing cabinet cost?<|eot|> <|assistant|> price = 250 discount = 20 / 100 # 0.2 sale_price = price * (1 - discount) # 200.0 print(f"{sale_price:.2f}") Executing it gives 200.00, as expected. It costs $200.00.<|e...
chat
[ { "role": "system", "content": "Give the answer first." }, { "role": "user", "content": "With 20% off, what does a $250 filing cabinet cost?" }, { "role": "assistant", "content": " price = 250\n discount = 20 / 100 # 0.2\n sale_price = price * (1 - discount) # 200.0\n p...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "200.00", "printed": "200.00", "notation": null}
nlprog_det-setting-0046034
Prorate $1,200 of monthly rent for 9 days of a 31-day month. Code: ```python rent = 1200 days_in_month = 31 days_occupied = 9 prorated = rent * days_occupied / days_in_month print(f"{prorated:.2f}") ``` Run it and it prints: 348.39 The prorated rent is $348.39.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "348.39", "printed": "348.39", "notation": null}
nlprog_det-setting-0046035
What percentage of $2,000 is $1,800? The Python version: ```python budget = 2000 spent = 1800 percent = spent / budget * 100 print(round(percent, 1)) ``` Printed: 90.0 90.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "90.0", "printed": "90.0", "notation": null}
nlprog_det-setting-0046036
<|start|><|user|> Kemal earns a 8% commission on $35,052 of sales. What is the commission?<|eot|> <|assistant|> The commission is $2,804.16.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Kemal earns a 8% commission on $35,052 of sales. What is the commission?" }, { "role": "assistant", "content": "The commission is $2,804.16." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "2804.16", "printed": "2804.16", "notation": null}
nlprog_det-setting-0046037
A lawyer's fee is 25% of a $12,000 recovery. How large is the fee? In code: ```python recovery = 12000 rate = 25 / 100 # 0.25 fee = recovery * rate # 3000.0 print(f"{fee:.2f}") ``` When run, it prints 3000.00. The fee is $3,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "3000.00", "printed": "3000.00", "notation": null}
nlprog_det-setting-0046038
Rent of $1,250 goes up 3%. What is the new rent? A short script: ```python rent = 1250 increase = 3 / 100 # 0.03 new_rent = rent * (1 + increase) # 1287.5 print(f"{new_rent:.2f}") ``` That prints: 1287.50 The new rent is $1,287.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "1287.50", "printed": "1287.50", "notation": null}
nlprog_det-setting-0046039
<|start|><|system|> You help people work with structured data.<|eot|> <|user|> A lawyer's fee is 30% of a $150,000 recovery. How large is the fee?<|eot|> <|assistant|> ```python recovery = 150000 rate = 30 / 100 # 0.3 fee = recovery * rate # 45000.0 print(f"{fee:.2f}") ``` The code prints 45000.00. The fee is $45,00...
chat
[ { "role": "system", "content": "You help people work with structured data." }, { "role": "user", "content": "A lawyer's fee is 30% of a $150,000 recovery. How large is the fee?" }, { "role": "assistant", "content": "```python\nrecovery = 150000\nrate = 30 / 100 # 0.3\nfee = recovery...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "45000.00", "printed": "45000.00", "notation": null}
nlprog_det-setting-0046040
What is 25 degrees Celsius in Fahrenheit? Let the code do the arithmetic: celsius = 25 fahrenheit = celsius * 9 / 5 + 32 # 77.0 print(round(fahrenheit)) Out = 77 That is 77 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0046041
<|start|><|system|> Show working only when it helps.<|eot|> <|user|> Starting from $20,000, the team spends $2,508, $2,194. What remains?<|eot|> <|assistant|> ```python budget = 20000 expenses = [2508, 2194] left = budget - sum(expenses) # 15298 print(left) ``` Printed: 15298 $15,298 is left.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Show working only when it helps." }, { "role": "user", "content": "Starting from $20,000, the team spends $2,508, $2,194. What remains?" }, { "role": "assistant", "content": "```python\nbudget = 20000\nexpenses = [2508, 2194]\nleft = budget - sum(expen...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "15298", "printed": "15298", "notation": null}
nlprog_det-setting-0046042
11 boxes hold 24 file boxes each. After 2 are handed out, how many are left? Coded up: ```python boxes = 11 per_box = 24 given_away = 2 left = boxes * per_box - given_away # 262 print(left) ``` It outputs: 262 That leaves 262 file boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "262", "printed": "262", "notation": null}
nlprog_det-setting-0046043
Omar earns a 5% commission on $29,006 of sales. What is the commission? Python makes this quick: sales = 29006 rate = 5 / 100 # 0.05 commission = sales * rate # 1450.3000000000002 print(f"{commission:.2f}") It prints 1450.30. Omar earns $1,450.30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "1450.30", "printed": "1450.30", "notation": null}
nlprog_det-setting-0046044
<|start|><|system|> Show working only when it helps.<|eot|> <|user|> Papers were served by mail on March 26, 2025. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date?<|eot|> <|assistant|> from datetime import date, timedelta served = date(2025, 3, 26) # datetime.date(2...
chat
[ { "role": "system", "content": "Show working only when it helps." }, { "role": "user", "content": "Papers were served by mail on March 26, 2025. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date?" }, { "role": "assistant", "content": " fr...
nlprog_det
setting
original
null
deterministic
[]
[]
178
{"gold": "2025-04-19", "printed": "2025-04-19", "notation": null}
nlprog_det-setting-0046046
A settlement of $2,640 is split equally among 4 parties. How much does each party receive? Each share is $660.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "660", "printed": "660", "notation": null}
nlprog_det-setting-0046047
Split $1,520 between Abel and Kofi in the ratio 2 to 3. What is Abel's share? Set it up in Python: total = 1520 parts_a = 2 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 608 print(share_a) Python prints 608, as expected. Abel gets $608.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "608", "printed": "608", "notation": null}
nlprog_det-setting-0046048
How many units at $15 each (variable cost $9) cover $4,000 of fixed costs? Python: ```python import math fixed = 4000 price = 15 variable = 9 units = math.ceil(fixed / (price - variable)) print(units) ``` stdout = 667 667 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "667", "printed": "667", "notation": null}
nlprog_det-setting-0046049
<|start|><|user|> Wanjiru lends $12,000 at 8% simple interest per year for 3 years. How much interest is earned?<|eot|> <|assistant|> ```python principal = 12000 rate = 8 / 100 # 0.08 years = 3 interest = principal * rate * years # 2880.0 print(f"{interest:.2f}") ``` Printed = 2880.00 It earns $2,880.00.<|eot|> <|en...
chat
[ { "role": "user", "content": "Wanjiru lends $12,000 at 8% simple interest per year for 3 years. How much interest is earned?" }, { "role": "assistant", "content": "```python\nprincipal = 12000\nrate = 8 / 100 # 0.08\nyears = 3\ninterest = principal * rate * years # 2880.0\nprint(f\"{interest:....
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "2880.00", "printed": "2880.00", "notation": null}
nlprog_det-setting-0046050
<|start|><|user|> A storeroom has 283 cables. The office uses 31 a day. How many are left after 6 days?<|eot|> <|assistant|> ```python stock = 283 per_day = 31 days = 6 left = stock - per_day * days # 97 print(left) ``` Out — 97 97 cables are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A storeroom has 283 cables. The office uses 31 a day. How many are left after 6 days?" }, { "role": "assistant", "content": "```python\nstock = 283\nper_day = 31\ndays = 6\nleft = stock - per_day * days # 97\nprint(left)\n```\nOut — 97\n\n97 cables are left." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "97", "printed": "97", "notation": null}
nlprog_det-setting-0046051
With 30% off, what does a $90 desk lamp cost? Here is a short program for it. ```python price = 90 discount = 30 / 100 # 0.3 sale_price = price * (1 - discount) # 62.99999999999999 print(f"{sale_price:.2f}") ``` The run gives: 63.00 The sale price is $63.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "63.00", "printed": "63.00", "notation": null}