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-0069488
<|start|><|user|> How many 2-foot square tiles cover a 10 ft by 9 ft floor (round up)?<|eot|> <|assistant|> ```python import math length = 10 width = 9 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 23 print(tiles) ``` The code prints: 23 23 tiles are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many 2-foot square tiles cover a 10 ft by 9 ft floor (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 10\nwidth = 9\ntile = 2\ntiles = math.ceil(length * width / (tile * tile)) # 23\nprint(tiles)\n```\nThe code prints: 23\n\n2...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0069489
<|start|><|user|> Which is cheaper per unit: 12 for $5.68 (A) or 24 for $17.53 (B)?<|eot|> <|assistant|> ```python pack_a = 5.68 / 12 # 0.47333333333333333 pack_b = 17.53 / 24 # 0.7304166666666667 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` Out: A A has the lower unit price.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Which is cheaper per unit: 12 for $5.68 (A) or 24 for $17.53 (B)?" }, { "role": "assistant", "content": "```python\npack_a = 5.68 / 12 # 0.47333333333333333\npack_b = 17.53 / 24 # 0.7304166666666667\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'A'\nprint(chea...
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0069490
A $1,500 security deposit has deductions of $85 and $150. How much is refunded? Script: ```python deposit = 1500 deductions = [85, 150] refund = deposit - sum(deductions) # 1265 print(refund) ``` It outputs: 1265 $1,265 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "1265", "printed": "1265", "notation": null}
nlprog_det-setting-0069492
Nikhil earns $25.00 an hour and time and a half for hours over 40. What is the pay for a 43-hour week? Python version: rate = 25.0 hours = 43 regular = 40 * rate # 1000.0 overtime = (hours - 40) * rate * 1.5 # 112.5 pay = regular + overtime # 1112.5 print(f"{pay:.2f}") Execution prints 1112....
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "1112.50", "printed": "1112.50", "notation": null}
nlprog_det-setting-0069493
An unpaid balance of $7,500 accrues 1.5% simple interest per month. How much interest accrues in 2 months? In code: ```python balance = 7500 monthly_rate = 1.5 / 100 # 0.015 months = 2 interest = balance * monthly_rate * months # 225.0 print(f"{interest:.2f}") ``` Running it prints 225.00, as expected. The interest...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "225.00", "printed": "225.00", "notation": null}
nlprog_det-setting-0069494
A water bill is $20 plus $4.75 per thousand gallons beyond the first 0 thousand. What is the bill for 25 thousand gallons? Let the code do the arithmetic: ```python base = 20 rate = 4.75 used = 25 free = 0 bill = base + rate * max(0, used - free) # 138.75 print(f"{bill:.2f}") ``` This prints 138.75. The bill is $138...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "138.75", "printed": "138.75", "notation": null}
nlprog_det-setting-0069495
<|start|><|user|> A car travels 564 miles in 3 hours. What is its average speed in miles per hour?<|eot|> <|assistant|> ```python distance = 564 hours = 3 speed = distance / hours # 188.0 print(round(speed)) ``` (Out: 188) The average speed is 188 mph.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A car travels 564 miles in 3 hours. What is its average speed in miles per hour?" }, { "role": "assistant", "content": "```python\ndistance = 564\nhours = 3\nspeed = distance / hours # 188.0\nprint(round(speed))\n```\n(Out: 188)\n\nThe average speed is 188 mph." ...
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "188", "printed": "188", "notation": null}
nlprog_det-setting-0069496
What simple interest does $12,000 earn at 5% a year over 6 years? As Python: principal = 12000 rate = 5 / 100 # 0.05 years = 6 interest = principal * rate * years # 3600.0 print(f"{interest:.2f}") Executed, it shows 3600.00. The interest is $3,600.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "3600.00", "printed": "3600.00", "notation": null}
nlprog_det-setting-0069497
<|start|><|user|> With $20,000 in costs and $22,500 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|> <|assistant|> ```python revenue = 22500 costs = 20000 profit = revenue - costs # 2500 margin = profit / revenue * 100 # 11.11111111111111 print(round(margin, 1)) ``` # printed result: 11.1 ...
chat
[ { "role": "user", "content": "With $20,000 in costs and $22,500 in revenue, what percent of revenue is profit? Round to one decimal." }, { "role": "assistant", "content": "```python\nrevenue = 22500\ncosts = 20000\nprofit = revenue - costs # 2500\nmargin = profit / revenue * 100 # 11.111111111...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "11.1", "printed": "11.1", "notation": null}
nlprog_det-setting-0069498
Of a $10,000 budget, $2,700 has been spent. What percent is that? Computation in Python: ```python budget = 10000 spent = 2700 percent = spent / budget * 100 # 27.0 print(round(percent, 1)) ``` # printed: 27.0 That is 27.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "27.0", "printed": "27.0", "notation": null}
nlprog_det-setting-0069499
A 36-month warranty starts on December 17, 2024. On what date does it end? Let the code do the arithmetic: ```python from datetime import date start = date(2024, 12, 17) months = 36 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
[]
[]
149
{"gold": "2027-12-17", "printed": "2027-12-17", "notation": null}
nlprog_det-setting-0069501
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> A seminar starts at 10:45 AM and lasts 50 minutes. When does it end?<|eot|> <|assistant|> ```python start = 10 * 60 + 45 end = start + 50 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` stdout ...
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "A seminar starts at 10:45 AM and lasts 50 minutes. When does it end?" }, { "role": "assistant", "content": "```python\nstart = 10 * 60 + 45\nend = start + 50\nhour, minute = divmod(end, 60)...
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "11:35 AM", "printed": "11:35 AM", "notation": null}
nlprog_det-setting-0069502
A meal costs $149.11. How much is a 18% tip? A short script: ```python bill = 149.11 tip_rate = 18 / 100 # 0.18 tip = bill * tip_rate # 26.8398 print(f"{tip:.2f}") ``` It prints: 26.84 Leave $26.84.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "26.84", "printed": "26.84", "notation": null}
nlprog_det-setting-0069503
A penalty of $100 a day accrues, capped at $2,500. What is owed after 34 days? The Python version: ```python per_day = 100 days = 34 cap = 2500 fine = min(per_day * days, cap) # 2500 print(fine) ``` Executing it gives 2500. $2,500 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0069504
With 10 rows of 10 chairs and 23 empty chairs, how many chairs are taken? The computation: ```python rows = 10 per_row = 10 empty = 23 seated = rows * per_row - empty # 77 print(seated) ``` # printed: 77 77 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0069505
A $30,000 grant pays $3,000 up front and the rest in 4 equal installments. How large is each installment? Let the code do the arithmetic: ```python grant = 30000 up_front = 3000 installments = 4 each = (grant - up_front) / installments # 6750.0 print(f"{each:.2f}") ``` (Console output: 6750.00) Each installment is $...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "6750.00", "printed": "6750.00", "notation": null}
nlprog_det-setting-0069506
<|start|><|system|> Available functions (JSON Schema): {"name": "compute", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> A shift runs from 8:0...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"compute\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\...
nlprog_det
setting
original
null
deterministic
[]
[]
199
{"gold": "186", "printed": "186", "notation": null}
nlprog_det-setting-0069507
Filing fees are $75 per document. What do 9 filings cost? In Python: ```python fee = 75 filings = 9 total = fee * filings # 675 print(total) ``` # printed: 675 The filings cost $675 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "675", "printed": "675", "notation": null}
nlprog_det-setting-0069509
A $2,400 loan carries 8% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment? Python: ```python principal = 2400 annual_rate = 8 / 100 # 0.08 months = 12 interest = principal * annual_rate * months / 12 # 192.0 payment = (principal + interest) / mo...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "216.00", "printed": "216.00", "notation": null}
nlprog_det-setting-0069510
<|start|><|system|> You may call the tools below. {"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}} {"name": "translate", "description": "Translate tex...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\", \"e...
nlprog_det
setting
original
null
deterministic
[]
[]
371
{"gold": "349", "printed": "349", "notation": null}
nlprog_det-setting-0069511
<|start|><|user|> 10 flash drives cost $4 apiece. With 6% tax added, what is the total?<|eot|> <|assistant|> ```python quantity = 10 unit_price = 4 subtotal = quantity * unit_price # 40 total = subtotal * (1 + 6 / 100) # 42.400000000000006 print(f"{total:.2f}") ``` (Printed: 42.40) The total with tax is $42.40.<|eot...
chat
[ { "role": "user", "content": "10 flash drives cost $4 apiece. With 6% tax added, what is the total?" }, { "role": "assistant", "content": "```python\nquantity = 10\nunit_price = 4\nsubtotal = quantity * unit_price # 40\ntotal = subtotal * (1 + 6 / 100) # 42.400000000000006\nprint(f\"{total:.2f...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "42.40", "printed": "42.40", "notation": null}
nlprog_det-setting-0069512
<|start|><|system|> You are a data assistant.<|eot|> <|user|> Someone born January 5, 1970 turns how old by January 11, 2027? Give the age in whole years.<|eot|> <|assistant|> ```python from datetime import date born = date(1970, 1, 5) # datetime.date(1970, 1, 5) on = date(2027, 1, 11) # datetime.date(2027, 1, 11) ag...
chat
[ { "role": "system", "content": "You are a data assistant." }, { "role": "user", "content": "Someone born January 5, 1970 turns how old by January 11, 2027? Give the age in whole years." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1970, 1, 5...
nlprog_det
setting
original
null
deterministic
[]
[]
173
{"gold": "57", "printed": "57", "notation": null}
nlprog_det-setting-0069513
<|start|><|user|> A hall has 15 rows of 17 seats, and 16 seats are empty. How many people are seated?<|eot|> <|assistant|> ```python rows = 15 per_row = 17 empty = 16 seated = rows * per_row - empty # 239 print(seated) ``` (Program output: 239) 239 seats are taken.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hall has 15 rows of 17 seats, and 16 seats are empty. How many people are seated?" }, { "role": "assistant", "content": "```python\nrows = 15\nper_row = 17\nempty = 16\nseated = rows * per_row - empty # 239\nprint(seated)\n```\n(Program output: 239)\n\n239 seats ...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "239", "printed": "239", "notation": null}
nlprog_det-setting-0069514
A $2,000 security deposit has deductions of $45, $120 and $150. How much is refunded? As Python: ```python deposit = 2000 deductions = [45, 120, 150] refund = deposit - sum(deductions) # 1685 print(refund) ``` (Execution result: 1685) The refund is $1,685.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "1685", "printed": "1685", "notation": null}
nlprog_det-setting-0069515
<|start|><|user|> Notice was given on September 28, 2019. The notice period is 14 days. When does it run out?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2019, 9, 28) # datetime.date(2019, 9, 28) end = start + timedelta(days=14) # datetime.date(2019, 10, 12) print(end.isoformat())...
chat
[ { "role": "user", "content": "Notice was given on September 28, 2019. The notice period is 14 days. When does it run out?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2019, 9, 28) # datetime.date(2019, 9, 28)\nend = start + timedelta(days=...
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "2019-10-12", "printed": "2019-10-12", "notation": null}
nlprog_det-setting-0069516
<|start|><|user|> A shift starts at 10:40 AM and lasts 25 minutes. When does it end?<|eot|> <|assistant|> start = 10 * 60 + 40 end = start + 25 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") Out — 11:05 AM It ends at 11:05 AM.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A shift starts at 10:40 AM and lasts 25 minutes. When does it end?" }, { "role": "assistant", "content": " start = 10 * 60 + 40\n end = start + 25\n hour, minute = divmod(end, 60)\n print(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "11:05 AM", "printed": "11:05 AM", "notation": null}
nlprog_det-setting-0069517
<|start|><|system|> You are a data assistant.<|eot|> <|user|> 2 claimants share a $36,000 settlement equally. What is each share?<|eot|> <|assistant|> ```python settlement = 36000 parties = 2 share = settlement // parties # 18000 print(share) ``` Console output: 18000 Each share is $18,000.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a data assistant." }, { "role": "user", "content": "2 claimants share a $36,000 settlement equally. What is each share?" }, { "role": "assistant", "content": "```python\nsettlement = 36000\nparties = 2\nshare = settlement // parties # 18000\np...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "18000", "printed": "18000", "notation": null}
nlprog_det-setting-0069518
Express 354 hours in days and hours. Translated to Python: ```python hours = 354 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Running it prints 14 days and 18 hours. 354 hours is 14 days and 18 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "14 days and 18 hours", "printed": "14 days and 18 hours", "notation": null}
nlprog_det-setting-0069519
Starting from $8,000, the team spends $2,030, $3,343, $2,023, $471. What remains? Written as code: ```python budget = 8000 expenses = [2030, 3343, 2023, 471] left = budget - sum(expenses) # 133 print(left) ``` # result: 133 The remaining budget is $133.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "133", "printed": "133", "notation": null}
nlprog_det-setting-0069520
<|start|><|system|> Tools (call with JSON): [{"name": "interpreter", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> From 2025 to 2028, how many year...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"interpreter\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code...
nlprog_det
setting
original
null
deterministic
[]
[]
192
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0069521
A 8-day trip pays $59 a day for meals and $110 a night for lodging (7 nights). What is the total allowance? Let the code do the arithmetic: ```python days = 8 meal_rate = 59 lodging_rate = 110 nights = days - 1 # 7 total = days * meal_rate + nights * lodging_rate # 1242 print(total) ``` Execution prints: 1242 The a...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "1242", "printed": "1242", "notation": null}
nlprog_det-setting-0069522
<|start|><|user|> Counting only Monday through Friday, how many business days are there after May 13, 2022 through June 1, 2022?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2022, 5, 13) end = date(2022, 6, 1) count = 0 for k in range(1, (end - start).days + 1): if (start + timed...
chat
[ { "role": "user", "content": "Counting only Monday through Friday, how many business days are there after May 13, 2022 through June 1, 2022?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2022, 5, 13)\nend = date(2022, 6, 1)\ncount = 0\nfor k...
nlprog_det
setting
original
null
deterministic
[]
[]
154
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0069523
<|start|><|user|> Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 41 hours?<|eot|> <|assistant|> ```python rate = 18.5 hours = 41 regular = 40 * rate # 740.0 overtime = (hours - 40) * rate * 1.5 # 27.75 pay = regular + overtime # 767.75 print(f"{pay:.2f}") ``` The run gives: 76...
chat
[ { "role": "user", "content": "Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 41 hours?" }, { "role": "assistant", "content": "```python\nrate = 18.5\nhours = 41\nregular = 40 * rate # 740.0\novertime = (hours - 40) * rate * 1.5 # 27.75\npay = regular + o...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "767.75", "printed": "767.75", "notation": null}
nlprog_det-setting-0069524
A garage charges $2 an hour, never more than $20 a day. How much for 4 hours? We can compute it in Python. ```python rate = 2 hours = 4 daily_max = 20 cost = min(rate * hours, daily_max) # 8 print(cost) ``` (Execution result: 8) Parking costs $8.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0069525
<|start|><|user|> Convert 4,951 GBP to USD at 1 GBP = 1.31 USD.<|eot|> <|assistant|> ```python amount = 4951 rate = 1.31 converted = amount * rate # 6485.81 print(f"{converted:.2f}") ``` It outputs: 6485.81 It converts to 6,485.81 USD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 4,951 GBP to USD at 1 GBP = 1.31 USD." }, { "role": "assistant", "content": "```python\namount = 4951\nrate = 1.31\nconverted = amount * rate # 6485.81\nprint(f\"{converted:.2f}\")\n```\nIt outputs: 6485.81\n\nIt converts to 6,485.81 USD." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "6485.81", "printed": "6485.81", "notation": null}
nlprog_det-setting-0069527
Reza buys 4 boxes of 24 binders each and gives away 16 binders. How many binders are left? A few lines of Python do it: ```python boxes = 4 per_box = 24 given_away = 16 left = boxes * per_box - given_away # 80 print(left) ``` When run, it prints: 80 80 binders are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "80", "printed": "80", "notation": null}
nlprog_det-setting-0069528
862 files go into boxes of 50. How many boxes does that take? We can compute it in Python. ```python import math files = 862 per_box = 50 boxes = math.ceil(files / per_box) # 18 print(boxes) ``` It outputs 18. 18 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0069529
A 11 × 4 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up? Translated to Python: ```python import math length = 11 width = 4 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 44 print(tiles) ``` Execution prints: 44 44 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "44", "printed": "44", "notation": null}
nlprog_det-setting-0069530
<|start|><|user|> A quorum is 2/3 of the 39 members, rounded up. How many members make a quorum?<|eot|> <|assistant|> import math members = 39 quorum = math.ceil(members * 2 / 3) # 26 print(quorum) (Printed: 26) That is 26 members.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A quorum is 2/3 of the 39 members, rounded up. How many members make a quorum?" }, { "role": "assistant", "content": " import math\n members = 39\n quorum = math.ceil(members * 2 / 3) # 26\n print(quorum)\n(Printed: 26)\n\nThat is 26 members." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0069531
At $0.58 per mile, what is the reimbursement for 464 miles? Python code: ```python miles = 464 rate = 0.58 reimbursement = miles * rate # 269.12 print(f"{reimbursement:.2f}") ``` Python prints: 269.12 Rania is owed $269.12.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "269.12", "printed": "269.12", "notation": null}
nlprog_det-setting-0069532
A $800 security deposit has deductions of $200 and $85. How much is refunded? Here is the program. ```python deposit = 800 deductions = [200, 85] refund = deposit - sum(deductions) # 515 print(refund) ``` Output of the run — 515 $515 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "515", "printed": "515", "notation": null}
nlprog_det-setting-0069533
<|start|><|user|> The firm was founded in 1990. How many years had passed by 2013?<|eot|> <|assistant|> ```python start_year = 1990 end_year = 2013 print(end_year - start_year) ``` Executed, it shows 23. That is 23 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The firm was founded in 1990. How many years had passed by 2013?" }, { "role": "assistant", "content": "```python\nstart_year = 1990\nend_year = 2013\nprint(end_year - start_year)\n```\nExecuted, it shows 23.\n\nThat is 23 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0069534
2 friends split a $180 bill plus a 20% tip evenly. How much does each pay? Computing it: bill = 180 tip_rate = 20 / 100 # 0.2 people = 2 each = bill * (1 + tip_rate) / people # 108.0 print(f"{each:.2f}") That prints: 108.00 Each person pays $108.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "108.00", "printed": "108.00", "notation": null}
nlprog_det-setting-0069535
<|start|><|user|> Convert 2,815 USD to EUR at 1 USD = 1.35 EUR.<|eot|> <|assistant|> ```python amount = 2815 rate = 1.35 converted = amount * rate # 3800.2500000000005 print(f"{converted:.2f}") ``` The run gives 3800.25, as expected. That is 3,800.25 EUR.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 2,815 USD to EUR at 1 USD = 1.35 EUR." }, { "role": "assistant", "content": "```python\namount = 2815\nrate = 1.35\nconverted = amount * rate # 3800.2500000000005\nprint(f\"{converted:.2f}\")\n```\nThe run gives 3800.25, as expected.\n\nThat is 3,800.25 EUR...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "3800.25", "printed": "3800.25", "notation": null}
nlprog_det-setting-0069536
At $0.67 per mile, what is the reimbursement for 39 miles? Python, step by step: ```python miles = 39 rate = 0.67 reimbursement = miles * rate print(f"{reimbursement:.2f}") ``` Program output: 26.13 The reimbursement is $26.13.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "26.13", "printed": "26.13", "notation": null}
nlprog_det-setting-0069537
Convert 2,794 USD to CAD at 1 USD = 0.92 CAD. Python: ```python amount = 2794 rate = 0.92 converted = amount * rate # 2570.48 print(f"{converted:.2f}") ``` (stdout: 2570.48) It converts to 2,570.48 CAD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "2570.48", "printed": "2570.48", "notation": null}
nlprog_det-setting-0069538
<|start|><|user|> After an initial $3,000, the remainder of a $60,000 grant is paid in 3 equal parts. What is each part?<|eot|> <|assistant|> ```python grant = 60000 up_front = 3000 installments = 3 each = (grant - up_front) / installments # 19000.0 print(f"{each:.2f}") ``` The script prints 19000.00. Each installmen...
chat
[ { "role": "user", "content": "After an initial $3,000, the remainder of a $60,000 grant is paid in 3 equal parts. What is each part?" }, { "role": "assistant", "content": "```python\ngrant = 60000\nup_front = 3000\ninstallments = 3\neach = (grant - up_front) / installments # 19000.0\nprint(f\"{...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "19000.00", "printed": "19000.00", "notation": null}
nlprog_det-setting-0069539
Goods bought on June 15, 2024 carry a 24-month warranty. When does it expire? A few lines of Python do it: from datetime import date start = date(2024, 6, 15) months = 24 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(e...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "2026-06-15", "printed": "2026-06-15", "notation": null}
nlprog_det-setting-0069540
<|start|><|user|> Yoko buys 4 boxes of 6 staplers each and gives away 2 staplers. How many staplers are left?<|eot|> <|assistant|> ```python boxes = 4 per_box = 6 given_away = 2 left = boxes * per_box - given_away # 22 print(left) ``` # stdout: 22 22 staplers are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Yoko buys 4 boxes of 6 staplers each and gives away 2 staplers. How many staplers are left?" }, { "role": "assistant", "content": "```python\nboxes = 4\nper_box = 6\ngiven_away = 2\nleft = boxes * per_box - given_away # 22\nprint(left)\n```\n# stdout: 22\n\n22 stap...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0069541
<|start|><|user|> To read 637 pages in 13 days, how many pages per day are needed?<|eot|> <|assistant|> ```python pages = 637 days = 13 per_day = pages // days # 49 print(per_day) ``` What it prints — 49 That is 49 pages per day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "To read 637 pages in 13 days, how many pages per day are needed?" }, { "role": "assistant", "content": "```python\npages = 637\ndays = 13\nper_day = pages // days # 49\nprint(per_day)\n```\nWhat it prints — 49\n\nThat is 49 pages per day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "49", "printed": "49", "notation": null}
nlprog_det-setting-0069543
How many weekdays (Monday to Friday) fall after May 3, 2024 up to and including May 11, 2024? Script: ```python from datetime import date, timedelta start = date(2024, 5, 3) end = date(2024, 5, 11) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() < 5: count += 1...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0069545
<|start|><|system|> Available functions (JSON Schema): {"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}} {"name": "eval_python", "description": "Execut...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\"...
nlprog_det
setting
original
null
deterministic
[]
[]
306
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0069546
A car travels 406 miles in 2 hours. What is its average speed in miles per hour? ```python distance = 406 hours = 2 speed = distance / hours # 203.0 print(round(speed)) ``` This prints 203, as expected. It averages 203 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "203", "printed": "203", "notation": null}
nlprog_det-setting-0069547
Mateo was born on March 3, 1960. How old is Mateo on May 21, 2025? Python version: ```python from datetime import date born = date(1960, 3, 3) # datetime.date(1960, 3, 3) on = date(2025, 5, 21) # datetime.date(2025, 5, 21) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 65 print(age) ```...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
157
{"gold": "65", "printed": "65", "notation": null}
nlprog_det-setting-0069549
How many of 38 members form a majority (more than half)? Let's compute it with Python. ```python members = 38 majority = members // 2 + 1 # 20 print(majority) ``` It prints 20. 20 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0069551
<|start|><|user|> Meals are $74 per day and lodging $140 per night. What is the allowance for 4 days and 3 nights?<|eot|> <|assistant|> ```python days = 4 meal_rate = 74 lodging_rate = 140 nights = days - 1 # 3 total = days * meal_rate + nights * lodging_rate # 716 print(total) ``` The printout reads 716. The allowa...
chat
[ { "role": "user", "content": "Meals are $74 per day and lodging $140 per night. What is the allowance for 4 days and 3 nights?" }, { "role": "assistant", "content": "```python\ndays = 4\nmeal_rate = 74\nlodging_rate = 140\nnights = days - 1 # 3\ntotal = days * meal_rate + nights * lodging_rate ...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "716", "printed": "716", "notation": null}
nlprog_det-setting-0069552
Convert 2,834 CHF to USD at 1 CHF = 0.92 USD. ```python amount = 2834 rate = 0.92 converted = amount * rate # 2607.28 print(f"{converted:.2f}") ``` (stdout: 2607.28) It converts to 2,607.28 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "2607.28", "printed": "2607.28", "notation": null}
nlprog_det-setting-0069553
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> Copies cost $15 plus $0.25 for each page beyond 20. How much for 110 pages?<|eot|> <|assistant|> ```python pages = 110 base = 15 per_page = 0.25 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 37.5 print(f"{cost:.2f}") ``` Exec...
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "Copies cost $15 plus $0.25 for each page beyond 20. How much for 110 pages?" }, { "role": "assistant", "content": "```python\npages = 110\nbase = 15\nper_page = 0.25\nfree_pages = 20\n...
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "37.50", "printed": "37.50", "notation": null}
nlprog_det-setting-0069554
<|start|><|user|> Convert -20 °C to Fahrenheit.<|eot|> <|assistant|> ```python celsius = -20 fahrenheit = celsius * 9 / 5 + 32 # -4.0 print(round(fahrenheit)) ``` # run result: -4 That is -4 °F.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert -20 °C to Fahrenheit." }, { "role": "assistant", "content": "```python\ncelsius = -20\nfahrenheit = celsius * 9 / 5 + 32 # -4.0\nprint(round(fahrenheit))\n```\n# run result: -4\n\nThat is -4 °F." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "-4", "printed": "-4", "notation": null}
nlprog_det-setting-0069555
Straight-line depreciation: cost $18,000, salvage $0, 6 years. How much per year? Written as code: ```python cost = 18000 salvage = 0 years = 6 per_year = (cost - salvage) / years # 3000.0 print(f"{per_year:.2f}") ``` (Run result: 3000.00) $3,000.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "3000.00", "printed": "3000.00", "notation": null}
nlprog_det-setting-0069556
<|start|><|user|> 3 clients win $72,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> ```python award = 72000 fee = award * 25 / 100 # 18000.0 remaining = award - fee # 54000.0 per_client = remaining / 3 # 18000.0 print(f"{per_client:.2f}") ``` Printed resu...
chat
[ { "role": "user", "content": "3 clients win $72,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": "```python\naward = 72000\nfee = award * 25 / 100 # 18000.0\nremaining = award - fee # 54000.0\nper_client = remaining ...
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "18000.00", "printed": "18000.00", "notation": null}
nlprog_det-setting-0069557
How many minutes pass from 7:25 AM to 1:00 PM on the same day? In code: ```python start = 7 * 60 + 25 # 445 end = 13 * 60 + 0 # 780 print(end - start) ``` (Execution result: 335) It is 335 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "335", "printed": "335", "notation": null}
nlprog_det-setting-0069558
Monthly rent is $2,400. A tenant moves in with 11 days left in a 31-day month. What is the prorated rent? In Python: ```python rent = 2400 days_in_month = 31 days_occupied = 11 prorated = rent * days_occupied / days_in_month # 851.6129032258065 print(f"{prorated:.2f}") ``` The program prints 851.61. The tenant owes ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "851.61", "printed": "851.61", "notation": null}
nlprog_det-setting-0069559
<|start|><|system|> Avoid unnecessary detail.<|eot|> <|user|> A library charges $0.25 per book per day late. What is the fine for 3 books that are 16 days late?<|eot|> <|assistant|> ```python per_day = 0.25 days_late = 16 books = 3 fine = per_day * days_late * books # 12.0 print(f"{fine:.2f}") ``` Result — 12.00 The ...
chat
[ { "role": "system", "content": "Avoid unnecessary detail." }, { "role": "user", "content": "A library charges $0.25 per book per day late. What is the fine for 3 books that are 16 days late?" }, { "role": "assistant", "content": "```python\nper_day = 0.25\ndays_late = 16\nbooks = 3\n...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "12.00", "printed": "12.00", "notation": null}
nlprog_det-setting-0069560
How many weekdays (Monday to Friday) fall after November 5, 2025 up to and including December 3, 2025? ```python from datetime import date, timedelta start = date(2025, 11, 5) end = date(2025, 12, 3) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() < 5: count +=...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
156
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0069561
<|start|><|system|> Tools you may use: {"name": "interpreter", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> After an initial $6,000, t...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"interpreter\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\...
nlprog_det
setting
original
null
deterministic
[]
[]
236
{"gold": "7000.00", "printed": "7000.00", "notation": null}
nlprog_det-setting-0069563
Counting only Monday through Friday, how many business days are there after December 17, 2027 through December 25, 2027? 5 weekdays.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0069564
<|start|><|user|> A $2,000 security deposit has deductions of $120 and $120. How much is refunded?<|eot|> <|assistant|> ```python deposit = 2000 deductions = [120, 120] refund = deposit - sum(deductions) # 1760 print(refund) ``` The interpreter prints 1760. The refund is $1,760.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $2,000 security deposit has deductions of $120 and $120. How much is refunded?" }, { "role": "assistant", "content": "```python\ndeposit = 2000\ndeductions = [120, 120]\nrefund = deposit - sum(deductions) # 1760\nprint(refund)\n```\nThe interpreter prints 1760.\n...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "1760", "printed": "1760", "notation": null}
nlprog_det-setting-0069565
Buying 2 batteries at $26 each, 6 rulers at $4 each, 2 toner kits at $30 each, someone hands over $150. What change comes back? ```python items = [(2, 26), (6, 4), (2, 30)] total = sum(q * p for q, p in items) # 136 paid = 150 change = paid - total # 14 print(change) ``` When run, it prints: 14 $14 comes back.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0069566
<|start|><|user|> A car gets 40 miles per gallon. Gas is $3.45 a gallon. What does fuel cost for a 300-mile trip?<|eot|> <|assistant|> The trip uses $25.88 of gas.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A car gets 40 miles per gallon. Gas is $3.45 a gallon. What does fuel cost for a 300-mile trip?" }, { "role": "assistant", "content": "The trip uses $25.88 of gas." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
50
{"gold": "25.88", "printed": "25.88", "notation": null}
nlprog_det-setting-0069567
<|start|><|system|> Tools you may use: {"name": "calculator", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> <|user|> 6 boxes hold 12 cables ea...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"calculator\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\...
nlprog_det
setting
original
null
deterministic
[]
[]
221
{"gold": "57", "printed": "57", "notation": null}
nlprog_det-setting-0069568
<|start|><|user|> Convert 68.3 km to meters.<|eot|> <|assistant|> That is 68,300 meters.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 68.3 km to meters." }, { "role": "assistant", "content": "That is 68,300 meters." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "68300", "printed": "68300", "notation": null}
nlprog_det-setting-0069569
Water costs $20 a month plus $5.10 for each 1,000 gallons over 0,000. What is owed for 22,000 gallons? Python version: ```python base = 20 rate = 5.1 used = 22 free = 0 bill = base + rate * max(0, used - free) # 132.2 print(f"{bill:.2f}") ``` Out = 132.20 The bill is $132.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "132.20", "printed": "132.20", "notation": null}
nlprog_det-setting-0069570
What simple interest does $12,000 earn at 8% a year over 3 years? Program: ```python principal = 12000 rate = 8 / 100 # 0.08 years = 3 interest = principal * rate * years # 2880.0 print(f"{interest:.2f}") ``` # run result: 2880.00 It earns $2,880.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "2880.00", "printed": "2880.00", "notation": null}
nlprog_det-setting-0069571
<|start|><|system|> Answer in plain English.<|eot|> <|user|> 4 clients win $48,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> ```python award = 48000 fee = award * 30 / 100 # 14400.0 remaining = award - fee # 33600.0 per_client = remaining / 4 # 8400.0 p...
chat
[ { "role": "system", "content": "Answer in plain English." }, { "role": "user", "content": "4 clients win $48,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": "```python\naward = 48000\nfee = award * 30 / 10...
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "8400.00", "printed": "8400.00", "notation": null}
nlprog_det-setting-0069572
Counting the first and last day, how many days are there from May 1, 2026 through May 4, 2026? Program: ```python from datetime import date first = date(2026, 5, 1) # datetime.date(2026, 5, 1) last = date(2026, 5, 4) # datetime.date(2026, 5, 4) days = (last - first).days + 1 # 4 print(days) ``` Python prints 4. 4 ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0069573
Walls total 403 sq ft and each can covers 400 sq ft. How many cans should be bought? Script: ```python import math area = 403 coverage = 400 cans = math.ceil(area / coverage) # 2 print(cans) ``` Output of the run — 2 2 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0069574
A 120-mile drive at a steady 60 mph takes how many minutes? ```python distance = 120 speed = 60 minutes = distance / speed * 60 print(round(minutes)) ``` Output of the run — 120 The trip takes 120 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0069575
Zoe earns a 2% commission on $70,732 of sales. What is the commission? As Python: ```python sales = 70732 rate = 2 / 100 # 0.02 commission = sales * rate # 1414.64 print(f"{commission:.2f}") ``` The code prints: 1414.64 The commission is $1,414.64.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "1414.64", "printed": "1414.64", "notation": null}
nlprog_det-setting-0069576
<|start|><|user|> A court charges $15 per request plus $0.50 per page after the first 20 pages. What does a 64-page copy cost?<|eot|> <|assistant|> ```python pages = 64 base = 15 per_page = 0.5 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 37.0 print(f"{cost:.2f}") ``` stdout: 37.00 The copy c...
chat
[ { "role": "user", "content": "A court charges $15 per request plus $0.50 per page after the first 20 pages. What does a 64-page copy cost?" }, { "role": "assistant", "content": "```python\npages = 64\nbase = 15\nper_page = 0.5\nfree_pages = 20\ncost = base + max(0, pages - free_pages) * per_page...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "37.00", "printed": "37.00", "notation": null}
nlprog_det-setting-0069577
2 books come back 15 days late, at $0.50 a day each. What is the fine? The program: ```python per_day = 0.5 days_late = 15 books = 2 fine = per_day * days_late * books # 15.0 print(f"{fine:.2f}") ``` It prints 15.00. $15.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "15.00", "printed": "15.00", "notation": null}
nlprog_det-setting-0069578
How many whole days and leftover hours are in 356 hours? One way, in code: ```python hours = 356 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Shell output: 14 days and 20 hours 356 hours is 14 days and 20 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "14 days and 20 hours", "printed": "14 days and 20 hours", "notation": null}
nlprog_det-setting-0069579
Each of Tariq's bike rides burns 200 calories. How many calories over 6 bike rides? ```python per_session = 200 sessions = 6 total = per_session * sessions # 1200 print(total) ``` Program output — 1200 That burns 1200 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0069580
Malik lends $5,000 at 2% simple interest per year for 5 years. How much interest is earned? The interest is $500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "500.00", "printed": "500.00", "notation": null}
nlprog_det-setting-0069581
<|start|><|user|> Count 45 days forward from January 22, 2022. What date is that?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2022, 1, 22) # datetime.date(2022, 1, 22) end = start + timedelta(days=45) # datetime.date(2022, 3, 8) print(end.isoformat()) ``` What it prints — 2022-03-...
chat
[ { "role": "user", "content": "Count 45 days forward from January 22, 2022. What date is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2022, 1, 22) # datetime.date(2022, 1, 22)\nend = start + timedelta(days=45) # datetime.date(2022, 3...
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "2022-03-08", "printed": "2022-03-08", "notation": null}
nlprog_det-setting-0069582
Count 21 days forward from February 9, 2020. What date is that? Python, step by step: ```python from datetime import date, timedelta start = date(2020, 2, 9) # datetime.date(2020, 2, 9) end = start + timedelta(days=21) # datetime.date(2020, 3, 1) print(end.isoformat()) ``` (Printed: 2020-03-01) The period ends on M...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "2020-03-01", "printed": "2020-03-01", "notation": null}
nlprog_det-setting-0069583
5 boxes hold 6 scissors each. After 13 are handed out, how many are left? ```python boxes = 5 per_box = 6 given_away = 13 left = boxes * per_box - given_away # 17 print(left) ``` Execution prints 17, as expected. That leaves 17 scissors.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0069584
A lawyer's fee is 25% of a $90,000 recovery. How large is the fee? Here's the code. ```python recovery = 90000 rate = 25 / 100 # 0.25 fee = recovery * rate # 22500.0 print(f"{fee:.2f}") ``` That prints: 22500.00 The lawyer's fee comes to $22,500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "22500.00", "printed": "22500.00", "notation": null}
nlprog_det-setting-0069585
Monthly: $12. Annual: $132. What is saved per year by paying annually? As Python: ```python monthly = 12 yearly = 132 savings = monthly * 12 - yearly # 12 print(savings) ``` Output: 12 The annual plan saves $12.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0069586
Starting from $5,000, the team spends $3,801, $1,387, $2,516. What remains? The remaining budget is -$2,704.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "-2704", "printed": "-2704", "notation": null}
nlprog_det-setting-0069587
Convert 40 °C to Fahrenheit. The Python version: ```python celsius = 40 fahrenheit = celsius * 9 / 5 + 32 # 104.0 print(round(fahrenheit)) ``` Run result = 104 It equals 104 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "104", "printed": "104", "notation": null}
nlprog_det-setting-0069588
What is 40 degrees Celsius in Fahrenheit? As a program: celsius = 40 fahrenheit = celsius * 9 / 5 + 32 # 104.0 print(round(fahrenheit)) stdout = 104 That is 104 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "104", "printed": "104", "notation": null}
nlprog_det-setting-0069589
3 claimants share a $2,640 settlement equally. What is each share? Each share is $880.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "880", "printed": "880", "notation": null}
nlprog_det-setting-0069591
<|start|><|system|> You have access to these functions: {"name": "math_engine", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}} {"name": "define_word", "desc...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"math_engine\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \...
nlprog_det
setting
original
null
deterministic
[]
[]
281
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0069593
At an exchange rate of 1.35 CAD per USD, how many CAD is 6,039 USD? That is 8,152.65 CAD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "8152.65", "printed": "8152.65", "notation": null}
nlprog_det-setting-0069594
<|start|><|user|> 2 hours of work at $410 an hour: what is the total charge?<|eot|> <|assistant|> ```python hours = 2 rate = 410 bill = hours * rate # 820 print(f"{bill:.2f}") ``` When run, it prints 820.00, as expected. The bill is $820.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "2 hours of work at $410 an hour: what is the total charge?" }, { "role": "assistant", "content": "```python\nhours = 2\nrate = 410\nbill = hours * rate # 820\nprint(f\"{bill:.2f}\")\n```\nWhen run, it prints 820.00, as expected.\n\nThe bill is $820.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "820.00", "printed": "820.00", "notation": null}
nlprog_det-setting-0069595
Cyrus and Lena share $2,845 in the ratio 2:3. How much does Cyrus get? As a program: ```python total = 2845 parts_a = 2 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 1138 print(share_a) ``` (Console output: 1138) Cyrus's share is $1,138.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "1138", "printed": "1138", "notation": null}
nlprog_det-setting-0069596
A $240 dinner bill gets a 20% tip, and 2 people share the cost equally. What is each person's share? Here is the program. ```python bill = 240 tip_rate = 20 / 100 # 0.2 people = 2 each = bill * (1 + tip_rate) / people # 144.0 print(f"{each:.2f}") ``` Execution result — 144.00 The share is $144.00 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "144.00", "printed": "144.00", "notation": null}
nlprog_det-setting-0069597
<|start|><|system|> You may call the tools below. {"name": "calc", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> A water bill is $12 plus $5.10 per thousa...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"calc\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}" ...
nlprog_det
setting
original
null
deterministic
[]
[]
235
{"gold": "73.20", "printed": "73.20", "notation": null}
nlprog_det-setting-0069598
<|start|><|system|> You help people work with structured data.<|eot|> <|user|> Rent of $2,200 goes up 8%. What is the new rent?<|eot|> <|assistant|> ```python rent = 2200 increase = 8 / 100 new_rent = rent * (1 + increase) print(f"{new_rent:.2f}") ``` The code prints: 2376.00 It rises to $2,376.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help people work with structured data." }, { "role": "user", "content": "Rent of $2,200 goes up 8%. What is the new rent?" }, { "role": "assistant", "content": "```python\nrent = 2200\nincrease = 8 / 100\nnew_rent = rent * (1 + increase)\nprint(f\"...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "2376.00", "printed": "2376.00", "notation": null}