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-0049689
At a 6% tax rate, what is the tax on $718.50? Computation in Python: ```python price = 718.5 tax_rate = 6 / 100 # 0.06 tax = price * tax_rate # 43.11 print(f"{tax:.2f}") ``` When run, it prints 43.11. The tax is $43.11.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "43.11", "printed": "43.11", "notation": null}
nlprog_det-setting-0049690
Express 174 hours in days and hours. Translated to Python: ```python hours = 174 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` It prints 7 days and 6 hours, as expected. That is 7 days and 6 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "7 days and 6 hours", "printed": "7 days and 6 hours", "notation": null}
nlprog_det-setting-0049691
<|start|><|user|> Express 326 hours in days and hours.<|eot|> <|assistant|> ```python hours = 326 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` It outputs 13 days and 14 hours. 326 hours is 13 days and 14 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Express 326 hours in days and hours." }, { "role": "assistant", "content": "```python\nhours = 326\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nIt outputs 13 days and 14 hours.\n\n326 hours is 13 days and 14 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "13 days and 14 hours", "printed": "13 days and 14 hours", "notation": null}
nlprog_det-setting-0049692
<|start|><|user|> What commission does Joelle make on $57,491 in sales at 10%?<|eot|> <|assistant|> ```python sales = 57491 rate = 10 / 100 # 0.1 commission = sales * rate # 5749.1 print(f"{commission:.2f}") ``` Result — 5749.10 The commission is $5,749.10.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What commission does Joelle make on $57,491 in sales at 10%?" }, { "role": "assistant", "content": "```python\nsales = 57491\nrate = 10 / 100 # 0.1\ncommission = sales * rate # 5749.1\nprint(f\"{commission:.2f}\")\n```\nResult — 5749.10\n\nThe commission is $5,749...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "5749.10", "printed": "5749.10", "notation": null}
nlprog_det-setting-0049693
30 toner kits cost $8 apiece. With 7% tax added, what is the total? The Python version: ```python quantity = 30 unit_price = 8 subtotal = quantity * unit_price # 240 total = subtotal * (1 + 7 / 100) # 256.8 print(f"{total:.2f}") ``` The run gives: 256.80 The invoice total is $256.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "256.80", "printed": "256.80", "notation": null}
nlprog_det-setting-0049694
A quorum is 1/3 of the 22 members, rounded up. How many members make a quorum? 8 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0049695
<|start|><|user|> Copies cost $10 plus $0.10 for each page beyond 20. How much for 30 pages?<|eot|> <|assistant|> ```python pages = 30 base = 10 per_page = 0.1 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 11.0 print(f"{cost:.2f}") ``` The run gives 11.00, as expected. The total is $11.00.<|eo...
chat
[ { "role": "user", "content": "Copies cost $10 plus $0.10 for each page beyond 20. How much for 30 pages?" }, { "role": "assistant", "content": "```python\npages = 30\nbase = 10\nper_page = 0.1\nfree_pages = 20\ncost = base + max(0, pages - free_pages) * per_page # 11.0\nprint(f\"{cost:.2f}\")\n...
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "11.00", "printed": "11.00", "notation": null}
nlprog_det-setting-0049696
<|start|><|user|> A storeroom has 218 file boxes. The office uses 24 a day. How many are left after 6 days?<|eot|> <|assistant|> ```python stock = 218 per_day = 24 days = 6 left = stock - per_day * days # 74 print(left) ``` Result = 74 74 remain.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A storeroom has 218 file boxes. The office uses 24 a day. How many are left after 6 days?" }, { "role": "assistant", "content": "```python\nstock = 218\nper_day = 24\ndays = 6\nleft = stock - per_day * days # 74\nprint(left)\n```\nResult = 74\n\n74 remain." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "74", "printed": "74", "notation": null}
nlprog_det-setting-0049697
Each storage box holds 25 files. How many boxes are needed for 878 files? Here is a short program for it. ```python import math files = 878 per_box = 25 boxes = math.ceil(files / per_box) # 36 print(boxes) ``` Execution prints 36, as expected. It takes 36 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0049698
<|start|><|user|> A count moves from 500 to 625. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> ```python old = 500 new = 625 change = (new - old) / old * 100 print(round(change)) ``` What it prints — 25 The change is 25%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A count moves from 500 to 625. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": "```python\nold = 500\nnew = 625\nchange = (new - old) / old * 100\nprint(round(change))\n```\nWhat it prints — 25\n\nThe change is 25%....
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0049699
Rosa buys 8 boxes of 10 tape rolls each and gives away 2 tape rolls. How many tape rolls are left? One way, in code: ```python boxes = 8 per_box = 10 given_away = 2 left = boxes * per_box - given_away # 78 print(left) ``` Python prints: 78 That leaves 78 tape rolls.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "78", "printed": "78", "notation": null}
nlprog_det-setting-0049700
Fines run at $100 per day up to a maximum of $2,500. How much after 42 days? $2,500 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0049701
A hearing is set for January 14, 2006. What day of the week is that? It is a Saturday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
25
{"gold": "Saturday", "printed": "Saturday", "notation": null}
nlprog_det-setting-0049702
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> 229 volunteers are split into 7 equal teams. How many are on each team, and how many are left over?<|eot|> <|assistant|> ```python total = 229 groups = 7 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") `...
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "229 volunteers are split into 7 equal teams. How many are on each team, and how many are left over?" }, { "role": "assistant", "content": "```python\ntotal = 229\ngroups = 7\nper_group...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "32 each, 5 left over", "printed": "32 each, 5 left over", "notation": null}
nlprog_det-setting-0049704
How many minutes pass from 7:15 AM to 11:22 AM on the same day? The computation: ```python start = 7 * 60 + 15 # 435 end = 11 * 60 + 22 # 682 print(end - start) ``` Python prints: 247 It is 247 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "247", "printed": "247", "notation": null}
nlprog_det-setting-0049705
<|start|><|system|> You are a study helper for students.<|eot|> <|user|> An unpaid balance of $1,000 accrues 1.5% simple interest per month. How much interest accrues in 2 months?<|eot|> <|assistant|> ```python balance = 1000 monthly_rate = 1.5 / 100 # 0.015 months = 2 interest = balance * monthly_rate * months # 30....
chat
[ { "role": "system", "content": "You are a study helper for students." }, { "role": "user", "content": "An unpaid balance of $1,000 accrues 1.5% simple interest per month. How much interest accrues in 2 months?" }, { "role": "assistant", "content": "```python\nbalance = 1000\nmonthly_...
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "30.00", "printed": "30.00", "notation": null}
nlprog_det-setting-0049706
Scale 100 g of sugar from 4 servings to 6 servings. Written as code: ```python grams = 100 serves = 4 needed_for = 6 scaled = grams * needed_for // serves # 150 print(scaled) ``` Out: 150 150 grams of sugar are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0049707
<|start|><|user|> A appointment starts at 10:40 AM and lasts 150 minutes. When does it end?<|eot|> <|assistant|> ```python start = 10 * 60 + 40 end = start + 150 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` (Output: 1:10 PM) The appointment finishes at 1...
chat
[ { "role": "user", "content": "A appointment starts at 10:40 AM and lasts 150 minutes. When does it end?" }, { "role": "assistant", "content": "```python\nstart = 10 * 60 + 40\nend = start + 150\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else '...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "1:10 PM", "printed": "1:10 PM", "notation": null}
nlprog_det-setting-0049708
A penalty of $25 a day accrues, capped at $5,000. What is owed after 43 days? Code: ```python per_day = 25 days = 43 cap = 5000 fine = min(per_day * days, cap) # 1075 print(fine) ``` Execution prints 1075. The fine is $1,075.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "1075", "printed": "1075", "notation": null}
nlprog_det-setting-0049709
25 of 40 members attended. What percent attended? Attendance was 62.5%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
24
{"gold": "62.5", "printed": "62.5", "notation": null}
nlprog_det-setting-0049710
<|start|><|user|> A library charges $0.25 per book per day late. What is the fine for 3 books that are 6 days late?<|eot|> <|assistant|> ```python per_day = 0.25 days_late = 6 books = 3 fine = per_day * days_late * books # 4.5 print(f"{fine:.2f}") ``` It outputs 4.50. The fine is $4.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A library charges $0.25 per book per day late. What is the fine for 3 books that are 6 days late?" }, { "role": "assistant", "content": "```python\nper_day = 0.25\ndays_late = 6\nbooks = 3\nfine = per_day * days_late * books # 4.5\nprint(f\"{fine:.2f}\")\n```\nIt o...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "4.50", "printed": "4.50", "notation": null}
nlprog_det-setting-0049711
<|start|><|user|> Each of Viktor's bike rides burns 350 calories. How many calories over 7 bike rides?<|eot|> <|assistant|> ```python per_session = 350 sessions = 7 total = per_session * sessions # 2450 print(total) ``` Execution prints 2450. That burns 2450 calories.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each of Viktor's bike rides burns 350 calories. How many calories over 7 bike rides?" }, { "role": "assistant", "content": "```python\nper_session = 350\nsessions = 7\ntotal = per_session * sessions # 2450\nprint(total)\n```\nExecution prints 2450.\n\nThat burns 24...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "2450", "printed": "2450", "notation": null}
nlprog_det-setting-0049712
<|start|><|user|> An invoice lists 29 calendars at $6 each, plus 8% sales tax. What is the invoice total?<|eot|> <|assistant|> ```python quantity = 29 unit_price = 6 subtotal = quantity * unit_price # 174 total = subtotal * (1 + 8 / 100) # 187.92000000000002 print(f"{total:.2f}") ``` What it prints: 187.92 The invoi...
chat
[ { "role": "user", "content": "An invoice lists 29 calendars at $6 each, plus 8% sales tax. What is the invoice total?" }, { "role": "assistant", "content": "```python\nquantity = 29\nunit_price = 6\nsubtotal = quantity * unit_price # 174\ntotal = subtotal * (1 + 8 / 100) # 187.92000000000002\n...
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "187.92", "printed": "187.92", "notation": null}
nlprog_det-setting-0049714
A meeting lasted 1 hours and 23 minutes. How many minutes is that? One way, in code: ```python hours = 1 minutes = 23 total_minutes = hours * 60 + minutes print(total_minutes) ``` What it prints — 83 The meeting lasted 83 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "83", "printed": "83", "notation": null}
nlprog_det-setting-0049715
A $24,000 grant pays $0 up front and the rest in 6 equal installments. How large is each installment? The computation: ```python grant = 24000 up_front = 0 installments = 6 each = (grant - up_front) / installments # 4000.0 print(f"{each:.2f}") ``` Run it and it prints 4000.00. $4,000.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "4000.00", "printed": "4000.00", "notation": null}
nlprog_det-setting-0049716
Straight-line depreciation: cost $45,000, salvage $6,000, 3 years. How much per year? Let's compute it with Python. ```python cost = 45000 salvage = 6000 years = 3 per_year = (cost - salvage) / years # 13000.0 print(f"{per_year:.2f}") ``` Program output: 13000.00 $13,000.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "13000.00", "printed": "13000.00", "notation": null}
nlprog_det-setting-0049717
<|start|><|system|> Tools (call with JSON): {"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}} {"name": "python_exec", "description": "Runs a short Python snippet and returns what it prints.", "par...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}\n{\"name\": \"python_exec\", \"description\": \"Run...
nlprog_det
setting
original
null
deterministic
[]
[]
322
{"gold": "77.76", "printed": "77.76", "notation": null}
nlprog_det-setting-0049718
<|start|><|user|> An unpaid balance of $2,500 accrues 2% simple interest per month. How much interest accrues in 6 months?<|eot|> <|assistant|> ```python balance = 2500 monthly_rate = 2 / 100 # 0.02 months = 6 interest = balance * monthly_rate * months # 300.0 print(f"{interest:.2f}") ``` Result — 300.00 The interes...
chat
[ { "role": "user", "content": "An unpaid balance of $2,500 accrues 2% simple interest per month. How much interest accrues in 6 months?" }, { "role": "assistant", "content": "```python\nbalance = 2500\nmonthly_rate = 2 / 100 # 0.02\nmonths = 6\ninterest = balance * monthly_rate * months # 300.0...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "300.00", "printed": "300.00", "notation": null}
nlprog_det-setting-0049719
<|start|><|user|> Buying 5 desk lamps at $26 each, 5 batteries at $7 each, 5 chairs at $12 each, someone hands over $250. What change comes back?<|eot|> <|assistant|> ```python items = [(5, 26), (5, 7), (5, 12)] total = sum(q * p for q, p in items) # 225 paid = 250 change = paid - total # 25 print(change) ``` Running...
chat
[ { "role": "user", "content": "Buying 5 desk lamps at $26 each, 5 batteries at $7 each, 5 chairs at $12 each, someone hands over $250. What change comes back?" }, { "role": "assistant", "content": "```python\nitems = [(5, 26), (5, 7), (5, 12)]\ntotal = sum(q * p for q, p in items) # 225\npaid = ...
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0049720
<|start|><|user|> A shift runs from 7:09 AM to 9:29 AM. How long is it in minutes?<|eot|> <|assistant|> ```python start = 7 * 60 + 9 # 429 end = 9 * 60 + 29 # 569 print(end - start) ``` # output: 140 It is 140 minutes long.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A shift runs from 7:09 AM to 9:29 AM. How long is it in minutes?" }, { "role": "assistant", "content": "```python\nstart = 7 * 60 + 9 # 429\nend = 9 * 60 + 29 # 569\nprint(end - start)\n```\n# output: 140\n\nIt is 140 minutes long." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "140", "printed": "140", "notation": null}
nlprog_det-setting-0049721
A meal costs $199.60. How much is a 25% tip? Leave $49.90.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
26
{"gold": "49.90", "printed": "49.90", "notation": null}
nlprog_det-setting-0049722
Meals are $69 per day and lodging $175 per night. What is the allowance for 6 days and 5 nights? The program: ```python days = 6 meal_rate = 69 lodging_rate = 175 nights = days - 1 # 5 total = days * meal_rate + nights * lodging_rate # 1289 print(total) ``` Python prints: 1289 The allowance is $1,289.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "1289", "printed": "1289", "notation": null}
nlprog_det-setting-0049723
A measure needs at least 60% of 206 votes. How many votes is that, rounded up? As a program: ```python import math voters = 206 needed = math.ceil(voters * 60 / 100) # 124 print(needed) ``` Executing it gives 124, as expected. 124 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "124", "printed": "124", "notation": null}
nlprog_det-setting-0049724
At 30 miles per hour, how many minutes does a 45-mile trip take? One way, in code: ```python distance = 45 speed = 30 minutes = distance / speed * 60 # 90.0 print(round(minutes)) ``` Out = 90 The trip takes 90 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "90", "printed": "90", "notation": null}
nlprog_det-setting-0049725
A storeroom has 1718 scissors. The office uses 25 a day. How many are left after 6 days? ```python stock = 1718 per_day = 25 days = 6 left = stock - per_day * days print(left) ``` This prints 1568. 1568 scissors are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "1568", "printed": "1568", "notation": null}
nlprog_det-setting-0049726
<|start|><|user|> 4 books come back 2 days late, at $0.20 a day each. What is the fine?<|eot|> <|assistant|> ```python per_day = 0.2 days_late = 2 books = 4 fine = per_day * days_late * books print(f"{fine:.2f}") ``` Run result: 1.60 $1.60 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "4 books come back 2 days late, at $0.20 a day each. What is the fine?" }, { "role": "assistant", "content": "```python\nper_day = 0.2\ndays_late = 2\nbooks = 4\nfine = per_day * days_late * books\nprint(f\"{fine:.2f}\")\n```\nRun result: 1.60\n\n$1.60 is owed." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "1.60", "printed": "1.60", "notation": null}
nlprog_det-setting-0049727
<|start|><|user|> The landlord deducts $45 and $75 from a $800 deposit. What is returned to the tenant?<|eot|> <|assistant|> ```python deposit = 800 deductions = [45, 75] refund = deposit - sum(deductions) # 680 print(refund) ``` # out: 680 The refund is $680.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The landlord deducts $45 and $75 from a $800 deposit. What is returned to the tenant?" }, { "role": "assistant", "content": "```python\ndeposit = 800\ndeductions = [45, 75]\nrefund = deposit - sum(deductions) # 680\nprint(refund)\n```\n# out: 680\n\nThe refund is $...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "680", "printed": "680", "notation": null}
nlprog_det-setting-0049728
<|start|><|user|> An office budget of $20,000 has expenses of $2,121, $2,380, $2,824. How much of the budget is left?<|eot|> <|assistant|> budget = 20000 expenses = [2121, 2380, 2824] left = budget - sum(expenses) # 12675 print(left) (Output: 12675) The remaining budget is $12,675.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An office budget of $20,000 has expenses of $2,121, $2,380, $2,824. How much of the budget is left?" }, { "role": "assistant", "content": " budget = 20000\n expenses = [2121, 2380, 2824]\n left = budget - sum(expenses) # 12675\n print(left)\n(Output: 12...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "12675", "printed": "12675", "notation": null}
nlprog_det-setting-0049729
<|start|><|system|> You are a math tutor.<|eot|> <|user|> A pack of 8 desk lamps sells for $168. What does each cost?<|eot|> <|assistant|> ```python total = 168 count = 8 per_item = total // count # 21 print(per_item) ``` Execution result: 21 The unit price is $21.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a math tutor." }, { "role": "user", "content": "A pack of 8 desk lamps sells for $168. What does each cost?" }, { "role": "assistant", "content": "```python\ntotal = 168\ncount = 8\nper_item = total // count # 21\nprint(per_item)\n```\nExecuti...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0049730
A count moves from 500 to 300. By what percent did it change (use a minus sign for a drop)? Python version: ```python old = 500 new = 300 change = (new - old) / old * 100 # -40.0 print(round(change)) ``` It outputs: -40 It changed by -40%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "-40", "printed": "-40", "notation": null}
nlprog_det-setting-0049731
<|start|><|user|> Convert 4 h 53 min (the length of a hearing) to minutes.<|eot|> <|assistant|> ```python hours = 4 minutes = 53 total_minutes = hours * 60 + minutes # 293 print(total_minutes) ``` (Execution result: 293) The hearing lasted 293 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 4 h 53 min (the length of a hearing) to minutes." }, { "role": "assistant", "content": "```python\nhours = 4\nminutes = 53\ntotal_minutes = hours * 60 + minutes # 293\nprint(total_minutes)\n```\n(Execution result: 293)\n\nThe hearing lasted 293 minutes." ...
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "293", "printed": "293", "notation": null}
nlprog_det-setting-0049732
A clerk's office charges $25 for each filing. Xavier submits 16 filings. What is the total fee? ```python fee = 25 filings = 16 total = fee * filings # 400 print(total) ``` Printed result: 400 The filings cost $400 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "400", "printed": "400", "notation": null}
nlprog_det-setting-0049733
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> Fixed costs are $6,000. Each unit sells for $15 and costs $11 to make. How many units must be sold to break even?<|eot|> <|assistant|> 1500 units are needed.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "Fixed costs are $6,000. Each unit sells for $15 and costs $11 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "1500 units are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
57
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0049734
An invoice lists 5 chairs at $3 each, plus 6% sales tax. What is the invoice total? We can compute it in Python. ```python quantity = 5 unit_price = 3 subtotal = quantity * unit_price # 15 total = subtotal * (1 + 6 / 100) # 15.9 print(f"{total:.2f}") ``` Run result = 15.90 The invoice total is $15.90.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "15.90", "printed": "15.90", "notation": null}
nlprog_det-setting-0049735
<|start|><|user|> A trial runs from September 16, 2028 to September 22, 2028, counting both days. How many calendar days is that?<|eot|> <|assistant|> ```python from datetime import date first = date(2028, 9, 16) last = date(2028, 9, 22) days = (last - first).days + 1 print(days) ``` That prints: 7 7 calendar days.<|e...
chat
[ { "role": "user", "content": "A trial runs from September 16, 2028 to September 22, 2028, counting both days. How many calendar days is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2028, 9, 16)\nlast = date(2028, 9, 22)\ndays = (last - first).da...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "7", "printed": "7", "notation": null}
nlprog_det-setting-0049736
Fines run at $50 per day up to a maximum of $1,000. How much after 41 days? Python, step by step: ```python per_day = 50 days = 41 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` This prints: 1000 $1,000 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0049737
A count moves from 400 to 440. By what percent did it change (use a minus sign for a drop)? Program: ```python old = 400 new = 440 change = (new - old) / old * 100 # 10.0 print(round(change)) ``` # printed result: 10 It changed by 10%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0049738
<|start|><|system|> You are a logic tutor.<|eot|> <|user|> How many minutes pass from 12:00 PM to 4:52 PM on the same day?<|eot|> <|assistant|> ```python start = 12 * 60 + 0 # 720 end = 16 * 60 + 52 # 1012 print(end - start) ``` What it prints — 292 292 minutes pass.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a logic tutor." }, { "role": "user", "content": "How many minutes pass from 12:00 PM to 4:52 PM on the same day?" }, { "role": "assistant", "content": "```python\nstart = 12 * 60 + 0 # 720\nend = 16 * 60 + 52 # 1012\nprint(end - start)\n```\n...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "292", "printed": "292", "notation": null}
nlprog_det-setting-0049739
A storeroom has 1682 mugs. The office uses 17 a day. How many are left after 20 days? Set it up in Python: ```python stock = 1682 per_day = 17 days = 20 left = stock - per_day * days # 1342 print(left) ``` Run result: 1342 1342 mugs are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "1342", "printed": "1342", "notation": null}
nlprog_det-setting-0049740
<|start|><|system|> You have access to these functions: {"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_unit", "to_unit"...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\":...
nlprog_det
setting
original
null
deterministic
[]
[]
346
{"gold": "24.00", "printed": "24.00", "notation": null}
nlprog_det-setting-0049741
What does $2,000 grow to in 4 years at 5% annual compounding? ```python principal = 2000 rate = 5 / 100 # 0.05 years = 4 value = principal * (1 + rate) ** years # 2431.0125000000003 print(f"{value:.2f}") ``` Execution prints: 2431.01 It is worth $2,431.01.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "2431.01", "printed": "2431.01", "notation": null}
nlprog_det-setting-0049742
<|start|><|user|> With 29 rows of 24 chairs and 8 empty chairs, how many chairs are taken?<|eot|> <|assistant|> ```python rows = 29 per_row = 24 empty = 8 seated = rows * per_row - empty # 688 print(seated) ``` It prints: 688 688 people are seated.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 29 rows of 24 chairs and 8 empty chairs, how many chairs are taken?" }, { "role": "assistant", "content": "```python\nrows = 29\nper_row = 24\nempty = 8\nseated = rows * per_row - empty # 688\nprint(seated)\n```\nIt prints: 688\n\n688 people are seated." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "688", "printed": "688", "notation": null}
nlprog_det-setting-0049743
A penalty of $25 a day accrues, capped at $2,500. What is owed after 30 days? ```python per_day = 25 days = 30 cap = 2500 fine = min(per_day * days, cap) # 750 print(fine) ``` This prints 750, as expected. $750 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0049744
A client paid a $5,000 retainer. The firm has billed 14 hours at $250 per hour. How much of the retainer is left? ```python retainer = 5000 hours = 14 rate = 250 left = retainer - hours * rate # 1500 print(left) ``` The script prints: 1500 The remaining balance is $1,500.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0049745
<|start|><|system|> You check calculations for an accounting team.<|eot|> <|user|> 8 scissors cost $9 apiece. With 10% tax added, what is the total?<|eot|> <|assistant|> ```python quantity = 8 unit_price = 9 subtotal = quantity * unit_price # 72 total = subtotal * (1 + 10 / 100) # 79.2 print(f"{total:.2f}") ``` (Exec...
chat
[ { "role": "system", "content": "You check calculations for an accounting team." }, { "role": "user", "content": "8 scissors cost $9 apiece. With 10% tax added, what is the total?" }, { "role": "assistant", "content": "```python\nquantity = 8\nunit_price = 9\nsubtotal = quantity * uni...
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "79.20", "printed": "79.20", "notation": null}
nlprog_det-setting-0049746
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}} {"name": "math_engine", "description": "A Python interpreter. Returns standard ...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}\n{\"name\": \"math_engine\",...
nlprog_det
setting
original
null
deterministic
[]
[]
285
{"gold": "1800", "printed": "1800", "notation": null}
nlprog_det-setting-0049747
A 5% increase is applied to $900 monthly rent. What is the new amount? A short script: ```python rent = 900 increase = 5 / 100 # 0.05 new_rent = rent * (1 + increase) # 945.0 print(f"{new_rent:.2f}") ``` # execution result: 945.00 The new rent is $945.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "945.00", "printed": "945.00", "notation": null}
nlprog_det-setting-0049748
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> A court charges $15 per request plus $0.10 per page after the first 10 pages. What does a 7-page copy cost?<|eot|> <|assistant|> ```python pages = 7 base = 15 per_page = 0.1 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 15.0 pri...
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "role": "user", "content": "A court charges $15 per request plus $0.10 per page after the first 10 pages. What does a 7-page copy cost?" }, { "role": "assistant", "content": "```python\npages = 7\nbase = 15\nper_pag...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "15.00", "printed": "15.00", "notation": null}
nlprog_det-setting-0049749
<|start|><|user|> A hall has 24 rows of 12 seats, and 18 seats are empty. How many people are seated?<|eot|> <|assistant|> rows = 24 per_row = 12 empty = 18 seated = rows * per_row - empty # 270 print(seated) stdout — 270 270 people are seated.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hall has 24 rows of 12 seats, and 18 seats are empty. How many people are seated?" }, { "role": "assistant", "content": " rows = 24\n per_row = 12\n empty = 18\n seated = rows * per_row - empty # 270\n print(seated)\nstdout — 270\n\n270 people are ...
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "270", "printed": "270", "notation": null}
nlprog_det-setting-0049750
A 24-month warranty starts on November 17, 2027. On what date does it end? Computing it: ```python from datetime import date start = date(2027, 11, 17) months = 24 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Run it and ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "2029-11-17", "printed": "2029-11-17", "notation": null}
nlprog_det-setting-0049751
How long, in days, is it from September 15, 2024 until October 20, 2024? Python code: from datetime import date first = date(2024, 9, 15) # datetime.date(2024, 9, 15) second = date(2024, 10, 20) # datetime.date(2024, 10, 20) print((second - first).days) When run, it prints: 35 It is 35 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "35", "printed": "35", "notation": null}
nlprog_det-setting-0049752
Papers were served by mail on June 25, 2024. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date? Python code: ```python from datetime import date, timedelta served = date(2024, 6, 25) # datetime.date(2024, 6, 25) response_days = 14 mail_days = 3 due = served + timedelta(days=...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
178
{"gold": "2024-07-12", "printed": "2024-07-12", "notation": null}
nlprog_det-setting-0049753
Each of Sofia's bike rides burns 200 calories. How many calories over 4 bike rides? Coded up: ```python per_session = 200 sessions = 4 total = per_session * sessions # 800 print(total) ``` Python prints 800. 800 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "800", "printed": "800", "notation": null}
nlprog_det-setting-0049754
A settlement of $7,350 is split equally among 5 parties. How much does each party receive? Python version: ```python settlement = 7350 parties = 5 share = settlement // parties # 1470 print(share) ``` That prints: 1470 Each party receives $1,470.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "1470", "printed": "1470", "notation": null}
nlprog_det-setting-0049755
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> Walls total 900 sq ft and each can covers 350 sq ft. How many cans should be bought?<|eot|> <|assistant|> ```python import math area = 900 coverage = 350 cans = math.ceil(area / coverage) # 3 print(cans) ``` (Execution result: 3) 3 cans are needed.<|eot|> <|e...
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "Walls total 900 sq ft and each can covers 350 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "```python\nimport math\narea = 900\ncoverage = 350\ncans = math.ceil(ar...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0049756
How many of 46 members form a majority (more than half)? Python: members = 46 majority = members // 2 + 1 # 24 print(majority) Running it prints: 24 24 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
61
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0049757
<|start|><|user|> 2 clients win $60,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> ```python award = 60000 fee = award * 30 / 100 remaining = award - fee per_client = remaining / 2 print(f"{per_client:.2f}") ``` Printed: 21000.00 Each share is $21,000.00.<...
chat
[ { "role": "user", "content": "2 clients win $60,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": "```python\naward = 60000\nfee = award * 30 / 100\nremaining = award - fee\nper_client = remaining / 2\nprint(f\"{per_cli...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "21000.00", "printed": "21000.00", "notation": null}
nlprog_det-setting-0049758
<|start|><|user|> A pack of 20 hard drives sells for $1080. What does each cost?<|eot|> <|assistant|> The unit price is $54.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A pack of 20 hard drives sells for $1080. What does each cost?" }, { "role": "assistant", "content": "The unit price is $54." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "54", "printed": "54", "notation": null}
nlprog_det-setting-0049759
55 files go into boxes of 40. How many boxes does that take? ```python import math files = 55 per_box = 40 boxes = math.ceil(files / per_box) # 2 print(boxes) ``` This prints 2, as expected. 2 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0049760
A lawyer's fee is 40% of a $60,000 recovery. How large is the fee? In Python: recovery = 60000 rate = 40 / 100 # 0.4 fee = recovery * rate # 24000.0 print(f"{fee:.2f}") Shell output: 24000.00 The fee is $24,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "24000.00", "printed": "24000.00", "notation": null}
nlprog_det-setting-0049761
A claim accrued on July 11, 2019. The limitations period is 3 years. On what date does it expire? The Python version: ```python from datetime import date accrued = date(2019, 7, 11) # datetime.date(2019, 7, 11) years = 3 expires = accrued.replace(year=accrued.year + years) # datetime.date(2022, 7, 11) print(expires....
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "2022-07-11", "printed": "2022-07-11", "notation": null}
nlprog_det-setting-0049762
<|start|><|user|> A $30,000 grant pays $0 up front and the rest in 6 equal installments. How large is each installment?<|eot|> <|assistant|> ```python grant = 30000 up_front = 0 installments = 6 each = (grant - up_front) / installments # 5000.0 print(f"{each:.2f}") ``` (Program output: 5000.00) Each installment is $5...
chat
[ { "role": "user", "content": "A $30,000 grant pays $0 up front and the rest in 6 equal installments. How large is each installment?" }, { "role": "assistant", "content": "```python\ngrant = 30000\nup_front = 0\ninstallments = 6\neach = (grant - up_front) / installments # 5000.0\nprint(f\"{each:...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "5000.00", "printed": "5000.00", "notation": null}
nlprog_det-setting-0049763
Starting from $8,000, the team spends $3,849, $2,557. What remains? Written as code: budget = 8000 expenses = [3849, 2557] left = budget - sum(expenses) # 1594 print(left) Output of the run: 1594 $1,594 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "1594", "printed": "1594", "notation": null}
nlprog_det-setting-0049764
3 books come back 17 days late, at $0.50 a day each. What is the fine? A Python solution: ```python per_day = 0.5 days_late = 17 books = 3 fine = per_day * days_late * books # 25.5 print(f"{fine:.2f}") ``` Run it and it prints: 25.50 The fine is $25.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "25.50", "printed": "25.50", "notation": null}
nlprog_det-setting-0049766
<|start|><|system|> You may call the tools below. [{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "eval_python", "description": "Runs a short Python snippet and returns what it prints...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"eval_python\", \"description\"...
nlprog_det
setting
original
null
deterministic
[]
[]
284
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0049768
Printing costs 12 cents a page. What does it cost to print 46 copies of a 9-page handout? Printing costs $49.68.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "49.68", "printed": "49.68", "notation": null}
nlprog_det-setting-0049769
Fines run at $50 per day up to a maximum of $5,000. How much after 42 days? Computation in Python: ```python per_day = 50 days = 42 cap = 5000 fine = min(per_day * days, cap) # 2100 print(fine) ``` (Program output: 2100) $2,100 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "2100", "printed": "2100", "notation": null}
nlprog_det-setting-0049771
368 files go into boxes of 12. How many boxes does that take? In code: ```python import math files = 368 per_box = 12 boxes = math.ceil(files / per_box) # 31 print(boxes) ``` On running, it outputs: 31 It takes 31 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "31", "printed": "31", "notation": null}
nlprog_det-setting-0049772
<|start|><|user|> At $25.79 an hour, what does 36 hours of work pay?<|eot|> <|assistant|> rate = 25.79 hours = 36 earnings = rate * hours # 928.4399999999999 print(f"{earnings:.2f}") Run result = 928.44 That earns $928.44.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $25.79 an hour, what does 36 hours of work pay?" }, { "role": "assistant", "content": " rate = 25.79\n hours = 36\n earnings = rate * hours # 928.4399999999999\n print(f\"{earnings:.2f}\")\nRun result = 928.44\n\nThat earns $928.44." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "928.44", "printed": "928.44", "notation": null}
nlprog_det-setting-0049773
At a 6% tax rate, what is the tax on $19.18? ```python price = 19.18 tax_rate = 6 / 100 # 0.06 tax = price * tax_rate # 1.1508 print(f"{tax:.2f}") ``` Executing it gives: 1.15 The tax is $1.15.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "1.15", "printed": "1.15", "notation": null}
nlprog_det-setting-0049774
<|start|><|user|> 107 copies of a 27-page packet are printed at $0.15 per page. What is the cost?<|eot|> <|assistant|> ```python pages = 27 copies = 107 cost_per_page = 0.15 cost = pages * copies * cost_per_page # 433.34999999999997 print(f"{cost:.2f}") ``` The code prints: 433.35 Printing costs $433.35.<|eot|> <|end...
chat
[ { "role": "user", "content": "107 copies of a 27-page packet are printed at $0.15 per page. What is the cost?" }, { "role": "assistant", "content": "```python\npages = 27\ncopies = 107\ncost_per_page = 0.15\ncost = pages * copies * cost_per_page # 433.34999999999997\nprint(f\"{cost:.2f}\")\n```...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "433.35", "printed": "433.35", "notation": null}
nlprog_det-setting-0049775
A $6,000 loan carries 8% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment? ```python principal = 6000 annual_rate = 8 / 100 months = 12 interest = principal * annual_rate * months / 12 payment = (principal + interest) / months print(f"{payment:.2f...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "540.00", "printed": "540.00", "notation": null}
nlprog_det-setting-0049777
<|start|><|user|> A pack of 5 labels sells for $15. What does each cost?<|eot|> <|assistant|> ```python total = 15 count = 5 per_item = total // count # 3 print(per_item) ``` (Printed: 3) The unit price is $3.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A pack of 5 labels sells for $15. What does each cost?" }, { "role": "assistant", "content": "```python\ntotal = 15\ncount = 5\nper_item = total // count # 3\nprint(per_item)\n```\n(Printed: 3)\n\nThe unit price is $3." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0049778
<|start|><|system|> You have access to these functions: [{"name": "py_exec", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|us...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"py_exec\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python sour...
nlprog_det
setting
original
null
deterministic
[]
[]
202
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0049781
<|start|><|system|> Tools (call with JSON): {"name": "eval_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> Divide 79 items among 8 groups a...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"eval_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"cod...
nlprog_det
setting
original
null
deterministic
[]
[]
244
{"gold": "9 each, 7 left over", "printed": "9 each, 7 left over", "notation": null}
nlprog_det-setting-0049782
<|start|><|system|> You have access to these functions: [{"name": "run_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "define_word", "...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"run_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, ...
nlprog_det
setting
original
null
deterministic
[]
[]
407
{"gold": "1983.34", "printed": "1983.34", "notation": null}
nlprog_det-setting-0049784
A court charges $10 per request plus $0.10 per page after the first 0 pages. What does a 77-page copy cost? The Python version: ```python pages = 77 base = 10 per_page = 0.1 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 17.7 print(f"{cost:.2f}") ``` Program output: 17.70 The copy costs $17.70.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "17.70", "printed": "17.70", "notation": null}
nlprog_det-setting-0049785
19 of 20 members attended. What percent attended? As a program: present = 19 total = 20 percent = present / total * 100 # 95.0 print(round(percent, 1)) When run, it prints 95.0. 95.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
70
{"gold": "95.0", "printed": "95.0", "notation": null}
nlprog_det-setting-0049786
<|start|><|user|> Goods bought on June 4, 2025 carry a 36-month warranty. When does it expire?<|eot|> <|assistant|> ```python from datetime import date start = date(2025, 6, 4) months = 36 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isof...
chat
[ { "role": "user", "content": "Goods bought on June 4, 2025 carry a 36-month warranty. When does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2025, 6, 4)\nmonths = 36\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(sta...
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "2028-06-04", "printed": "2028-06-04", "notation": null}
nlprog_det-setting-0049787
A 9 × 13 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up? Computing it: ```python import math length = 9 width = 13 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 30 print(tiles) ``` Printed: 30 It takes 30 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0049788
After a 25% fee is taken from a $48,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share? Programmatically: ```python award = 48000 fee = award * 25 / 100 remaining = award - fee per_client = remaining / 2 print(f"{per_client:.2f}") ``` Output = 18000.00 Each share is $18,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "18000.00", "printed": "18000.00", "notation": null}
nlprog_det-setting-0049790
A hall has 5 rows of 20 seats, and 2 seats are empty. How many people are seated? Code: rows = 5 per_row = 20 empty = 2 seated = rows * per_row - empty # 98 print(seated) # printed: 98 98 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "98", "printed": "98", "notation": null}
nlprog_det-setting-0049792
4 books come back 17 days late, at $0.25 a day each. What is the fine? We can compute it in Python. ```python per_day = 0.25 days_late = 17 books = 4 fine = per_day * days_late * books # 17.0 print(f"{fine:.2f}") ``` stdout: 17.00 $17.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "17.00", "printed": "17.00", "notation": null}
nlprog_det-setting-0049793
Starting from $12,000, the team spends $1,976, $859, $1,604, $2,756. What remains? Let the code do the arithmetic: ```python budget = 12000 expenses = [1976, 859, 1604, 2756] left = budget - sum(expenses) print(left) ``` (Run result: 4805) $4,805 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "4805", "printed": "4805", "notation": null}
nlprog_det-setting-0049794
<|start|><|system|> Tools (call with JSON): [{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_unit", "to_unit"]}}, {"name...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\": \"string\"...
nlprog_det
setting
original
null
deterministic
[]
[]
414
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0049795
<|start|><|system|> You have access to these functions: {"name": "interpreter", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}} {"name": "define_word",...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"interpreter\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}...
nlprog_det
setting
original
null
deterministic
[]
[]
323
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0049796
<|start|><|system|> Functions: [{"name": "compute", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "lookup_statute", "description": "Look up the text...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"compute\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\"]}}, {\"n...
nlprog_det
setting
original
null
deterministic
[]
[]
387
{"gold": "75", "printed": "75", "notation": null}
nlprog_det-setting-0049797
<|start|><|system|> Answer the user's question directly.<|eot|> <|user|> Each storage box holds 50 files. How many boxes are needed for 509 files?<|eot|> <|assistant|> ```python import math files = 509 per_box = 50 boxes = math.ceil(files / per_box) # 11 print(boxes) ``` It prints: 11 11 boxes are needed.<|eot|> <|en...
chat
[ { "role": "system", "content": "Answer the user's question directly." }, { "role": "user", "content": "Each storage box holds 50 files. How many boxes are needed for 509 files?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 509\nper_box = 50\nboxes = math.ceil...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0049798
A settlement of $1,200 is split equally among 5 parties. How much does each party receive? Each share is $240.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "240", "printed": "240", "notation": null}
nlprog_det-setting-0049799
<|start|><|user|> A settlement of $1,200 is split equally among 8 parties. How much does each party receive?<|eot|> <|assistant|> ```python settlement = 1200 parties = 8 share = settlement // parties # 150 print(share) ``` Result — 150 Each share is $150.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A settlement of $1,200 is split equally among 8 parties. How much does each party receive?" }, { "role": "assistant", "content": "```python\nsettlement = 1200\nparties = 8\nshare = settlement // parties # 150\nprint(share)\n```\nResult — 150\n\nEach share is $150."...
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "150", "printed": "150", "notation": null}