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-0054212
<|start|><|user|> Rafael's scores were 58, 68, 73, 75, 52, 89 and 82. What is the average score?<|eot|> <|assistant|> ```python scores = [58, 68, 73, 75, 52, 89, 82] average = sum(scores) // len(scores) # 71 print(average) ``` Output — 71 The average score is 71.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rafael's scores were 58, 68, 73, 75, 52, 89 and 82. What is the average score?" }, { "role": "assistant", "content": "```python\nscores = [58, 68, 73, 75, 52, 89, 82]\naverage = sum(scores) // len(scores) # 71\nprint(average)\n```\nOutput — 71\n\nThe average score ...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "71", "printed": "71", "notation": null}
nlprog_det-setting-0054213
Straight-line depreciation: cost $45,000, salvage $3,000, 8 years. How much per year? The Python version: ```python cost = 45000 salvage = 3000 years = 8 per_year = (cost - salvage) / years # 5250.0 print(f"{per_year:.2f}") ``` Out: 5250.00 $5,250.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "5250.00", "printed": "5250.00", "notation": null}
nlprog_det-setting-0054214
<|start|><|user|> 38 files go into boxes of 50. How many boxes does that take?<|eot|> <|assistant|> ```python import math files = 38 per_box = 50 boxes = math.ceil(files / per_box) # 1 print(boxes) ``` It prints: 1 It takes 1 boxes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "38 files go into boxes of 50. How many boxes does that take?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 38\nper_box = 50\nboxes = math.ceil(files / per_box) # 1\nprint(boxes)\n```\nIt prints: 1\n\nIt takes 1 boxes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "1", "printed": "1", "notation": null}
nlprog_det-setting-0054216
<|start|><|user|> Convert -10 °C to Fahrenheit.<|eot|> <|assistant|> ```python celsius = -10 fahrenheit = celsius * 9 / 5 + 32 # 14.0 print(round(fahrenheit)) ``` (Run result: 14) It equals 14 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert -10 °C to Fahrenheit." }, { "role": "assistant", "content": "```python\ncelsius = -10\nfahrenheit = celsius * 9 / 5 + 32 # 14.0\nprint(round(fahrenheit))\n```\n(Run result: 14)\n\nIt equals 14 degrees Fahrenheit." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0054217
With $8,000 in costs and $9,000 in revenue, what percent of revenue is profit? Round to one decimal. Program: ```python revenue = 9000 costs = 8000 profit = revenue - costs # 1000 margin = profit / revenue * 100 # 11.11111111111111 print(round(margin, 1)) ``` Running it prints: 11.1 Profit is 11.1% of revenue.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "11.1", "printed": "11.1", "notation": null}
nlprog_det-setting-0054218
What does $10,000 grow to in 4 years at 5% annual compounding? Here's the code. principal = 10000 rate = 5 / 100 # 0.05 years = 4 value = principal * (1 + rate) ** years # 12155.062500000002 print(f"{value:.2f}") Run output: 12155.06 The balance is $12,155.06.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "12155.06", "printed": "12155.06", "notation": null}
nlprog_det-setting-0054219
A settlement of $84,000 is split equally among 4 parties. How much does each party receive? The Python version: ```python settlement = 84000 parties = 4 share = settlement // parties # 21000 print(share) ``` Executing it gives: 21000 Each party receives $21,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "21000", "printed": "21000", "notation": null}
nlprog_det-setting-0054220
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "run_python", "description": "Runs a short Python snippet and return...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"run_python\",...
nlprog_det
setting
original
null
deterministic
[]
[]
443
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0054221
<|start|><|user|> Ana has 17 documents to file, and each filing costs $125. How much are the filing fees in total?<|eot|> <|assistant|> fee = 125 filings = 17 total = fee * filings print(total) Running this gives: 2125 The total fee is $2,125.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Ana has 17 documents to file, and each filing costs $125. How much are the filing fees in total?" }, { "role": "assistant", "content": " fee = 125\n filings = 17\n total = fee * filings\n print(total)\nRunning this gives: 2125\n\nThe total fee is $2,125....
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "2125", "printed": "2125", "notation": null}
nlprog_det-setting-0054222
A customer buys 6 hard drives at $27 each, 4 keyboards at $12 each and pays with $250. How much change is due? We write it as a program: items = [(6, 27), (4, 12)] total = sum(q * p for q, p in items) # 210 paid = 250 change = paid - total # 40 print(change) Run it and it prints: 40 $40 comes ba...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0054223
A settlement of $36,000 is split equally among 6 parties. How much does each party receive? Each share is $6,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "6000", "printed": "6000", "notation": null}
nlprog_det-setting-0054224
Kemal was born on August 18, 1980. How old is Kemal on December 17, 2027? The Python version: ```python from datetime import date born = date(1980, 8, 18) # datetime.date(1980, 8, 18) on = date(2027, 12, 17) # datetime.date(2027, 12, 17) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 47...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
157
{"gold": "47", "printed": "47", "notation": null}
nlprog_det-setting-0054225
Straight-line depreciation: cost $45,000, salvage $3,000, 5 years. How much per year? Python makes this quick: cost = 45000 salvage = 3000 years = 5 per_year = (cost - salvage) / years # 8400.0 print(f"{per_year:.2f}") Printed: 8400.00 $8,400.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "8400.00", "printed": "8400.00", "notation": null}
nlprog_det-setting-0054226
A customer buys 2 staplers at $19 each, 1 hard drives at $8 each and pays with $50. How much change is due? Set it up in Python: ```python items = [(2, 19), (1, 8)] total = sum(q * p for q, p in items) # 46 paid = 50 change = paid - total # 4 print(change) ``` It outputs: 4 $4 comes back.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0054227
A 5% increase is applied to $2,200 monthly rent. What is the new amount? rent = 2200 increase = 5 / 100 # 0.05 new_rent = rent * (1 + increase) # 2310.0 print(f"{new_rent:.2f}") Executed, it shows 2310.00. It rises to $2,310.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "2310.00", "printed": "2310.00", "notation": null}
nlprog_det-setting-0054228
How many weekdays (Monday to Friday) fall after June 12, 2021 up to and including July 16, 2021? In code: ```python from datetime import date, timedelta start = date(2021, 6, 12) end = date(2021, 7, 16) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() < 5: count...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0054229
24 markers cost $3 apiece. With 6% tax added, what is the total? Computing it: ```python quantity = 24 unit_price = 3 subtotal = quantity * unit_price # 72 total = subtotal * (1 + 6 / 100) # 76.32000000000001 print(f"{total:.2f}") ``` The code prints: 76.32 The invoice total is $76.32.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "76.32", "printed": "76.32", "notation": null}
nlprog_det-setting-0054230
A $84 dinner bill gets a 20% tip, and 5 people share the cost equally. What is each person's share? The share is $20.16 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "20.16", "printed": "20.16", "notation": null}
nlprog_det-setting-0054231
What is the total rent on a 6-month lease at $2,100 a month? The program: ```python monthly_rent = 2100 months = 6 total = monthly_rent * months # 12600 print(total) ``` On running, it outputs: 12600 The rent over the term is $12,600.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "12600", "printed": "12600", "notation": null}
nlprog_det-setting-0054232
Monthly: $15. Annual: $132. What is saved per year by paying annually? The annual plan saves $48.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0054233
<|start|><|user|> Goods bought on July 21, 2021 carry a 36-month warranty. When does it expire?<|eot|> <|assistant|> ```python from datetime import date start = date(2021, 7, 21) months = 36 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.is...
chat
[ { "role": "user", "content": "Goods bought on July 21, 2021 carry a 36-month warranty. When does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2021, 7, 21)\nmonths = 36\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(s...
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "2024-07-21", "printed": "2024-07-21", "notation": null}
nlprog_det-setting-0054234
<|start|><|user|> 13 of 25 members attended. What percent attended?<|eot|> <|assistant|> ```python present = 13 total = 25 percent = present / total * 100 # 52.0 print(round(percent, 1)) ``` Out = 52.0 52.0% attended.<|eot|> <|end|>
chat
[ { "role": "user", "content": "13 of 25 members attended. What percent attended?" }, { "role": "assistant", "content": "```python\npresent = 13\ntotal = 25\npercent = present / total * 100 # 52.0\nprint(round(percent, 1))\n```\nOut = 52.0\n\n52.0% attended." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "52.0", "printed": "52.0", "notation": null}
nlprog_det-setting-0054235
What simple interest does $1,000 earn at 8% a year over 6 years? Translated to Python: ```python principal = 1000 rate = 8 / 100 # 0.08 years = 6 interest = principal * rate * years # 480.0 print(f"{interest:.2f}") ``` It prints: 480.00 The interest is $480.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "480.00", "printed": "480.00", "notation": null}
nlprog_det-setting-0054236
<|start|><|user|> A garage charges $5 an hour, never more than $18 a day. How much for 1 hours?<|eot|> <|assistant|> ```python rate = 5 hours = 1 daily_max = 18 cost = min(rate * hours, daily_max) # 5 print(cost) ``` Executed, it shows 5. Parking costs $5.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A garage charges $5 an hour, never more than $18 a day. How much for 1 hours?" }, { "role": "assistant", "content": "```python\nrate = 5\nhours = 1\ndaily_max = 18\ncost = min(rate * hours, daily_max) # 5\nprint(cost)\n```\nExecuted, it shows 5.\n\nParking costs $5...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0054237
With 16 rows of 22 chairs and 30 empty chairs, how many chairs are taken? Python code: ```python rows = 16 per_row = 22 empty = 30 seated = rows * per_row - empty # 322 print(seated) ``` # console output: 322 322 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "322", "printed": "322", "notation": null}
nlprog_det-setting-0054238
Someone born August 14, 1977 turns how old by January 16, 2021? Give the age in whole years. Script: ```python from datetime import date born = date(1977, 8, 14) # datetime.date(1977, 8, 14) on = date(2021, 1, 16) # datetime.date(2021, 1, 16) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
154
{"gold": "43", "printed": "43", "notation": null}
nlprog_det-setting-0054239
Notice was given on October 18, 2027. The notice period is 90 days. When does it run out? A short script: from datetime import date, timedelta start = date(2027, 10, 18) # datetime.date(2027, 10, 18) end = start + timedelta(days=90) # datetime.date(2028, 1, 16) print(end.isoformat()) # printed result...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "2028-01-16", "printed": "2028-01-16", "notation": null}
nlprog_det-setting-0054240
A court charges $15 per request plus $0.25 per page after the first 20 pages. What does a 48-page copy cost? One way, in code: ```python pages = 48 base = 15 per_page = 0.25 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 22.0 print(f"{cost:.2f}") ``` The program prints 22.00. The copy costs $2...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "22.00", "printed": "22.00", "notation": null}
nlprog_det-setting-0054241
<|start|><|user|> Equal monthly payments repay $9,000 plus 5% simple yearly interest over 24 months. How large is a payment?<|eot|> <|assistant|> ```python principal = 9000 annual_rate = 5 / 100 # 0.05 months = 24 interest = principal * annual_rate * months / 12 # 900.0 payment = (principal + interest) / months # 41...
chat
[ { "role": "user", "content": "Equal monthly payments repay $9,000 plus 5% simple yearly interest over 24 months. How large is a payment?" }, { "role": "assistant", "content": "```python\nprincipal = 9000\nannual_rate = 5 / 100 # 0.05\nmonths = 24\ninterest = principal * annual_rate * months / 1...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "412.50", "printed": "412.50", "notation": null}
nlprog_det-setting-0054242
Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 43 hours? Idris earns $890.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "890.00", "printed": "890.00", "notation": null}
nlprog_det-setting-0054243
<|start|><|user|> 3 claimants share a $7,350 settlement equally. What is each share?<|eot|> <|assistant|> ```python settlement = 7350 parties = 3 share = settlement // parties # 2450 print(share) ``` That prints: 2450 Each share is $2,450.<|eot|> <|end|>
chat
[ { "role": "user", "content": "3 claimants share a $7,350 settlement equally. What is each share?" }, { "role": "assistant", "content": "```python\nsettlement = 7350\nparties = 3\nshare = settlement // parties # 2450\nprint(share)\n```\nThat prints: 2450\n\nEach share is $2,450." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "2450", "printed": "2450", "notation": null}
nlprog_det-setting-0054244
<|start|><|user|> Express 156 hours in days and hours.<|eot|> <|assistant|> ```python hours = 156 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Output: 6 days and 12 hours That is 6 days and 12 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Express 156 hours in days and hours." }, { "role": "assistant", "content": "```python\nhours = 156\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nOutput:\n6 days and 12 hours\n\nThat is 6 days and 12 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "6 days and 12 hours", "printed": "6 days and 12 hours", "notation": null}
nlprog_det-setting-0054245
<|start|><|user|> Monthly: $15. Annual: $132. What is saved per year by paying annually?<|eot|> <|assistant|> $48 is saved.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Monthly: $15. Annual: $132. What is saved per year by paying annually?" }, { "role": "assistant", "content": "$48 is saved." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0054246
<|start|><|user|> Equal monthly payments repay $9,000 plus 8% simple yearly interest over 12 months. How large is a payment?<|eot|> <|assistant|> ```python principal = 9000 annual_rate = 8 / 100 # 0.08 months = 12 interest = principal * annual_rate * months / 12 # 720.0 payment = (principal + interest) / months # 81...
chat
[ { "role": "user", "content": "Equal monthly payments repay $9,000 plus 8% simple yearly interest over 12 months. How large is a payment?" }, { "role": "assistant", "content": "```python\nprincipal = 9000\nannual_rate = 8 / 100 # 0.08\nmonths = 12\ninterest = principal * annual_rate * months / 1...
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "810.00", "printed": "810.00", "notation": null}
nlprog_det-setting-0054247
3 books come back 2 days late, at $0.50 a day each. What is the fine? Python code: ```python per_day = 0.5 days_late = 2 books = 3 fine = per_day * days_late * books # 3.0 print(f"{fine:.2f}") ``` Output: 3.00 The fine is $3.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "3.00", "printed": "3.00", "notation": null}
nlprog_det-setting-0054248
Counting only Monday through Friday, how many business days are there after April 5, 2028 through April 11, 2028? We can compute it in Python. ```python from datetime import date, timedelta start = date(2028, 4, 5) end = date(2028, 4, 11) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(d...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
163
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0054249
<|start|><|system|> Be brief and correct.<|eot|> <|user|> A lease runs for 12 months at $2,100 per month. How much rent is paid over the whole term?<|eot|> <|assistant|> ```python monthly_rent = 2100 months = 12 total = monthly_rent * months # 25200 print(total) ``` Python prints: 25200 In total, $25,200 is paid.<|eo...
chat
[ { "role": "system", "content": "Be brief and correct." }, { "role": "user", "content": "A lease runs for 12 months at $2,100 per month. How much rent is paid over the whole term?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 2100\nmonths = 12\ntotal = monthly_rent ...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "25200", "printed": "25200", "notation": null}
nlprog_det-setting-0054250
After an initial $3,000, the remainder of a $48,000 grant is paid in 4 equal parts. What is each part? ```python grant = 48000 up_front = 3000 installments = 4 each = (grant - up_front) / installments # 11250.0 print(f"{each:.2f}") ``` The program outputs: 11250.00 $11,250.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "11250.00", "printed": "11250.00", "notation": null}
nlprog_det-setting-0054251
<|start|><|system|> You help paralegals with routine tasks.<|eot|> <|user|> A recipe for 4 people uses 150 grams of lentils. How many grams are needed for 8 people?<|eot|> <|assistant|> ```python grams = 150 serves = 4 needed_for = 8 scaled = grams * needed_for // serves # 300 print(scaled) ``` stdout: 300 300 grams ...
chat
[ { "role": "system", "content": "You help paralegals with routine tasks." }, { "role": "user", "content": "A recipe for 4 people uses 150 grams of lentils. How many grams are needed for 8 people?" }, { "role": "assistant", "content": "```python\ngrams = 150\nserves = 4\nneeded_for = 8...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0054252
<|start|><|user|> After an initial $6,000, the remainder of a $12,000 grant is paid in 4 equal parts. What is each part?<|eot|> <|assistant|> ```python grant = 12000 up_front = 6000 installments = 4 each = (grant - up_front) / installments # 1500.0 print(f"{each:.2f}") ``` Executing it gives: 1500.00 Each installment...
chat
[ { "role": "user", "content": "After an initial $6,000, the remainder of a $12,000 grant is paid in 4 equal parts. What is each part?" }, { "role": "assistant", "content": "```python\ngrant = 12000\nup_front = 6000\ninstallments = 4\neach = (grant - up_front) / installments # 1500.0\nprint(f\"{e...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "1500.00", "printed": "1500.00", "notation": null}
nlprog_det-setting-0054253
Water costs $12 a month plus $5.10 for each 1,000 gallons over 3,000. What is owed for 19,000 gallons? The bill is $93.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "93.60", "printed": "93.60", "notation": null}
nlprog_det-setting-0054254
After an initial $3,000, the remainder of a $30,000 grant is paid in 12 equal parts. What is each part? Here is the program. ```python grant = 30000 up_front = 3000 installments = 12 each = (grant - up_front) / installments # 2250.0 print(f"{each:.2f}") ``` Console: 2250.00 $2,250.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "2250.00", "printed": "2250.00", "notation": null}
nlprog_det-setting-0054255
How many units at $40 each (variable cost $36) cover $9,000 of fixed costs? Let the code do the arithmetic: ```python import math fixed = 9000 price = 40 variable = 36 units = math.ceil(fixed / (price - variable)) # 2250 print(units) ``` The run gives 2250, as expected. 2250 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "2250", "printed": "2250", "notation": null}
nlprog_det-setting-0054256
Sales went from 400 to 380. What is the percent change? Coded up: ```python old = 400 new = 380 change = (new - old) / old * 100 # -5.0 print(round(change)) ``` (stdout: -5) It changed by -5%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "-5", "printed": "-5", "notation": null}
nlprog_det-setting-0054257
<|start|><|user|> At an exchange rate of 1.31 CAD per USD, how many CAD is 8,318 USD?<|eot|> <|assistant|> amount = 8318 rate = 1.31 converted = amount * rate # 10896.58 print(f"{converted:.2f}") Running this gives 10896.58. It converts to 10,896.58 CAD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At an exchange rate of 1.31 CAD per USD, how many CAD is 8,318 USD?" }, { "role": "assistant", "content": " amount = 8318\n rate = 1.31\n converted = amount * rate # 10896.58\n print(f\"{converted:.2f}\")\nRunning this gives 10896.58.\n\nIt converts to ...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "10896.58", "printed": "10896.58", "notation": null}
nlprog_det-setting-0054258
The building opened in 1990. How many years had passed by 2010? Here's the code. ```python start_year = 1990 end_year = 2010 print(end_year - start_year) ``` Result = 20 That is 20 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0054259
<|start|><|user|> 4 runs at 300 calories each burn how many calories in total?<|eot|> <|assistant|> ```python per_session = 300 sessions = 4 total = per_session * sessions # 1200 print(total) ``` Running this gives: 1200 That burns 1200 calories.<|eot|> <|end|>
chat
[ { "role": "user", "content": "4 runs at 300 calories each burn how many calories in total?" }, { "role": "assistant", "content": "```python\nper_session = 300\nsessions = 4\ntotal = per_session * sessions # 1200\nprint(total)\n```\nRunning this gives: 1200\n\nThat burns 1200 calories." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0054260
At 40 miles per hour, how many minutes does a 160-mile trip take? The trip takes 240 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "240", "printed": "240", "notation": null}
nlprog_det-setting-0054261
<|start|><|system|> You may call the tools below. [{"name": "run_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> How many of 155 votes ma...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"run_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\":...
nlprog_det
setting
original
null
deterministic
[]
[]
212
{"gold": "117", "printed": "117", "notation": null}
nlprog_det-setting-0054262
Yoko earns $22.40 an hour and time and a half for hours over 40. What is the pay for a 45-hour week? rate = 22.4 hours = 45 regular = 40 * rate overtime = (hours - 40) * rate * 1.5 pay = regular + overtime print(f"{pay:.2f}") What it prints — 1064.00 The weekly pay is $1,064.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "1064.00", "printed": "1064.00", "notation": null}
nlprog_det-setting-0054263
At an exchange rate of 1.35 USD per CHF, how many USD is 1,011 CHF? ```python amount = 1011 rate = 1.35 converted = amount * rate # 1364.8500000000001 print(f"{converted:.2f}") ``` (Execution result: 1364.85) That is 1,364.85 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "1364.85", "printed": "1364.85", "notation": null}
nlprog_det-setting-0054265
<|start|><|system|> You are a precise assistant.<|eot|> <|user|> A hall has 20 rows of 17 seats, and 40 seats are empty. How many people are seated?<|eot|> <|assistant|> rows = 20 per_row = 17 empty = 40 seated = rows * per_row - empty # 300 print(seated) That prints: 300 300 people are seated.<|e...
chat
[ { "role": "system", "content": "You are a precise assistant." }, { "role": "user", "content": "A hall has 20 rows of 17 seats, and 40 seats are empty. How many people are seated?" }, { "role": "assistant", "content": " rows = 20\n per_row = 17\n empty = 40\n seated = rows...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0054266
<|start|><|user|> Convert 42.8 km to meters.<|eot|> <|assistant|> ```python km = 42.8 meters = km * 1000 # 42800.0 print(round(meters)) ``` This prints 42800, as expected. 42,800 m.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 42.8 km to meters." }, { "role": "assistant", "content": "```python\nkm = 42.8\nmeters = km * 1000 # 42800.0\nprint(round(meters))\n```\nThis prints 42800, as expected.\n\n42,800 m." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "42800", "printed": "42800", "notation": null}
nlprog_det-setting-0054267
Of a $5,000 budget, $500 has been spent. What percent is that? Here's the code. ```python budget = 5000 spent = 500 percent = spent / budget * 100 # 10.0 print(round(percent, 1)) ``` Executing it gives 10.0. 10.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "10.0", "printed": "10.0", "notation": null}
nlprog_det-setting-0054268
<|start|><|user|> A $2,500 security deposit has deductions of $60, $85 and $150. How much is refunded?<|eot|> <|assistant|> ```python deposit = 2500 deductions = [60, 85, 150] refund = deposit - sum(deductions) # 2205 print(refund) ``` Run output — 2205 $2,205 is returned.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $2,500 security deposit has deductions of $60, $85 and $150. How much is refunded?" }, { "role": "assistant", "content": "```python\ndeposit = 2500\ndeductions = [60, 85, 150]\nrefund = deposit - sum(deductions) # 2205\nprint(refund)\n```\nRun output — 2205\n\n$2...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "2205", "printed": "2205", "notation": null}
nlprog_det-setting-0054269
<|start|><|user|> A 9 lb package ships at $5 base plus $0.75/lb. What is the charge?<|eot|> <|assistant|> ```python base = 5 per_pound = 0.75 weight = 9 cost = base + per_pound * weight # 11.75 print(f"{cost:.2f}") ``` This prints: 11.75 The charge is $11.75.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 9 lb package ships at $5 base plus $0.75/lb. What is the charge?" }, { "role": "assistant", "content": "```python\nbase = 5\nper_pound = 0.75\nweight = 9\ncost = base + per_pound * weight # 11.75\nprint(f\"{cost:.2f}\")\n```\nThis prints: 11.75\n\nThe charge is $...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "11.75", "printed": "11.75", "notation": null}
nlprog_det-setting-0054270
A court charges $10 per request plus $0.10 per page after the first 0 pages. What does a 94-page copy cost? As a program: ```python pages = 94 base = 10 per_page = 0.1 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 19.4 print(f"{cost:.2f}") ``` (Printed result: 19.40) The copy costs $19.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "19.40", "printed": "19.40", "notation": null}
nlprog_det-setting-0054271
Revenue is $6,000 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)? Programmatically: ```python revenue = 6000 costs = 4000 profit = revenue - costs margin = profit / revenue * 100 print(round(margin, 1)) ``` Running this gives: 33.3 The margin is 33.3%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "33.3", "printed": "33.3", "notation": null}
nlprog_det-setting-0054272
A board has 38 members. A majority is more than half. How many votes make a majority? A Python solution: ```python members = 38 majority = members // 2 + 1 # 20 print(majority) ``` Console output — 20 20 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0054274
A meal costs $181.59. How much is a 20% tip? Computation in Python: bill = 181.59 tip_rate = 20 / 100 # 0.2 tip = bill * tip_rate # 36.318000000000005 print(f"{tip:.2f}") Output: 36.32 The tip is $36.32.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "36.32", "printed": "36.32", "notation": null}
nlprog_det-setting-0054275
A measure needs at least 60% of 127 votes. How many votes is that, rounded up? Code: ```python import math voters = 127 needed = math.ceil(voters * 60 / 100) print(needed) ``` (Program output: 77) 77 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0054276
<|start|><|user|> $2,000 is invested at 4% compounded yearly. What is it worth after 3 years?<|eot|> <|assistant|> ```python principal = 2000 rate = 4 / 100 # 0.04 years = 3 value = principal * (1 + rate) ** years # 2249.728 print(f"{value:.2f}") ``` The script prints: 2249.73 It is worth $2,249.73.<|eot|> <|end|>
chat
[ { "role": "user", "content": "$2,000 is invested at 4% compounded yearly. What is it worth after 3 years?" }, { "role": "assistant", "content": "```python\nprincipal = 2000\nrate = 4 / 100 # 0.04\nyears = 3\nvalue = principal * (1 + rate) ** years # 2249.728\nprint(f\"{value:.2f}\")\n```\nThe ...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "2249.73", "printed": "2249.73", "notation": null}
nlprog_det-setting-0054277
Copies cost $15 plus $0.10 for each page beyond 0. How much for 106 pages? Here is a short program for it. ```python pages = 106 base = 15 per_page = 0.1 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 25.6 print(f"{cost:.2f}") ``` stdout = 25.60 The copy costs $25.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "25.60", "printed": "25.60", "notation": null}
nlprog_det-setting-0054278
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> 36 folders cost $8 apiece. With 6% tax added, what is the total?<|eot|> <|assistant|> ```python quantity = 36 unit_price = 8 subtotal = quantity * unit_price # 288 total = subtotal * (1 + 6 / 100) # 305.28000000000003 print(f"{total:.2f}") ``` The printout ...
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "36 folders cost $8 apiece. With 6% tax added, what is the total?" }, { "role": "assistant", "content": "```python\nquantity = 36\nunit_price = 8\nsubtotal = quantity * unit_price # 288\ntotal ...
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "305.28", "printed": "305.28", "notation": null}
nlprog_det-setting-0054279
7 walks at 150 calories each burn how many calories in total? A short script: ```python per_session = 150 sessions = 7 total = per_session * sessions # 1050 print(total) ``` (Console output: 1050) 1050 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "1050", "printed": "1050", "notation": null}
nlprog_det-setting-0054280
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "sandbox_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> Con...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"sandbox_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source co...
nlprog_det
setting
original
null
deterministic
[]
[]
235
{"gold": "3879.82", "printed": "3879.82", "notation": null}
nlprog_det-setting-0054281
4 bike rides at 200 calories each burn how many calories in total? That burns 800 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "800", "printed": "800", "notation": null}
nlprog_det-setting-0054282
With 40% off, what does a $80 kettle cost? Written as code: ```python price = 80 discount = 40 / 100 # 0.4 sale_price = price * (1 - discount) # 48.0 print(f"{sale_price:.2f}") ``` Python prints 48.00. The sale price is $48.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "48.00", "printed": "48.00", "notation": null}
nlprog_det-setting-0054283
A quorum is 1/3 of the 19 members, rounded up. How many members make a quorum? 7 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "7", "printed": "7", "notation": null}
nlprog_det-setting-0054284
<|start|><|user|> Walls total 1220 sq ft and each can covers 250 sq ft. How many cans should be bought?<|eot|> <|assistant|> ```python import math area = 1220 coverage = 250 cans = math.ceil(area / coverage) # 5 print(cans) ``` stdout: 5 5 cans are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Walls total 1220 sq ft and each can covers 250 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "```python\nimport math\narea = 1220\ncoverage = 250\ncans = math.ceil(area / coverage) # 5\nprint(cans)\n```\nstdout:\n5\n\n5 cans are neede...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0054285
<|start|><|user|> A 21 lb package ships at $8 base plus $1.50/lb. What is the charge?<|eot|> <|assistant|> base = 8 per_pound = 1.5 weight = 21 cost = base + per_pound * weight # 39.5 print(f"{cost:.2f}") Out — 39.50 The charge is $39.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 21 lb package ships at $8 base plus $1.50/lb. What is the charge?" }, { "role": "assistant", "content": " base = 8\n per_pound = 1.5\n weight = 21\n cost = base + per_pound * weight # 39.5\n print(f\"{cost:.2f}\")\nOut — 39.50\n\nThe charge is $39....
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "39.50", "printed": "39.50", "notation": null}
nlprog_det-setting-0054286
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "interpreter", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"interpreter\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Py...
nlprog_det
setting
original
null
deterministic
[]
[]
276
{"gold": "2021-01-15", "printed": "2021-01-15", "notation": null}
nlprog_det-setting-0054287
<|start|><|system|> Available functions (JSON Schema): [{"name": "sandbox_python", "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|>...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"sandbox_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source ...
nlprog_det
setting
original
null
deterministic
[]
[]
229
{"gold": "225", "printed": "225", "notation": null}
nlprog_det-setting-0054288
$10,000 is invested at 3% compounded yearly. What is it worth after 5 years? Here is a short program for it. ```python principal = 10000 rate = 3 / 100 # 0.03 years = 5 value = principal * (1 + rate) ** years # 11592.740743 print(f"{value:.2f}") ``` Run it and it prints: 11592.74 The balance is $11,592.74.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "11592.74", "printed": "11592.74", "notation": null}
nlprog_det-setting-0054289
<|start|><|user|> Split $3,130 between Oskar and Yara in the ratio 2 to 3. What is Oskar's share?<|eot|> <|assistant|> total = 3130 parts_a = 2 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 1252 print(share_a) Executing it gives 1252. Oskar gets $1,252.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Split $3,130 between Oskar and Yara in the ratio 2 to 3. What is Oskar's share?" }, { "role": "assistant", "content": " total = 3130\n parts_a = 2\n parts_b = 3\n share_a = total * parts_a // (parts_a + parts_b) # 1252\n print(share_a)\nExecuting it ...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "1252", "printed": "1252", "notation": null}
nlprog_det-setting-0054290
A lawyer's fee is 30% of a $150,000 recovery. How large is the fee? The computation: ```python recovery = 150000 rate = 30 / 100 # 0.3 fee = recovery * rate # 45000.0 print(f"{fee:.2f}") ``` Execution result — 45000.00 The fee is $45,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "45000.00", "printed": "45000.00", "notation": null}
nlprog_det-setting-0054291
<|start|><|user|> Printing costs 10 cents a page. What does it cost to print 181 copies of a 7-page handout?<|eot|> <|assistant|> ```python pages = 7 copies = 181 cost_per_page = 0.1 cost = pages * copies * cost_per_page # 126.7 print(f"{cost:.2f}") ``` It outputs: 126.70 The job costs $126.70.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Printing costs 10 cents a page. What does it cost to print 181 copies of a 7-page handout?" }, { "role": "assistant", "content": "```python\npages = 7\ncopies = 181\ncost_per_page = 0.1\ncost = pages * copies * cost_per_page # 126.7\nprint(f\"{cost:.2f}\")\n```\nIt...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "126.70", "printed": "126.70", "notation": null}
nlprog_det-setting-0054292
On which weekday does July 6, 2009 fall? from datetime import date hearing = date(2009, 7, 6) # datetime.date(2009, 7, 6) print(hearing.strftime("%A")) Run it and it prints: Monday July 6, 2009 is a Monday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "Monday", "printed": "Monday", "notation": null}
nlprog_det-setting-0054293
Rafael earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 48-hour week? Computing it: ```python rate = 20.0 hours = 48 regular = 40 * rate # 800.0 overtime = (hours - 40) * rate * 1.5 # 240.0 pay = regular + overtime # 1040.0 print(f"{pay:.2f}") ``` Result — 1040.00 Rafael earns $1,0...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "1040.00", "printed": "1040.00", "notation": null}
nlprog_det-setting-0054294
<|start|><|system|> Tool definitions: {"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}} {"name": "interpreter", "description": "Executes a Python program and returns its output...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}\n{\"name\": \"interpreter\", \"descri...
nlprog_det
setting
original
null
deterministic
[]
[]
337
{"gold": "2026-10-20", "printed": "2026-10-20", "notation": null}
nlprog_det-setting-0054295
A appointment starts at 11:20 AM and lasts 135 minutes. When does it end? Let's compute it with Python. ```python start = 11 * 60 + 20 end = start + 135 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` The run gives 1:35 PM. It ends at 1:35 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "1:35 PM", "printed": "1:35 PM", "notation": null}
nlprog_det-setting-0054296
<|start|><|user|> Kofi's scores were 69, 66, 60, 73, 99, 59 and 92. What is the average score?<|eot|> <|assistant|> ```python scores = [69, 66, 60, 73, 99, 59, 92] average = sum(scores) // len(scores) # 74 print(average) ``` Result: 74 The average score is 74.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Kofi's scores were 69, 66, 60, 73, 99, 59 and 92. What is the average score?" }, { "role": "assistant", "content": "```python\nscores = [69, 66, 60, 73, 99, 59, 92]\naverage = sum(scores) // len(scores) # 74\nprint(average)\n```\nResult:\n74\n\nThe average score is...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "74", "printed": "74", "notation": null}
nlprog_det-setting-0054298
A water bill is $12 plus $3.50 per thousand gallons beyond the first 2 thousand. What is the bill for 5 thousand gallons? ```python base = 12 rate = 3.5 used = 5 free = 2 bill = base + rate * max(0, used - free) # 22.5 print(f"{bill:.2f}") ``` The script prints 22.50. The bill is $22.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "22.50", "printed": "22.50", "notation": null}
nlprog_det-setting-0054299
With 30% off, what does a $90 printer cost? Let the code do the arithmetic: ```python price = 90 discount = 30 / 100 # 0.3 sale_price = price * (1 - discount) # 62.99999999999999 print(f"{sale_price:.2f}") ``` Result — 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}
nlprog_det-setting-0054300
What percentage of $8,000 is $1,600? We can compute it in Python. ```python budget = 8000 spent = 1600 percent = spent / budget * 100 # 20.0 print(round(percent, 1)) ``` (Console output: 20.0) 20.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "20.0", "printed": "20.0", "notation": null}
nlprog_det-setting-0054301
<|start|><|user|> At 1% a month (simple), what interest builds on $2,500 over 6 months?<|eot|> <|assistant|> balance = 2500 monthly_rate = 1 / 100 # 0.01 months = 6 interest = balance * monthly_rate * months # 150.0 print(f"{interest:.2f}") This prints: 150.00 $150.00 accrues.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 1% a month (simple), what interest builds on $2,500 over 6 months?" }, { "role": "assistant", "content": " balance = 2500\n monthly_rate = 1 / 100 # 0.01\n months = 6\n interest = balance * monthly_rate * months # 150.0\n print(f\"{interest:.2f}\...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "150.00", "printed": "150.00", "notation": null}
nlprog_det-setting-0054302
<|start|><|user|> 51 copies of a 55-page packet are printed at $0.08 per page. What is the cost?<|eot|> <|assistant|> ```python pages = 55 copies = 51 cost_per_page = 0.08 cost = pages * copies * cost_per_page # 224.4 print(f"{cost:.2f}") ``` Out = 224.40 The job costs $224.40.<|eot|> <|end|>
chat
[ { "role": "user", "content": "51 copies of a 55-page packet are printed at $0.08 per page. What is the cost?" }, { "role": "assistant", "content": "```python\npages = 55\ncopies = 51\ncost_per_page = 0.08\ncost = pages * copies * cost_per_page # 224.4\nprint(f\"{cost:.2f}\")\n```\nOut = 224.40\...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "224.40", "printed": "224.40", "notation": null}
nlprog_det-setting-0054303
<|start|><|system|> Tools you may use: [{"name": "code_runner", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "lookup_statute", "description"...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"code_runner\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [...
nlprog_det
setting
original
null
deterministic
[]
[]
433
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0054304
To read 434 pages in 14 days, how many pages per day are needed? That is 31 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "31", "printed": "31", "notation": null}
nlprog_det-setting-0054305
<|start|><|user|> A 12-month warranty starts on August 7, 2020. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date start = date(2020, 8, 7) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat...
chat
[ { "role": "user", "content": "A 12-month warranty starts on August 7, 2020. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2020, 8, 7)\nmonths = 12\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(start.ye...
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "2021-08-07", "printed": "2021-08-07", "notation": null}
nlprog_det-setting-0054306
A customer buys 1 hard drives at $4 each, 2 badges at $19 each, 2 pens at $23 each and pays with $100. How much change is due? Python does the arithmetic: ```python items = [(1, 4), (2, 19), (2, 23)] total = sum(q * p for q, p in items) # 88 paid = 100 change = paid - total # 12 print(change) ``` Console output: 12 ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0054307
<|start|><|system|> Tool definitions: [{"name": "python_exec", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "get_weather", "description": "Get the weat...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"python_exec\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}...
nlprog_det
setting
original
null
deterministic
[]
[]
284
{"gold": "257.92", "printed": "257.92", "notation": null}
nlprog_det-setting-0054308
Fines run at $100 per day up to a maximum of $2,500. How much after 18 days? As Python: ```python per_day = 100 days = 18 cap = 2500 fine = min(per_day * days, cap) # 1800 print(fine) ``` Printed = 1800 $1,800 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "1800", "printed": "1800", "notation": null}
nlprog_det-setting-0054309
<|start|><|system|> You are a precise assistant.<|eot|> <|user|> Goods bought on August 19, 2025 carry a 36-month warranty. When does it expire?<|eot|> <|assistant|> ```python from datetime import date start = date(2025, 8, 19) months = 36 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year ...
chat
[ { "role": "system", "content": "You are a precise assistant." }, { "role": "user", "content": "Goods bought on August 19, 2025 carry a 36-month warranty. When does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2025, 8, 19)\nmonth...
nlprog_det
setting
original
null
deterministic
[]
[]
162
{"gold": "2028-08-19", "printed": "2028-08-19", "notation": null}
nlprog_det-setting-0054310
<|start|><|system|> You may call the tools below. [{"name": "python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> What percentage of...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require...
nlprog_det
setting
original
null
deterministic
[]
[]
205
{"gold": "37.5", "printed": "37.5", "notation": null}
nlprog_det-setting-0054312
<|start|><|user|> A service costs $25 a month or $252 a year. How much does the yearly plan save over 12 monthly payments?<|eot|> <|assistant|> ```python monthly = 25 yearly = 252 savings = monthly * 12 - yearly # 48 print(savings) ``` Program output: 48 The annual plan saves $48.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A service costs $25 a month or $252 a year. How much does the yearly plan save over 12 monthly payments?" }, { "role": "assistant", "content": "```python\nmonthly = 25\nyearly = 252\nsavings = monthly * 12 - yearly # 48\nprint(savings)\n```\nProgram output: 48\n\nT...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0054313
<|start|><|system|> You are a precise assistant.<|eot|> <|user|> Each storage box holds 50 files. How many boxes are needed for 45 files?<|eot|> <|assistant|> ```python import math files = 45 per_box = 50 boxes = math.ceil(files / per_box) # 1 print(boxes) ``` Result: 1 1 boxes are needed.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a precise assistant." }, { "role": "user", "content": "Each storage box holds 50 files. How many boxes are needed for 45 files?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 45\nper_box = 50\nboxes = math.ceil(files / p...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "1", "printed": "1", "notation": null}
nlprog_det-setting-0054314
A clerk's office charges $75 for each filing. Jonas submits 8 filings. What is the total fee? Python: ```python fee = 75 filings = 8 total = fee * filings # 600 print(total) ``` The code prints: 600 The filings cost $600 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0054315
<|start|><|system|> Keep answers short and correct.<|eot|> <|user|> 102 volunteers are split into 9 equal teams. How many are on each team, and how many are left over?<|eot|> <|assistant|> ```python total = 102 groups = 9 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ```...
chat
[ { "role": "system", "content": "Keep answers short and correct." }, { "role": "user", "content": "102 volunteers are split into 9 equal teams. How many are on each team, and how many are left over?" }, { "role": "assistant", "content": "```python\ntotal = 102\ngroups = 9\nper_group, ...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "11 each, 3 left over", "printed": "11 each, 3 left over", "notation": null}
nlprog_det-setting-0054316
If a 40-minute meeting begins at 4:40 PM, what time does it finish? Code: ```python start = 16 * 60 + 40 end = start + 40 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` (Console output: 5:20 PM) The meeting finishes at 5:20 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "5:20 PM", "printed": "5:20 PM", "notation": null}