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-0083201
A printer costs $250. It is 40% off. What is the sale price? We write it as a program: ```python price = 250 discount = 40 / 100 # 0.4 sale_price = price * (1 - discount) # 150.0 print(f"{sale_price:.2f}") ``` Running this gives 150.00. The sale price is $150.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "150.00", "printed": "150.00", "notation": null}
nlprog_det-setting-0083202
A party has 21 days to respond to a motion served on December 7, 2021, with 3 days added because service was by mail. When is the response due? Computing it: ```python from datetime import date, timedelta served = date(2021, 12, 7) # datetime.date(2021, 12, 7) response_days = 21 mail_days = 3 due = served + timedelta...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
176
{"gold": "2021-12-31", "printed": "2021-12-31", "notation": null}
nlprog_det-setting-0083203
On which weekday does August 17, 2019 fall? It is a Saturday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
21
{"gold": "Saturday", "printed": "Saturday", "notation": null}
nlprog_det-setting-0083204
Revenue is $13,500 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)? In Python: ```python revenue = 13500 costs = 12500 profit = revenue - costs # 1000 margin = profit / revenue * 100 # 7.4074074074074066 print(round(margin, 1)) ``` (Printed result: 7.4) Profit is 7.4% of reven...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "7.4", "printed": "7.4", "notation": null}
nlprog_det-setting-0083205
<|start|><|user|> How many of 22 votes make 75% (round up)?<|eot|> <|assistant|> ```python import math voters = 22 needed = math.ceil(voters * 75 / 100) # 17 print(needed) ``` Run it and it prints: 17 At least 17 votes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 22 votes make 75% (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 22\nneeded = math.ceil(voters * 75 / 100) # 17\nprint(needed)\n```\nRun it and it prints: 17\n\nAt least 17 votes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0083206
How many days are there from December 5, 2018 to May 22, 2019? Translated to Python: ```python from datetime import date first = date(2018, 12, 5) # datetime.date(2018, 12, 5) second = date(2019, 5, 22) # datetime.date(2019, 5, 22) print((second - first).days) ``` Run output — 168 There are 168 days between the two...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "168", "printed": "168", "notation": null}
nlprog_det-setting-0083207
A lawyer's fee is 30% of a $12,000 recovery. How large is the fee? Program: ```python recovery = 12000 rate = 30 / 100 # 0.3 fee = recovery * rate # 3600.0 print(f"{fee:.2f}") ``` stdout: 3600.00 The lawyer's fee comes to $3,600.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "3600.00", "printed": "3600.00", "notation": null}
nlprog_det-setting-0083209
After an initial $0, the remainder of a $24,000 grant is paid in 3 equal parts. What is each part? The Python version: ```python grant = 24000 up_front = 0 installments = 3 each = (grant - up_front) / installments # 8000.0 print(f"{each:.2f}") ``` The run gives: 8000.00 Each installment is $8,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "8000.00", "printed": "8000.00", "notation": null}
nlprog_det-setting-0083210
At 45 miles per hour, how many minutes does a 45-mile trip take? Computation in Python: ```python distance = 45 speed = 45 minutes = distance / speed * 60 # 60.0 print(round(minutes)) ``` # printed: 60 60 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0083211
<|start|><|user|> What commission does Chen make on $44,469 in sales at 10%?<|eot|> <|assistant|> ```python sales = 44469 rate = 10 / 100 # 0.1 commission = sales * rate # 4446.900000000001 print(f"{commission:.2f}") ``` When run, it prints 4446.90. The commission is $4,446.90.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What commission does Chen make on $44,469 in sales at 10%?" }, { "role": "assistant", "content": "```python\nsales = 44469\nrate = 10 / 100 # 0.1\ncommission = sales * rate # 4446.900000000001\nprint(f\"{commission:.2f}\")\n```\nWhen run, it prints 4446.90.\n\nThe...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "4446.90", "printed": "4446.90", "notation": null}
nlprog_det-setting-0083212
Equipment costs $18,000, has a salvage value of $2,000, and a useful life of 5 years. What is the straight-line depreciation per year? ```python cost = 18000 salvage = 2000 years = 5 per_year = (cost - salvage) / years # 3200.0 print(f"{per_year:.2f}") ``` This prints: 3200.00 Depreciation is $3,200.00 per year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "3200.00", "printed": "3200.00", "notation": null}
nlprog_det-setting-0083213
<|start|><|user|> The meal allowance is $79 per day. What is it for 8 days?<|eot|> <|assistant|> ```python days = 8 meal_rate = 79 total = days * meal_rate # 632 print(total) ``` Executing it gives: 632 The allowance is $632.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The meal allowance is $79 per day. What is it for 8 days?" }, { "role": "assistant", "content": "```python\ndays = 8\nmeal_rate = 79\ntotal = days * meal_rate # 632\nprint(total)\n```\nExecuting it gives: 632\n\nThe allowance is $632." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "632", "printed": "632", "notation": null}
nlprog_det-setting-0083214
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> Goods bought on January 25, 2020 carry a 6-month warranty. When does it expire?<|eot|> <|assistant|> ```python from datetime import date start = date(2020, 1, 25) months = 6 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + yea...
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "Goods bought on January 25, 2020 carry a 6-month warranty. When does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2020, 1, 25)\nmonths = ...
nlprog_det
setting
original
null
deterministic
[]
[]
162
{"gold": "2020-07-25", "printed": "2020-07-25", "notation": null}
nlprog_det-setting-0083215
<|start|><|user|> A bicycle helmet costs $120. It is 40% off. What is the sale price?<|eot|> <|assistant|> It costs $72.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A bicycle helmet costs $120. It is 40% off. What is the sale price?" }, { "role": "assistant", "content": "It costs $72.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "72.00", "printed": "72.00", "notation": null}
nlprog_det-setting-0083216
Starting with 333 flash drives and using 25 per day, how many remain after 13 days? Computation in Python: ```python stock = 333 per_day = 25 days = 13 left = stock - per_day * days # 8 print(left) ``` The script prints 8, as expected. 8 flash drives are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0083218
Monthly rent is $1,800. A tenant moves in with 10 days left in a 30-day month. What is the prorated rent? Computation in Python: rent = 1800 days_in_month = 30 days_occupied = 10 prorated = rent * days_occupied / days_in_month # 600.0 print(f"{prorated:.2f}") Running it prints 600.00. The tenant ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "600.00", "printed": "600.00", "notation": null}
nlprog_det-setting-0083219
<|start|><|user|> A $180 dinner bill gets a 18% tip, and 5 people share the cost equally. What is each person's share?<|eot|> <|assistant|> ```python bill = 180 tip_rate = 18 / 100 # 0.18 people = 5 each = bill * (1 + tip_rate) / people # 42.48 print(f"{each:.2f}") ``` The interpreter prints 42.48. The share is $42....
chat
[ { "role": "user", "content": "A $180 dinner bill gets a 18% tip, and 5 people share the cost equally. What is each person's share?" }, { "role": "assistant", "content": "```python\nbill = 180\ntip_rate = 18 / 100 # 0.18\npeople = 5\neach = bill * (1 + tip_rate) / people # 42.48\nprint(f\"{each...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "42.48", "printed": "42.48", "notation": null}
nlprog_det-setting-0083220
Ivan earns $25.00 an hour and time and a half for hours over 40. What is the pay for a 44-hour week? Python version: ```python rate = 25.0 hours = 44 regular = 40 * rate # 1000.0 overtime = (hours - 40) * rate * 1.5 # 150.0 pay = regular + overtime # 1150.0 print(f"{pay:.2f}") ``` Printed: 1150.00 The weekly pay i...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "1150.00", "printed": "1150.00", "notation": null}
nlprog_det-setting-0083221
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> With $8,000 in costs and $10,000 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|> <|assistant|> ```python revenue = 10000 costs = 8000 profit = revenue - costs # 2000 margin = profit / revenue * 100 # 20.0 print(ro...
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "With $8,000 in costs and $10,000 in revenue, what percent of revenue is profit? Round to one decimal." }, { "role": "assistant", "content": "```python\nrevenue = 10000\ncosts = ...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "20.0", "printed": "20.0", "notation": null}
nlprog_det-setting-0083222
<|start|><|user|> At 65 miles per hour, how many minutes does a 130-mile trip take?<|eot|> <|assistant|> ```python distance = 130 speed = 65 minutes = distance / speed * 60 # 120.0 print(round(minutes)) ``` When run, it prints 120. 120 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 65 miles per hour, how many minutes does a 130-mile trip take?" }, { "role": "assistant", "content": "```python\ndistance = 130\nspeed = 65\nminutes = distance / speed * 60 # 120.0\nprint(round(minutes))\n```\nWhen run, it prints 120.\n\n120 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0083223
Maren drove 178 miles for work. Mileage is reimbursed at 62 cents a mile. How much is the reimbursement? ```python miles = 178 rate = 0.62 reimbursement = miles * rate # 110.36 print(f"{reimbursement:.2f}") ``` Run result: 110.36 The reimbursement is $110.36.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "110.36", "printed": "110.36", "notation": null}
nlprog_det-setting-0083225
A water bill is $20 plus $4.20 per thousand gallons beyond the first 2 thousand. What is the bill for 3 thousand gallons? Let's compute it with Python. ```python base = 20 rate = 4.2 used = 3 free = 2 bill = base + rate * max(0, used - free) # 24.2 print(f"{bill:.2f}") ``` Output of the run: 24.20 The bill is $24.20...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "24.20", "printed": "24.20", "notation": null}
nlprog_det-setting-0083227
What is the total rent on a 24-month lease at $1,200 a month? Python, step by step: ```python monthly_rent = 1200 months = 24 total = monthly_rent * months # 28800 print(total) ``` Printed — 28800 In total, $28,800 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "28800", "printed": "28800", "notation": null}
nlprog_det-setting-0083228
A party has 28 days to respond to a motion served on July 25, 2028, with 3 days added because service was by mail. When is the response due? One way, in code: ```python from datetime import date, timedelta served = date(2028, 7, 25) response_days = 28 mail_days = 3 due = served + timedelta(days=response_days + mail_da...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "2028-08-25", "printed": "2028-08-25", "notation": null}
nlprog_det-setting-0083229
Bilal has 4 documents to file, and each filing costs $45. How much are the filing fees in total? Let's compute it with Python. ```python fee = 45 filings = 4 total = fee * filings # 180 print(total) ``` Printed: 180 $180 in filing fees.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "180", "printed": "180", "notation": null}
nlprog_det-setting-0083230
<|start|><|user|> An attorney bills 10.5 hours at $350 per hour. What is the bill?<|eot|> <|assistant|> ```python hours = 10.5 rate = 350 bill = hours * rate # 3675.0 print(f"{bill:.2f}") ``` Executed, it shows 3675.00. That comes to $3,675.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An attorney bills 10.5 hours at $350 per hour. What is the bill?" }, { "role": "assistant", "content": "```python\nhours = 10.5\nrate = 350\nbill = hours * rate # 3675.0\nprint(f\"{bill:.2f}\")\n```\nExecuted, it shows 3675.00.\n\nThat comes to $3,675.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "3675.00", "printed": "3675.00", "notation": null}
nlprog_det-setting-0083231
A library charges $0.25 per book per day late. What is the fine for 3 books that are 8 days late? We can compute it in Python. ```python per_day = 0.25 days_late = 8 books = 3 fine = per_day * days_late * books # 6.0 print(f"{fine:.2f}") ``` The program prints: 6.00 The fine is $6.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "6.00", "printed": "6.00", "notation": null}
nlprog_det-setting-0083232
From 2001 to 2008, how many years is that? 7 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
16
{"gold": "7", "printed": "7", "notation": null}
nlprog_det-setting-0083233
<|start|><|user|> On which weekday does December 15, 2017 fall?<|eot|> <|assistant|> ```python from datetime import date hearing = date(2017, 12, 15) # datetime.date(2017, 12, 15) print(hearing.strftime("%A")) ``` Running it prints Friday, as expected. It is a Friday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "On which weekday does December 15, 2017 fall?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(2017, 12, 15) # datetime.date(2017, 12, 15)\nprint(hearing.strftime(\"%A\"))\n```\nRunning it prints Friday, as expected.\n\nIt...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "Friday", "printed": "Friday", "notation": null}
nlprog_det-setting-0083234
<|start|><|user|> At a 6% tax rate, what is the tax on $756.51?<|eot|> <|assistant|> ```python price = 756.51 tax_rate = 6 / 100 # 0.06 tax = price * tax_rate # 45.3906 print(f"{tax:.2f}") ``` # out: 45.39 $45.39 in tax.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At a 6% tax rate, what is the tax on $756.51?" }, { "role": "assistant", "content": "```python\nprice = 756.51\ntax_rate = 6 / 100 # 0.06\ntax = price * tax_rate # 45.3906\nprint(f\"{tax:.2f}\")\n```\n# out: 45.39\n\n$45.39 in tax." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "45.39", "printed": "45.39", "notation": null}
nlprog_det-setting-0083235
<|start|><|system|> You are a teaching assistant.<|eot|> <|user|> A $12,000 grant pays $2,000 up front and the rest in 4 equal installments. How large is each installment?<|eot|> <|assistant|> grant = 12000 up_front = 2000 installments = 4 each = (grant - up_front) / installments print(f"{each:.2f}"...
chat
[ { "role": "system", "content": "You are a teaching assistant." }, { "role": "user", "content": "A $12,000 grant pays $2,000 up front and the rest in 4 equal installments. How large is each installment?" }, { "role": "assistant", "content": " grant = 12000\n up_front = 2000\n ...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "2500.00", "printed": "2500.00", "notation": null}
nlprog_det-setting-0083236
<|start|><|user|> Attendance was 78 out of 80. Express it as a percent.<|eot|> <|assistant|> ```python present = 78 total = 80 percent = present / total * 100 # 97.5 print(round(percent, 1)) ``` (Out: 97.5) Attendance was 97.5%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Attendance was 78 out of 80. Express it as a percent." }, { "role": "assistant", "content": "```python\npresent = 78\ntotal = 80\npercent = present / total * 100 # 97.5\nprint(round(percent, 1))\n```\n(Out: 97.5)\n\nAttendance was 97.5%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "97.5", "printed": "97.5", "notation": null}
nlprog_det-setting-0083237
Fines run at $250 per day up to a maximum of $5,000. How much after 34 days? Coded up: ```python per_day = 250 days = 34 cap = 5000 fine = min(per_day * days, cap) # 5000 print(fine) ``` Python prints 5000. The fine is $5,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "5000", "printed": "5000", "notation": null}
nlprog_det-setting-0083238
A service costs $9 a month or $90 a year. How much does the yearly plan save over 12 monthly payments? ```python monthly = 9 yearly = 90 savings = monthly * 12 - yearly # 18 print(savings) ``` Result: 18 The annual plan saves $18.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0083239
<|start|><|user|> If a 3-year limitations period starts on December 7, 2013, when does it end?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2013, 12, 7) # datetime.date(2013, 12, 7) years = 3 expires = accrued.replace(year=accrued.year + years) # datetime.date(2016, 12, 7) print(expires.iso...
chat
[ { "role": "user", "content": "If a 3-year limitations period starts on December 7, 2013, when does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2013, 12, 7) # datetime.date(2013, 12, 7)\nyears = 3\nexpires = accrued.replace(year=accrued.yea...
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "2016-12-07", "printed": "2016-12-07", "notation": null}
nlprog_det-setting-0083240
Ivan drove 548 miles for work. Mileage is reimbursed at 67 cents a mile. How much is the reimbursement? Code: ```python miles = 548 rate = 0.67 reimbursement = miles * rate print(f"{reimbursement:.2f}") ``` Printed = 367.16 Ivan is owed $367.16.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "367.16", "printed": "367.16", "notation": null}
nlprog_det-setting-0083243
At a 4% tax rate, what is the tax on $24.52? We can compute it in Python. ```python price = 24.52 tax_rate = 4 / 100 # 0.04 tax = price * tax_rate # 0.9808 print(f"{tax:.2f}") ``` Console output — 0.98 $0.98 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "0.98", "printed": "0.98", "notation": null}
nlprog_det-setting-0083244
Ines earns a 6% commission on $100,496 of sales. What is the commission? A Python solution: ```python sales = 100496 rate = 6 / 100 # 0.06 commission = sales * rate # 6029.76 print(f"{commission:.2f}") ``` Execution prints 6029.76. Ines earns $6,029.76.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "6029.76", "printed": "6029.76", "notation": null}
nlprog_det-setting-0083245
Kaito has 2 documents to file, and each filing costs $405. How much are the filing fees in total? Python version: ```python fee = 405 filings = 2 total = fee * filings # 810 print(total) ``` On running, it outputs: 810 The filings cost $810 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "810", "printed": "810", "notation": null}
nlprog_det-setting-0083246
One can of paint covers 300 square feet. How many cans are needed for 489 square feet of wall? Python, step by step: import math area = 489 coverage = 300 cans = math.ceil(area / coverage) # 2 print(cans) That prints: 2 2 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0083247
598 files go into boxes of 20. How many boxes does that take? Python does the arithmetic: ```python import math files = 598 per_box = 20 boxes = math.ceil(files / per_box) # 30 print(boxes) ``` It outputs 30. 30 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0083248
A car gets 30 miles per gallon. Gas is $3.45 a gallon. What does fuel cost for a 120-mile trip? The trip uses $13.80 of gas.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "13.80", "printed": "13.80", "notation": null}
nlprog_det-setting-0083249
<|start|><|user|> What does $5,000 grow to in 3 years at 3% annual compounding?<|eot|> <|assistant|> principal = 5000 rate = 3 / 100 years = 3 value = principal * (1 + rate) ** years print(f"{value:.2f}") Printed: 5463.64 The balance is $5,463.64.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What does $5,000 grow to in 3 years at 3% annual compounding?" }, { "role": "assistant", "content": " principal = 5000\n rate = 3 / 100\n years = 3\n value = principal * (1 + rate) ** years\n print(f\"{value:.2f}\")\nPrinted: 5463.64\n\nThe balance is...
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "5463.64", "printed": "5463.64", "notation": null}
nlprog_det-setting-0083250
A $60,000 grant pays $3,000 up front and the rest in 6 equal installments. How large is each installment? $9,500.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "9500.00", "printed": "9500.00", "notation": null}
nlprog_det-setting-0083251
Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 49 hours? ```python rate = 16.0 hours = 49 regular = 40 * rate # 640.0 overtime = (hours - 40) * rate * 1.5 # 216.0 pay = regular + overtime # 856.0 print(f"{pay:.2f}") ``` Console output: 856.00 Hugo earns $856.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "856.00", "printed": "856.00", "notation": null}
nlprog_det-setting-0083252
<|start|><|user|> Revenue is $24,000 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|> <|assistant|> ```python revenue = 24000 costs = 20000 profit = revenue - costs # 4000 margin = profit / revenue * 100 # 16.666666666666664 print(round(margin, 1)) ``` Executed, it shows ...
chat
[ { "role": "user", "content": "Revenue is $24,000 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?" }, { "role": "assistant", "content": "```python\nrevenue = 24000\ncosts = 20000\nprofit = revenue - costs # 4000\nmargin = profit / revenue * 100 # 16.66666...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "16.7", "printed": "16.7", "notation": null}
nlprog_det-setting-0083253
Of a $8,000 budget, $3,000 has been spent. What percent is that? The program: budget = 8000 spent = 3000 percent = spent / budget * 100 # 37.5 print(round(percent, 1)) (Program output: 37.5) 37.5% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "37.5", "printed": "37.5", "notation": null}
nlprog_det-setting-0083254
<|start|><|user|> 2 clients win $72,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> ```python award = 72000 fee = award * 25 / 100 # 18000.0 remaining = award - fee # 54000.0 per_client = remaining / 2 # 27000.0 print(f"{per_client:.2f}") ``` Python print...
chat
[ { "role": "user", "content": "2 clients win $72,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": "```python\naward = 72000\nfee = award * 25 / 100 # 18000.0\nremaining = award - fee # 54000.0\nper_client = remaining ...
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "27000.00", "printed": "27000.00", "notation": null}
nlprog_det-setting-0083256
<|start|><|system|> You check calculations for an accounting team.<|eot|> <|user|> Scale 200 g of sugar from 2 servings to 10 servings.<|eot|> <|assistant|> grams = 200 serves = 2 needed_for = 10 scaled = grams * needed_for // serves # 1000 print(scaled) The code prints: 1000 1000 grams of sugar a...
chat
[ { "role": "system", "content": "You check calculations for an accounting team." }, { "role": "user", "content": "Scale 200 g of sugar from 2 servings to 10 servings." }, { "role": "assistant", "content": " grams = 200\n serves = 2\n needed_for = 10\n scaled = grams * need...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0083257
<|start|><|user|> Kaito drove 165 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement?<|eot|> <|assistant|> ```python miles = 165 rate = 0.58 reimbursement = miles * rate # 95.69999999999999 print(f"{reimbursement:.2f}") ``` Printed = 95.70 Kaito is owed $95.70.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Kaito drove 165 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement?" }, { "role": "assistant", "content": "```python\nmiles = 165\nrate = 0.58\nreimbursement = miles * rate # 95.69999999999999\nprint(f\"{reimbursement:.2f}\")\n`...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "95.70", "printed": "95.70", "notation": null}
nlprog_det-setting-0083258
<|start|><|system|> Be concise.<|eot|> <|user|> How much sales tax is charged on a $118.53 purchase at 9%?<|eot|> <|assistant|> ```python price = 118.53 tax_rate = 9 / 100 # 0.09 tax = price * tax_rate # 10.6677 print(f"{tax:.2f}") ``` Running this gives: 10.67 The tax is $10.67.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "How much sales tax is charged on a $118.53 purchase at 9%?" }, { "role": "assistant", "content": "```python\nprice = 118.53\ntax_rate = 9 / 100 # 0.09\ntax = price * tax_rate # 10.6677\nprint(f\"{tax:.2f}...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "10.67", "printed": "10.67", "notation": null}
nlprog_det-setting-0083259
A meal costs $109.02. How much is a 10% tip? Program: ```python bill = 109.02 tip_rate = 10 / 100 # 0.1 tip = bill * tip_rate # 10.902000000000001 print(f"{tip:.2f}") ``` Printed — 10.90 The tip is $10.90.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "10.90", "printed": "10.90", "notation": null}
nlprog_det-setting-0083260
<|start|><|user|> A shift runs from 7:36 AM to 12:15 PM. How long is it in minutes?<|eot|> <|assistant|> ```python start = 7 * 60 + 36 # 456 end = 12 * 60 + 15 # 735 print(end - start) ``` The program prints: 279 279 minutes pass.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A shift runs from 7:36 AM to 12:15 PM. How long is it in minutes?" }, { "role": "assistant", "content": "```python\nstart = 7 * 60 + 36 # 456\nend = 12 * 60 + 15 # 735\nprint(end - start)\n```\nThe program prints: 279\n\n279 minutes pass." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "279", "printed": "279", "notation": null}
nlprog_det-setting-0083261
<|start|><|user|> Monthly: $29. Annual: $312. What is saved per year by paying annually?<|eot|> <|assistant|> ```python monthly = 29 yearly = 312 savings = monthly * 12 - yearly # 36 print(savings) ``` This prints 36, as expected. The annual plan saves $36.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Monthly: $29. Annual: $312. What is saved per year by paying annually?" }, { "role": "assistant", "content": "```python\nmonthly = 29\nyearly = 312\nsavings = monthly * 12 - yearly # 36\nprint(savings)\n```\nThis prints 36, as expected.\n\nThe annual plan saves $36...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0083262
An attorney bills 12 hours at $150 per hour. What is the bill? As a program: ```python hours = 12 rate = 150 bill = hours * rate # 1800 print(f"{bill:.2f}") ``` Out = 1800.00 The bill is $1,800.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "1800.00", "printed": "1800.00", "notation": null}
nlprog_det-setting-0083263
<|start|><|system|> You are a teaching assistant.<|eot|> <|user|> A meeting lasted 1 hours and 29 minutes. How many minutes is that?<|eot|> <|assistant|> ```python hours = 1 minutes = 29 total_minutes = hours * 60 + minutes # 89 print(total_minutes) ``` (stdout: 89) That is 89 minutes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a teaching assistant." }, { "role": "user", "content": "A meeting lasted 1 hours and 29 minutes. How many minutes is that?" }, { "role": "assistant", "content": "```python\nhours = 1\nminutes = 29\ntotal_minutes = hours * 60 + minutes # 89\npr...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "89", "printed": "89", "notation": null}
nlprog_det-setting-0083264
What is -5 degrees Celsius in Fahrenheit? ```python celsius = -5 fahrenheit = celsius * 9 / 5 + 32 # 23.0 print(round(fahrenheit)) ``` Output of the run: 23 That is 23 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0083265
<|start|><|user|> The rules require 1/3 of 33 members (round up) to be present. How many is that?<|eot|> <|assistant|> ```python import math members = 33 quorum = math.ceil(members * 1 / 3) # 11 print(quorum) ``` Executed, it shows: 11 That is 11 members.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The rules require 1/3 of 33 members (round up) to be present. How many is that?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 33\nquorum = math.ceil(members * 1 / 3) # 11\nprint(quorum)\n```\nExecuted, it shows: 11\n\nThat is 11 members."...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0083266
Starting with 431 binders and using 20 per day, how many remain after 10 days? Programmatically: ```python stock = 431 per_day = 20 days = 10 left = stock - per_day * days # 231 print(left) ``` The program outputs 231. 231 binders are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "231", "printed": "231", "notation": null}
nlprog_det-setting-0083267
Express 379 hours in days and hours. Translated to Python: hours = 379 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") Output of the run: 15 days and 19 hours That is 15 days and 19 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "15 days and 19 hours", "printed": "15 days and 19 hours", "notation": null}
nlprog_det-setting-0083268
How many 2-foot square tiles cover a 5 ft by 4 ft floor (round up)? ```python import math length = 5 width = 4 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 5 print(tiles) ``` What it prints: 5 5 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0083269
<|start|><|system|> Available functions (JSON Schema): {"name": "calculator", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> To read 504 pages ...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"calculator\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require...
nlprog_det
setting
original
null
deterministic
[]
[]
199
{"gold": "56", "printed": "56", "notation": null}
nlprog_det-setting-0083270
A $60,000 grant pays $6,000 up front and the rest in 12 equal installments. How large is each installment? Each installment is $4,500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "4500.00", "printed": "4500.00", "notation": null}
nlprog_det-setting-0083271
<|start|><|system|> Available functions (JSON Schema): {"name": "py_exec", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}} {"name": "search_cases",...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"py_exec\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}...
nlprog_det
setting
original
null
deterministic
[]
[]
389
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0083272
A 120-day notice period begins on March 12, 2025. On what date does it end? Computation in Python: ```python from datetime import date, timedelta start = date(2025, 3, 12) # datetime.date(2025, 3, 12) end = start + timedelta(days=120) # datetime.date(2025, 7, 10) print(end.isoformat()) ``` # out: 2025-07-10 The per...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "2025-07-10", "printed": "2025-07-10", "notation": null}
nlprog_det-setting-0083273
<|start|><|system|> You may call the tools below. [{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "math_engine", "description": "Executes Python code and returns stdout.", "parameters"...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"math_engine\", \"description\":...
nlprog_det
setting
original
null
deterministic
[]
[]
327
{"gold": "1337.50", "printed": "1337.50", "notation": null}
nlprog_det-setting-0083274
<|start|><|system|> You can call tools. Available tools: [{"name": "compute", "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|> Hana was...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"compute\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, ...
nlprog_det
setting
original
null
deterministic
[]
[]
239
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0083275
<|start|><|system|> Available functions (JSON Schema): [{"name": "run_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> A quorum is 1/...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"run_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requ...
nlprog_det
setting
original
null
deterministic
[]
[]
218
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0083276
A settlement of $18,000 is split equally among 2 parties. How much does each party receive? ```python settlement = 18000 parties = 2 share = settlement // parties # 9000 print(share) ``` The printout reads 9000. Each share is $9,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "9000", "printed": "9000", "notation": null}
nlprog_det-setting-0083277
Sara buys 7 boxes of 10 keyboards each and gives away 8 keyboards. How many keyboards are left? 62 keyboards are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "62", "printed": "62", "notation": null}
nlprog_det-setting-0083278
Goods bought on April 5, 2026 carry a 36-month warranty. When does it expire? Set it up in Python: ```python from datetime import date start = date(2026, 4, 5) months = 36 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Pyt...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
157
{"gold": "2029-04-05", "printed": "2029-04-05", "notation": null}
nlprog_det-setting-0083279
A 24 lb package ships at $8 base plus $2.00/lb. What is the charge? Coded up: ```python base = 8 per_pound = 2.0 weight = 24 cost = base + per_pound * weight # 56.0 print(f"{cost:.2f}") ``` The program outputs: 56.00 Shipping costs $56.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "56.00", "printed": "56.00", "notation": null}
nlprog_det-setting-0083280
<|start|><|user|> One can of paint covers 250 square feet. How many cans are needed for 1209 square feet of wall?<|eot|> <|assistant|> import math area = 1209 coverage = 250 cans = math.ceil(area / coverage) # 5 print(cans) (Output: 5) 5 cans are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "One can of paint covers 250 square feet. How many cans are needed for 1209 square feet of wall?" }, { "role": "assistant", "content": " import math\n area = 1209\n coverage = 250\n cans = math.ceil(area / coverage) # 5\n print(cans)\n(Output: 5)\n\n5...
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0083281
<|start|><|user|> Pay is $22.40/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 47 hours?<|eot|> <|assistant|> ```python rate = 22.4 hours = 47 regular = 40 * rate # 896.0 overtime = (hours - 40) * rate * 1.5 # 235.2 pay = regular + overtime # 1131.2 print(f"{pay:.2f}") ``` It outputs 1131.2...
chat
[ { "role": "user", "content": "Pay is $22.40/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 47 hours?" }, { "role": "assistant", "content": "```python\nrate = 22.4\nhours = 47\nregular = 40 * rate # 896.0\novertime = (hours - 40) * rate * 1.5 # 235.2\npay = regular + o...
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "1131.20", "printed": "1131.20", "notation": null}
nlprog_det-setting-0083282
<|start|><|user|> A customer buys 5 desk lamps at $10 each, 3 staplers at $9 each and pays with $100. How much change is due?<|eot|> <|assistant|> ```python items = [(5, 10), (3, 9)] total = sum(q * p for q, p in items) # 77 paid = 100 change = paid - total # 23 print(change) ``` Console: 23 The change is $23.<|eot|...
chat
[ { "role": "user", "content": "A customer buys 5 desk lamps at $10 each, 3 staplers at $9 each and pays with $100. How much change is due?" }, { "role": "assistant", "content": "```python\nitems = [(5, 10), (3, 9)]\ntotal = sum(q * p for q, p in items) # 77\npaid = 100\nchange = paid - total # ...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0083283
<|start|><|user|> Fixed costs are $2,500. Each unit sells for $30 and costs $22 to make. How many units must be sold to break even?<|eot|> <|assistant|> ```python import math fixed = 2500 price = 30 variable = 22 units = math.ceil(fixed / (price - variable)) # 313 print(units) ``` Printed: 313 Break-even is 313 units...
chat
[ { "role": "user", "content": "Fixed costs are $2,500. Each unit sells for $30 and costs $22 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 2500\nprice = 30\nvariable = 22\nunits = math.ceil(fixed / (price - variable)) #...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "313", "printed": "313", "notation": null}
nlprog_det-setting-0083284
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "compute", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> A 216-pa...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"compute\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}...
nlprog_det
setting
original
null
deterministic
[]
[]
205
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0083285
<|start|><|user|> From 2020 to 2038, how many years is that?<|eot|> <|assistant|> ```python start_year = 2020 end_year = 2038 print(end_year - start_year) ``` stdout: 18 That is 18 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From 2020 to 2038, how many years is that?" }, { "role": "assistant", "content": "```python\nstart_year = 2020\nend_year = 2038\nprint(end_year - start_year)\n```\nstdout:\n18\n\nThat is 18 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
70
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0083286
<|start|><|user|> Meals are $79 per day and lodging $140 per night. What is the allowance for 6 days and 5 nights?<|eot|> <|assistant|> That comes to $1,174.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Meals are $79 per day and lodging $140 per night. What is the allowance for 6 days and 5 nights?" }, { "role": "assistant", "content": "That comes to $1,174." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
48
{"gold": "1174", "printed": "1174", "notation": null}
nlprog_det-setting-0083287
32 file boxes cost $5 apiece. With 7% tax added, what is the total? In code: ```python quantity = 32 unit_price = 5 subtotal = quantity * unit_price # 160 total = subtotal * (1 + 7 / 100) # 171.20000000000002 print(f"{total:.2f}") ``` Result: 171.20 The invoice total is $171.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "171.20", "printed": "171.20", "notation": null}
nlprog_det-setting-0083288
With 30 rows of 18 chairs and 37 empty chairs, how many chairs are taken? One way, in code: rows = 30 per_row = 18 empty = 37 seated = rows * per_row - empty # 503 print(seated) Run output — 503 503 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "503", "printed": "503", "notation": null}
nlprog_det-setting-0083289
<|start|><|user|> Lena's scores were 90, 69, 94, 100, 65 and 98. What is the average score?<|eot|> <|assistant|> ```python scores = [90, 69, 94, 100, 65, 98] average = sum(scores) // len(scores) # 86 print(average) ``` It prints 86, as expected. The average score is 86.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Lena's scores were 90, 69, 94, 100, 65 and 98. What is the average score?" }, { "role": "assistant", "content": "```python\nscores = [90, 69, 94, 100, 65, 98]\naverage = sum(scores) // len(scores) # 86\nprint(average)\n```\nIt prints 86, as expected.\n\nThe average...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "86", "printed": "86", "notation": null}
nlprog_det-setting-0083290
<|start|><|user|> How many of 275 votes make 60% (round up)?<|eot|> <|assistant|> ```python import math voters = 275 needed = math.ceil(voters * 60 / 100) # 165 print(needed) ``` Printed result: 165 At least 165 votes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 275 votes make 60% (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 275\nneeded = math.ceil(voters * 60 / 100) # 165\nprint(needed)\n```\nPrinted result: 165\n\nAt least 165 votes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "165", "printed": "165", "notation": null}
nlprog_det-setting-0083291
<|start|><|user|> Count 45 days forward from February 22, 2027. What date is that?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2027, 2, 22) end = start + timedelta(days=45) print(end.isoformat()) ``` The printout reads 2027-04-08. That date is April 8, 2027.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Count 45 days forward from February 22, 2027. What date is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2027, 2, 22)\nend = start + timedelta(days=45)\nprint(end.isoformat())\n```\nThe printout reads 2027...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "2027-04-08", "printed": "2027-04-08", "notation": null}
nlprog_det-setting-0083292
<|start|><|system|> You are a logic tutor.<|eot|> <|user|> A count moves from 2,500 to 3,500. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> ```python old = 2500 new = 3500 change = (new - old) / old * 100 # 40.0 print(round(change)) ``` The run gives 40. It changed by 40%.<|eot|> <...
chat
[ { "role": "system", "content": "You are a logic tutor." }, { "role": "user", "content": "A count moves from 2,500 to 3,500. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": "```python\nold = 2500\nnew = 3500\nchange = (new - old) / ol...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0083293
<|start|><|system|> You may call the tools below. {"name": "eval_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> What simple interes...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"eval_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required...
nlprog_det
setting
original
null
deterministic
[]
[]
225
{"gold": "1200.00", "printed": "1200.00", "notation": null}
nlprog_det-setting-0083295
Attendance was 92 out of 100. Express it as a percent. As a program: ```python present = 92 total = 100 percent = present / total * 100 # 92.0 print(round(percent, 1)) ``` Shell output: 92.0 92.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "92.0", "printed": "92.0", "notation": null}
nlprog_det-setting-0083296
<|start|><|user|> An office budget of $25,000 has expenses of $2,211, $414. How much of the budget is left?<|eot|> <|assistant|> ```python budget = 25000 expenses = [2211, 414] left = budget - sum(expenses) # 22375 print(left) ``` # out: 22375 The remaining budget is $22,375.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An office budget of $25,000 has expenses of $2,211, $414. How much of the budget is left?" }, { "role": "assistant", "content": "```python\nbudget = 25000\nexpenses = [2211, 414]\nleft = budget - sum(expenses) # 22375\nprint(left)\n```\n# out: 22375\n\nThe remainin...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "22375", "printed": "22375", "notation": null}
nlprog_det-setting-0083297
<|start|><|system|> Available functions (JSON Schema): [{"name": "calc", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "fetch_filing", "description...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"calc\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"...
nlprog_det
setting
original
null
deterministic
[]
[]
396
{"gold": "31.0", "printed": "31.0", "notation": null}
nlprog_det-setting-0083298
Pack A has 6 items for $11.52. Pack B has 24 items for $13.87. Which has the lower price per item? A few lines of Python do it: ```python pack_a = 11.52 / 6 # 1.92 pack_b = 13.87 / 24 # 0.5779166666666666 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` Shell output — B Pack B is cheaper per item...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0083299
<|start|><|user|> 4 clients win $96,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> ```python award = 96000 fee = award * 25 / 100 # 24000.0 remaining = award - fee # 72000.0 per_client = remaining / 4 # 18000.0 print(f"{per_client:.2f}") ``` Printed resu...
chat
[ { "role": "user", "content": "4 clients win $96,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": "```python\naward = 96000\nfee = award * 25 / 100 # 24000.0\nremaining = award - fee # 72000.0\nper_client = remaining ...
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "18000.00", "printed": "18000.00", "notation": null}
nlprog_det-setting-0083300
Equal monthly payments repay $1,200 plus 8% simple yearly interest over 12 months. How large is a payment? Python code: principal = 1200 annual_rate = 8 / 100 # 0.08 months = 12 interest = principal * annual_rate * months / 12 # 96.0 payment = (principal + interest) / months # 108.0 print(f"...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "108.00", "printed": "108.00", "notation": null}
nlprog_det-setting-0083301
$2,000 is invested at 4% compounded yearly. What is it worth after 2 years? Computing it: principal = 2000 rate = 4 / 100 # 0.04 years = 2 value = principal * (1 + rate) ** years # 2163.2000000000003 print(f"{value:.2f}") Program output: 2163.20 It is worth $2,163.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "2163.20", "printed": "2163.20", "notation": null}
nlprog_det-setting-0083302
Idris and Tobias share $4,015 in the ratio 2:3. How much does Idris get? Here is the program. ```python total = 4015 parts_a = 2 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 1606 print(share_a) ``` The code prints: 1606 Idris's share is $1,606.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "1606", "printed": "1606", "notation": null}
nlprog_det-setting-0083303
<|start|><|user|> How many of 59 votes make 67% (round up)?<|eot|> <|assistant|> ```python import math voters = 59 needed = math.ceil(voters * 67 / 100) # 40 print(needed) ``` Output — 40 40 votes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 59 votes make 67% (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 59\nneeded = math.ceil(voters * 67 / 100) # 40\nprint(needed)\n```\nOutput — 40\n\n40 votes are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0083304
<|start|><|user|> 164 volunteers are split into 4 equal teams. How many are on each team, and how many are left over?<|eot|> <|assistant|> ```python total = 164 groups = 4 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` The program prints: 41 each, 0 left over 41 each...
chat
[ { "role": "user", "content": "164 volunteers are split into 4 equal teams. How many are on each team, and how many are left over?" }, { "role": "assistant", "content": "```python\ntotal = 164\ngroups = 4\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remainder} left o...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "41 each, 0 left over", "printed": "41 each, 0 left over", "notation": null}
nlprog_det-setting-0083305
4 runs at 400 calories each burn how many calories in total? Code: ```python per_session = 400 sessions = 4 total = per_session * sessions # 1600 print(total) ``` # printed: 1600 1600 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "1600", "printed": "1600", "notation": null}
nlprog_det-setting-0083306
<|start|><|user|> Rent of $2,200 goes up 5%. What is the new rent?<|eot|> <|assistant|> The new rent is $2,310.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rent of $2,200 goes up 5%. What is the new rent?" }, { "role": "assistant", "content": "The new rent is $2,310.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "2310.00", "printed": "2310.00", "notation": null}
nlprog_det-setting-0083308
A claim accrued on May 21, 2021. The limitations period is 6 years. On what date does it expire? As a program: from datetime import date accrued = date(2021, 5, 21) # datetime.date(2021, 5, 21) years = 6 expires = accrued.replace(year=accrued.year + years) # datetime.date(2027, 5, 21) print(expir...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "2027-05-21", "printed": "2027-05-21", "notation": null}
nlprog_det-setting-0083309
<|start|><|user|> Which is cheaper per unit: 8 for $5.06 (A) or 20 for $28.87 (B)?<|eot|> <|assistant|> ```python pack_a = 5.06 / 8 pack_b = 28.87 / 20 cheaper = "A" if pack_a < pack_b else "B" print(cheaper) ``` The code prints A. A has the lower unit price.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Which is cheaper per unit: 8 for $5.06 (A) or 20 for $28.87 (B)?" }, { "role": "assistant", "content": "```python\npack_a = 5.06 / 8\npack_b = 28.87 / 20\ncheaper = \"A\" if pack_a < pack_b else \"B\"\nprint(cheaper)\n```\nThe code prints A.\n\nA has the lower unit ...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "A", "printed": "A", "notation": null}