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-0050114
A library charges $0.50 per book per day late. What is the fine for 4 books that are 14 days late? Coded up: per_day = 0.5 days_late = 14 books = 4 fine = per_day * days_late * books # 28.0 print(f"{fine:.2f}") Execution prints 28.00, as expected. $28.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "28.00", "printed": "28.00", "notation": null}
nlprog_det-setting-0050115
Copies cost $10 plus $0.50 for each page beyond 10. How much for 24 pages? One way, in code: ```python pages = 24 base = 10 per_page = 0.5 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page print(f"{cost:.2f}") ``` Out: 17.00 The total is $17.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "17.00", "printed": "17.00", "notation": null}
nlprog_det-setting-0050116
<|start|><|user|> Each storage box holds 20 files. How many boxes are needed for 116 files?<|eot|> <|assistant|> ```python import math files = 116 per_box = 20 boxes = math.ceil(files / per_box) print(boxes) ``` The run gives 6, as expected. 6 boxes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each storage box holds 20 files. How many boxes are needed for 116 files?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 116\nper_box = 20\nboxes = math.ceil(files / per_box)\nprint(boxes)\n```\nThe run gives 6, as expected.\n\n6 boxes are ne...
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0050118
Jamal earns $22.40 an hour and time and a half for hours over 40. What is the pay for a 49-hour week? Programmatically: ```python rate = 22.4 hours = 49 regular = 40 * rate overtime = (hours - 40) * rate * 1.5 pay = regular + overtime print(f"{pay:.2f}") ``` stdout = 1198.40 Jamal earns $1,198.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "1198.40", "printed": "1198.40", "notation": null}
nlprog_det-setting-0050119
<|start|><|user|> How much sales tax is charged on a $835.09 purchase at 5%?<|eot|> <|assistant|> ```python price = 835.09 tax_rate = 5 / 100 # 0.05 tax = price * tax_rate # 41.75450000000001 print(f"{tax:.2f}") ``` Execution result — 41.75 $41.75 in tax.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How much sales tax is charged on a $835.09 purchase at 5%?" }, { "role": "assistant", "content": "```python\nprice = 835.09\ntax_rate = 5 / 100 # 0.05\ntax = price * tax_rate # 41.75450000000001\nprint(f\"{tax:.2f}\")\n```\nExecution result — 41.75\n\n$41.75 in ta...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "41.75", "printed": "41.75", "notation": null}
nlprog_det-setting-0050120
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}, {"name": "sandbox_p...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"...
nlprog_det
setting
original
null
deterministic
[]
[]
345
{"gold": "8 each, 1 left over", "printed": "8 each, 1 left over", "notation": null}
nlprog_det-setting-0050121
A 2% increase is applied to $1,250 monthly rent. What is the new amount? The new rent is $1,275.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "1275.00", "printed": "1275.00", "notation": null}
nlprog_det-setting-0050122
<|start|><|system|> You are a teaching assistant.<|eot|> <|user|> A 6-month warranty starts on February 3, 2025. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date start = date(2025, 2, 3) months = 6 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years,...
chat
[ { "role": "system", "content": "You are a teaching assistant." }, { "role": "user", "content": "A 6-month warranty starts on February 3, 2025. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2025, 2, 3)\nmonths = 6\n...
nlprog_det
setting
original
null
deterministic
[]
[]
159
{"gold": "2025-08-03", "printed": "2025-08-03", "notation": null}
nlprog_det-setting-0050123
What does $1,000 grow to in 4 years at 2% annual compounding? A few lines of Python do it: ```python principal = 1000 rate = 2 / 100 # 0.02 years = 4 value = principal * (1 + rate) ** years # 1082.43216 print(f"{value:.2f}") ``` The program outputs: 1082.43 It is worth $1,082.43.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "1082.43", "printed": "1082.43", "notation": null}
nlprog_det-setting-0050124
<|start|><|user|> A garage charges $4 an hour, never more than $24 a day. How much for 5 hours?<|eot|> <|assistant|> rate = 4 hours = 5 daily_max = 24 cost = min(rate * hours, daily_max) # 20 print(cost) Output: 20 The charge is $20.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A garage charges $4 an hour, never more than $24 a day. How much for 5 hours?" }, { "role": "assistant", "content": " rate = 4\n hours = 5\n daily_max = 24\n cost = min(rate * hours, daily_max) # 20\n print(cost)\nOutput: 20\n\nThe charge is $20." ...
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0050125
A hall has 25 rows of 13 seats, and 37 seats are empty. How many people are seated? Python code: ```python rows = 25 per_row = 13 empty = 37 seated = rows * per_row - empty # 288 print(seated) ``` (Console output: 288) 288 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "288", "printed": "288", "notation": null}
nlprog_det-setting-0050126
<|start|><|user|> A court charges $15 per request plus $0.10 per page after the first 0 pages. What does a 41-page copy cost?<|eot|> <|assistant|> ```python pages = 41 base = 15 per_page = 0.1 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 19.1 print(f"{cost:.2f}") ``` The code prints 19.10. The...
chat
[ { "role": "user", "content": "A court charges $15 per request plus $0.10 per page after the first 0 pages. What does a 41-page copy cost?" }, { "role": "assistant", "content": "```python\npages = 41\nbase = 15\nper_page = 0.1\nfree_pages = 0\ncost = base + max(0, pages - free_pages) * per_page ...
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "19.10", "printed": "19.10", "notation": null}
nlprog_det-setting-0050127
<|start|><|user|> An unpaid balance of $2,500 accrues 1.5% simple interest per month. How much interest accrues in 4 months?<|eot|> <|assistant|> ```python balance = 2500 monthly_rate = 1.5 / 100 months = 4 interest = balance * monthly_rate * months print(f"{interest:.2f}") ``` The script prints 150.00, as expected. T...
chat
[ { "role": "user", "content": "An unpaid balance of $2,500 accrues 1.5% simple interest per month. How much interest accrues in 4 months?" }, { "role": "assistant", "content": "```python\nbalance = 2500\nmonthly_rate = 1.5 / 100\nmonths = 4\ninterest = balance * monthly_rate * months\nprint(f\"{i...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "150.00", "printed": "150.00", "notation": null}
nlprog_det-setting-0050128
<|start|><|system|> You have access to these functions: [{"name": "sandbox_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> How...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"sandbox_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\...
nlprog_det
setting
original
null
deterministic
[]
[]
236
{"gold": "400", "printed": "400", "notation": null}
nlprog_det-setting-0050129
What commission does Dara make on $70,175 in sales at 6%? Python, step by step: sales = 70175 rate = 6 / 100 # 0.06 commission = sales * rate # 4210.5 print(f"{commission:.2f}") Execution prints: 4210.50 The commission is $4,210.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "4210.50", "printed": "4210.50", "notation": null}
nlprog_det-setting-0050130
<|start|><|user|> Express 105 hours in days and hours.<|eot|> <|assistant|> ```python hours = 105 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Interpreter output — 4 days and 9 hours 105 hours is 4 days and 9 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Express 105 hours in days and hours." }, { "role": "assistant", "content": "```python\nhours = 105\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nInterpreter output — 4 days and 9 hours\n\n105 hours is 4 days and 9 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "4 days and 9 hours", "printed": "4 days and 9 hours", "notation": null}
nlprog_det-setting-0050131
A $24,000 grant pays $6,000 up front and the rest in 3 equal installments. How large is each installment? One way, in code: grant = 24000 up_front = 6000 installments = 3 each = (grant - up_front) / installments # 6000.0 print(f"{each:.2f}") (Result: 6000.00) $6,000.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "6000.00", "printed": "6000.00", "notation": null}
nlprog_det-setting-0050132
<|start|><|user|> An office budget of $25,000 has expenses of $2,410, $1,527, $2,660, $854. How much of the budget is left?<|eot|> <|assistant|> budget = 25000 expenses = [2410, 1527, 2660, 854] left = budget - sum(expenses) print(left) # program output: 17549 The remaining budget is $17,549.<|eot|> <|...
chat
[ { "role": "user", "content": "An office budget of $25,000 has expenses of $2,410, $1,527, $2,660, $854. How much of the budget is left?" }, { "role": "assistant", "content": " budget = 25000\n expenses = [2410, 1527, 2660, 854]\n left = budget - sum(expenses)\n print(left)\n# program...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "17549", "printed": "17549", "notation": null}
nlprog_det-setting-0050133
Revenue is $41,000 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)? Here is a short program for it. ```python revenue = 41000 costs = 36000 profit = revenue - costs # 5000 margin = profit / revenue * 100 # 12.195121951219512 print(round(margin, 1)) ``` Running it prints: 12.2 ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "12.2", "printed": "12.2", "notation": null}
nlprog_det-setting-0050134
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> A meal costs $97.73. How much is a 15% tip?<|eot|> <|assistant|> bill = 97.73 tip_rate = 15 / 100 # 0.15 tip = bill * tip_rate # 14.6595 print(f"{tip:.2f}") Run result: 14.66 Leave $14.66.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "A meal costs $97.73. How much is a 15% tip?" }, { "role": "assistant", "content": " bill = 97.73\n tip_rate = 15 / 100 # 0.15\n tip = bill * tip_rate # 14.6595\n print(f\"{tip:.2f...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "14.66", "printed": "14.66", "notation": null}
nlprog_det-setting-0050135
<|start|><|user|> 1 books come back 24 days late, at $0.50 a day each. What is the fine?<|eot|> <|assistant|> $12.00 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "1 books come back 24 days late, at $0.50 a day each. What is the fine?" }, { "role": "assistant", "content": "$12.00 is owed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "12.00", "printed": "12.00", "notation": null}
nlprog_det-setting-0050136
5 claimants share a $960 settlement equally. What is each share? Script: settlement = 960 parties = 5 share = settlement // parties # 192 print(share) Printed: 192 Each share is $192.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
65
{"gold": "192", "printed": "192", "notation": null}
nlprog_det-setting-0050137
<|start|><|system|> Available functions (JSON Schema): [{"name": "code_runner", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "get_weather",...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"code_runner\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}},...
nlprog_det
setting
original
null
deterministic
[]
[]
305
{"gold": "12000.00", "printed": "12000.00", "notation": null}
nlprog_det-setting-0050138
A car gets 40 miles per gallon. Gas is $3.89 a gallon. What does fuel cost for a 450-mile trip? The trip uses $43.76 of gas.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "43.76", "printed": "43.76", "notation": null}
nlprog_det-setting-0050139
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "python_exec", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|>...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"python_exec\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source c...
nlprog_det
setting
original
null
deterministic
[]
[]
215
{"gold": "25200", "printed": "25200", "notation": null}
nlprog_det-setting-0050140
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "code_runner", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"code_runner\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"descriptio...
nlprog_det
setting
original
null
deterministic
[]
[]
442
{"gold": "3833.33", "printed": "3833.33", "notation": null}
nlprog_det-setting-0050141
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> Equal monthly payments repay $6,000 plus 5% simple yearly interest over 24 months. How large is a payment?<|eot|> <|assistant|> ```python principal = 6000 annual_rate = 5 / 100 # 0.05 months = 24 interest = principal * annual_rate * months / 12 # 600.0 ...
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "Equal monthly payments repay $6,000 plus 5% simple yearly interest over 24 months. How large is a payment?" }, { "role": "assistant", "content": "```python\nprincipal = 6000\nannual_rate = ...
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "275.00", "printed": "275.00", "notation": null}
nlprog_det-setting-0050142
A 150-page report must be reviewed in 3 days. How many pages a day is that, evenly? Python, step by step: ```python pages = 150 days = 3 per_day = pages // days # 50 print(per_day) ``` (Console output: 50) 50 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0050143
Divide 275 items among 3 groups as evenly as possible with equal groups. How many per group, and how many remain? In code: total = 275 groups = 3 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") Executing it gives: 91 each, 2 left over 91 each, 2 left over...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "91 each, 2 left over", "printed": "91 each, 2 left over", "notation": null}
nlprog_det-setting-0050144
<|start|><|user|> A customer buys 6 mugs at $15 each, 5 envelopes at $22 each, 4 batteries at $8 each and pays with $250. How much change is due?<|eot|> <|assistant|> ```python items = [(6, 15), (5, 22), (4, 8)] total = sum(q * p for q, p in items) # 232 paid = 250 change = paid - total # 18 print(change) ``` (Output...
chat
[ { "role": "user", "content": "A customer buys 6 mugs at $15 each, 5 envelopes at $22 each, 4 batteries at $8 each and pays with $250. How much change is due?" }, { "role": "assistant", "content": "```python\nitems = [(6, 15), (5, 22), (4, 8)]\ntotal = sum(q * p for q, p in items) # 232\npaid = ...
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0050145
<|start|><|system|> Keep answers short and correct.<|eot|> <|user|> Bilal earns a 2% commission on $114,450 of sales. What is the commission?<|eot|> <|assistant|> The commission is $2,289.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Keep answers short and correct." }, { "role": "user", "content": "Bilal earns a 2% commission on $114,450 of sales. What is the commission?" }, { "role": "assistant", "content": "The commission is $2,289.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
55
{"gold": "2289.00", "printed": "2289.00", "notation": null}
nlprog_det-setting-0050146
<|start|><|user|> Fuel for 240 miles at 40 mpg, with gas at $4.12/gallon: what is the cost?<|eot|> <|assistant|> The trip uses $24.72 of gas.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Fuel for 240 miles at 40 mpg, with gas at $4.12/gallon: what is the cost?" }, { "role": "assistant", "content": "The trip uses $24.72 of gas." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "24.72", "printed": "24.72", "notation": null}
nlprog_det-setting-0050147
How many days are there from March 18, 2019 to December 12, 2019? Script: ```python from datetime import date first = date(2019, 3, 18) # datetime.date(2019, 3, 18) second = date(2019, 12, 12) # datetime.date(2019, 12, 12) print((second - first).days) ``` Running it prints 269. It is 269 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "269", "printed": "269", "notation": null}
nlprog_det-setting-0050148
Walls total 1375 sq ft and each can covers 350 sq ft. How many cans should be bought? Code: ```python import math area = 1375 coverage = 350 cans = math.ceil(area / coverage) # 4 print(cans) ``` Output of the run: 4 4 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0050150
Someone born April 13, 1969 turns how old by September 19, 2023? Give the age in whole years. In Python: ```python from datetime import date born = date(1969, 4, 13) # datetime.date(1969, 4, 13) on = date(2023, 9, 19) # datetime.date(2023, 9, 19) age = on.year - born.year - ((on.month, on.day) < (born.month, born.da...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
156
{"gold": "54", "printed": "54", "notation": null}
nlprog_det-setting-0050151
A quorum is 3/5 of the 56 members, rounded up. How many members make a quorum? Coded up: import math members = 56 quorum = math.ceil(members * 3 / 5) # 34 print(quorum) Output = 34 34 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "34", "printed": "34", "notation": null}
nlprog_det-setting-0050153
<|start|><|system|> You have access to these functions: [{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "search_cases", "description": "Se...
chat
[ { "role": "system", "content": "You have access to these functions:\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
[]
[]
373
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0050154
Find the mean of these test scores: 73, 85 and 82. Here is a short program for it. scores = [73, 85, 82] average = sum(scores) // len(scores) print(average) This prints 80. The mean is 80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
70
{"gold": "80", "printed": "80", "notation": null}
nlprog_det-setting-0050155
A meeting lasted 1 hours and 37 minutes. How many minutes is that? One way, in code: hours = 1 minutes = 37 total_minutes = hours * 60 + minutes print(total_minutes) Run output — 97 The meeting lasted 97 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
69
{"gold": "97", "printed": "97", "notation": null}
nlprog_det-setting-0050156
A recipe for 4 people uses 200 grams of pasta. How many grams are needed for 2 people? Python: grams = 200 serves = 4 needed_for = 2 scaled = grams * needed_for // serves print(scaled) # run result: 100 100 grams of pasta are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "100", "printed": "100", "notation": null}
nlprog_det-setting-0050157
<|start|><|user|> A claim accrued on October 17, 2012. The limitations period is 6 years. On what date does it expire?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2012, 10, 17) # datetime.date(2012, 10, 17) years = 6 expires = accrued.replace(year=accrued.year + years) # datetime.date(2018...
chat
[ { "role": "user", "content": "A claim accrued on October 17, 2012. The limitations period is 6 years. On what date does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2012, 10, 17) # datetime.date(2012, 10, 17)\nyears = 6\nexpires = accrue...
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "2018-10-17", "printed": "2018-10-17", "notation": null}
nlprog_det-setting-0050158
<|start|><|system|> Double-check numbers before answering.<|eot|> <|user|> A claim accrued on February 7, 2013. The limitations period is 4 years. On what date does it expire?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2013, 2, 7) # datetime.date(2013, 2, 7) years = 4 expires = accrued.rep...
chat
[ { "role": "system", "content": "Double-check numbers before answering." }, { "role": "user", "content": "A claim accrued on February 7, 2013. The limitations period is 4 years. On what date does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\na...
nlprog_det
setting
original
null
deterministic
[]
[]
165
{"gold": "2017-02-07", "printed": "2017-02-07", "notation": null}
nlprog_det-setting-0050159
<|start|><|user|> Monthly: $12. Annual: $126. What is saved per year by paying annually?<|eot|> <|assistant|> $18 is saved.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Monthly: $12. Annual: $126. What is saved per year by paying annually?" }, { "role": "assistant", "content": "$18 is saved." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0050160
<|start|><|user|> What simple interest does $1,000 earn at 2% a year over 3 years?<|eot|> <|assistant|> ```python principal = 1000 rate = 2 / 100 # 0.02 years = 3 interest = principal * rate * years # 60.0 print(f"{interest:.2f}") ``` # execution result: 60.00 The interest is $60.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What simple interest does $1,000 earn at 2% a year over 3 years?" }, { "role": "assistant", "content": "```python\nprincipal = 1000\nrate = 2 / 100 # 0.02\nyears = 3\ninterest = principal * rate * years # 60.0\nprint(f\"{interest:.2f}\")\n```\n# execution result: ...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "60.00", "printed": "60.00", "notation": null}
nlprog_det-setting-0050161
<|start|><|user|> At $15.12 an hour, what does 30 hours of work pay?<|eot|> <|assistant|> The pay is $453.60.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $15.12 an hour, what does 30 hours of work pay?" }, { "role": "assistant", "content": "The pay is $453.60." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "453.60", "printed": "453.60", "notation": null}
nlprog_det-setting-0050162
Scale 100 g of sugar from 4 servings to 3 servings. Here's the code. ```python grams = 100 serves = 4 needed_for = 3 scaled = grams * needed_for // serves # 75 print(scaled) ``` Run output: 75 75 grams of sugar are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "75", "printed": "75", "notation": null}
nlprog_det-setting-0050163
A trial runs from April 17, 2028 to April 29, 2028, counting both days. How many calendar days is that? A Python solution: ```python from datetime import date first = date(2028, 4, 17) # datetime.date(2028, 4, 17) last = date(2028, 4, 29) # datetime.date(2028, 4, 29) days = (last - first).days + 1 # 13 print(days) ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0050164
<|start|><|user|> Starting with 1813 folders and using 21 per day, how many remain after 9 days?<|eot|> <|assistant|> stock = 1813 per_day = 21 days = 9 left = stock - per_day * days # 1624 print(left) Out — 1624 1624 remain.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting with 1813 folders and using 21 per day, how many remain after 9 days?" }, { "role": "assistant", "content": " stock = 1813\n per_day = 21\n days = 9\n left = stock - per_day * days # 1624\n print(left)\nOut — 1624\n\n1624 remain." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "1624", "printed": "1624", "notation": null}
nlprog_det-setting-0050165
<|start|><|system|> You can call tools. Available tools: [{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "code_runner", "description": "Ev...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"star...
nlprog_det
setting
original
null
deterministic
[]
[]
392
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0050166
<|start|><|user|> What is a 22% tip on a $224.08 bill?<|eot|> <|assistant|> The tip is $49.30.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is a 22% tip on a $224.08 bill?" }, { "role": "assistant", "content": "The tip is $49.30." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "49.30", "printed": "49.30", "notation": null}
nlprog_det-setting-0050167
What is -10 degrees Celsius in Fahrenheit? In code: ```python celsius = -10 fahrenheit = celsius * 9 / 5 + 32 # 14.0 print(round(fahrenheit)) ``` Run it and it prints: 14 It equals 14 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0050168
Divide 216 items among 5 groups as evenly as possible with equal groups. How many per group, and how many remain? The answer: 43 each, 1 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "43 each, 1 left over", "printed": "43 each, 1 left over", "notation": null}
nlprog_det-setting-0050169
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "math_engine", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|us...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"math_engine\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python so...
nlprog_det
setting
original
null
deterministic
[]
[]
249
{"gold": "23.50", "printed": "23.50", "notation": null}
nlprog_det-setting-0050170
<|start|><|user|> How many units at $15 each (variable cost $5) cover $9,000 of fixed costs?<|eot|> <|assistant|> ```python import math fixed = 9000 price = 15 variable = 5 units = math.ceil(fixed / (price - variable)) # 900 print(units) ``` It prints 900, as expected. 900 units are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many units at $15 each (variable cost $5) cover $9,000 of fixed costs?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 9000\nprice = 15\nvariable = 5\nunits = math.ceil(fixed / (price - variable)) # 900\nprint(units)\n```\nIt prints 900, ...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0050171
<|start|><|system|> Available functions (JSON Schema): {"name": "eval_python", "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": "lookup_statute", "de...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"eval_python\", \"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
[]
[]
430
{"gold": "800.00", "printed": "800.00", "notation": null}
nlprog_det-setting-0050172
A $30,000 grant pays $6,000 up front and the rest in 3 equal installments. How large is each installment? The program: ```python grant = 30000 up_front = 6000 installments = 3 each = (grant - up_front) / installments # 8000.0 print(f"{each:.2f}") ``` Executing it gives: 8000.00 Each installment is $8,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "8000.00", "printed": "8000.00", "notation": null}
nlprog_det-setting-0050173
<|start|><|user|> A claim accrued on March 28, 2013. The limitations period is 6 years. On what date does it expire?<|eot|> <|assistant|> The period expires on March 28, 2019.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A claim accrued on March 28, 2013. The limitations period is 6 years. On what date does it expire?" }, { "role": "assistant", "content": "The period expires on March 28, 2019." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "2019-03-28", "printed": "2019-03-28", "notation": null}
nlprog_det-setting-0050174
<|start|><|system|> Tool definitions: {"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}} {"name": "calculator", "description": "Python sandbox for calculations. Returns printed ...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}\n{\"name\": \"calculator\", \"descrip...
nlprog_det
setting
original
null
deterministic
[]
[]
267
{"gold": "38400", "printed": "38400", "notation": null}
nlprog_det-setting-0050175
<|start|><|user|> A claim accrued on March 20, 2016. The limitations period is 5 years. On what date does it expire?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2016, 3, 20) # datetime.date(2016, 3, 20) years = 5 expires = accrued.replace(year=accrued.year + years) # datetime.date(2021, 3,...
chat
[ { "role": "user", "content": "A claim accrued on March 20, 2016. The limitations period is 5 years. On what date does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2016, 3, 20) # datetime.date(2016, 3, 20)\nyears = 5\nexpires = accrued.re...
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "2021-03-20", "printed": "2021-03-20", "notation": null}
nlprog_det-setting-0050176
<|start|><|user|> Tobias buys 3 boxes of 8 envelopes each and gives away 15 envelopes. How many envelopes are left?<|eot|> <|assistant|> That leaves 9 envelopes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Tobias buys 3 boxes of 8 envelopes each and gives away 15 envelopes. How many envelopes are left?" }, { "role": "assistant", "content": "That leaves 9 envelopes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
48
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0050177
How many minutes pass from 7:13 AM to 10:40 AM on the same day? Program: ```python start = 7 * 60 + 13 # 433 end = 10 * 60 + 40 # 640 print(end - start) ``` Printed result: 207 It is 207 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "207", "printed": "207", "notation": null}
nlprog_det-setting-0050178
Filing fees are $125 per document. What do 17 filings cost? Programmatically: ```python fee = 125 filings = 17 total = fee * filings # 2125 print(total) ``` # program output: 2125 The filings cost $2,125 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "2125", "printed": "2125", "notation": null}
nlprog_det-setting-0050179
What average speed covers 402 miles in 3 hours? Here is a short program for it. ```python distance = 402 hours = 3 speed = distance / hours # 134.0 print(round(speed)) ``` Running it prints: 134 The average speed is 134 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "134", "printed": "134", "notation": null}
nlprog_det-setting-0050180
<|start|><|system|> Tools you may use: {"name": "python_exec", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}} {"name": "business_days", "descrip...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"python_exec\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require...
nlprog_det
setting
original
null
deterministic
[]
[]
378
{"gold": "211", "printed": "211", "notation": null}
nlprog_det-setting-0050181
<|start|><|system|> Show working only when it helps.<|eot|> <|user|> At $15.75 an hour, what does 24 hours of work pay?<|eot|> <|assistant|> ```python rate = 15.75 hours = 24 earnings = rate * hours # 378.0 print(f"{earnings:.2f}") ``` Output of the run: 378.00 That earns $378.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Show working only when it helps." }, { "role": "user", "content": "At $15.75 an hour, what does 24 hours of work pay?" }, { "role": "assistant", "content": "```python\nrate = 15.75\nhours = 24\nearnings = rate * hours # 378.0\nprint(f\"{earnings:.2f}\...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "378.00", "printed": "378.00", "notation": null}
nlprog_det-setting-0050183
<|start|><|user|> Counting only Monday through Friday, how many business days are there after October 22, 2026 through November 25, 2026?<|eot|> <|assistant|> from datetime import date, timedelta start = date(2026, 10, 22) end = date(2026, 11, 25) count = 0 for k in range(1, (end - start).days + 1):...
chat
[ { "role": "user", "content": "Counting only Monday through Friday, how many business days are there after October 22, 2026 through November 25, 2026?" }, { "role": "assistant", "content": " from datetime import date, timedelta\n start = date(2026, 10, 22)\n end = date(2026, 11, 25)\n ...
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0050184
<|start|><|user|> Sales went from 2,500 to 2,000. What is the percent change?<|eot|> <|assistant|> ```python old = 2500 new = 2000 change = (new - old) / old * 100 # -20.0 print(round(change)) ``` When run, it prints: -20 It changed by -20%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Sales went from 2,500 to 2,000. What is the percent change?" }, { "role": "assistant", "content": "```python\nold = 2500\nnew = 2000\nchange = (new - old) / old * 100 # -20.0\nprint(round(change))\n```\nWhen run, it prints: -20\n\nIt changed by -20%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "-20", "printed": "-20", "notation": null}
nlprog_det-setting-0050185
<|start|><|user|> At 1.5% a month (simple), what interest builds on $1,000 over 5 months?<|eot|> <|assistant|> ```python balance = 1000 monthly_rate = 1.5 / 100 # 0.015 months = 5 interest = balance * monthly_rate * months # 75.0 print(f"{interest:.2f}") ``` Run it and it prints: 75.00 The interest is $75.00.<|eot|>...
chat
[ { "role": "user", "content": "At 1.5% a month (simple), what interest builds on $1,000 over 5 months?" }, { "role": "assistant", "content": "```python\nbalance = 1000\nmonthly_rate = 1.5 / 100 # 0.015\nmonths = 5\ninterest = balance * monthly_rate * months # 75.0\nprint(f\"{interest:.2f}\")\n`...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "75.00", "printed": "75.00", "notation": null}
nlprog_det-setting-0050186
Convert 35 °C to Fahrenheit. Translated to Python: ```python celsius = 35 fahrenheit = celsius * 9 / 5 + 32 # 95.0 print(round(fahrenheit)) ``` Running it prints 95. It equals 95 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "95", "printed": "95", "notation": null}
nlprog_det-setting-0050187
A garage charges $2 an hour, never more than $24 a day. How much for 6 hours? Python does the arithmetic: rate = 2 hours = 6 daily_max = 24 cost = min(rate * hours, daily_max) # 12 print(cost) Program output: 12 The charge is $12.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0050188
A lawyer's fee is 33% of a $40,000 recovery. How large is the fee? ```python recovery = 40000 rate = 33 / 100 fee = recovery * rate print(f"{fee:.2f}") ``` Executing it gives: 13200.00 The fee is $13,200.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "13200.00", "printed": "13200.00", "notation": null}
nlprog_det-setting-0050189
A measure needs at least 67% of 118 votes. How many votes is that, rounded up? In Python: ```python import math voters = 118 needed = math.ceil(voters * 67 / 100) # 80 print(needed) ``` Program output — 80 80 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "80", "printed": "80", "notation": null}
nlprog_det-setting-0050190
<|start|><|user|> 81 copies of a 41-page packet are printed at $0.05 per page. What is the cost?<|eot|> <|assistant|> pages = 41 copies = 81 cost_per_page = 0.05 cost = pages * copies * cost_per_page # 166.05 print(f"{cost:.2f}") Run it and it prints 166.05. Printing costs $166.05.<|eot|> <|end|>
chat
[ { "role": "user", "content": "81 copies of a 41-page packet are printed at $0.05 per page. What is the cost?" }, { "role": "assistant", "content": " pages = 41\n copies = 81\n cost_per_page = 0.05\n cost = pages * copies * cost_per_page # 166.05\n print(f\"{cost:.2f}\")\nRun it a...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "166.05", "printed": "166.05", "notation": null}
nlprog_det-setting-0050191
A 3% increase is applied to $2,200 monthly rent. What is the new amount? A Python solution: ```python rent = 2200 increase = 3 / 100 # 0.03 new_rent = rent * (1 + increase) # 2266.0 print(f"{new_rent:.2f}") ``` Result — 2266.00 The new rent is $2,266.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "2266.00", "printed": "2266.00", "notation": null}
nlprog_det-setting-0050192
Fines run at $25 per day up to a maximum of $1,000. How much after 40 days? Computing it: ```python per_day = 25 days = 40 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` The program outputs 1000. The fine is $1,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0050193
Sales went from 200 to 250. What is the percent change? Programmatically: old = 200 new = 250 change = (new - old) / old * 100 # 25.0 print(round(change)) Interpreter output — 25 It changed by 25%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
69
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0050195
To read 85 pages in 5 days, how many pages per day are needed? As a program: ```python pages = 85 days = 5 per_day = pages // days # 17 print(per_day) ``` Result = 17 17 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0050196
Xavier earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 51-hour week? Python, step by step: ```python rate = 20.0 hours = 51 regular = 40 * rate # 800.0 overtime = (hours - 40) * rate * 1.5 # 330.0 pay = regular + overtime # 1130.0 print(f"{pay:.2f}") ``` stdout: 1130.00 Xavier ear...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "1130.00", "printed": "1130.00", "notation": null}
nlprog_det-setting-0050197
<|start|><|system|> Tools you may use: [{"name": "python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> What simple interest does $2,5...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"sour...
nlprog_det
setting
original
null
deterministic
[]
[]
223
{"gold": "1000.00", "printed": "1000.00", "notation": null}
nlprog_det-setting-0050198
$2,000 is invested at 2% compounded yearly. What is it worth after 4 years? A few lines of Python do it: ```python principal = 2000 rate = 2 / 100 # 0.02 years = 4 value = principal * (1 + rate) ** years # 2164.86432 print(f"{value:.2f}") ``` It outputs: 2164.86 It is worth $2,164.86.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "2164.86", "printed": "2164.86", "notation": null}
nlprog_det-setting-0050199
377 files go into boxes of 15. How many boxes does that take? Set it up in Python: ```python import math files = 377 per_box = 15 boxes = math.ceil(files / per_box) # 26 print(boxes) ``` Result — 26 It takes 26 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0050200
The statute was enacted in 1990. How many years had passed by 2012? Python code: start_year = 1990 end_year = 2012 print(end_year - start_year) The run gives 22. 22 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
59
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0050201
Someone works 32 hours at $30.00 per hour. What are the earnings? Python version: ```python rate = 30.0 hours = 32 earnings = rate * hours # 960.0 print(f"{earnings:.2f}") ``` stdout: 960.00 That earns $960.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "960.00", "printed": "960.00", "notation": null}
nlprog_det-setting-0050203
A deposition lasted 2 hours and 18 minutes. How many minutes is that? Python code: hours = 2 minutes = 18 total_minutes = hours * 60 + minutes # 138 print(total_minutes) It outputs 138. The deposition lasted 138 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "138", "printed": "138", "notation": null}
nlprog_det-setting-0050204
<|start|><|user|> A recipe for 2 people uses 450 grams of flour. How many grams are needed for 10 people?<|eot|> <|assistant|> grams = 450 serves = 2 needed_for = 10 scaled = grams * needed_for // serves # 2250 print(scaled) (Printed: 2250) 2250 grams of flour are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A recipe for 2 people uses 450 grams of flour. How many grams are needed for 10 people?" }, { "role": "assistant", "content": " grams = 450\n serves = 2\n needed_for = 10\n scaled = grams * needed_for // serves # 2250\n print(scaled)\n(Printed: 2250)...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "2250", "printed": "2250", "notation": null}
nlprog_det-setting-0050205
Yoko earns a 2% commission on $77,334 of sales. What is the commission? Computing it: ```python sales = 77334 rate = 2 / 100 # 0.02 commission = sales * rate # 1546.68 print(f"{commission:.2f}") ``` Execution prints: 1546.68 The commission is $1,546.68.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "1546.68", "printed": "1546.68", "notation": null}
nlprog_det-setting-0050206
If a 2-year limitations period starts on December 4, 2016, when does it end? Translated to Python: ```python from datetime import date accrued = date(2016, 12, 4) # datetime.date(2016, 12, 4) years = 2 expires = accrued.replace(year=accrued.year + years) # datetime.date(2018, 12, 4) print(expires.isoformat()) ``` Th...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "2018-12-04", "printed": "2018-12-04", "notation": null}
nlprog_det-setting-0050207
<|start|><|user|> 510 files go into boxes of 15. How many boxes does that take?<|eot|> <|assistant|> ```python import math files = 510 per_box = 15 boxes = math.ceil(files / per_box) # 34 print(boxes) ``` Run it and it prints: 34 It takes 34 boxes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "510 files go into boxes of 15. How many boxes does that take?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 510\nper_box = 15\nboxes = math.ceil(files / per_box) # 34\nprint(boxes)\n```\nRun it and it prints: 34\n\nIt takes 34 boxes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "34", "printed": "34", "notation": null}
nlprog_det-setting-0050208
A lease runs for 36 months at $850 per month. How much rent is paid over the whole term? The program: monthly_rent = 850 months = 36 total = monthly_rent * months # 30600 print(total) Printed: 30600 The rent over the term is $30,600.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "30600", "printed": "30600", "notation": null}
nlprog_det-setting-0050209
Printing costs 10 cents a page. What does it cost to print 163 copies of a 50-page handout? In Python: ```python pages = 50 copies = 163 cost_per_page = 0.1 cost = pages * copies * cost_per_page # 815.0 print(f"{cost:.2f}") ``` Console: 815.00 The job costs $815.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "815.00", "printed": "815.00", "notation": null}
nlprog_det-setting-0050210
With 21 rows of 10 chairs and 30 empty chairs, how many chairs are taken? Program: ```python rows = 21 per_row = 10 empty = 30 seated = rows * per_row - empty # 180 print(seated) ``` Printed — 180 180 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "180", "printed": "180", "notation": null}
nlprog_det-setting-0050212
<|start|><|system|> You are a precise assistant.<|eot|> <|user|> Starting from $25,000, the team spends $3,037, $620, $2,921, $3,872. What remains?<|eot|> <|assistant|> ```python budget = 25000 expenses = [3037, 620, 2921, 3872] left = budget - sum(expenses) # 14550 print(left) ``` The code prints 14550. The remainin...
chat
[ { "role": "system", "content": "You are a precise assistant." }, { "role": "user", "content": "Starting from $25,000, the team spends $3,037, $620, $2,921, $3,872. What remains?" }, { "role": "assistant", "content": "```python\nbudget = 25000\nexpenses = [3037, 620, 2921, 3872]\nleft...
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "14550", "printed": "14550", "notation": null}
nlprog_det-setting-0050213
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "calculator", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> An office b...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"calculator\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"...
nlprog_det
setting
original
null
deterministic
[]
[]
223
{"gold": "1294", "printed": "1294", "notation": null}
nlprog_det-setting-0050214
Each of Elena's walks burns 250 calories. How many calories over 3 walks? ```python per_session = 250 sessions = 3 total = per_session * sessions # 750 print(total) ``` # execution result: 750 750 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0050215
<|start|><|user|> Express 200 hours in days and hours.<|eot|> <|assistant|> ```python hours = 200 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Out = 8 days and 8 hours That is 8 days and 8 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Express 200 hours in days and hours." }, { "role": "assistant", "content": "```python\nhours = 200\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nOut = 8 days and 8 hours\n\nThat is 8 days and 8 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "8 days and 8 hours", "printed": "8 days and 8 hours", "notation": null}
nlprog_det-setting-0050216
<|start|><|system|> You help with homework problems.<|eot|> <|user|> A settlement of $84,000 is split equally among 5 parties. How much does each party receive?<|eot|> <|assistant|> ```python settlement = 84000 parties = 5 share = settlement // parties # 16800 print(share) ``` (Execution result: 16800) Each party rec...
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "A settlement of $84,000 is split equally among 5 parties. How much does each party receive?" }, { "role": "assistant", "content": "```python\nsettlement = 84000\nparties = 5\nshare = se...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "16800", "printed": "16800", "notation": null}
nlprog_det-setting-0050217
<|start|><|user|> An invoice lists 7 lanyards at $12 each, plus 6% sales tax. What is the invoice total?<|eot|> <|assistant|> ```python quantity = 7 unit_price = 12 subtotal = quantity * unit_price total = subtotal * (1 + 6 / 100) print(f"{total:.2f}") ``` The program prints 89.04, as expected. The total with tax is $...
chat
[ { "role": "user", "content": "An invoice lists 7 lanyards at $12 each, plus 6% sales tax. What is the invoice total?" }, { "role": "assistant", "content": "```python\nquantity = 7\nunit_price = 12\nsubtotal = quantity * unit_price\ntotal = subtotal * (1 + 6 / 100)\nprint(f\"{total:.2f}\")\n```\n...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "89.04", "printed": "89.04", "notation": null}
nlprog_det-setting-0050218
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> Fixed costs are $6,000. Each unit sells for $30 and costs $20 to make. How many units must be sold to break even?<|eot|> <|assistant|> ```python import math fixed = 6000 price = 30 variable = 20 units = math.ceil(fixed / (price - variable)) # 600 print(units...
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "Fixed costs are $6,000. Each unit sells for $30 and costs $20 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 6000\npr...
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0050219
Split $916 between Idris and Yoko in the ratio 1 to 3. What is Idris's share? We write it as a program: ```python total = 916 parts_a = 1 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 229 print(share_a) ``` Execution result: 229 Idris's share is $229.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "229", "printed": "229", "notation": null}
nlprog_det-setting-0050220
<|start|><|system|> You can call tools. Available tools: [{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "python_exec", "description": "Use...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\",...
nlprog_det
setting
original
null
deterministic
[]
[]
320
{"gold": "17166", "printed": "17166", "notation": null}