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-0080875
<|start|><|user|> 7 copies of a 11-page packet are printed at $0.15 per page. What is the cost?<|eot|> <|assistant|> ```python pages = 11 copies = 7 cost_per_page = 0.15 cost = pages * copies * cost_per_page # 11.549999999999999 print(f"{cost:.2f}") ``` (Printed result: 11.55) Printing costs $11.55.<|eot|> <|end|>
chat
[ { "role": "user", "content": "7 copies of a 11-page packet are printed at $0.15 per page. What is the cost?" }, { "role": "assistant", "content": "```python\npages = 11\ncopies = 7\ncost_per_page = 0.15\ncost = pages * copies * cost_per_page # 11.549999999999999\nprint(f\"{cost:.2f}\")\n```\n(P...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "11.55", "printed": "11.55", "notation": null}
nlprog_det-setting-0080876
<|start|><|user|> 187 copies of a 28-page packet are printed at $0.12 per page. What is the cost?<|eot|> <|assistant|> The job costs $628.32.<|eot|> <|end|>
chat
[ { "role": "user", "content": "187 copies of a 28-page packet are printed at $0.12 per page. What is the cost?" }, { "role": "assistant", "content": "The job costs $628.32." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "628.32", "printed": "628.32", "notation": null}
nlprog_det-setting-0080877
<|start|><|user|> How many of 191 votes make 75% (round up)?<|eot|> <|assistant|> ```python import math voters = 191 needed = math.ceil(voters * 75 / 100) # 144 print(needed) ``` It prints: 144 At least 144 votes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 191 votes make 75% (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 191\nneeded = math.ceil(voters * 75 / 100) # 144\nprint(needed)\n```\nIt prints: 144\n\nAt least 144 votes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "144", "printed": "144", "notation": null}
nlprog_det-setting-0080878
<|start|><|user|> Copies cost $10 plus $0.25 for each page beyond 20. How much for 90 pages?<|eot|> <|assistant|> The total is $27.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Copies cost $10 plus $0.25 for each page beyond 20. How much for 90 pages?" }, { "role": "assistant", "content": "The total is $27.50." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "27.50", "printed": "27.50", "notation": null}
nlprog_det-setting-0080879
The landlord deducts $150 and $150 from a $2,500 deposit. What is returned to the tenant? A few lines of Python do it: ```python deposit = 2500 deductions = [150, 150] refund = deposit - sum(deductions) # 2200 print(refund) ``` (Printed: 2200) The refund is $2,200.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "2200", "printed": "2200", "notation": null}
nlprog_det-setting-0080880
A trial runs from July 28, 2027 to August 6, 2027, counting both days. How many calendar days is that? Code: ```python from datetime import date first = date(2027, 7, 28) # datetime.date(2027, 7, 28) last = date(2027, 8, 6) # datetime.date(2027, 8, 6) days = (last - first).days + 1 # 10 print(days) ``` Python print...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0080881
<|start|><|system|> Tools (call with JSON): [{"name": "run_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|> A 12-month war...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"run_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"req...
nlprog_det
setting
original
null
deterministic
[]
[]
275
{"gold": "2019-12-08", "printed": "2019-12-08", "notation": null}
nlprog_det-setting-0080882
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> Attendance was 161 out of 200. Express it as a percent.<|eot|> <|assistant|> ```python present = 161 total = 200 percent = present / total * 100 print(round(percent, 1)) ``` The code prints: 80.5 Attendance was 80.5%.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "Attendance was 161 out of 200. Express it as a percent." }, { "role": "assistant", "content": "```python\npresent = 161\ntotal = 200\npercent = present / total * 100\nprint(round(percent, 1...
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "80.5", "printed": "80.5", "notation": null}
nlprog_det-setting-0080883
Count 10 days forward from July 13, 2020. What date is that? It ends on July 23, 2020.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
25
{"gold": "2020-07-23", "printed": "2020-07-23", "notation": null}
nlprog_det-setting-0080884
How many weekdays (Monday to Friday) fall after April 25, 2023 up to and including May 24, 2023? A Python solution: ```python from datetime import date, timedelta start = date(2023, 4, 25) end = date(2023, 5, 24) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() < 5: ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0080885
An attorney bills 12 hours at $250 per hour. What is the bill? As a program: ```python hours = 12 rate = 250 bill = hours * rate print(f"{bill:.2f}") ``` Executing it gives 3000.00, as expected. The bill is $3,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "3000.00", "printed": "3000.00", "notation": null}
nlprog_det-setting-0080887
<|start|><|system|> Available functions (JSON Schema): {"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}} {"name": "calculator", "description": "Executes...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"...
nlprog_det
setting
original
null
deterministic
[]
[]
410
{"gold": "1833.33", "printed": "1833.33", "notation": null}
nlprog_det-setting-0080888
At $23.72 an hour, what does 40 hours of work pay? Let the code do the arithmetic: ```python rate = 23.72 hours = 40 earnings = rate * hours # 948.8 print(f"{earnings:.2f}") ``` # printed: 948.80 That earns $948.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "948.80", "printed": "948.80", "notation": null}
nlprog_det-setting-0080889
<|start|><|user|> Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 42 hours?<|eot|> <|assistant|> ```python rate = 20.0 hours = 42 regular = 40 * rate # 800.0 overtime = (hours - 40) * rate * 1.5 # 60.0 pay = regular + overtime # 860.0 print(f"{pay:.2f}") ``` Console output — 86...
chat
[ { "role": "user", "content": "Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 42 hours?" }, { "role": "assistant", "content": "```python\nrate = 20.0\nhours = 42\nregular = 40 * rate # 800.0\novertime = (hours - 40) * rate * 1.5 # 60.0\npay = regular + ov...
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "860.00", "printed": "860.00", "notation": null}
nlprog_det-setting-0080890
<|start|><|system|> Tools (call with JSON): {"name": "python_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> The paralegal logged 7 hours at a ...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"python_exec\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program\...
nlprog_det
setting
original
null
deterministic
[]
[]
219
{"gold": "1050.00", "printed": "1050.00", "notation": null}
nlprog_det-setting-0080891
<|start|><|user|> Someone works 32 hours at $18.00 per hour. What are the earnings?<|eot|> <|assistant|> rate = 18.0 hours = 32 earnings = rate * hours # 576.0 print(f"{earnings:.2f}") Printed — 576.00 The pay is $576.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Someone works 32 hours at $18.00 per hour. What are the earnings?" }, { "role": "assistant", "content": " rate = 18.0\n hours = 32\n earnings = rate * hours # 576.0\n print(f\"{earnings:.2f}\")\nPrinted — 576.00\n\nThe pay is $576.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "576.00", "printed": "576.00", "notation": null}
nlprog_det-setting-0080892
<|start|><|user|> Scale 300 g of flour from 6 servings to 10 servings.<|eot|> <|assistant|> ```python grams = 300 serves = 6 needed_for = 10 scaled = grams * needed_for // serves # 500 print(scaled) ``` The script prints 500. Use 500 g of flour.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Scale 300 g of flour from 6 servings to 10 servings." }, { "role": "assistant", "content": "```python\ngrams = 300\nserves = 6\nneeded_for = 10\nscaled = grams * needed_for // serves # 500\nprint(scaled)\n```\nThe script prints 500.\n\nUse 500 g of flour." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "500", "printed": "500", "notation": null}
nlprog_det-setting-0080893
<|start|><|user|> Lucia's scores were 60, 91, 79, 71, 84, 54 and 100. What is the average score?<|eot|> <|assistant|> ```python scores = [60, 91, 79, 71, 84, 54, 100] average = sum(scores) // len(scores) print(average) ``` Result: 77 The average score is 77.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Lucia's scores were 60, 91, 79, 71, 84, 54 and 100. What is the average score?" }, { "role": "assistant", "content": "```python\nscores = [60, 91, 79, 71, 84, 54, 100]\naverage = sum(scores) // len(scores)\nprint(average)\n```\nResult:\n77\n\nThe average score is 77...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0080894
<|start|><|system|> Tools you may use: [{"name": "code_runner", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "business_days", "description": "Count...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"code_runner\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippe...
nlprog_det
setting
original
null
deterministic
[]
[]
306
{"gold": "100", "printed": "100", "notation": null}
nlprog_det-setting-0080895
A $9,000 loan carries 10% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment? As a program: ```python principal = 9000 annual_rate = 10 / 100 # 0.1 months = 12 interest = principal * annual_rate * months / 12 # 900.0 payment = (principal + interes...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "825.00", "printed": "825.00", "notation": null}
nlprog_det-setting-0080896
<|start|><|user|> A lawyer's fee is 35% of a $12,000 recovery. How large is the fee?<|eot|> <|assistant|> ```python recovery = 12000 rate = 35 / 100 # 0.35 fee = recovery * rate # 4200.0 print(f"{fee:.2f}") ``` Run it and it prints 4200.00. The fee is $4,200.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lawyer's fee is 35% of a $12,000 recovery. How large is the fee?" }, { "role": "assistant", "content": "```python\nrecovery = 12000\nrate = 35 / 100 # 0.35\nfee = recovery * rate # 4200.0\nprint(f\"{fee:.2f}\")\n```\nRun it and it prints 4200.00.\n\nThe fee is $...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "4200.00", "printed": "4200.00", "notation": null}
nlprog_det-setting-0080897
<|start|><|user|> What simple interest does $1,000 earn at 6% a year over 5 years?<|eot|> <|assistant|> ```python principal = 1000 rate = 6 / 100 # 0.06 years = 5 interest = principal * rate * years # 300.0 print(f"{interest:.2f}") ``` # output: 300.00 It earns $300.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What simple interest does $1,000 earn at 6% a year over 5 years?" }, { "role": "assistant", "content": "```python\nprincipal = 1000\nrate = 6 / 100 # 0.06\nyears = 5\ninterest = principal * rate * years # 300.0\nprint(f\"{interest:.2f}\")\n```\n# output: 300.00\n\...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "300.00", "printed": "300.00", "notation": null}
nlprog_det-setting-0080898
77 copies of a 10-page packet are printed at $0.05 per page. What is the cost? Coded up: ```python pages = 10 copies = 77 cost_per_page = 0.05 cost = pages * copies * cost_per_page # 38.5 print(f"{cost:.2f}") ``` (Output: 38.50) Printing costs $38.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "38.50", "printed": "38.50", "notation": null}
nlprog_det-setting-0080899
With 8 rows of 22 chairs and 9 empty chairs, how many chairs are taken? Program: ```python rows = 8 per_row = 22 empty = 9 seated = rows * per_row - empty # 167 print(seated) ``` Run output: 167 167 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "167", "printed": "167", "notation": null}
nlprog_det-setting-0080900
Each of Uma's swims burns 300 calories. How many calories over 6 swims? ```python per_session = 300 sessions = 6 total = per_session * sessions # 1800 print(total) ``` Running it prints: 1800 1800 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "1800", "printed": "1800", "notation": null}
nlprog_det-setting-0080901
If a 105-minute meeting begins at 12:45 PM, what time does it finish? It ends at 2:30 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "2:30 PM", "printed": "2:30 PM", "notation": null}
nlprog_det-setting-0080902
Sales went from 200 to 150. What is the percent change? The computation: ```python old = 200 new = 150 change = (new - old) / old * 100 # -25.0 print(round(change)) ``` The script prints -25, as expected. The change is -25%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "-25", "printed": "-25", "notation": null}
nlprog_det-setting-0080903
<|start|><|system|> Tool definitions: [{"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", "pro...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"get_weather\", \"description\": \"Get the w...
nlprog_det
setting
original
null
deterministic
[]
[]
339
{"gold": "13 days and 18 hours", "printed": "13 days and 18 hours", "notation": null}
nlprog_det-setting-0080904
<|start|><|user|> How much sales tax is charged on a $80.11 purchase at 4%?<|eot|> <|assistant|> ```python price = 80.11 tax_rate = 4 / 100 # 0.04 tax = price * tax_rate # 3.2044 print(f"{tax:.2f}") ``` When run, it prints 3.20, as expected. The tax is $3.20.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How much sales tax is charged on a $80.11 purchase at 4%?" }, { "role": "assistant", "content": "```python\nprice = 80.11\ntax_rate = 4 / 100 # 0.04\ntax = price * tax_rate # 3.2044\nprint(f\"{tax:.2f}\")\n```\nWhen run, it prints 3.20, as expected.\n\nThe tax is ...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "3.20", "printed": "3.20", "notation": null}
nlprog_det-setting-0080905
Starting with 976 markers and using 16 per day, how many remain after 5 days? The program: stock = 976 per_day = 16 days = 5 left = stock - per_day * days # 896 print(left) When run, it prints 896, as expected. 896 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "896", "printed": "896", "notation": null}
nlprog_det-setting-0080906
<|start|><|user|> A water bill is $15 plus $4.20 per thousand gallons beyond the first 2 thousand. What is the bill for 18 thousand gallons?<|eot|> <|assistant|> base = 15 rate = 4.2 used = 18 free = 2 bill = base + rate * max(0, used - free) # 82.2 print(f"{bill:.2f}") That prints 82.20. The ...
chat
[ { "role": "user", "content": "A water bill is $15 plus $4.20 per thousand gallons beyond the first 2 thousand. What is the bill for 18 thousand gallons?" }, { "role": "assistant", "content": " base = 15\n rate = 4.2\n used = 18\n free = 2\n bill = base + rate * max(0, used - free)...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "82.20", "printed": "82.20", "notation": null}
nlprog_det-setting-0080907
<|start|><|user|> A service costs $15 a month or $168 a year. How much does the yearly plan save over 12 monthly payments?<|eot|> <|assistant|> ```python monthly = 15 yearly = 168 savings = monthly * 12 - yearly # 12 print(savings) ``` It prints: 12 The annual plan saves $12.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A service costs $15 a month or $168 a year. How much does the yearly plan save over 12 monthly payments?" }, { "role": "assistant", "content": "```python\nmonthly = 15\nyearly = 168\nsavings = monthly * 12 - yearly # 12\nprint(savings)\n```\nIt prints: 12\n\nThe an...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0080908
From 2002 to 2019, how many years is that? Program: ```python start_year = 2002 end_year = 2019 print(end_year - start_year) ``` Running it prints 17. 17 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
65
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0080909
<|start|><|user|> At 30 miles per hour, how many minutes does a 60-mile trip take?<|eot|> <|assistant|> ```python distance = 60 speed = 30 minutes = distance / speed * 60 # 120.0 print(round(minutes)) ``` stdout: 120 The trip takes 120 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 30 miles per hour, how many minutes does a 60-mile trip take?" }, { "role": "assistant", "content": "```python\ndistance = 60\nspeed = 30\nminutes = distance / speed * 60 # 120.0\nprint(round(minutes))\n```\nstdout:\n120\n\nThe trip takes 120 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0080910
<|start|><|user|> The paralegal logged 6.5 hours at a rate of $250. How much is billed?<|eot|> <|assistant|> ```python hours = 6.5 rate = 250 bill = hours * rate print(f"{bill:.2f}") ``` Python prints: 1625.00 That comes to $1,625.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The paralegal logged 6.5 hours at a rate of $250. How much is billed?" }, { "role": "assistant", "content": "```python\nhours = 6.5\nrate = 250\nbill = hours * rate\nprint(f\"{bill:.2f}\")\n```\nPython prints: 1625.00\n\nThat comes to $1,625.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "1625.00", "printed": "1625.00", "notation": null}
nlprog_det-setting-0080911
A meal costs $231.51. How much is a 25% tip? One way, in code: ```python bill = 231.51 tip_rate = 25 / 100 # 0.25 tip = bill * tip_rate # 57.8775 print(f"{tip:.2f}") ``` Shell output — 57.88 The tip is $57.88.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "57.88", "printed": "57.88", "notation": null}
nlprog_det-setting-0080912
<|start|><|user|> Convert 20.9 km to meters.<|eot|> <|assistant|> ```python km = 20.9 meters = km * 1000 print(round(meters)) ``` # printed result: 20900 20,900 m.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 20.9 km to meters." }, { "role": "assistant", "content": "```python\nkm = 20.9\nmeters = km * 1000\nprint(round(meters))\n```\n# printed result: 20900\n\n20,900 m." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
70
{"gold": "20900", "printed": "20900", "notation": null}
nlprog_det-setting-0080913
<|start|><|user|> Paula earns a 6% commission on $22,549 of sales. What is the commission?<|eot|> <|assistant|> sales = 22549 rate = 6 / 100 # 0.06 commission = sales * rate # 1352.94 print(f"{commission:.2f}") Executed, it shows: 1352.94 Paula earns $1,352.94.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Paula earns a 6% commission on $22,549 of sales. What is the commission?" }, { "role": "assistant", "content": " sales = 22549\n rate = 6 / 100 # 0.06\n commission = sales * rate # 1352.94\n print(f\"{commission:.2f}\")\nExecuted, it shows: 1352.94\n\n...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "1352.94", "printed": "1352.94", "notation": null}
nlprog_det-setting-0080914
<|start|><|user|> Monthly: $29. Annual: $318. What is saved per year by paying annually?<|eot|> <|assistant|> ```python monthly = 29 yearly = 318 savings = monthly * 12 - yearly # 30 print(savings) ``` The program outputs: 30 The annual plan saves $30.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Monthly: $29. Annual: $318. What is saved per year by paying annually?" }, { "role": "assistant", "content": "```python\nmonthly = 29\nyearly = 318\nsavings = monthly * 12 - yearly # 30\nprint(savings)\n```\nThe program outputs: 30\n\nThe annual plan saves $30." ...
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0080915
At a 8% tax rate, what is the tax on $717.03? Programmatically: ```python price = 717.03 tax_rate = 8 / 100 # 0.08 tax = price * tax_rate # 57.3624 print(f"{tax:.2f}") ``` (Printed: 57.36) $57.36 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "57.36", "printed": "57.36", "notation": null}
nlprog_det-setting-0080916
A 8-day trip pays $69 a day for meals and $110 a night for lodging (7 nights). What is the total allowance? A short script: ```python days = 8 meal_rate = 69 lodging_rate = 110 nights = days - 1 total = days * meal_rate + nights * lodging_rate print(total) ``` Executing it gives: 1322 The allowance is $1,322.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "1322", "printed": "1322", "notation": null}
nlprog_det-setting-0080917
Someone born August 22, 2004 turns how old by November 14, 2025? Give the age in whole years. As a program: from datetime import date born = date(2004, 8, 22) on = date(2025, 11, 14) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) print(age) Result: 21 The age is 21 years...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0080918
How much sales tax is charged on a $555.62 purchase at 7%? The program: price = 555.62 tax_rate = 7 / 100 # 0.07 tax = price * tax_rate # 38.89340000000001 print(f"{tax:.2f}") (stdout: 38.89) $38.89 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "38.89", "printed": "38.89", "notation": null}
nlprog_det-setting-0080919
Yoko was born on October 10, 1982. How old is Yoko on February 19, 2030? One way, in code: ```python from datetime import date born = date(1982, 10, 10) # datetime.date(1982, 10, 10) on = date(2030, 2, 19) # datetime.date(2030, 2, 19) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 47 pr...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
160
{"gold": "47", "printed": "47", "notation": null}
nlprog_det-setting-0080920
What commission does Ivan make on $88,160 in sales at 6%? Here is the program. ```python sales = 88160 rate = 6 / 100 # 0.06 commission = sales * rate # 5289.599999999999 print(f"{commission:.2f}") ``` Result: 5289.60 The commission is $5,289.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "5289.60", "printed": "5289.60", "notation": null}
nlprog_det-setting-0080921
3 clients win $72,000. The lawyer takes 25%, and the rest is split equally. How much does each client get? As a program: ```python award = 72000 fee = award * 25 / 100 # 18000.0 remaining = award - fee # 54000.0 per_client = remaining / 3 # 18000.0 print(f"{per_client:.2f}") ``` When run, it prints 18000.00, as exp...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "18000.00", "printed": "18000.00", "notation": null}
nlprog_det-setting-0080922
At a 9% tax rate, what is the tax on $733.22? Script: ```python price = 733.22 tax_rate = 9 / 100 # 0.09 tax = price * tax_rate # 65.9898 print(f"{tax:.2f}") ``` Executing it gives 65.99. $65.99 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "65.99", "printed": "65.99", "notation": null}
nlprog_det-setting-0080923
Someone born February 6, 1977 turns how old by January 24, 2028? Give the age in whole years. A short script: ```python from datetime import date born = date(1977, 2, 6) # datetime.date(1977, 2, 6) on = date(2028, 1, 24) # datetime.date(2028, 1, 24) age = on.year - born.year - ((on.month, on.day) < (born.month, born...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
156
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0080924
Someone works 30 hours at $27.41 per hour. What are the earnings? We write it as a program: ```python rate = 27.41 hours = 30 earnings = rate * hours # 822.3 print(f"{earnings:.2f}") ``` Shell output — 822.30 The pay is $822.30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "822.30", "printed": "822.30", "notation": null}
nlprog_det-setting-0080925
Split $3,855 between Tariq and Quinn in the ratio 2 to 3. What is Tariq's share? Here is the program. ```python total = 3855 parts_a = 2 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 1542 print(share_a) ``` # out: 1542 Tariq's share is $1,542.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "1542", "printed": "1542", "notation": null}
nlprog_det-setting-0080926
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> An office budget of $20,000 has expenses of $1,208, $1,486. How much of the budget is left?<|eot|> <|assistant|> $17,306 is left.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "role": "user", "content": "An office budget of $20,000 has expenses of $1,208, $1,486. How much of the budget is left?" }, { "role": "assistant", "content": "$17,306 is left." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
58
{"gold": "17306", "printed": "17306", "notation": null}
nlprog_det-setting-0080927
At an exchange rate of 1.08 USD per EUR, how many USD is 8,716 EUR? We write it as a program: amount = 8716 rate = 1.08 converted = amount * rate # 9413.28 print(f"{converted:.2f}") Console: 9413.28 It converts to 9,413.28 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "9413.28", "printed": "9413.28", "notation": null}
nlprog_det-setting-0080928
Convert 35 °C to Fahrenheit. It equals 95 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "95", "printed": "95", "notation": null}
nlprog_det-setting-0080929
<|start|><|user|> After a 40% fee is taken from a $48,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|> <|assistant|> award = 48000 fee = award * 40 / 100 # 19200.0 remaining = award - fee # 28800.0 per_client = remaining / 3 # 9600.0 print(f"{per_clie...
chat
[ { "role": "user", "content": "After a 40% fee is taken from a $48,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?" }, { "role": "assistant", "content": " award = 48000\n fee = award * 40 / 100 # 19200.0\n remaining = award - fee # 28800.0\n p...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "9600.00", "printed": "9600.00", "notation": null}
nlprog_det-setting-0080930
<|start|><|user|> Convert 18.5 km to meters.<|eot|> <|assistant|> ```python km = 18.5 meters = km * 1000 # 18500.0 print(round(meters)) ``` Running it prints: 18500 That is 18,500 meters.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 18.5 km to meters." }, { "role": "assistant", "content": "```python\nkm = 18.5\nmeters = km * 1000 # 18500.0\nprint(round(meters))\n```\nRunning it prints: 18500\n\nThat is 18,500 meters." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "18500", "printed": "18500", "notation": null}
nlprog_det-setting-0080931
A court charges $15 per request plus $0.10 per page after the first 0 pages. What does a 85-page copy cost? Here is the program. ```python pages = 85 base = 15 per_page = 0.1 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 23.5 print(f"{cost:.2f}") ``` Shell output: 23.50 The copy costs $23.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "23.50", "printed": "23.50", "notation": null}
nlprog_det-setting-0080932
<|start|><|user|> A count moves from 1,200 to 1,500. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> ```python old = 1200 new = 1500 change = (new - old) / old * 100 # 25.0 print(round(change)) ``` Result — 25 The change is 25%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A count moves from 1,200 to 1,500. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": "```python\nold = 1200\nnew = 1500\nchange = (new - old) / old * 100 # 25.0\nprint(round(change))\n```\nResult — 25\n\nThe change i...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0080933
<|start|><|user|> A $3,600 loan carries 10% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|> <|assistant|> The monthly payment is $130.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $3,600 loan carries 10% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?" }, { "role": "assistant", "content": "The monthly payment is $130.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
52
{"gold": "130.00", "printed": "130.00", "notation": null}
nlprog_det-setting-0080934
Someone born October 7, 2005 turns how old by April 4, 2027? Give the age in whole years. ```python from datetime import date born = date(2005, 10, 7) # datetime.date(2005, 10, 7) on = date(2027, 4, 4) # datetime.date(2027, 4, 4) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 21 print(a...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0080935
A $800 security deposit has deductions of $85, $120 and $85. How much is refunded? Python makes this quick: ```python deposit = 800 deductions = [85, 120, 85] refund = deposit - sum(deductions) print(refund) ``` # printed result: 510 $510 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "510", "printed": "510", "notation": null}
nlprog_det-setting-0080936
A clerk's office charges $25 for each filing. Ana submits 18 filings. What is the total fee? Python makes this quick: ```python fee = 25 filings = 18 total = fee * filings # 450 print(total) ``` Program output: 450 The filings cost $450 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "450", "printed": "450", "notation": null}
nlprog_det-setting-0080937
Shipping costs $5 plus $2.50 per pound. What does a 3-pound parcel cost to ship? Let's compute it with Python. ```python base = 5 per_pound = 2.5 weight = 3 cost = base + per_pound * weight # 12.5 print(f"{cost:.2f}") ``` # stdout: 12.50 Shipping costs $12.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "12.50", "printed": "12.50", "notation": null}
nlprog_det-setting-0080938
At an exchange rate of 1.35 EUR per USD, how many EUR is 303 USD? That is 409.05 EUR.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "409.05", "printed": "409.05", "notation": null}
nlprog_det-setting-0080940
<|start|><|system|> Tools you may use: [{"name": "run_python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> Equipment costs $12,000, ...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"run_python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\...
nlprog_det
setting
original
null
deterministic
[]
[]
249
{"gold": "1200.00", "printed": "1200.00", "notation": null}
nlprog_det-setting-0080941
<|start|><|system|> You can call tools. Available tools: {"name": "sandbox_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"sandbox_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python sourc...
nlprog_det
setting
original
null
deterministic
[]
[]
215
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0080942
Leon has 14 documents to file, and each filing costs $125. How much are the filing fees in total? Python: ```python fee = 125 filings = 14 total = fee * filings # 1750 print(total) ``` Running this gives: 1750 $1,750 in filing fees.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "1750", "printed": "1750", "notation": null}
nlprog_det-setting-0080943
<|start|><|system|> Answer the user's question directly.<|eot|> <|user|> The rules require 3/5 of 18 members (round up) to be present. How many is that?<|eot|> <|assistant|> ```python import math members = 18 quorum = math.ceil(members * 3 / 5) # 11 print(quorum) ``` Run it and it prints: 11 11 members are needed.<|e...
chat
[ { "role": "system", "content": "Answer the user's question directly." }, { "role": "user", "content": "The rules require 3/5 of 18 members (round up) to be present. How many is that?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 18\nquorum = math.ceil(membe...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0080944
3 friends split a $210 bill plus a 20% tip evenly. How much does each pay? Program: ```python bill = 210 tip_rate = 20 / 100 # 0.2 people = 3 each = bill * (1 + tip_rate) / people # 84.0 print(f"{each:.2f}") ``` Shell output — 84.00 Each person pays $84.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "84.00", "printed": "84.00", "notation": null}
nlprog_det-setting-0080945
With $12,500 in costs and $13,000 in revenue, what percent of revenue is profit? Round to one decimal. The Python version: revenue = 13000 costs = 12500 profit = revenue - costs margin = profit / revenue * 100 print(round(margin, 1)) Run result: 3.8 Profit is 3.8% of revenue.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "3.8", "printed": "3.8", "notation": null}
nlprog_det-setting-0080946
From a $2,500 retainer, 5 hours at $150/hour have been drawn. What remains? retainer = 2500 hours = 5 rate = 150 left = retainer - hours * rate # 1750 print(left) # execution result: 1750 The remaining balance is $1,750.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "1750", "printed": "1750", "notation": null}
nlprog_det-setting-0080947
<|start|><|user|> A count moves from 2,000 to 1,600. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> ```python old = 2000 new = 1600 change = (new - old) / old * 100 # -20.0 print(round(change)) ``` It outputs: -20 It changed by -20%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A count moves from 2,000 to 1,600. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": "```python\nold = 2000\nnew = 1600\nchange = (new - old) / old * 100 # -20.0\nprint(round(change))\n```\nIt outputs: -20\n\nIt chan...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "-20", "printed": "-20", "notation": null}
nlprog_det-setting-0080951
Leon was born on January 27, 1963. How old is Leon on November 25, 2028? Leon is 65.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "65", "printed": "65", "notation": null}
nlprog_det-setting-0080952
<|start|><|user|> Fines run at $250 per day up to a maximum of $2,500. How much after 31 days?<|eot|> <|assistant|> $2,500 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Fines run at $250 per day up to a maximum of $2,500. How much after 31 days?" }, { "role": "assistant", "content": "$2,500 is owed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0080953
<|start|><|user|> With 25% off, what does a $40 printer cost?<|eot|> <|assistant|> ```python price = 40 discount = 25 / 100 # 0.25 sale_price = price * (1 - discount) # 30.0 print(f"{sale_price:.2f}") ``` Output: 30.00 It costs $30.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 25% off, what does a $40 printer cost?" }, { "role": "assistant", "content": "```python\nprice = 40\ndiscount = 25 / 100 # 0.25\nsale_price = price * (1 - discount) # 30.0\nprint(f\"{sale_price:.2f}\")\n```\nOutput: 30.00\n\nIt costs $30.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "30.00", "printed": "30.00", "notation": null}
nlprog_det-setting-0080954
Each storage box holds 50 files. How many boxes are needed for 512 files? As Python: ```python import math files = 512 per_box = 50 boxes = math.ceil(files / per_box) # 11 print(boxes) ``` Shell output — 11 It takes 11 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0080955
How many whole days and leftover hours are in 352 hours? Let's compute it with Python. ```python hours = 352 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` The printout reads: 14 days and 16 hours That is 14 days and 16 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "14 days and 16 hours", "printed": "14 days and 16 hours", "notation": null}
nlprog_det-setting-0080956
Of a $2,000 budget, $1,000 has been spent. What percent is that? The Python version: ```python budget = 2000 spent = 1000 percent = spent / budget * 100 # 50.0 print(round(percent, 1)) ``` # printed: 50.0 That is 50.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "50.0", "printed": "50.0", "notation": null}
nlprog_det-setting-0080957
<|start|><|user|> The rules require 1/3 of 48 members (round up) to be present. How many is that?<|eot|> <|assistant|> ```python import math members = 48 quorum = math.ceil(members * 1 / 3) print(quorum) ``` This prints 16. 16 members are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The rules require 1/3 of 48 members (round up) to be present. How many is that?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 48\nquorum = math.ceil(members * 1 / 3)\nprint(quorum)\n```\nThis prints 16.\n\n16 members are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0080958
<|start|><|user|> A desk lamp costs $300. It is 30% off. What is the sale price?<|eot|> <|assistant|> price = 300 discount = 30 / 100 # 0.3 sale_price = price * (1 - discount) # 210.0 print(f"{sale_price:.2f}") Printed result: 210.00 The sale price is $210.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A desk lamp costs $300. It is 30% off. What is the sale price?" }, { "role": "assistant", "content": " price = 300\n discount = 30 / 100 # 0.3\n sale_price = price * (1 - discount) # 210.0\n print(f\"{sale_price:.2f}\")\nPrinted result: 210.00\n\nThe s...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "210.00", "printed": "210.00", "notation": null}
nlprog_det-setting-0080959
<|start|><|user|> Under a 35% contingency agreement, what fee is owed on a $40,000 award?<|eot|> <|assistant|> recovery = 40000 rate = 35 / 100 # 0.35 fee = recovery * rate # 14000.0 print(f"{fee:.2f}") It prints 14000.00, as expected. The lawyer's fee comes to $14,000.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Under a 35% contingency agreement, what fee is owed on a $40,000 award?" }, { "role": "assistant", "content": " recovery = 40000\n rate = 35 / 100 # 0.35\n fee = recovery * rate # 14000.0\n print(f\"{fee:.2f}\")\nIt prints 14000.00, as expected.\n\nThe...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "14000.00", "printed": "14000.00", "notation": null}
nlprog_det-setting-0080960
<|start|><|system|> You can call tools. Available tools: {"name": "interpreter", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> A $96 dinner ...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"interpreter\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \...
nlprog_det
setting
original
null
deterministic
[]
[]
237
{"gold": "56.64", "printed": "56.64", "notation": null}
nlprog_det-setting-0080961
Fuel for 180 miles at 24 mpg, with gas at $3.45/gallon: what is the cost? Fuel costs $25.88.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "25.88", "printed": "25.88", "notation": null}
nlprog_det-setting-0080962
<|start|><|system|> You are a study helper for students.<|eot|> <|user|> Filing fees are $75 per document. What do 17 filings cost?<|eot|> <|assistant|> ```python fee = 75 filings = 17 total = fee * filings print(total) ``` # console output: 1275 The filings cost $1,275 in all.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a study helper for students." }, { "role": "user", "content": "Filing fees are $75 per document. What do 17 filings cost?" }, { "role": "assistant", "content": "```python\nfee = 75\nfilings = 17\ntotal = fee * filings\nprint(total)\n```\n# cons...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "1275", "printed": "1275", "notation": null}
nlprog_det-setting-0080963
A 30-day notice period begins on July 17, 2020. On what date does it end? Python does the arithmetic: from datetime import date, timedelta start = date(2020, 7, 17) # datetime.date(2020, 7, 17) end = start + timedelta(days=30) # datetime.date(2020, 8, 16) print(end.isoformat()) The run gives: 2020-08...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "2020-08-16", "printed": "2020-08-16", "notation": null}
nlprog_det-setting-0080964
<|start|><|user|> Diego drove 35 miles for work. Mileage is reimbursed at 62 cents a mile. How much is the reimbursement?<|eot|> <|assistant|> Diego is owed $21.70.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Diego drove 35 miles for work. Mileage is reimbursed at 62 cents a mile. How much is the reimbursement?" }, { "role": "assistant", "content": "Diego is owed $21.70." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
51
{"gold": "21.70", "printed": "21.70", "notation": null}
nlprog_det-setting-0080965
Rent of $2,200 goes up 4%. What is the new rent? The computation: ```python rent = 2200 increase = 4 / 100 # 0.04 new_rent = rent * (1 + increase) # 2288.0 print(f"{new_rent:.2f}") ``` Execution result: 2288.00 It rises to $2,288.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "2288.00", "printed": "2288.00", "notation": null}
nlprog_det-setting-0080966
A measure needs at least 75% of 113 votes. How many votes is that, rounded up? Program: ```python import math voters = 113 needed = math.ceil(voters * 75 / 100) # 85 print(needed) ``` It outputs: 85 At least 85 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "85", "printed": "85", "notation": null}
nlprog_det-setting-0080967
<|start|><|user|> Counting only Monday through Friday, how many business days are there after October 2, 2025 through October 27, 2025?<|eot|> <|assistant|> There are 17 business days.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Counting only Monday through Friday, how many business days are there after October 2, 2025 through October 27, 2025?" }, { "role": "assistant", "content": "There are 17 business days." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0080968
A trial runs from April 16, 2019 to May 3, 2019, counting both days. How many calendar days is that? A short script: ```python from datetime import date first = date(2019, 4, 16) # datetime.date(2019, 4, 16) last = date(2019, 5, 3) # datetime.date(2019, 5, 3) days = (last - first).days + 1 # 18 print(days) ``` Run ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0080969
How long, in days, is it from November 10, 2025 until October 11, 2026? ```python from datetime import date first = date(2025, 11, 10) # datetime.date(2025, 11, 10) second = date(2026, 10, 11) # datetime.date(2026, 10, 11) print((second - first).days) ``` The interpreter prints: 335 There are 335 days between the t...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "335", "printed": "335", "notation": null}
nlprog_det-setting-0080970
<|start|><|user|> Revenue is $10,500 and costs are $8,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|> <|assistant|> ```python revenue = 10500 costs = 8000 profit = revenue - costs # 2500 margin = profit / revenue * 100 # 23.809523809523807 print(round(margin, 1)) ``` Console: 23.8 The ma...
chat
[ { "role": "user", "content": "Revenue is $10,500 and costs are $8,000. What is the profit margin as a percent of revenue (one decimal)?" }, { "role": "assistant", "content": "```python\nrevenue = 10500\ncosts = 8000\nprofit = revenue - costs # 2500\nmargin = profit / revenue * 100 # 23.8095238...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "23.8", "printed": "23.8", "notation": null}
nlprog_det-setting-0080971
Monthly rent is $2,400. A tenant moves in with 24 days left in a 30-day month. What is the prorated rent? A Python solution: rent = 2400 days_in_month = 30 days_occupied = 24 prorated = rent * days_occupied / days_in_month # 1920.0 print(f"{prorated:.2f}") When run, it prints 1920.00. The tenant ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "1920.00", "printed": "1920.00", "notation": null}
nlprog_det-setting-0080973
After an initial $6,000, the remainder of a $24,000 grant is paid in 6 equal parts. What is each part? One way, in code: ```python grant = 24000 up_front = 6000 installments = 6 each = (grant - up_front) / installments # 3000.0 print(f"{each:.2f}") ``` # printed: 3000.00 $3,000.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "3000.00", "printed": "3000.00", "notation": null}
nlprog_det-setting-0080974
Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 53 hours? Computation in Python: ```python rate = 18.5 hours = 53 regular = 40 * rate # 740.0 overtime = (hours - 40) * rate * 1.5 # 360.75 pay = regular + overtime # 1100.75 print(f"{pay:.2f}") ``` The interpreter prints: 1100.7...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "1100.75", "printed": "1100.75", "notation": null}
nlprog_det-setting-0080976
With 30% off, what does a $250 chair cost? Python does the arithmetic: ```python price = 250 discount = 30 / 100 # 0.3 sale_price = price * (1 - discount) # 175.0 print(f"{sale_price:.2f}") ``` (Printed: 175.00) The sale price is $175.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "175.00", "printed": "175.00", "notation": null}
nlprog_det-setting-0080977
<|start|><|user|> An invoice lists 25 pens at $6 each, plus 10% sales tax. What is the invoice total?<|eot|> <|assistant|> ```python quantity = 25 unit_price = 6 subtotal = quantity * unit_price # 150 total = subtotal * (1 + 10 / 100) # 165.0 print(f"{total:.2f}") ``` # execution result: 165.00 The invoice total is ...
chat
[ { "role": "user", "content": "An invoice lists 25 pens at $6 each, plus 10% sales tax. What is the invoice total?" }, { "role": "assistant", "content": "```python\nquantity = 25\nunit_price = 6\nsubtotal = quantity * unit_price # 150\ntotal = subtotal * (1 + 10 / 100) # 165.0\nprint(f\"{total:...
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "165.00", "printed": "165.00", "notation": null}
nlprog_det-setting-0080978
Monthly: $19. Annual: $204. What is saved per year by paying annually? Here is the program. ```python monthly = 19 yearly = 204 savings = monthly * 12 - yearly # 24 print(savings) ``` When run, it prints: 24 $24 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0080980
A 100-mile drive at a steady 50 mph takes how many minutes? Let's compute it with Python. ```python distance = 100 speed = 50 minutes = distance / speed * 60 # 120.0 print(round(minutes)) ``` # program output: 120 120 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0080981
<|start|><|user|> Straight-line depreciation: cost $45,000, salvage $2,000, 10 years. How much per year?<|eot|> <|assistant|> ```python cost = 45000 salvage = 2000 years = 10 per_year = (cost - salvage) / years # 4300.0 print(f"{per_year:.2f}") ``` Output: 4300.00 Depreciation is $4,300.00 per year.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Straight-line depreciation: cost $45,000, salvage $2,000, 10 years. How much per year?" }, { "role": "assistant", "content": "```python\ncost = 45000\nsalvage = 2000\nyears = 10\nper_year = (cost - salvage) / years # 4300.0\nprint(f\"{per_year:.2f}\")\n```\nOutput:...
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "4300.00", "printed": "4300.00", "notation": null}
nlprog_det-setting-0080982
Ivan buys 10 boxes of 24 toner kits each and gives away 4 toner kits. How many toner kits are left? One way, in code: ```python boxes = 10 per_box = 24 given_away = 4 left = boxes * per_box - given_away # 236 print(left) ``` (Output: 236) 236 toner kits are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "236", "printed": "236", "notation": null}