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-0056464
After an initial $6,000, the remainder of a $60,000 grant is paid in 12 equal parts. What is each part? $4,500.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "4500.00", "printed": "4500.00", "notation": null}
nlprog_det-setting-0056465
Sales went from 800 to 1,120. What is the percent change? It changed by 40%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
25
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0056466
Idris drove 604 miles for work. Mileage is reimbursed at 70 cents a mile. How much is the reimbursement? Computation in Python: ```python miles = 604 rate = 0.7 reimbursement = miles * rate # 422.79999999999995 print(f"{reimbursement:.2f}") ``` # console output: 422.80 Idris is owed $422.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "422.80", "printed": "422.80", "notation": null}
nlprog_det-setting-0056467
Divide 48 items among 7 groups as evenly as possible with equal groups. How many per group, and how many remain? 6 each, 6 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "6 each, 6 left over", "printed": "6 each, 6 left over", "notation": null}
nlprog_det-setting-0056468
<|start|><|user|> What average speed covers 302 miles in 2 hours?<|eot|> <|assistant|> distance = 302 hours = 2 speed = distance / hours print(round(speed)) Run result — 151 The average speed is 151 mph.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What average speed covers 302 miles in 2 hours?" }, { "role": "assistant", "content": " distance = 302\n hours = 2\n speed = distance / hours\n print(round(speed))\nRun result — 151\n\nThe average speed is 151 mph." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
60
{"gold": "151", "printed": "151", "notation": null}
nlprog_det-setting-0056469
With 25% off, what does a $250 bicycle helmet cost? Coded up: ```python price = 250 discount = 25 / 100 # 0.25 sale_price = price * (1 - discount) # 187.5 print(f"{sale_price:.2f}") ``` The code prints 187.50. The sale price is $187.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "187.50", "printed": "187.50", "notation": null}
nlprog_det-setting-0056470
<|start|><|system|> Tools you may use: [{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "code_runner", "description": "Evaluates Python and returns the printed output.", "parameters": {...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"code_runner\", \"description\": \"Evaluate...
nlprog_det
setting
original
null
deterministic
[]
[]
322
{"gold": "110.00", "printed": "110.00", "notation": null}
nlprog_det-setting-0056471
<|start|><|user|> After an initial $6,000, the remainder of a $12,000 grant is paid in 3 equal parts. What is each part?<|eot|> <|assistant|> ```python grant = 12000 up_front = 6000 installments = 3 each = (grant - up_front) / installments # 2000.0 print(f"{each:.2f}") ``` Running this gives: 2000.00 Each installment...
chat
[ { "role": "user", "content": "After an initial $6,000, the remainder of a $12,000 grant is paid in 3 equal parts. What is each part?" }, { "role": "assistant", "content": "```python\ngrant = 12000\nup_front = 6000\ninstallments = 3\neach = (grant - up_front) / installments # 2000.0\nprint(f\"{e...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0056472
A count moves from 1,200 to 1,680. By what percent did it change (use a minus sign for a drop)? The change is 40%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0056473
Starting with 647 hard drives and using 5 per day, how many remain after 17 days? Programmatically: ```python stock = 647 per_day = 5 days = 17 left = stock - per_day * days # 562 print(left) ``` It prints: 562 562 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "562", "printed": "562", "notation": null}
nlprog_det-setting-0056474
A claim accrued on February 9, 2017. The limitations period is 4 years. On what date does it expire? Here's the code. ```python from datetime import date accrued = date(2017, 2, 9) # datetime.date(2017, 2, 9) years = 4 expires = accrued.replace(year=accrued.year + years) # datetime.date(2021, 2, 9) print(expires.iso...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "2021-02-09", "printed": "2021-02-09", "notation": null}
nlprog_det-setting-0056475
What day of the week is November 28, 2013? Python version: ```python from datetime import date hearing = date(2013, 11, 28) # datetime.date(2013, 11, 28) print(hearing.strftime("%A")) ``` Output of the run: Thursday November 28, 2013 is a Thursday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "Thursday", "printed": "Thursday", "notation": null}
nlprog_det-setting-0056476
<|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": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|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\": {\"program\": {\"type\": \"string\", \"description\": \"Pyth...
nlprog_det
setting
original
null
deterministic
[]
[]
198
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0056480
What is a 18% tip on a $205.39 bill? Programmatically: ```python bill = 205.39 tip_rate = 18 / 100 # 0.18 tip = bill * tip_rate # 36.9702 print(f"{tip:.2f}") ``` Execution prints 36.97. The tip is $36.97.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "36.97", "printed": "36.97", "notation": null}
nlprog_det-setting-0056481
<|start|><|user|> Revenue is $8,000 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|> <|assistant|> The margin is 50.0%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Revenue is $8,000 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)?" }, { "role": "assistant", "content": "The margin is 50.0%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "50.0", "printed": "50.0", "notation": null}
nlprog_det-setting-0056482
<|start|><|user|> The rules require 2/3 of 37 members (round up) to be present. How many is that?<|eot|> <|assistant|> ```python import math members = 37 quorum = math.ceil(members * 2 / 3) # 25 print(quorum) ``` stdout: 25 25 members are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The rules require 2/3 of 37 members (round up) to be present. How many is that?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 37\nquorum = math.ceil(members * 2 / 3) # 25\nprint(quorum)\n```\nstdout:\n25\n\n25 members are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0056483
<|start|><|user|> Walls total 1016 sq ft and each can covers 400 sq ft. How many cans should be bought?<|eot|> <|assistant|> ```python import math area = 1016 coverage = 400 cans = math.ceil(area / coverage) # 3 print(cans) ``` Result = 3 Buy 3 cans.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Walls total 1016 sq ft and each can covers 400 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "```python\nimport math\narea = 1016\ncoverage = 400\ncans = math.ceil(area / coverage) # 3\nprint(cans)\n```\nResult = 3\n\nBuy 3 cans." }...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0056484
A service costs $29 a month or $324 a year. How much does the yearly plan save over 12 monthly payments? As Python: ```python monthly = 29 yearly = 324 savings = monthly * 12 - yearly # 24 print(savings) ``` (Result: 24) $24 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0056486
A 12-month warranty starts on July 23, 2019. On what date does it end? A short script: ```python from datetime import date start = date(2019, 7, 23) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Run result = 2...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "2020-07-23", "printed": "2020-07-23", "notation": null}
nlprog_det-setting-0056488
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "interpreter", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"interpreter\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python s...
nlprog_det
setting
original
null
deterministic
[]
[]
220
{"gold": "379.89", "printed": "379.89", "notation": null}
nlprog_det-setting-0056489
How many minutes pass from 10:52 AM to 1:43 PM on the same day? Python makes this quick: ```python start = 10 * 60 + 52 # 652 end = 13 * 60 + 43 # 823 print(end - start) ``` (Output: 171) 171 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "171", "printed": "171", "notation": null}
nlprog_det-setting-0056490
<|start|><|user|> A 522-page report must be reviewed in 18 days. How many pages a day is that, evenly?<|eot|> <|assistant|> ```python pages = 522 days = 18 per_day = pages // days # 29 print(per_day) ``` Shell output: 29 That is 29 pages per day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 522-page report must be reviewed in 18 days. How many pages a day is that, evenly?" }, { "role": "assistant", "content": "```python\npages = 522\ndays = 18\nper_day = pages // days # 29\nprint(per_day)\n```\nShell output: 29\n\nThat is 29 pages per day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0056491
How many minutes pass from 7:46 AM to 9:02 AM on the same day? Python version: ```python start = 7 * 60 + 46 # 466 end = 9 * 60 + 2 # 542 print(end - start) ``` stdout: 76 It is 76 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "76", "printed": "76", "notation": null}
nlprog_det-setting-0056492
Pack A has 8 items for $5.41. Pack B has 18 items for $8.01. Which has the lower price per item? Coded up: ```python pack_a = 5.41 / 8 # 0.67625 pack_b = 8.01 / 18 # 0.445 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` Run result — B Pack B is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0056493
<|start|><|user|> Tobias was born on June 11, 2001. How old is Tobias on July 14, 2022?<|eot|> <|assistant|> from datetime import date born = date(2001, 6, 11) # datetime.date(2001, 6, 11) on = date(2022, 7, 14) # datetime.date(2022, 7, 14) age = on.year - born.year - ((on.month, on.day) < (born.month...
chat
[ { "role": "user", "content": "Tobias was born on June 11, 2001. How old is Tobias on July 14, 2022?" }, { "role": "assistant", "content": " from datetime import date\n born = date(2001, 6, 11) # datetime.date(2001, 6, 11)\n on = date(2022, 7, 14) # datetime.date(2022, 7, 14)\n age ...
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0056494
<|start|><|user|> Helga buys 12 boxes of 10 calendars each and gives away 16 calendars. How many calendars are left?<|eot|> <|assistant|> ```python boxes = 12 per_box = 10 given_away = 16 left = boxes * per_box - given_away # 104 print(left) ``` Python prints 104, as expected. That leaves 104 calendars.<|eot|> <|end|...
chat
[ { "role": "user", "content": "Helga buys 12 boxes of 10 calendars each and gives away 16 calendars. How many calendars are left?" }, { "role": "assistant", "content": "```python\nboxes = 12\nper_box = 10\ngiven_away = 16\nleft = boxes * per_box - given_away # 104\nprint(left)\n```\nPython print...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "104", "printed": "104", "notation": null}
nlprog_det-setting-0056495
Papers were served by mail on January 19, 2028. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date? Translated to Python: ```python from datetime import date, timedelta served = date(2028, 1, 19) # datetime.date(2028, 1, 19) response_days = 30 mail_days = 3 due = served + tim...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
185
{"gold": "2028-02-21", "printed": "2028-02-21", "notation": null}
nlprog_det-setting-0056496
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}} {"name": "compute", "description": "A Python interpreter. Returns standard output....
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}\n{\"name\": \"compute\", \"desc...
nlprog_det
setting
original
null
deterministic
[]
[]
291
{"gold": "1575.00", "printed": "1575.00", "notation": null}
nlprog_det-setting-0056497
<|start|><|system|> Available functions (JSON Schema): [{"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"]}}, {"name": "search_cases...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\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\...
nlprog_det
setting
original
null
deterministic
[]
[]
287
{"gold": "3600.00", "printed": "3600.00", "notation": null}
nlprog_det-setting-0056498
<|start|><|user|> At 1.5% a month (simple), what interest builds on $12,000 over 2 months?<|eot|> <|assistant|> ```python balance = 12000 monthly_rate = 1.5 / 100 # 0.015 months = 2 interest = balance * monthly_rate * months # 360.0 print(f"{interest:.2f}") ``` Shell output: 360.00 The interest is $360.00.<|eot|> <|...
chat
[ { "role": "user", "content": "At 1.5% a month (simple), what interest builds on $12,000 over 2 months?" }, { "role": "assistant", "content": "```python\nbalance = 12000\nmonthly_rate = 1.5 / 100 # 0.015\nmonths = 2\ninterest = balance * monthly_rate * months # 360.0\nprint(f\"{interest:.2f}\")...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "360.00", "printed": "360.00", "notation": null}
nlprog_det-setting-0056500
<|start|><|user|> 61 of 100 members attended. What percent attended?<|eot|> <|assistant|> Attendance was 61.0%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "61 of 100 members attended. What percent attended?" }, { "role": "assistant", "content": "Attendance was 61.0%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "61.0", "printed": "61.0", "notation": null}
nlprog_det-setting-0056501
Revenue is $12,000 and costs are $8,000. What is the profit margin as a percent of revenue (one decimal)? Script: ```python revenue = 12000 costs = 8000 profit = revenue - costs # 4000 margin = profit / revenue * 100 # 33.33333333333333 print(round(margin, 1)) ``` Printed result — 33.3 The margin is 33.3%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "33.3", "printed": "33.3", "notation": null}
nlprog_det-setting-0056502
4 books come back 9 days late, at $0.50 a day each. What is the fine? Python, step by step: ```python per_day = 0.5 days_late = 9 books = 4 fine = per_day * days_late * books # 18.0 print(f"{fine:.2f}") ``` When run, it prints: 18.00 The fine is $18.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "18.00", "printed": "18.00", "notation": null}
nlprog_det-setting-0056503
What does $1,000 grow to in 4 years at 5% annual compounding? Let the code do the arithmetic: ```python principal = 1000 rate = 5 / 100 # 0.05 years = 4 value = principal * (1 + rate) ** years # 1215.5062500000001 print(f"{value:.2f}") ``` (Output: 1215.51) It is worth $1,215.51.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "1215.51", "printed": "1215.51", "notation": null}
nlprog_det-setting-0056504
<|start|><|user|> Nadia buys 11 boxes of 12 hard drives each and gives away 15 hard drives. How many hard drives are left?<|eot|> <|assistant|> ```python boxes = 11 per_box = 12 given_away = 15 left = boxes * per_box - given_away # 117 print(left) ``` stdout — 117 That leaves 117 hard drives.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Nadia buys 11 boxes of 12 hard drives each and gives away 15 hard drives. How many hard drives are left?" }, { "role": "assistant", "content": "```python\nboxes = 11\nper_box = 12\ngiven_away = 15\nleft = boxes * per_box - given_away # 117\nprint(left)\n```\nstdout...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "117", "printed": "117", "notation": null}
nlprog_det-setting-0056506
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "eval_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"eval_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"desc...
nlprog_det
setting
original
null
deterministic
[]
[]
231
{"gold": "4200.00", "printed": "4200.00", "notation": null}
nlprog_det-setting-0056507
<|start|><|system|> You help with homework problems.<|eot|> <|user|> A client paid a $2,500 retainer. The firm has billed 3 hours at $200 per hour. How much of the retainer is left?<|eot|> <|assistant|> ```python retainer = 2500 hours = 3 rate = 200 left = retainer - hours * rate # 1900 print(left) ``` On running, it ...
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "A client paid a $2,500 retainer. The firm has billed 3 hours at $200 per hour. How much of the retainer is left?" }, { "role": "assistant", "content": "```python\nretainer = 2500\nhours...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "1900", "printed": "1900", "notation": null}
nlprog_det-setting-0056508
<|start|><|user|> What commission does Priya make on $19,805 in sales at 6%?<|eot|> <|assistant|> ```python sales = 19805 rate = 6 / 100 # 0.06 commission = sales * rate # 1188.3 print(f"{commission:.2f}") ``` It prints 1188.30, as expected. Priya earns $1,188.30.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What commission does Priya make on $19,805 in sales at 6%?" }, { "role": "assistant", "content": "```python\nsales = 19805\nrate = 6 / 100 # 0.06\ncommission = sales * rate # 1188.3\nprint(f\"{commission:.2f}\")\n```\nIt prints 1188.30, as expected.\n\nPriya earns...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "1188.30", "printed": "1188.30", "notation": null}
nlprog_det-setting-0056509
57 of 80 members attended. What percent attended? 71.2% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
21
{"gold": "71.2", "printed": "71.2", "notation": null}
nlprog_det-setting-0056510
<|start|><|user|> A 13 lb package ships at $12 base plus $1.20/lb. What is the charge?<|eot|> <|assistant|> ```python base = 12 per_pound = 1.2 weight = 13 cost = base + per_pound * weight # 27.6 print(f"{cost:.2f}") ``` Output: 27.60 The charge is $27.60.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 13 lb package ships at $12 base plus $1.20/lb. What is the charge?" }, { "role": "assistant", "content": "```python\nbase = 12\nper_pound = 1.2\nweight = 13\ncost = base + per_pound * weight # 27.6\nprint(f\"{cost:.2f}\")\n```\nOutput: 27.60\n\nThe charge is $27....
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "27.60", "printed": "27.60", "notation": null}
nlprog_det-setting-0056511
Water costs $15 a month plus $4.20 for each 1,000 gallons over 3,000. What is owed for 12,000 gallons? The program: ```python base = 15 rate = 4.2 used = 12 free = 3 bill = base + rate * max(0, used - free) print(f"{bill:.2f}") ``` Run output — 52.80 The bill is $52.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "52.80", "printed": "52.80", "notation": null}
nlprog_det-setting-0056512
<|start|><|system|> Tools (call with JSON): [{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": ...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"lookup_statute\", \"description\": \...
nlprog_det
setting
original
null
deterministic
[]
[]
375
{"gold": "35100", "printed": "35100", "notation": null}
nlprog_det-setting-0056513
<|start|><|user|> A shift runs from 10:14 AM to 12:37 PM. How long is it in minutes?<|eot|> <|assistant|> ```python start = 10 * 60 + 14 end = 12 * 60 + 37 print(end - start) ``` On running, it outputs 143. 143 minutes pass.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A shift runs from 10:14 AM to 12:37 PM. How long is it in minutes?" }, { "role": "assistant", "content": "```python\nstart = 10 * 60 + 14\nend = 12 * 60 + 37\nprint(end - start)\n```\nOn running, it outputs 143.\n\n143 minutes pass." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "143", "printed": "143", "notation": null}
nlprog_det-setting-0056514
Signe was born on August 2, 1985. How old is Signe on June 13, 2030? The computation: ```python from datetime import date born = date(1985, 8, 2) # datetime.date(1985, 8, 2) on = date(2030, 6, 13) # datetime.date(2030, 6, 13) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 44 print(age) ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
154
{"gold": "44", "printed": "44", "notation": null}
nlprog_det-setting-0056515
Convert 5 h 10 min (the length of a film) to minutes. Here is the program. ```python hours = 5 minutes = 10 total_minutes = hours * 60 + minutes # 310 print(total_minutes) ``` The interpreter prints 310. That is 310 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "310", "printed": "310", "notation": null}
nlprog_det-setting-0056516
Meals are $59 per day and lodging $110 per night. What is the allowance for 9 days and 8 nights? Here is a short program for it. days = 9 meal_rate = 59 lodging_rate = 110 nights = days - 1 # 8 total = days * meal_rate + nights * lodging_rate # 1411 print(total) The interpreter prints 1411. ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "1411", "printed": "1411", "notation": null}
nlprog_det-setting-0056517
Walls total 402 sq ft and each can covers 400 sq ft. How many cans should be bought? Written as code: ```python import math area = 402 coverage = 400 cans = math.ceil(area / coverage) # 2 print(cans) ``` The run gives 2. Buy 2 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0056518
What percentage of $4,000 is $200? Python version: budget = 4000 spent = 200 percent = spent / budget * 100 # 5.0 print(round(percent, 1)) The printout reads 5.0. 5.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
71
{"gold": "5.0", "printed": "5.0", "notation": null}
nlprog_det-setting-0056520
An office budget of $25,000 has expenses of $2,461, $2,773, $3,740. How much of the budget is left? Python makes this quick: ```python budget = 25000 expenses = [2461, 2773, 3740] left = budget - sum(expenses) # 16026 print(left) ``` Run it and it prints 16026. $16,026 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "16026", "printed": "16026", "notation": null}
nlprog_det-setting-0056521
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> Divide 41 items among 6 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|> <|assistant|> ```python total = 41 groups = 6 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} l...
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "Divide 41 items among 6 groups as evenly as possible with equal groups. How many per group, and how many remain?" }, { "role": "assistant", "content": "```python\ntotal = 41\ngroups = ...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "6 each, 5 left over", "printed": "6 each, 5 left over", "notation": null}
nlprog_det-setting-0056522
What simple interest does $2,500 earn at 6% a year over 2 years? Python version: ```python principal = 2500 rate = 6 / 100 # 0.06 years = 2 interest = principal * rate * years # 300.0 print(f"{interest:.2f}") ``` The run gives 300.00, as expected. It earns $300.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "300.00", "printed": "300.00", "notation": null}
nlprog_det-setting-0056523
Under a 40% contingency agreement, what fee is owed on a $12,000 award? Computation in Python: ```python recovery = 12000 rate = 40 / 100 # 0.4 fee = recovery * rate # 4800.0 print(f"{fee:.2f}") ``` Run result: 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-0056524
The rules require 3/5 of 15 members (round up) to be present. How many is that? Python makes this quick: ```python import math members = 15 quorum = math.ceil(members * 3 / 5) # 9 print(quorum) ``` Shell output: 9 That is 9 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0056525
<|start|><|system|> You check calculations for an accounting team.<|eot|> <|user|> After an initial $0, the remainder of a $60,000 grant is paid in 12 equal parts. What is each part?<|eot|> <|assistant|> ```python grant = 60000 up_front = 0 installments = 12 each = (grant - up_front) / installments # 5000.0 print(f"{e...
chat
[ { "role": "system", "content": "You check calculations for an accounting team." }, { "role": "user", "content": "After an initial $0, the remainder of a $60,000 grant is paid in 12 equal parts. What is each part?" }, { "role": "assistant", "content": "```python\ngrant = 60000\nup_fro...
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "5000.00", "printed": "5000.00", "notation": null}
nlprog_det-setting-0056527
A car travels 590 miles in 0.5 hours. What is its average speed in miles per hour? ```python distance = 590 hours = 0.5 speed = distance / hours # 1180.0 print(round(speed)) ``` # printed result: 1180 It averages 1180 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "1180", "printed": "1180", "notation": null}
nlprog_det-setting-0056528
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> Counting the first and last day, how many days are there from December 3, 2023 through December 22, 2023?<|eot|> <|assistant|> ```python from datetime import date first = date(2023, 12, 3) # datetime.date(2023, 12, 3) last = date(2023, 12, 22) # da...
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "Counting the first and last day, how many days are there from December 3, 2023 through December 22, 2023?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nf...
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0056530
How many units at $15 each (variable cost $11) cover $9,000 of fixed costs? Let's compute it with Python. ```python import math fixed = 9000 price = 15 variable = 11 units = math.ceil(fixed / (price - variable)) # 2250 print(units) ``` Result: 2250 2250 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "2250", "printed": "2250", "notation": null}
nlprog_det-setting-0056531
Express 387 hours in days and hours. One way, in code: ```python hours = 387 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Result — 16 days and 3 hours 387 hours is 16 days and 3 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "16 days and 3 hours", "printed": "16 days and 3 hours", "notation": null}
nlprog_det-setting-0056532
<|start|><|user|> A pack of 8 scissors sells for $136. What does each cost?<|eot|> <|assistant|> ```python total = 136 count = 8 per_item = total // count # 17 print(per_item) ``` stdout — 17 The unit price is $17.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A pack of 8 scissors sells for $136. What does each cost?" }, { "role": "assistant", "content": "```python\ntotal = 136\ncount = 8\nper_item = total // count # 17\nprint(per_item)\n```\nstdout — 17\n\nThe unit price is $17." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0056533
A court charges $5 per request plus $0.10 per page after the first 20 pages. What does a 90-page copy cost? Here is a short program for it. ```python pages = 90 base = 5 per_page = 0.1 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page print(f"{cost:.2f}") ``` stdout — 12.00 The total is $12.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "12.00", "printed": "12.00", "notation": null}
nlprog_det-setting-0056534
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> Equal monthly payments repay $1,200 plus 10% simple yearly interest over 36 months. How large is a payment?<|eot|> <|assistant|> ```python principal = 1200 annual_rate = 10 / 100 # 0.1 months = 36 interest = principal * annual_rate * months / 12 # 360....
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "role": "user", "content": "Equal monthly payments repay $1,200 plus 10% simple yearly interest over 36 months. How large is a payment?" }, { "role": "assistant", "content": "```python\nprincipal = 1200\nannual_rate ...
nlprog_det
setting
original
null
deterministic
[]
[]
160
{"gold": "43.33", "printed": "43.33", "notation": null}
nlprog_det-setting-0056535
Filing fees are $405 per document. What do 7 filings cost? Program: ```python fee = 405 filings = 7 total = fee * filings # 2835 print(total) ``` Console: 2835 $2,835 in filing fees.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "2835", "printed": "2835", "notation": null}
nlprog_det-setting-0056536
<|start|><|system|> You check calculations for an accounting team.<|eot|> <|user|> Tariq earns a 6% commission on $96,735 of sales. What is the commission?<|eot|> <|assistant|> ```python sales = 96735 rate = 6 / 100 # 0.06 commission = sales * rate # 5804.099999999999 print(f"{commission:.2f}") ``` Program output — 5...
chat
[ { "role": "system", "content": "You check calculations for an accounting team." }, { "role": "user", "content": "Tariq earns a 6% commission on $96,735 of sales. What is the commission?" }, { "role": "assistant", "content": "```python\nsales = 96735\nrate = 6 / 100 # 0.06\ncommissio...
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "5804.10", "printed": "5804.10", "notation": null}
nlprog_det-setting-0056537
At $26.82 an hour, what does 32 hours of work pay? Python does the arithmetic: ```python rate = 26.82 hours = 32 earnings = rate * hours # 858.24 print(f"{earnings:.2f}") ``` Running it prints: 858.24 That earns $858.24.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "858.24", "printed": "858.24", "notation": null}
nlprog_det-setting-0056538
A 6-day trip pays $64 a day for meals and $175 a night for lodging (5 nights). What is the total allowance? Python does the arithmetic: ```python days = 6 meal_rate = 64 lodging_rate = 175 nights = days - 1 # 5 total = days * meal_rate + nights * lodging_rate # 1259 print(total) ``` What it prints — 1259 That comes...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "1259", "printed": "1259", "notation": null}
nlprog_det-setting-0056539
<|start|><|user|> Prorate $1,500 of monthly rent for 21 days of a 31-day month.<|eot|> <|assistant|> ```python rent = 1500 days_in_month = 31 days_occupied = 21 prorated = rent * days_occupied / days_in_month # 1016.1290322580645 print(f"{prorated:.2f}") ``` # out: 1016.13 The tenant owes $1,016.13.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Prorate $1,500 of monthly rent for 21 days of a 31-day month." }, { "role": "assistant", "content": "```python\nrent = 1500\ndays_in_month = 31\ndays_occupied = 21\nprorated = rent * days_occupied / days_in_month # 1016.1290322580645\nprint(f\"{prorated:.2f}\")\n``...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "1016.13", "printed": "1016.13", "notation": null}
nlprog_det-setting-0056540
<|start|><|user|> What is the total rent on a 6-month lease at $1,200 a month?<|eot|> <|assistant|> monthly_rent = 1200 months = 6 total = monthly_rent * months # 7200 print(total) (Run result: 7200) In total, $7,200 is paid.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is the total rent on a 6-month lease at $1,200 a month?" }, { "role": "assistant", "content": " monthly_rent = 1200\n months = 6\n total = monthly_rent * months # 7200\n print(total)\n(Run result: 7200)\n\nIn total, $7,200 is paid." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "7200", "printed": "7200", "notation": null}
nlprog_det-setting-0056541
<|start|><|user|> How many weekdays (Monday to Friday) fall after June 22, 2024 up to and including July 10, 2024?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2024, 6, 22) end = date(2024, 7, 10) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k))...
chat
[ { "role": "user", "content": "How many weekdays (Monday to Friday) fall after June 22, 2024 up to and including July 10, 2024?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2024, 6, 22)\nend = date(2024, 7, 10)\ncount = 0\nfor k in range(1, ...
nlprog_det
setting
original
null
deterministic
[]
[]
153
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0056542
<|start|><|user|> A pack of 4 calendars sells for $124. What does each cost?<|eot|> <|assistant|> The unit price is $31.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A pack of 4 calendars sells for $124. What does each cost?" }, { "role": "assistant", "content": "The unit price is $31." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "31", "printed": "31", "notation": null}
nlprog_det-setting-0056543
<|start|><|user|> Each of Kemal's runs burns 150 calories. How many calories over 7 runs?<|eot|> <|assistant|> ```python per_session = 150 sessions = 7 total = per_session * sessions # 1050 print(total) ``` Run result — 1050 1050 calories in total.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each of Kemal's runs burns 150 calories. How many calories over 7 runs?" }, { "role": "assistant", "content": "```python\nper_session = 150\nsessions = 7\ntotal = per_session * sessions # 1050\nprint(total)\n```\nRun result — 1050\n\n1050 calories in total." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "1050", "printed": "1050", "notation": null}
nlprog_det-setting-0056544
A hall has 24 rows of 24 seats, and 23 seats are empty. How many people are seated? In Python: ```python rows = 24 per_row = 24 empty = 23 seated = rows * per_row - empty # 553 print(seated) ``` Output: 553 553 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "553", "printed": "553", "notation": null}
nlprog_det-setting-0056545
A 12-month warranty starts on May 10, 2027. On what date does it end? Coded up: ```python from datetime import date start = date(2027, 5, 10) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` The program outputs 2...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "2028-05-10", "printed": "2028-05-10", "notation": null}
nlprog_det-setting-0056546
<|start|><|user|> An unpaid balance of $1,000 accrues 2% simple interest per month. How much interest accrues in 3 months?<|eot|> <|assistant|> ```python balance = 1000 monthly_rate = 2 / 100 # 0.02 months = 3 interest = balance * monthly_rate * months # 60.0 print(f"{interest:.2f}") ``` The program prints 60.00. Th...
chat
[ { "role": "user", "content": "An unpaid balance of $1,000 accrues 2% simple interest per month. How much interest accrues in 3 months?" }, { "role": "assistant", "content": "```python\nbalance = 1000\nmonthly_rate = 2 / 100 # 0.02\nmonths = 3\ninterest = balance * monthly_rate * months # 60.0\...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "60.00", "printed": "60.00", "notation": null}
nlprog_det-setting-0056547
Of a $5,000 budget, $1,300 has been spent. What percent is that? Python: ```python budget = 5000 spent = 1300 percent = spent / budget * 100 # 26.0 print(round(percent, 1)) ``` Running this gives: 26.0 That is 26.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "26.0", "printed": "26.0", "notation": null}
nlprog_det-setting-0056548
Fiona and Arjun share $716 in the ratio 1:3. How much does Fiona get? We write it as a program: ```python total = 716 parts_a = 1 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 179 print(share_a) ``` # stdout: 179 Fiona's share is $179.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "179", "printed": "179", "notation": null}
nlprog_det-setting-0056549
Of a $10,000 budget, $2,800 has been spent. What percent is that? Python makes this quick: budget = 10000 spent = 2800 percent = spent / budget * 100 # 28.000000000000004 print(round(percent, 1)) # execution result: 28.0 That is 28.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "28.0", "printed": "28.0", "notation": null}
nlprog_det-setting-0056550
Monthly rent is $2,400. A tenant moves in with 14 days left in a 30-day month. What is the prorated rent? Script: ```python rent = 2400 days_in_month = 30 days_occupied = 14 prorated = rent * days_occupied / days_in_month # 1120.0 print(f"{prorated:.2f}") ``` Execution prints: 1120.00 The tenant owes $1,120.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "1120.00", "printed": "1120.00", "notation": null}
nlprog_det-setting-0056551
How many units at $40 each (variable cost $32) cover $1,200 of fixed costs? ```python import math fixed = 1200 price = 40 variable = 32 units = math.ceil(fixed / (price - variable)) # 150 print(units) ``` The script prints: 150 Break-even is 150 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0056552
<|start|><|system|> Keep explanations short.<|eot|> <|user|> Counting the first and last day, how many days are there from January 15, 2022 through January 27, 2022?<|eot|> <|assistant|> ```python from datetime import date first = date(2022, 1, 15) # datetime.date(2022, 1, 15) last = date(2022, 1, 27) # datetime.date...
chat
[ { "role": "system", "content": "Keep explanations short." }, { "role": "user", "content": "Counting the first and last day, how many days are there from January 15, 2022 through January 27, 2022?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = dat...
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0056553
<|start|><|system|> Tool definitions: [{"name": "code_runner", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> Count the days between October 15, 2018 and ...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"code_runner\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}]" },...
nlprog_det
setting
original
null
deterministic
[]
[]
210
{"gold": "119", "printed": "119", "notation": null}
nlprog_det-setting-0056554
<|start|><|user|> Counting only Monday through Friday, how many business days are there after February 23, 2024 through March 9, 2024?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2024, 2, 23) end = date(2024, 3, 9) count = 0 for k in range(1, (end - start).days + 1): if (start +...
chat
[ { "role": "user", "content": "Counting only Monday through Friday, how many business days are there after February 23, 2024 through March 9, 2024?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2024, 2, 23)\nend = date(2024, 3, 9)\ncount = 0\...
nlprog_det
setting
original
null
deterministic
[]
[]
156
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0056555
A lease runs for 36 months at $2,100 per month. How much rent is paid over the whole term? Python does the arithmetic: monthly_rent = 2100 months = 36 total = monthly_rent * months # 75600 print(total) (Run result: 75600) The rent over the term is $75,600.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "75600", "printed": "75600", "notation": null}
nlprog_det-setting-0056556
<|start|><|user|> A meal costs $227.06. How much is a 25% tip?<|eot|> <|assistant|> ```python bill = 227.06 tip_rate = 25 / 100 # 0.25 tip = bill * tip_rate # 56.765 print(f"{tip:.2f}") ``` The program outputs: 56.77 Leave $56.77.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A meal costs $227.06. How much is a 25% tip?" }, { "role": "assistant", "content": "```python\nbill = 227.06\ntip_rate = 25 / 100 # 0.25\ntip = bill * tip_rate # 56.765\nprint(f\"{tip:.2f}\")\n```\nThe program outputs: 56.77\n\nLeave $56.77." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "56.77", "printed": "56.77", "notation": null}
nlprog_det-setting-0056557
<|start|><|system|> Be concise.<|eot|> <|user|> Helga earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 44-hour week?<|eot|> <|assistant|> rate = 20.0 hours = 44 regular = 40 * rate # 800.0 overtime = (hours - 40) * rate * 1.5 # 120.0 pay = regular + overtime # 920...
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "Helga earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 44-hour week?" }, { "role": "assistant", "content": " rate = 20.0\n hours = 44\n regular = 40 * rate # 800.0...
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "920.00", "printed": "920.00", "notation": null}
nlprog_det-setting-0056558
<|start|><|user|> What percentage of $8,000 is $7,800?<|eot|> <|assistant|> budget = 8000 spent = 7800 percent = spent / budget * 100 # 97.5 print(round(percent, 1)) The run gives: 97.5 That is 97.5% of the budget.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What percentage of $8,000 is $7,800?" }, { "role": "assistant", "content": " budget = 8000\n spent = 7800\n percent = spent / budget * 100 # 97.5\n print(round(percent, 1))\nThe run gives: 97.5\n\nThat is 97.5% of the budget." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "97.5", "printed": "97.5", "notation": null}
nlprog_det-setting-0056559
What average speed covers 286 miles in 0.5 hours? Python version: ```python distance = 286 hours = 0.5 speed = distance / hours # 572.0 print(round(speed)) ``` Run result — 572 The average speed is 572 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "572", "printed": "572", "notation": null}
nlprog_det-setting-0056560
A customer buys 1 clipboards at $4 each, 2 pens at $29 each, 2 notebooks at $21 each and pays with $150. How much change is due? Let's compute it with Python. ```python items = [(1, 4), (2, 29), (2, 21)] total = sum(q * p for q, p in items) paid = 150 change = paid - total print(change) ``` (Out: 46) The change is $4...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "46", "printed": "46", "notation": null}
nlprog_det-setting-0056561
<|start|><|user|> Starting from $12,000, the team spends $3,024, $3,547, $1,885, $2,760. What remains?<|eot|> <|assistant|> ```python budget = 12000 expenses = [3024, 3547, 1885, 2760] left = budget - sum(expenses) # 784 print(left) ``` stdout: 784 The remaining budget is $784.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting from $12,000, the team spends $3,024, $3,547, $1,885, $2,760. What remains?" }, { "role": "assistant", "content": "```python\nbudget = 12000\nexpenses = [3024, 3547, 1885, 2760]\nleft = budget - sum(expenses) # 784\nprint(left)\n```\nstdout: 784\n\nThe rem...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "784", "printed": "784", "notation": null}
nlprog_det-setting-0056562
<|start|><|user|> Monthly rent is $1,200. A tenant moves in with 14 days left in a 31-day month. What is the prorated rent?<|eot|> <|assistant|> ```python rent = 1200 days_in_month = 31 days_occupied = 14 prorated = rent * days_occupied / days_in_month # 541.9354838709677 print(f"{prorated:.2f}") ``` # stdout: 541.94 ...
chat
[ { "role": "user", "content": "Monthly rent is $1,200. A tenant moves in with 14 days left in a 31-day month. What is the prorated rent?" }, { "role": "assistant", "content": "```python\nrent = 1200\ndays_in_month = 31\ndays_occupied = 14\nprorated = rent * days_occupied / days_in_month # 541.93...
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "541.94", "printed": "541.94", "notation": null}
nlprog_det-setting-0056563
Sara lends $2,500 at 6% simple interest per year for 6 years. How much interest is earned? As Python: ```python principal = 2500 rate = 6 / 100 # 0.06 years = 6 interest = principal * rate * years # 900.0 print(f"{interest:.2f}") ``` The program outputs 900.00. It earns $900.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "900.00", "printed": "900.00", "notation": null}
nlprog_det-setting-0056564
The paralegal logged 6.5 hours at a rate of $410. How much is billed? Let's compute it with Python. ```python hours = 6.5 rate = 410 bill = hours * rate print(f"{bill:.2f}") ``` # stdout: 2665.00 The bill is $2,665.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "2665.00", "printed": "2665.00", "notation": null}
nlprog_det-setting-0056565
What average speed covers 55 miles in 1 hours? Coded up: ```python distance = 55 hours = 1 speed = distance / hours # 55.0 print(round(speed)) ``` (Output: 55) It averages 55 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "55", "printed": "55", "notation": null}
nlprog_det-setting-0056567
<|start|><|system|> You are a logic tutor.<|eot|> <|user|> How many minutes pass from 9:39 AM to 4:14 PM on the same day?<|eot|> <|assistant|> 395 minutes pass.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a logic tutor." }, { "role": "user", "content": "How many minutes pass from 9:39 AM to 4:14 PM on the same day?" }, { "role": "assistant", "content": "395 minutes pass." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "395", "printed": "395", "notation": null}
nlprog_det-setting-0056568
A settlement of $960 is split equally among 3 parties. How much does each party receive? Python, step by step: ```python settlement = 960 parties = 3 share = settlement // parties # 320 print(share) ``` The run gives 320. Each share is $320.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "320", "printed": "320", "notation": null}
nlprog_det-setting-0056569
<|start|><|user|> A water bill is $15 plus $5.10 per thousand gallons beyond the first 3 thousand. What is the bill for 20 thousand gallons?<|eot|> <|assistant|> ```python base = 15 rate = 5.1 used = 20 free = 3 bill = base + rate * max(0, used - free) # 101.69999999999999 print(f"{bill:.2f}") ``` Interpreter output: ...
chat
[ { "role": "user", "content": "A water bill is $15 plus $5.10 per thousand gallons beyond the first 3 thousand. What is the bill for 20 thousand gallons?" }, { "role": "assistant", "content": "```python\nbase = 15\nrate = 5.1\nused = 20\nfree = 3\nbill = base + rate * max(0, used - free) # 101.6...
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "101.70", "printed": "101.70", "notation": null}
nlprog_det-setting-0056570
<|start|><|user|> Straight-line depreciation: cost $12,000, salvage $0, 6 years. How much per year?<|eot|> <|assistant|> ```python cost = 12000 salvage = 0 years = 6 per_year = (cost - salvage) / years # 2000.0 print(f"{per_year:.2f}") ``` Run result — 2000.00 Depreciation is $2,000.00 per year.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Straight-line depreciation: cost $12,000, salvage $0, 6 years. How much per year?" }, { "role": "assistant", "content": "```python\ncost = 12000\nsalvage = 0\nyears = 6\nper_year = (cost - salvage) / years # 2000.0\nprint(f\"{per_year:.2f}\")\n```\nRun result — 200...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0056571
<|start|><|system|> Tools you may use: {"name": "python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> <|user|> Equipment costs $18,000, has a salvage value...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\"]}}" },...
nlprog_det
setting
original
null
deterministic
[]
[]
253
{"gold": "1875.00", "printed": "1875.00", "notation": null}
nlprog_det-setting-0056572
If a 4-year limitations period starts on August 4, 2016, when does it end? ```python from datetime import date accrued = date(2016, 8, 4) # datetime.date(2016, 8, 4) years = 4 expires = accrued.replace(year=accrued.year + years) # datetime.date(2020, 8, 4) print(expires.isoformat()) ``` Output — 2020-08-04 It runs ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "2020-08-04", "printed": "2020-08-04", "notation": null}
nlprog_det-setting-0056574
<|start|><|user|> A 8% increase is applied to $1,800 monthly rent. What is the new amount?<|eot|> <|assistant|> rent = 1800 increase = 8 / 100 # 0.08 new_rent = rent * (1 + increase) # 1944.0000000000002 print(f"{new_rent:.2f}") Output: 1944.00 The new rent is $1,944.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 8% increase is applied to $1,800 monthly rent. What is the new amount?" }, { "role": "assistant", "content": " rent = 1800\n increase = 8 / 100 # 0.08\n new_rent = rent * (1 + increase) # 1944.0000000000002\n print(f\"{new_rent:.2f}\")\nOutput:\n1944...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "1944.00", "printed": "1944.00", "notation": null}
nlprog_det-setting-0056575
Scale 100 g of oats from 6 servings to 12 servings. We write it as a program: ```python grams = 100 serves = 6 needed_for = 12 scaled = grams * needed_for // serves # 200 print(scaled) ``` The program prints 200. 200 grams of oats are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "200", "printed": "200", "notation": null}