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-0073991
<|start|><|user|> Omar earns a 6% commission on $63,819 of sales. What is the commission?<|eot|> <|assistant|> ```python sales = 63819 rate = 6 / 100 # 0.06 commission = sales * rate # 3829.14 print(f"{commission:.2f}") ``` Execution prints 3829.14, as expected. Omar earns $3,829.14.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Omar earns a 6% commission on $63,819 of sales. What is the commission?" }, { "role": "assistant", "content": "```python\nsales = 63819\nrate = 6 / 100 # 0.06\ncommission = sales * rate # 3829.14\nprint(f\"{commission:.2f}\")\n```\nExecution prints 3829.14, as exp...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "3829.14", "printed": "3829.14", "notation": null}
nlprog_det-setting-0073992
<|start|><|user|> Starting from $12,000, the team spends $3,048, $1,931, $3,609, $922. What remains?<|eot|> <|assistant|> ```python budget = 12000 expenses = [3048, 1931, 3609, 922] left = budget - sum(expenses) # 2490 print(left) ``` Executing it gives 2490, as expected. The remaining budget is $2,490.<|eot|> <|end|...
chat
[ { "role": "user", "content": "Starting from $12,000, the team spends $3,048, $1,931, $3,609, $922. What remains?" }, { "role": "assistant", "content": "```python\nbudget = 12000\nexpenses = [3048, 1931, 3609, 922]\nleft = budget - sum(expenses) # 2490\nprint(left)\n```\nExecuting it gives 2490,...
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "2490", "printed": "2490", "notation": null}
nlprog_det-setting-0073993
Revenue is $36,500 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)? Set it up in Python: ```python revenue = 36500 costs = 36000 profit = revenue - costs # 500 margin = profit / revenue * 100 # 1.36986301369863 print(round(margin, 1)) ``` What it prints: 1.4 Profit is 1.4% of ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "1.4", "printed": "1.4", "notation": null}
nlprog_det-setting-0073994
With $8,000 in costs and $9,000 in revenue, what percent of revenue is profit? Round to one decimal. A Python solution: ```python revenue = 9000 costs = 8000 profit = revenue - costs # 1000 margin = profit / revenue * 100 # 11.11111111111111 print(round(margin, 1)) ``` Program output: 11.1 Profit is 11.1% of revenu...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "11.1", "printed": "11.1", "notation": null}
nlprog_det-setting-0073995
How many units at $20 each (variable cost $14) cover $9,000 of fixed costs? Computation in Python: ```python import math fixed = 9000 price = 20 variable = 14 units = math.ceil(fixed / (price - variable)) # 1500 print(units) ``` Execution prints 1500, as expected. 1500 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0073996
An attorney bills 12 hours at $180 per hour. What is the bill? Let the code do the arithmetic: ```python hours = 12 rate = 180 bill = hours * rate # 2160 print(f"{bill:.2f}") ``` Execution prints 2160.00. That comes to $2,160.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "2160.00", "printed": "2160.00", "notation": null}
nlprog_det-setting-0073997
<|start|><|system|> Functions: [{"name": "calc", "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"]}}, {"name": "translate", "description": "Translate t...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"calc\", \"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\...
nlprog_det
setting
original
null
deterministic
[]
[]
300
{"gold": "475", "printed": "475", "notation": null}
nlprog_det-setting-0073998
A storeroom has 251 chairs. The office uses 37 a day. How many are left after 6 days? Set it up in Python: ```python stock = 251 per_day = 37 days = 6 left = stock - per_day * days # 29 print(left) ``` Execution prints: 29 29 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0073999
A $210 dinner bill gets a 18% tip, and 6 people share the cost equally. What is each person's share? Python: ```python bill = 210 tip_rate = 18 / 100 # 0.18 people = 6 each = bill * (1 + tip_rate) / people # 41.3 print(f"{each:.2f}") ``` Printed result: 41.30 The share is $41.30 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "41.30", "printed": "41.30", "notation": null}
nlprog_det-setting-0074000
<|start|><|user|> An invoice lists 25 clipboards at $3 each, plus 10% sales tax. What is the invoice total?<|eot|> <|assistant|> quantity = 25 unit_price = 3 subtotal = quantity * unit_price # 75 total = subtotal * (1 + 10 / 100) # 82.5 print(f"{total:.2f}") It prints 82.50. The total with tax is...
chat
[ { "role": "user", "content": "An invoice lists 25 clipboards at $3 each, plus 10% sales tax. What is the invoice total?" }, { "role": "assistant", "content": " quantity = 25\n unit_price = 3\n subtotal = quantity * unit_price # 75\n total = subtotal * (1 + 10 / 100) # 82.5\n pri...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "82.50", "printed": "82.50", "notation": null}
nlprog_det-setting-0074001
686 files go into boxes of 50. How many boxes does that take? Translated to Python: ```python import math files = 686 per_box = 50 boxes = math.ceil(files / per_box) # 14 print(boxes) ``` Execution result — 14 14 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0074002
<|start|><|user|> 3 books come back 17 days late, at $0.50 a day each. What is the fine?<|eot|> <|assistant|> $25.50 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "3 books come back 17 days late, at $0.50 a day each. What is the fine?" }, { "role": "assistant", "content": "$25.50 is owed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "25.50", "printed": "25.50", "notation": null}
nlprog_det-setting-0074003
<|start|><|system|> Available functions (JSON Schema): [{"name": "math_engine", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> A pack of 20...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"math_engine\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"re...
nlprog_det
setting
original
null
deterministic
[]
[]
216
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0074004
An unpaid balance of $12,000 accrues 1% simple interest per month. How much interest accrues in 6 months? ```python balance = 12000 monthly_rate = 1 / 100 # 0.01 months = 6 interest = balance * monthly_rate * months # 720.0 print(f"{interest:.2f}") ``` Result: 720.00 $720.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "720.00", "printed": "720.00", "notation": null}
nlprog_det-setting-0074005
Find the mean of these test scores: 56, 58, 98, 98, 99, 64 and 73. We can compute it in Python. ```python scores = [56, 58, 98, 98, 99, 64, 73] average = sum(scores) // len(scores) # 78 print(average) ``` That prints: 78 The mean is 78.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "78", "printed": "78", "notation": null}
nlprog_det-setting-0074006
<|start|><|system|> You help people work with structured data.<|eot|> <|user|> From 1991 to 2020, how many years is that?<|eot|> <|assistant|> ```python start_year = 1991 end_year = 2020 print(end_year - start_year) ``` # output: 29 That is 29 years.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help people work with structured data." }, { "role": "user", "content": "From 1991 to 2020, how many years is that?" }, { "role": "assistant", "content": "```python\nstart_year = 1991\nend_year = 2020\nprint(end_year - start_year)\n```\n# output: 2...
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0074007
<|start|><|user|> Rafael drove 99 miles for work. Mileage is reimbursed at 67 cents a mile. How much is the reimbursement?<|eot|> <|assistant|> Rafael is owed $66.33.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rafael drove 99 miles for work. Mileage is reimbursed at 67 cents a mile. How much is the reimbursement?" }, { "role": "assistant", "content": "Rafael is owed $66.33." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
51
{"gold": "66.33", "printed": "66.33", "notation": null}
nlprog_det-setting-0074008
Monthly rent is $900. A tenant moves in with 8 days left in a 31-day month. What is the prorated rent? Program: ```python rent = 900 days_in_month = 31 days_occupied = 8 prorated = rent * days_occupied / days_in_month # 232.25806451612902 print(f"{prorated:.2f}") ``` # printed result: 232.26 The prorated rent is $23...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "232.26", "printed": "232.26", "notation": null}
nlprog_det-setting-0074010
<|start|><|user|> A 35 lb package ships at $10 base plus $1.20/lb. What is the charge?<|eot|> <|assistant|> ```python base = 10 per_pound = 1.2 weight = 35 cost = base + per_pound * weight # 52.0 print(f"{cost:.2f}") ``` Run result = 52.00 Shipping costs $52.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 35 lb package ships at $10 base plus $1.20/lb. What is the charge?" }, { "role": "assistant", "content": "```python\nbase = 10\nper_pound = 1.2\nweight = 35\ncost = base + per_pound * weight # 52.0\nprint(f\"{cost:.2f}\")\n```\nRun result = 52.00\n\nShipping cost...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "52.00", "printed": "52.00", "notation": null}
nlprog_det-setting-0074011
<|start|><|system|> Tool definitions: [{"name": "math_engine", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> Prorate $1,200 of monthly rent for 5 d...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"math_engine\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}]...
nlprog_det
setting
original
null
deterministic
[]
[]
239
{"gold": "193.55", "printed": "193.55", "notation": null}
nlprog_det-setting-0074012
Counting only Monday through Friday, how many business days are there after July 2, 2023 through August 6, 2023? A few lines of Python do it: ```python from datetime import date, timedelta start = date(2023, 7, 2) end = date(2023, 8, 6) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(day...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
158
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0074013
A penalty of $100 a day accrues, capped at $5,000. What is owed after 11 days? The fine is $1,100.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "1100", "printed": "1100", "notation": null}
nlprog_det-setting-0074014
A court charges $5 per request plus $0.25 per page after the first 0 pages. What does a 18-page copy cost? The program: ```python pages = 18 base = 5 per_page = 0.25 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 9.5 print(f"{cost:.2f}") ``` Run result = 9.50 The copy costs $9.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "9.50", "printed": "9.50", "notation": null}
nlprog_det-setting-0074015
<|start|><|user|> Sales went from 2,500 to 2,625. What is the percent change?<|eot|> <|assistant|> ```python old = 2500 new = 2625 change = (new - old) / old * 100 # 5.0 print(round(change)) ``` The code prints 5. The change is 5%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Sales went from 2,500 to 2,625. What is the percent change?" }, { "role": "assistant", "content": "```python\nold = 2500\nnew = 2625\nchange = (new - old) / old * 100 # 5.0\nprint(round(change))\n```\nThe code prints 5.\n\nThe change is 5%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0074016
After a 25% fee is taken from a $72,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share? The computation: award = 72000 fee = award * 25 / 100 remaining = award - fee per_client = remaining / 4 print(f"{per_client:.2f}") Console: 13500.00 Each share is $13,500.00...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "13500.00", "printed": "13500.00", "notation": null}
nlprog_det-setting-0074017
7 runs at 200 calories each burn how many calories in total? Here is a short program for it. ```python per_session = 200 sessions = 7 total = per_session * sessions # 1400 print(total) ``` It outputs 1400. 1400 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "1400", "printed": "1400", "notation": null}
nlprog_det-setting-0074018
<|start|><|user|> Filing fees are $125 per document. What do 17 filings cost?<|eot|> <|assistant|> fee = 125 filings = 17 total = fee * filings # 2125 print(total) # output: 2125 $2,125 in filing fees.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Filing fees are $125 per document. What do 17 filings cost?" }, { "role": "assistant", "content": " fee = 125\n filings = 17\n total = fee * filings # 2125\n print(total)\n# output: 2125\n\n$2,125 in filing fees." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
70
{"gold": "2125", "printed": "2125", "notation": null}
nlprog_det-setting-0074019
Straight-line depreciation: cost $18,000, salvage $2,000, 8 years. How much per year? Script: ```python cost = 18000 salvage = 2000 years = 8 per_year = (cost - salvage) / years # 2000.0 print(f"{per_year:.2f}") ``` On running, it outputs: 2000.00 $2,000.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0074020
<|start|><|user|> Quinn lends $5,000 at 2% simple interest per year for 2 years. How much interest is earned?<|eot|> <|assistant|> ```python principal = 5000 rate = 2 / 100 # 0.02 years = 2 interest = principal * rate * years # 200.0 print(f"{interest:.2f}") ``` Out: 200.00 It earns $200.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Quinn lends $5,000 at 2% simple interest per year for 2 years. How much interest is earned?" }, { "role": "assistant", "content": "```python\nprincipal = 5000\nrate = 2 / 100 # 0.02\nyears = 2\ninterest = principal * rate * years # 200.0\nprint(f\"{interest:.2f}\"...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "200.00", "printed": "200.00", "notation": null}
nlprog_det-setting-0074021
<|start|><|user|> Straight-line depreciation: cost $18,000, salvage $2,000, 4 years. How much per year?<|eot|> <|assistant|> ```python cost = 18000 salvage = 2000 years = 4 per_year = (cost - salvage) / years # 4000.0 print(f"{per_year:.2f}") ``` Output — 4000.00 Depreciation is $4,000.00 per year.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Straight-line depreciation: cost $18,000, salvage $2,000, 4 years. How much per year?" }, { "role": "assistant", "content": "```python\ncost = 18000\nsalvage = 2000\nyears = 4\nper_year = (cost - salvage) / years # 4000.0\nprint(f\"{per_year:.2f}\")\n```\nOutput — ...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "4000.00", "printed": "4000.00", "notation": null}
nlprog_det-setting-0074023
<|start|><|system|> Tools (call with JSON): [{"name": "python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> Split $5,334 between Beatriz an...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"progra...
nlprog_det
setting
original
null
deterministic
[]
[]
246
{"gold": "2286", "printed": "2286", "notation": null}
nlprog_det-setting-0074025
<|start|><|system|> Available functions (JSON Schema): {"name": "math_engine", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> At 2% a month (simple), what ...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"math_engine\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"...
nlprog_det
setting
original
null
deterministic
[]
[]
230
{"gold": "600.00", "printed": "600.00", "notation": null}
nlprog_det-setting-0074026
<|start|><|system|> Tools you may use: {"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}} {"name": "lookup_statute", "description": "Look up the text of ...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"target\"]}}\n{\"...
nlprog_det
setting
original
null
deterministic
[]
[]
411
{"gold": "760", "printed": "760", "notation": null}
nlprog_det-setting-0074027
<|start|><|system|> Functions: {"name": "interpreter", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}} {"name": "lookup_statute", "description": "Look up ...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"interpreter\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\"...
nlprog_det
setting
original
null
deterministic
[]
[]
327
{"gold": "396.00", "printed": "396.00", "notation": null}
nlprog_det-setting-0074028
What simple interest does $5,000 earn at 8% a year over 5 years? Computation in Python: ```python principal = 5000 rate = 8 / 100 # 0.08 years = 5 interest = principal * rate * years # 2000.0 print(f"{interest:.2f}") ``` The script prints 2000.00, as expected. It earns $2,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0074029
<|start|><|system|> Tools (call with JSON): {"name": "python_exec", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> 57 of 80 members attended. W...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"python_exec\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"s...
nlprog_det
setting
original
null
deterministic
[]
[]
205
{"gold": "71.2", "printed": "71.2", "notation": null}
nlprog_det-setting-0074030
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "eval_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"eval_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\...
nlprog_det
setting
original
null
deterministic
[]
[]
291
{"gold": "7500", "printed": "7500", "notation": null}
nlprog_det-setting-0074031
<|start|><|user|> Water costs $15 a month plus $3.50 for each 1,000 gallons over 2,000. What is owed for 19,000 gallons?<|eot|> <|assistant|> ```python base = 15 rate = 3.5 used = 19 free = 2 bill = base + rate * max(0, used - free) # 74.5 print(f"{bill:.2f}") ``` Executing it gives 74.50, as expected. The bill is $7...
chat
[ { "role": "user", "content": "Water costs $15 a month plus $3.50 for each 1,000 gallons over 2,000. What is owed for 19,000 gallons?" }, { "role": "assistant", "content": "```python\nbase = 15\nrate = 3.5\nused = 19\nfree = 2\nbill = base + rate * max(0, used - free) # 74.5\nprint(f\"{bill:.2f}...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "74.50", "printed": "74.50", "notation": null}
nlprog_det-setting-0074032
<|start|><|user|> How many units at $25 each (variable cost $17) cover $2,500 of fixed costs?<|eot|> <|assistant|> ```python import math fixed = 2500 price = 25 variable = 17 units = math.ceil(fixed / (price - variable)) # 313 print(units) ``` That prints 313. 313 units are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many units at $25 each (variable cost $17) cover $2,500 of fixed costs?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 2500\nprice = 25\nvariable = 17\nunits = math.ceil(fixed / (price - variable)) # 313\nprint(units)\n```\nThat prints 3...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "313", "printed": "313", "notation": null}
nlprog_det-setting-0074033
What commission does Elena make on $10,938 in sales at 4%? One way, in code: ```python sales = 10938 rate = 4 / 100 # 0.04 commission = sales * rate # 437.52 print(f"{commission:.2f}") ``` That prints: 437.52 Elena earns $437.52.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "437.52", "printed": "437.52", "notation": null}
nlprog_det-setting-0074034
A settlement of $520 is split equally among 8 parties. How much does each party receive? Let's compute it with Python. ```python settlement = 520 parties = 8 share = settlement // parties # 65 print(share) ``` Interpreter output: 65 Each share is $65.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "65", "printed": "65", "notation": null}
nlprog_det-setting-0074035
<|start|><|system|> You may call the tools below. [{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "python", "description": "Executes Pytho...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\", \"...
nlprog_det
setting
original
null
deterministic
[]
[]
379
{"gold": "86", "printed": "86", "notation": null}
nlprog_det-setting-0074036
Equipment costs $30,000, has a salvage value of $6,000, and a useful life of 6 years. What is the straight-line depreciation per year? Coded up: ```python cost = 30000 salvage = 6000 years = 6 per_year = (cost - salvage) / years # 4000.0 print(f"{per_year:.2f}") ``` Execution prints 4000.00, as expected. Depreciatio...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "4000.00", "printed": "4000.00", "notation": null}
nlprog_det-setting-0074037
Divide 241 items among 5 groups as evenly as possible with equal groups. How many per group, and how many remain? Python version: ```python total = 241 groups = 5 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Python prints 48 each, 1 left over, as expected. The ans...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "48 each, 1 left over", "printed": "48 each, 1 left over", "notation": null}
nlprog_det-setting-0074038
<|start|><|user|> A garage charges $5 an hour, never more than $20 a day. How much for 9 hours?<|eot|> <|assistant|> Parking costs $20.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A garage charges $5 an hour, never more than $20 a day. How much for 9 hours?" }, { "role": "assistant", "content": "Parking costs $20." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0074039
The firm was founded in 2016. How many years had passed by 2046? Code: ```python start_year = 2016 end_year = 2046 print(end_year - start_year) ``` Shell output: 30 That is 30 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
71
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0074040
<|start|><|user|> A 8-day trip pays $79 a day for meals and $175 a night for lodging (7 nights). What is the total allowance?<|eot|> <|assistant|> ```python days = 8 meal_rate = 79 lodging_rate = 175 nights = days - 1 # 7 total = days * meal_rate + nights * lodging_rate # 1857 print(total) ``` Console: 1857 The allo...
chat
[ { "role": "user", "content": "A 8-day trip pays $79 a day for meals and $175 a night for lodging (7 nights). What is the total allowance?" }, { "role": "assistant", "content": "```python\ndays = 8\nmeal_rate = 79\nlodging_rate = 175\nnights = days - 1 # 7\ntotal = days * meal_rate + nights * lo...
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "1857", "printed": "1857", "notation": null}
nlprog_det-setting-0074041
The meal allowance is $79 per day. What is it for 6 days? One way, in code: ```python days = 6 meal_rate = 79 total = days * meal_rate # 474 print(total) ``` Interpreter output: 474 The allowance is $474.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "474", "printed": "474", "notation": null}
nlprog_det-setting-0074042
Filing fees are $125 per document. What do 16 filings cost? ```python fee = 125 filings = 16 total = fee * filings # 2000 print(total) ``` It outputs 2000. $2,000 in filing fees.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "2000", "printed": "2000", "notation": null}
nlprog_det-setting-0074043
Rania lends $2,500 at 8% simple interest per year for 3 years. How much interest is earned? ```python principal = 2500 rate = 8 / 100 # 0.08 years = 3 interest = principal * rate * years # 600.0 print(f"{interest:.2f}") ``` That prints 600.00. It earns $600.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "600.00", "printed": "600.00", "notation": null}
nlprog_det-setting-0074044
<|start|><|user|> Count 30 days forward from January 23, 2024. What date is that?<|eot|> <|assistant|> It ends on February 22, 2024.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Count 30 days forward from January 23, 2024. What date is that?" }, { "role": "assistant", "content": "It ends on February 22, 2024." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "2024-02-22", "printed": "2024-02-22", "notation": null}
nlprog_det-setting-0074045
How many weekdays (Monday to Friday) fall after March 11, 2020 up to and including April 8, 2020? ```python from datetime import date, timedelta start = date(2020, 3, 11) end = date(2020, 4, 8) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() < 5: count += 1 pri...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0074046
<|start|><|system|> You check calculations for an accounting team.<|eot|> <|user|> A recipe for 8 people uses 240 grams of oats. How many grams are needed for 2 people?<|eot|> <|assistant|> Use 60 g of oats.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You check calculations for an accounting team." }, { "role": "user", "content": "A recipe for 8 people uses 240 grams of oats. How many grams are needed for 2 people?" }, { "role": "assistant", "content": "Use 60 g of oats." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
54
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0074047
Buying 6 toner kits at $30 each, 1 calendars at $2 each, 1 markers at $6 each, someone hands over $200. What change comes back? Program: ```python items = [(6, 30), (1, 2), (1, 6)] total = sum(q * p for q, p in items) # 188 paid = 200 change = paid - total # 12 print(change) ``` That prints: 12 $12 comes back.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0074048
5 claimants share a $7,350 settlement equally. What is each share? Each share is $1,470.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "1470", "printed": "1470", "notation": null}
nlprog_det-setting-0074049
What day of the week is May 17, 1995? A Python solution: ```python from datetime import date hearing = date(1995, 5, 17) # datetime.date(1995, 5, 17) print(hearing.strftime("%A")) ``` # stdout: Wednesday It is a Wednesday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "Wednesday", "printed": "Wednesday", "notation": null}
nlprog_det-setting-0074050
How much sales tax is charged on a $609.75 purchase at 5%? Computation in Python: ```python price = 609.75 tax_rate = 5 / 100 # 0.05 tax = price * tax_rate # 30.4875 print(f"{tax:.2f}") ``` Console output — 30.49 The tax is $30.49.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "30.49", "printed": "30.49", "notation": null}
nlprog_det-setting-0074051
<|start|><|user|> If a 5-year limitations period starts on April 22, 2018, when does it end?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2018, 4, 22) # datetime.date(2018, 4, 22) years = 5 expires = accrued.replace(year=accrued.year + years) # datetime.date(2023, 4, 22) print(expires.isofo...
chat
[ { "role": "user", "content": "If a 5-year limitations period starts on April 22, 2018, when does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2018, 4, 22) # datetime.date(2018, 4, 22)\nyears = 5\nexpires = accrued.replace(year=accrued.year ...
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "2023-04-22", "printed": "2023-04-22", "notation": null}
nlprog_det-setting-0074052
How many whole days and leftover hours are in 63 hours? That is 2 days and 15 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
25
{"gold": "2 days and 15 hours", "printed": "2 days and 15 hours", "notation": null}
nlprog_det-setting-0074053
<|start|><|user|> How many of 209 votes make 67% (round up)?<|eot|> <|assistant|> ```python import math voters = 209 needed = math.ceil(voters * 67 / 100) # 141 print(needed) ``` Result = 141 141 votes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 209 votes make 67% (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 209\nneeded = math.ceil(voters * 67 / 100) # 141\nprint(needed)\n```\nResult = 141\n\n141 votes are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "141", "printed": "141", "notation": null}
nlprog_det-setting-0074054
A 190-mile drive at a steady 40 mph takes how many minutes? The trip takes 285 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
26
{"gold": "285", "printed": "285", "notation": null}
nlprog_det-setting-0074056
After an initial $0, the remainder of a $30,000 grant is paid in 12 equal parts. What is each part? Script: ```python grant = 30000 up_front = 0 installments = 12 each = (grant - up_front) / installments # 2500.0 print(f"{each:.2f}") ``` Result: 2500.00 $2,500.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "2500.00", "printed": "2500.00", "notation": null}
nlprog_det-setting-0074057
<|start|><|user|> At $20.77 an hour, what does 40 hours of work pay?<|eot|> <|assistant|> ```python rate = 20.77 hours = 40 earnings = rate * hours # 830.8 print(f"{earnings:.2f}") ``` Output — 830.80 The pay is $830.80.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $20.77 an hour, what does 40 hours of work pay?" }, { "role": "assistant", "content": "```python\nrate = 20.77\nhours = 40\nearnings = rate * hours # 830.8\nprint(f\"{earnings:.2f}\")\n```\nOutput — 830.80\n\nThe pay is $830.80." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "830.80", "printed": "830.80", "notation": null}
nlprog_det-setting-0074058
Each storage box holds 40 files. How many boxes are needed for 373 files? Translated to Python: ```python import math files = 373 per_box = 40 boxes = math.ceil(files / per_box) # 10 print(boxes) ``` Output of the run — 10 10 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0074060
Convert 1 h 28 min (the length of a film) to minutes. Let the code do the arithmetic: ```python hours = 1 minutes = 28 total_minutes = hours * 60 + minutes # 88 print(total_minutes) ``` Execution prints 88, as expected. That is 88 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "88", "printed": "88", "notation": null}
nlprog_det-setting-0074061
<|start|><|system|> Keep answers short and correct.<|eot|> <|user|> Counting the first and last day, how many days are there from August 3, 2023 through August 23, 2023?<|eot|> <|assistant|> That is 21 days.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Keep answers short and correct." }, { "role": "user", "content": "Counting the first and last day, how many days are there from August 3, 2023 through August 23, 2023?" }, { "role": "assistant", "content": "That is 21 days." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
51
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0074062
A water bill is $20 plus $5.10 per thousand gallons beyond the first 2 thousand. What is the bill for 18 thousand gallons? The bill is $101.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "101.60", "printed": "101.60", "notation": null}
nlprog_det-setting-0074063
<|start|><|user|> Hana has 9 documents to file, and each filing costs $90. How much are the filing fees in total?<|eot|> <|assistant|> The filings cost $810 in all.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Hana has 9 documents to file, and each filing costs $90. How much are the filing fees in total?" }, { "role": "assistant", "content": "The filings cost $810 in all." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "810", "printed": "810", "notation": null}
nlprog_det-setting-0074064
<|start|><|user|> How many whole days and leftover hours are in 315 hours?<|eot|> <|assistant|> ```python hours = 315 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` It prints 13 days and 3 hours, as expected. 315 hours is 13 days and 3 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many whole days and leftover hours are in 315 hours?" }, { "role": "assistant", "content": "```python\nhours = 315\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nIt prints 13 days and 3 hours, as expected.\n\n315 hours is 13 days...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "13 days and 3 hours", "printed": "13 days and 3 hours", "notation": null}
nlprog_det-setting-0074065
<|start|><|user|> After a 40% fee is taken from a $30,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|> <|assistant|> award = 30000 fee = award * 40 / 100 # 12000.0 remaining = award - fee # 18000.0 per_client = remaining / 3 # 6000.0 print(f"{per_clie...
chat
[ { "role": "user", "content": "After a 40% fee is taken from a $30,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?" }, { "role": "assistant", "content": " award = 30000\n fee = award * 40 / 100 # 12000.0\n remaining = award - fee # 18000.0\n p...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "6000.00", "printed": "6000.00", "notation": null}
nlprog_det-setting-0074066
<|start|><|user|> Equal monthly payments repay $3,600 plus 6% simple yearly interest over 24 months. How large is a payment?<|eot|> <|assistant|> ```python principal = 3600 annual_rate = 6 / 100 # 0.06 months = 24 interest = principal * annual_rate * months / 12 # 432.0 payment = (principal + interest) / months # 16...
chat
[ { "role": "user", "content": "Equal monthly payments repay $3,600 plus 6% simple yearly interest over 24 months. How large is a payment?" }, { "role": "assistant", "content": "```python\nprincipal = 3600\nannual_rate = 6 / 100 # 0.06\nmonths = 24\ninterest = principal * annual_rate * months / 1...
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "168.00", "printed": "168.00", "notation": null}
nlprog_det-setting-0074067
<|start|><|system|> You are a math tutor.<|eot|> <|user|> Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 41 hours?<|eot|> <|assistant|> ```python rate = 25.0 hours = 41 regular = 40 * rate # 1000.0 overtime = (hours - 40) * rate * 1.5 # 37.5 pay = regular + overtime # 1037.5 p...
chat
[ { "role": "system", "content": "You are a math tutor." }, { "role": "user", "content": "Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 41 hours?" }, { "role": "assistant", "content": "```python\nrate = 25.0\nhours = 41\nregular = 40 * rate # 1...
nlprog_det
setting
original
null
deterministic
[]
[]
159
{"gold": "1037.50", "printed": "1037.50", "notation": null}
nlprog_det-setting-0074068
<|start|><|user|> $10,000 is invested at 5% compounded yearly. What is it worth after 4 years?<|eot|> <|assistant|> The balance is $12,155.06.<|eot|> <|end|>
chat
[ { "role": "user", "content": "$10,000 is invested at 5% compounded yearly. What is it worth after 4 years?" }, { "role": "assistant", "content": "The balance is $12,155.06." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "12155.06", "printed": "12155.06", "notation": null}
nlprog_det-setting-0074069
Sofia earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 55-hour week? As Python: ```python rate = 20.0 hours = 55 regular = 40 * rate # 800.0 overtime = (hours - 40) * rate * 1.5 # 450.0 pay = regular + overtime # 1250.0 print(f"{pay:.2f}") ``` The script prints 1250.00, as expected....
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "1250.00", "printed": "1250.00", "notation": null}
nlprog_det-setting-0074070
<|start|><|user|> Papers were served by mail on February 6, 2019. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2019, 2, 6) # datetime.date(2019, 2, 6) response_days = 14 mail_days = 3 due ...
chat
[ { "role": "user", "content": "Papers were served by mail on February 6, 2019. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nserved = date(2019, 2, 6) # datetim...
nlprog_det
setting
original
null
deterministic
[]
[]
177
{"gold": "2019-02-23", "printed": "2019-02-23", "notation": null}
nlprog_det-setting-0074071
If a 40-minute shift begins at 2:10 PM, what time does it finish? It ends at 2:50 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "2:50 PM", "printed": "2:50 PM", "notation": null}
nlprog_det-setting-0074072
Find the mean of these test scores: 54, 87, 87, 60, 58, 65 and 86. In code: ```python scores = [54, 87, 87, 60, 58, 65, 86] average = sum(scores) // len(scores) # 71 print(average) ``` Running it prints 71, as expected. The average score is 71.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "71", "printed": "71", "notation": null}
nlprog_det-setting-0074073
Convert 40 °C to Fahrenheit. Python does the arithmetic: ```python celsius = 40 fahrenheit = celsius * 9 / 5 + 32 # 104.0 print(round(fahrenheit)) ``` This prints 104, as expected. That is 104 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "104", "printed": "104", "notation": null}
nlprog_det-setting-0074075
Malik drove 114 miles for work. Mileage is reimbursed at 62 cents a mile. How much is the reimbursement? The Python version: ```python miles = 114 rate = 0.62 reimbursement = miles * rate # 70.67999999999999 print(f"{reimbursement:.2f}") ``` Execution prints: 70.68 Malik is owed $70.68.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "70.68", "printed": "70.68", "notation": null}
nlprog_det-setting-0074076
Papers were served by mail on January 25, 2024. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date? We can compute it in Python. from datetime import date, timedelta served = date(2024, 1, 25) # datetime.date(2024, 1, 25) response_days = 30 mail_days = 3 d...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
172
{"gold": "2024-02-27", "printed": "2024-02-27", "notation": null}
nlprog_det-setting-0074077
A storeroom has 1111 water bottles. The office uses 19 a day. How many are left after 13 days? In Python: stock = 1111 per_day = 19 days = 13 left = stock - per_day * days # 864 print(left) Python prints: 864 864 water bottles are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "864", "printed": "864", "notation": null}
nlprog_det-setting-0074079
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> Copies cost $15 plus $0.25 for each page beyond 10. How much for 59 pages?<|eot|> <|assistant|> ```python pages = 59 base = 15 per_page = 0.25 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 27.25 print(f"{cost:.2f}") ``` Run output: 27...
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "Copies cost $15 plus $0.25 for each page beyond 10. How much for 59 pages?" }, { "role": "assistant", "content": "```python\npages = 59\nbase = 15\nper_page = 0.25\nfree_pages = 10\ncost = base...
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "27.25", "printed": "27.25", "notation": null}
nlprog_det-setting-0074080
<|start|><|user|> From 2021 to 2024, how many years is that?<|eot|> <|assistant|> ```python start_year = 2021 end_year = 2024 print(end_year - start_year) ``` # printed: 3 3 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From 2021 to 2024, how many years is that?" }, { "role": "assistant", "content": "```python\nstart_year = 2021\nend_year = 2024\nprint(end_year - start_year)\n```\n# printed: 3\n\n3 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
63
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0074081
Someone born January 10, 2005 turns how old by February 8, 2029? Give the age in whole years. Program: ```python from datetime import date born = date(2005, 1, 10) # datetime.date(2005, 1, 10) on = date(2029, 2, 8) # datetime.date(2029, 2, 8) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0074082
How many meters are in 6.2 kilometers? That is 6,200 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
26
{"gold": "6200", "printed": "6200", "notation": null}
nlprog_det-setting-0074083
<|start|><|user|> A 24 lb package ships at $10 base plus $2.00/lb. What is the charge?<|eot|> <|assistant|> Shipping costs $58.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 24 lb package ships at $10 base plus $2.00/lb. What is the charge?" }, { "role": "assistant", "content": "Shipping costs $58.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "58.00", "printed": "58.00", "notation": null}
nlprog_det-setting-0074084
<|start|><|user|> Which is cheaper per unit: 6 for $8.79 (A) or 18 for $20.81 (B)?<|eot|> <|assistant|> ```python pack_a = 8.79 / 6 pack_b = 20.81 / 18 cheaper = "A" if pack_a < pack_b else "B" print(cheaper) ``` Output of the run — B Pack B is cheaper per item.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Which is cheaper per unit: 6 for $8.79 (A) or 18 for $20.81 (B)?" }, { "role": "assistant", "content": "```python\npack_a = 8.79 / 6\npack_b = 20.81 / 18\ncheaper = \"A\" if pack_a < pack_b else \"B\"\nprint(cheaper)\n```\nOutput of the run — B\n\nPack B is cheaper ...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0074085
Parking is $5 per hour with a daily maximum of $15. What do 3 hours cost? We can compute it in Python. ```python rate = 5 hours = 3 daily_max = 15 cost = min(rate * hours, daily_max) # 15 print(cost) ``` Shell output: 15 Parking costs $15.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0074086
Under a 40% contingency agreement, what fee is owed on a $60,000 award? Let the code do the arithmetic: ```python recovery = 60000 rate = 40 / 100 # 0.4 fee = recovery * rate # 24000.0 print(f"{fee:.2f}") ``` Out: 24000.00 The lawyer's fee comes to $24,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "24000.00", "printed": "24000.00", "notation": null}
nlprog_det-setting-0074087
<|start|><|user|> A 200-mile drive at a steady 40 mph takes how many minutes?<|eot|> <|assistant|> 300 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 200-mile drive at a steady 40 mph takes how many minutes?" }, { "role": "assistant", "content": "300 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0074088
A storeroom has 478 chairs. The office uses 10 a day. How many are left after 6 days? Here's the code. stock = 478 per_day = 10 days = 6 left = stock - per_day * days # 418 print(left) Python prints: 418 418 chairs are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "418", "printed": "418", "notation": null}
nlprog_det-setting-0074089
<|start|><|system|> You are a precise assistant.<|eot|> <|user|> 30 copies of a 44-page packet are printed at $0.10 per page. What is the cost?<|eot|> <|assistant|> ```python pages = 44 copies = 30 cost_per_page = 0.1 cost = pages * copies * cost_per_page # 132.0 print(f"{cost:.2f}") ``` It prints 132.00. Printing co...
chat
[ { "role": "system", "content": "You are a precise assistant." }, { "role": "user", "content": "30 copies of a 44-page packet are printed at $0.10 per page. What is the cost?" }, { "role": "assistant", "content": "```python\npages = 44\ncopies = 30\ncost_per_page = 0.1\ncost = pages *...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "132.00", "printed": "132.00", "notation": null}
nlprog_det-setting-0074090
Scale 200 g of flour from 8 servings to 10 servings. We write it as a program: ```python grams = 200 serves = 8 needed_for = 10 scaled = grams * needed_for // serves # 250 print(scaled) ``` Run output: 250 250 grams of flour are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "250", "printed": "250", "notation": null}
nlprog_det-setting-0074091
<|start|><|system|> Tools you may use: {"name": "math_engine", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> Fines run at $250 per day ...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"math_engine\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\...
nlprog_det
setting
original
null
deterministic
[]
[]
219
{"gold": "5000", "printed": "5000", "notation": null}
nlprog_det-setting-0074092
<|start|><|user|> A quorum is 3/5 of the 15 members, rounded up. How many members make a quorum?<|eot|> <|assistant|> import math members = 15 quorum = math.ceil(members * 3 / 5) # 9 print(quorum) Executed, it shows 9. That is 9 members.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A quorum is 3/5 of the 15 members, rounded up. How many members make a quorum?" }, { "role": "assistant", "content": " import math\n members = 15\n quorum = math.ceil(members * 3 / 5) # 9\n print(quorum)\nExecuted, it shows 9.\n\nThat is 9 members." }...
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0074093
The statute was enacted in 2003. How many years had passed by 2017? ```python start_year = 2003 end_year = 2017 print(end_year - start_year) ``` Output: 14 14 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
63
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0074094
A library charges $0.20 per book per day late. What is the fine for 3 books that are 16 days late? Written as code: ```python per_day = 0.2 days_late = 16 books = 3 fine = per_day * days_late * books print(f"{fine:.2f}") ``` The program outputs 9.60. The fine is $9.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "9.60", "printed": "9.60", "notation": null}
nlprog_det-setting-0074095
A court charges $15 per request plus $0.25 per page after the first 0 pages. What does a 25-page copy cost? Python code: pages = 25 base = 15 per_page = 0.25 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 21.25 print(f"{cost:.2f}") Output — 21.25 The copy costs $21.25.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "21.25", "printed": "21.25", "notation": null}
nlprog_det-setting-0074096
6 chairs cost $9 apiece. With 8% tax added, what is the total? Python makes this quick: quantity = 6 unit_price = 9 subtotal = quantity * unit_price # 54 total = subtotal * (1 + 8 / 100) # 58.32000000000001 print(f"{total:.2f}") On running, it outputs: 58.32 The total with tax is $58.32.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "58.32", "printed": "58.32", "notation": null}
nlprog_det-setting-0074097
What is 15 degrees Celsius in Fahrenheit? ```python celsius = 15 fahrenheit = celsius * 9 / 5 + 32 # 59.0 print(round(fahrenheit)) ``` Interpreter output — 59 It equals 59 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "59", "printed": "59", "notation": null}