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-0079892
Monthly: $19. Annual: $198. What is saved per year by paying annually? Code: ```python monthly = 19 yearly = 198 savings = monthly * 12 - yearly # 30 print(savings) ``` It prints: 30 The annual plan saves $30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0079893
Someone works 36 hours at $23.64 per hour. What are the earnings? Python makes this quick: ```python rate = 23.64 hours = 36 earnings = rate * hours # 851.04 print(f"{earnings:.2f}") ``` Run result: 851.04 That earns $851.04.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "851.04", "printed": "851.04", "notation": null}
nlprog_det-setting-0079894
Walls total 758 sq ft and each can covers 400 sq ft. How many cans should be bought? The program: ```python import math area = 758 coverage = 400 cans = math.ceil(area / coverage) # 2 print(cans) ``` Run it and it prints 2. 2 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0079895
8 hours of work at $250 an hour: what is the total charge? The program: ```python hours = 8 rate = 250 bill = hours * rate # 2000 print(f"{bill:.2f}") ``` # printed result: 2000.00 That comes to $2,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0079896
A quorum is 2/3 of the 57 members, rounded up. How many members make a quorum? Python does the arithmetic: ```python import math members = 57 quorum = math.ceil(members * 2 / 3) print(quorum) ``` Program output — 38 38 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "38", "printed": "38", "notation": null}
nlprog_det-setting-0079898
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> Each of Paula's walks burns 400 calories. How many calories over 3 walks?<|eot|> <|assistant|> ```python per_session = 400 sessions = 3 total = per_session * sessions # 1200 print(total) ``` Run output — 1200 1200 calories in total.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "role": "user", "content": "Each of Paula's walks burns 400 calories. How many calories over 3 walks?" }, { "role": "assistant", "content": "```python\nper_session = 400\nsessions = 3\ntotal = per_session * sessions ...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0079899
Sofia earns $25.00 an hour and time and a half for hours over 40. What is the pay for a 50-hour week? One way, in code: ```python rate = 25.0 hours = 50 regular = 40 * rate # 1000.0 overtime = (hours - 40) * rate * 1.5 # 375.0 pay = regular + overtime # 1375.0 print(f"{pay:.2f}") ``` When run, it prints 1375.00. T...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "1375.00", "printed": "1375.00", "notation": null}
nlprog_det-setting-0079900
<|start|><|user|> Filing fees are $75 per document. What do 5 filings cost?<|eot|> <|assistant|> The total fee is $375.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Filing fees are $75 per document. What do 5 filings cost?" }, { "role": "assistant", "content": "The total fee is $375." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "375", "printed": "375", "notation": null}
nlprog_det-setting-0079901
What simple interest does $2,500 earn at 5% a year over 4 years? ```python principal = 2500 rate = 5 / 100 # 0.05 years = 4 interest = principal * rate * years # 500.0 print(f"{interest:.2f}") ``` That prints 500.00. It earns $500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "500.00", "printed": "500.00", "notation": null}
nlprog_det-setting-0079902
<|start|><|user|> How many weekdays (Monday to Friday) fall after March 13, 2025 up to and including March 25, 2025?<|eot|> <|assistant|> 8 weekdays.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many weekdays (Monday to Friday) fall after March 13, 2025 up to and including March 25, 2025?" }, { "role": "assistant", "content": "8 weekdays." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0079903
<|start|><|user|> 6 swims at 250 calories each burn how many calories in total?<|eot|> <|assistant|> ```python per_session = 250 sessions = 6 total = per_session * sessions # 1500 print(total) ``` Out: 1500 1500 calories in total.<|eot|> <|end|>
chat
[ { "role": "user", "content": "6 swims at 250 calories each burn how many calories in total?" }, { "role": "assistant", "content": "```python\nper_session = 250\nsessions = 6\ntotal = per_session * sessions # 1500\nprint(total)\n```\nOut:\n1500\n\n1500 calories in total." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0079904
22 desk lamps cost $15 apiece. With 10% tax added, what is the total? The total with tax is $363.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "363.00", "printed": "363.00", "notation": null}
nlprog_det-setting-0079905
At 2% a month (simple), what interest builds on $7,500 over 5 months? Set it up in Python: ```python balance = 7500 monthly_rate = 2 / 100 # 0.02 months = 5 interest = balance * monthly_rate * months # 750.0 print(f"{interest:.2f}") ``` What it prints — 750.00 The interest is $750.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "750.00", "printed": "750.00", "notation": null}
nlprog_det-setting-0079906
<|start|><|user|> After an initial $6,000, the remainder of a $12,000 grant is paid in 3 equal parts. What is each part?<|eot|> <|assistant|> $2,000.00 per installment.<|eot|> <|end|>
chat
[ { "role": "user", "content": "After an initial $6,000, the remainder of a $12,000 grant is paid in 3 equal parts. What is each part?" }, { "role": "assistant", "content": "$2,000.00 per installment." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
48
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0079907
With $36,000 in costs and $38,000 in revenue, what percent of revenue is profit? Round to one decimal. The margin is 5.3%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "5.3", "printed": "5.3", "notation": null}
nlprog_det-setting-0079908
<|start|><|system|> Tools (call with JSON): {"name": "interpreter", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> Pay is $22.40/hour, with ov...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"interpreter\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"...
nlprog_det
setting
original
null
deterministic
[]
[]
252
{"gold": "1265.60", "printed": "1265.60", "notation": null}
nlprog_det-setting-0079909
How many of 33 members form a majority (more than half)? Python code: ```python members = 33 majority = members // 2 + 1 # 17 print(majority) ``` That prints 17. That is 17 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0079911
<|start|><|user|> Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 41 hours?<|eot|> <|assistant|> ```python rate = 25.0 hours = 41 regular = 40 * rate # 1000.0 overtime = (hours - 40) * rate * 1.5 # 37.5 pay = regular + overtime # 1037.5 print(f"{pay:.2f}") ``` Execution prints ...
chat
[ { "role": "user", "content": "Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 41 hours?" }, { "role": "assistant", "content": "```python\nrate = 25.0\nhours = 41\nregular = 40 * rate # 1000.0\novertime = (hours - 40) * rate * 1.5 # 37.5\npay = regular + o...
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "1037.50", "printed": "1037.50", "notation": null}
nlprog_det-setting-0079912
<|start|><|user|> Which is cheaper per unit: 6 for $3.15 (A) or 18 for $25.09 (B)?<|eot|> <|assistant|> ```python pack_a = 3.15 / 6 # 0.525 pack_b = 25.09 / 18 # 1.393888888888889 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` The code prints: A A has the lower unit price.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Which is cheaper per unit: 6 for $3.15 (A) or 18 for $25.09 (B)?" }, { "role": "assistant", "content": "```python\npack_a = 3.15 / 6 # 0.525\npack_b = 25.09 / 18 # 1.393888888888889\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'A'\nprint(cheaper)\n```\nThe co...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0079913
Monthly rent is $1,200. A tenant moves in with 20 days left in a 30-day month. What is the prorated rent? The program: ```python rent = 1200 days_in_month = 30 days_occupied = 20 prorated = rent * days_occupied / days_in_month # 800.0 print(f"{prorated:.2f}") ``` Run result — 800.00 The prorated rent is $800.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "800.00", "printed": "800.00", "notation": null}
nlprog_det-setting-0079914
After a 30% fee is taken from a $48,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share? Each share is $16,800.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "16800.00", "printed": "16800.00", "notation": null}
nlprog_det-setting-0079915
<|start|><|user|> Buying 4 sticky pads at $25 each, 3 pens at $16 each, 4 paper reams at $17 each, someone hands over $250. What change comes back?<|eot|> <|assistant|> ```python items = [(4, 25), (3, 16), (4, 17)] total = sum(q * p for q, p in items) # 216 paid = 250 change = paid - total # 34 print(change) ``` The ...
chat
[ { "role": "user", "content": "Buying 4 sticky pads at $25 each, 3 pens at $16 each, 4 paper reams at $17 each, someone hands over $250. What change comes back?" }, { "role": "assistant", "content": "```python\nitems = [(4, 25), (3, 16), (4, 17)]\ntotal = sum(q * p for q, p in items) # 216\npaid...
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "34", "printed": "34", "notation": null}
nlprog_det-setting-0079916
Starting with 358 paper reams and using 36 per day, how many remain after 9 days? In Python: ```python stock = 358 per_day = 36 days = 9 left = stock - per_day * days # 34 print(left) ``` Result: 34 34 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "34", "printed": "34", "notation": null}
nlprog_det-setting-0079917
<|start|><|user|> At $15.30 an hour, what does 38 hours of work pay?<|eot|> <|assistant|> ```python rate = 15.3 hours = 38 earnings = rate * hours # 581.4 print(f"{earnings:.2f}") ``` Result: 581.40 The pay is $581.40.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $15.30 an hour, what does 38 hours of work pay?" }, { "role": "assistant", "content": "```python\nrate = 15.3\nhours = 38\nearnings = rate * hours # 581.4\nprint(f\"{earnings:.2f}\")\n```\nResult:\n581.40\n\nThe pay is $581.40." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "581.40", "printed": "581.40", "notation": null}
nlprog_det-setting-0079918
After an initial $0, the remainder of a $30,000 grant is paid in 12 equal parts. What is each part? Let's compute it with Python. ```python grant = 30000 up_front = 0 installments = 12 each = (grant - up_front) / installments # 2500.0 print(f"{each:.2f}") ``` What it prints — 2500.00 Each installment is $2,500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "2500.00", "printed": "2500.00", "notation": null}
nlprog_det-setting-0079919
<|start|><|user|> Fines run at $50 per day up to a maximum of $5,000. How much after 11 days?<|eot|> <|assistant|> ```python per_day = 50 days = 11 cap = 5000 fine = min(per_day * days, cap) # 550 print(fine) ``` When run, it prints 550, as expected. $550 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Fines run at $50 per day up to a maximum of $5,000. How much after 11 days?" }, { "role": "assistant", "content": "```python\nper_day = 50\ndays = 11\ncap = 5000\nfine = min(per_day * days, cap) # 550\nprint(fine)\n```\nWhen run, it prints 550, as expected.\n\n$550...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "550", "printed": "550", "notation": null}
nlprog_det-setting-0079920
A 120-day notice period begins on August 19, 2025. On what date does it end? The computation: ```python from datetime import date, timedelta start = date(2025, 8, 19) # datetime.date(2025, 8, 19) end = start + timedelta(days=120) # datetime.date(2025, 12, 17) print(end.isoformat()) ``` Running it prints: 2025-12-17 ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "2025-12-17", "printed": "2025-12-17", "notation": null}
nlprog_det-setting-0079921
<|start|><|user|> Counting the first and last day, how many days are there from May 9, 2020 through May 23, 2020?<|eot|> <|assistant|> 15 calendar days.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Counting the first and last day, how many days are there from May 9, 2020 through May 23, 2020?" }, { "role": "assistant", "content": "15 calendar days." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0079922
Fuel for 120 miles at 30 mpg, with gas at $3.19/gallon: what is the cost? Fuel costs $12.76.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "12.76", "printed": "12.76", "notation": null}
nlprog_det-setting-0079923
<|start|><|user|> A penalty of $50 a day accrues, capped at $2,500. What is owed after 11 days?<|eot|> <|assistant|> ```python per_day = 50 days = 11 cap = 2500 fine = min(per_day * days, cap) # 550 print(fine) ``` The code prints: 550 The fine is $550.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A penalty of $50 a day accrues, capped at $2,500. What is owed after 11 days?" }, { "role": "assistant", "content": "```python\nper_day = 50\ndays = 11\ncap = 2500\nfine = min(per_day * days, cap) # 550\nprint(fine)\n```\nThe code prints: 550\n\nThe fine is $550." ...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "550", "printed": "550", "notation": null}
nlprog_det-setting-0079925
Printing costs 8 cents a page. What does it cost to print 120 copies of a 40-page handout? As Python: ```python pages = 40 copies = 120 cost_per_page = 0.08 cost = pages * copies * cost_per_page # 384.0 print(f"{cost:.2f}") ``` The program prints: 384.00 The job costs $384.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "384.00", "printed": "384.00", "notation": null}
nlprog_det-setting-0079927
A trial runs from May 12, 2020 to June 5, 2020, counting both days. How many calendar days is that? Python makes this quick: ```python from datetime import date first = date(2020, 5, 12) last = date(2020, 6, 5) days = (last - first).days + 1 print(days) ``` Running this gives 25. That is 25 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0079928
A 19 × 13 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up? Program: ```python import math length = 19 width = 13 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 247 print(tiles) ``` # execution result: 247 247 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "247", "printed": "247", "notation": null}
nlprog_det-setting-0079929
<|start|><|system|> Double-check numbers before answering.<|eot|> <|user|> From 1999 to 2018, how many years is that?<|eot|> <|assistant|> ```python start_year = 1999 end_year = 2018 print(end_year - start_year) ``` (Program output: 19) That is 19 years.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Double-check numbers before answering." }, { "role": "user", "content": "From 1999 to 2018, how many years is that?" }, { "role": "assistant", "content": "```python\nstart_year = 1999\nend_year = 2018\nprint(end_year - start_year)\n```\n(Program output...
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0079930
6 swims at 400 calories each burn how many calories in total? The computation: ```python per_session = 400 sessions = 6 total = per_session * sessions print(total) ``` It outputs: 2400 That burns 2400 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "2400", "printed": "2400", "notation": null}
nlprog_det-setting-0079931
To read 126 pages in 3 days, how many pages per day are needed? Python, step by step: ```python pages = 126 days = 3 per_day = pages // days # 42 print(per_day) ``` (Printed result: 42) 42 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "42", "printed": "42", "notation": null}
nlprog_det-setting-0079932
Divide 287 items among 4 groups as evenly as possible with equal groups. How many per group, and how many remain? Programmatically: ```python total = 287 groups = 4 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` # output: 71 each, 3 left over 71 each, 3 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "71 each, 3 left over", "printed": "71 each, 3 left over", "notation": null}
nlprog_det-setting-0079934
A claim accrued on December 8, 2015. The limitations period is 2 years. On what date does it expire? In Python: ```python from datetime import date accrued = date(2015, 12, 8) # datetime.date(2015, 12, 8) years = 2 expires = accrued.replace(year=accrued.year + years) # datetime.date(2017, 12, 8) print(expires.isofor...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "2017-12-08", "printed": "2017-12-08", "notation": null}
nlprog_det-setting-0079935
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "python_exec", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"python_exec\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python so...
nlprog_det
setting
original
null
deterministic
[]
[]
224
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0079936
<|start|><|user|> A 5% increase is applied to $1,250 monthly rent. What is the new amount?<|eot|> <|assistant|> ```python rent = 1250 increase = 5 / 100 # 0.05 new_rent = rent * (1 + increase) # 1312.5 print(f"{new_rent:.2f}") ``` # console output: 1312.50 It rises to $1,312.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 5% increase is applied to $1,250 monthly rent. What is the new amount?" }, { "role": "assistant", "content": "```python\nrent = 1250\nincrease = 5 / 100 # 0.05\nnew_rent = rent * (1 + increase) # 1312.5\nprint(f\"{new_rent:.2f}\")\n```\n# console output: 1312.50...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "1312.50", "printed": "1312.50", "notation": null}
nlprog_det-setting-0079937
A 8% increase is applied to $1,100 monthly rent. What is the new amount? Here's the code. ```python rent = 1100 increase = 8 / 100 # 0.08 new_rent = rent * (1 + increase) # 1188.0 print(f"{new_rent:.2f}") ``` stdout: 1188.00 The new rent is $1,188.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "1188.00", "printed": "1188.00", "notation": null}
nlprog_det-setting-0079938
How many meters are in 39.8 kilometers? Coded up: km = 39.8 meters = km * 1000 # 39800.0 print(round(meters)) # output: 39800 39,800 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
66
{"gold": "39800", "printed": "39800", "notation": null}
nlprog_det-setting-0079939
<|start|><|user|> A court charges $15 per request plus $0.10 per page after the first 0 pages. What does a 50-page copy cost?<|eot|> <|assistant|> The copy costs $20.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A court charges $15 per request plus $0.10 per page after the first 0 pages. What does a 50-page copy cost?" }, { "role": "assistant", "content": "The copy costs $20.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "20.00", "printed": "20.00", "notation": null}
nlprog_det-setting-0079941
A storeroom has 693 cables. The office uses 36 a day. How many are left after 7 days? Let the code do the arithmetic: ```python stock = 693 per_day = 36 days = 7 left = stock - per_day * days # 441 print(left) ``` Console: 441 441 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "441", "printed": "441", "notation": null}
nlprog_det-setting-0079942
<|start|><|user|> Which is cheaper per unit: 12 for $12.74 (A) or 15 for $26.89 (B)?<|eot|> <|assistant|> ```python pack_a = 12.74 / 12 # 1.0616666666666668 pack_b = 26.89 / 15 # 1.7926666666666666 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` Console: A Pack A is cheaper per item.<|eot|> <|end...
chat
[ { "role": "user", "content": "Which is cheaper per unit: 12 for $12.74 (A) or 15 for $26.89 (B)?" }, { "role": "assistant", "content": "```python\npack_a = 12.74 / 12 # 1.0616666666666668\npack_b = 26.89 / 15 # 1.7926666666666666\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'A'\nprint(che...
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0079943
A claim accrued on November 4, 2023. The limitations period is 5 years. On what date does it expire? Script: ```python from datetime import date accrued = date(2023, 11, 4) years = 5 expires = accrued.replace(year=accrued.year + years) print(expires.isoformat()) ``` Running this gives: 2028-11-04 The period expires o...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "2028-11-04", "printed": "2028-11-04", "notation": null}
nlprog_det-setting-0079944
<|start|><|user|> At a 8% tax rate, what is the tax on $335.15?<|eot|> <|assistant|> ```python price = 335.15 tax_rate = 8 / 100 # 0.08 tax = price * tax_rate # 26.811999999999998 print(f"{tax:.2f}") ``` Python prints 26.81, as expected. $26.81 in tax.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At a 8% tax rate, what is the tax on $335.15?" }, { "role": "assistant", "content": "```python\nprice = 335.15\ntax_rate = 8 / 100 # 0.08\ntax = price * tax_rate # 26.811999999999998\nprint(f\"{tax:.2f}\")\n```\nPython prints 26.81, as expected.\n\n$26.81 in tax."...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "26.81", "printed": "26.81", "notation": null}
nlprog_det-setting-0079945
<|start|><|user|> 127 copies of a 20-page packet are printed at $0.12 per page. What is the cost?<|eot|> <|assistant|> Printing costs $304.80.<|eot|> <|end|>
chat
[ { "role": "user", "content": "127 copies of a 20-page packet are printed at $0.12 per page. What is the cost?" }, { "role": "assistant", "content": "Printing costs $304.80." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "304.80", "printed": "304.80", "notation": null}
nlprog_det-setting-0079946
<|start|><|user|> A party has 14 days to respond to a motion served on August 6, 2019, with 3 days added because service was by mail. When is the response due?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2019, 8, 6) # datetime.date(2019, 8, 6) response_days = 14 mail_days = 3 due ...
chat
[ { "role": "user", "content": "A party has 14 days to respond to a motion served on August 6, 2019, with 3 days added because service was by mail. When is the response due?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nserved = date(2019, 8, 6) # datetim...
nlprog_det
setting
original
null
deterministic
[]
[]
175
{"gold": "2019-08-23", "printed": "2019-08-23", "notation": null}
nlprog_det-setting-0079947
<|start|><|user|> Equipment costs $12,000, has a salvage value of $0, and a useful life of 8 years. What is the straight-line depreciation per year?<|eot|> <|assistant|> ```python cost = 12000 salvage = 0 years = 8 per_year = (cost - salvage) / years # 1500.0 print(f"{per_year:.2f}") ``` The script prints 1500.00. De...
chat
[ { "role": "user", "content": "Equipment costs $12,000, has a salvage value of $0, and a useful life of 8 years. What is the straight-line depreciation per year?" }, { "role": "assistant", "content": "```python\ncost = 12000\nsalvage = 0\nyears = 8\nper_year = (cost - salvage) / years # 1500.0\n...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "1500.00", "printed": "1500.00", "notation": null}
nlprog_det-setting-0079948
A quorum is 1/3 of the 50 members, rounded up. How many members make a quorum? As a program: import math members = 50 quorum = math.ceil(members * 1 / 3) # 17 print(quorum) Output: 17 17 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0079951
<|start|><|user|> A hall has 15 rows of 19 seats, and 23 seats are empty. How many people are seated?<|eot|> <|assistant|> ```python rows = 15 per_row = 19 empty = 23 seated = rows * per_row - empty # 262 print(seated) ``` Python prints 262. 262 people are seated.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hall has 15 rows of 19 seats, and 23 seats are empty. How many people are seated?" }, { "role": "assistant", "content": "```python\nrows = 15\nper_row = 19\nempty = 23\nseated = rows * per_row - empty # 262\nprint(seated)\n```\nPython prints 262.\n\n262 people ar...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "262", "printed": "262", "notation": null}
nlprog_det-setting-0079952
<|start|><|user|> Parking is $4 per hour with a daily maximum of $18. What do 2 hours cost?<|eot|> <|assistant|> ```python rate = 4 hours = 2 daily_max = 18 cost = min(rate * hours, daily_max) # 8 print(cost) ``` Out: 8 The charge is $8.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Parking is $4 per hour with a daily maximum of $18. What do 2 hours cost?" }, { "role": "assistant", "content": "```python\nrate = 4\nhours = 2\ndaily_max = 18\ncost = min(rate * hours, daily_max) # 8\nprint(cost)\n```\nOut: 8\n\nThe charge is $8." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0079953
A shift runs from 7:12 AM to 11:56 AM. How long is it in minutes? We write it as a program: ```python start = 7 * 60 + 12 # 432 end = 11 * 60 + 56 # 716 print(end - start) ``` (Run result: 284) It is 284 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "284", "printed": "284", "notation": null}
nlprog_det-setting-0079954
156 volunteers are split into 6 equal teams. How many are on each team, and how many are left over? In code: ```python total = 156 groups = 6 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Program output — 26 each, 0 left over The answer: 26 each, 0 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "26 each, 0 left over", "printed": "26 each, 0 left over", "notation": null}
nlprog_det-setting-0079955
3 books come back 25 days late, at $0.25 a day each. What is the fine? The Python version: ```python per_day = 0.25 days_late = 25 books = 3 fine = per_day * days_late * books # 18.75 print(f"{fine:.2f}") ``` This prints 18.75. $18.75 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "18.75", "printed": "18.75", "notation": null}
nlprog_det-setting-0079956
<|start|><|system|> Tools you may use: [{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "calc", "description": "Runs a short Python snippet and returns what it prin...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"name\": \"calc\", \"description...
nlprog_det
setting
original
null
deterministic
[]
[]
291
{"gold": "52.50", "printed": "52.50", "notation": null}
nlprog_det-setting-0079957
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> Counting only Monday through Friday, how many business days are there after October 5, 2024 through October 10, 2024?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2024, 10, 5) end = date(2024, 10, 10) count ...
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "Counting only Monday through Friday, how many business days are there after October 5, 2024 through October 10, 2024?" }, { "role": "assistant", "content": "```python\nfrom date...
nlprog_det
setting
original
null
deterministic
[]
[]
167
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0079958
Copies cost $15 plus $0.10 for each page beyond 0. How much for 88 pages? Here is a short program for it. ```python pages = 88 base = 15 per_page = 0.1 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 23.8 print(f"{cost:.2f}") ``` # result: 23.80 The total is $23.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "23.80", "printed": "23.80", "notation": null}
nlprog_det-setting-0079959
<|start|><|user|> Buying 2 sticky pads at $21 each, 4 cables at $24 each, 5 rulers at $7 each, 3 keyboards at $27 each, someone hands over $300. What change comes back?<|eot|> <|assistant|> The change is $46.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Buying 2 sticky pads at $21 each, 4 cables at $24 each, 5 rulers at $7 each, 3 keyboards at $27 each, someone hands over $300. What change comes back?" }, { "role": "assistant", "content": "The change is $46." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
64
{"gold": "46", "printed": "46", "notation": null}
nlprog_det-setting-0079960
Walls total 1073 sq ft and each can covers 400 sq ft. How many cans should be bought? As a program: ```python import math area = 1073 coverage = 400 cans = math.ceil(area / coverage) # 3 print(cans) ``` Result — 3 3 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0079961
<|start|><|user|> What is the total rent on a 18-month lease at $850 a month?<|eot|> <|assistant|> ```python monthly_rent = 850 months = 18 total = monthly_rent * months # 15300 print(total) ``` Executing it gives 15300. In total, $15,300 is paid.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is the total rent on a 18-month lease at $850 a month?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 850\nmonths = 18\ntotal = monthly_rent * months # 15300\nprint(total)\n```\nExecuting it gives 15300.\n\nIn total, $15,300 is paid." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "15300", "printed": "15300", "notation": null}
nlprog_det-setting-0079962
Someone works 16 hours at $30.15 per hour. What are the earnings? The pay is $482.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "482.40", "printed": "482.40", "notation": null}
nlprog_det-setting-0079963
<|start|><|system|> You may call the tools below. [{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "interpreter", "description": "Python sandbox for calculations. Returns printed text."...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"interpreter\", \"description\":...
nlprog_det
setting
original
null
deterministic
[]
[]
283
{"gold": "7.49", "printed": "7.49", "notation": null}
nlprog_det-setting-0079964
<|start|><|system|> Functions: {"name": "run_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> <|user|> Express 154 hours i...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"run_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required...
nlprog_det
setting
original
null
deterministic
[]
[]
218
{"gold": "6 days and 10 hours", "printed": "6 days and 10 hours", "notation": null}
nlprog_det-setting-0079965
The firm was founded in 2007. How many years had passed by 2020? Translated to Python: ```python start_year = 2007 end_year = 2020 print(end_year - start_year) ``` Running it prints: 13 13 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0079966
Papers were served by mail on February 27, 2025. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date? Python: ```python from datetime import date, timedelta served = date(2025, 2, 27) # datetime.date(2025, 2, 27) response_days = 14 mail_days = 3 due = served + timedelta(days=r...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
184
{"gold": "2025-03-16", "printed": "2025-03-16", "notation": null}
nlprog_det-setting-0079967
On which weekday does November 5, 2004 fall? A few lines of Python do it: ```python from datetime import date hearing = date(2004, 11, 5) # datetime.date(2004, 11, 5) print(hearing.strftime("%A")) ``` # run result: Friday November 5, 2004 is a Friday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "Friday", "printed": "Friday", "notation": null}
nlprog_det-setting-0079968
Count the days between January 15, 2027 and November 17, 2027. Python does the arithmetic: from datetime import date first = date(2027, 1, 15) # datetime.date(2027, 1, 15) second = date(2027, 11, 17) # datetime.date(2027, 11, 17) print((second - first).days) (Output: 306) It is 306 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "306", "printed": "306", "notation": null}
nlprog_det-setting-0079969
A meal costs $167.98. How much is a 20% tip? ```python bill = 167.98 tip_rate = 20 / 100 # 0.2 tip = bill * tip_rate # 33.596 print(f"{tip:.2f}") ``` Run output: 33.60 Leave $33.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "33.60", "printed": "33.60", "notation": null}
nlprog_det-setting-0079970
Prorate $1,800 of monthly rent for 5 days of a 30-day month. A few lines of Python do it: ```python rent = 1800 days_in_month = 30 days_occupied = 5 prorated = rent * days_occupied / days_in_month # 300.0 print(f"{prorated:.2f}") ``` (Result: 300.00) The tenant owes $300.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "300.00", "printed": "300.00", "notation": null}
nlprog_det-setting-0079971
Someone born March 20, 2008 turns how old by February 6, 2029? Give the age in whole years. Set it up in Python: ```python from datetime import date born = date(2008, 3, 20) # datetime.date(2008, 3, 20) on = date(2029, 2, 6) # datetime.date(2029, 2, 6) age = on.year - born.year - ((on.month, on.day) < (born.month, b...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
162
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0079972
Monthly rent is $2,400. A tenant moves in with 19 days left in a 31-day month. What is the prorated rent? The Python version: ```python rent = 2400 days_in_month = 31 days_occupied = 19 prorated = rent * days_occupied / days_in_month # 1470.967741935484 print(f"{prorated:.2f}") ``` Executed, it shows 1470.97. The te...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "1470.97", "printed": "1470.97", "notation": null}
nlprog_det-setting-0079973
<|start|><|system|> You help people work with structured data.<|eot|> <|user|> Starting with 809 badges and using 30 per day, how many remain after 13 days?<|eot|> <|assistant|> 419 remain.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help people work with structured data." }, { "role": "user", "content": "Starting with 809 badges and using 30 per day, how many remain after 13 days?" }, { "role": "assistant", "content": "419 remain." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "419", "printed": "419", "notation": null}
nlprog_det-setting-0079974
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> Under a 33% contingency agreement, what fee is owed on a $12,000 award?<|eot|> <|assistant|> The fee is $3,960.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "Under a 33% contingency agreement, what fee is owed on a $12,000 award?" }, { "role": "assistant", "content": "The fee is $3,960.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
54
{"gold": "3960.00", "printed": "3960.00", "notation": null}
nlprog_det-setting-0079975
<|start|><|user|> A hall has 29 rows of 8 seats, and 7 seats are empty. How many people are seated?<|eot|> <|assistant|> ```python rows = 29 per_row = 8 empty = 7 seated = rows * per_row - empty # 225 print(seated) ``` Execution prints 225. 225 people are seated.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hall has 29 rows of 8 seats, and 7 seats are empty. How many people are seated?" }, { "role": "assistant", "content": "```python\nrows = 29\nper_row = 8\nempty = 7\nseated = rows * per_row - empty # 225\nprint(seated)\n```\nExecution prints 225.\n\n225 people are...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "225", "printed": "225", "notation": null}
nlprog_det-setting-0079976
What is a 15% tip on a $15.95 bill? Computing it: ```python bill = 15.95 tip_rate = 15 / 100 # 0.15 tip = bill * tip_rate # 2.3924999999999996 print(f"{tip:.2f}") ``` (Run result: 2.39) Leave $2.39.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "2.39", "printed": "2.39", "notation": null}
nlprog_det-setting-0079977
Wanjiru was born on April 5, 2001. How old is Wanjiru on August 3, 2020? In Python: ```python from datetime import date born = date(2001, 4, 5) # datetime.date(2001, 4, 5) on = date(2020, 8, 3) # datetime.date(2020, 8, 3) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 19 print(age) ``` ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
157
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0079979
<|start|><|user|> A storeroom has 872 sticky pads. The office uses 18 a day. How many are left after 8 days?<|eot|> <|assistant|> ```python stock = 872 per_day = 18 days = 8 left = stock - per_day * days # 728 print(left) ``` Executed, it shows 728. 728 remain.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A storeroom has 872 sticky pads. The office uses 18 a day. How many are left after 8 days?" }, { "role": "assistant", "content": "```python\nstock = 872\nper_day = 18\ndays = 8\nleft = stock - per_day * days # 728\nprint(left)\n```\nExecuted, it shows 728.\n\n728 r...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "728", "printed": "728", "notation": null}
nlprog_det-setting-0079980
<|start|><|system|> You have access to these functions: [{"name": "py_exec", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> If a ...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"py_exec\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"...
nlprog_det
setting
original
null
deterministic
[]
[]
237
{"gold": "2020-11-27", "printed": "2020-11-27", "notation": null}
nlprog_det-setting-0079981
Monthly: $19. Annual: $180. What is saved per year by paying annually? ```python monthly = 19 yearly = 180 savings = monthly * 12 - yearly # 48 print(savings) ``` The script prints 48. The annual plan saves $48.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0079982
<|start|><|system|> Tools (call with JSON): [{"name": "code_runner", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "get_weather", "description": "Get the we...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"code_runner\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\"...
nlprog_det
setting
original
null
deterministic
[]
[]
369
{"gold": "8750", "printed": "8750", "notation": null}
nlprog_det-setting-0079983
<|start|><|user|> A 702-page report must be reviewed in 13 days. How many pages a day is that, evenly?<|eot|> <|assistant|> pages = 702 days = 13 per_day = pages // days # 54 print(per_day) stdout — 54 That is 54 pages per day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 702-page report must be reviewed in 13 days. How many pages a day is that, evenly?" }, { "role": "assistant", "content": " pages = 702\n days = 13\n per_day = pages // days # 54\n print(per_day)\nstdout — 54\n\nThat is 54 pages per day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "54", "printed": "54", "notation": null}
nlprog_det-setting-0079984
A meal costs $128.86. How much is a 15% tip? As Python: ```python bill = 128.86 tip_rate = 15 / 100 # 0.15 tip = bill * tip_rate # 19.329 print(f"{tip:.2f}") ``` The run gives 19.33, as expected. The tip is $19.33.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "19.33", "printed": "19.33", "notation": null}
nlprog_det-setting-0079985
<|start|><|user|> Parking is $2 per hour with a daily maximum of $24. What do 12 hours cost?<|eot|> <|assistant|> ```python rate = 2 hours = 12 daily_max = 24 cost = min(rate * hours, daily_max) # 24 print(cost) ``` Run result = 24 Parking costs $24.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Parking is $2 per hour with a daily maximum of $24. What do 12 hours cost?" }, { "role": "assistant", "content": "```python\nrate = 2\nhours = 12\ndaily_max = 24\ncost = min(rate * hours, daily_max) # 24\nprint(cost)\n```\nRun result = 24\n\nParking costs $24." }...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0079986
22 copies of a 22-page packet are printed at $0.12 per page. What is the cost? Translated to Python: ```python pages = 22 copies = 22 cost_per_page = 0.12 cost = pages * copies * cost_per_page # 58.08 print(f"{cost:.2f}") ``` When run, it prints 58.08. Printing costs $58.08.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "58.08", "printed": "58.08", "notation": null}
nlprog_det-setting-0079987
<|start|><|user|> Straight-line depreciation: cost $18,000, salvage $2,000, 10 years. How much per year?<|eot|> <|assistant|> cost = 18000 salvage = 2000 years = 10 per_year = (cost - salvage) / years # 1600.0 print(f"{per_year:.2f}") Result: 1600.00 Depreciation is $1,600.00 per year.<|eot|> <|en...
chat
[ { "role": "user", "content": "Straight-line depreciation: cost $18,000, salvage $2,000, 10 years. How much per year?" }, { "role": "assistant", "content": " cost = 18000\n salvage = 2000\n years = 10\n per_year = (cost - salvage) / years # 1600.0\n print(f\"{per_year:.2f}\")\nRes...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "1600.00", "printed": "1600.00", "notation": null}
nlprog_det-setting-0079988
How many whole days and leftover hours are in 98 hours? Set it up in Python: ```python hours = 98 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Result — 4 days and 2 hours 98 hours is 4 days and 2 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "4 days and 2 hours", "printed": "4 days and 2 hours", "notation": null}
nlprog_det-setting-0079989
A hall has 7 rows of 19 seats, and 28 seats are empty. How many people are seated? 105 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "105", "printed": "105", "notation": null}
nlprog_det-setting-0079990
Yusuf lends $20,000 at 2% simple interest per year for 3 years. How much interest is earned? Python: ```python principal = 20000 rate = 2 / 100 # 0.02 years = 3 interest = principal * rate * years # 1200.0 print(f"{interest:.2f}") ``` It prints: 1200.00 It earns $1,200.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "1200.00", "printed": "1200.00", "notation": null}
nlprog_det-setting-0079991
<|start|><|user|> A count moves from 2,000 to 3,000. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> It changed by 50%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A count moves from 2,000 to 3,000. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": "It changed by 50%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0079992
152 files go into boxes of 20. How many boxes does that take? It takes 8 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
26
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0079993
Kemal lends $8,000 at 5% simple interest per year for 2 years. How much interest is earned? The interest is $800.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "800.00", "printed": "800.00", "notation": null}
nlprog_det-setting-0079994
Pack A has 8 items for $8.97. Pack B has 30 items for $17.94. Which has the lower price per item? Here is the program. ```python pack_a = 8.97 / 8 # 1.12125 pack_b = 17.94 / 30 # 0.5980000000000001 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` The run gives B. Pack B is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0079995
A measure needs at least 75% of 107 votes. How many votes is that, rounded up? We write it as a program: import math voters = 107 needed = math.ceil(voters * 75 / 100) print(needed) The program prints: 81 81 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "81", "printed": "81", "notation": null}
nlprog_det-setting-0079996
Rent of $1,250 goes up 5%. What is the new rent? Let the code do the arithmetic: ```python rent = 1250 increase = 5 / 100 # 0.05 new_rent = rent * (1 + increase) # 1312.5 print(f"{new_rent:.2f}") ``` (Printed result: 1312.50) The new rent is $1,312.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "1312.50", "printed": "1312.50", "notation": null}
nlprog_det-setting-0079997
<|start|><|user|> A appointment starts at 4:40 PM and lasts 50 minutes. When does it end?<|eot|> <|assistant|> The appointment finishes at 5:30 PM.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A appointment starts at 4:40 PM and lasts 50 minutes. When does it end?" }, { "role": "assistant", "content": "The appointment finishes at 5:30 PM." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "5:30 PM", "printed": "5:30 PM", "notation": null}
nlprog_det-setting-0079998
A lawyer's fee is 30% of a $25,000 recovery. How large is the fee? recovery = 25000 rate = 30 / 100 # 0.3 fee = recovery * rate # 7500.0 print(f"{fee:.2f}") # stdout: 7500.00 The fee is $7,500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "7500.00", "printed": "7500.00", "notation": null}
nlprog_det-setting-0079999
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "code_runner", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"code_runner\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python sourc...
nlprog_det
setting
original
null
deterministic
[]
[]
277
{"gold": "2031-01-13", "printed": "2031-01-13", "notation": null}
nlprog_det-setting-0080000
With $8,000 in costs and $12,000 in revenue, what percent of revenue is profit? Round to one decimal. As a program: ```python revenue = 12000 costs = 8000 profit = revenue - costs # 4000 margin = profit / revenue * 100 # 33.33333333333333 print(round(margin, 1)) ``` Executed, it shows: 33.3 The margin is 33.3%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "33.3", "printed": "33.3", "notation": null}