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-0075929
<|start|><|user|> Starting from $20,000, the team spends $452, $2,332, $3,439, $3,968. What remains?<|eot|> <|assistant|> ```python budget = 20000 expenses = [452, 2332, 3439, 3968] left = budget - sum(expenses) # 9809 print(left) ``` That prints 9809. $9,809 is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting from $20,000, the team spends $452, $2,332, $3,439, $3,968. What remains?" }, { "role": "assistant", "content": "```python\nbudget = 20000\nexpenses = [452, 2332, 3439, 3968]\nleft = budget - sum(expenses) # 9809\nprint(left)\n```\nThat prints 9809.\n\n$9,...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "9809", "printed": "9809", "notation": null}
nlprog_det-setting-0075930
A claim accrued on February 12, 2021. The limitations period is 5 years. On what date does it expire? In code: ```python from datetime import date accrued = date(2021, 2, 12) # datetime.date(2021, 2, 12) years = 5 expires = accrued.replace(year=accrued.year + years) # datetime.date(2026, 2, 12) print(expires.isoform...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "2026-02-12", "printed": "2026-02-12", "notation": null}
nlprog_det-setting-0075931
What day of the week is September 5, 2024? Let's compute it with Python. ```python from datetime import date hearing = date(2024, 9, 5) # datetime.date(2024, 9, 5) print(hearing.strftime("%A")) ``` Execution prints: Thursday September 5, 2024 is a Thursday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "Thursday", "printed": "Thursday", "notation": null}
nlprog_det-setting-0075932
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "compute", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|>...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"compute\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python sourc...
nlprog_det
setting
original
null
deterministic
[]
[]
250
{"gold": "10:10 AM", "printed": "10:10 AM", "notation": null}
nlprog_det-setting-0075933
7 boxes hold 6 mugs each. After 9 are handed out, how many are left? In code: ```python boxes = 7 per_box = 6 given_away = 9 left = boxes * per_box - given_away # 33 print(left) ``` What it prints — 33 That leaves 33 mugs.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "33", "printed": "33", "notation": null}
nlprog_det-setting-0075934
<|start|><|system|> Give the answer first.<|eot|> <|user|> Which is cheaper per unit: 10 for $7.41 (A) or 18 for $12.27 (B)?<|eot|> <|assistant|> ```python pack_a = 7.41 / 10 # 0.741 pack_b = 12.27 / 18 # 0.6816666666666666 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` # output: B B has the low...
chat
[ { "role": "system", "content": "Give the answer first." }, { "role": "user", "content": "Which is cheaper per unit: 10 for $7.41 (A) or 18 for $12.27 (B)?" }, { "role": "assistant", "content": "```python\npack_a = 7.41 / 10 # 0.741\npack_b = 12.27 / 18 # 0.6816666666666666\ncheaper...
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0075935
<|start|><|system|> You have access to these functions: {"name": "python_exec", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> At 65 miles per...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"python_exec\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"req...
nlprog_det
setting
original
null
deterministic
[]
[]
208
{"gold": "240", "printed": "240", "notation": null}
nlprog_det-setting-0075936
<|start|><|user|> A 12-month warranty starts on October 15, 2018. On what date does it end?<|eot|> <|assistant|> from datetime import date start = date(2018, 10, 15) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) p...
chat
[ { "role": "user", "content": "A 12-month warranty starts on October 15, 2018. On what date does it end?" }, { "role": "assistant", "content": " from datetime import date\n start = date(2018, 10, 15)\n months = 12\n years, month_index = divmod(start.month - 1 + months, 12)\n end = ...
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "2019-10-15", "printed": "2019-10-15", "notation": null}
nlprog_det-setting-0075937
How many units at $30 each (variable cost $26) cover $1,200 of fixed costs? Computing it: import math fixed = 1200 price = 30 variable = 26 units = math.ceil(fixed / (price - variable)) # 300 print(units) Run result = 300 300 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0075938
Express 399 hours in days and hours. As Python: ```python hours = 399 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` # out: 16 days and 15 hours 399 hours is 16 days and 15 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "16 days and 15 hours", "printed": "16 days and 15 hours", "notation": null}
nlprog_det-setting-0075939
<|start|><|user|> 9 boxes hold 8 calendars each. After 15 are handed out, how many are left?<|eot|> <|assistant|> ```python boxes = 9 per_box = 8 given_away = 15 left = boxes * per_box - given_away # 57 print(left) ``` Result: 57 57 calendars are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "9 boxes hold 8 calendars each. After 15 are handed out, how many are left?" }, { "role": "assistant", "content": "```python\nboxes = 9\nper_box = 8\ngiven_away = 15\nleft = boxes * per_box - given_away # 57\nprint(left)\n```\nResult:\n57\n\n57 calendars are left." ...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "57", "printed": "57", "notation": null}
nlprog_det-setting-0075940
Attendance was 42 out of 50. Express it as a percent. The computation: ```python present = 42 total = 50 percent = present / total * 100 # 84.0 print(round(percent, 1)) ``` On running, it outputs: 84.0 84.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "84.0", "printed": "84.0", "notation": null}
nlprog_det-setting-0075941
A shift runs from 10:49 AM to 4:13 PM. How long is it in minutes? The program: ```python start = 10 * 60 + 49 # 649 end = 16 * 60 + 13 # 973 print(end - start) ``` The run gives 324. 324 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "324", "printed": "324", "notation": null}
nlprog_det-setting-0075942
<|start|><|user|> With 40% off, what does a $45 backpack cost?<|eot|> <|assistant|> ```python price = 45 discount = 40 / 100 sale_price = price * (1 - discount) print(f"{sale_price:.2f}") ``` Output of the run — 27.00 The sale price is $27.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 40% off, what does a $45 backpack cost?" }, { "role": "assistant", "content": "```python\nprice = 45\ndiscount = 40 / 100\nsale_price = price * (1 - discount)\nprint(f\"{sale_price:.2f}\")\n```\nOutput of the run — 27.00\n\nThe sale price is $27.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "27.00", "printed": "27.00", "notation": null}
nlprog_det-setting-0075943
<|start|><|user|> Pack A has 6 items for $5.36. Pack B has 15 items for $6.51. Which has the lower price per item?<|eot|> <|assistant|> ```python pack_a = 5.36 / 6 # 0.8933333333333334 pack_b = 6.51 / 15 # 0.434 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` Running it prints: B B has the lower ...
chat
[ { "role": "user", "content": "Pack A has 6 items for $5.36. Pack B has 15 items for $6.51. Which has the lower price per item?" }, { "role": "assistant", "content": "```python\npack_a = 5.36 / 6 # 0.8933333333333334\npack_b = 6.51 / 15 # 0.434\ncheaper = \"A\" if pack_a < pack_b else \"B\" # ...
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0075944
A court charges $5 per request plus $0.25 per page after the first 0 pages. What does a 90-page copy cost? The Python version: ```python pages = 90 base = 5 per_page = 0.25 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 27.5 print(f"{cost:.2f}") ``` The program outputs: 27.50 The total is $27.5...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "27.50", "printed": "27.50", "notation": null}
nlprog_det-setting-0075945
A 24-month warranty starts on November 6, 2019. On what date does it end? Script: ```python from datetime import date start = date(2019, 11, 6) months = 24 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` The script prints 2...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "2021-11-06", "printed": "2021-11-06", "notation": null}
nlprog_det-setting-0075946
<|start|><|system|> Tools you may use: [{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "translate", "description": "Translate text into another language.", "parame...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"name\": \"translate\", \"descri...
nlprog_det
setting
original
null
deterministic
[]
[]
458
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0075947
<|start|><|system|> You help paralegals with routine tasks.<|eot|> <|user|> At 2% a month (simple), what interest builds on $7,500 over 5 months?<|eot|> <|assistant|> $750.00 accrues.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help paralegals with routine tasks." }, { "role": "user", "content": "At 2% a month (simple), what interest builds on $7,500 over 5 months?" }, { "role": "assistant", "content": "$750.00 accrues." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
55
{"gold": "750.00", "printed": "750.00", "notation": null}
nlprog_det-setting-0075948
<|start|><|user|> A settlement of $7,344 is split equally among 8 parties. How much does each party receive?<|eot|> <|assistant|> Each share is $918.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A settlement of $7,344 is split equally among 8 parties. How much does each party receive?" }, { "role": "assistant", "content": "Each share is $918." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "918", "printed": "918", "notation": null}
nlprog_det-setting-0075949
A trial runs from September 2, 2021 to September 15, 2021, counting both days. How many calendar days is that? The computation: ```python from datetime import date first = date(2021, 9, 2) # datetime.date(2021, 9, 2) last = date(2021, 9, 15) # datetime.date(2021, 9, 15) days = (last - first).days + 1 # 14 print(day...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0075950
A settlement of $84,000 is split equally among 3 parties. How much does each party receive? Python makes this quick: ```python settlement = 84000 parties = 3 share = settlement // parties print(share) ``` The interpreter prints: 28000 Each share is $28,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "28000", "printed": "28000", "notation": null}
nlprog_det-setting-0075951
A lease runs for 24 months at $850 per month. How much rent is paid over the whole term? A Python solution: ```python monthly_rent = 850 months = 24 total = monthly_rent * months # 20400 print(total) ``` The printout reads: 20400 The rent over the term is $20,400.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "20400", "printed": "20400", "notation": null}
nlprog_det-setting-0075952
<|start|><|user|> With 18 rows of 12 chairs and 5 empty chairs, how many chairs are taken?<|eot|> <|assistant|> 211 people are seated.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 18 rows of 12 chairs and 5 empty chairs, how many chairs are taken?" }, { "role": "assistant", "content": "211 people are seated." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "211", "printed": "211", "notation": null}
nlprog_det-setting-0075953
<|start|><|user|> Reza drove 174 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement?<|eot|> <|assistant|> ```python miles = 174 rate = 0.58 reimbursement = miles * rate # 100.91999999999999 print(f"{reimbursement:.2f}") ``` (Run result: 100.92) Reza is owed $100.92.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Reza drove 174 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement?" }, { "role": "assistant", "content": "```python\nmiles = 174\nrate = 0.58\nreimbursement = miles * rate # 100.91999999999999\nprint(f\"{reimbursement:.2f}\")\n`...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "100.92", "printed": "100.92", "notation": null}
nlprog_det-setting-0075954
<|start|><|user|> 36 headsets cost $24 apiece. With 8% tax added, what is the total?<|eot|> <|assistant|> The invoice total is $933.12.<|eot|> <|end|>
chat
[ { "role": "user", "content": "36 headsets cost $24 apiece. With 8% tax added, what is the total?" }, { "role": "assistant", "content": "The invoice total is $933.12." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "933.12", "printed": "933.12", "notation": null}
nlprog_det-setting-0075955
The rules require 2/3 of 37 members (round up) to be present. How many is that? As a program: ```python import math members = 37 quorum = math.ceil(members * 2 / 3) # 25 print(quorum) ``` On running, it outputs: 25 That is 25 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0075956
Bruna and Leon share $3,036 in the ratio 1:3. How much does Bruna get? We can compute it in Python. ```python total = 3036 parts_a = 1 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) print(share_a) ``` Execution prints 759. Bruna gets $759.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "759", "printed": "759", "notation": null}
nlprog_det-setting-0075957
One can of paint covers 400 square feet. How many cans are needed for 475 square feet of wall? In code: ```python import math area = 475 coverage = 400 cans = math.ceil(area / coverage) print(cans) ``` Printed result: 2 Buy 2 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0075958
<|start|><|user|> 32 tape rolls cost $6 apiece. With 5% tax added, what is the total?<|eot|> <|assistant|> ```python quantity = 32 unit_price = 6 subtotal = quantity * unit_price # 192 total = subtotal * (1 + 5 / 100) # 201.60000000000002 print(f"{total:.2f}") ``` This prints: 201.60 The invoice total is $201.60.<|e...
chat
[ { "role": "user", "content": "32 tape rolls cost $6 apiece. With 5% tax added, what is the total?" }, { "role": "assistant", "content": "```python\nquantity = 32\nunit_price = 6\nsubtotal = quantity * unit_price # 192\ntotal = subtotal * (1 + 5 / 100) # 201.60000000000002\nprint(f\"{total:.2f}...
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "201.60", "printed": "201.60", "notation": null}
nlprog_det-setting-0075959
Monthly: $25. Annual: $264. What is saved per year by paying annually? The annual plan saves $36.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0075960
A 6% increase is applied to $1,500 monthly rent. What is the new amount? Here is the program. ```python rent = 1500 increase = 6 / 100 # 0.06 new_rent = rent * (1 + increase) # 1590.0 print(f"{new_rent:.2f}") ``` Execution prints 1590.00, as expected. It rises to $1,590.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "1590.00", "printed": "1590.00", "notation": null}
nlprog_det-setting-0075961
<|start|><|user|> Dara earns a 3% commission on $85,372 of sales. What is the commission?<|eot|> <|assistant|> ```python sales = 85372 rate = 3 / 100 # 0.03 commission = sales * rate # 2561.16 print(f"{commission:.2f}") ``` # program output: 2561.16 The commission is $2,561.16.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Dara earns a 3% commission on $85,372 of sales. What is the commission?" }, { "role": "assistant", "content": "```python\nsales = 85372\nrate = 3 / 100 # 0.03\ncommission = sales * rate # 2561.16\nprint(f\"{commission:.2f}\")\n```\n# program output: 2561.16\n\nThe...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "2561.16", "printed": "2561.16", "notation": null}
nlprog_det-setting-0075962
An unpaid balance of $7,500 accrues 1% simple interest per month. How much interest accrues in 3 months? Program: ```python balance = 7500 monthly_rate = 1 / 100 # 0.01 months = 3 interest = balance * monthly_rate * months # 225.0 print(f"{interest:.2f}") ``` stdout — 225.00 $225.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "225.00", "printed": "225.00", "notation": null}
nlprog_det-setting-0075963
Convert 4,731 USD to CAD at 1 USD = 0.74 CAD. Programmatically: ```python amount = 4731 rate = 0.74 converted = amount * rate # 3500.94 print(f"{converted:.2f}") ``` (Console output: 3500.94) It converts to 3,500.94 CAD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "3500.94", "printed": "3500.94", "notation": null}
nlprog_det-setting-0075964
<|start|><|user|> If a 105-minute seminar begins at 2:40 PM, what time does it finish?<|eot|> <|assistant|> ```python start = 14 * 60 + 40 end = start + 105 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Output = 4:25 PM The seminar finishes at 4:25 PM.<|e...
chat
[ { "role": "user", "content": "If a 105-minute seminar begins at 2:40 PM, what time does it finish?" }, { "role": "assistant", "content": "```python\nstart = 14 * 60 + 40\nend = start + 105\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}\...
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "4:25 PM", "printed": "4:25 PM", "notation": null}
nlprog_det-setting-0075965
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "math_engine", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> Ho...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"math_engine\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source cod...
nlprog_det
setting
original
null
deterministic
[]
[]
218
{"gold": "15 days and 11 hours", "printed": "15 days and 11 hours", "notation": null}
nlprog_det-setting-0075966
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> How many of 232 votes make 60% (round up)?<|eot|> <|assistant|> ```python import math voters = 232 needed = math.ceil(voters * 60 / 100) # 140 print(needed) ``` Result = 140 At least 140 votes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "How many of 232 votes make 60% (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 232\nneeded = math.ceil(voters * 60 / 100) # 140\nprint(needed)\n```\nResult ...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "140", "printed": "140", "notation": null}
nlprog_det-setting-0075967
<|start|><|system|> You can call tools. Available tools: [{"name": "interpreter", "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": ["code"]}}]<|eot|> <|use...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"interpreter\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python so...
nlprog_det
setting
original
null
deterministic
[]
[]
216
{"gold": "66", "printed": "66", "notation": null}
nlprog_det-setting-0075968
A quorum is 2/3 of the 24 members, rounded up. How many members make a quorum? Here's the code. ```python import math members = 24 quorum = math.ceil(members * 2 / 3) # 16 print(quorum) ``` Executing it gives: 16 16 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0075969
<|start|><|user|> Fixed costs are $4,000. Each unit sells for $40 and costs $30 to make. How many units must be sold to break even?<|eot|> <|assistant|> ```python import math fixed = 4000 price = 40 variable = 30 units = math.ceil(fixed / (price - variable)) # 400 print(units) ``` The code prints: 400 400 units are n...
chat
[ { "role": "user", "content": "Fixed costs are $4,000. Each unit sells for $40 and costs $30 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 4000\nprice = 40\nvariable = 30\nunits = math.ceil(fixed / (price - variable)) #...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "400", "printed": "400", "notation": null}
nlprog_det-setting-0075970
Scale 450 g of lentils from 6 servings to 4 servings. grams = 450 serves = 6 needed_for = 4 scaled = grams * needed_for // serves # 300 print(scaled) Result: 300 300 grams of lentils are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0075971
An attorney bills 6.5 hours at $180 per hour. What is the bill? Python makes this quick: ```python hours = 6.5 rate = 180 bill = hours * rate # 1170.0 print(f"{bill:.2f}") ``` (stdout: 1170.00) The bill is $1,170.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "1170.00", "printed": "1170.00", "notation": null}
nlprog_det-setting-0075972
How many units at $30 each (variable cost $20) cover $9,000 of fixed costs? We write it as a program: ```python import math fixed = 9000 price = 30 variable = 20 units = math.ceil(fixed / (price - variable)) # 900 print(units) ``` (Printed result: 900) 900 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0075973
A garage charges $4 an hour, never more than $15 a day. How much for 2 hours? Python version: ```python rate = 4 hours = 2 daily_max = 15 cost = min(rate * hours, daily_max) print(cost) ``` The program prints 8, as expected. The charge is $8.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0075974
What does $5,000 grow to in 5 years at 5% annual compounding? Coded up: principal = 5000 rate = 5 / 100 years = 5 value = principal * (1 + rate) ** years print(f"{value:.2f}") It prints 6381.41, as expected. It is worth $6,381.41.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "6381.41", "printed": "6381.41", "notation": null}
nlprog_det-setting-0075975
<|start|><|system|> Tool definitions: [{"name": "py_exec", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> What is -10 degrees Celsius in Fa...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"py_exec\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program\...
nlprog_det
setting
original
null
deterministic
[]
[]
206
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0075976
A lawyer's fee is 40% of a $150,000 recovery. How large is the fee? Computation in Python: ```python recovery = 150000 rate = 40 / 100 # 0.4 fee = recovery * rate # 60000.0 print(f"{fee:.2f}") ``` It prints 60000.00, as expected. The lawyer's fee comes to $60,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "60000.00", "printed": "60000.00", "notation": null}
nlprog_det-setting-0075977
A trial runs from October 14, 2025 to October 25, 2025, counting both days. How many calendar days is that? Python code: ```python from datetime import date first = date(2025, 10, 14) # datetime.date(2025, 10, 14) last = date(2025, 10, 25) # datetime.date(2025, 10, 25) days = (last - first).days + 1 # 12 print(days...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0075978
Water costs $15 a month plus $4.20 for each 1,000 gallons over 3,000. What is owed for 9,000 gallons? $40.20 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "40.20", "printed": "40.20", "notation": null}
nlprog_det-setting-0075979
At an exchange rate of 0.92 EUR per USD, how many EUR is 1,917 USD? That is 1,763.64 EUR.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "1763.64", "printed": "1763.64", "notation": null}
nlprog_det-setting-0075981
A client paid a $10,000 retainer. The firm has billed 13 hours at $200 per hour. How much of the retainer is left? The Python version: ```python retainer = 10000 hours = 13 rate = 200 left = retainer - hours * rate # 7400 print(left) ``` It outputs 7400. $7,400 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "7400", "printed": "7400", "notation": null}
nlprog_det-setting-0075982
<|start|><|system|> Tools you may use: [{"name": "eval_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> Starting from $20,...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"eval_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require...
nlprog_det
setting
original
null
deterministic
[]
[]
244
{"gold": "10929", "printed": "10929", "notation": null}
nlprog_det-setting-0075983
After a 25% fee is taken from a $96,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share? Let the code do the arithmetic: ```python award = 96000 fee = award * 25 / 100 # 24000.0 remaining = award - fee # 72000.0 per_client = remaining / 3 # 24000.0 print(f"{per_client:.2f}") ``` #...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "24000.00", "printed": "24000.00", "notation": null}
nlprog_det-setting-0075984
105 volunteers are split into 4 equal teams. How many are on each team, and how many are left over? Let the code do the arithmetic: ```python total = 105 groups = 4 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` On running, it outputs: 26 each, 1 left over The answe...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "26 each, 1 left over", "printed": "26 each, 1 left over", "notation": null}
nlprog_det-setting-0075985
Viktor drove 105 miles for work. Mileage is reimbursed at 70 cents a mile. How much is the reimbursement? Viktor is owed $73.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "73.50", "printed": "73.50", "notation": null}
nlprog_det-setting-0075986
Convert 1 h 6 min (the length of a hearing) to minutes. A few lines of Python do it: ```python hours = 1 minutes = 6 total_minutes = hours * 60 + minutes # 66 print(total_minutes) ``` (Program output: 66) The hearing lasted 66 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "66", "printed": "66", "notation": null}
nlprog_det-setting-0075988
<|start|><|user|> To read 481 pages in 13 days, how many pages per day are needed?<|eot|> <|assistant|> ```python pages = 481 days = 13 per_day = pages // days # 37 print(per_day) ``` The code prints 37. 37 pages a day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "To read 481 pages in 13 days, how many pages per day are needed?" }, { "role": "assistant", "content": "```python\npages = 481\ndays = 13\nper_day = pages // days # 37\nprint(per_day)\n```\nThe code prints 37.\n\n37 pages a day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "37", "printed": "37", "notation": null}
nlprog_det-setting-0075989
Starting from $25,000, the team spends $2,836, $1,084, $1,353. What remains? ```python budget = 25000 expenses = [2836, 1084, 1353] left = budget - sum(expenses) # 19727 print(left) ``` That prints: 19727 $19,727 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "19727", "printed": "19727", "notation": null}
nlprog_det-setting-0075990
Fines run at $250 per day up to a maximum of $1,000. How much after 4 days? ```python per_day = 250 days = 4 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` This prints: 1000 The fine is $1,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0075991
A 15 lb package ships at $8 base plus $1.50/lb. What is the charge? Here is a short program for it. base = 8 per_pound = 1.5 weight = 15 cost = base + per_pound * weight # 30.5 print(f"{cost:.2f}") # result: 30.50 The charge is $30.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "30.50", "printed": "30.50", "notation": null}
nlprog_det-setting-0075992
<|start|><|user|> At $24.57 an hour, what does 40 hours of work pay?<|eot|> <|assistant|> ```python rate = 24.57 hours = 40 earnings = rate * hours # 982.8 print(f"{earnings:.2f}") ``` # stdout: 982.80 That earns $982.80.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $24.57 an hour, what does 40 hours of work pay?" }, { "role": "assistant", "content": "```python\nrate = 24.57\nhours = 40\nearnings = rate * hours # 982.8\nprint(f\"{earnings:.2f}\")\n```\n# stdout: 982.80\n\nThat earns $982.80." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "982.80", "printed": "982.80", "notation": null}
nlprog_det-setting-0075993
Split $2,597 between Ines and Ivan in the ratio 2 to 5. What is Ines's share? The Python version: ```python total = 2597 parts_a = 2 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 742 print(share_a) ``` Executed, it shows: 742 Ines's share is $742.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "742", "printed": "742", "notation": null}
nlprog_det-setting-0075994
<|start|><|user|> A court charges $5 per request plus $0.50 per page after the first 10 pages. What does a 82-page copy cost?<|eot|> <|assistant|> ```python pages = 82 base = 5 per_page = 0.5 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 41.0 print(f"{cost:.2f}") ``` This prints: 41.00 The cop...
chat
[ { "role": "user", "content": "A court charges $5 per request plus $0.50 per page after the first 10 pages. What does a 82-page copy cost?" }, { "role": "assistant", "content": "```python\npages = 82\nbase = 5\nper_page = 0.5\nfree_pages = 10\ncost = base + max(0, pages - free_pages) * per_page ...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "41.00", "printed": "41.00", "notation": null}
nlprog_det-setting-0075995
How many meters are in 67.2 kilometers? Computation in Python: ```python km = 67.2 meters = km * 1000 # 67200.0 print(round(meters)) ``` Result — 67200 That is 67,200 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "67200", "printed": "67200", "notation": null}
nlprog_det-setting-0075996
1 books come back 28 days late, at $0.20 a day each. What is the fine? ```python per_day = 0.2 days_late = 28 books = 1 fine = per_day * days_late * books # 5.6000000000000005 print(f"{fine:.2f}") ``` # output: 5.60 $5.60 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "5.60", "printed": "5.60", "notation": null}
nlprog_det-setting-0075997
<|start|><|user|> Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 45 hours?<|eot|> <|assistant|> ```python rate = 25.0 hours = 45 regular = 40 * rate # 1000.0 overtime = (hours - 40) * rate * 1.5 # 187.5 pay = regular + overtime # 1187.5 print(f"{pay:.2f}") ``` Printed: 1187.50...
chat
[ { "role": "user", "content": "Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 45 hours?" }, { "role": "assistant", "content": "```python\nrate = 25.0\nhours = 45\nregular = 40 * rate # 1000.0\novertime = (hours - 40) * rate * 1.5 # 187.5\npay = regular + ...
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "1187.50", "printed": "1187.50", "notation": null}
nlprog_det-setting-0075998
<|start|><|user|> Counting only Monday through Friday, how many business days are there after June 28, 2025 through July 29, 2025?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2025, 6, 28) end = date(2025, 7, 29) count = 0 for k in range(1, (end - start).days + 1): if (start + ti...
chat
[ { "role": "user", "content": "Counting only Monday through Friday, how many business days are there after June 28, 2025 through July 29, 2025?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2025, 6, 28)\nend = date(2025, 7, 29)\ncount = 0\nfo...
nlprog_det
setting
original
null
deterministic
[]
[]
159
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0075999
<|start|><|user|> Yara earns a 6% commission on $69,324 of sales. What is the commission?<|eot|> <|assistant|> ```python sales = 69324 rate = 6 / 100 # 0.06 commission = sales * rate # 4159.44 print(f"{commission:.2f}") ``` # execution result: 4159.44 Yara earns $4,159.44.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Yara earns a 6% commission on $69,324 of sales. What is the commission?" }, { "role": "assistant", "content": "```python\nsales = 69324\nrate = 6 / 100 # 0.06\ncommission = sales * rate # 4159.44\nprint(f\"{commission:.2f}\")\n```\n# execution result: 4159.44\n\nY...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "4159.44", "printed": "4159.44", "notation": null}
nlprog_det-setting-0076000
A 4 × 5 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up? Here is the program. ```python import math length = 4 width = 5 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 5 print(tiles) ``` Result = 5 It takes 5 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0076001
<|start|><|system|> Double-check numbers before answering.<|eot|> <|user|> A count moves from 1,200 to 1,440. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> ```python old = 1200 new = 1440 change = (new - old) / old * 100 # 20.0 print(round(change)) ``` It prints 20. The change is 2...
chat
[ { "role": "system", "content": "Double-check numbers before answering." }, { "role": "user", "content": "A count moves from 1,200 to 1,440. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": "```python\nold = 1200\nnew = 1440\nchange = ...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0076002
<|start|><|user|> What percentage of $8,000 is $5,200?<|eot|> <|assistant|> ```python budget = 8000 spent = 5200 percent = spent / budget * 100 # 65.0 print(round(percent, 1)) ``` # printed result: 65.0 65.0% has been spent.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What percentage of $8,000 is $5,200?" }, { "role": "assistant", "content": "```python\nbudget = 8000\nspent = 5200\npercent = spent / budget * 100 # 65.0\nprint(round(percent, 1))\n```\n# printed result: 65.0\n\n65.0% has been spent." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "65.0", "printed": "65.0", "notation": null}
nlprog_det-setting-0076003
At an exchange rate of 0.92 USD per EUR, how many USD is 6,251 EUR? Program: ```python amount = 6251 rate = 0.92 converted = amount * rate # 5750.92 print(f"{converted:.2f}") ``` Console: 5750.92 It converts to 5,750.92 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "5750.92", "printed": "5750.92", "notation": null}
nlprog_det-setting-0076004
<|start|><|system|> Available functions (JSON Schema): [{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "translate", "description": "Translate text into another language.", "parameters"...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"translate\", \"description...
nlprog_det
setting
original
null
deterministic
[]
[]
396
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0076005
Grace drove 553 miles for work. Mileage is reimbursed at 67 cents a mile. How much is the reimbursement? Script: ```python miles = 553 rate = 0.67 reimbursement = miles * rate # 370.51000000000005 print(f"{reimbursement:.2f}") ``` That prints 370.51. Grace is owed $370.51.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "370.51", "printed": "370.51", "notation": null}
nlprog_det-setting-0076006
Reza buys 9 boxes of 12 water bottles each and gives away 16 water bottles. How many water bottles are left? We write it as a program: ```python boxes = 9 per_box = 12 given_away = 16 left = boxes * per_box - given_away # 92 print(left) ``` Output of the run: 92 That leaves 92 water bottles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "92", "printed": "92", "notation": null}
nlprog_det-setting-0076007
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "compute", "descriptio...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required...
nlprog_det
setting
original
null
deterministic
[]
[]
355
{"gold": "206", "printed": "206", "notation": null}
nlprog_det-setting-0076008
The rules require 2/3 of 58 members (round up) to be present. How many is that? Script: ```python import math members = 58 quorum = math.ceil(members * 2 / 3) # 39 print(quorum) ``` The script prints 39. That is 39 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "39", "printed": "39", "notation": null}
nlprog_det-setting-0076009
At 2% a month (simple), what interest builds on $7,500 over 2 months? One way, in code: ```python balance = 7500 monthly_rate = 2 / 100 # 0.02 months = 2 interest = balance * monthly_rate * months # 300.0 print(f"{interest:.2f}") ``` Python prints 300.00. $300.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "300.00", "printed": "300.00", "notation": null}
nlprog_det-setting-0076010
<|start|><|user|> Count the days between April 18, 2023 and August 4, 2023.<|eot|> <|assistant|> ```python from datetime import date first = date(2023, 4, 18) # datetime.date(2023, 4, 18) second = date(2023, 8, 4) # datetime.date(2023, 8, 4) print((second - first).days) ``` Shell output: 108 It is 108 days.<|eot|> <...
chat
[ { "role": "user", "content": "Count the days between April 18, 2023 and August 4, 2023." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2023, 4, 18) # datetime.date(2023, 4, 18)\nsecond = date(2023, 8, 4) # datetime.date(2023, 8, 4)\nprint((second - fi...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "108", "printed": "108", "notation": null}
nlprog_det-setting-0076011
Notice was given on July 22, 2018. The notice period is 120 days. When does it run out? Python makes this quick: from datetime import date, timedelta start = date(2018, 7, 22) # datetime.date(2018, 7, 22) end = start + timedelta(days=120) # datetime.date(2018, 11, 19) print(end.isoformat()) On runnin...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "2018-11-19", "printed": "2018-11-19", "notation": null}
nlprog_det-setting-0076012
Count the days between July 27, 2020 and February 23, 2021. In Python: ```python from datetime import date first = date(2020, 7, 27) # datetime.date(2020, 7, 27) second = date(2021, 2, 23) # datetime.date(2021, 2, 23) print((second - first).days) ``` The code prints: 211 It is 211 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "211", "printed": "211", "notation": null}
nlprog_det-setting-0076013
<|start|><|system|> Available functions (JSON Schema): [{"name": "python_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> Reza earns a 5% commiss...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"python_exec\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": ...
nlprog_det
setting
original
null
deterministic
[]
[]
232
{"gold": "5238.35", "printed": "5238.35", "notation": null}
nlprog_det-setting-0076014
Counting only Monday through Friday, how many business days are there after October 15, 2024 through November 14, 2024? ```python from datetime import date, timedelta start = date(2024, 10, 15) end = date(2024, 11, 14) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() < ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0076015
From 2025 to 2030, how many years is that? Python, step by step: ```python start_year = 2025 end_year = 2030 print(end_year - start_year) ``` The script prints 5, as expected. 5 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0076016
Divide 85 items among 9 groups as evenly as possible with equal groups. How many per group, and how many remain? Written as code: ```python total = 85 groups = 9 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Executing it gives 9 each, 4 left over. 9 each, 4 left ov...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "9 each, 4 left over", "printed": "9 each, 4 left over", "notation": null}
nlprog_det-setting-0076017
A 36-month warranty starts on September 13, 2028. On what date does it end? One way, in code: ```python from datetime import date start = date(2028, 9, 13) months = 36 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Program...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "2031-09-13", "printed": "2031-09-13", "notation": null}
nlprog_det-setting-0076018
A client paid a $2,500 retainer. The firm has billed 4 hours at $150 per hour. How much of the retainer is left? The remaining balance is $1,900.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "1900", "printed": "1900", "notation": null}
nlprog_det-setting-0076019
<|start|><|system|> Available functions (JSON Schema): [{"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": "py_exec", "description...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\": [...
nlprog_det
setting
original
null
deterministic
[]
[]
381
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0076020
<|start|><|system|> You may call the tools below. {"name": "python_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> A count moves from 800 to 960. By ...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"python_exec\", \"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
[]
[]
216
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0076021
<|start|><|system|> Tools you may use: {"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}} {"name": "calc", "description": "Python sandbox for calculations. Returns printed text....
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}\n{\"name\": \"calc\", \"description\...
nlprog_det
setting
original
null
deterministic
[]
[]
276
{"gold": "33", "printed": "33", "notation": null}
nlprog_det-setting-0076022
A lawyer's fee is 35% of a $25,000 recovery. How large is the fee? The lawyer's fee comes to $8,750.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "8750.00", "printed": "8750.00", "notation": null}
nlprog_det-setting-0076023
Convert 69.6 km to meters. We can compute it in Python. km = 69.6 meters = km * 1000 # 69600.0 print(round(meters)) Output of the run — 69600 69,600 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "69600", "printed": "69600", "notation": null}
nlprog_det-setting-0076025
A 180-mile drive at a steady 45 mph takes how many minutes? Let the code do the arithmetic: ```python distance = 180 speed = 45 minutes = distance / speed * 60 # 240.0 print(round(minutes)) ``` Execution prints 240, as expected. The trip takes 240 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "240", "printed": "240", "notation": null}
nlprog_det-setting-0076026
How much sales tax is charged on a $76.10 purchase at 8%? In code: ```python price = 76.1 tax_rate = 8 / 100 # 0.08 tax = price * tax_rate # 6.088 print(f"{tax:.2f}") ``` Output: 6.09 $6.09 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "6.09", "printed": "6.09", "notation": null}
nlprog_det-setting-0076027
A 210-page report must be reviewed in 14 days. How many pages a day is that, evenly? Python version: ```python pages = 210 days = 14 per_day = pages // days # 15 print(per_day) ``` (Console output: 15) That is 15 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0076028
The landlord deducts $200 from a $800 deposit. What is returned to the tenant? Python does the arithmetic: ```python deposit = 800 deductions = [200] refund = deposit - sum(deductions) # 600 print(refund) ``` # stdout: 600 The refund is $600.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0076029
$1,000 is invested at 4% compounded yearly. What is it worth after 4 years? Programmatically: ```python principal = 1000 rate = 4 / 100 # 0.04 years = 4 value = principal * (1 + rate) ** years # 1169.8585600000001 print(f"{value:.2f}") ``` # stdout: 1169.86 It is worth $1,169.86.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "1169.86", "printed": "1169.86", "notation": null}
nlprog_det-setting-0076031
131 volunteers are split into 8 equal teams. How many are on each team, and how many are left over? The answer: 16 each, 3 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "16 each, 3 left over", "printed": "16 each, 3 left over", "notation": null}
nlprog_det-setting-0076034
A $30,000 grant pays $3,000 up front and the rest in 12 equal installments. How large is each installment? Code: ```python grant = 30000 up_front = 3000 installments = 12 each = (grant - up_front) / installments # 2250.0 print(f"{each:.2f}") ``` (Program output: 2250.00) $2,250.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "2250.00", "printed": "2250.00", "notation": null}