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-0048730
<|start|><|user|> A 300-mile drive at a steady 50 mph takes how many minutes?<|eot|> <|assistant|> The trip takes 360 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 300-mile drive at a steady 50 mph takes how many minutes?" }, { "role": "assistant", "content": "The trip takes 360 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "360", "printed": "360", "notation": null}
nlprog_det-setting-0048731
<|start|><|user|> What simple interest does $12,000 earn at 5% a year over 2 years?<|eot|> <|assistant|> ```python principal = 12000 rate = 5 / 100 # 0.05 years = 2 interest = principal * rate * years # 1200.0 print(f"{interest:.2f}") ``` stdout — 1200.00 The interest is $1,200.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What simple interest does $12,000 earn at 5% a year over 2 years?" }, { "role": "assistant", "content": "```python\nprincipal = 12000\nrate = 5 / 100 # 0.05\nyears = 2\ninterest = principal * rate * years # 1200.0\nprint(f\"{interest:.2f}\")\n```\nstdout — 1200.00...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "1200.00", "printed": "1200.00", "notation": null}
nlprog_det-setting-0048732
<|start|><|user|> A water bill is $20 plus $5.10 per thousand gallons beyond the first 3 thousand. What is the bill for 25 thousand gallons?<|eot|> <|assistant|> base = 20 rate = 5.1 used = 25 free = 3 bill = base + rate * max(0, used - free) # 132.2 print(f"{bill:.2f}") # result: 132.20 $132....
chat
[ { "role": "user", "content": "A water bill is $20 plus $5.10 per thousand gallons beyond the first 3 thousand. What is the bill for 25 thousand gallons?" }, { "role": "assistant", "content": " base = 20\n rate = 5.1\n used = 25\n free = 3\n bill = base + rate * max(0, used - free)...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "132.20", "printed": "132.20", "notation": null}
nlprog_det-setting-0048733
A service costs $29 a month or $330 a year. How much does the yearly plan save over 12 monthly payments? Code: ```python monthly = 29 yearly = 330 savings = monthly * 12 - yearly # 18 print(savings) ``` Executing it gives 18, as expected. $18 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0048734
<|start|><|user|> To read 507 pages in 13 days, how many pages per day are needed?<|eot|> <|assistant|> ```python pages = 507 days = 13 per_day = pages // days # 39 print(per_day) ``` Execution prints: 39 39 pages a day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "To read 507 pages in 13 days, how many pages per day are needed?" }, { "role": "assistant", "content": "```python\npages = 507\ndays = 13\nper_day = pages // days # 39\nprint(per_day)\n```\nExecution prints: 39\n\n39 pages a day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "39", "printed": "39", "notation": null}
nlprog_det-setting-0048735
A 17 lb package ships at $10 base plus $2.00/lb. What is the charge? ```python base = 10 per_pound = 2.0 weight = 17 cost = base + per_pound * weight # 44.0 print(f"{cost:.2f}") ``` Shell output: 44.00 Shipping costs $44.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "44.00", "printed": "44.00", "notation": null}
nlprog_det-setting-0048736
<|start|><|user|> A 390-mile drive at a steady 65 mph takes how many minutes?<|eot|> <|assistant|> ```python distance = 390 speed = 65 minutes = distance / speed * 60 # 360.0 print(round(minutes)) ``` Result — 360 360 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 390-mile drive at a steady 65 mph takes how many minutes?" }, { "role": "assistant", "content": "```python\ndistance = 390\nspeed = 65\nminutes = distance / speed * 60 # 360.0\nprint(round(minutes))\n```\nResult — 360\n\n360 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "360", "printed": "360", "notation": null}
nlprog_det-setting-0048737
A lawyer's fee is 40% of a $60,000 recovery. How large is the fee? ```python recovery = 60000 rate = 40 / 100 # 0.4 fee = recovery * rate # 24000.0 print(f"{fee:.2f}") ``` Python prints 24000.00, as expected. The fee is $24,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "24000.00", "printed": "24000.00", "notation": null}
nlprog_det-setting-0048738
<|start|><|user|> Copies cost $10 plus $0.25 for each page beyond 0. How much for 55 pages?<|eot|> <|assistant|> ```python pages = 55 base = 10 per_page = 0.25 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 23.75 print(f"{cost:.2f}") ``` # result: 23.75 The total is $23.75.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Copies cost $10 plus $0.25 for each page beyond 0. How much for 55 pages?" }, { "role": "assistant", "content": "```python\npages = 55\nbase = 10\nper_page = 0.25\nfree_pages = 0\ncost = base + max(0, pages - free_pages) * per_page # 23.75\nprint(f\"{cost:.2f}\")\n...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "23.75", "printed": "23.75", "notation": null}
nlprog_det-setting-0048739
A $3,600 loan carries 8% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment? A Python solution: ```python principal = 3600 annual_rate = 8 / 100 # 0.08 months = 24 interest = principal * annual_rate * months / 12 # 576.0 payment = (principal + int...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "174.00", "printed": "174.00", "notation": null}
nlprog_det-setting-0048740
<|start|><|user|> A meal costs $64.33. How much is a 25% tip?<|eot|> <|assistant|> ```python bill = 64.33 tip_rate = 25 / 100 # 0.25 tip = bill * tip_rate # 16.0825 print(f"{tip:.2f}") ``` Program output — 16.08 Leave $16.08.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A meal costs $64.33. How much is a 25% tip?" }, { "role": "assistant", "content": "```python\nbill = 64.33\ntip_rate = 25 / 100 # 0.25\ntip = bill * tip_rate # 16.0825\nprint(f\"{tip:.2f}\")\n```\nProgram output — 16.08\n\nLeave $16.08." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "16.08", "printed": "16.08", "notation": null}
nlprog_det-setting-0048741
Papers were served by mail on September 1, 2026. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date? As Python: ```python from datetime import date, timedelta served = date(2026, 9, 1) # datetime.date(2026, 9, 1) response_days = 14 mail_days = 3 due = served + timedelta(days=...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
187
{"gold": "2026-09-18", "printed": "2026-09-18", "notation": null}
nlprog_det-setting-0048742
13 of 25 members attended. What percent attended? Translated to Python: ```python present = 13 total = 25 percent = present / total * 100 # 52.0 print(round(percent, 1)) ``` Out: 52.0 Attendance was 52.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "52.0", "printed": "52.0", "notation": null}
nlprog_det-setting-0048743
Of a $5,000 budget, $700 has been spent. What percent is that? We write it as a program: ```python budget = 5000 spent = 700 percent = spent / budget * 100 # 14.000000000000002 print(round(percent, 1)) ``` Executing it gives: 14.0 14.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "14.0", "printed": "14.0", "notation": null}
nlprog_det-setting-0048744
<|start|><|user|> Equipment costs $30,000, has a salvage value of $2,000, and a useful life of 6 years. What is the straight-line depreciation per year?<|eot|> <|assistant|> ```python cost = 30000 salvage = 2000 years = 6 per_year = (cost - salvage) / years # 4666.666666666667 print(f"{per_year:.2f}") ``` Executing it...
chat
[ { "role": "user", "content": "Equipment costs $30,000, has a salvage value of $2,000, and a useful life of 6 years. What is the straight-line depreciation per year?" }, { "role": "assistant", "content": "```python\ncost = 30000\nsalvage = 2000\nyears = 6\nper_year = (cost - salvage) / years # 4...
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "4666.67", "printed": "4666.67", "notation": null}
nlprog_det-setting-0048745
<|start|><|user|> 289 files go into boxes of 40. How many boxes does that take?<|eot|> <|assistant|> ```python import math files = 289 per_box = 40 boxes = math.ceil(files / per_box) # 8 print(boxes) ``` The program prints 8, as expected. It takes 8 boxes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "289 files go into boxes of 40. How many boxes does that take?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 289\nper_box = 40\nboxes = math.ceil(files / per_box) # 8\nprint(boxes)\n```\nThe program prints 8, as expected.\n\nIt takes 8 boxes...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0048746
<|start|><|user|> 4 books come back 15 days late, at $0.50 a day each. What is the fine?<|eot|> <|assistant|> ```python per_day = 0.5 days_late = 15 books = 4 fine = per_day * days_late * books # 30.0 print(f"{fine:.2f}") ``` Interpreter output: 30.00 $30.00 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "4 books come back 15 days late, at $0.50 a day each. What is the fine?" }, { "role": "assistant", "content": "```python\nper_day = 0.5\ndays_late = 15\nbooks = 4\nfine = per_day * days_late * books # 30.0\nprint(f\"{fine:.2f}\")\n```\nInterpreter output: 30.00\n\n$...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "30.00", "printed": "30.00", "notation": null}
nlprog_det-setting-0048747
Parking is $4 per hour with a daily maximum of $18. What do 7 hours cost? Programmatically: rate = 4 hours = 7 daily_max = 18 cost = min(rate * hours, daily_max) # 18 print(cost) The script prints: 18 The charge is $18.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0048748
To read 140 pages in 4 days, how many pages per day are needed? Here is a short program for it. ```python pages = 140 days = 4 per_day = pages // days # 35 print(per_day) ``` The code prints: 35 That is 35 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "35", "printed": "35", "notation": null}
nlprog_det-setting-0048749
A client paid a $7,500 retainer. The firm has billed 11 hours at $200 per hour. How much of the retainer is left? A short script: ```python retainer = 7500 hours = 11 rate = 200 left = retainer - hours * rate # 5300 print(left) ``` The run gives 5300. The remaining balance is $5,300.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "5300", "printed": "5300", "notation": null}
nlprog_det-setting-0048750
<|start|><|system|> Show working only when it helps.<|eot|> <|user|> Convert -15 °C to Fahrenheit.<|eot|> <|assistant|> ```python celsius = -15 fahrenheit = celsius * 9 / 5 + 32 print(round(fahrenheit)) ``` On running, it outputs 5. That is 5 °F.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Show working only when it helps." }, { "role": "user", "content": "Convert -15 °C to Fahrenheit." }, { "role": "assistant", "content": "```python\ncelsius = -15\nfahrenheit = celsius * 9 / 5 + 32\nprint(round(fahrenheit))\n```\nOn running, it outputs 5...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0048752
<|start|><|system|> You can call tools. Available tools: [{"name": "run_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|>...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"run_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source c...
nlprog_det
setting
original
null
deterministic
[]
[]
256
{"gold": "2111", "printed": "2111", "notation": null}
nlprog_det-setting-0048753
A 198-page report must be reviewed in 11 days. How many pages a day is that, evenly? Here's the code. ```python pages = 198 days = 11 per_day = pages // days # 18 print(per_day) ``` (Program output: 18) That is 18 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0048754
<|start|><|system|> Tools (call with JSON): {"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}} {"name": "python", "description": "Executes a Python prog...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\", \"end\"]}...
nlprog_det
setting
original
null
deterministic
[]
[]
371
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0048755
<|start|><|user|> What is a 15% tip on a $67.86 bill?<|eot|> <|assistant|> ```python bill = 67.86 tip_rate = 15 / 100 # 0.15 tip = bill * tip_rate # 10.179 print(f"{tip:.2f}") ``` # program output: 10.18 The tip is $10.18.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is a 15% tip on a $67.86 bill?" }, { "role": "assistant", "content": "```python\nbill = 67.86\ntip_rate = 15 / 100 # 0.15\ntip = bill * tip_rate # 10.179\nprint(f\"{tip:.2f}\")\n```\n# program output: 10.18\n\nThe tip is $10.18." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "10.18", "printed": "10.18", "notation": null}
nlprog_det-setting-0048756
Papers were served by mail on May 24, 2023. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date? It is due June 10, 2023.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "2023-06-10", "printed": "2023-06-10", "notation": null}
nlprog_det-setting-0048757
Pack A has 6 items for $9.44. Pack B has 30 items for $29.56. Which has the lower price per item? Programmatically: pack_a = 9.44 / 6 # 1.5733333333333333 pack_b = 29.56 / 30 # 0.9853333333333333 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) # output: B Pack B is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0048758
Find the mean of these test scores: 62, 79, 81 and 98. Let's compute it with Python. ```python scores = [62, 79, 81, 98] average = sum(scores) // len(scores) # 80 print(average) ``` What it prints: 80 The mean is 80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "80", "printed": "80", "notation": null}
nlprog_det-setting-0048759
<|start|><|user|> Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 52 hours?<|eot|> <|assistant|> ```python rate = 16.0 hours = 52 regular = 40 * rate # 640.0 overtime = (hours - 40) * rate * 1.5 # 288.0 pay = regular + overtime # 928.0 print(f"{pay:.2f}") ``` # result: 928.00 ...
chat
[ { "role": "user", "content": "Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 52 hours?" }, { "role": "assistant", "content": "```python\nrate = 16.0\nhours = 52\nregular = 40 * rate # 640.0\novertime = (hours - 40) * rate * 1.5 # 288.0\npay = regular + o...
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "928.00", "printed": "928.00", "notation": null}
nlprog_det-setting-0048760
$2,000 is invested at 3% compounded yearly. What is it worth after 3 years? Written as code: ```python principal = 2000 rate = 3 / 100 # 0.03 years = 3 value = principal * (1 + rate) ** years # 2185.454 print(f"{value:.2f}") ``` The program prints 2185.45. It is worth $2,185.45.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "2185.45", "printed": "2185.45", "notation": null}
nlprog_det-setting-0048762
Revenue is $37,000 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)? Profit is 2.7% of revenue.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "2.7", "printed": "2.7", "notation": null}
nlprog_det-setting-0048763
<|start|><|user|> A trial runs from August 1, 2023 to August 7, 2023, counting both days. How many calendar days is that?<|eot|> <|assistant|> ```python from datetime import date first = date(2023, 8, 1) # datetime.date(2023, 8, 1) last = date(2023, 8, 7) # datetime.date(2023, 8, 7) days = (last - first).days + 1 # ...
chat
[ { "role": "user", "content": "A trial runs from August 1, 2023 to August 7, 2023, counting both days. How many calendar days is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2023, 8, 1) # datetime.date(2023, 8, 1)\nlast = date(2023, 8, 7) # dat...
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "7", "printed": "7", "notation": null}
nlprog_det-setting-0048764
Of a $8,000 budget, $5,800 has been spent. What percent is that? The computation: ```python budget = 8000 spent = 5800 percent = spent / budget * 100 # 72.5 print(round(percent, 1)) ``` The code prints 72.5. 72.5% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "72.5", "printed": "72.5", "notation": null}
nlprog_det-setting-0048765
Delia's scores were 60, 70, 53, 60 and 57. What is the average score? Translated to Python: ```python scores = [60, 70, 53, 60, 57] average = sum(scores) // len(scores) # 60 print(average) ``` It outputs: 60 The mean is 60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0048766
<|start|><|user|> How many 1-foot square tiles cover a 18 ft by 10 ft floor (round up)?<|eot|> <|assistant|> It takes 180 tiles.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many 1-foot square tiles cover a 18 ft by 10 ft floor (round up)?" }, { "role": "assistant", "content": "It takes 180 tiles." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "180", "printed": "180", "notation": null}
nlprog_det-setting-0048767
9 boxes hold 8 tape rolls each. After 10 are handed out, how many are left? We write it as a program: ```python boxes = 9 per_box = 8 given_away = 10 left = boxes * per_box - given_away # 62 print(left) ``` Program output: 62 62 tape rolls are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "62", "printed": "62", "notation": null}
nlprog_det-setting-0048768
After a 40% fee is taken from a $48,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share? The Python version: ```python award = 48000 fee = award * 40 / 100 # 19200.0 remaining = award - fee # 28800.0 per_client = remaining / 4 # 7200.0 print(f"{per_client:.2f}") ``` On running, it...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "7200.00", "printed": "7200.00", "notation": null}
nlprog_det-setting-0048769
<|start|><|user|> 3 walks at 400 calories each burn how many calories in total?<|eot|> <|assistant|> per_session = 400 sessions = 3 total = per_session * sessions # 1200 print(total) This prints: 1200 1200 calories in total.<|eot|> <|end|>
chat
[ { "role": "user", "content": "3 walks at 400 calories each burn how many calories in total?" }, { "role": "assistant", "content": " per_session = 400\n sessions = 3\n total = per_session * sessions # 1200\n print(total)\nThis prints: 1200\n\n1200 calories in total." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0048770
Count the days between February 18, 2026 and January 27, 2027. Let the code do the arithmetic: ```python from datetime import date first = date(2026, 2, 18) # datetime.date(2026, 2, 18) second = date(2027, 1, 27) # datetime.date(2027, 1, 27) print((second - first).days) ``` Python prints: 343 There are 343 days bet...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "343", "printed": "343", "notation": null}
nlprog_det-setting-0048771
Each storage box holds 12 files. How many boxes are needed for 705 files? Programmatically: ```python import math files = 705 per_box = 12 boxes = math.ceil(files / per_box) # 59 print(boxes) ``` Result = 59 59 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "59", "printed": "59", "notation": null}
nlprog_det-setting-0048772
A pack of 4 keyboards sells for $152. What does each cost? Python code: total = 152 count = 4 per_item = total // count print(per_item) Console output — 38 The unit price is $38.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "38", "printed": "38", "notation": null}
nlprog_det-setting-0048773
<|start|><|user|> Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 45 hours?<|eot|> <|assistant|> ```python rate = 18.5 hours = 45 regular = 40 * rate # 740.0 overtime = (hours - 40) * rate * 1.5 # 138.75 pay = regular + overtime # 878.75 print(f"{pay:.2f}") ``` (Result: 878.75)...
chat
[ { "role": "user", "content": "Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 45 hours?" }, { "role": "assistant", "content": "```python\nrate = 18.5\nhours = 45\nregular = 40 * rate # 740.0\novertime = (hours - 40) * rate * 1.5 # 138.75\npay = regular + ...
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "878.75", "printed": "878.75", "notation": null}
nlprog_det-setting-0048774
At $20.15 an hour, what does 16 hours of work pay? Translated to Python: ```python rate = 20.15 hours = 16 earnings = rate * hours # 322.4 print(f"{earnings:.2f}") ``` Executing it gives: 322.40 The pay is $322.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "322.40", "printed": "322.40", "notation": null}
nlprog_det-setting-0048775
<|start|><|user|> A 45-day notice period begins on February 6, 2025. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2025, 2, 6) # datetime.date(2025, 2, 6) end = start + timedelta(days=45) # datetime.date(2025, 3, 23) print(end.isoformat()) ``` Run result — ...
chat
[ { "role": "user", "content": "A 45-day notice period begins on February 6, 2025. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2025, 2, 6) # datetime.date(2025, 2, 6)\nend = start + timedelta(days=45) # datetime.d...
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "2025-03-23", "printed": "2025-03-23", "notation": null}
nlprog_det-setting-0048776
<|start|><|user|> How many whole days and leftover hours are in 150 hours?<|eot|> <|assistant|> ```python hours = 150 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Console output — 6 days and 6 hours That is 6 days and 6 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many whole days and leftover hours are in 150 hours?" }, { "role": "assistant", "content": "```python\nhours = 150\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nConsole output — 6 days and 6 hours\n\nThat is 6 days and 6 hours."...
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "6 days and 6 hours", "printed": "6 days and 6 hours", "notation": null}
nlprog_det-setting-0048777
Walls total 1282 sq ft and each can covers 300 sq ft. How many cans should be bought? Here is the program. ```python import math area = 1282 coverage = 300 cans = math.ceil(area / coverage) # 5 print(cans) ``` That prints: 5 5 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0048778
<|start|><|user|> A claim accrued on December 8, 2021. The limitations period is 4 years. On what date does it expire?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2021, 12, 8) # datetime.date(2021, 12, 8) years = 4 expires = accrued.replace(year=accrued.year + years) # datetime.date(2025, ...
chat
[ { "role": "user", "content": "A claim accrued on December 8, 2021. The limitations period is 4 years. On what date does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2021, 12, 8) # datetime.date(2021, 12, 8)\nyears = 4\nexpires = accrued....
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "2025-12-08", "printed": "2025-12-08", "notation": null}
nlprog_det-setting-0048779
How much sales tax is charged on a $721.22 purchase at 9%? Here is the program. ```python price = 721.22 tax_rate = 9 / 100 # 0.09 tax = price * tax_rate # 64.9098 print(f"{tax:.2f}") ``` Output of the run: 64.91 The tax is $64.91.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "64.91", "printed": "64.91", "notation": null}
nlprog_det-setting-0048780
<|start|><|user|> Printing costs 8 cents a page. What does it cost to print 97 copies of a 12-page handout?<|eot|> <|assistant|> ```python pages = 12 copies = 97 cost_per_page = 0.08 cost = pages * copies * cost_per_page # 93.12 print(f"{cost:.2f}") ``` The run gives 93.12, as expected. The job costs $93.12.<|eot|> <...
chat
[ { "role": "user", "content": "Printing costs 8 cents a page. What does it cost to print 97 copies of a 12-page handout?" }, { "role": "assistant", "content": "```python\npages = 12\ncopies = 97\ncost_per_page = 0.08\ncost = pages * copies * cost_per_page # 93.12\nprint(f\"{cost:.2f}\")\n```\nTh...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "93.12", "printed": "93.12", "notation": null}
nlprog_det-setting-0048781
<|start|><|system|> You are a careful assistant.<|eot|> <|user|> A storeroom has 1024 headsets. The office uses 33 a day. How many are left after 4 days?<|eot|> <|assistant|> ```python stock = 1024 per_day = 33 days = 4 left = stock - per_day * days # 892 print(left) ``` # printed result: 892 892 headsets are left.<|...
chat
[ { "role": "system", "content": "You are a careful assistant." }, { "role": "user", "content": "A storeroom has 1024 headsets. The office uses 33 a day. How many are left after 4 days?" }, { "role": "assistant", "content": "```python\nstock = 1024\nper_day = 33\ndays = 4\nleft = stock...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "892", "printed": "892", "notation": null}
nlprog_det-setting-0048783
A count moves from 2,000 to 2,800. By what percent did it change (use a minus sign for a drop)? We can compute it in Python. ```python old = 2000 new = 2800 change = (new - old) / old * 100 print(round(change)) ``` Interpreter output: 40 The change is 40%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0048784
<|start|><|user|> Printing costs 12 cents a page. What does it cost to print 189 copies of a 16-page handout?<|eot|> <|assistant|> ```python pages = 16 copies = 189 cost_per_page = 0.12 cost = pages * copies * cost_per_page # 362.88 print(f"{cost:.2f}") ``` The printout reads: 362.88 Printing costs $362.88.<|eot|> <|...
chat
[ { "role": "user", "content": "Printing costs 12 cents a page. What does it cost to print 189 copies of a 16-page handout?" }, { "role": "assistant", "content": "```python\npages = 16\ncopies = 189\ncost_per_page = 0.12\ncost = pages * copies * cost_per_page # 362.88\nprint(f\"{cost:.2f}\")\n```...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "362.88", "printed": "362.88", "notation": null}
nlprog_det-setting-0048785
Goods bought on December 11, 2027 carry a 18-month warranty. When does it expire? Translated to Python: ```python from datetime import date start = date(2027, 12, 11) months = 18 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
156
{"gold": "2029-06-11", "printed": "2029-06-11", "notation": null}
nlprog_det-setting-0048786
<|start|><|system|> You may call the tools below. {"name": "py_exec", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> <|user|> A 4 × 4 foo...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"py_exec\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"...
nlprog_det
setting
original
null
deterministic
[]
[]
242
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0048787
A shift runs from 11:55 AM to 6:37 PM. How long is it in minutes? Translated to Python: ```python start = 11 * 60 + 55 # 715 end = 18 * 60 + 37 # 1117 print(end - start) ``` Executed, it shows: 402 It is 402 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "402", "printed": "402", "notation": null}
nlprog_det-setting-0048788
<|start|><|system|> You are a study helper for students.<|eot|> <|user|> How long, in days, is it from June 14, 2019 until November 8, 2019?<|eot|> <|assistant|> It is 147 days.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a study helper for students." }, { "role": "user", "content": "How long, in days, is it from June 14, 2019 until November 8, 2019?" }, { "role": "assistant", "content": "It is 147 days." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "147", "printed": "147", "notation": null}
nlprog_det-setting-0048789
Prorate $900 of monthly rent for 15 days of a 30-day month. Code: ```python rent = 900 days_in_month = 30 days_occupied = 15 prorated = rent * days_occupied / days_in_month # 450.0 print(f"{prorated:.2f}") ``` Interpreter output: 450.00 The tenant owes $450.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "450.00", "printed": "450.00", "notation": null}
nlprog_det-setting-0048790
<|start|><|system|> You are a careful reviewer of figures.<|eot|> <|user|> A 39 lb package ships at $5 base plus $2.00/lb. What is the charge?<|eot|> <|assistant|> ```python base = 5 per_pound = 2.0 weight = 39 cost = base + per_pound * weight print(f"{cost:.2f}") ``` (Printed result: 83.00) Shipping costs $83.00.<|eo...
chat
[ { "role": "system", "content": "You are a careful reviewer of figures." }, { "role": "user", "content": "A 39 lb package ships at $5 base plus $2.00/lb. What is the charge?" }, { "role": "assistant", "content": "```python\nbase = 5\nper_pound = 2.0\nweight = 39\ncost = base + per_pou...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "83.00", "printed": "83.00", "notation": null}
nlprog_det-setting-0048791
How much is a $69 daily meal allowance over 8 days? We can compute it in Python. days = 8 meal_rate = 69 total = days * meal_rate print(total) The script prints 552. The allowance is $552.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
67
{"gold": "552", "printed": "552", "notation": null}
nlprog_det-setting-0048792
How many weekdays (Monday to Friday) fall after March 18, 2026 up to and including April 2, 2026? 11 weekdays.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0048793
<|start|><|user|> Express 291 hours in days and hours.<|eot|> <|assistant|> hours = 291 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") Execution prints: 12 days and 3 hours 291 hours is 12 days and 3 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Express 291 hours in days and hours." }, { "role": "assistant", "content": " hours = 291\n days, rest = divmod(hours, 24)\n print(f\"{days} days and {rest} hours\")\nExecution prints: 12 days and 3 hours\n\n291 hours is 12 days and 3 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "12 days and 3 hours", "printed": "12 days and 3 hours", "notation": null}
nlprog_det-setting-0048794
Equal monthly payments repay $3,600 plus 8% simple yearly interest over 12 months. How large is a payment? One way, in code: ```python principal = 3600 annual_rate = 8 / 100 # 0.08 months = 12 interest = principal * annual_rate * months / 12 # 288.0 payment = (principal + interest) / months # 324.0 print(f"{payment...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "324.00", "printed": "324.00", "notation": null}
nlprog_det-setting-0048795
<|start|><|user|> Express 43 hours in days and hours.<|eot|> <|assistant|> That is 1 days and 19 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Express 43 hours in days and hours." }, { "role": "assistant", "content": "That is 1 days and 19 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "1 days and 19 hours", "printed": "1 days and 19 hours", "notation": null}
nlprog_det-setting-0048796
<|start|><|user|> Rent of $2,200 goes up 2%. What is the new rent?<|eot|> <|assistant|> ```python rent = 2200 increase = 2 / 100 # 0.02 new_rent = rent * (1 + increase) # 2244.0 print(f"{new_rent:.2f}") ``` Output of the run: 2244.00 It rises to $2,244.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rent of $2,200 goes up 2%. What is the new rent?" }, { "role": "assistant", "content": "```python\nrent = 2200\nincrease = 2 / 100 # 0.02\nnew_rent = rent * (1 + increase) # 2244.0\nprint(f\"{new_rent:.2f}\")\n```\nOutput of the run: 2244.00\n\nIt rises to $2,244....
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "2244.00", "printed": "2244.00", "notation": null}
nlprog_det-setting-0048797
Fixed costs are $4,000. Each unit sells for $20 and costs $15 to make. How many units must be sold to break even? Python: ```python import math fixed = 4000 price = 20 variable = 15 units = math.ceil(fixed / (price - variable)) # 800 print(units) ``` It prints: 800 Break-even is 800 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "800", "printed": "800", "notation": null}
nlprog_det-setting-0048798
Viktor and Quinn share $4,606 in the ratio 3:4. How much does Viktor get? We can compute it in Python. total = 4606 parts_a = 3 parts_b = 4 share_a = total * parts_a // (parts_a + parts_b) # 1974 print(share_a) The program prints: 1974 Viktor's share is $1,974.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "1974", "printed": "1974", "notation": null}
nlprog_det-setting-0048799
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> A claim accrued on July 10, 2013. The limitations period is 3 years. On what date does it expire?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2013, 7, 10) # datetime.date(2013, 7, 10) years = 3 expires = accrued.re...
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "A claim accrued on July 10, 2013. The limitations period is 3 years. On what date does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nac...
nlprog_det
setting
original
null
deterministic
[]
[]
159
{"gold": "2016-07-10", "printed": "2016-07-10", "notation": null}
nlprog_det-setting-0048800
<|start|><|user|> Copies cost $10 plus $0.10 for each page beyond 0. How much for 43 pages?<|eot|> <|assistant|> ```python pages = 43 base = 10 per_page = 0.1 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page print(f"{cost:.2f}") ``` (Printed: 14.30) The copy costs $14.30.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Copies cost $10 plus $0.10 for each page beyond 0. How much for 43 pages?" }, { "role": "assistant", "content": "```python\npages = 43\nbase = 10\nper_page = 0.1\nfree_pages = 0\ncost = base + max(0, pages - free_pages) * per_page\nprint(f\"{cost:.2f}\")\n```\n(Prin...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "14.30", "printed": "14.30", "notation": null}
nlprog_det-setting-0048801
At $0.70 per mile, what is the reimbursement for 72 miles? As Python: ```python miles = 72 rate = 0.7 reimbursement = miles * rate # 50.4 print(f"{reimbursement:.2f}") ``` It prints: 50.40 Ines is owed $50.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "50.40", "printed": "50.40", "notation": null}
nlprog_det-setting-0048802
Fixed costs are $4,000. Each unit sells for $20 and costs $12 to make. How many units must be sold to break even? ```python import math fixed = 4000 price = 20 variable = 12 units = math.ceil(fixed / (price - variable)) # 500 print(units) ``` It prints: 500 Break-even is 500 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "500", "printed": "500", "notation": null}
nlprog_det-setting-0048803
<|start|><|user|> A 403-page report must be reviewed in 13 days. How many pages a day is that, evenly?<|eot|> <|assistant|> ```python pages = 403 days = 13 per_day = pages // days # 31 print(per_day) ``` It outputs: 31 That is 31 pages per day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 403-page report must be reviewed in 13 days. How many pages a day is that, evenly?" }, { "role": "assistant", "content": "```python\npages = 403\ndays = 13\nper_day = pages // days # 31\nprint(per_day)\n```\nIt outputs: 31\n\nThat is 31 pages per day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "31", "printed": "31", "notation": null}
nlprog_det-setting-0048805
<|start|><|system|> You can call tools. Available tools: {"name": "run_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"]}} {"name": "convert_u...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"run_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source cod...
nlprog_det
setting
original
null
deterministic
[]
[]
328
{"gold": "4920.00", "printed": "4920.00", "notation": null}
nlprog_det-setting-0048806
What day of the week is September 4, 2004? Python makes this quick: ```python from datetime import date hearing = date(2004, 9, 4) # datetime.date(2004, 9, 4) print(hearing.strftime("%A")) ``` (Console output: Saturday) It is a Saturday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "Saturday", "printed": "Saturday", "notation": null}
nlprog_det-setting-0048807
Mateo has 2 documents to file, and each filing costs $90. How much are the filing fees in total? We write it as a program: ```python fee = 90 filings = 2 total = fee * filings # 180 print(total) ``` Execution prints: 180 The filings cost $180 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "180", "printed": "180", "notation": null}
nlprog_det-setting-0048808
866 files go into boxes of 40. How many boxes does that take? 22 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
26
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0048809
<|start|><|user|> Equipment costs $24,000, has a salvage value of $3,000, and a useful life of 4 years. What is the straight-line depreciation per year?<|eot|> <|assistant|> ```python cost = 24000 salvage = 3000 years = 4 per_year = (cost - salvage) / years # 5250.0 print(f"{per_year:.2f}") ``` Run it and it prints: 5...
chat
[ { "role": "user", "content": "Equipment costs $24,000, has a salvage value of $3,000, and a useful life of 4 years. What is the straight-line depreciation per year?" }, { "role": "assistant", "content": "```python\ncost = 24000\nsalvage = 3000\nyears = 4\nper_year = (cost - salvage) / years # 5...
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "5250.00", "printed": "5250.00", "notation": null}
nlprog_det-setting-0048810
At $0.67 per mile, what is the reimbursement for 327 miles? Set it up in Python: ```python miles = 327 rate = 0.67 reimbursement = miles * rate # 219.09 print(f"{reimbursement:.2f}") ``` # console output: 219.09 Kaito is owed $219.09.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "219.09", "printed": "219.09", "notation": null}
nlprog_det-setting-0048811
Under a 40% contingency agreement, what fee is owed on a $12,000 award? Python makes this quick: ```python recovery = 12000 rate = 40 / 100 # 0.4 fee = recovery * rate # 4800.0 print(f"{fee:.2f}") ``` Printed — 4800.00 The fee is $4,800.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "4800.00", "printed": "4800.00", "notation": null}
nlprog_det-setting-0048812
Starting with 886 flash drives and using 23 per day, how many remain after 16 days? ```python stock = 886 per_day = 23 days = 16 left = stock - per_day * days # 518 print(left) ``` Out = 518 518 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "518", "printed": "518", "notation": null}
nlprog_det-setting-0048813
<|start|><|user|> Papers were served by mail on September 19, 2028. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date?<|eot|> <|assistant|> The response is due on October 22, 2028.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Papers were served by mail on September 19, 2028. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date?" }, { "role": "assistant", "content": "The response is due on October 22, 2028." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
53
{"gold": "2028-10-22", "printed": "2028-10-22", "notation": null}
nlprog_det-setting-0048814
Meals are $64 per day and lodging $175 per night. What is the allowance for 9 days and 8 nights? That comes to $1,976.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "1976", "printed": "1976", "notation": null}
nlprog_det-setting-0048815
After a 25% fee is taken from a $72,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share? Set it up in Python: ```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}") ``` The run give...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "27000.00", "printed": "27000.00", "notation": null}
nlprog_det-setting-0048816
29 of 40 members attended. What percent attended? Attendance was 72.5%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
24
{"gold": "72.5", "printed": "72.5", "notation": null}
nlprog_det-setting-0048817
Each of Reza's bike rides burns 200 calories. How many calories over 7 bike rides? Script: ```python per_session = 200 sessions = 7 total = per_session * sessions # 1400 print(total) ``` Run result: 1400 That burns 1400 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "1400", "printed": "1400", "notation": null}
nlprog_det-setting-0048818
<|start|><|user|> A claim accrued on December 1, 2019. The limitations period is 2 years. On what date does it expire?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2019, 12, 1) # datetime.date(2019, 12, 1) years = 2 expires = accrued.replace(year=accrued.year + years) # datetime.date(2021, ...
chat
[ { "role": "user", "content": "A claim accrued on December 1, 2019. The limitations period is 2 years. On what date does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2019, 12, 1) # datetime.date(2019, 12, 1)\nyears = 2\nexpires = accrued....
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "2021-12-01", "printed": "2021-12-01", "notation": null}
nlprog_det-setting-0048819
Starting from $8,000, the team spends $3,912, $3,232, $3,829, $2,992. What remains? budget = 8000 expenses = [3912, 3232, 3829, 2992] left = budget - sum(expenses) # -5965 print(left) When run, it prints: -5965 The remaining budget is -$5,965.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "-5965", "printed": "-5965", "notation": null}
nlprog_det-setting-0048820
<|start|><|system|> You are a precise assistant.<|eot|> <|user|> 4 boxes hold 8 rulers each. After 9 are handed out, how many are left?<|eot|> <|assistant|> ```python boxes = 4 per_box = 8 given_away = 9 left = boxes * per_box - given_away # 23 print(left) ``` # stdout: 23 That leaves 23 rulers.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a precise assistant." }, { "role": "user", "content": "4 boxes hold 8 rulers each. After 9 are handed out, how many are left?" }, { "role": "assistant", "content": "```python\nboxes = 4\nper_box = 8\ngiven_away = 9\nleft = boxes * per_box - giv...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0048821
<|start|><|user|> A filing cabinet costs $90. It is 10% off. What is the sale price?<|eot|> <|assistant|> ```python price = 90 discount = 10 / 100 # 0.1 sale_price = price * (1 - discount) # 81.0 print(f"{sale_price:.2f}") ``` Run output — 81.00 It costs $81.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A filing cabinet costs $90. It is 10% off. What is the sale price?" }, { "role": "assistant", "content": "```python\nprice = 90\ndiscount = 10 / 100 # 0.1\nsale_price = price * (1 - discount) # 81.0\nprint(f\"{sale_price:.2f}\")\n```\nRun output — 81.00\n\nIt cost...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "81.00", "printed": "81.00", "notation": null}
nlprog_det-setting-0048822
<|start|><|user|> Wen lends $8,000 at 5% simple interest per year for 6 years. How much interest is earned?<|eot|> <|assistant|> principal = 8000 rate = 5 / 100 # 0.05 years = 6 interest = principal * rate * years # 2400.0 print(f"{interest:.2f}") Execution result — 2400.00 The interest is $2,400...
chat
[ { "role": "user", "content": "Wen lends $8,000 at 5% simple interest per year for 6 years. How much interest is earned?" }, { "role": "assistant", "content": " principal = 8000\n rate = 5 / 100 # 0.05\n years = 6\n interest = principal * rate * years # 2400.0\n print(f\"{interes...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "2400.00", "printed": "2400.00", "notation": null}
nlprog_det-setting-0048823
<|start|><|user|> Of a $4,000 budget, $3,600 has been spent. What percent is that?<|eot|> <|assistant|> ```python budget = 4000 spent = 3600 percent = spent / budget * 100 # 90.0 print(round(percent, 1)) ``` Result: 90.0 90.0% has been spent.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Of a $4,000 budget, $3,600 has been spent. What percent is that?" }, { "role": "assistant", "content": "```python\nbudget = 4000\nspent = 3600\npercent = spent / budget * 100 # 90.0\nprint(round(percent, 1))\n```\nResult:\n90.0\n\n90.0% has been spent." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "90.0", "printed": "90.0", "notation": null}
nlprog_det-setting-0048824
A 90-day notice period begins on April 4, 2023. On what date does it end? ```python from datetime import date, timedelta start = date(2023, 4, 4) # datetime.date(2023, 4, 4) end = start + timedelta(days=90) # datetime.date(2023, 7, 3) print(end.isoformat()) ``` That prints: 2023-07-03 It ends on July 3, 2023.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "2023-07-03", "printed": "2023-07-03", "notation": null}
nlprog_det-setting-0048825
<|start|><|user|> A 6% increase is applied to $900 monthly rent. What is the new amount?<|eot|> <|assistant|> rent = 900 increase = 6 / 100 # 0.06 new_rent = rent * (1 + increase) # 954.0 print(f"{new_rent:.2f}") Executing it gives 954.00. It rises to $954.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 6% increase is applied to $900 monthly rent. What is the new amount?" }, { "role": "assistant", "content": " rent = 900\n increase = 6 / 100 # 0.06\n new_rent = rent * (1 + increase) # 954.0\n print(f\"{new_rent:.2f}\")\nExecuting it gives 954.00.\n\...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "954.00", "printed": "954.00", "notation": null}
nlprog_det-setting-0048826
<|start|><|user|> Count 45 days forward from June 27, 2028. What date is that?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2028, 6, 27) # datetime.date(2028, 6, 27) end = start + timedelta(days=45) # datetime.date(2028, 8, 11) print(end.isoformat()) ``` The interpreter prints: 202...
chat
[ { "role": "user", "content": "Count 45 days forward from June 27, 2028. What date is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2028, 6, 27) # datetime.date(2028, 6, 27)\nend = start + timedelta(days=45) # datetime.date(2028, 8, 1...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "2028-08-11", "printed": "2028-08-11", "notation": null}
nlprog_det-setting-0048827
After an initial $3,000, the remainder of a $12,000 grant is paid in 4 equal parts. What is each part? ```python grant = 12000 up_front = 3000 installments = 4 each = (grant - up_front) / installments # 2250.0 print(f"{each:.2f}") ``` Printed = 2250.00 Each installment is $2,250.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "2250.00", "printed": "2250.00", "notation": null}
nlprog_det-setting-0048828
<|start|><|system|> You are a study helper for students.<|eot|> <|user|> Meals are $79 per day and lodging $175 per night. What is the allowance for 5 days and 4 nights?<|eot|> <|assistant|> ```python days = 5 meal_rate = 79 lodging_rate = 175 nights = days - 1 # 4 total = days * meal_rate + nights * lodging_rate # 1...
chat
[ { "role": "system", "content": "You are a study helper for students." }, { "role": "user", "content": "Meals are $79 per day and lodging $175 per night. What is the allowance for 5 days and 4 nights?" }, { "role": "assistant", "content": "```python\ndays = 5\nmeal_rate = 79\nlodging_...
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "1095", "printed": "1095", "notation": null}
nlprog_det-setting-0048829
<|start|><|system|> Tools (call with JSON): [{"name": "sandbox_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> A 12-month warr...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"sandbox_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requi...
nlprog_det
setting
original
null
deterministic
[]
[]
291
{"gold": "2028-03-01", "printed": "2028-03-01", "notation": null}
nlprog_det-setting-0048831
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> How many units at $15 each (variable cost $7) cover $1,200 of fixed costs?<|eot|> <|assistant|> ```python import math fixed = 1200 price = 15 variable = 7 units = math.ceil(fixed / (price - variable)) print(units) ``` # console output: 150 150 units are need...
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "How many units at $15 each (variable cost $7) cover $1,200 of fixed costs?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 1200\nprice = 15\nvariable = 7\nunits = math.ce...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0048832
How many meters are in 82.9 kilometers? 82,900 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
22
{"gold": "82900", "printed": "82900", "notation": null}
nlprog_det-setting-0048833
<|start|><|user|> What day of the week is January 9, 2007?<|eot|> <|assistant|> ```python from datetime import date hearing = date(2007, 1, 9) # datetime.date(2007, 1, 9) print(hearing.strftime("%A")) ``` It prints Tuesday, as expected. It is a Tuesday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What day of the week is January 9, 2007?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(2007, 1, 9) # datetime.date(2007, 1, 9)\nprint(hearing.strftime(\"%A\"))\n```\nIt prints Tuesday, as expected.\n\nIt is a Tuesday." ...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "Tuesday", "printed": "Tuesday", "notation": null}
nlprog_det-setting-0048834
Find the mean of these test scores: 76, 58, 96, 61, 55, 77 and 67. A Python solution: ```python scores = [76, 58, 96, 61, 55, 77, 67] average = sum(scores) // len(scores) # 70 print(average) ``` (Console output: 70) The mean is 70.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "70", "printed": "70", "notation": null}