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-0048077
An office budget of $5,000 has expenses of $2,642, $1,207. How much of the budget is left? Computing it: ```python budget = 5000 expenses = [2642, 1207] left = budget - sum(expenses) # 1151 print(left) ``` Printed — 1151 $1,151 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "1151", "printed": "1151", "notation": null}
nlprog_det-setting-0048078
Copies cost $15 plus $0.10 for each page beyond 0. How much for 105 pages? Here is the program. ```python pages = 105 base = 15 per_page = 0.1 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 25.5 print(f"{cost:.2f}") ``` Interpreter output: 25.50 The total is $25.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "25.50", "printed": "25.50", "notation": null}
nlprog_det-setting-0048079
<|start|><|system|> You may call the tools below. [{"name": "py_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> Convert 3,306 GBP to USD at 1 GBP = ...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"py_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
[]
[]
227
{"gold": "3570.48", "printed": "3570.48", "notation": null}
nlprog_det-setting-0048080
<|start|><|system|> You may call the tools below. [{"name": "math_engine", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> Count the days betw...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"math_engine\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required...
nlprog_det
setting
original
null
deterministic
[]
[]
221
{"gold": "241", "printed": "241", "notation": null}
nlprog_det-setting-0048081
A 45-day notice period begins on December 27, 2018. On what date does it end? ```python from datetime import date, timedelta start = date(2018, 12, 27) end = start + timedelta(days=45) print(end.isoformat()) ``` When run, it prints 2019-02-10, as expected. The period ends on February 10, 2019.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "2019-02-10", "printed": "2019-02-10", "notation": null}
nlprog_det-setting-0048082
<|start|><|system|> Available functions (JSON Schema): {"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_unit", "to_unit"]...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\": ...
nlprog_det
setting
original
null
deterministic
[]
[]
405
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0048083
<|start|><|user|> Notice was given on July 16, 2021. The notice period is 90 days. When does it run out?<|eot|> <|assistant|> The period ends on October 14, 2021.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Notice was given on July 16, 2021. The notice period is 90 days. When does it run out?" }, { "role": "assistant", "content": "The period ends on October 14, 2021." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "2021-10-14", "printed": "2021-10-14", "notation": null}
nlprog_det-setting-0048084
<|start|><|user|> An office budget of $25,000 has expenses of $1,548, $1,826, $2,408. How much of the budget is left?<|eot|> <|assistant|> ```python budget = 25000 expenses = [1548, 1826, 2408] left = budget - sum(expenses) # 19218 print(left) ``` (Output: 19218) The remaining budget is $19,218.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An office budget of $25,000 has expenses of $1,548, $1,826, $2,408. How much of the budget is left?" }, { "role": "assistant", "content": "```python\nbudget = 25000\nexpenses = [1548, 1826, 2408]\nleft = budget - sum(expenses) # 19218\nprint(left)\n```\n(Output: 19...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "19218", "printed": "19218", "notation": null}
nlprog_det-setting-0048085
On which weekday does February 12, 2011 fall? Python version: ```python from datetime import date hearing = date(2011, 2, 12) # datetime.date(2011, 2, 12) print(hearing.strftime("%A")) ``` Out = Saturday It is a Saturday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "Saturday", "printed": "Saturday", "notation": null}
nlprog_det-setting-0048086
$2,000 is invested at 5% compounded yearly. What is it worth after 4 years? Program: ```python principal = 2000 rate = 5 / 100 # 0.05 years = 4 value = principal * (1 + rate) ** years # 2431.0125000000003 print(f"{value:.2f}") ``` Executing it gives 2431.01, as expected. The balance is $2,431.01.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "2431.01", "printed": "2431.01", "notation": null}
nlprog_det-setting-0048087
A recipe for 6 people uses 300 grams of flour. How many grams are needed for 12 people? Translated to Python: ```python grams = 300 serves = 6 needed_for = 12 scaled = grams * needed_for // serves # 600 print(scaled) ``` Execution result — 600 600 grams of flour are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0048088
<|start|><|system|> Functions: {"name": "calc", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> How many meters are in 92.9 kilometers?<|eot|> <...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"calc\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}" }, {...
nlprog_det
setting
original
null
deterministic
[]
[]
186
{"gold": "92900", "printed": "92900", "notation": null}
nlprog_det-setting-0048089
<|start|><|user|> Monthly: $25. Annual: $276. What is saved per year by paying annually?<|eot|> <|assistant|> ```python monthly = 25 yearly = 276 savings = monthly * 12 - yearly # 24 print(savings) ``` The run gives: 24 The annual plan saves $24.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Monthly: $25. Annual: $276. What is saved per year by paying annually?" }, { "role": "assistant", "content": "```python\nmonthly = 25\nyearly = 276\nsavings = monthly * 12 - yearly # 24\nprint(savings)\n```\nThe run gives: 24\n\nThe annual plan saves $24." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0048090
<|start|><|system|> Functions: {"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}} {"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties":...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}\n{\"name\": \"get_weather\", \"description\": \"Get the weather f...
nlprog_det
setting
original
null
deterministic
[]
[]
334
{"gold": "46", "printed": "46", "notation": null}
nlprog_det-setting-0048091
<|start|><|user|> An attorney bills 4 hours at $150 per hour. What is the bill?<|eot|> <|assistant|> ```python hours = 4 rate = 150 bill = hours * rate # 600 print(f"{bill:.2f}") ``` The program prints 600.00, as expected. The bill is $600.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An attorney bills 4 hours at $150 per hour. What is the bill?" }, { "role": "assistant", "content": "```python\nhours = 4\nrate = 150\nbill = hours * rate # 600\nprint(f\"{bill:.2f}\")\n```\nThe program prints 600.00, as expected.\n\nThe bill is $600.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "600.00", "printed": "600.00", "notation": null}
nlprog_det-setting-0048093
Equipment costs $12,000, has a salvage value of $3,000, and a useful life of 4 years. What is the straight-line depreciation per year? The Python version: ```python cost = 12000 salvage = 3000 years = 4 per_year = (cost - salvage) / years # 2250.0 print(f"{per_year:.2f}") ``` When run, it prints: 2250.00 $2,250.00 a...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "2250.00", "printed": "2250.00", "notation": null}
nlprog_det-setting-0048094
<|start|><|system|> Available functions (JSON Schema): [{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_unit", "to_unit"...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\":...
nlprog_det
setting
original
null
deterministic
[]
[]
362
{"gold": "7", "printed": "7", "notation": null}
nlprog_det-setting-0048095
A 2% increase is applied to $1,800 monthly rent. What is the new amount? As a program: ```python rent = 1800 increase = 2 / 100 # 0.02 new_rent = rent * (1 + increase) # 1836.0 print(f"{new_rent:.2f}") ``` It prints: 1836.00 It rises to $1,836.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "1836.00", "printed": "1836.00", "notation": null}
nlprog_det-setting-0048096
The paralegal logged 2.5 hours at a rate of $250. How much is billed? Programmatically: hours = 2.5 rate = 250 bill = hours * rate # 625.0 print(f"{bill:.2f}") That prints 625.00. That comes to $625.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "625.00", "printed": "625.00", "notation": null}
nlprog_det-setting-0048097
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> A car travels 470 miles in 2 hours. What is its average speed in miles per hour?<|eot|> <|assistant|> ```python distance = 470 hours = 2 speed = distance / hours # 235.0 print(round(speed)) ``` Shell output: 235 It averages 235 miles per hour.<|eot|> <|...
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "A car travels 470 miles in 2 hours. What is its average speed in miles per hour?" }, { "role": "assistant", "content": "```python\ndistance = 470\nhours = 2\nspeed = distance / hours # 235...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "235", "printed": "235", "notation": null}
nlprog_det-setting-0048098
<|start|><|system|> You help with homework problems.<|eot|> <|user|> The paralegal logged 2.5 hours at a rate of $150. How much is billed?<|eot|> <|assistant|> ```python hours = 2.5 rate = 150 bill = hours * rate # 375.0 print(f"{bill:.2f}") ``` Running it prints 375.00, as expected. The bill is $375.00.<|eot|> <|end...
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "The paralegal logged 2.5 hours at a rate of $150. How much is billed?" }, { "role": "assistant", "content": "```python\nhours = 2.5\nrate = 150\nbill = hours * rate # 375.0\nprint(f\"{...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "375.00", "printed": "375.00", "notation": null}
nlprog_det-setting-0048099
A $2,000 security deposit has deductions of $200 and $75. How much is refunded? The refund is $1,725.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "1725", "printed": "1725", "notation": null}
nlprog_det-setting-0048100
<|start|><|user|> Convert 3,016 GBP to USD at 1 GBP = 1.31 USD.<|eot|> <|assistant|> ```python amount = 3016 rate = 1.31 converted = amount * rate # 3950.96 print(f"{converted:.2f}") ``` Execution result — 3950.96 That is 3,950.96 USD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 3,016 GBP to USD at 1 GBP = 1.31 USD." }, { "role": "assistant", "content": "```python\namount = 3016\nrate = 1.31\nconverted = amount * rate # 3950.96\nprint(f\"{converted:.2f}\")\n```\nExecution result — 3950.96\n\nThat is 3,950.96 USD." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "3950.96", "printed": "3950.96", "notation": null}
nlprog_det-setting-0048101
Each of Xavier's walks burns 400 calories. How many calories over 4 walks? ```python per_session = 400 sessions = 4 total = per_session * sessions # 1600 print(total) ``` This prints: 1600 That burns 1600 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "1600", "printed": "1600", "notation": null}
nlprog_det-setting-0048102
After an initial $2,000, the remainder of a $24,000 grant is paid in 6 equal parts. What is each part? A Python solution: ```python grant = 24000 up_front = 2000 installments = 6 each = (grant - up_front) / installments # 3666.6666666666665 print(f"{each:.2f}") ``` Printed: 3666.67 $3,666.67 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "3666.67", "printed": "3666.67", "notation": null}
nlprog_det-setting-0048103
<|start|><|user|> How many of 270 votes make 67% (round up)?<|eot|> <|assistant|> ```python import math voters = 270 needed = math.ceil(voters * 67 / 100) # 181 print(needed) ``` (Output: 181) 181 votes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 270 votes make 67% (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 270\nneeded = math.ceil(voters * 67 / 100) # 181\nprint(needed)\n```\n(Output: 181)\n\n181 votes are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "181", "printed": "181", "notation": null}
nlprog_det-setting-0048104
<|start|><|system|> Be concise.<|eot|> <|user|> Printing costs 12 cents a page. What does it cost to print 167 copies of a 45-page handout?<|eot|> <|assistant|> ```python pages = 45 copies = 167 cost_per_page = 0.12 cost = pages * copies * cost_per_page # 901.8 print(f"{cost:.2f}") ``` This prints 901.80. Printing co...
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "Printing costs 12 cents a page. What does it cost to print 167 copies of a 45-page handout?" }, { "role": "assistant", "content": "```python\npages = 45\ncopies = 167\ncost_per_page = 0.12\ncost = pages * c...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "901.80", "printed": "901.80", "notation": null}
nlprog_det-setting-0048105
Of a $8,000 budget, $200 has been spent. What percent is that? In Python: ```python budget = 8000 spent = 200 percent = spent / budget * 100 # 2.5 print(round(percent, 1)) ``` It prints: 2.5 That is 2.5% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "2.5", "printed": "2.5", "notation": null}
nlprog_det-setting-0048106
<|start|><|system|> You can call tools. Available tools: {"name": "py_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> What simple interest does $...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"py_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
[]
[]
223
{"gold": "40.00", "printed": "40.00", "notation": null}
nlprog_det-setting-0048107
<|start|><|user|> A meeting starts at 12:40 PM and lasts 135 minutes. When does it end?<|eot|> <|assistant|> ```python start = 12 * 60 + 40 end = start + 135 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Executing it gives: 2:55 PM It ends at 2:55 PM.<|eo...
chat
[ { "role": "user", "content": "A meeting starts at 12:40 PM and lasts 135 minutes. When does it end?" }, { "role": "assistant", "content": "```python\nstart = 12 * 60 + 40\nend = start + 135\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
[]
[]
132
{"gold": "2:55 PM", "printed": "2:55 PM", "notation": null}
nlprog_det-setting-0048109
A meal costs $89.49. How much is a 18% tip? One way, in code: bill = 89.49 tip_rate = 18 / 100 # 0.18 tip = bill * tip_rate # 16.1082 print(f"{tip:.2f}") Printed result — 16.11 The tip is $16.11.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "16.11", "printed": "16.11", "notation": null}
nlprog_det-setting-0048110
With $8,000 in costs and $10,500 in revenue, what percent of revenue is profit? Round to one decimal. Program: revenue = 10500 costs = 8000 profit = revenue - costs # 2500 margin = profit / revenue * 100 # 23.809523809523807 print(round(margin, 1)) # stdout: 23.8 The margin is 23.8%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "23.8", "printed": "23.8", "notation": null}
nlprog_det-setting-0048111
Scale 240 g of lentils from 4 servings to 3 servings. A short script: ```python grams = 240 serves = 4 needed_for = 3 scaled = grams * needed_for // serves # 180 print(scaled) ``` Executing it gives 180, as expected. 180 grams of lentils are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "180", "printed": "180", "notation": null}
nlprog_det-setting-0048112
Divide 277 items among 5 groups as evenly as possible with equal groups. How many per group, and how many remain? Written as code: total = 277 groups = 5 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") Program output — 55 each, 2 left over The answer: 55 ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "55 each, 2 left over", "printed": "55 each, 2 left over", "notation": null}
nlprog_det-setting-0048113
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "calculator", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "search_...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"calculator\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source cod...
nlprog_det
setting
original
null
deterministic
[]
[]
389
{"gold": "696.77", "printed": "696.77", "notation": null}
nlprog_det-setting-0048114
A hall has 25 rows of 12 seats, and 22 seats are empty. How many people are seated? Python: ```python rows = 25 per_row = 12 empty = 22 seated = rows * per_row - empty # 278 print(seated) ``` Run result — 278 278 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "278", "printed": "278", "notation": null}
nlprog_det-setting-0048115
<|start|><|user|> How many weekdays (Monday to Friday) fall after December 21, 2019 up to and including January 22, 2020?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2019, 12, 21) end = date(2020, 1, 22) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(...
chat
[ { "role": "user", "content": "How many weekdays (Monday to Friday) fall after December 21, 2019 up to and including January 22, 2020?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2019, 12, 21)\nend = date(2020, 1, 22)\ncount = 0\nfor k in r...
nlprog_det
setting
original
null
deterministic
[]
[]
156
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0048116
A court charges $15 per request plus $0.50 per page after the first 10 pages. What does a 10-page copy cost? Python version: pages = 10 base = 15 per_page = 0.5 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 15.0 print(f"{cost:.2f}") Result: 15.00 The total is $15.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "15.00", "printed": "15.00", "notation": null}
nlprog_det-setting-0048117
A 2% increase is applied to $2,200 monthly rent. What is the new amount? A few lines of Python do it: ```python rent = 2200 increase = 2 / 100 # 0.02 new_rent = rent * (1 + increase) # 2244.0 print(f"{new_rent:.2f}") ``` The code prints: 2244.00 The new rent is $2,244.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "2244.00", "printed": "2244.00", "notation": null}
nlprog_det-setting-0048118
<|start|><|user|> Equipment costs $30,000, has a salvage value of $3,000, and a useful life of 4 years. What is the straight-line depreciation per year?<|eot|> <|assistant|> ```python cost = 30000 salvage = 3000 years = 4 per_year = (cost - salvage) / years # 6750.0 print(f"{per_year:.2f}") ``` stdout — 6750.00 Depre...
chat
[ { "role": "user", "content": "Equipment costs $30,000, has a salvage value of $3,000, and a useful life of 4 years. What is the straight-line depreciation per year?" }, { "role": "assistant", "content": "```python\ncost = 30000\nsalvage = 3000\nyears = 4\nper_year = (cost - salvage) / years # 6...
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "6750.00", "printed": "6750.00", "notation": null}
nlprog_det-setting-0048120
<|start|><|user|> A car travels 324 miles in 3 hours. What is its average speed in miles per hour?<|eot|> <|assistant|> The average speed is 108 mph.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A car travels 324 miles in 3 hours. What is its average speed in miles per hour?" }, { "role": "assistant", "content": "The average speed is 108 mph." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "108", "printed": "108", "notation": null}
nlprog_det-setting-0048121
Scale 240 g of rice from 2 servings to 6 servings. Here is the program. ```python grams = 240 serves = 2 needed_for = 6 scaled = grams * needed_for // serves # 720 print(scaled) ``` (Printed: 720) Use 720 g of rice.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "720", "printed": "720", "notation": null}
nlprog_det-setting-0048122
Starting with 1152 calendars and using 24 per day, how many remain after 20 days? 672 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "672", "printed": "672", "notation": null}
nlprog_det-setting-0048123
<|start|><|system|> Available functions (JSON Schema): {"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|> Under a 30% c...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"sandbox_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"r...
nlprog_det
setting
original
null
deterministic
[]
[]
231
{"gold": "3600.00", "printed": "3600.00", "notation": null}
nlprog_det-setting-0048124
A storeroom has 963 labels. The office uses 23 a day. How many are left after 3 days? stock = 963 per_day = 23 days = 3 left = stock - per_day * days # 894 print(left) Out = 894 894 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "894", "printed": "894", "notation": null}
nlprog_det-setting-0048125
<|start|><|system|> Functions: [{"name": "python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> Convert 47.8 km to meters.<|eot|> <|assistant|>...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}]" }, ...
nlprog_det
setting
original
null
deterministic
[]
[]
188
{"gold": "47800", "printed": "47800", "notation": null}
nlprog_det-setting-0048127
<|start|><|user|> One can of paint covers 350 square feet. How many cans are needed for 581 square feet of wall?<|eot|> <|assistant|> 2 cans are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "One can of paint covers 350 square feet. How many cans are needed for 581 square feet of wall?" }, { "role": "assistant", "content": "2 cans are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0048128
4 boxes hold 6 keyboards each. After 15 are handed out, how many are left? Computation in Python: ```python boxes = 4 per_box = 6 given_away = 15 left = boxes * per_box - given_away # 9 print(left) ``` The program prints: 9 That leaves 9 keyboards.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0048129
Water costs $12 a month plus $5.10 for each 1,000 gallons over 2,000. What is owed for 5,000 gallons? Python: ```python base = 12 rate = 5.1 used = 5 free = 2 bill = base + rate * max(0, used - free) # 27.299999999999997 print(f"{bill:.2f}") ``` Run result — 27.30 $27.30 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "27.30", "printed": "27.30", "notation": null}
nlprog_det-setting-0048130
<|start|><|user|> What is a 10% tip on a $78.59 bill?<|eot|> <|assistant|> ```python bill = 78.59 tip_rate = 10 / 100 # 0.1 tip = bill * tip_rate # 7.859000000000001 print(f"{tip:.2f}") ``` Result: 7.86 Leave $7.86.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is a 10% tip on a $78.59 bill?" }, { "role": "assistant", "content": "```python\nbill = 78.59\ntip_rate = 10 / 100 # 0.1\ntip = bill * tip_rate # 7.859000000000001\nprint(f\"{tip:.2f}\")\n```\nResult:\n7.86\n\nLeave $7.86." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "7.86", "printed": "7.86", "notation": null}
nlprog_det-setting-0048131
<|start|><|user|> Scale 450 g of flour from 4 servings to 12 servings.<|eot|> <|assistant|> ```python grams = 450 serves = 4 needed_for = 12 scaled = grams * needed_for // serves # 1350 print(scaled) ``` (Execution result: 1350) Use 1350 g of flour.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Scale 450 g of flour from 4 servings to 12 servings." }, { "role": "assistant", "content": "```python\ngrams = 450\nserves = 4\nneeded_for = 12\nscaled = grams * needed_for // serves # 1350\nprint(scaled)\n```\n(Execution result: 1350)\n\nUse 1350 g of flour." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "1350", "printed": "1350", "notation": null}
nlprog_det-setting-0048132
Buying 6 binders at $15 each, 1 desk lamps at $8 each, 6 cables at $9 each, someone hands over $200. What change comes back? The Python version: ```python items = [(6, 15), (1, 8), (6, 9)] total = sum(q * p for q, p in items) # 152 paid = 200 change = paid - total # 48 print(change) ``` Executing it gives 48, as exp...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0048133
A 300-mile drive at a steady 50 mph takes how many minutes? Python makes this quick: ```python distance = 300 speed = 50 minutes = distance / speed * 60 # 360.0 print(round(minutes)) ``` The code prints 360. The trip takes 360 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "360", "printed": "360", "notation": null}
nlprog_det-setting-0048134
A meal costs $241.70. How much is a 20% tip? Python, step by step: ```python bill = 241.7 tip_rate = 20 / 100 tip = bill * tip_rate print(f"{tip:.2f}") ``` The run gives 48.34, as expected. The tip is $48.34.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "48.34", "printed": "48.34", "notation": null}
nlprog_det-setting-0048135
<|start|><|system|> Available functions (JSON Schema): [{"name": "py_exec", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|use...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"py_exec\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python sourc...
nlprog_det
setting
original
null
deterministic
[]
[]
212
{"gold": "64900", "printed": "64900", "notation": null}
nlprog_det-setting-0048136
<|start|><|user|> A $2,400 loan carries 10% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|> <|assistant|> ```python principal = 2400 annual_rate = 10 / 100 months = 24 interest = principal * annual_rate * months / 12 payment = (principal +...
chat
[ { "role": "user", "content": "A $2,400 loan carries 10% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?" }, { "role": "assistant", "content": "```python\nprincipal = 2400\nannual_rate = 10 / 100\nmonths = 24\ninterest = pr...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "120.00", "printed": "120.00", "notation": null}
nlprog_det-setting-0048137
Vera has 8 documents to file, and each filing costs $45. How much are the filing fees in total? Translated to Python: ```python fee = 45 filings = 8 total = fee * filings # 360 print(total) ``` Out = 360 The filings cost $360 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "360", "printed": "360", "notation": null}
nlprog_det-setting-0048138
<|start|><|user|> Prorate $1,800 of monthly rent for 7 days of a 30-day month.<|eot|> <|assistant|> ```python rent = 1800 days_in_month = 30 days_occupied = 7 prorated = rent * days_occupied / days_in_month # 420.0 print(f"{prorated:.2f}") ``` Run it and it prints: 420.00 The prorated rent is $420.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Prorate $1,800 of monthly rent for 7 days of a 30-day month." }, { "role": "assistant", "content": "```python\nrent = 1800\ndays_in_month = 30\ndays_occupied = 7\nprorated = rent * days_occupied / days_in_month # 420.0\nprint(f\"{prorated:.2f}\")\n```\nRun it and i...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "420.00", "printed": "420.00", "notation": null}
nlprog_det-setting-0048139
<|start|><|user|> A $800 security deposit has deductions of $60. How much is refunded?<|eot|> <|assistant|> ```python deposit = 800 deductions = [60] refund = deposit - sum(deductions) # 740 print(refund) ``` That prints: 740 The refund is $740.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $800 security deposit has deductions of $60. How much is refunded?" }, { "role": "assistant", "content": "```python\ndeposit = 800\ndeductions = [60]\nrefund = deposit - sum(deductions) # 740\nprint(refund)\n```\nThat prints: 740\n\nThe refund is $740." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "740", "printed": "740", "notation": null}
nlprog_det-setting-0048140
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}} {"name": "run_python", "description": "Evaluates Python and returns...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}\n{\"name\": \"ru...
nlprog_det
setting
original
null
deterministic
[]
[]
267
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0048141
<|start|><|system|> Functions: {"name": "sandbox_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> Convert 38.2 km to meters.<|eot|> <|assistant|...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"sandbox_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}" }, ...
nlprog_det
setting
original
null
deterministic
[]
[]
198
{"gold": "38200", "printed": "38200", "notation": null}
nlprog_det-setting-0048142
<|start|><|user|> A client paid a $5,000 retainer. The firm has billed 11 hours at $275 per hour. How much of the retainer is left?<|eot|> <|assistant|> ```python retainer = 5000 hours = 11 rate = 275 left = retainer - hours * rate # 1975 print(left) ``` It outputs 1975. $1,975 of the retainer is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A client paid a $5,000 retainer. The firm has billed 11 hours at $275 per hour. How much of the retainer is left?" }, { "role": "assistant", "content": "```python\nretainer = 5000\nhours = 11\nrate = 275\nleft = retainer - hours * rate # 1975\nprint(left)\n```\nIt ...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "1975", "printed": "1975", "notation": null}
nlprog_det-setting-0048143
A pack of 5 mugs sells for $30. What does each cost? We write it as a program: ```python total = 30 count = 5 per_item = total // count # 6 print(per_item) ``` This prints 6, as expected. Each one costs $6.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0048144
Count the days between April 25, 2018 and February 5, 2019. Translated to Python: ```python from datetime import date first = date(2018, 4, 25) # datetime.date(2018, 4, 25) second = date(2019, 2, 5) # datetime.date(2019, 2, 5) print((second - first).days) ``` stdout — 286 It is 286 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "286", "printed": "286", "notation": null}
nlprog_det-setting-0048145
A 760-page report must be reviewed in 19 days. How many pages a day is that, evenly? A short script: ```python pages = 760 days = 19 per_day = pages // days # 40 print(per_day) ``` Executed, it shows 40. That is 40 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0048146
If a 75-minute appointment begins at 4:00 PM, what time does it finish? ```python start = 16 * 60 + 0 end = start + 75 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` # stdout: 5:15 PM The appointment finishes at 5:15 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "5:15 PM", "printed": "5:15 PM", "notation": null}
nlprog_det-setting-0048148
<|start|><|system|> You have access to these functions: {"name": "compute", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}} {"name": "search_cases", "descriptio...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"compute\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required...
nlprog_det
setting
original
null
deterministic
[]
[]
291
{"gold": "7.4", "printed": "7.4", "notation": null}
nlprog_det-setting-0048149
<|start|><|user|> From a $10,000 retainer, 6 hours at $275/hour have been drawn. What remains?<|eot|> <|assistant|> $8,350 of the retainer is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From a $10,000 retainer, 6 hours at $275/hour have been drawn. What remains?" }, { "role": "assistant", "content": "$8,350 of the retainer is left." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "8350", "printed": "8350", "notation": null}
nlprog_det-setting-0048150
Rent of $900 goes up 4%. What is the new rent? As a program: ```python rent = 900 increase = 4 / 100 # 0.04 new_rent = rent * (1 + increase) # 936.0 print(f"{new_rent:.2f}") ``` Executing it gives 936.00, as expected. It rises to $936.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "936.00", "printed": "936.00", "notation": null}
nlprog_det-setting-0048151
<|start|><|system|> You are a logic tutor.<|eot|> <|user|> 3 clients win $60,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> Each client gets $12,000.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a logic tutor." }, { "role": "user", "content": "3 clients win $60,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": "Each client gets $12,000.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
58
{"gold": "12000.00", "printed": "12000.00", "notation": null}
nlprog_det-setting-0048152
An unpaid balance of $4,000 accrues 1.5% simple interest per month. How much interest accrues in 2 months? Python does the arithmetic: ```python balance = 4000 monthly_rate = 1.5 / 100 # 0.015 months = 2 interest = balance * monthly_rate * months # 120.0 print(f"{interest:.2f}") ``` Run result = 120.00 $120.00 accr...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "120.00", "printed": "120.00", "notation": null}
nlprog_det-setting-0048153
<|start|><|user|> Monthly rent is $1,500. A tenant moves in with 25 days left in a 31-day month. What is the prorated rent?<|eot|> <|assistant|> ```python rent = 1500 days_in_month = 31 days_occupied = 25 prorated = rent * days_occupied / days_in_month # 1209.6774193548388 print(f"{prorated:.2f}") ``` (Execution resul...
chat
[ { "role": "user", "content": "Monthly rent is $1,500. A tenant moves in with 25 days left in a 31-day month. What is the prorated rent?" }, { "role": "assistant", "content": "```python\nrent = 1500\ndays_in_month = 31\ndays_occupied = 25\nprorated = rent * days_occupied / days_in_month # 1209.6...
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "1209.68", "printed": "1209.68", "notation": null}
nlprog_det-setting-0048154
A kettle costs $75. It is 25% off. What is the sale price? Computing it: ```python price = 75 discount = 25 / 100 # 0.25 sale_price = price * (1 - discount) # 56.25 print(f"{sale_price:.2f}") ``` (Printed: 56.25) It costs $56.25.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "56.25", "printed": "56.25", "notation": null}
nlprog_det-setting-0048155
<|start|><|system|> Keep answers short and correct.<|eot|> <|user|> With 15% off, what does a $90 chair cost?<|eot|> <|assistant|> ```python price = 90 discount = 15 / 100 # 0.15 sale_price = price * (1 - discount) # 76.5 print(f"{sale_price:.2f}") ``` Execution prints 76.50. The sale price is $76.50.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Keep answers short and correct." }, { "role": "user", "content": "With 15% off, what does a $90 chair cost?" }, { "role": "assistant", "content": "```python\nprice = 90\ndiscount = 15 / 100 # 0.15\nsale_price = price * (1 - discount) # 76.5\nprint(f\...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "76.50", "printed": "76.50", "notation": null}
nlprog_det-setting-0048156
<|start|><|user|> A measure needs at least 67% of 103 votes. How many votes is that, rounded up?<|eot|> <|assistant|> ```python import math voters = 103 needed = math.ceil(voters * 67 / 100) # 70 print(needed) ``` Running it prints: 70 At least 70 votes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A measure needs at least 67% of 103 votes. How many votes is that, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 103\nneeded = math.ceil(voters * 67 / 100) # 70\nprint(needed)\n```\nRunning it prints: 70\n\nAt least 70 votes." ...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "70", "printed": "70", "notation": null}
nlprog_det-setting-0048157
<|start|><|user|> Each of Ines's bike rides burns 400 calories. How many calories over 3 bike rides?<|eot|> <|assistant|> ```python per_session = 400 sessions = 3 total = per_session * sessions print(total) ``` Result = 1200 That burns 1200 calories.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each of Ines's bike rides burns 400 calories. How many calories over 3 bike rides?" }, { "role": "assistant", "content": "```python\nper_session = 400\nsessions = 3\ntotal = per_session * sessions\nprint(total)\n```\nResult = 1200\n\nThat burns 1200 calories." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0048159
<|start|><|user|> A client paid a $5,000 retainer. The firm has billed 14 hours at $275 per hour. How much of the retainer is left?<|eot|> <|assistant|> ```python retainer = 5000 hours = 14 rate = 275 left = retainer - hours * rate # 1150 print(left) ``` The printout reads: 1150 The remaining balance is $1,150.<|eot|...
chat
[ { "role": "user", "content": "A client paid a $5,000 retainer. The firm has billed 14 hours at $275 per hour. How much of the retainer is left?" }, { "role": "assistant", "content": "```python\nretainer = 5000\nhours = 14\nrate = 275\nleft = retainer - hours * rate # 1150\nprint(left)\n```\nThe...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "1150", "printed": "1150", "notation": null}
nlprog_det-setting-0048160
A 12-month warranty starts on August 8, 2026. On what date does it end? Computation in Python: ```python from datetime import date start = date(2026, 8, 8) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Printed...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "2027-08-08", "printed": "2027-08-08", "notation": null}
nlprog_det-setting-0048161
A storeroom has 436 batteries. The office uses 16 a day. How many are left after 13 days? Let the code do the arithmetic: stock = 436 per_day = 16 days = 13 left = stock - per_day * days # 228 print(left) On running, it outputs: 228 228 batteries are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "228", "printed": "228", "notation": null}
nlprog_det-setting-0048162
How many minutes pass from 11:44 AM to 3:11 PM on the same day? 207 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
26
{"gold": "207", "printed": "207", "notation": null}
nlprog_det-setting-0048163
Jonas's scores were 59, 69, 59 and 89. What is the average score? Set it up in Python: ```python scores = [59, 69, 59, 89] average = sum(scores) // len(scores) # 69 print(average) ``` (Printed: 69) The average score is 69.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "69", "printed": "69", "notation": null}
nlprog_det-setting-0048164
<|start|><|user|> A clerk's office charges $45 for each filing. Arjun submits 3 filings. What is the total fee?<|eot|> <|assistant|> fee = 45 filings = 3 total = fee * filings # 135 print(total) The interpreter prints: 135 The total fee is $135.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A clerk's office charges $45 for each filing. Arjun submits 3 filings. What is the total fee?" }, { "role": "assistant", "content": " fee = 45\n filings = 3\n total = fee * filings # 135\n print(total)\nThe interpreter prints: 135\n\nThe total fee is $1...
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "135", "printed": "135", "notation": null}
nlprog_det-setting-0048165
<|start|><|system|> Tools you may use: [{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_unit", "to_unit"]}}, {"name": "r...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\": \"string\"}}, \...
nlprog_det
setting
original
null
deterministic
[]
[]
330
{"gold": "945.00", "printed": "945.00", "notation": null}
nlprog_det-setting-0048166
<|start|><|user|> Notice was given on September 13, 2022. The notice period is 45 days. When does it run out?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2022, 9, 13) # datetime.date(2022, 9, 13) end = start + timedelta(days=45) # datetime.date(2022, 10, 28) print(end.isoformat())...
chat
[ { "role": "user", "content": "Notice was given on September 13, 2022. The notice period is 45 days. When does it run out?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2022, 9, 13) # datetime.date(2022, 9, 13)\nend = start + timedelta(days=...
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "2022-10-28", "printed": "2022-10-28", "notation": null}
nlprog_det-setting-0048167
Goods bought on December 28, 2025 carry a 24-month warranty. When does it expire? Coded up: ```python from datetime import date start = date(2025, 12, 28) months = 24 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Run it a...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "2027-12-28", "printed": "2027-12-28", "notation": null}
nlprog_det-setting-0048168
A party has 28 days to respond to a motion served on March 2, 2020, with 3 days added because service was by mail. When is the response due? Programmatically: ```python from datetime import date, timedelta served = date(2020, 3, 2) # datetime.date(2020, 3, 2) response_days = 28 mail_days = 3 due = served + timedelta(...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
175
{"gold": "2020-04-02", "printed": "2020-04-02", "notation": null}
nlprog_det-setting-0048169
How many of 284 votes make 67% (round up)? Python: ```python import math voters = 284 needed = math.ceil(voters * 67 / 100) # 191 print(needed) ``` It prints: 191 At least 191 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "191", "printed": "191", "notation": null}
nlprog_det-setting-0048170
<|start|><|user|> An office budget of $25,000 has expenses of $1,111, $3,075. How much of the budget is left?<|eot|> <|assistant|> budget = 25000 expenses = [1111, 3075] left = budget - sum(expenses) # 20814 print(left) That prints: 20814 $20,814 is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An office budget of $25,000 has expenses of $1,111, $3,075. How much of the budget is left?" }, { "role": "assistant", "content": " budget = 25000\n expenses = [1111, 3075]\n left = budget - sum(expenses) # 20814\n print(left)\nThat prints: 20814\n\n$20...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "20814", "printed": "20814", "notation": null}
nlprog_det-setting-0048171
Goods bought on June 21, 2026 carry a 18-month warranty. When does it expire? Python makes this quick: ```python from datetime import date start = date(2026, 6, 21) months = 18 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "2027-12-21", "printed": "2027-12-21", "notation": null}
nlprog_det-setting-0048172
<|start|><|user|> A client paid a $7,500 retainer. The firm has billed 4 hours at $275 per hour. How much of the retainer is left?<|eot|> <|assistant|> retainer = 7500 hours = 4 rate = 275 left = retainer - hours * rate # 6400 print(left) Run it and it prints: 6400 The remaining balance is $6,400....
chat
[ { "role": "user", "content": "A client paid a $7,500 retainer. The firm has billed 4 hours at $275 per hour. How much of the retainer is left?" }, { "role": "assistant", "content": " retainer = 7500\n hours = 4\n rate = 275\n left = retainer - hours * rate # 6400\n print(left)\nR...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "6400", "printed": "6400", "notation": null}
nlprog_det-setting-0048173
A water bill is $18 plus $5.10 per thousand gallons beyond the first 2 thousand. What is the bill for 22 thousand gallons? Programmatically: ```python base = 18 rate = 5.1 used = 22 free = 2 bill = base + rate * max(0, used - free) # 120.0 print(f"{bill:.2f}") ``` The code prints: 120.00 The bill is $120.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "120.00", "printed": "120.00", "notation": null}
nlprog_det-setting-0048174
<|start|><|system|> Functions: [{"name": "sandbox_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> Goods bought on August 5, 2020 carry...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"sandbox_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}...
nlprog_det
setting
original
null
deterministic
[]
[]
276
{"gold": "2022-02-05", "printed": "2022-02-05", "notation": null}
nlprog_det-setting-0048175
Walls total 545 sq ft and each can covers 350 sq ft. How many cans should be bought? Python makes this quick: ```python import math area = 545 coverage = 350 cans = math.ceil(area / coverage) # 2 print(cans) ``` Result — 2 Buy 2 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0048176
After an initial $2,000, the remainder of a $24,000 grant is paid in 12 equal parts. What is each part? Python code: ```python grant = 24000 up_front = 2000 installments = 12 each = (grant - up_front) / installments # 1833.3333333333333 print(f"{each:.2f}") ``` Shell output: 1833.33 Each installment is $1,833.33.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "1833.33", "printed": "1833.33", "notation": null}
nlprog_det-setting-0048177
Convert 86.6 km to meters. In Python: km = 86.6 meters = km * 1000 # 86600.0 print(round(meters)) (Program output: 86600) That is 86,600 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "86600", "printed": "86600", "notation": null}
nlprog_det-setting-0048178
<|start|><|user|> At $17.95 an hour, what does 36 hours of work pay?<|eot|> <|assistant|> ```python rate = 17.95 hours = 36 earnings = rate * hours # 646.1999999999999 print(f"{earnings:.2f}") ``` Printed — 646.20 The pay is $646.20.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $17.95 an hour, what does 36 hours of work pay?" }, { "role": "assistant", "content": "```python\nrate = 17.95\nhours = 36\nearnings = rate * hours # 646.1999999999999\nprint(f\"{earnings:.2f}\")\n```\nPrinted — 646.20\n\nThe pay is $646.20." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "646.20", "printed": "646.20", "notation": null}
nlprog_det-setting-0048179
Count 60 days forward from May 26, 2021. What date is that? In Python: ```python from datetime import date, timedelta start = date(2021, 5, 26) # datetime.date(2021, 5, 26) end = start + timedelta(days=60) # datetime.date(2021, 7, 25) print(end.isoformat()) ``` Interpreter output: 2021-07-25 It ends on July 25, 202...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "2021-07-25", "printed": "2021-07-25", "notation": null}
nlprog_det-setting-0048181
<|start|><|user|> If a 5-year limitations period starts on May 6, 2017, when does it end?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2017, 5, 6) # datetime.date(2017, 5, 6) years = 5 expires = accrued.replace(year=accrued.year + years) # datetime.date(2022, 5, 6) print(expires.isoformat()...
chat
[ { "role": "user", "content": "If a 5-year limitations period starts on May 6, 2017, when does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2017, 5, 6) # datetime.date(2017, 5, 6)\nyears = 5\nexpires = accrued.replace(year=accrued.year + yea...
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "2022-05-06", "printed": "2022-05-06", "notation": null}
nlprog_det-setting-0048182
<|start|><|user|> A penalty of $250 a day accrues, capped at $5,000. What is owed after 38 days?<|eot|> <|assistant|> per_day = 250 days = 38 cap = 5000 fine = min(per_day * days, cap) # 5000 print(fine) # printed result: 5000 $5,000 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A penalty of $250 a day accrues, capped at $5,000. What is owed after 38 days?" }, { "role": "assistant", "content": " per_day = 250\n days = 38\n cap = 5000\n fine = min(per_day * days, cap) # 5000\n print(fine)\n# printed result: 5000\n\n$5,000 is ...
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "5000", "printed": "5000", "notation": null}
nlprog_det-setting-0048183
A shift runs from 8:33 AM to 2:01 PM. How long is it in minutes? As a program: ```python start = 8 * 60 + 33 # 513 end = 14 * 60 + 1 # 841 print(end - start) ``` Python prints 328. 328 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "328", "printed": "328", "notation": null}