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-0054965
<|start|><|user|> A deposition lasted 4 hours and 39 minutes. How many minutes is that?<|eot|> <|assistant|> ```python hours = 4 minutes = 39 total_minutes = hours * 60 + minutes # 279 print(total_minutes) ``` Running this gives 279. That is 279 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A deposition lasted 4 hours and 39 minutes. How many minutes is that?" }, { "role": "assistant", "content": "```python\nhours = 4\nminutes = 39\ntotal_minutes = hours * 60 + minutes # 279\nprint(total_minutes)\n```\nRunning this gives 279.\n\nThat is 279 minutes." ...
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "279", "printed": "279", "notation": null}
nlprog_det-setting-0054966
Buying 6 hard drives at $4 each, 5 headsets at $14 each, someone hands over $100. What change comes back? The computation: ```python items = [(6, 4), (5, 14)] total = sum(q * p for q, p in items) # 94 paid = 100 change = paid - total # 6 print(change) ``` # printed result: 6 $6 comes back.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0054967
On which weekday does April 14, 1990 fall? The Python version: ```python from datetime import date hearing = date(1990, 4, 14) # datetime.date(1990, 4, 14) print(hearing.strftime("%A")) ``` # stdout: Saturday April 14, 1990 is a Saturday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "Saturday", "printed": "Saturday", "notation": null}
nlprog_det-setting-0054968
<|start|><|system|> Tools you may use: [{"name": "run_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "lookup_statute", "description...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"run_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"...
nlprog_det
setting
original
null
deterministic
[]
[]
310
{"gold": "1", "printed": "1", "notation": null}
nlprog_det-setting-0054969
<|start|><|system|> You are a careful reviewer of figures.<|eot|> <|user|> Equipment costs $18,000, has a salvage value of $6,000, and a useful life of 8 years. What is the straight-line depreciation per year?<|eot|> <|assistant|> ```python cost = 18000 salvage = 6000 years = 8 per_year = (cost - salvage) / years # 15...
chat
[ { "role": "system", "content": "You are a careful reviewer of figures." }, { "role": "user", "content": "Equipment costs $18,000, has a salvage value of $6,000, and a useful life of 8 years. What is the straight-line depreciation per year?" }, { "role": "assistant", "content": "```py...
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "1500.00", "printed": "1500.00", "notation": null}
nlprog_det-setting-0054970
An office budget of $25,000 has expenses of $2,229, $2,218. How much of the budget is left? In code: budget = 25000 expenses = [2229, 2218] left = budget - sum(expenses) # 20553 print(left) Running it prints: 20553 The remaining budget is $20,553.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "20553", "printed": "20553", "notation": null}
nlprog_det-setting-0054971
Pack A has 10 items for $11.88. Pack B has 30 items for $31.78. Which has the lower price per item? pack_a = 11.88 / 10 # 1.1880000000000002 pack_b = 31.78 / 30 # 1.0593333333333335 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) It outputs B. Pack B is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0054972
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "calculator", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> <|u...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"calculator\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python so...
nlprog_det
setting
original
null
deterministic
[]
[]
237
{"gold": "240", "printed": "240", "notation": null}
nlprog_det-setting-0054973
2 books come back 21 days late, at $0.10 a day each. What is the fine? ```python per_day = 0.1 days_late = 21 books = 2 fine = per_day * days_late * books # 4.2 print(f"{fine:.2f}") ``` Result = 4.20 The fine is $4.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "4.20", "printed": "4.20", "notation": null}
nlprog_det-setting-0054974
What average speed covers 408 miles in 3 hours? Here's the code. ```python distance = 408 hours = 3 speed = distance / hours # 136.0 print(round(speed)) ``` When run, it prints: 136 The average speed is 136 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "136", "printed": "136", "notation": null}
nlprog_det-setting-0054975
<|start|><|user|> A 3% increase is applied to $1,100 monthly rent. What is the new amount?<|eot|> <|assistant|> ```python rent = 1100 increase = 3 / 100 new_rent = rent * (1 + increase) print(f"{new_rent:.2f}") ``` What it prints: 1133.00 It rises to $1,133.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 3% increase is applied to $1,100 monthly rent. What is the new amount?" }, { "role": "assistant", "content": "```python\nrent = 1100\nincrease = 3 / 100\nnew_rent = rent * (1 + increase)\nprint(f\"{new_rent:.2f}\")\n```\nWhat it prints: 1133.00\n\nIt rises to $1,1...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "1133.00", "printed": "1133.00", "notation": null}
nlprog_det-setting-0054976
<|start|><|user|> Each of Wen's swims burns 350 calories. How many calories over 6 swims?<|eot|> <|assistant|> per_session = 350 sessions = 6 total = per_session * sessions # 2100 print(total) Running this gives: 2100 That burns 2100 calories.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each of Wen's swims burns 350 calories. How many calories over 6 swims?" }, { "role": "assistant", "content": " per_session = 350\n sessions = 6\n total = per_session * sessions # 2100\n print(total)\nRunning this gives: 2100\n\nThat burns 2100 calories...
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "2100", "printed": "2100", "notation": null}
nlprog_det-setting-0054977
What is 25 degrees Celsius in Fahrenheit? Here's the code. ```python celsius = 25 fahrenheit = celsius * 9 / 5 + 32 # 77.0 print(round(fahrenheit)) ``` The code prints: 77 It equals 77 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0054978
A trial runs from June 6, 2022 to June 26, 2022, counting both days. How many calendar days is that? Python makes this quick: ```python from datetime import date first = date(2022, 6, 6) # datetime.date(2022, 6, 6) last = date(2022, 6, 26) # datetime.date(2022, 6, 26) days = (last - first).days + 1 # 21 print(days)...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0054979
A lawyer's fee is 40% of a $12,000 recovery. How large is the fee? As Python: ```python recovery = 12000 rate = 40 / 100 # 0.4 fee = recovery * rate # 4800.0 print(f"{fee:.2f}") ``` (Printed: 4800.00) The fee is $4,800.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "4800.00", "printed": "4800.00", "notation": null}
nlprog_det-setting-0054980
A clerk's office charges $150 for each filing. Sami submits 7 filings. What is the total fee? The total fee is $1,050.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "1050", "printed": "1050", "notation": null}
nlprog_det-setting-0054981
<|start|><|user|> With 5 rows of 17 chairs and 6 empty chairs, how many chairs are taken?<|eot|> <|assistant|> ```python rows = 5 per_row = 17 empty = 6 seated = rows * per_row - empty # 79 print(seated) ``` The run gives 79. 79 seats are taken.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 5 rows of 17 chairs and 6 empty chairs, how many chairs are taken?" }, { "role": "assistant", "content": "```python\nrows = 5\nper_row = 17\nempty = 6\nseated = rows * per_row - empty # 79\nprint(seated)\n```\nThe run gives 79.\n\n79 seats are taken." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "79", "printed": "79", "notation": null}
nlprog_det-setting-0054982
A 160-mile drive at a steady 40 mph takes how many minutes? The trip takes 240 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "240", "printed": "240", "notation": null}
nlprog_det-setting-0054983
10.5 hours of work at $410 an hour: what is the total charge? Code: ```python hours = 10.5 rate = 410 bill = hours * rate # 4305.0 print(f"{bill:.2f}") ``` The printout reads 4305.00. The bill is $4,305.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "4305.00", "printed": "4305.00", "notation": null}
nlprog_det-setting-0054985
7 boxes hold 25 hard drives each. After 17 are handed out, how many are left? Python does the arithmetic: boxes = 7 per_box = 25 given_away = 17 left = boxes * per_box - given_away # 158 print(left) Running this gives: 158 That leaves 158 hard drives.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "158", "printed": "158", "notation": null}
nlprog_det-setting-0054986
A clerk's office charges $35 for each filing. Nilufar submits 2 filings. What is the total fee? Let the code do the arithmetic: ```python fee = 35 filings = 2 total = fee * filings # 70 print(total) ``` # printed result: 70 The filings cost $70 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "70", "printed": "70", "notation": null}
nlprog_det-setting-0054987
Equipment costs $45,000, has a salvage value of $2,000, and a useful life of 8 years. What is the straight-line depreciation per year? As a program: ```python cost = 45000 salvage = 2000 years = 8 per_year = (cost - salvage) / years # 5375.0 print(f"{per_year:.2f}") ``` Result — 5375.00 $5,375.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "5375.00", "printed": "5375.00", "notation": null}
nlprog_det-setting-0054988
<|start|><|user|> A 10-day notice period begins on February 1, 2027. On what date does it end?<|eot|> <|assistant|> from datetime import date, timedelta start = date(2027, 2, 1) # datetime.date(2027, 2, 1) end = start + timedelta(days=10) # datetime.date(2027, 2, 11) print(end.isoformat()) (Console ou...
chat
[ { "role": "user", "content": "A 10-day notice period begins on February 1, 2027. On what date does it end?" }, { "role": "assistant", "content": " from datetime import date, timedelta\n start = date(2027, 2, 1) # datetime.date(2027, 2, 1)\n end = start + timedelta(days=10) # datetime....
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "2027-02-11", "printed": "2027-02-11", "notation": null}
nlprog_det-setting-0054989
Yoko buys 6 boxes of 25 binders each and gives away 18 binders. How many binders are left? As a program: ```python boxes = 6 per_box = 25 given_away = 18 left = boxes * per_box - given_away # 132 print(left) ``` The run gives 132, as expected. That leaves 132 binders.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "132", "printed": "132", "notation": null}
nlprog_det-setting-0054990
A hall has 28 rows of 15 seats, and 21 seats are empty. How many people are seated? We can compute it in Python. ```python rows = 28 per_row = 15 empty = 21 seated = rows * per_row - empty # 399 print(seated) ``` That prints: 399 399 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "399", "printed": "399", "notation": null}
nlprog_det-setting-0054991
Pack A has 12 items for $6.22. Pack B has 24 items for $22.32. Which has the lower price per item? Let the code do the arithmetic: ```python pack_a = 6.22 / 12 # 0.5183333333333333 pack_b = 22.32 / 24 # 0.93 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` That prints A. A has the lower unit pric...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0054992
What is the total rent on a 12-month lease at $1,640 a month? The rent over the term is $19,680.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "19680", "printed": "19680", "notation": null}
nlprog_det-setting-0054993
How many units at $25 each (variable cost $21) cover $6,000 of fixed costs? Computing it: ```python import math fixed = 6000 price = 25 variable = 21 units = math.ceil(fixed / (price - variable)) # 1500 print(units) ``` Executing it gives 1500. 1500 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0054994
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> Wat...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source cod...
nlprog_det
setting
original
null
deterministic
[]
[]
249
{"gold": "86.40", "printed": "86.40", "notation": null}
nlprog_det-setting-0054995
<|start|><|user|> A 150-page report must be reviewed in 15 days. How many pages a day is that, evenly?<|eot|> <|assistant|> ```python pages = 150 days = 15 per_day = pages // days # 10 print(per_day) ``` When run, it prints: 10 10 pages a day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 150-page report must be reviewed in 15 days. How many pages a day is that, evenly?" }, { "role": "assistant", "content": "```python\npages = 150\ndays = 15\nper_day = pages // days # 10\nprint(per_day)\n```\nWhen run, it prints: 10\n\n10 pages a day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0054996
<|start|><|user|> Walls total 1038 sq ft and each can covers 300 sq ft. How many cans should be bought?<|eot|> <|assistant|> Buy 4 cans.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Walls total 1038 sq ft and each can covers 300 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "Buy 4 cans." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0054997
A storeroom has 1781 headsets. The office uses 24 a day. How many are left after 3 days? The computation: ```python stock = 1781 per_day = 24 days = 3 left = stock - per_day * days # 1709 print(left) ``` The run gives 1709, as expected. 1709 headsets are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "1709", "printed": "1709", "notation": null}
nlprog_det-setting-0054998
<|start|><|system|> You are a logic tutor.<|eot|> <|user|> Shipping costs $10 plus $1.50 per pound. What does a 15-pound parcel cost to ship?<|eot|> <|assistant|> ```python base = 10 per_pound = 1.5 weight = 15 cost = base + per_pound * weight # 32.5 print(f"{cost:.2f}") ``` Executed, it shows 32.50. Shipping costs $...
chat
[ { "role": "system", "content": "You are a logic tutor." }, { "role": "user", "content": "Shipping costs $10 plus $1.50 per pound. What does a 15-pound parcel cost to ship?" }, { "role": "assistant", "content": "```python\nbase = 10\nper_pound = 1.5\nweight = 15\ncost = base + per_pou...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "32.50", "printed": "32.50", "notation": null}
nlprog_det-setting-0054999
<|start|><|user|> Zainab and Goran share $4,064 in the ratio 3:5. How much does Zainab get?<|eot|> <|assistant|> ```python total = 4064 parts_a = 3 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 1524 print(share_a) ``` (Printed result: 1524) Zainab's share is $1,524.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Zainab and Goran share $4,064 in the ratio 3:5. How much does Zainab get?" }, { "role": "assistant", "content": "```python\ntotal = 4064\nparts_a = 3\nparts_b = 5\nshare_a = total * parts_a // (parts_a + parts_b) # 1524\nprint(share_a)\n```\n(Printed result: 1524)\...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "1524", "printed": "1524", "notation": null}
nlprog_det-setting-0055000
What simple interest does $20,000 earn at 8% a year over 4 years? Python does the arithmetic: ```python principal = 20000 rate = 8 / 100 # 0.08 years = 4 interest = principal * rate * years # 6400.0 print(f"{interest:.2f}") ``` Executing it gives: 6400.00 The interest is $6,400.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "6400.00", "printed": "6400.00", "notation": null}
nlprog_det-setting-0055001
What percentage of $5,000 is $2,300? Written as code: ```python budget = 5000 spent = 2300 percent = spent / budget * 100 # 46.0 print(round(percent, 1)) ``` The interpreter prints 46.0. That is 46.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "46.0", "printed": "46.0", "notation": null}
nlprog_det-setting-0055002
<|start|><|user|> Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 46 hours?<|eot|> <|assistant|> ```python rate = 20.0 hours = 46 regular = 40 * rate # 800.0 overtime = (hours - 40) * rate * 1.5 # 180.0 pay = regular + overtime # 980.0 print(f"{pay:.2f}") ``` Program output: 98...
chat
[ { "role": "user", "content": "Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 46 hours?" }, { "role": "assistant", "content": "```python\nrate = 20.0\nhours = 46\nregular = 40 * rate # 800.0\novertime = (hours - 40) * rate * 1.5 # 180.0\npay = regular + o...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "980.00", "printed": "980.00", "notation": null}
nlprog_det-setting-0055003
<|start|><|user|> 6 walks at 350 calories each burn how many calories in total?<|eot|> <|assistant|> ```python per_session = 350 sessions = 6 total = per_session * sessions # 2100 print(total) ``` The run gives 2100. That burns 2100 calories.<|eot|> <|end|>
chat
[ { "role": "user", "content": "6 walks at 350 calories each burn how many calories in total?" }, { "role": "assistant", "content": "```python\nper_session = 350\nsessions = 6\ntotal = per_session * sessions # 2100\nprint(total)\n```\nThe run gives 2100.\n\nThat burns 2100 calories." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "2100", "printed": "2100", "notation": null}
nlprog_det-setting-0055004
The rules require 2/3 of 10 members (round up) to be present. How many is that? ```python import math members = 10 quorum = math.ceil(members * 2 / 3) # 7 print(quorum) ``` stdout — 7 7 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "7", "printed": "7", "notation": null}
nlprog_det-setting-0055005
<|start|><|system|> Functions: [{"name": "interpreter", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> 2 friends split a $96 bill plu...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"interpreter\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"co...
nlprog_det
setting
original
null
deterministic
[]
[]
224
{"gold": "56.64", "printed": "56.64", "notation": null}
nlprog_det-setting-0055006
Starting from $8,000, the team spends $826, $2,179. What remains? Python code: ```python budget = 8000 expenses = [826, 2179] left = budget - sum(expenses) # 4995 print(left) ``` # console output: 4995 $4,995 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "4995", "printed": "4995", "notation": null}
nlprog_det-setting-0055007
A shift starts at 9:20 AM and lasts 150 minutes. When does it end? Here is the program. start = 9 * 60 + 20 end = start + 150 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") It outputs: 11:50 AM The shift finishes at 11:50 AM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "11:50 AM", "printed": "11:50 AM", "notation": null}
nlprog_det-setting-0055008
<|start|><|user|> A hall has 25 rows of 14 seats, and 28 seats are empty. How many people are seated?<|eot|> <|assistant|> rows = 25 per_row = 14 empty = 28 seated = rows * per_row - empty # 322 print(seated) On running, it outputs 322. 322 people are seated.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hall has 25 rows of 14 seats, and 28 seats are empty. How many people are seated?" }, { "role": "assistant", "content": " rows = 25\n per_row = 14\n empty = 28\n seated = rows * per_row - empty # 322\n print(seated)\nOn running, it outputs 322.\n\n...
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "322", "printed": "322", "notation": null}
nlprog_det-setting-0055009
An invoice lists 6 badges at $2 each, plus 7% sales tax. What is the invoice total? The computation: ```python quantity = 6 unit_price = 2 subtotal = quantity * unit_price # 12 total = subtotal * (1 + 7 / 100) # 12.84 print(f"{total:.2f}") ``` Execution prints: 12.84 The invoice total is $12.84.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "12.84", "printed": "12.84", "notation": null}
nlprog_det-setting-0055010
<|start|><|user|> A 4-day trip pays $64 a day for meals and $110 a night for lodging (3 nights). What is the total allowance?<|eot|> <|assistant|> That comes to $586.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 4-day trip pays $64 a day for meals and $110 a night for lodging (3 nights). What is the total allowance?" }, { "role": "assistant", "content": "That comes to $586." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
50
{"gold": "586", "printed": "586", "notation": null}
nlprog_det-setting-0055012
<|start|><|system|> You are a study helper for students.<|eot|> <|user|> Monthly rent is $1,800. A tenant moves in with 21 days left in a 30-day month. What is the prorated rent?<|eot|> <|assistant|> The prorated rent is $1,260.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a study helper for students." }, { "role": "user", "content": "Monthly rent is $1,800. A tenant moves in with 21 days left in a 30-day month. What is the prorated rent?" }, { "role": "assistant", "content": "The prorated rent is $1,260.00." }...
nlprog_det
setting
original
null
deterministic
[]
[]
69
{"gold": "1260.00", "printed": "1260.00", "notation": null}
nlprog_det-setting-0055013
How many whole days and leftover hours are in 393 hours? Script: hours = 393 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") (Execution result: 16 days and 9 hours) 393 hours is 16 days and 9 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "16 days and 9 hours", "printed": "16 days and 9 hours", "notation": null}
nlprog_det-setting-0055014
Sales went from 1,200 to 1,140. What is the percent change? It changed by -5%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "-5", "printed": "-5", "notation": null}
nlprog_det-setting-0055015
Sales went from 1,200 to 900. What is the percent change? Code: ```python old = 1200 new = 900 change = (new - old) / old * 100 # -25.0 print(round(change)) ``` Executing it gives -25, as expected. It changed by -25%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "-25", "printed": "-25", "notation": null}
nlprog_det-setting-0055016
How many meters are in 75.1 kilometers? Script: km = 75.1 meters = km * 1000 # 75100.0 print(round(meters)) What it prints: 75100 75,100 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
68
{"gold": "75100", "printed": "75100", "notation": null}
nlprog_det-setting-0055017
Shipping costs $8 plus $1.50 per pound. What does a 8-pound parcel cost to ship? Code: ```python base = 8 per_pound = 1.5 weight = 8 cost = base + per_pound * weight # 20.0 print(f"{cost:.2f}") ``` This prints 20.00. Shipping costs $20.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "20.00", "printed": "20.00", "notation": null}
nlprog_det-setting-0055018
An invoice lists 32 envelopes at $15 each, plus 10% sales tax. What is the invoice total? quantity = 32 unit_price = 15 subtotal = quantity * unit_price # 480 total = subtotal * (1 + 10 / 100) # 528.0 print(f"{total:.2f}") The run gives: 528.00 The total with tax is $528.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "528.00", "printed": "528.00", "notation": null}
nlprog_det-setting-0055019
<|start|><|user|> Which is cheaper per unit: 6 for $10.35 (A) or 15 for $16.47 (B)?<|eot|> <|assistant|> ```python pack_a = 10.35 / 6 # 1.7249999999999999 pack_b = 16.47 / 15 # 1.0979999999999999 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` # program output: B B has the lower unit price.<|eot|...
chat
[ { "role": "user", "content": "Which is cheaper per unit: 6 for $10.35 (A) or 15 for $16.47 (B)?" }, { "role": "assistant", "content": "```python\npack_a = 10.35 / 6 # 1.7249999999999999\npack_b = 16.47 / 15 # 1.0979999999999999\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'B'\nprint(cheap...
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0055020
<|start|><|user|> A $9,000 loan carries 6% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|> <|assistant|> Each payment is $795.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $9,000 loan carries 6% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?" }, { "role": "assistant", "content": "Each payment is $795.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
51
{"gold": "795.00", "printed": "795.00", "notation": null}
nlprog_det-setting-0055021
<|start|><|user|> At $23.69 an hour, what does 38 hours of work pay?<|eot|> <|assistant|> That earns $900.22.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $23.69 an hour, what does 38 hours of work pay?" }, { "role": "assistant", "content": "That earns $900.22." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "900.22", "printed": "900.22", "notation": null}
nlprog_det-setting-0055022
Fines run at $100 per day up to a maximum of $2,500. How much after 52 days? As a program: ```python per_day = 100 days = 52 cap = 2500 fine = min(per_day * days, cap) # 2500 print(fine) ``` # console output: 2500 $2,500 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0055023
A lawyer's fee is 35% of a $90,000 recovery. How large is the fee? Let's compute it with Python. ```python recovery = 90000 rate = 35 / 100 # 0.35 fee = recovery * rate # 31499.999999999996 print(f"{fee:.2f}") ``` Out: 31500.00 The fee is $31,500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "31500.00", "printed": "31500.00", "notation": null}
nlprog_det-setting-0055025
An attorney bills 2 hours at $250 per hour. What is the bill? Set it up in Python: ```python hours = 2 rate = 250 bill = hours * rate # 500 print(f"{bill:.2f}") ``` The run gives: 500.00 That comes to $500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "500.00", "printed": "500.00", "notation": null}
nlprog_det-setting-0055026
<|start|><|user|> How many meters are in 14.1 kilometers?<|eot|> <|assistant|> That is 14,100 meters.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many meters are in 14.1 kilometers?" }, { "role": "assistant", "content": "That is 14,100 meters." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "14100", "printed": "14100", "notation": null}
nlprog_det-setting-0055027
<|start|><|user|> A 5-day trip pays $64 a day for meals and $140 a night for lodging (4 nights). What is the total allowance?<|eot|> <|assistant|> days = 5 meal_rate = 64 lodging_rate = 140 nights = days - 1 # 4 total = days * meal_rate + nights * lodging_rate # 880 print(total) Python prints ...
chat
[ { "role": "user", "content": "A 5-day trip pays $64 a day for meals and $140 a night for lodging (4 nights). What is the total allowance?" }, { "role": "assistant", "content": " days = 5\n meal_rate = 64\n lodging_rate = 140\n nights = days - 1 # 4\n total = days * meal_rate + ni...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "880", "printed": "880", "notation": null}
nlprog_det-setting-0055028
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> How many units at $30 each (variable cost $20) cover $4,000 of fixed costs?<|eot|> <|assistant|> ```python import math fixed = 4000 price = 30 variable = 20 units = math.ceil(fixed / (price - variable)) # 400 print(units) ``` The script prints: 400 ...
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "How many units at $30 each (variable cost $20) cover $4,000 of fixed costs?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 4000\nprice = 30\nvariable = 20\nunit...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "400", "printed": "400", "notation": null}
nlprog_det-setting-0055029
<|start|><|user|> Which is cheaper per unit: 10 for $13.54 (A) or 30 for $9.60 (B)?<|eot|> <|assistant|> ```python pack_a = 13.54 / 10 # 1.3539999999999999 pack_b = 9.6 / 30 # 0.32 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` The script prints B. B has the lower unit price.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Which is cheaper per unit: 10 for $13.54 (A) or 30 for $9.60 (B)?" }, { "role": "assistant", "content": "```python\npack_a = 13.54 / 10 # 1.3539999999999999\npack_b = 9.6 / 30 # 0.32\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'B'\nprint(cheaper)\n```\nThe s...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0055030
A customer buys 2 rulers at $14 each, 4 calendars at $23 each, 4 calendars at $30 each and pays with $250. How much change is due? Programmatically: ```python items = [(2, 14), (4, 23), (4, 30)] total = sum(q * p for q, p in items) # 240 paid = 250 change = paid - total # 10 print(change) ``` Run result: 10 The cha...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0055031
<|start|><|user|> Walls total 665 sq ft and each can covers 350 sq ft. How many cans should be bought?<|eot|> <|assistant|> ```python import math area = 665 coverage = 350 cans = math.ceil(area / coverage) # 2 print(cans) ``` Running it prints 2. Buy 2 cans.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Walls total 665 sq ft and each can covers 350 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "```python\nimport math\narea = 665\ncoverage = 350\ncans = math.ceil(area / coverage) # 2\nprint(cans)\n```\nRunning it prints 2.\n\nBuy 2 ca...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0055032
<|start|><|system|> You help with homework problems.<|eot|> <|user|> Shipping costs $12 plus $1.50 per pound. What does a 22-pound parcel cost to ship?<|eot|> <|assistant|> ```python base = 12 per_pound = 1.5 weight = 22 cost = base + per_pound * weight # 45.0 print(f"{cost:.2f}") ``` Output — 45.00 Shipping costs $4...
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "Shipping costs $12 plus $1.50 per pound. What does a 22-pound parcel cost to ship?" }, { "role": "assistant", "content": "```python\nbase = 12\nper_pound = 1.5\nweight = 22\ncost = base...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "45.00", "printed": "45.00", "notation": null}
nlprog_det-setting-0055033
What does $10,000 grow to in 4 years at 2% annual compounding? Here's the code. ```python principal = 10000 rate = 2 / 100 # 0.02 years = 4 value = principal * (1 + rate) ** years # 10824.3216 print(f"{value:.2f}") ``` Result — 10824.32 The balance is $10,824.32.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "10824.32", "printed": "10824.32", "notation": null}
nlprog_det-setting-0055034
A party has 14 days to respond to a motion served on August 10, 2018, with 3 days added because service was by mail. When is the response due? A few lines of Python do it: ```python from datetime import date, timedelta served = date(2018, 8, 10) # datetime.date(2018, 8, 10) response_days = 14 mail_days = 3 due = serv...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
178
{"gold": "2018-08-27", "printed": "2018-08-27", "notation": null}
nlprog_det-setting-0055035
<|start|><|user|> At 2% a month (simple), what interest builds on $7,500 over 2 months?<|eot|> <|assistant|> ```python balance = 7500 monthly_rate = 2 / 100 # 0.02 months = 2 interest = balance * monthly_rate * months # 300.0 print(f"{interest:.2f}") ``` Interpreter output — 300.00 $300.00 accrues.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 2% a month (simple), what interest builds on $7,500 over 2 months?" }, { "role": "assistant", "content": "```python\nbalance = 7500\nmonthly_rate = 2 / 100 # 0.02\nmonths = 2\ninterest = balance * monthly_rate * months # 300.0\nprint(f\"{interest:.2f}\")\n```\n...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "300.00", "printed": "300.00", "notation": null}
nlprog_det-setting-0055036
What is 15 degrees Celsius in Fahrenheit? The program: ```python celsius = 15 fahrenheit = celsius * 9 / 5 + 32 # 59.0 print(round(fahrenheit)) ``` Running this gives 59. That is 59 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "59", "printed": "59", "notation": null}
nlprog_det-setting-0055037
2 friends split a $180 bill plus a 18% tip evenly. How much does each pay? As a program: ```python bill = 180 tip_rate = 18 / 100 # 0.18 people = 2 each = bill * (1 + tip_rate) / people # 106.19999999999999 print(f"{each:.2f}") ``` Output: 106.20 The share is $106.20 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "106.20", "printed": "106.20", "notation": null}
nlprog_det-setting-0055038
Pay is $22.40/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 42 hours? We write it as a program: ```python rate = 22.4 hours = 42 regular = 40 * rate # 896.0 overtime = (hours - 40) * rate * 1.5 # 67.19999999999999 pay = regular + overtime # 963.2 print(f"{pay:.2f}") ``` This prints 963.20...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "963.20", "printed": "963.20", "notation": null}
nlprog_det-setting-0055039
Which is cheaper per unit: 12 for $10.26 (A) or 18 for $21.18 (B)? Pack A is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0055040
<|start|><|system|> You may call the tools below. {"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}} {"name": "python", "description": "Runs a short Pyth...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"targe...
nlprog_det
setting
original
null
deterministic
[]
[]
294
{"gold": "73", "printed": "73", "notation": null}
nlprog_det-setting-0055041
A seminar starts at 2:40 PM and lasts 105 minutes. When does it end? In Python: ```python start = 14 * 60 + 40 end = start + 105 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` stdout — 4:25 PM The seminar finishes at 4:25 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "4:25 PM", "printed": "4:25 PM", "notation": null}
nlprog_det-setting-0055042
If a 5-year limitations period starts on July 7, 2022, when does it end? The period expires on July 7, 2027.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "2027-07-07", "printed": "2027-07-07", "notation": null}
nlprog_det-setting-0055045
Hugo earns a 4% commission on $14,185 of sales. What is the commission? Program: ```python sales = 14185 rate = 4 / 100 # 0.04 commission = sales * rate # 567.4 print(f"{commission:.2f}") ``` # execution result: 567.40 Hugo earns $567.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "567.40", "printed": "567.40", "notation": null}
nlprog_det-setting-0055046
Priya buys 4 boxes of 6 tape rolls each and gives away 4 tape rolls. How many tape rolls are left? Python: ```python boxes = 4 per_box = 6 given_away = 4 left = boxes * per_box - given_away print(left) ``` (Printed result: 20) That leaves 20 tape rolls.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0055047
A hall has 9 rows of 14 seats, and 9 seats are empty. How many people are seated? 117 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "117", "printed": "117", "notation": null}
nlprog_det-setting-0055048
After a 40% fee is taken from a $30,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share? Written as code: ```python award = 30000 fee = award * 40 / 100 # 12000.0 remaining = award - fee # 18000.0 per_client = remaining / 4 # 4500.0 print(f"{per_client:.2f}") ``` The program print...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "4500.00", "printed": "4500.00", "notation": null}
nlprog_det-setting-0055049
The paralegal logged 8 hours at a rate of $300. How much is billed? Translated to Python: ```python hours = 8 rate = 300 bill = hours * rate # 2400 print(f"{bill:.2f}") ``` Output of the run: 2400.00 That comes to $2,400.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "2400.00", "printed": "2400.00", "notation": null}
nlprog_det-setting-0055050
<|start|><|user|> A 8% increase is applied to $2,200 monthly rent. What is the new amount?<|eot|> <|assistant|> ```python rent = 2200 increase = 8 / 100 new_rent = rent * (1 + increase) print(f"{new_rent:.2f}") ``` The script prints 2376.00. It rises to $2,376.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 8% increase is applied to $2,200 monthly rent. What is the new amount?" }, { "role": "assistant", "content": "```python\nrent = 2200\nincrease = 8 / 100\nnew_rent = rent * (1 + increase)\nprint(f\"{new_rent:.2f}\")\n```\nThe script prints 2376.00.\n\nIt rises to $...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "2376.00", "printed": "2376.00", "notation": null}
nlprog_det-setting-0055051
At 2% a month (simple), what interest builds on $7,500 over 2 months? The program: ```python balance = 7500 monthly_rate = 2 / 100 # 0.02 months = 2 interest = balance * monthly_rate * months # 300.0 print(f"{interest:.2f}") ``` Python prints: 300.00 $300.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "300.00", "printed": "300.00", "notation": null}
nlprog_det-setting-0055052
<|start|><|user|> A settlement of $960 is split equally among 8 parties. How much does each party receive?<|eot|> <|assistant|> ```python settlement = 960 parties = 8 share = settlement // parties # 120 print(share) ``` The interpreter prints: 120 Each party receives $120.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A settlement of $960 is split equally among 8 parties. How much does each party receive?" }, { "role": "assistant", "content": "```python\nsettlement = 960\nparties = 8\nshare = settlement // parties # 120\nprint(share)\n```\nThe interpreter prints: 120\n\nEach par...
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0055053
<|start|><|user|> A 9 lb package ships at $8 base plus $0.75/lb. What is the charge?<|eot|> <|assistant|> ```python base = 8 per_pound = 0.75 weight = 9 cost = base + per_pound * weight # 14.75 print(f"{cost:.2f}") ``` Printed result: 14.75 Shipping costs $14.75.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 9 lb package ships at $8 base plus $0.75/lb. What is the charge?" }, { "role": "assistant", "content": "```python\nbase = 8\nper_pound = 0.75\nweight = 9\ncost = base + per_pound * weight # 14.75\nprint(f\"{cost:.2f}\")\n```\nPrinted result: 14.75\n\nShipping cos...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "14.75", "printed": "14.75", "notation": null}
nlprog_det-setting-0055054
<|start|><|user|> A 153-page report must be reviewed in 9 days. How many pages a day is that, evenly?<|eot|> <|assistant|> ```python pages = 153 days = 9 per_day = pages // days # 17 print(per_day) ``` When run, it prints 17. 17 pages a day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 153-page report must be reviewed in 9 days. How many pages a day is that, evenly?" }, { "role": "assistant", "content": "```python\npages = 153\ndays = 9\nper_day = pages // days # 17\nprint(per_day)\n```\nWhen run, it prints 17.\n\n17 pages a day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0055055
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}} {"name": "math_engine", "descripti...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": ...
nlprog_det
setting
original
null
deterministic
[]
[]
346
{"gold": "503.23", "printed": "503.23", "notation": null}
nlprog_det-setting-0055056
Revenue is $16,500 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)? A few lines of Python do it: ```python revenue = 16500 costs = 12500 profit = revenue - costs # 4000 margin = profit / revenue * 100 # 24.242424242424242 print(round(margin, 1)) ``` Run output — 24.2 The margi...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "24.2", "printed": "24.2", "notation": null}
nlprog_det-setting-0055057
Convert 5 h 14 min (the length of a hearing) to minutes. We write it as a program: ```python hours = 5 minutes = 14 total_minutes = hours * 60 + minutes # 314 print(total_minutes) ``` The script prints 314, as expected. That is 314 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "314", "printed": "314", "notation": null}
nlprog_det-setting-0055058
Parking is $2 per hour with a daily maximum of $24. What do 9 hours cost? As Python: ```python rate = 2 hours = 9 daily_max = 24 cost = min(rate * hours, daily_max) # 18 print(cost) ``` The script prints: 18 Parking costs $18.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0055059
Divide 113 items among 4 groups as evenly as possible with equal groups. How many per group, and how many remain? Coded up: ```python total = 113 groups = 4 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Executed, it shows: 28 each, 1 left over 28 each, 1 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "28 each, 1 left over", "printed": "28 each, 1 left over", "notation": null}
nlprog_det-setting-0055060
What simple interest does $1,000 earn at 4% a year over 3 years? ```python principal = 1000 rate = 4 / 100 # 0.04 years = 3 interest = principal * rate * years # 120.0 print(f"{interest:.2f}") ``` Out: 120.00 It earns $120.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "120.00", "printed": "120.00", "notation": null}
nlprog_det-setting-0055061
<|start|><|user|> A 165-mile drive at a steady 30 mph takes how many minutes?<|eot|> <|assistant|> distance = 165 speed = 30 minutes = distance / speed * 60 # 330.0 print(round(minutes)) Printed = 330 The trip takes 330 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 165-mile drive at a steady 30 mph takes how many minutes?" }, { "role": "assistant", "content": " distance = 165\n speed = 30\n minutes = distance / speed * 60 # 330.0\n print(round(minutes))\nPrinted = 330\n\nThe trip takes 330 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "330", "printed": "330", "notation": null}
nlprog_det-setting-0055062
A count moves from 1,200 to 900. By what percent did it change (use a minus sign for a drop)? One way, in code: ```python old = 1200 new = 900 change = (new - old) / old * 100 # -25.0 print(round(change)) ``` (Printed result: -25) It changed by -25%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "-25", "printed": "-25", "notation": null}
nlprog_det-setting-0055063
3 clients win $72,000. The lawyer takes 40%, and the rest is split equally. How much does each client get? Script: award = 72000 fee = award * 40 / 100 # 28800.0 remaining = award - fee # 43200.0 per_client = remaining / 3 # 14400.0 print(f"{per_client:.2f}") When run, it prints 14400.00. Each ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "14400.00", "printed": "14400.00", "notation": null}
nlprog_det-setting-0055064
$1,000 is invested at 5% compounded yearly. What is it worth after 4 years? ```python principal = 1000 rate = 5 / 100 # 0.05 years = 4 value = principal * (1 + rate) ** years # 1215.5062500000001 print(f"{value:.2f}") ``` The program prints: 1215.51 It is worth $1,215.51.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "1215.51", "printed": "1215.51", "notation": null}
nlprog_det-setting-0055065
A water bill is $15 plus $4.20 per thousand gallons beyond the first 2 thousand. What is the bill for 19 thousand gallons? Written as code: base = 15 rate = 4.2 used = 19 free = 2 bill = base + rate * max(0, used - free) # 86.4 print(f"{bill:.2f}") Output = 86.40 The bill is $86.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "86.40", "printed": "86.40", "notation": null}
nlprog_det-setting-0055066
Walls total 311 sq ft and each can covers 300 sq ft. How many cans should be bought? Python makes this quick: ```python import math area = 311 coverage = 300 cans = math.ceil(area / coverage) # 2 print(cans) ``` The program outputs: 2 Buy 2 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0055068
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> A storeroom has 1621 chairs. The office uses 6 a day. How many are left after 18 days?<|eot|> <|assistant|> stock = 1621 per_day = 6 days = 18 left = stock - per_day * days # 1513 print(left) The program outputs 1513. 1513 remain.<...
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "role": "user", "content": "A storeroom has 1621 chairs. The office uses 6 a day. How many are left after 18 days?" }, { "role": "assistant", "content": " stock = 1621\n per_day = 6\n days = 18\n left = ...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "1513", "printed": "1513", "notation": null}
nlprog_det-setting-0055069
At 60 miles per hour, how many minutes does a 120-mile trip take? ```python distance = 120 speed = 60 minutes = distance / speed * 60 # 120.0 print(round(minutes)) ``` Run it and it prints: 120 The trip takes 120 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0055070
<|start|><|user|> From a $2,500 retainer, 9 hours at $275/hour have been drawn. What remains?<|eot|> <|assistant|> ```python retainer = 2500 hours = 9 rate = 275 left = retainer - hours * rate # 25 print(left) ``` Output = 25 $25 of the retainer is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From a $2,500 retainer, 9 hours at $275/hour have been drawn. What remains?" }, { "role": "assistant", "content": "```python\nretainer = 2500\nhours = 9\nrate = 275\nleft = retainer - hours * rate # 25\nprint(left)\n```\nOutput = 25\n\n$25 of the retainer is left."...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "25", "printed": "25", "notation": null}