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-0072175
<|start|><|system|> Be concise.<|eot|> <|user|> A 10-day notice period begins on July 11, 2022. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2022, 7, 11) # datetime.date(2022, 7, 11) end = start + timedelta(days=10) # datetime.date(2022, 7, 21) print(end.i...
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "A 10-day notice period begins on July 11, 2022. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2022, 7, 11) # datetime.date(2...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "2022-07-21", "printed": "2022-07-21", "notation": null}
nlprog_det-setting-0072176
A $9,000 loan carries 10% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment? ```python principal = 9000 annual_rate = 10 / 100 # 0.1 months = 36 interest = principal * annual_rate * months / 12 # 2700.0 payment = (principal + interest) / months ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "325.00", "printed": "325.00", "notation": null}
nlprog_det-setting-0072177
How many of 16 votes make 67% (round up)? As a program: ```python import math voters = 16 needed = math.ceil(voters * 67 / 100) # 11 print(needed) ``` The script prints: 11 11 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0072178
Scale 450 g of lentils from 2 servings to 3 servings. The computation: ```python grams = 450 serves = 2 needed_for = 3 scaled = grams * needed_for // serves # 675 print(scaled) ``` (Out: 675) Use 675 g of lentils.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "675", "printed": "675", "notation": null}
nlprog_det-setting-0072179
A hearing is set for August 6, 2030. What day of the week is that? ```python from datetime import date hearing = date(2030, 8, 6) # datetime.date(2030, 8, 6) print(hearing.strftime("%A")) ``` Execution result: Tuesday It is a Tuesday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "Tuesday", "printed": "Tuesday", "notation": null}
nlprog_det-setting-0072180
Tariq lends $8,000 at 6% simple interest per year for 3 years. How much interest is earned? The interest is $1,440.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "1440.00", "printed": "1440.00", "notation": null}
nlprog_det-setting-0072181
3 books come back 23 days late, at $0.10 a day each. What is the fine? Script: ```python per_day = 0.1 days_late = 23 books = 3 fine = per_day * days_late * books # 6.9 print(f"{fine:.2f}") ``` The run gives: 6.90 The fine is $6.90.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "6.90", "printed": "6.90", "notation": null}
nlprog_det-setting-0072182
<|start|><|system|> You help people work with structured data.<|eot|> <|user|> What percentage of $2,000 is $1,200?<|eot|> <|assistant|> That is 60.0% of the budget.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help people work with structured data." }, { "role": "user", "content": "What percentage of $2,000 is $1,200?" }, { "role": "assistant", "content": "That is 60.0% of the budget." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "60.0", "printed": "60.0", "notation": null}
nlprog_det-setting-0072183
<|start|><|user|> How many minutes pass from 9:14 AM to 2:01 PM on the same day?<|eot|> <|assistant|> ```python start = 9 * 60 + 14 # 554 end = 14 * 60 + 1 # 841 print(end - start) ``` This prints 287. It is 287 minutes long.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many minutes pass from 9:14 AM to 2:01 PM on the same day?" }, { "role": "assistant", "content": "```python\nstart = 9 * 60 + 14 # 554\nend = 14 * 60 + 1 # 841\nprint(end - start)\n```\nThis prints 287.\n\nIt is 287 minutes long." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "287", "printed": "287", "notation": null}
nlprog_det-setting-0072184
What is the total rent on a 36-month lease at $1,200 a month? Translated to Python: ```python monthly_rent = 1200 months = 36 total = monthly_rent * months # 43200 print(total) ``` Printed: 43200 In total, $43,200 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "43200", "printed": "43200", "notation": null}
nlprog_det-setting-0072185
<|start|><|system|> You are a math tutor.<|eot|> <|user|> Monthly: $15. Annual: $150. What is saved per year by paying annually?<|eot|> <|assistant|> monthly = 15 yearly = 150 savings = monthly * 12 - yearly # 30 print(savings) The interpreter prints 30. The annual plan saves $30.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a math tutor." }, { "role": "user", "content": "Monthly: $15. Annual: $150. What is saved per year by paying annually?" }, { "role": "assistant", "content": " monthly = 15\n yearly = 150\n savings = monthly * 12 - yearly # 30\n pri...
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0072186
What is a 15% tip on a $158.83 bill? A Python solution: ```python bill = 158.83 tip_rate = 15 / 100 # 0.15 tip = bill * tip_rate # 23.8245 print(f"{tip:.2f}") ``` Printed: 23.82 The tip is $23.82.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "23.82", "printed": "23.82", "notation": null}
nlprog_det-setting-0072187
<|start|><|user|> Count the days between May 2, 2018 and November 19, 2018.<|eot|> <|assistant|> ```python from datetime import date first = date(2018, 5, 2) # datetime.date(2018, 5, 2) second = date(2018, 11, 19) # datetime.date(2018, 11, 19) print((second - first).days) ``` Program output — 201 There are 201 days ...
chat
[ { "role": "user", "content": "Count the days between May 2, 2018 and November 19, 2018." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2018, 5, 2) # datetime.date(2018, 5, 2)\nsecond = date(2018, 11, 19) # datetime.date(2018, 11, 19)\nprint((second - ...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "201", "printed": "201", "notation": null}
nlprog_det-setting-0072188
<|start|><|user|> How long, in days, is it from April 6, 2025 until July 16, 2025?<|eot|> <|assistant|> ```python from datetime import date first = date(2025, 4, 6) second = date(2025, 7, 16) print((second - first).days) ``` (Printed result: 101) There are 101 days between the two dates.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How long, in days, is it from April 6, 2025 until July 16, 2025?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2025, 4, 6)\nsecond = date(2025, 7, 16)\nprint((second - first).days)\n```\n(Printed result: 101)\n\nThere are ...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "101", "printed": "101", "notation": null}
nlprog_det-setting-0072189
<|start|><|system|> You may call the tools below. [{"name": "compute", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> 66 copies of a 23-page pac...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"compute\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"...
nlprog_det
setting
original
null
deterministic
[]
[]
232
{"gold": "227.70", "printed": "227.70", "notation": null}
nlprog_det-setting-0072190
$10,000 is invested at 4% compounded yearly. What is it worth after 4 years? Program: ```python principal = 10000 rate = 4 / 100 # 0.04 years = 4 value = principal * (1 + rate) ** years # 11698.585600000002 print(f"{value:.2f}") ``` The run gives 11698.59. The balance is $11,698.59.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "11698.59", "printed": "11698.59", "notation": null}
nlprog_det-setting-0072191
Goran's scores were 82, 65, 100, 55, 64, 54 and 63. What is the average score? Let's compute it with Python. scores = [82, 65, 100, 55, 64, 54, 63] average = sum(scores) // len(scores) # 69 print(average) Executing it gives: 69 The mean is 69.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "69", "printed": "69", "notation": null}
nlprog_det-setting-0072192
Express 387 hours in days and hours. Let's compute it with Python. hours = 387 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") The program prints 16 days and 3 hours. 387 hours is 16 days and 3 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "16 days and 3 hours", "printed": "16 days and 3 hours", "notation": null}
nlprog_det-setting-0072193
A car travels 578 miles in 2 hours. What is its average speed in miles per hour? A short script: ```python distance = 578 hours = 2 speed = distance / hours # 289.0 print(round(speed)) ``` Console output: 289 It averages 289 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "289", "printed": "289", "notation": null}
nlprog_det-setting-0072194
<|start|><|user|> How many weekdays (Monday to Friday) fall after January 24, 2020 up to and including February 8, 2020?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2020, 1, 24) end = date(2020, 2, 8) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(day...
chat
[ { "role": "user", "content": "How many weekdays (Monday to Friday) fall after January 24, 2020 up to and including February 8, 2020?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2020, 1, 24)\nend = date(2020, 2, 8)\ncount = 0\nfor k in rang...
nlprog_det
setting
original
null
deterministic
[]
[]
153
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0072195
<|start|><|user|> A 19 × 8 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?<|eot|> <|assistant|> 38 tiles are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 19 × 8 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?" }, { "role": "assistant", "content": "38 tiles are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "38", "printed": "38", "notation": null}
nlprog_det-setting-0072196
<|start|><|system|> Tools (call with JSON): [{"name": "math_engine", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> A water bil...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"math_engine\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"r...
nlprog_det
setting
original
null
deterministic
[]
[]
251
{"gold": "78.00", "printed": "78.00", "notation": null}
nlprog_det-setting-0072197
3 clients win $60,000. The lawyer takes 25%, and the rest is split equally. How much does each client get? A short script: award = 60000 fee = award * 25 / 100 # 15000.0 remaining = award - fee # 45000.0 per_client = remaining / 3 # 15000.0 print(f"{per_client:.2f}") Executed, it shows 15000.00....
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "15000.00", "printed": "15000.00", "notation": null}
nlprog_det-setting-0072198
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "calculator", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"calculator\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Pytho...
nlprog_det
setting
original
null
deterministic
[]
[]
219
{"gold": "398.12", "printed": "398.12", "notation": null}
nlprog_det-setting-0072199
A 240-page report must be reviewed in 20 days. How many pages a day is that, evenly? A short script: ```python pages = 240 days = 20 per_day = pages // days # 12 print(per_day) ``` It prints 12, as expected. That is 12 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0072200
$2,000 is invested at 3% compounded yearly. What is it worth after 4 years? As a program: ```python principal = 2000 rate = 3 / 100 # 0.03 years = 4 value = principal * (1 + rate) ** years # 2251.01762 print(f"{value:.2f}") ``` This prints 2251.02. The balance is $2,251.02.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "2251.02", "printed": "2251.02", "notation": null}
nlprog_det-setting-0072201
<|start|><|user|> A car gets 30 miles per gallon. Gas is $4.59 a gallon. What does fuel cost for a 450-mile trip?<|eot|> <|assistant|> Fuel costs $68.85.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A car gets 30 miles per gallon. Gas is $4.59 a gallon. What does fuel cost for a 450-mile trip?" }, { "role": "assistant", "content": "Fuel costs $68.85." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
49
{"gold": "68.85", "printed": "68.85", "notation": null}
nlprog_det-setting-0072202
<|start|><|user|> 59 volunteers are split into 3 equal teams. How many are on each team, and how many are left over?<|eot|> <|assistant|> ```python total = 59 groups = 3 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` That prints: 19 each, 2 left over The answer: 19 e...
chat
[ { "role": "user", "content": "59 volunteers are split into 3 equal teams. How many are on each team, and how many are left over?" }, { "role": "assistant", "content": "```python\ntotal = 59\ngroups = 3\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remainder} left ove...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "19 each, 2 left over", "printed": "19 each, 2 left over", "notation": null}
nlprog_det-setting-0072203
A storeroom has 246 batteries. The office uses 6 a day. How many are left after 8 days? We write it as a program: ```python stock = 246 per_day = 6 days = 8 left = stock - per_day * days # 198 print(left) ``` This prints 198, as expected. 198 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "198", "printed": "198", "notation": null}
nlprog_det-setting-0072204
A 36-month warranty starts on March 9, 2019. On what date does it end? Python does the arithmetic: ```python from datetime import date start = date(2019, 3, 9) months = 36 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Run...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "2022-03-09", "printed": "2022-03-09", "notation": null}
nlprog_det-setting-0072205
How many whole days and leftover hours are in 332 hours? Computing it: ```python hours = 332 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` It outputs: 13 days and 20 hours 332 hours is 13 days and 20 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "13 days and 20 hours", "printed": "13 days and 20 hours", "notation": null}
nlprog_det-setting-0072206
Revenue is $14,500 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)? Let the code do the arithmetic: ```python revenue = 14500 costs = 12500 profit = revenue - costs # 2000 margin = profit / revenue * 100 # 13.793103448275861 print(round(margin, 1)) ``` Out — 13.8 The margin is...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "13.8", "printed": "13.8", "notation": null}
nlprog_det-setting-0072207
<|start|><|system|> Avoid unnecessary detail.<|eot|> <|user|> A court charges $5 per request plus $0.50 per page after the first 0 pages. What does a 34-page copy cost?<|eot|> <|assistant|> ```python pages = 34 base = 5 per_page = 0.5 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 22.0 print(f"{c...
chat
[ { "role": "system", "content": "Avoid unnecessary detail." }, { "role": "user", "content": "A court charges $5 per request plus $0.50 per page after the first 0 pages. What does a 34-page copy cost?" }, { "role": "assistant", "content": "```python\npages = 34\nbase = 5\nper_page = 0....
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "22.00", "printed": "22.00", "notation": null}
nlprog_det-setting-0072208
How many days are there from October 4, 2021 to July 3, 2022? Set it up in Python: ```python from datetime import date first = date(2021, 10, 4) # datetime.date(2021, 10, 4) second = date(2022, 7, 3) # datetime.date(2022, 7, 3) print((second - first).days) ``` Printed result: 272 There are 272 days between the two ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "272", "printed": "272", "notation": null}
nlprog_det-setting-0072209
Each storage box holds 25 files. How many boxes are needed for 618 files? Here is the program. ```python import math files = 618 per_box = 25 boxes = math.ceil(files / per_box) # 25 print(boxes) ``` Executing it gives 25. 25 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0072210
How many days are there from June 22, 2020 to February 20, 2021? Program: from datetime import date first = date(2020, 6, 22) # datetime.date(2020, 6, 22) second = date(2021, 2, 20) # datetime.date(2021, 2, 20) print((second - first).days) When run, it prints: 243 It is 243 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "243", "printed": "243", "notation": null}
nlprog_det-setting-0072211
Shipping costs $8 plus $1.20 per pound. What does a 22-pound parcel cost to ship? A Python solution: ```python base = 8 per_pound = 1.2 weight = 22 cost = base + per_pound * weight # 34.4 print(f"{cost:.2f}") ``` Out: 34.40 The charge is $34.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "34.40", "printed": "34.40", "notation": null}
nlprog_det-setting-0072212
<|start|><|user|> Joelle buys 6 boxes of 12 flash drives each and gives away 2 flash drives. How many flash drives are left?<|eot|> <|assistant|> That leaves 70 flash drives.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Joelle buys 6 boxes of 12 flash drives each and gives away 2 flash drives. How many flash drives are left?" }, { "role": "assistant", "content": "That leaves 70 flash drives." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
48
{"gold": "70", "printed": "70", "notation": null}
nlprog_det-setting-0072213
At an exchange rate of 1.31 USD per CHF, how many USD is 8,211 CHF? Let the code do the arithmetic: ```python amount = 8211 rate = 1.31 converted = amount * rate # 10756.41 print(f"{converted:.2f}") ``` When run, it prints 10756.41, as expected. It converts to 10,756.41 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "10756.41", "printed": "10756.41", "notation": null}
nlprog_det-setting-0072214
<|start|><|user|> A customer buys 4 sticky pads at $4 each, 5 badges at $11 each and pays with $100. How much change is due?<|eot|> <|assistant|> ```python items = [(4, 4), (5, 11)] total = sum(q * p for q, p in items) # 71 paid = 100 change = paid - total # 29 print(change) ``` Console output: 29 $29 comes back.<|e...
chat
[ { "role": "user", "content": "A customer buys 4 sticky pads at $4 each, 5 badges at $11 each and pays with $100. How much change is due?" }, { "role": "assistant", "content": "```python\nitems = [(4, 4), (5, 11)]\ntotal = sum(q * p for q, p in items) # 71\npaid = 100\nchange = paid - total # 2...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0072215
A 10-day notice period begins on April 25, 2018. On what date does it end? ```python from datetime import date, timedelta start = date(2018, 4, 25) # datetime.date(2018, 4, 25) end = start + timedelta(days=10) # datetime.date(2018, 5, 5) print(end.isoformat()) ``` # printed: 2018-05-05 That date is May 5, 2018.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "2018-05-05", "printed": "2018-05-05", "notation": null}
nlprog_det-setting-0072216
Fixed costs are $4,000. Each unit sells for $20 and costs $10 to make. How many units must be sold to break even? A Python solution: ```python import math fixed = 4000 price = 20 variable = 10 units = math.ceil(fixed / (price - variable)) # 400 print(units) ``` Interpreter output — 400 400 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "400", "printed": "400", "notation": null}
nlprog_det-setting-0072217
A party has 30 days to respond to a motion served on April 14, 2024, with 3 days added because service was by mail. When is the response due? Computation in Python: from datetime import date, timedelta served = date(2024, 4, 14) # datetime.date(2024, 4, 14) response_days = 30 mail_days = 3 due = s...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
168
{"gold": "2024-05-17", "printed": "2024-05-17", "notation": null}
nlprog_det-setting-0072218
<|start|><|user|> Attendance was 16 out of 25. Express it as a percent.<|eot|> <|assistant|> Attendance was 64.0%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Attendance was 16 out of 25. Express it as a percent." }, { "role": "assistant", "content": "Attendance was 64.0%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "64.0", "printed": "64.0", "notation": null}
nlprog_det-setting-0072219
<|start|><|system|> You have access to these functions: {"name": "math_engine", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> What is the total rent...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"math_engine\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required...
nlprog_det
setting
original
null
deterministic
[]
[]
208
{"gold": "75600", "printed": "75600", "notation": null}
nlprog_det-setting-0072220
<|start|><|user|> 4 claimants share a $36,000 settlement equally. What is each share?<|eot|> <|assistant|> ```python settlement = 36000 parties = 4 share = settlement // parties # 9000 print(share) ``` The program outputs 9000. Each party receives $9,000.<|eot|> <|end|>
chat
[ { "role": "user", "content": "4 claimants share a $36,000 settlement equally. What is each share?" }, { "role": "assistant", "content": "```python\nsettlement = 36000\nparties = 4\nshare = settlement // parties # 9000\nprint(share)\n```\nThe program outputs 9000.\n\nEach party receives $9,000."...
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "9000", "printed": "9000", "notation": null}
nlprog_det-setting-0072221
An office budget of $12,000 has expenses of $2,503, $3,819. How much of the budget is left? Here is the program. budget = 12000 expenses = [2503, 3819] left = budget - sum(expenses) # 5678 print(left) Output of the run — 5678 The remaining budget is $5,678.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "5678", "printed": "5678", "notation": null}
nlprog_det-setting-0072222
<|start|><|system|> Tools (call with JSON): [{"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": "search_cases", "description": "Se...
chat
[ { "role": "system", "content": "Tools (call with JSON):\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\": [\"title\", ...
nlprog_det
setting
original
null
deterministic
[]
[]
375
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0072223
At $0.62 per mile, what is the reimbursement for 493 miles? Let the code do the arithmetic: ```python miles = 493 rate = 0.62 reimbursement = miles * rate # 305.66 print(f"{reimbursement:.2f}") ``` Output of the run: 305.66 Priya is owed $305.66.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "305.66", "printed": "305.66", "notation": null}
nlprog_det-setting-0072224
Starting with 1724 hard drives and using 5 per day, how many remain after 19 days? A few lines of Python do it: ```python stock = 1724 per_day = 5 days = 19 left = stock - per_day * days # 1629 print(left) ``` Execution result: 1629 1629 hard drives are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "1629", "printed": "1629", "notation": null}
nlprog_det-setting-0072225
An invoice lists 38 markers at $4 each, plus 10% sales tax. What is the invoice total? Written as code: ```python quantity = 38 unit_price = 4 subtotal = quantity * unit_price # 152 total = subtotal * (1 + 10 / 100) # 167.20000000000002 print(f"{total:.2f}") ``` Console: 167.20 The total with tax is $167.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "167.20", "printed": "167.20", "notation": null}
nlprog_det-setting-0072226
<|start|><|user|> How many of 71 votes make 67% (round up)?<|eot|> <|assistant|> 48 votes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 71 votes make 67% (round up)?" }, { "role": "assistant", "content": "48 votes are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0072227
<|start|><|system|> You help paralegals with routine tasks.<|eot|> <|user|> Papers were served by mail on April 12, 2026. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2026, 4, 12) # dateti...
chat
[ { "role": "system", "content": "You help paralegals with routine tasks." }, { "role": "user", "content": "Papers were served by mail on April 12, 2026. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?" }, { "role": "assistant", "content": ...
nlprog_det
setting
original
null
deterministic
[]
[]
197
{"gold": "2026-04-29", "printed": "2026-04-29", "notation": null}
nlprog_det-setting-0072228
7 swims at 350 calories each burn how many calories in total? Python code: ```python per_session = 350 sessions = 7 total = per_session * sessions # 2450 print(total) ``` (Output: 2450) That burns 2450 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "2450", "printed": "2450", "notation": null}
nlprog_det-setting-0072229
<|start|><|user|> Count 30 days forward from August 13, 2022. What date is that?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2022, 8, 13) # datetime.date(2022, 8, 13) end = start + timedelta(days=30) # datetime.date(2022, 9, 12) print(end.isoformat()) ``` Out: 2022-09-12 It ends ...
chat
[ { "role": "user", "content": "Count 30 days forward from August 13, 2022. What date is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2022, 8, 13) # datetime.date(2022, 8, 13)\nend = start + timedelta(days=30) # datetime.date(2022, 9,...
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "2022-09-12", "printed": "2022-09-12", "notation": null}
nlprog_det-setting-0072231
<|start|><|user|> A storeroom has 649 badges. The office uses 31 a day. How many are left after 4 days?<|eot|> <|assistant|> ```python stock = 649 per_day = 31 days = 4 left = stock - per_day * days # 525 print(left) ``` It prints 525, as expected. 525 remain.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A storeroom has 649 badges. The office uses 31 a day. How many are left after 4 days?" }, { "role": "assistant", "content": "```python\nstock = 649\nper_day = 31\ndays = 4\nleft = stock - per_day * days # 525\nprint(left)\n```\nIt prints 525, as expected.\n\n525 re...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "525", "printed": "525", "notation": null}
nlprog_det-setting-0072232
What is the total rent on a 6-month lease at $2,100 a month? As Python: ```python monthly_rent = 2100 months = 6 total = monthly_rent * months # 12600 print(total) ``` Executed, it shows 12600. In total, $12,600 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "12600", "printed": "12600", "notation": null}
nlprog_det-setting-0072233
Equal monthly payments repay $6,000 plus 5% simple yearly interest over 24 months. How large is a payment? In code: ```python principal = 6000 annual_rate = 5 / 100 # 0.05 months = 24 interest = principal * annual_rate * months / 12 # 600.0 payment = (principal + interest) / months # 275.0 print(f"{payment:.2f}") `...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "275.00", "printed": "275.00", "notation": null}
nlprog_det-setting-0072234
<|start|><|user|> How many weekdays (Monday to Friday) fall after January 11, 2027 up to and including February 13, 2027?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2027, 1, 11) end = date(2027, 2, 13) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(d...
chat
[ { "role": "user", "content": "How many weekdays (Monday to Friday) fall after January 11, 2027 up to and including February 13, 2027?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2027, 1, 11)\nend = date(2027, 2, 13)\ncount = 0\nfor k in ra...
nlprog_det
setting
original
null
deterministic
[]
[]
159
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0072235
Sales went from 400 to 300. What is the percent change? Python code: ```python old = 400 new = 300 change = (new - old) / old * 100 # -25.0 print(round(change)) ``` Console output — -25 It changed by -25%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "-25", "printed": "-25", "notation": null}
nlprog_det-setting-0072236
<|start|><|user|> The rules require 1/3 of 26 members (round up) to be present. How many is that?<|eot|> <|assistant|> ```python import math members = 26 quorum = math.ceil(members * 1 / 3) # 9 print(quorum) ``` It outputs: 9 9 members are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The rules require 1/3 of 26 members (round up) to be present. How many is that?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 26\nquorum = math.ceil(members * 1 / 3) # 9\nprint(quorum)\n```\nIt outputs: 9\n\n9 members are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0072237
<|start|><|user|> A hearing starts at 11:15 AM and lasts 50 minutes. When does it end?<|eot|> <|assistant|> The hearing finishes at 12:05 PM.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hearing starts at 11:15 AM and lasts 50 minutes. When does it end?" }, { "role": "assistant", "content": "The hearing finishes at 12:05 PM." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "12:05 PM", "printed": "12:05 PM", "notation": null}
nlprog_det-setting-0072238
A appointment starts at 9:40 AM and lasts 105 minutes. When does it end? ```python start = 9 * 60 + 40 end = start + 105 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Execution prints 11:25 AM. It ends at 11:25 AM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "11:25 AM", "printed": "11:25 AM", "notation": null}
nlprog_det-setting-0072239
An office budget of $5,000 has expenses of $1,115, $2,705. How much of the budget is left? The computation: ```python budget = 5000 expenses = [1115, 2705] left = budget - sum(expenses) # 1180 print(left) ``` Output: 1180 $1,180 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "1180", "printed": "1180", "notation": null}
nlprog_det-setting-0072241
Pack A has 8 items for $12.44. Pack B has 15 items for $10.76. Which has the lower price per item? Python does the arithmetic: ```python pack_a = 12.44 / 8 # 1.555 pack_b = 10.76 / 15 # 0.7173333333333333 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` Execution result — B Pack B is cheaper per ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0072242
<|start|><|system|> You can call tools. Available tools: {"name": "calculator", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> Divide 286 items a...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"calculator\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir...
nlprog_det
setting
original
null
deterministic
[]
[]
236
{"gold": "47 each, 4 left over", "printed": "47 each, 4 left over", "notation": null}
nlprog_det-setting-0072243
<|start|><|system|> You are a logic tutor.<|eot|> <|user|> Goods bought on July 18, 2028 carry a 6-month warranty. When does it expire?<|eot|> <|assistant|> The warranty ends on January 18, 2029.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a logic tutor." }, { "role": "user", "content": "Goods bought on July 18, 2028 carry a 6-month warranty. When does it expire?" }, { "role": "assistant", "content": "The warranty ends on January 18, 2029." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
55
{"gold": "2029-01-18", "printed": "2029-01-18", "notation": null}
nlprog_det-setting-0072244
An office budget of $25,000 has expenses of $1,554, $3,836, $1,586. How much of the budget is left? Here is the program. ```python budget = 25000 expenses = [1554, 3836, 1586] left = budget - sum(expenses) # 18024 print(left) ``` Executing it gives 18024, as expected. The remaining budget is $18,024.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "18024", "printed": "18024", "notation": null}
nlprog_det-setting-0072245
How many minutes pass from 7:50 AM to 8:37 AM on the same day? The Python version: start = 7 * 60 + 50 # 470 end = 8 * 60 + 37 # 517 print(end - start) What it prints: 47 47 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "47", "printed": "47", "notation": null}
nlprog_det-setting-0072246
A hearing is set for June 22, 1991. What day of the week is that? One way, in code: from datetime import date hearing = date(1991, 6, 22) # datetime.date(1991, 6, 22) print(hearing.strftime("%A")) Result: Saturday June 22, 1991 is a Saturday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "Saturday", "printed": "Saturday", "notation": null}
nlprog_det-setting-0072247
<|start|><|system|> Tools you may use: [{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "python_exec", "description": "Python sandbox for calculations. Returns prin...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"name\": \"python_exec\", \"desc...
nlprog_det
setting
original
null
deterministic
[]
[]
292
{"gold": "59", "printed": "59", "notation": null}
nlprog_det-setting-0072248
<|start|><|user|> A 4% increase is applied to $1,250 monthly rent. What is the new amount?<|eot|> <|assistant|> ```python rent = 1250 increase = 4 / 100 # 0.04 new_rent = rent * (1 + increase) # 1300.0 print(f"{new_rent:.2f}") ``` Run output: 1300.00 It rises to $1,300.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 4% increase is applied to $1,250 monthly rent. What is the new amount?" }, { "role": "assistant", "content": "```python\nrent = 1250\nincrease = 4 / 100 # 0.04\nnew_rent = rent * (1 + increase) # 1300.0\nprint(f\"{new_rent:.2f}\")\n```\nRun output: 1300.00\n\nIt...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "1300.00", "printed": "1300.00", "notation": null}
nlprog_det-setting-0072249
<|start|><|user|> Rent of $1,500 goes up 6%. What is the new rent?<|eot|> <|assistant|> ```python rent = 1500 increase = 6 / 100 # 0.06 new_rent = rent * (1 + increase) # 1590.0 print(f"{new_rent:.2f}") ``` (Output: 1590.00) The new rent is $1,590.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rent of $1,500 goes up 6%. What is the new rent?" }, { "role": "assistant", "content": "```python\nrent = 1500\nincrease = 6 / 100 # 0.06\nnew_rent = rent * (1 + increase) # 1590.0\nprint(f\"{new_rent:.2f}\")\n```\n(Output: 1590.00)\n\nThe new rent is $1,590.00." ...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "1590.00", "printed": "1590.00", "notation": null}
nlprog_det-setting-0072250
Walls total 974 sq ft and each can covers 300 sq ft. How many cans should be bought? ```python import math area = 974 coverage = 300 cans = math.ceil(area / coverage) # 4 print(cans) ``` Running this gives 4. Buy 4 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0072251
An attorney bills 12 hours at $225 per hour. What is the bill? ```python hours = 12 rate = 225 bill = hours * rate # 2700 print(f"{bill:.2f}") ``` This prints: 2700.00 That comes to $2,700.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "2700.00", "printed": "2700.00", "notation": null}
nlprog_det-setting-0072252
<|start|><|system|> You may call the tools below. {"name": "math_engine", "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"]}}<|eot|> <|user|>...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"math_engine\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source ...
nlprog_det
setting
original
null
deterministic
[]
[]
228
{"gold": "739.02", "printed": "739.02", "notation": null}
nlprog_det-setting-0072253
At a 6% tax rate, what is the tax on $860.11? A Python solution: ```python price = 860.11 tax_rate = 6 / 100 # 0.06 tax = price * tax_rate # 51.6066 print(f"{tax:.2f}") ``` Executing it gives: 51.61 The tax is $51.61.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "51.61", "printed": "51.61", "notation": null}
nlprog_det-setting-0072254
<|start|><|system|> You are a data assistant.<|eot|> <|user|> 25 envelopes cost $2 apiece. With 8% tax added, what is the total?<|eot|> <|assistant|> ```python quantity = 25 unit_price = 2 subtotal = quantity * unit_price # 50 total = subtotal * (1 + 8 / 100) # 54.0 print(f"{total:.2f}") ``` The script prints 54.00. ...
chat
[ { "role": "system", "content": "You are a data assistant." }, { "role": "user", "content": "25 envelopes cost $2 apiece. With 8% tax added, what is the total?" }, { "role": "assistant", "content": "```python\nquantity = 25\nunit_price = 2\nsubtotal = quantity * unit_price # 50\ntota...
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "54.00", "printed": "54.00", "notation": null}
nlprog_det-setting-0072255
Split $2,436 between Wen and Chen in the ratio 3 to 4. What is Wen's share? Written as code: ```python total = 2436 parts_a = 3 parts_b = 4 share_a = total * parts_a // (parts_a + parts_b) # 1044 print(share_a) ``` It prints: 1044 Wen's share is $1,044.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "1044", "printed": "1044", "notation": null}
nlprog_det-setting-0072256
Equal monthly payments repay $3,600 plus 8% simple yearly interest over 24 months. How large is a payment? Python code: ```python principal = 3600 annual_rate = 8 / 100 # 0.08 months = 24 interest = principal * annual_rate * months / 12 # 576.0 payment = (principal + interest) / months # 174.0 print(f"{payment:.2f}...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "174.00", "printed": "174.00", "notation": null}
nlprog_det-setting-0072257
<|start|><|user|> The firm was founded in 2008. How many years had passed by 2012?<|eot|> <|assistant|> ```python start_year = 2008 end_year = 2012 print(end_year - start_year) ``` # output: 4 That is 4 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The firm was founded in 2008. How many years had passed by 2012?" }, { "role": "assistant", "content": "```python\nstart_year = 2008\nend_year = 2012\nprint(end_year - start_year)\n```\n# output: 4\n\nThat is 4 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
71
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0072258
A 2% increase is applied to $900 monthly rent. What is the new amount? A few lines of Python do it: ```python rent = 900 increase = 2 / 100 # 0.02 new_rent = rent * (1 + increase) # 918.0 print(f"{new_rent:.2f}") ``` Console output: 918.00 The new rent is $918.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "918.00", "printed": "918.00", "notation": null}
nlprog_det-setting-0072259
Convert 66.6 km to meters. Set it up in Python: ```python km = 66.6 meters = km * 1000 print(round(meters)) ``` Running this gives: 66600 That is 66,600 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "66600", "printed": "66600", "notation": null}
nlprog_det-setting-0072260
5 friends split a $150 bill plus a 15% tip evenly. How much does each pay? The computation: ```python bill = 150 tip_rate = 15 / 100 # 0.15 people = 5 each = bill * (1 + tip_rate) / people # 34.5 print(f"{each:.2f}") ``` The program prints: 34.50 Each person pays $34.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "34.50", "printed": "34.50", "notation": null}
nlprog_det-setting-0072261
<|start|><|system|> You are a precise assistant.<|eot|> <|user|> Jae's scores were 83, 72, 78, 84, 91 and 78. What is the average score?<|eot|> <|assistant|> ```python scores = [83, 72, 78, 84, 91, 78] average = sum(scores) // len(scores) # 81 print(average) ``` # result: 81 The mean is 81.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a precise assistant." }, { "role": "user", "content": "Jae's scores were 83, 72, 78, 84, 91 and 78. What is the average score?" }, { "role": "assistant", "content": "```python\nscores = [83, 72, 78, 84, 91, 78]\naverage = sum(scores) // len(sco...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "81", "printed": "81", "notation": null}
nlprog_det-setting-0072262
<|start|><|system|> You have access to these functions: [{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"t...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"search_cases\", \"descri...
nlprog_det
setting
original
null
deterministic
[]
[]
345
{"gold": "528", "printed": "528", "notation": null}
nlprog_det-setting-0072263
$10,000 is invested at 3% compounded yearly. What is it worth after 2 years? A short script: ```python principal = 10000 rate = 3 / 100 # 0.03 years = 2 value = principal * (1 + rate) ** years # 10609.0 print(f"{value:.2f}") ``` Output: 10609.00 The balance is $10,609.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "10609.00", "printed": "10609.00", "notation": null}
nlprog_det-setting-0072264
After an initial $2,000, the remainder of a $60,000 grant is paid in 4 equal parts. What is each part? Computation in Python: ```python grant = 60000 up_front = 2000 installments = 4 each = (grant - up_front) / installments # 14500.0 print(f"{each:.2f}") ``` Running it prints 14500.00, as expected. $14,500.00 per in...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "14500.00", "printed": "14500.00", "notation": null}
nlprog_det-setting-0072265
What simple interest does $5,000 earn at 8% a year over 6 years? As Python: principal = 5000 rate = 8 / 100 # 0.08 years = 6 interest = principal * rate * years # 2400.0 print(f"{interest:.2f}") Run it and it prints 2400.00. It earns $2,400.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "2400.00", "printed": "2400.00", "notation": null}
nlprog_det-setting-0072266
How much sales tax is charged on a $287.98 purchase at 7%? The tax is $20.16.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "20.16", "printed": "20.16", "notation": null}
nlprog_det-setting-0072267
Marek earns a 8% commission on $78,050 of sales. What is the commission? In code: ```python sales = 78050 rate = 8 / 100 # 0.08 commission = sales * rate # 6244.0 print(f"{commission:.2f}") ``` # result: 6244.00 Marek earns $6,244.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "6244.00", "printed": "6244.00", "notation": null}
nlprog_det-setting-0072268
A trial runs from November 27, 2022 to December 6, 2022, counting both days. How many calendar days is that? Computing it: ```python from datetime import date first = date(2022, 11, 27) # datetime.date(2022, 11, 27) last = date(2022, 12, 6) # datetime.date(2022, 12, 6) days = (last - first).days + 1 # 10 print(days...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0072269
Monthly rent is $1,200. A tenant moves in with 9 days left in a 31-day month. What is the prorated rent? In Python: ```python rent = 1200 days_in_month = 31 days_occupied = 9 prorated = rent * days_occupied / days_in_month # 348.38709677419354 print(f"{prorated:.2f}") ``` It prints: 348.39 The prorated rent is $348....
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "348.39", "printed": "348.39", "notation": null}
nlprog_det-setting-0072270
<|start|><|user|> A 24-month warranty starts on July 5, 2025. On what date does it end?<|eot|> <|assistant|> It expires on July 5, 2027.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 24-month warranty starts on July 5, 2025. On what date does it end?" }, { "role": "assistant", "content": "It expires on July 5, 2027." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "2027-07-05", "printed": "2027-07-05", "notation": null}
nlprog_det-setting-0072271
How many meters are in 1.1 kilometers? Let the code do the arithmetic: ```python km = 1.1 meters = km * 1000 print(round(meters)) ``` Console output — 1100 That is 1,100 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "1100", "printed": "1100", "notation": null}
nlprog_det-setting-0072272
<|start|><|user|> Count the days between April 16, 2024 and September 13, 2024.<|eot|> <|assistant|> ```python from datetime import date first = date(2024, 4, 16) second = date(2024, 9, 13) print((second - first).days) ``` # out: 150 It is 150 days.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Count the days between April 16, 2024 and September 13, 2024." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2024, 4, 16)\nsecond = date(2024, 9, 13)\nprint((second - first).days)\n```\n# out: 150\n\nIt is 150 days." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0072273
Shipping costs $5 plus $2.00 per pound. What does a 29-pound parcel cost to ship? In Python: ```python base = 5 per_pound = 2.0 weight = 29 cost = base + per_pound * weight # 63.0 print(f"{cost:.2f}") ``` (Output: 63.00) Shipping costs $63.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "63.00", "printed": "63.00", "notation": null}
nlprog_det-setting-0072274
6 runs at 250 calories each burn how many calories in total? Code: ```python per_session = 250 sessions = 6 total = per_session * sessions # 1500 print(total) ``` (Printed: 1500) That burns 1500 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0072275
An attorney bills 4 hours at $225 per hour. What is the bill? A Python solution: hours = 4 rate = 225 bill = hours * rate # 900 print(f"{bill:.2f}") When run, it prints: 900.00 The bill is $900.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "900.00", "printed": "900.00", "notation": null}
nlprog_det-setting-0072276
<|start|><|user|> How many units at $15 each (variable cost $9) cover $4,000 of fixed costs?<|eot|> <|assistant|> Break-even is 667 units.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many units at $15 each (variable cost $9) cover $4,000 of fixed costs?" }, { "role": "assistant", "content": "Break-even is 667 units." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "667", "printed": "667", "notation": null}