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-0078170
<|start|><|user|> An office budget of $5,000 has expenses of $670, $2,748. How much of the budget is left?<|eot|> <|assistant|> ```python budget = 5000 expenses = [670, 2748] left = budget - sum(expenses) # 1582 print(left) ``` Run output: 1582 The remaining budget is $1,582.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An office budget of $5,000 has expenses of $670, $2,748. How much of the budget is left?" }, { "role": "assistant", "content": "```python\nbudget = 5000\nexpenses = [670, 2748]\nleft = budget - sum(expenses) # 1582\nprint(left)\n```\nRun output: 1582\n\nThe remaini...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "1582", "printed": "1582", "notation": null}
nlprog_det-setting-0078171
<|start|><|user|> 279 volunteers are split into 5 equal teams. How many are on each team, and how many are left over?<|eot|> <|assistant|> ```python total = 279 groups = 5 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Output: 55 each, 4 left over The answer: 55 each...
chat
[ { "role": "user", "content": "279 volunteers are split into 5 equal teams. How many are on each team, and how many are left over?" }, { "role": "assistant", "content": "```python\ntotal = 279\ngroups = 5\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remainder} left o...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "55 each, 4 left over", "printed": "55 each, 4 left over", "notation": null}
nlprog_det-setting-0078172
<|start|><|user|> An invoice lists 27 lanyards at $6 each, plus 5% sales tax. What is the invoice total?<|eot|> <|assistant|> The total with tax is $170.10.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An invoice lists 27 lanyards at $6 each, plus 5% sales tax. What is the invoice total?" }, { "role": "assistant", "content": "The total with tax is $170.10." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
48
{"gold": "170.10", "printed": "170.10", "notation": null}
nlprog_det-setting-0078173
<|start|><|system|> Double-check numbers before answering.<|eot|> <|user|> Fines run at $100 per day up to a maximum of $1,000. How much after 60 days?<|eot|> <|assistant|> The fine is $1,000.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Double-check numbers before answering." }, { "role": "user", "content": "Fines run at $100 per day up to a maximum of $1,000. How much after 60 days?" }, { "role": "assistant", "content": "The fine is $1,000." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
56
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0078174
How much sales tax is charged on a $92.00 purchase at 5%? Computing it: ```python price = 92.0 tax_rate = 5 / 100 # 0.05 tax = price * tax_rate # 4.6000000000000005 print(f"{tax:.2f}") ``` Run output: 4.60 $4.60 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "4.60", "printed": "4.60", "notation": null}
nlprog_det-setting-0078175
The statute was enacted in 2001. How many years had passed by 2007? Here's the code. start_year = 2001 end_year = 2007 print(end_year - start_year) It outputs: 6 6 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
59
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0078178
What simple interest does $1,000 earn at 6% a year over 5 years? The program: ```python principal = 1000 rate = 6 / 100 # 0.06 years = 5 interest = principal * rate * years # 300.0 print(f"{interest:.2f}") ``` Output of the run — 300.00 The interest is $300.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "300.00", "printed": "300.00", "notation": null}
nlprog_det-setting-0078179
<|start|><|user|> A court charges $5 per request plus $0.50 per page after the first 10 pages. What does a 65-page copy cost?<|eot|> <|assistant|> pages = 65 base = 5 per_page = 0.5 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 32.5 print(f"{cost:.2f}") The program outpu...
chat
[ { "role": "user", "content": "A court charges $5 per request plus $0.50 per page after the first 10 pages. What does a 65-page copy cost?" }, { "role": "assistant", "content": " pages = 65\n base = 5\n per_page = 0.5\n free_pages = 10\n cost = base + max(0, pages - free_pages) * p...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "32.50", "printed": "32.50", "notation": null}
nlprog_det-setting-0078180
<|start|><|user|> A lawyer's fee is 30% of a $12,000 recovery. How large is the fee?<|eot|> <|assistant|> ```python recovery = 12000 rate = 30 / 100 # 0.3 fee = recovery * rate # 3600.0 print(f"{fee:.2f}") ``` Running this gives 3600.00. The fee is $3,600.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lawyer's fee is 30% of a $12,000 recovery. How large is the fee?" }, { "role": "assistant", "content": "```python\nrecovery = 12000\nrate = 30 / 100 # 0.3\nfee = recovery * rate # 3600.0\nprint(f\"{fee:.2f}\")\n```\nRunning this gives 3600.00.\n\nThe fee is $3,6...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "3600.00", "printed": "3600.00", "notation": null}
nlprog_det-setting-0078181
<|start|><|system|> You have access to these functions: [{"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": "run_python", "descrip...
chat
[ { "role": "system", "content": "You have access to these functions:\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\"}}, \"required\": ...
nlprog_det
setting
original
null
deterministic
[]
[]
368
{"gold": "2028-02-06", "printed": "2028-02-06", "notation": null}
nlprog_det-setting-0078182
A 2% increase is applied to $1,250 monthly rent. What is the new amount? Set it up in Python: ```python rent = 1250 increase = 2 / 100 # 0.02 new_rent = rent * (1 + increase) # 1275.0 print(f"{new_rent:.2f}") ``` Run result: 1275.00 The new rent is $1,275.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "1275.00", "printed": "1275.00", "notation": null}
nlprog_det-setting-0078183
<|start|><|system|> You can call tools. Available tools: [{"name": "py_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> How long, in days, is it ...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"py_exec\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\...
nlprog_det
setting
original
null
deterministic
[]
[]
220
{"gold": "302", "printed": "302", "notation": null}
nlprog_det-setting-0078184
<|start|><|user|> A pack of 20 sticky pads sells for $280. What does each cost?<|eot|> <|assistant|> ```python total = 280 count = 20 per_item = total // count # 14 print(per_item) ``` Run output: 14 The unit price is $14.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A pack of 20 sticky pads sells for $280. What does each cost?" }, { "role": "assistant", "content": "```python\ntotal = 280\ncount = 20\nper_item = total // count # 14\nprint(per_item)\n```\nRun output: 14\n\nThe unit price is $14." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0078185
<|start|><|user|> One can of paint covers 350 square feet. How many cans are needed for 1118 square feet of wall?<|eot|> <|assistant|> ```python import math area = 1118 coverage = 350 cans = math.ceil(area / coverage) # 4 print(cans) ``` stdout: 4 Buy 4 cans.<|eot|> <|end|>
chat
[ { "role": "user", "content": "One can of paint covers 350 square feet. How many cans are needed for 1118 square feet of wall?" }, { "role": "assistant", "content": "```python\nimport math\narea = 1118\ncoverage = 350\ncans = math.ceil(area / coverage) # 4\nprint(cans)\n```\nstdout: 4\n\nBuy 4 c...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0078186
<|start|><|user|> A $48,000 grant pays $0 up front and the rest in 3 equal installments. How large is each installment?<|eot|> <|assistant|> ```python grant = 48000 up_front = 0 installments = 3 each = (grant - up_front) / installments # 16000.0 print(f"{each:.2f}") ``` The printout reads: 16000.00 Each installment i...
chat
[ { "role": "user", "content": "A $48,000 grant pays $0 up front and the rest in 3 equal installments. How large is each installment?" }, { "role": "assistant", "content": "```python\ngrant = 48000\nup_front = 0\ninstallments = 3\neach = (grant - up_front) / installments # 16000.0\nprint(f\"{each...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "16000.00", "printed": "16000.00", "notation": null}
nlprog_det-setting-0078187
Prorate $900 of monthly rent for 22 days of a 31-day month. Translated to Python: ```python rent = 900 days_in_month = 31 days_occupied = 22 prorated = rent * days_occupied / days_in_month print(f"{prorated:.2f}") ``` stdout: 638.71 The tenant owes $638.71.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "638.71", "printed": "638.71", "notation": null}
nlprog_det-setting-0078188
If a 50-minute seminar begins at 4:00 PM, what time does it finish? ```python start = 16 * 60 + 0 end = start + 50 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` That prints: 4:50 PM It ends at 4:50 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "4:50 PM", "printed": "4:50 PM", "notation": null}
nlprog_det-setting-0078189
An attorney bills 2 hours at $350 per hour. What is the bill? Python: ```python hours = 2 rate = 350 bill = hours * rate # 700 print(f"{bill:.2f}") ``` The run gives 700.00. That comes to $700.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "700.00", "printed": "700.00", "notation": null}
nlprog_det-setting-0078190
Someone works 20 hours at $29.85 per hour. What are the earnings? A few lines of Python do it: ```python rate = 29.85 hours = 20 earnings = rate * hours # 597.0 print(f"{earnings:.2f}") ``` Console output — 597.00 The pay is $597.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "597.00", "printed": "597.00", "notation": null}
nlprog_det-setting-0078191
A 7 × 4 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up? Program: import math length = 7 width = 4 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 7 print(tiles) stdout: 7 7 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "7", "printed": "7", "notation": null}
nlprog_det-setting-0078192
<|start|><|system|> Functions: {"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}} {"name": "eval_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "ob...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}\n{\"name\": \"eval_python\", \"description\": \"A Python interpr...
nlprog_det
setting
original
null
deterministic
[]
[]
279
{"gold": "1955", "printed": "1955", "notation": null}
nlprog_det-setting-0078193
How many minutes pass from 11:02 AM to 2:54 PM on the same day? Coded up: ```python start = 11 * 60 + 2 end = 14 * 60 + 54 print(end - start) ``` Executing it gives 232. 232 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "232", "printed": "232", "notation": null}
nlprog_det-setting-0078194
Buying 4 envelopes at $6 each, 2 envelopes at $16 each, 5 pens at $25 each, someone hands over $200. What change comes back? Coded up: ```python items = [(4, 6), (2, 16), (5, 25)] total = sum(q * p for q, p in items) # 181 paid = 200 change = paid - total # 19 print(change) ``` stdout = 19 The change is $19.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0078195
<|start|><|user|> Printing costs 5 cents a page. What does it cost to print 135 copies of a 23-page handout?<|eot|> <|assistant|> Printing costs $155.25.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Printing costs 5 cents a page. What does it cost to print 135 copies of a 23-page handout?" }, { "role": "assistant", "content": "Printing costs $155.25." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "155.25", "printed": "155.25", "notation": null}
nlprog_det-setting-0078196
A storeroom has 1356 staplers. The office uses 39 a day. How many are left after 6 days? ```python stock = 1356 per_day = 39 days = 6 left = stock - per_day * days # 1122 print(left) ``` Printed result — 1122 1122 staplers are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "1122", "printed": "1122", "notation": null}
nlprog_det-setting-0078197
Pilar drove 345 miles for work. Mileage is reimbursed at 70 cents a mile. How much is the reimbursement? Pilar is owed $241.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "241.50", "printed": "241.50", "notation": null}
nlprog_det-setting-0078198
<|start|><|user|> What commission does Malik make on $69,134 in sales at 6%?<|eot|> <|assistant|> ```python sales = 69134 rate = 6 / 100 # 0.06 commission = sales * rate # 4148.04 print(f"{commission:.2f}") ``` Out: 4148.04 The commission is $4,148.04.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What commission does Malik make on $69,134 in sales at 6%?" }, { "role": "assistant", "content": "```python\nsales = 69134\nrate = 6 / 100 # 0.06\ncommission = sales * rate # 4148.04\nprint(f\"{commission:.2f}\")\n```\nOut: 4148.04\n\nThe commission is $4,148.04."...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "4148.04", "printed": "4148.04", "notation": null}
nlprog_det-setting-0078199
A 24 lb package ships at $5 base plus $1.50/lb. What is the charge? The computation: ```python base = 5 per_pound = 1.5 weight = 24 cost = base + per_pound * weight # 41.0 print(f"{cost:.2f}") ``` The program prints 41.00, as expected. The charge is $41.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "41.00", "printed": "41.00", "notation": null}
nlprog_det-setting-0078200
Mei's scores were 55, 88, 95, 90, 73, 88 and 71. What is the average score? The computation: scores = [55, 88, 95, 90, 73, 88, 71] average = sum(scores) // len(scores) # 80 print(average) # output: 80 The average score is 80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "80", "printed": "80", "notation": null}
nlprog_det-setting-0078201
Divide 67 items among 5 groups as evenly as possible with equal groups. How many per group, and how many remain? Coded up: ```python total = 67 groups = 5 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Shell output: 13 each, 2 left over 13 each, 2 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "13 each, 2 left over", "printed": "13 each, 2 left over", "notation": null}
nlprog_det-setting-0078202
Each storage box holds 20 files. How many boxes are needed for 96 files? Computing it: ```python import math files = 96 per_box = 20 boxes = math.ceil(files / per_box) # 5 print(boxes) ``` (Output: 5) It takes 5 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0078203
At an exchange rate of 1.27 CAD per USD, how many CAD is 415 USD? Python makes this quick: ```python amount = 415 rate = 1.27 converted = amount * rate # 527.05 print(f"{converted:.2f}") ``` The program prints 527.05. It converts to 527.05 CAD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "527.05", "printed": "527.05", "notation": null}
nlprog_det-setting-0078204
At 30 miles per hour, how many minutes does a 60-mile trip take? A Python solution: ```python distance = 60 speed = 30 minutes = distance / speed * 60 # 120.0 print(round(minutes)) ``` (Out: 120) The trip takes 120 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0078206
What is a 10% tip on a $134.76 bill? ```python bill = 134.76 tip_rate = 10 / 100 # 0.1 tip = bill * tip_rate # 13.475999999999999 print(f"{tip:.2f}") ``` Console output: 13.48 The tip is $13.48.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "13.48", "printed": "13.48", "notation": null}
nlprog_det-setting-0078207
<|start|><|user|> How many units at $30 each (variable cost $26) cover $4,000 of fixed costs?<|eot|> <|assistant|> ```python import math fixed = 4000 price = 30 variable = 26 units = math.ceil(fixed / (price - variable)) # 1000 print(units) ``` # execution result: 1000 1000 units are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many units at $30 each (variable cost $26) cover $4,000 of fixed costs?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 4000\nprice = 30\nvariable = 26\nunits = math.ceil(fixed / (price - variable)) # 1000\nprint(units)\n```\n# execution ...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0078208
<|start|><|system|> You help people work with structured data.<|eot|> <|user|> Divide 166 items among 7 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|> <|assistant|> total = 166 groups = 7 per_group, remainder = divmod(total, groups) print(f"{per_group} ea...
chat
[ { "role": "system", "content": "You help people work with structured data." }, { "role": "user", "content": "Divide 166 items among 7 groups as evenly as possible with equal groups. How many per group, and how many remain?" }, { "role": "assistant", "content": " total = 166\n g...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "23 each, 5 left over", "printed": "23 each, 5 left over", "notation": null}
nlprog_det-setting-0078209
<|start|><|user|> A pack of 10 markers sells for $110. What does each cost?<|eot|> <|assistant|> total = 110 count = 10 per_item = total // count # 11 print(per_item) Execution result — 11 Each one costs $11.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A pack of 10 markers sells for $110. What does each cost?" }, { "role": "assistant", "content": " total = 110\n count = 10\n per_item = total // count # 11\n print(per_item)\nExecution result — 11\n\nEach one costs $11." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
70
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0078210
<|start|><|system|> You are a patient tutor.<|eot|> <|user|> Starting from $5,000, the team spends $3,097, $1,124, $2,253, $2,377. What remains?<|eot|> <|assistant|> budget = 5000 expenses = [3097, 1124, 2253, 2377] left = budget - sum(expenses) # -3851 print(left) It outputs: -3851 The remaining budg...
chat
[ { "role": "system", "content": "You are a patient tutor." }, { "role": "user", "content": "Starting from $5,000, the team spends $3,097, $1,124, $2,253, $2,377. What remains?" }, { "role": "assistant", "content": " budget = 5000\n expenses = [3097, 1124, 2253, 2377]\n left =...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "-3851", "printed": "-3851", "notation": null}
nlprog_det-setting-0078211
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> The rules require 2/3 of 53 members (round up) to be present. How many is that?<|eot|> <|assistant|> ```python import math members = 53 quorum = math.ceil(members * 2 / 3) # 36 print(quorum) ``` What it prints — 36 36 members are needed.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "role": "user", "content": "The rules require 2/3 of 53 members (round up) to be present. How many is that?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 53\nquorum = math.ceil(members * 2 ...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0078212
<|start|><|user|> Hana earns a 5% commission on $67,259 of sales. What is the commission?<|eot|> <|assistant|> ```python sales = 67259 rate = 5 / 100 # 0.05 commission = sales * rate # 3362.9500000000003 print(f"{commission:.2f}") ``` When run, it prints 3362.95, as expected. Hana earns $3,362.95.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Hana earns a 5% commission on $67,259 of sales. What is the commission?" }, { "role": "assistant", "content": "```python\nsales = 67259\nrate = 5 / 100 # 0.05\ncommission = sales * rate # 3362.9500000000003\nprint(f\"{commission:.2f}\")\n```\nWhen run, it prints 3...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "3362.95", "printed": "3362.95", "notation": null}
nlprog_det-setting-0078213
How many units at $15 each (variable cost $11) cover $6,000 of fixed costs? As Python: import math fixed = 6000 price = 15 variable = 11 units = math.ceil(fixed / (price - variable)) # 1500 print(units) # program output: 1500 1500 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0078214
After an initial $2,000, the remainder of a $30,000 grant is paid in 3 equal parts. What is each part? Code: ```python grant = 30000 up_front = 2000 installments = 3 each = (grant - up_front) / installments # 9333.333333333334 print(f"{each:.2f}") ``` The printout reads 9333.33. $9,333.33 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "9333.33", "printed": "9333.33", "notation": null}
nlprog_det-setting-0078215
Convert 3,925 USD to EUR at 1 USD = 0.74 EUR. It converts to 2,904.50 EUR.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "2904.50", "printed": "2904.50", "notation": null}
nlprog_det-setting-0078217
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "python_exec", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"python_exec\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\"...
nlprog_det
setting
original
null
deterministic
[]
[]
237
{"gold": "6750", "printed": "6750", "notation": null}
nlprog_det-setting-0078218
<|start|><|user|> Fuel for 180 miles at 24 mpg, with gas at $3.45/gallon: what is the cost?<|eot|> <|assistant|> Fuel costs $25.88.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Fuel for 180 miles at 24 mpg, with gas at $3.45/gallon: what is the cost?" }, { "role": "assistant", "content": "Fuel costs $25.88." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "25.88", "printed": "25.88", "notation": null}
nlprog_det-setting-0078219
<|start|><|user|> 157 volunteers are split into 6 equal teams. How many are on each team, and how many are left over?<|eot|> <|assistant|> ```python total = 157 groups = 6 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Output of the run: 26 each, 1 left over 26 each,...
chat
[ { "role": "user", "content": "157 volunteers are split into 6 equal teams. How many are on each team, and how many are left over?" }, { "role": "assistant", "content": "```python\ntotal = 157\ngroups = 6\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remainder} left o...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "26 each, 1 left over", "printed": "26 each, 1 left over", "notation": null}
nlprog_det-setting-0078220
A customer buys 5 cables at $2 each, 4 envelopes at $9 each, 1 scissors at $8 each, 6 headsets at $20 each and pays with $200. How much change is due? Script: ```python items = [(5, 2), (4, 9), (1, 8), (6, 20)] total = sum(q * p for q, p in items) # 174 paid = 200 change = paid - total # 26 print(change) ``` Out — 2...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0078221
The landlord deducts $200 from a $1,500 deposit. What is returned to the tenant? Programmatically: ```python deposit = 1500 deductions = [200] refund = deposit - sum(deductions) # 1300 print(refund) ``` (Printed: 1300) $1,300 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "1300", "printed": "1300", "notation": null}
nlprog_det-setting-0078222
<|start|><|system|> You are a precise assistant.<|eot|> <|user|> Express 171 hours in days and hours.<|eot|> <|assistant|> That is 7 days and 3 hours.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a precise assistant." }, { "role": "user", "content": "Express 171 hours in days and hours." }, { "role": "assistant", "content": "That is 7 days and 3 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "7 days and 3 hours", "printed": "7 days and 3 hours", "notation": null}
nlprog_det-setting-0078223
A court charges $15 per request plus $0.25 per page after the first 20 pages. What does a 51-page copy cost? A few lines of Python do it: ```python pages = 51 base = 15 per_page = 0.25 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page print(f"{cost:.2f}") ``` # execution result: 22.75 The total is $...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "22.75", "printed": "22.75", "notation": null}
nlprog_det-setting-0078224
<|start|><|user|> Parking is $3 per hour with a daily maximum of $15. What do 1 hours cost?<|eot|> <|assistant|> ```python rate = 3 hours = 1 daily_max = 15 cost = min(rate * hours, daily_max) # 3 print(cost) ``` Running it prints: 3 The charge is $3.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Parking is $3 per hour with a daily maximum of $15. What do 1 hours cost?" }, { "role": "assistant", "content": "```python\nrate = 3\nhours = 1\ndaily_max = 15\ncost = min(rate * hours, daily_max) # 3\nprint(cost)\n```\nRunning it prints: 3\n\nThe charge is $3." ...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0078225
4 boxes hold 24 folders each. After 18 are handed out, how many are left? That leaves 78 folders.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "78", "printed": "78", "notation": null}
nlprog_det-setting-0078226
A measure needs at least 75% of 294 votes. How many votes is that, rounded up? Python code: ```python import math voters = 294 needed = math.ceil(voters * 75 / 100) print(needed) ``` (Printed result: 221) At least 221 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "221", "printed": "221", "notation": null}
nlprog_det-setting-0078227
<|start|><|user|> Split $3,850 between Amir and Lucia in the ratio 2 to 3. What is Amir's share?<|eot|> <|assistant|> ```python total = 3850 parts_a = 2 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 1540 print(share_a) ``` stdout: 1540 Amir's share is $1,540.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Split $3,850 between Amir and Lucia in the ratio 2 to 3. What is Amir's share?" }, { "role": "assistant", "content": "```python\ntotal = 3850\nparts_a = 2\nparts_b = 3\nshare_a = total * parts_a // (parts_a + parts_b) # 1540\nprint(share_a)\n```\nstdout:\n1540\n\nA...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "1540", "printed": "1540", "notation": null}
nlprog_det-setting-0078228
<|start|><|user|> A 100-mile drive at a steady 30 mph takes how many minutes?<|eot|> <|assistant|> distance = 100 speed = 30 minutes = distance / speed * 60 # 200.0 print(round(minutes)) Result: 200 The trip takes 200 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 100-mile drive at a steady 30 mph takes how many minutes?" }, { "role": "assistant", "content": " distance = 100\n speed = 30\n minutes = distance / speed * 60 # 200.0\n print(round(minutes))\nResult:\n200\n\nThe trip takes 200 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
68
{"gold": "200", "printed": "200", "notation": null}
nlprog_det-setting-0078229
<|start|><|user|> 5 claimants share a $2,640 settlement equally. What is each share?<|eot|> <|assistant|> settlement = 2640 parties = 5 share = settlement // parties print(share) Execution prints 528, as expected. Each party receives $528.<|eot|> <|end|>
chat
[ { "role": "user", "content": "5 claimants share a $2,640 settlement equally. What is each share?" }, { "role": "assistant", "content": " settlement = 2640\n parties = 5\n share = settlement // parties\n print(share)\nExecution prints 528, as expected.\n\nEach party receives $528." ...
nlprog_det
setting
original
null
deterministic
[]
[]
70
{"gold": "528", "printed": "528", "notation": null}
nlprog_det-setting-0078230
<|start|><|user|> After a 25% fee is taken from a $48,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|> <|assistant|> award = 48000 fee = award * 25 / 100 # 12000.0 remaining = award - fee # 36000.0 per_client = remaining / 3 # 12000.0 print(f"{per_cli...
chat
[ { "role": "user", "content": "After a 25% fee is taken from a $48,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?" }, { "role": "assistant", "content": " award = 48000\n fee = award * 25 / 100 # 12000.0\n remaining = award - fee # 36000.0\n p...
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "12000.00", "printed": "12000.00", "notation": null}
nlprog_det-setting-0078231
Count 60 days forward from March 17, 2018. What date is that? Code: ```python from datetime import date, timedelta start = date(2018, 3, 17) # datetime.date(2018, 3, 17) end = start + timedelta(days=60) # datetime.date(2018, 5, 16) print(end.isoformat()) ``` Python prints: 2018-05-16 It ends on May 16, 2018.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "2018-05-16", "printed": "2018-05-16", "notation": null}
nlprog_det-setting-0078232
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "code_runner", "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\": \"code_runner\", \"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
[]
[]
269
{"gold": "10:10 AM", "printed": "10:10 AM", "notation": null}
nlprog_det-setting-0078233
<|start|><|user|> A $240 dinner bill gets a 18% tip, and 5 people share the cost equally. What is each person's share?<|eot|> <|assistant|> ```python bill = 240 tip_rate = 18 / 100 # 0.18 people = 5 each = bill * (1 + tip_rate) / people # 56.64 print(f"{each:.2f}") ``` Result — 56.64 Each person pays $56.64.<|eot|> ...
chat
[ { "role": "user", "content": "A $240 dinner bill gets a 18% tip, and 5 people share the cost equally. What is each person's share?" }, { "role": "assistant", "content": "```python\nbill = 240\ntip_rate = 18 / 100 # 0.18\npeople = 5\neach = bill * (1 + tip_rate) / people # 56.64\nprint(f\"{each...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "56.64", "printed": "56.64", "notation": null}
nlprog_det-setting-0078234
<|start|><|user|> Split $1,692 between Pilar and Hana in the ratio 1 to 2. What is Pilar's share?<|eot|> <|assistant|> ```python total = 1692 parts_a = 1 parts_b = 2 share_a = total * parts_a // (parts_a + parts_b) # 564 print(share_a) ``` stdout: 564 Pilar gets $564.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Split $1,692 between Pilar and Hana in the ratio 1 to 2. What is Pilar's share?" }, { "role": "assistant", "content": "```python\ntotal = 1692\nparts_a = 1\nparts_b = 2\nshare_a = total * parts_a // (parts_a + parts_b) # 564\nprint(share_a)\n```\nstdout:\n564\n\nPi...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "564", "printed": "564", "notation": null}
nlprog_det-setting-0078235
A quorum is 1/3 of the 23 members, rounded up. How many members make a quorum? Written as code: ```python import math members = 23 quorum = math.ceil(members * 1 / 3) # 8 print(quorum) ``` # printed: 8 That is 8 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0078236
At a 8% tax rate, what is the tax on $444.96? We can compute it in Python. ```python price = 444.96 tax_rate = 8 / 100 # 0.08 tax = price * tax_rate # 35.5968 print(f"{tax:.2f}") ``` Printed: 35.60 The tax is $35.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "35.60", "printed": "35.60", "notation": null}
nlprog_det-setting-0078237
4 clients win $96,000. The lawyer takes 30%, and the rest is split equally. How much does each client get? A few lines of Python do it: ```python award = 96000 fee = award * 30 / 100 # 28800.0 remaining = award - fee # 67200.0 per_client = remaining / 4 # 16800.0 print(f"{per_client:.2f}") ``` The code prints: 1680...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "16800.00", "printed": "16800.00", "notation": null}
nlprog_det-setting-0078238
<|start|><|system|> Answer in plain English.<|eot|> <|user|> Convert 65.7 km to meters.<|eot|> <|assistant|> ```python km = 65.7 meters = km * 1000 # 65700.0 print(round(meters)) ``` Printed result: 65700 That is 65,700 meters.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer in plain English." }, { "role": "user", "content": "Convert 65.7 km to meters." }, { "role": "assistant", "content": "```python\nkm = 65.7\nmeters = km * 1000 # 65700.0\nprint(round(meters))\n```\nPrinted result: 65700\n\nThat is 65,700 meters....
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "65700", "printed": "65700", "notation": null}
nlprog_det-setting-0078239
A client paid a $2,500 retainer. The firm has billed 6 hours at $150 per hour. How much of the retainer is left? Computation in Python: ```python retainer = 2500 hours = 6 rate = 150 left = retainer - hours * rate # 1600 print(left) ``` # console output: 1600 $1,600 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "1600", "printed": "1600", "notation": null}
nlprog_det-setting-0078240
Counting the first and last day, how many days are there from May 8, 2024 through May 20, 2024? Python version: ```python from datetime import date first = date(2024, 5, 8) # datetime.date(2024, 5, 8) last = date(2024, 5, 20) # datetime.date(2024, 5, 20) days = (last - first).days + 1 # 13 print(days) ``` (Out: 13)...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0078242
A 225-mile drive at a steady 45 mph takes how many minutes? Program: ```python distance = 225 speed = 45 minutes = distance / speed * 60 # 300.0 print(round(minutes)) ``` Execution prints: 300 300 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0078244
A car travels 250 miles in 5 hours. What is its average speed in miles per hour? We write it as a program: ```python distance = 250 hours = 5 speed = distance / hours # 50.0 print(round(speed)) ``` The code prints 50. The average speed is 50 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0078245
What simple interest does $8,000 earn at 3% a year over 6 years? Let's compute it with Python. ```python principal = 8000 rate = 3 / 100 # 0.03 years = 6 interest = principal * rate * years # 1440.0 print(f"{interest:.2f}") ``` The program prints 1440.00, as expected. The interest is $1,440.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "1440.00", "printed": "1440.00", "notation": null}
nlprog_det-setting-0078246
<|start|><|system|> Answer the user's question directly.<|eot|> <|user|> How much sales tax is charged on a $545.15 purchase at 9%?<|eot|> <|assistant|> ```python price = 545.15 tax_rate = 9 / 100 # 0.09 tax = price * tax_rate # 49.0635 print(f"{tax:.2f}") ``` Executing it gives: 49.06 The tax is $49.06.<|eot|> <|en...
chat
[ { "role": "system", "content": "Answer the user's question directly." }, { "role": "user", "content": "How much sales tax is charged on a $545.15 purchase at 9%?" }, { "role": "assistant", "content": "```python\nprice = 545.15\ntax_rate = 9 / 100 # 0.09\ntax = price * tax_rate # 49...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "49.06", "printed": "49.06", "notation": null}
nlprog_det-setting-0078247
30 hard drives cost $5 apiece. With 7% tax added, what is the total? Code: ```python quantity = 30 unit_price = 5 subtotal = quantity * unit_price total = subtotal * (1 + 7 / 100) print(f"{total:.2f}") ``` Run output: 160.50 The total with tax is $160.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "160.50", "printed": "160.50", "notation": null}
nlprog_det-setting-0078248
A garage charges $5 an hour, never more than $15 a day. How much for 10 hours? Python code: ```python rate = 5 hours = 10 daily_max = 15 cost = min(rate * hours, daily_max) # 15 print(cost) ``` Running it prints 15. Parking costs $15.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0078249
<|start|><|user|> 8 claimants share a $84,000 settlement equally. What is each share?<|eot|> <|assistant|> ```python settlement = 84000 parties = 8 share = settlement // parties print(share) ``` (Program output: 10500) Each party receives $10,500.<|eot|> <|end|>
chat
[ { "role": "user", "content": "8 claimants share a $84,000 settlement equally. What is each share?" }, { "role": "assistant", "content": "```python\nsettlement = 84000\nparties = 8\nshare = settlement // parties\nprint(share)\n```\n(Program output: 10500)\n\nEach party receives $10,500." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "10500", "printed": "10500", "notation": null}
nlprog_det-setting-0078250
Pack A has 8 items for $9.54. Pack B has 30 items for $23.08. Which has the lower price per item? The program: ```python pack_a = 9.54 / 8 # 1.1925 pack_b = 23.08 / 30 # 0.7693333333333333 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` Execution prints B, as expected. B has the lower unit price...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0078251
<|start|><|user|> A 7 lb package ships at $10 base plus $2.50/lb. What is the charge?<|eot|> <|assistant|> ```python base = 10 per_pound = 2.5 weight = 7 cost = base + per_pound * weight # 27.5 print(f"{cost:.2f}") ``` # printed: 27.50 Shipping costs $27.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 7 lb package ships at $10 base plus $2.50/lb. What is the charge?" }, { "role": "assistant", "content": "```python\nbase = 10\nper_pound = 2.5\nweight = 7\ncost = base + per_pound * weight # 27.5\nprint(f\"{cost:.2f}\")\n```\n# printed: 27.50\n\nShipping costs $2...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "27.50", "printed": "27.50", "notation": null}
nlprog_det-setting-0078252
What is 5 degrees Celsius in Fahrenheit? In code: ```python celsius = 5 fahrenheit = celsius * 9 / 5 + 32 # 41.0 print(round(fahrenheit)) ``` The interpreter prints: 41 That is 41 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "41", "printed": "41", "notation": null}
nlprog_det-setting-0078253
What is the total rent on a 36-month lease at $1,640 a month? In total, $59,040 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "59040", "printed": "59040", "notation": null}
nlprog_det-setting-0078254
<|start|><|system|> You are a logic tutor.<|eot|> <|user|> A claim accrued on May 6, 2019. The limitations period is 3 years. On what date does it expire?<|eot|> <|assistant|> It runs out on May 6, 2022.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a logic tutor." }, { "role": "user", "content": "A claim accrued on May 6, 2019. The limitations period is 3 years. On what date does it expire?" }, { "role": "assistant", "content": "It runs out on May 6, 2022." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
53
{"gold": "2022-05-06", "printed": "2022-05-06", "notation": null}
nlprog_det-setting-0078255
Ana drove 105 miles for work. Mileage is reimbursed at 67 cents a mile. How much is the reimbursement? ```python miles = 105 rate = 0.67 reimbursement = miles * rate # 70.35000000000001 print(f"{reimbursement:.2f}") ``` # console output: 70.35 Ana is owed $70.35.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "70.35", "printed": "70.35", "notation": null}
nlprog_det-setting-0078256
Which is cheaper per unit: 6 for $6.42 (A) or 18 for $10.67 (B)? Let the code do the arithmetic: ```python pack_a = 6.42 / 6 # 1.07 pack_b = 10.67 / 18 # 0.5927777777777777 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` It prints: B Pack B is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0078258
A car travels 467 miles in 1 hours. What is its average speed in miles per hour? Python version: distance = 467 hours = 1 speed = distance / hours # 467.0 print(round(speed)) # printed: 467 It averages 467 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "467", "printed": "467", "notation": null}
nlprog_det-setting-0078260
A 15 × 6 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up? As a program: import math length = 15 width = 6 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 23 print(tiles) Output of the run — 23 23 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0078261
A garage charges $2 an hour, never more than $15 a day. How much for 2 hours? Let the code do the arithmetic: ```python rate = 2 hours = 2 daily_max = 15 cost = min(rate * hours, daily_max) print(cost) ``` When run, it prints 4, as expected. Parking costs $4.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0078262
<|start|><|user|> Shipping costs $12 plus $1.20 per pound. What does a 28-pound parcel cost to ship?<|eot|> <|assistant|> The charge is $45.60.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Shipping costs $12 plus $1.20 per pound. What does a 28-pound parcel cost to ship?" }, { "role": "assistant", "content": "The charge is $45.60." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "45.60", "printed": "45.60", "notation": null}
nlprog_det-setting-0078263
<|start|><|user|> What average speed covers 264 miles in 2 hours?<|eot|> <|assistant|> It averages 132 miles per hour.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What average speed covers 264 miles in 2 hours?" }, { "role": "assistant", "content": "It averages 132 miles per hour." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "132", "printed": "132", "notation": null}
nlprog_det-setting-0078264
A customer buys 6 tape rolls at $17 each, 1 paper reams at $22 each, 3 headsets at $29 each, 5 file boxes at $25 each and pays with $350. How much change is due? Computing it: ```python items = [(6, 17), (1, 22), (3, 29), (5, 25)] total = sum(q * p for q, p in items) # 336 paid = 350 change = paid - total # 14 print...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0078266
<|start|><|user|> A meal costs $59.29. How much is a 22% tip?<|eot|> <|assistant|> ```python bill = 59.29 tip_rate = 22 / 100 # 0.22 tip = bill * tip_rate # 13.0438 print(f"{tip:.2f}") ``` Run output — 13.04 Leave $13.04.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A meal costs $59.29. How much is a 22% tip?" }, { "role": "assistant", "content": "```python\nbill = 59.29\ntip_rate = 22 / 100 # 0.22\ntip = bill * tip_rate # 13.0438\nprint(f\"{tip:.2f}\")\n```\nRun output — 13.04\n\nLeave $13.04." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "13.04", "printed": "13.04", "notation": null}
nlprog_det-setting-0078267
<|start|><|system|> Give the answer first.<|eot|> <|user|> Buying 4 staplers at $12 each, 6 ink cartridges at $6 each, 6 chairs at $15 each, 6 cables at $29 each, someone hands over $350. What change comes back?<|eot|> <|assistant|> $2 comes back.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Give the answer first." }, { "role": "user", "content": "Buying 4 staplers at $12 each, 6 ink cartridges at $6 each, 6 chairs at $15 each, 6 cables at $29 each, someone hands over $350. What change comes back?" }, { "role": "assistant", "content": "$2 ...
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0078268
<|start|><|system|> You are a data assistant.<|eot|> <|user|> Scale 100 g of flour from 4 servings to 12 servings.<|eot|> <|assistant|> 300 grams of flour are needed.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a data assistant." }, { "role": "user", "content": "Scale 100 g of flour from 4 servings to 12 servings." }, { "role": "assistant", "content": "300 grams of flour are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0078269
A library charges $0.25 per book per day late. What is the fine for 4 books that are 11 days late? Script: ```python per_day = 0.25 days_late = 11 books = 4 fine = per_day * days_late * books # 11.0 print(f"{fine:.2f}") ``` Output of the run: 11.00 The fine is $11.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "11.00", "printed": "11.00", "notation": null}
nlprog_det-setting-0078270
A client paid a $5,000 retainer. The firm has billed 10 hours at $275 per hour. How much of the retainer is left? We write it as a program: ```python retainer = 5000 hours = 10 rate = 275 left = retainer - hours * rate # 2250 print(left) ``` Run result — 2250 The remaining balance is $2,250.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "2250", "printed": "2250", "notation": null}
nlprog_det-setting-0078271
<|start|><|user|> A recipe for 2 people uses 450 grams of rice. How many grams are needed for 10 people?<|eot|> <|assistant|> ```python grams = 450 serves = 2 needed_for = 10 scaled = grams * needed_for // serves print(scaled) ``` Executing it gives 2250. 2250 grams of rice are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A recipe for 2 people uses 450 grams of rice. How many grams are needed for 10 people?" }, { "role": "assistant", "content": "```python\ngrams = 450\nserves = 2\nneeded_for = 10\nscaled = grams * needed_for // serves\nprint(scaled)\n```\nExecuting it gives 2250.\n\n...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "2250", "printed": "2250", "notation": null}
nlprog_det-setting-0078272
Under a 33% contingency agreement, what fee is owed on a $12,000 award? Python makes this quick: ```python recovery = 12000 rate = 33 / 100 # 0.33 fee = recovery * rate # 3960.0 print(f"{fee:.2f}") ``` Running it prints: 3960.00 The fee is $3,960.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "3960.00", "printed": "3960.00", "notation": null}
nlprog_det-setting-0078274
A 72-page report must be reviewed in 3 days. How many pages a day is that, evenly? We can compute it in Python. ```python pages = 72 days = 3 per_day = pages // days # 24 print(per_day) ``` The program prints 24, as expected. 24 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0078276
<|start|><|user|> To read 170 pages in 5 days, how many pages per day are needed?<|eot|> <|assistant|> ```python pages = 170 days = 5 per_day = pages // days # 34 print(per_day) ``` # result: 34 That is 34 pages per day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "To read 170 pages in 5 days, how many pages per day are needed?" }, { "role": "assistant", "content": "```python\npages = 170\ndays = 5\nper_day = pages // days # 34\nprint(per_day)\n```\n# result: 34\n\nThat is 34 pages per day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "34", "printed": "34", "notation": null}
nlprog_det-setting-0078277
<|start|><|system|> You are a careful assistant.<|eot|> <|user|> A $6,000 loan carries 10% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|> <|assistant|> ```python principal = 6000 annual_rate = 10 / 100 months = 36 interest = principal * a...
chat
[ { "role": "system", "content": "You are a careful assistant." }, { "role": "user", "content": "A $6,000 loan carries 10% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?" }, { "role": "assistant", "content": "``...
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "216.67", "printed": "216.67", "notation": null}
nlprog_det-setting-0078278
A library charges $0.15 per book per day late. What is the fine for 2 books that are 10 days late? Let's compute it with Python. ```python per_day = 0.15 days_late = 10 books = 2 fine = per_day * days_late * books # 3.0 print(f"{fine:.2f}") ``` Running it prints 3.00, as expected. $3.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "3.00", "printed": "3.00", "notation": null}
nlprog_det-setting-0078279
Goods bought on August 10, 2023 carry a 6-month warranty. When does it expire? ```python from datetime import date start = date(2023, 8, 10) months = 6 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Run result = 2024-02-10...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "2024-02-10", "printed": "2024-02-10", "notation": null}
nlprog_det-setting-0078280
At 45 miles per hour, how many minutes does a 180-mile trip take? Python version: distance = 180 speed = 45 minutes = distance / speed * 60 # 240.0 print(round(minutes)) Execution prints 240, as expected. 240 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "240", "printed": "240", "notation": null}