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-0053564
<|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\"]}}\n{\"name\": \"lookup_statute\", \"description\": \"...
nlprog_det
setting
original
null
deterministic
[]
[]
436
{"gold": "2027-04-08", "printed": "2027-04-08", "notation": null}
nlprog_det-setting-0053565
<|start|><|system|> Available functions (JSON Schema): [{"name": "interpreter", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> Count the days be...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"interpreter\", \"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
[]
[]
218
{"gold": "286", "printed": "286", "notation": null}
nlprog_det-setting-0053566
A claim accrued on December 11, 2014. The limitations period is 5 years. On what date does it expire? It runs out on December 11, 2019.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "2019-12-11", "printed": "2019-12-11", "notation": null}
nlprog_det-setting-0053568
Copies cost $10 plus $0.10 for each page beyond 0. How much for 75 pages? The copy costs $17.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "17.50", "printed": "17.50", "notation": null}
nlprog_det-setting-0053569
A 391-page report must be reviewed in 17 days. How many pages a day is that, evenly? A short script: ```python pages = 391 days = 17 per_day = pages // days print(per_day) ``` When run, it prints: 23 23 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0053570
To read 220 pages in 11 days, how many pages per day are needed? Here is the program. ```python pages = 220 days = 11 per_day = pages // days # 20 print(per_day) ``` Running it prints 20, as expected. That is 20 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0053571
A customer buys 4 cables at $28 each, 1 cables at $24 each, 6 tape rolls at $9 each and pays with $200. How much change is due? We write it as a program: ```python items = [(4, 28), (1, 24), (6, 9)] total = sum(q * p for q, p in items) # 190 paid = 200 change = paid - total # 10 print(change) ``` The printout reads ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0053572
<|start|><|system|> Available functions (JSON Schema): {"name": "math_engine", "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"]}} {"name": "translat...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"math_engine\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source cod...
nlprog_det
setting
original
null
deterministic
[]
[]
323
{"gold": "4165", "printed": "4165", "notation": null}
nlprog_det-setting-0053573
<|start|><|user|> Divide 296 items among 7 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|> <|assistant|> The answer: 42 each, 2 left over.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Divide 296 items among 7 groups as evenly as possible with equal groups. How many per group, and how many remain?" }, { "role": "assistant", "content": "The answer: 42 each, 2 left over." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "42 each, 2 left over", "printed": "42 each, 2 left over", "notation": null}
nlprog_det-setting-0053574
<|start|><|user|> A pack of 20 desk lamps sells for $440. What does each cost?<|eot|> <|assistant|> ```python total = 440 count = 20 per_item = total // count # 22 print(per_item) ``` Out: 22 The unit price is $22.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A pack of 20 desk lamps sells for $440. What does each cost?" }, { "role": "assistant", "content": "```python\ntotal = 440\ncount = 20\nper_item = total // count # 22\nprint(per_item)\n```\nOut:\n22\n\nThe unit price is $22." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0053575
Each of Sara's walks burns 200 calories. How many calories over 4 walks? 800 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "800", "printed": "800", "notation": null}
nlprog_det-setting-0053576
<|start|><|system|> Keep explanations short.<|eot|> <|user|> Rafael was born on November 25, 1999. How old is Rafael on May 2, 2024?<|eot|> <|assistant|> ```python from datetime import date born = date(1999, 11, 25) on = date(2024, 5, 2) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) print(ag...
chat
[ { "role": "system", "content": "Keep explanations short." }, { "role": "user", "content": "Rafael was born on November 25, 1999. How old is Rafael on May 2, 2024?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1999, 11, 25)\non = date(2024, 5...
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0053577
A lawyer's fee is 30% of a $90,000 recovery. How large is the fee? The program: ```python recovery = 90000 rate = 30 / 100 # 0.3 fee = recovery * rate # 27000.0 print(f"{fee:.2f}") ``` The run gives 27000.00. The fee is $27,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "27000.00", "printed": "27000.00", "notation": null}
nlprog_det-setting-0053578
<|start|><|user|> Parking is $4 per hour with a daily maximum of $18. What do 8 hours cost?<|eot|> <|assistant|> ```python rate = 4 hours = 8 daily_max = 18 cost = min(rate * hours, daily_max) # 18 print(cost) ``` The script prints 18, as expected. Parking costs $18.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Parking is $4 per hour with a daily maximum of $18. What do 8 hours cost?" }, { "role": "assistant", "content": "```python\nrate = 4\nhours = 8\ndaily_max = 18\ncost = min(rate * hours, daily_max) # 18\nprint(cost)\n```\nThe script prints 18, as expected.\n\nParkin...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0053579
What is a 22% tip on a $83.09 bill? Python code: ```python bill = 83.09 tip_rate = 22 / 100 # 0.22 tip = bill * tip_rate # 18.2798 print(f"{tip:.2f}") ``` stdout: 18.28 The tip is $18.28.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "18.28", "printed": "18.28", "notation": null}
nlprog_det-setting-0053580
What is the total rent on a 24-month lease at $850 a month? We write it as a program: ```python monthly_rent = 850 months = 24 total = monthly_rent * months # 20400 print(total) ``` Run result = 20400 In total, $20,400 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "20400", "printed": "20400", "notation": null}
nlprog_det-setting-0053581
<|start|><|user|> A $800 security deposit has deductions of $200, $45 and $60. How much is refunded?<|eot|> <|assistant|> ```python deposit = 800 deductions = [200, 45, 60] refund = deposit - sum(deductions) # 495 print(refund) ``` (Result: 495) The refund is $495.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $800 security deposit has deductions of $200, $45 and $60. How much is refunded?" }, { "role": "assistant", "content": "```python\ndeposit = 800\ndeductions = [200, 45, 60]\nrefund = deposit - sum(deductions) # 495\nprint(refund)\n```\n(Result: 495)\n\nThe refund...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "495", "printed": "495", "notation": null}
nlprog_det-setting-0053582
Parking is $3 per hour with a daily maximum of $15. What do 9 hours cost? Translated to Python: ```python rate = 3 hours = 9 daily_max = 15 cost = min(rate * hours, daily_max) # 15 print(cost) ``` stdout = 15 The charge is $15.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0053583
<|start|><|user|> What average speed covers 368 miles in 2 hours?<|eot|> <|assistant|> It averages 184 miles per hour.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What average speed covers 368 miles in 2 hours?" }, { "role": "assistant", "content": "It averages 184 miles per hour." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "184", "printed": "184", "notation": null}
nlprog_det-setting-0053584
A customer buys 4 rulers at $27 each, 5 toner kits at $21 each and pays with $250. How much change is due? Let's compute it with Python. ```python items = [(4, 27), (5, 21)] total = sum(q * p for q, p in items) # 213 paid = 250 change = paid - total # 37 print(change) ``` Run result: 37 $37 comes back.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "37", "printed": "37", "notation": null}
nlprog_det-setting-0053585
A 210-page report must be reviewed in 7 days. How many pages a day is that, evenly? Let's compute it with Python. ```python pages = 210 days = 7 per_day = pages // days print(per_day) ``` (Printed: 30) 30 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0053586
<|start|><|user|> If a 5-year limitations period starts on July 1, 2016, when does it end?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2016, 7, 1) # datetime.date(2016, 7, 1) years = 5 expires = accrued.replace(year=accrued.year + years) # datetime.date(2021, 7, 1) print(expires.isoformat(...
chat
[ { "role": "user", "content": "If a 5-year limitations period starts on July 1, 2016, when does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2016, 7, 1) # datetime.date(2016, 7, 1)\nyears = 5\nexpires = accrued.replace(year=accrued.year + ye...
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "2021-07-01", "printed": "2021-07-01", "notation": null}
nlprog_det-setting-0053587
How much sales tax is charged on a $177.08 purchase at 9%? Code: price = 177.08 tax_rate = 9 / 100 # 0.09 tax = price * tax_rate # 15.9372 print(f"{tax:.2f}") # stdout: 15.94 The tax is $15.94.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "15.94", "printed": "15.94", "notation": null}
nlprog_det-setting-0053589
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> What average speed covers 486 miles in 2 hours?<|eot|> <|assistant|> ```python distance = 486 hours = 2 speed = distance / hours # 243.0 print(round(speed)) ``` # printed: 243 It averages 243 miles per hour.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "What average speed covers 486 miles in 2 hours?" }, { "role": "assistant", "content": "```python\ndistance = 486\nhours = 2\nspeed = distance / hours # 243.0\nprint(round(speed...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "243", "printed": "243", "notation": null}
nlprog_det-setting-0053591
<|start|><|user|> Monthly: $15. Annual: $162. What is saved per year by paying annually?<|eot|> <|assistant|> monthly = 15 yearly = 162 savings = monthly * 12 - yearly # 18 print(savings) # run result: 18 The annual plan saves $18.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Monthly: $15. Annual: $162. What is saved per year by paying annually?" }, { "role": "assistant", "content": " monthly = 15\n yearly = 162\n savings = monthly * 12 - yearly # 18\n print(savings)\n# run result: 18\n\nThe annual plan saves $18." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0053592
<|start|><|user|> Express 197 hours in days and hours.<|eot|> <|assistant|> hours = 197 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") (Output: 8 days and 5 hours) That is 8 days and 5 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Express 197 hours in days and hours." }, { "role": "assistant", "content": " hours = 197\n days, rest = divmod(hours, 24)\n print(f\"{days} days and {rest} hours\")\n(Output: 8 days and 5 hours)\n\nThat is 8 days and 5 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "8 days and 5 hours", "printed": "8 days and 5 hours", "notation": null}
nlprog_det-setting-0053593
<|start|><|system|> Tools (call with JSON): [{"name": "code_runner", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> Fines run at $100 per day up...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"code_runner\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"so...
nlprog_det
setting
original
null
deterministic
[]
[]
224
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0053595
<|start|><|system|> Show working only when it helps.<|eot|> <|user|> How long, in days, is it from September 23, 2025 until April 2, 2026?<|eot|> <|assistant|> It is 191 days.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Show working only when it helps." }, { "role": "user", "content": "How long, in days, is it from September 23, 2025 until April 2, 2026?" }, { "role": "assistant", "content": "It is 191 days." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "191", "printed": "191", "notation": null}
nlprog_det-setting-0053596
<|start|><|user|> Convert 0 °C to Fahrenheit.<|eot|> <|assistant|> ```python celsius = 0 fahrenheit = celsius * 9 / 5 + 32 # 32.0 print(round(fahrenheit)) ``` Interpreter output — 32 It equals 32 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 0 °C to Fahrenheit." }, { "role": "assistant", "content": "```python\ncelsius = 0\nfahrenheit = celsius * 9 / 5 + 32 # 32.0\nprint(round(fahrenheit))\n```\nInterpreter output — 32\n\nIt equals 32 degrees Fahrenheit." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0053597
<|start|><|user|> Shipping costs $10 plus $0.75 per pound. What does a 37-pound parcel cost to ship?<|eot|> <|assistant|> ```python base = 10 per_pound = 0.75 weight = 37 cost = base + per_pound * weight # 37.75 print(f"{cost:.2f}") ``` The program outputs: 37.75 Shipping costs $37.75.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Shipping costs $10 plus $0.75 per pound. What does a 37-pound parcel cost to ship?" }, { "role": "assistant", "content": "```python\nbase = 10\nper_pound = 0.75\nweight = 37\ncost = base + per_pound * weight # 37.75\nprint(f\"{cost:.2f}\")\n```\nThe program outputs...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "37.75", "printed": "37.75", "notation": null}
nlprog_det-setting-0053598
229 volunteers are split into 7 equal teams. How many are on each team, and how many are left over? As Python: ```python total = 229 groups = 7 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` The script prints 32 each, 5 left over. 32 each, 5 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "32 each, 5 left over", "printed": "32 each, 5 left over", "notation": null}
nlprog_det-setting-0053599
2 books come back 30 days late, at $0.20 a day each. What is the fine? We can compute it in Python. per_day = 0.2 days_late = 30 books = 2 fine = per_day * days_late * books # 12.0 print(f"{fine:.2f}") (Run result: 12.00) The fine is $12.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "12.00", "printed": "12.00", "notation": null}
nlprog_det-setting-0053600
Scale 200 g of lentils from 4 servings to 2 servings. One way, in code: ```python grams = 200 serves = 4 needed_for = 2 scaled = grams * needed_for // serves # 100 print(scaled) ``` Running it prints: 100 Use 100 g of lentils.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "100", "printed": "100", "notation": null}
nlprog_det-setting-0053601
How many meters are in 74.2 kilometers? A short script: ```python km = 74.2 meters = km * 1000 # 74200.0 print(round(meters)) ``` Executing it gives 74200, as expected. 74,200 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "74200", "printed": "74200", "notation": null}
nlprog_det-setting-0053602
Under a 35% contingency agreement, what fee is owed on a $90,000 award? The Python version: ```python recovery = 90000 rate = 35 / 100 # 0.35 fee = recovery * rate # 31499.999999999996 print(f"{fee:.2f}") ``` The program outputs: 31500.00 The lawyer's fee comes to $31,500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "31500.00", "printed": "31500.00", "notation": null}
nlprog_det-setting-0053603
Straight-line depreciation: cost $18,000, salvage $3,000, 5 years. How much per year? We write it as a program: ```python cost = 18000 salvage = 3000 years = 5 per_year = (cost - salvage) / years # 3000.0 print(f"{per_year:.2f}") ``` Run output: 3000.00 $3,000.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "3000.00", "printed": "3000.00", "notation": null}
nlprog_det-setting-0053604
Sales went from 1,200 to 1,380. What is the percent change? Python version: ```python old = 1200 new = 1380 change = (new - old) / old * 100 # 15.0 print(round(change)) ``` It outputs 15. It changed by 15%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0053605
<|start|><|user|> Someone works 20 hours at $25.07 per hour. What are the earnings?<|eot|> <|assistant|> ```python rate = 25.07 hours = 20 earnings = rate * hours # 501.4 print(f"{earnings:.2f}") ``` That prints 501.40. That earns $501.40.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Someone works 20 hours at $25.07 per hour. What are the earnings?" }, { "role": "assistant", "content": "```python\nrate = 25.07\nhours = 20\nearnings = rate * hours # 501.4\nprint(f\"{earnings:.2f}\")\n```\nThat prints 501.40.\n\nThat earns $501.40." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "501.40", "printed": "501.40", "notation": null}
nlprog_det-setting-0053606
<|start|><|user|> 129 copies of a 56-page packet are printed at $0.15 per page. What is the cost?<|eot|> <|assistant|> ```python pages = 56 copies = 129 cost_per_page = 0.15 cost = pages * copies * cost_per_page # 1083.6 print(f"{cost:.2f}") ``` The run gives: 1083.60 The job costs $1,083.60.<|eot|> <|end|>
chat
[ { "role": "user", "content": "129 copies of a 56-page packet are printed at $0.15 per page. What is the cost?" }, { "role": "assistant", "content": "```python\npages = 56\ncopies = 129\ncost_per_page = 0.15\ncost = pages * copies * cost_per_page # 1083.6\nprint(f\"{cost:.2f}\")\n```\nThe run gi...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "1083.60", "printed": "1083.60", "notation": null}
nlprog_det-setting-0053607
At $0.70 per mile, what is the reimbursement for 326 miles? We write it as a program: miles = 326 rate = 0.7 reimbursement = miles * rate print(f"{reimbursement:.2f}") Console: 228.20 Ines is owed $228.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "228.20", "printed": "228.20", "notation": null}
nlprog_det-setting-0053608
Papers were served by mail on July 22, 2020. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date? Python code: ```python from datetime import date, timedelta served = date(2020, 7, 22) # datetime.date(2020, 7, 22) response_days = 21 mail_days = 3 due = served + timedelta(days=...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
180
{"gold": "2020-08-15", "printed": "2020-08-15", "notation": null}
nlprog_det-setting-0053609
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> To read 120 pages in 8 days, how many pages per day are needed?<|eot|> <|assistant|> pages = 120 days = 8 per_day = pages // days # 15 print(per_day) Result = 15 That is 15 pages per day.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "To read 120 pages in 8 days, how many pages per day are needed?" }, { "role": "assistant", "content": " pages = 120\n days = 8\n per_day = pages // days # 15\n prin...
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0053610
<|start|><|user|> A $3,600 loan carries 8% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|> <|assistant|> ```python principal = 3600 annual_rate = 8 / 100 # 0.08 months = 24 interest = principal * annual_rate * months / 12 # 576.0 payment...
chat
[ { "role": "user", "content": "A $3,600 loan carries 8% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?" }, { "role": "assistant", "content": "```python\nprincipal = 3600\nannual_rate = 8 / 100 # 0.08\nmonths = 24\ninteres...
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "174.00", "printed": "174.00", "notation": null}
nlprog_det-setting-0053611
Which is cheaper per unit: 12 for $4.39 (A) or 18 for $13.55 (B)? Coded up: ```python pack_a = 4.39 / 12 # 0.3658333333333333 pack_b = 13.55 / 18 # 0.7527777777777778 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` (Printed result: A) A has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0053612
$2,000 is invested at 4% compounded yearly. What is it worth after 2 years? Translated to Python: principal = 2000 rate = 4 / 100 # 0.04 years = 2 value = principal * (1 + rate) ** years # 2163.2000000000003 print(f"{value:.2f}") # printed: 2163.20 It is worth $2,163.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "2163.20", "printed": "2163.20", "notation": null}
nlprog_det-setting-0053613
<|start|><|user|> 1 books come back 20 days late, at $0.20 a day each. What is the fine?<|eot|> <|assistant|> per_day = 0.2 days_late = 20 books = 1 fine = per_day * days_late * books # 4.0 print(f"{fine:.2f}") It outputs 4.00. $4.00 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "1 books come back 20 days late, at $0.20 a day each. What is the fine?" }, { "role": "assistant", "content": " per_day = 0.2\n days_late = 20\n books = 1\n fine = per_day * days_late * books # 4.0\n print(f\"{fine:.2f}\")\nIt outputs 4.00.\n\n$4.00 i...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "4.00", "printed": "4.00", "notation": null}
nlprog_det-setting-0053614
A trial runs from February 3, 2026 to February 24, 2026, counting both days. How many calendar days is that? ```python from datetime import date first = date(2026, 2, 3) # datetime.date(2026, 2, 3) last = date(2026, 2, 24) # datetime.date(2026, 2, 24) days = (last - first).days + 1 # 22 print(days) ``` Run it and i...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0053615
<|start|><|user|> A 35 lb package ships at $8 base plus $2.50/lb. What is the charge?<|eot|> <|assistant|> ```python base = 8 per_pound = 2.5 weight = 35 cost = base + per_pound * weight # 95.5 print(f"{cost:.2f}") ``` # console output: 95.50 Shipping costs $95.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 35 lb package ships at $8 base plus $2.50/lb. What is the charge?" }, { "role": "assistant", "content": "```python\nbase = 8\nper_pound = 2.5\nweight = 35\ncost = base + per_pound * weight # 95.5\nprint(f\"{cost:.2f}\")\n```\n# console output: 95.50\n\nShipping c...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "95.50", "printed": "95.50", "notation": null}
nlprog_det-setting-0053616
An attorney bills 6.5 hours at $350 per hour. What is the bill? Translated to Python: ```python hours = 6.5 rate = 350 bill = hours * rate # 2275.0 print(f"{bill:.2f}") ``` Output of the run — 2275.00 The bill is $2,275.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "2275.00", "printed": "2275.00", "notation": null}
nlprog_det-setting-0053617
An office budget of $25,000 has expenses of $1,492, $2,181. How much of the budget is left? A short script: ```python budget = 25000 expenses = [1492, 2181] left = budget - sum(expenses) # 21327 print(left) ``` # out: 21327 The remaining budget is $21,327.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "21327", "printed": "21327", "notation": null}
nlprog_det-setting-0053618
Each of Sami's walks burns 350 calories. How many calories over 5 walks? ```python per_session = 350 sessions = 5 total = per_session * sessions # 1750 print(total) ``` Execution prints: 1750 That burns 1750 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "1750", "printed": "1750", "notation": null}
nlprog_det-setting-0053619
Counting the first and last day, how many days are there from August 2, 2025 through August 9, 2025? We can compute it in Python. ```python from datetime import date first = date(2025, 8, 2) # datetime.date(2025, 8, 2) last = date(2025, 8, 9) # datetime.date(2025, 8, 9) days = (last - first).days + 1 # 8 print(days...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0053620
A shift runs from 9:01 AM to 11:51 AM. How long is it in minutes? As a program: ```python start = 9 * 60 + 1 # 541 end = 11 * 60 + 51 # 711 print(end - start) ``` It outputs 170. 170 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "170", "printed": "170", "notation": null}
nlprog_det-setting-0053621
<|start|><|user|> An office budget of $8,000 has expenses of $314, $2,951, $925, $1,142. How much of the budget is left?<|eot|> <|assistant|> ```python budget = 8000 expenses = [314, 2951, 925, 1142] left = budget - sum(expenses) # 2668 print(left) ``` The program outputs: 2668 The remaining budget is $2,668.<|eot|> ...
chat
[ { "role": "user", "content": "An office budget of $8,000 has expenses of $314, $2,951, $925, $1,142. How much of the budget is left?" }, { "role": "assistant", "content": "```python\nbudget = 8000\nexpenses = [314, 2951, 925, 1142]\nleft = budget - sum(expenses) # 2668\nprint(left)\n```\nThe pr...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "2668", "printed": "2668", "notation": null}
nlprog_det-setting-0053622
2 clients win $96,000. The lawyer takes 25%, and the rest is split equally. How much does each client get? Code: ```python award = 96000 fee = award * 25 / 100 # 24000.0 remaining = award - fee # 72000.0 per_client = remaining / 2 # 36000.0 print(f"{per_client:.2f}") ``` Result — 36000.00 Each client gets $36,000....
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "36000.00", "printed": "36000.00", "notation": null}
nlprog_det-setting-0053623
<|start|><|user|> A meal costs $189.47. How much is a 18% tip?<|eot|> <|assistant|> ```python bill = 189.47 tip_rate = 18 / 100 # 0.18 tip = bill * tip_rate # 34.1046 print(f"{tip:.2f}") ``` Running it prints: 34.10 Leave $34.10.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A meal costs $189.47. How much is a 18% tip?" }, { "role": "assistant", "content": "```python\nbill = 189.47\ntip_rate = 18 / 100 # 0.18\ntip = bill * tip_rate # 34.1046\nprint(f\"{tip:.2f}\")\n```\nRunning it prints: 34.10\n\nLeave $34.10." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "34.10", "printed": "34.10", "notation": null}
nlprog_det-setting-0053624
With $20,000 in costs and $22,500 in revenue, what percent of revenue is profit? Round to one decimal. Python makes this quick: ```python revenue = 22500 costs = 20000 profit = revenue - costs # 2500 margin = profit / revenue * 100 # 11.11111111111111 print(round(margin, 1)) ``` Run output: 11.1 The margin is 11.1%...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "11.1", "printed": "11.1", "notation": null}
nlprog_det-setting-0053625
A meal costs $72.47. How much is a 18% tip? The program: ```python bill = 72.47 tip_rate = 18 / 100 # 0.18 tip = bill * tip_rate # 13.044599999999999 print(f"{tip:.2f}") ``` Output of the run — 13.04 Leave $13.04.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "13.04", "printed": "13.04", "notation": null}
nlprog_det-setting-0053626
<|start|><|user|> A $1,000 security deposit has deductions of $150, $150 and $85. How much is refunded?<|eot|> <|assistant|> ```python deposit = 1000 deductions = [150, 150, 85] refund = deposit - sum(deductions) # 615 print(refund) ``` The program prints 615, as expected. $615 is returned.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $1,000 security deposit has deductions of $150, $150 and $85. How much is refunded?" }, { "role": "assistant", "content": "```python\ndeposit = 1000\ndeductions = [150, 150, 85]\nrefund = deposit - sum(deductions) # 615\nprint(refund)\n```\nThe program prints 615...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "615", "printed": "615", "notation": null}
nlprog_det-setting-0053627
<|start|><|system|> You may call the tools below. {"name": "sandbox_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> A 12-month warrant...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"sandbox_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir...
nlprog_det
setting
original
null
deterministic
[]
[]
275
{"gold": "2022-08-09", "printed": "2022-08-09", "notation": null}
nlprog_det-setting-0053628
<|start|><|user|> Which is cheaper per unit: 12 for $9.15 (A) or 18 for $18.88 (B)?<|eot|> <|assistant|> ```python pack_a = 9.15 / 12 # 0.7625000000000001 pack_b = 18.88 / 18 # 1.0488888888888888 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` It outputs A. Pack A is cheaper per item.<|eot|> <|en...
chat
[ { "role": "user", "content": "Which is cheaper per unit: 12 for $9.15 (A) or 18 for $18.88 (B)?" }, { "role": "assistant", "content": "```python\npack_a = 9.15 / 12 # 0.7625000000000001\npack_b = 18.88 / 18 # 1.0488888888888888\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'A'\nprint(cheap...
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0053629
<|start|><|user|> Convert -20 °C to Fahrenheit.<|eot|> <|assistant|> ```python celsius = -20 fahrenheit = celsius * 9 / 5 + 32 # -4.0 print(round(fahrenheit)) ``` What it prints: -4 That is -4 °F.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert -20 °C to Fahrenheit." }, { "role": "assistant", "content": "```python\ncelsius = -20\nfahrenheit = celsius * 9 / 5 + 32 # -4.0\nprint(round(fahrenheit))\n```\nWhat it prints: -4\n\nThat is -4 °F." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "-4", "printed": "-4", "notation": null}
nlprog_det-setting-0053630
At a 4% tax rate, what is the tax on $724.05? price = 724.05 tax_rate = 4 / 100 # 0.04 tax = price * tax_rate # 28.962 print(f"{tax:.2f}") Program output: 28.96 The tax is $28.96.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "28.96", "printed": "28.96", "notation": null}
nlprog_det-setting-0053631
<|start|><|user|> How many whole days and leftover hours are in 241 hours?<|eot|> <|assistant|> ```python hours = 241 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Executing it gives 10 days and 1 hours, as expected. That is 10 days and 1 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many whole days and leftover hours are in 241 hours?" }, { "role": "assistant", "content": "```python\nhours = 241\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nExecuting it gives 10 days and 1 hours, as expected.\n\nThat is 10 ...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "10 days and 1 hours", "printed": "10 days and 1 hours", "notation": null}
nlprog_det-setting-0053632
At a 8% tax rate, what is the tax on $339.23? As Python: ```python price = 339.23 tax_rate = 8 / 100 tax = price * tax_rate print(f"{tax:.2f}") ``` When run, it prints: 27.14 The tax is $27.14.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "27.14", "printed": "27.14", "notation": null}
nlprog_det-setting-0053633
<|start|><|user|> $5,000 is invested at 3% compounded yearly. What is it worth after 3 years?<|eot|> <|assistant|> ```python principal = 5000 rate = 3 / 100 # 0.03 years = 3 value = principal * (1 + rate) ** years # 5463.635 print(f"{value:.2f}") ``` The interpreter prints: 5463.64 It is worth $5,463.64.<|eot|> <|en...
chat
[ { "role": "user", "content": "$5,000 is invested at 3% compounded yearly. What is it worth after 3 years?" }, { "role": "assistant", "content": "```python\nprincipal = 5000\nrate = 3 / 100 # 0.03\nyears = 3\nvalue = principal * (1 + rate) ** years # 5463.635\nprint(f\"{value:.2f}\")\n```\nThe ...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "5463.64", "printed": "5463.64", "notation": null}
nlprog_det-setting-0053634
4 books come back 5 days late, at $0.15 a day each. What is the fine? The fine is $3.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "3.00", "printed": "3.00", "notation": null}
nlprog_det-setting-0053635
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "interpreter", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"interpreter\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"descriptio...
nlprog_det
setting
original
null
deterministic
[]
[]
229
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0053637
A recipe for 4 people uses 150 grams of rice. How many grams are needed for 6 people? The computation: grams = 150 serves = 4 needed_for = 6 scaled = grams * needed_for // serves # 225 print(scaled) Result — 225 225 grams of rice are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "225", "printed": "225", "notation": null}
nlprog_det-setting-0053638
Under a 35% contingency agreement, what fee is owed on a $150,000 award? We write it as a program: ```python recovery = 150000 rate = 35 / 100 # 0.35 fee = recovery * rate # 52500.0 print(f"{fee:.2f}") ``` Python prints: 52500.00 The lawyer's fee comes to $52,500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "52500.00", "printed": "52500.00", "notation": null}
nlprog_det-setting-0053639
A measure needs at least 60% of 91 votes. How many votes is that, rounded up? ```python import math voters = 91 needed = math.ceil(voters * 60 / 100) # 55 print(needed) ``` Execution prints 55, as expected. 55 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "55", "printed": "55", "notation": null}
nlprog_det-setting-0053640
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "run_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"run_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source ...
nlprog_det
setting
original
null
deterministic
[]
[]
214
{"gold": "810", "printed": "810", "notation": null}
nlprog_det-setting-0053641
Sales went from 500 to 750. What is the percent change? The Python version: ```python old = 500 new = 750 change = (new - old) / old * 100 print(round(change)) ``` Console: 50 It changed by 50%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0053642
After a 25% fee is taken from a $60,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share? Python, step by step: award = 60000 fee = award * 25 / 100 # 15000.0 remaining = award - fee # 45000.0 per_client = remaining / 3 # 15000.0 print(f"{per_client:.2f}") The p...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "15000.00", "printed": "15000.00", "notation": null}
nlprog_det-setting-0053643
Tariq and Fiona share $780 in the ratio 1:3. How much does Tariq get? The program: ```python total = 780 parts_a = 1 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 195 print(share_a) ``` It outputs: 195 Tariq's share is $195.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "195", "printed": "195", "notation": null}
nlprog_det-setting-0053644
<|start|><|user|> Straight-line depreciation: cost $24,000, salvage $6,000, 5 years. How much per year?<|eot|> <|assistant|> ```python cost = 24000 salvage = 6000 years = 5 per_year = (cost - salvage) / years print(f"{per_year:.2f}") ``` Run it and it prints: 3600.00 $3,600.00 a year.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Straight-line depreciation: cost $24,000, salvage $6,000, 5 years. How much per year?" }, { "role": "assistant", "content": "```python\ncost = 24000\nsalvage = 6000\nyears = 5\nper_year = (cost - salvage) / years\nprint(f\"{per_year:.2f}\")\n```\nRun it and it print...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "3600.00", "printed": "3600.00", "notation": null}
nlprog_det-setting-0053645
<|start|><|user|> Papers were served by mail on January 21, 2028. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2028, 1, 21) # datetime.date(2028, 1, 21) response_days = 30 mail_days = 3 du...
chat
[ { "role": "user", "content": "Papers were served by mail on January 21, 2028. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nserved = date(2028, 1, 21) # dateti...
nlprog_det
setting
original
null
deterministic
[]
[]
180
{"gold": "2028-02-23", "printed": "2028-02-23", "notation": null}
nlprog_det-setting-0053646
<|start|><|system|> You help people work with structured data.<|eot|> <|user|> Leon's scores were 71, 98, 77, 67, 58, 86 and 75. What is the average score?<|eot|> <|assistant|> ```python scores = [71, 98, 77, 67, 58, 86, 75] average = sum(scores) // len(scores) # 76 print(average) ``` Executing it gives 76. The avera...
chat
[ { "role": "system", "content": "You help people work with structured data." }, { "role": "user", "content": "Leon's scores were 71, 98, 77, 67, 58, 86 and 75. What is the average score?" }, { "role": "assistant", "content": "```python\nscores = [71, 98, 77, 67, 58, 86, 75]\naverage =...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "76", "printed": "76", "notation": null}
nlprog_det-setting-0053647
<|start|><|user|> A 38 lb package ships at $12 base plus $0.75/lb. What is the charge?<|eot|> <|assistant|> ```python base = 12 per_pound = 0.75 weight = 38 cost = base + per_pound * weight print(f"{cost:.2f}") ``` Result = 40.50 Shipping costs $40.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 38 lb package ships at $12 base plus $0.75/lb. What is the charge?" }, { "role": "assistant", "content": "```python\nbase = 12\nper_pound = 0.75\nweight = 38\ncost = base + per_pound * weight\nprint(f\"{cost:.2f}\")\n```\nResult = 40.50\n\nShipping costs $40.50." ...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "40.50", "printed": "40.50", "notation": null}
nlprog_det-setting-0053648
If a 3-year limitations period starts on February 19, 2012, when does it end? Program: ```python from datetime import date accrued = date(2012, 2, 19) years = 3 expires = accrued.replace(year=accrued.year + years) print(expires.isoformat()) ``` # result: 2015-02-19 The period expires on February 19, 2015.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "2015-02-19", "printed": "2015-02-19", "notation": null}
nlprog_det-setting-0053649
Rent of $1,250 goes up 4%. What is the new rent? Set it up in Python: rent = 1250 increase = 4 / 100 # 0.04 new_rent = rent * (1 + increase) # 1300.0 print(f"{new_rent:.2f}") (Out: 1300.00) The new rent is $1,300.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "1300.00", "printed": "1300.00", "notation": null}
nlprog_det-setting-0053650
Elena's scores were 65, 84, 88, 74, 58 and 81. What is the average score? ```python scores = [65, 84, 88, 74, 58, 81] average = sum(scores) // len(scores) # 75 print(average) ``` Console: 75 The average score is 75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "75", "printed": "75", "notation": null}
nlprog_det-setting-0053651
<|start|><|user|> 147 of 200 members attended. What percent attended?<|eot|> <|assistant|> present = 147 total = 200 percent = present / total * 100 # 73.5 print(round(percent, 1)) (Printed: 73.5) Attendance was 73.5%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "147 of 200 members attended. What percent attended?" }, { "role": "assistant", "content": " present = 147\n total = 200\n percent = present / total * 100 # 73.5\n print(round(percent, 1))\n(Printed: 73.5)\n\nAttendance was 73.5%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "73.5", "printed": "73.5", "notation": null}
nlprog_det-setting-0053652
<|start|><|system|> Tools you may use: [{"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": "python", "description": "Executes a Py...
chat
[ { "role": "system", "content": "Tools you may use:\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\", \"sec...
nlprog_det
setting
original
null
deterministic
[]
[]
327
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0053653
A 7 × 10 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up? ```python import math length = 7 width = 10 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 70 print(tiles) ``` Execution prints: 70 70 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "70", "printed": "70", "notation": null}
nlprog_det-setting-0053654
Each of Yoko's swims burns 350 calories. How many calories over 4 swims? per_session = 350 sessions = 4 total = per_session * sessions # 1400 print(total) (Output: 1400) That burns 1400 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "1400", "printed": "1400", "notation": null}
nlprog_det-setting-0053655
<|start|><|user|> The statute was enacted in 1996. How many years had passed by 2032?<|eot|> <|assistant|> That is 36 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The statute was enacted in 1996. How many years had passed by 2032?" }, { "role": "assistant", "content": "That is 36 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0053656
<|start|><|system|> Tool definitions: {"name": "interpreter", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> Notice was gi...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"interpreter\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"r...
nlprog_det
setting
original
null
deterministic
[]
[]
237
{"gold": "2026-11-15", "printed": "2026-11-15", "notation": null}
nlprog_det-setting-0053658
With 10% off, what does a $40 kettle cost? It costs $36.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
24
{"gold": "36.00", "printed": "36.00", "notation": null}
nlprog_det-setting-0053659
<|start|><|user|> How many days are there from July 17, 2022 to August 29, 2022?<|eot|> <|assistant|> from datetime import date first = date(2022, 7, 17) # datetime.date(2022, 7, 17) second = date(2022, 8, 29) # datetime.date(2022, 8, 29) print((second - first).days) (Printed: 43) There are 43 days b...
chat
[ { "role": "user", "content": "How many days are there from July 17, 2022 to August 29, 2022?" }, { "role": "assistant", "content": " from datetime import date\n first = date(2022, 7, 17) # datetime.date(2022, 7, 17)\n second = date(2022, 8, 29) # datetime.date(2022, 8, 29)\n print(...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "43", "printed": "43", "notation": null}
nlprog_det-setting-0053660
From 2005 to 2041, how many years is that? One way, in code: ```python start_year = 2005 end_year = 2041 print(end_year - start_year) ``` Output — 36 36 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
68
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0053661
Someone born April 24, 1976 turns how old by January 8, 2029? Give the age in whole years. Python, step by step: ```python from datetime import date born = date(1976, 4, 24) # datetime.date(1976, 4, 24) on = date(2029, 1, 8) # datetime.date(2029, 1, 8) age = on.year - born.year - ((on.month, on.day) < (born.month, b...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
163
{"gold": "52", "printed": "52", "notation": null}
nlprog_det-setting-0053662
How long, in days, is it from August 1, 2022 until March 26, 2023? There are 237 days between the two dates.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "237", "printed": "237", "notation": null}
nlprog_det-setting-0053663
<|start|><|system|> Give the answer first.<|eot|> <|user|> A recipe for 8 people uses 150 grams of sugar. How many grams are needed for 12 people?<|eot|> <|assistant|> 225 grams of sugar are needed.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Give the answer first." }, { "role": "user", "content": "A recipe for 8 people uses 150 grams of sugar. How many grams are needed for 12 people?" }, { "role": "assistant", "content": "225 grams of sugar are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
52
{"gold": "225", "printed": "225", "notation": null}
nlprog_det-setting-0053664
A clerk's office charges $35 for each filing. Idris submits 9 filings. What is the total fee? Python does the arithmetic: ```python fee = 35 filings = 9 total = fee * filings # 315 print(total) ``` (Result: 315) The filings cost $315 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "315", "printed": "315", "notation": null}
nlprog_det-setting-0053665
Water costs $18 a month plus $4.75 for each 1,000 gallons over 0,000. What is owed for 4,000 gallons? The computation: ```python base = 18 rate = 4.75 used = 4 free = 0 bill = base + rate * max(0, used - free) print(f"{bill:.2f}") ``` On running, it outputs 37.00. The bill is $37.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "37.00", "printed": "37.00", "notation": null}
nlprog_det-setting-0053666
<|start|><|user|> A 90-day notice period begins on March 2, 2021. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2021, 3, 2) # datetime.date(2021, 3, 2) end = start + timedelta(days=90) # datetime.date(2021, 5, 31) print(end.isoformat()) ``` This prints 2021...
chat
[ { "role": "user", "content": "A 90-day notice period begins on March 2, 2021. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2021, 3, 2) # datetime.date(2021, 3, 2)\nend = start + timedelta(days=90) # datetime.date...
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "2021-05-31", "printed": "2021-05-31", "notation": null}
nlprog_det-setting-0053667
<|start|><|user|> Equipment costs $45,000, has a salvage value of $3,000, and a useful life of 6 years. What is the straight-line depreciation per year?<|eot|> <|assistant|> ```python cost = 45000 salvage = 3000 years = 6 per_year = (cost - salvage) / years # 7000.0 print(f"{per_year:.2f}") ``` On running, it outputs ...
chat
[ { "role": "user", "content": "Equipment costs $45,000, has a salvage value of $3,000, and a useful life of 6 years. What is the straight-line depreciation per year?" }, { "role": "assistant", "content": "```python\ncost = 45000\nsalvage = 3000\nyears = 6\nper_year = (cost - salvage) / years # 7...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "7000.00", "printed": "7000.00", "notation": null}
nlprog_det-setting-0053668
<|start|><|system|> Answer in plain English.<|eot|> <|user|> If a 90-minute seminar begins at 9:45 AM, what time does it finish?<|eot|> <|assistant|> It ends at 11:15 AM.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer in plain English." }, { "role": "user", "content": "If a 90-minute seminar begins at 9:45 AM, what time does it finish?" }, { "role": "assistant", "content": "It ends at 11:15 AM." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
50
{"gold": "11:15 AM", "printed": "11:15 AM", "notation": null}
nlprog_det-setting-0053669
At 1.5% a month (simple), what interest builds on $1,000 over 2 months? Written as code: ```python balance = 1000 monthly_rate = 1.5 / 100 # 0.015 months = 2 interest = balance * monthly_rate * months # 30.0 print(f"{interest:.2f}") ``` (Printed result: 30.00) The interest is $30.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "30.00", "printed": "30.00", "notation": null}