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-0073131
A hearing is set for July 28, 2004. What day of the week is that? Python makes this quick: ```python from datetime import date hearing = date(2004, 7, 28) # datetime.date(2004, 7, 28) print(hearing.strftime("%A")) ``` # printed: Wednesday July 28, 2004 is a Wednesday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "Wednesday", "printed": "Wednesday", "notation": null}
nlprog_det-setting-0073132
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> What average speed covers 585 miles in 3 hours?<|eot|> <|assistant|> ```python distance = 585 hours = 3 speed = distance / hours # 195.0 print(round(speed)) ``` This prints 195. The average speed is 195 mph.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "What average speed covers 585 miles in 3 hours?" }, { "role": "assistant", "content": "```python\ndistance = 585\nhours = 3\nspeed = distance / hours # 195.0\nprint(round(speed...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "195", "printed": "195", "notation": null}
nlprog_det-setting-0073133
Someone born April 7, 1996 turns how old by July 25, 2020? Give the age in whole years. from datetime import date born = date(1996, 4, 7) # datetime.date(1996, 4, 7) on = date(2020, 7, 25) # datetime.date(2020, 7, 25) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 24 ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0073134
<|start|><|user|> A $1,200 loan carries 6% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|> <|assistant|> ```python principal = 1200 annual_rate = 6 / 100 # 0.06 months = 36 interest = principal * annual_rate * months / 12 # 216.0 payment...
chat
[ { "role": "user", "content": "A $1,200 loan carries 6% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?" }, { "role": "assistant", "content": "```python\nprincipal = 1200\nannual_rate = 6 / 100 # 0.06\nmonths = 36\ninteres...
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "39.33", "printed": "39.33", "notation": null}
nlprog_det-setting-0073136
A $2,400 loan carries 8% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment? Computing it: ```python principal = 2400 annual_rate = 8 / 100 # 0.08 months = 36 interest = principal * annual_rate * months / 12 # 576.0 payment = (principal + interest...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "82.67", "printed": "82.67", "notation": null}
nlprog_det-setting-0073137
A desk lamp costs $90. It is 20% off. What is the sale price? Program: ```python price = 90 discount = 20 / 100 # 0.2 sale_price = price * (1 - discount) # 72.0 print(f"{sale_price:.2f}") ``` Run it and it prints: 72.00 The sale price is $72.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "72.00", "printed": "72.00", "notation": null}
nlprog_det-setting-0073138
Convert 2 h 29 min (the length of a film) to minutes. Here is a short program for it. ```python hours = 2 minutes = 29 total_minutes = hours * 60 + minutes # 149 print(total_minutes) ``` Execution result — 149 That is 149 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "149", "printed": "149", "notation": null}
nlprog_det-setting-0073139
An invoice lists 17 desk lamps at $4 each, plus 5% sales tax. What is the invoice total? Here is the program. quantity = 17 unit_price = 4 subtotal = quantity * unit_price # 68 total = subtotal * (1 + 5 / 100) # 71.4 print(f"{total:.2f}") That prints 71.40. The invoice total is $71.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "71.40", "printed": "71.40", "notation": null}
nlprog_det-setting-0073140
Copies cost $10 plus $0.50 for each page beyond 20. How much for 70 pages? Here is a short program for it. ```python pages = 70 base = 10 per_page = 0.5 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 35.0 print(f"{cost:.2f}") ``` On running, it outputs 35.00. The copy costs $35.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "35.00", "printed": "35.00", "notation": null}
nlprog_det-setting-0073141
Equipment costs $12,000, has a salvage value of $6,000, and a useful life of 10 years. What is the straight-line depreciation per year? $600.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "600.00", "printed": "600.00", "notation": null}
nlprog_det-setting-0073142
<|start|><|user|> The paralegal logged 4 hours at a rate of $150. How much is billed?<|eot|> <|assistant|> ```python hours = 4 rate = 150 bill = hours * rate # 600 print(f"{bill:.2f}") ``` Output: 600.00 That comes to $600.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The paralegal logged 4 hours at a rate of $150. How much is billed?" }, { "role": "assistant", "content": "```python\nhours = 4\nrate = 150\nbill = hours * rate # 600\nprint(f\"{bill:.2f}\")\n```\nOutput: 600.00\n\nThat comes to $600.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "600.00", "printed": "600.00", "notation": null}
nlprog_det-setting-0073143
<|start|><|user|> Express 270 hours in days and hours.<|eot|> <|assistant|> ```python hours = 270 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` # out: 11 days and 6 hours 270 hours is 11 days and 6 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Express 270 hours in days and hours." }, { "role": "assistant", "content": "```python\nhours = 270\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\n# out: 11 days and 6 hours\n\n270 hours is 11 days and 6 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "11 days and 6 hours", "printed": "11 days and 6 hours", "notation": null}
nlprog_det-setting-0073144
The rules require 2/3 of 9 members (round up) to be present. How many is that? Written as code: ```python import math members = 9 quorum = math.ceil(members * 2 / 3) print(quorum) ``` stdout = 6 That is 6 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0073145
Someone born February 6, 1980 turns how old by March 1, 2027? Give the age in whole years. Computation in Python: ```python from datetime import date born = date(1980, 2, 6) # datetime.date(1980, 2, 6) on = date(2027, 3, 1) # datetime.date(2027, 3, 1) age = on.year - born.year - ((on.month, on.day) < (born.month, bo...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
164
{"gold": "47", "printed": "47", "notation": null}
nlprog_det-setting-0073146
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> A jacket costs $90. It is 10% off. What is the sale price?<|eot|> <|assistant|> ```python price = 90 discount = 10 / 100 # 0.1 sale_price = price * (1 - discount) # 81.0 print(f"{sale_price:.2f}") ``` Out = 81.00 The sale price is $81.00.<|...
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "A jacket costs $90. It is 10% off. What is the sale price?" }, { "role": "assistant", "content": "```python\nprice = 90\ndiscount = 10 / 100 # 0.1\nsale_price = price * (1 - di...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "81.00", "printed": "81.00", "notation": null}
nlprog_det-setting-0073147
<|start|><|user|> Each storage box holds 50 files. How many boxes are needed for 735 files?<|eot|> <|assistant|> 15 boxes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each storage box holds 50 files. How many boxes are needed for 735 files?" }, { "role": "assistant", "content": "15 boxes are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0073148
<|start|><|system|> Functions: {"name": "run_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}} {"name": "lookup_statute", "description": "Look up the te...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"run_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}\n{...
nlprog_det
setting
original
null
deterministic
[]
[]
315
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0073149
<|start|><|user|> With 21 rows of 14 chairs and 39 empty chairs, how many chairs are taken?<|eot|> <|assistant|> ```python rows = 21 per_row = 14 empty = 39 seated = rows * per_row - empty # 255 print(seated) ``` Printed = 255 255 people are seated.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 21 rows of 14 chairs and 39 empty chairs, how many chairs are taken?" }, { "role": "assistant", "content": "```python\nrows = 21\nper_row = 14\nempty = 39\nseated = rows * per_row - empty # 255\nprint(seated)\n```\nPrinted = 255\n\n255 people are seated." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "255", "printed": "255", "notation": null}
nlprog_det-setting-0073150
At 1% a month (simple), what interest builds on $12,000 over 2 months? ```python balance = 12000 monthly_rate = 1 / 100 # 0.01 months = 2 interest = balance * monthly_rate * months # 240.0 print(f"{interest:.2f}") ``` # out: 240.00 $240.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "240.00", "printed": "240.00", "notation": null}
nlprog_det-setting-0073151
If a 50-minute meeting begins at 2:30 PM, what time does it finish? Let the code do the arithmetic: ```python start = 14 * 60 + 30 end = start + 50 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` What it prints — 3:20 PM The meeting finishes at 3:20 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "3:20 PM", "printed": "3:20 PM", "notation": null}
nlprog_det-setting-0073152
Straight-line depreciation: cost $45,000, salvage $6,000, 3 years. How much per year? Set it up in Python: ```python cost = 45000 salvage = 6000 years = 3 per_year = (cost - salvage) / years # 13000.0 print(f"{per_year:.2f}") ``` Executing it gives 13000.00. Depreciation is $13,000.00 per year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "13000.00", "printed": "13000.00", "notation": null}
nlprog_det-setting-0073153
<|start|><|system|> Available functions (JSON Schema): [{"name": "py_exec", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> Rent of $1,800 goes u...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"py_exec\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"...
nlprog_det
setting
original
null
deterministic
[]
[]
228
{"gold": "1944.00", "printed": "1944.00", "notation": null}
nlprog_det-setting-0073154
<|start|><|system|> Tool definitions: {"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}} {"name": "python_exec", "description": "Evaluates Python and returns the printed output.", "parameters": {"type"...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}\n{\"name\": \"python_exec\", \"description\": \"Evaluates Pyt...
nlprog_det
setting
original
null
deterministic
[]
[]
320
{"gold": "82.67", "printed": "82.67", "notation": null}
nlprog_det-setting-0073155
Someone works 36 hours at $31.10 per hour. What are the earnings? Python makes this quick: ```python rate = 31.1 hours = 36 earnings = rate * hours # 1119.6000000000001 print(f"{earnings:.2f}") ``` What it prints: 1119.60 That earns $1,119.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "1119.60", "printed": "1119.60", "notation": null}
nlprog_det-setting-0073156
<|start|><|user|> Rent of $900 goes up 6%. What is the new rent?<|eot|> <|assistant|> It rises to $954.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rent of $900 goes up 6%. What is the new rent?" }, { "role": "assistant", "content": "It rises to $954.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "954.00", "printed": "954.00", "notation": null}
nlprog_det-setting-0073157
<|start|><|system|> You may call the tools below. {"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}} {"name": "code_runner", "description": "A Python interpreter. Returns standard output.", "parameters...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}\n{\"name\": \"code_runner\", \"description\": \"A...
nlprog_det
setting
original
null
deterministic
[]
[]
293
{"gold": "6250", "printed": "6250", "notation": null}
nlprog_det-setting-0073158
<|start|><|user|> After a 30% fee is taken from a $96,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|> <|assistant|> ```python award = 96000 fee = award * 30 / 100 # 28800.0 remaining = award - fee # 67200.0 per_client = remaining / 3 # 22400.0 print(f"{per_client:.2f}")...
chat
[ { "role": "user", "content": "After a 30% fee is taken from a $96,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?" }, { "role": "assistant", "content": "```python\naward = 96000\nfee = award * 30 / 100 # 28800.0\nremaining = award - fee # 67200.0\nper_cl...
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "22400.00", "printed": "22400.00", "notation": null}
nlprog_det-setting-0073159
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> Ulla's scores were 94, 55, 90, 76, 95, 92 and 93. What is the average score?<|eot|> <|assistant|> The average score is 85.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "Ulla's scores were 94, 55, 90, 76, 95, 92 and 93. What is the average score?" }, { "role": "assistant", "content": "The average score is 85." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
55
{"gold": "85", "printed": "85", "notation": null}
nlprog_det-setting-0073160
<|start|><|user|> A quorum is 1/3 of the 56 members, rounded up. How many members make a quorum?<|eot|> <|assistant|> ```python import math members = 56 quorum = math.ceil(members * 1 / 3) # 19 print(quorum) ``` Result: 19 19 members are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A quorum is 1/3 of the 56 members, rounded up. How many members make a quorum?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 56\nquorum = math.ceil(members * 1 / 3) # 19\nprint(quorum)\n```\nResult: 19\n\n19 members are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0073161
<|start|><|user|> Sofia's scores were 62, 70, 68, 86 and 54. What is the average score?<|eot|> <|assistant|> ```python scores = [62, 70, 68, 86, 54] average = sum(scores) // len(scores) # 68 print(average) ``` Executing it gives: 68 The mean is 68.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Sofia's scores were 62, 70, 68, 86 and 54. What is the average score?" }, { "role": "assistant", "content": "```python\nscores = [62, 70, 68, 86, 54]\naverage = sum(scores) // len(scores) # 68\nprint(average)\n```\nExecuting it gives: 68\n\nThe mean is 68." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "68", "printed": "68", "notation": null}
nlprog_det-setting-0073162
A trial runs from December 3, 2026 to December 13, 2026, counting both days. How many calendar days is that? In Python: from datetime import date first = date(2026, 12, 3) # datetime.date(2026, 12, 3) last = date(2026, 12, 13) # datetime.date(2026, 12, 13) days = (last - first).days + 1 # 11 pri...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0073164
<|start|><|user|> Each of Kaito's bike rides burns 250 calories. How many calories over 5 bike rides?<|eot|> <|assistant|> ```python per_session = 250 sessions = 5 total = per_session * sessions # 1250 print(total) ``` The code prints: 1250 That burns 1250 calories.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each of Kaito's bike rides burns 250 calories. How many calories over 5 bike rides?" }, { "role": "assistant", "content": "```python\nper_session = 250\nsessions = 5\ntotal = per_session * sessions # 1250\nprint(total)\n```\nThe code prints: 1250\n\nThat burns 1250...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "1250", "printed": "1250", "notation": null}
nlprog_det-setting-0073165
An invoice lists 32 rulers at $24 each, plus 5% sales tax. What is the invoice total? Here is the program. ```python quantity = 32 unit_price = 24 subtotal = quantity * unit_price # 768 total = subtotal * (1 + 5 / 100) # 806.4000000000001 print(f"{total:.2f}") ``` (Program output: 806.40) The invoice total is $806....
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "806.40", "printed": "806.40", "notation": null}
nlprog_det-setting-0073167
<|start|><|system|> Keep answers short and correct.<|eot|> <|user|> Starting with 1061 mugs and using 35 per day, how many remain after 16 days?<|eot|> <|assistant|> 501 remain.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Keep answers short and correct." }, { "role": "user", "content": "Starting with 1061 mugs and using 35 per day, how many remain after 16 days?" }, { "role": "assistant", "content": "501 remain." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "501", "printed": "501", "notation": null}
nlprog_det-setting-0073168
Convert 20.8 km to meters. Translated to Python: km = 20.8 meters = km * 1000 # 20800.0 print(round(meters)) (Program output: 20800) 20,800 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "20800", "printed": "20800", "notation": null}
nlprog_det-setting-0073169
<|start|><|user|> Count 21 days forward from September 12, 2021. What date is that?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2021, 9, 12) # datetime.date(2021, 9, 12) end = start + timedelta(days=21) # datetime.date(2021, 10, 3) print(end.isoformat()) ``` Printed: 2021-10-03 T...
chat
[ { "role": "user", "content": "Count 21 days forward from September 12, 2021. What date is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2021, 9, 12) # datetime.date(2021, 9, 12)\nend = start + timedelta(days=21) # datetime.date(2021,...
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "2021-10-03", "printed": "2021-10-03", "notation": null}
nlprog_det-setting-0073170
<|start|><|user|> Rent of $900 goes up 2%. What is the new rent?<|eot|> <|assistant|> ```python rent = 900 increase = 2 / 100 new_rent = rent * (1 + increase) print(f"{new_rent:.2f}") ``` The program prints: 918.00 The new rent is $918.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rent of $900 goes up 2%. What is the new rent?" }, { "role": "assistant", "content": "```python\nrent = 900\nincrease = 2 / 100\nnew_rent = rent * (1 + increase)\nprint(f\"{new_rent:.2f}\")\n```\nThe program prints: 918.00\n\nThe new rent is $918.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "918.00", "printed": "918.00", "notation": null}
nlprog_det-setting-0073171
<|start|><|user|> Buying 4 chairs at $22 each, 5 file boxes at $3 each, 5 flash drives at $16 each, 6 mugs at $23 each, someone hands over $350. What change comes back?<|eot|> <|assistant|> ```python items = [(4, 22), (5, 3), (5, 16), (6, 23)] total = sum(q * p for q, p in items) # 321 paid = 350 change = paid - total...
chat
[ { "role": "user", "content": "Buying 4 chairs at $22 each, 5 file boxes at $3 each, 5 flash drives at $16 each, 6 mugs at $23 each, someone hands over $350. What change comes back?" }, { "role": "assistant", "content": "```python\nitems = [(4, 22), (5, 3), (5, 16), (6, 23)]\ntotal = sum(q * p fo...
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0073172
Starting with 1788 envelopes and using 16 per day, how many remain after 18 days? ```python stock = 1788 per_day = 16 days = 18 left = stock - per_day * days # 1500 print(left) ``` The interpreter prints: 1500 1500 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0073173
<|start|><|user|> A 10 lb package ships at $5 base plus $2.50/lb. What is the charge?<|eot|> <|assistant|> base = 5 per_pound = 2.5 weight = 10 cost = base + per_pound * weight # 30.0 print(f"{cost:.2f}") # printed: 30.00 Shipping costs $30.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 10 lb package ships at $5 base plus $2.50/lb. What is the charge?" }, { "role": "assistant", "content": " base = 5\n per_pound = 2.5\n weight = 10\n cost = base + per_pound * weight # 30.0\n print(f\"{cost:.2f}\")\n# printed: 30.00\n\nShipping cost...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "30.00", "printed": "30.00", "notation": null}
nlprog_det-setting-0073174
A count moves from 800 to 480. By what percent did it change (use a minus sign for a drop)? ```python old = 800 new = 480 change = (new - old) / old * 100 # -40.0 print(round(change)) ``` Executing it gives: -40 It changed by -40%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "-40", "printed": "-40", "notation": null}
nlprog_det-setting-0073175
<|start|><|user|> To read 238 pages in 14 days, how many pages per day are needed?<|eot|> <|assistant|> pages = 238 days = 14 per_day = pages // days # 17 print(per_day) The printout reads: 17 17 pages a day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "To read 238 pages in 14 days, how many pages per day are needed?" }, { "role": "assistant", "content": " pages = 238\n days = 14\n per_day = pages // days # 17\n print(per_day)\nThe printout reads: 17\n\n17 pages a day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
69
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0073176
A 15 lb package ships at $5 base plus $2.50/lb. What is the charge? In code: ```python base = 5 per_pound = 2.5 weight = 15 cost = base + per_pound * weight # 42.5 print(f"{cost:.2f}") ``` Python prints: 42.50 The charge is $42.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "42.50", "printed": "42.50", "notation": null}
nlprog_det-setting-0073177
Sara and Mei share $525 in the ratio 2:3. How much does Sara get? A short script: ```python total = 525 parts_a = 2 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 210 print(share_a) ``` On running, it outputs 210. Sara's share is $210.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "210", "printed": "210", "notation": null}
nlprog_det-setting-0073178
<|start|><|user|> Divide 271 items among 7 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|> <|assistant|> ```python total = 271 groups = 7 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` What it prints: 38 each, 5 left ove...
chat
[ { "role": "user", "content": "Divide 271 items among 7 groups as evenly as possible with equal groups. How many per group, and how many remain?" }, { "role": "assistant", "content": "```python\ntotal = 271\ngroups = 7\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {rem...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "38 each, 5 left over", "printed": "38 each, 5 left over", "notation": null}
nlprog_det-setting-0073179
Ana was born on August 22, 1988. How old is Ana on March 8, 2021? The program: ```python from datetime import date born = date(1988, 8, 22) # datetime.date(1988, 8, 22) on = date(2021, 3, 8) # datetime.date(2021, 3, 8) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 32 print(age) ``` Run...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0073180
An office budget of $12,000 has expenses of $3,675, $3,085, $2,231, $3,612. How much of the budget is left? We can compute it in Python. ```python budget = 12000 expenses = [3675, 3085, 2231, 3612] left = budget - sum(expenses) # -603 print(left) ``` The interpreter prints: -603 The remaining budget is -$603.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "-603", "printed": "-603", "notation": null}
nlprog_det-setting-0073181
At $20.41 an hour, what does 12 hours of work pay? One way, in code: ```python rate = 20.41 hours = 12 earnings = rate * hours print(f"{earnings:.2f}") ``` Console output: 244.92 The pay is $244.92.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "244.92", "printed": "244.92", "notation": null}
nlprog_det-setting-0073182
Fixed costs are $2,500. Each unit sells for $25 and costs $17 to make. How many units must be sold to break even? A few lines of Python do it: ```python import math fixed = 2500 price = 25 variable = 17 units = math.ceil(fixed / (price - variable)) # 313 print(units) ``` Python prints 313. 313 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "313", "printed": "313", "notation": null}
nlprog_det-setting-0073183
<|start|><|system|> You can call tools. Available tools: [{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "run_python", "description": "Eva...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"star...
nlprog_det
setting
original
null
deterministic
[]
[]
367
{"gold": "78.8", "printed": "78.8", "notation": null}
nlprog_det-setting-0073185
Find the mean of these test scores: 70, 54, 78 and 82. As Python: ```python scores = [70, 54, 78, 82] average = sum(scores) // len(scores) # 71 print(average) ``` stdout = 71 The mean is 71.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "71", "printed": "71", "notation": null}
nlprog_det-setting-0073186
Someone born March 16, 1986 turns how old by March 8, 2029? Give the age in whole years. One way, in code: ```python from datetime import date born = date(1986, 3, 16) # datetime.date(1986, 3, 16) on = date(2029, 3, 8) # datetime.date(2029, 3, 8) age = on.year - born.year - ((on.month, on.day) < (born.month, born.da...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
161
{"gold": "42", "printed": "42", "notation": null}
nlprog_det-setting-0073187
Monthly rent is $2,400. A tenant moves in with 21 days left in a 30-day month. What is the prorated rent? Here is the program. ```python rent = 2400 days_in_month = 30 days_occupied = 21 prorated = rent * days_occupied / days_in_month # 1680.0 print(f"{prorated:.2f}") ``` The script prints: 1680.00 The tenant owes $...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "1680.00", "printed": "1680.00", "notation": null}
nlprog_det-setting-0073188
A claim accrued on June 20, 2020. The limitations period is 6 years. On what date does it expire? Python does the arithmetic: ```python from datetime import date accrued = date(2020, 6, 20) # datetime.date(2020, 6, 20) years = 6 expires = accrued.replace(year=accrued.year + years) # datetime.date(2026, 6, 20) print(...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "2026-06-20", "printed": "2026-06-20", "notation": null}
nlprog_det-setting-0073189
Copies cost $10 plus $0.10 for each page beyond 20. How much for 93 pages? The computation: ```python pages = 93 base = 10 per_page = 0.1 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 17.3 print(f"{cost:.2f}") ``` Execution result — 17.30 The copy costs $17.30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "17.30", "printed": "17.30", "notation": null}
nlprog_det-setting-0073190
Starting with 567 notebooks and using 37 per day, how many remain after 15 days? 12 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0073191
<|start|><|user|> A customer buys 1 markers at $8 each, 6 toner kits at $23 each, 2 keyboards at $23 each, 1 chairs at $21 each and pays with $250. How much change is due?<|eot|> <|assistant|> The change is $37.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A customer buys 1 markers at $8 each, 6 toner kits at $23 each, 2 keyboards at $23 each, 1 chairs at $21 each and pays with $250. How much change is due?" }, { "role": "assistant", "content": "The change is $37." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
67
{"gold": "37", "printed": "37", "notation": null}
nlprog_det-setting-0073192
A library charges $0.15 per book per day late. What is the fine for 4 books that are 27 days late? A short script: ```python per_day = 0.15 days_late = 27 books = 4 fine = per_day * days_late * books # 16.2 print(f"{fine:.2f}") ``` Console output — 16.20 $16.20 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "16.20", "printed": "16.20", "notation": null}
nlprog_det-setting-0073193
<|start|><|user|> Counting only Monday through Friday, how many business days are there after March 21, 2025 through March 30, 2025?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2025, 3, 21) end = date(2025, 3, 30) count = 0 for k in range(1, (end - start).days + 1): if (start + ...
chat
[ { "role": "user", "content": "Counting only Monday through Friday, how many business days are there after March 21, 2025 through March 30, 2025?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2025, 3, 21)\nend = date(2025, 3, 30)\ncount = 0\n...
nlprog_det
setting
original
null
deterministic
[]
[]
156
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0073195
<|start|><|system|> You may call the tools below. {"name": "sandbox_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> A service cos...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"sandbox_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"r...
nlprog_det
setting
original
null
deterministic
[]
[]
217
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0073196
How much sales tax is charged on a $225.89 purchase at 9%? Here is a short program for it. ```python price = 225.89 tax_rate = 9 / 100 # 0.09 tax = price * tax_rate # 20.330099999999998 print(f"{tax:.2f}") ``` That prints 20.33. $20.33 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "20.33", "printed": "20.33", "notation": null}
nlprog_det-setting-0073197
<|start|><|user|> 6 claimants share a $7,350 settlement equally. What is each share?<|eot|> <|assistant|> Each share is $1,225.<|eot|> <|end|>
chat
[ { "role": "user", "content": "6 claimants share a $7,350 settlement equally. What is each share?" }, { "role": "assistant", "content": "Each share is $1,225." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "1225", "printed": "1225", "notation": null}
nlprog_det-setting-0073198
How many of 212 votes make 75% (round up)? As Python: import math voters = 212 needed = math.ceil(voters * 75 / 100) # 159 print(needed) # console output: 159 159 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "159", "printed": "159", "notation": null}
nlprog_det-setting-0073199
Which is cheaper per unit: 10 for $6.42 (A) or 18 for $28.71 (B)? Python code: ```python pack_a = 6.42 / 10 # 0.642 pack_b = 28.71 / 18 # 1.595 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` Run it and it prints A. Pack A is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0073200
An office budget of $12,000 has expenses of $2,590, $1,360. How much of the budget is left? $8,050 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "8050", "printed": "8050", "notation": null}
nlprog_det-setting-0073201
A court charges $15 per request plus $0.50 per page after the first 0 pages. What does a 71-page copy cost? Here is a short program for it. ```python pages = 71 base = 15 per_page = 0.5 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 50.5 print(f"{cost:.2f}") ``` (Printed: 50.50) The total is $5...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "50.50", "printed": "50.50", "notation": null}
nlprog_det-setting-0073202
How many meters are in 15.1 kilometers? Python version: ```python km = 15.1 meters = km * 1000 # 15100.0 print(round(meters)) ``` Execution prints 15100, as expected. That is 15,100 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "15100", "printed": "15100", "notation": null}
nlprog_det-setting-0073204
A 90-day notice period begins on January 5, 2020. On what date does it end? Written as code: ```python from datetime import date, timedelta start = date(2020, 1, 5) # datetime.date(2020, 1, 5) end = start + timedelta(days=90) # datetime.date(2020, 4, 4) print(end.isoformat()) ``` Python prints: 2020-04-04 It ends o...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "2020-04-04", "printed": "2020-04-04", "notation": null}
nlprog_det-setting-0073205
<|start|><|user|> A car travels 282 miles in 2 hours. What is its average speed in miles per hour?<|eot|> <|assistant|> ```python distance = 282 hours = 2 speed = distance / hours # 141.0 print(round(speed)) ``` What it prints — 141 It averages 141 miles per hour.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A car travels 282 miles in 2 hours. What is its average speed in miles per hour?" }, { "role": "assistant", "content": "```python\ndistance = 282\nhours = 2\nspeed = distance / hours # 141.0\nprint(round(speed))\n```\nWhat it prints — 141\n\nIt averages 141 miles p...
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "141", "printed": "141", "notation": null}
nlprog_det-setting-0073206
<|start|><|user|> Split $4,864 between Beatriz and Priya in the ratio 3 to 5. What is Beatriz's share?<|eot|> <|assistant|> Beatriz gets $1,824.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Split $4,864 between Beatriz and Priya in the ratio 3 to 5. What is Beatriz's share?" }, { "role": "assistant", "content": "Beatriz gets $1,824." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
50
{"gold": "1824", "printed": "1824", "notation": null}
nlprog_det-setting-0073207
The paralegal logged 8 hours at a rate of $250. How much is billed? We write it as a program: hours = 8 rate = 250 bill = hours * rate # 2000 print(f"{bill:.2f}") Out: 2000.00 That comes to $2,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0073209
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "eval_python...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"...
nlprog_det
setting
original
null
deterministic
[]
[]
305
{"gold": "97.5", "printed": "97.5", "notation": null}
nlprog_det-setting-0073210
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "calc", "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"]}}]...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"calc\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \...
nlprog_det
setting
original
null
deterministic
[]
[]
210
{"gold": "40.53", "printed": "40.53", "notation": null}
nlprog_det-setting-0073211
A lawyer's fee is 33% of a $12,000 recovery. How large is the fee? Set it up in Python: ```python recovery = 12000 rate = 33 / 100 # 0.33 fee = recovery * rate # 3960.0 print(f"{fee:.2f}") ``` # stdout: 3960.00 The lawyer's fee comes to $3,960.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "3960.00", "printed": "3960.00", "notation": null}
nlprog_det-setting-0073212
2 hours of work at $350 an hour: what is the total charge? Computation in Python: ```python hours = 2 rate = 350 bill = hours * rate print(f"{bill:.2f}") ``` The program outputs: 700.00 The bill is $700.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "700.00", "printed": "700.00", "notation": null}
nlprog_det-setting-0073213
A filing cabinet costs $60. It is 15% off. What is the sale price? In Python: ```python price = 60 discount = 15 / 100 # 0.15 sale_price = price * (1 - discount) # 51.0 print(f"{sale_price:.2f}") ``` (Execution result: 51.00) The sale price is $51.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "51.00", "printed": "51.00", "notation": null}
nlprog_det-setting-0073214
Straight-line depreciation: cost $12,000, salvage $2,000, 5 years. How much per year? As a program: ```python cost = 12000 salvage = 2000 years = 5 per_year = (cost - salvage) / years # 2000.0 print(f"{per_year:.2f}") ``` # result: 2000.00 Depreciation is $2,000.00 per year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0073216
Leon's scores were 66, 92, 79, 92, 64, 86 and 95. What is the average score? Here's the code. ```python scores = [66, 92, 79, 92, 64, 86, 95] average = sum(scores) // len(scores) # 82 print(average) ``` stdout: 82 The average score is 82.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "82", "printed": "82", "notation": null}
nlprog_det-setting-0073217
A 4% increase is applied to $1,500 monthly rent. What is the new amount? Code: ```python rent = 1500 increase = 4 / 100 # 0.04 new_rent = rent * (1 + increase) # 1560.0 print(f"{new_rent:.2f}") ``` # result: 1560.00 The new rent is $1,560.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "1560.00", "printed": "1560.00", "notation": null}
nlprog_det-setting-0073218
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> A recipe for 6 people uses 150 grams of lentils. How many grams are needed for 4 people?<|eot|> <|assistant|> Use 100 g of lentils.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "role": "user", "content": "A recipe for 6 people uses 150 grams of lentils. How many grams are needed for 4 people?" }, { "role": "assistant", "content": "Use 100 g of lentils." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
54
{"gold": "100", "printed": "100", "notation": null}
nlprog_det-setting-0073219
A meeting lasted 4 hours and 26 minutes. How many minutes is that? Here is a short program for it. ```python hours = 4 minutes = 26 total_minutes = hours * 60 + minutes # 266 print(total_minutes) ``` Run it and it prints 266. The meeting lasted 266 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "266", "printed": "266", "notation": null}
nlprog_det-setting-0073220
What percentage of $4,000 is $3,700? Python makes this quick: budget = 4000 spent = 3700 percent = spent / budget * 100 # 92.5 print(round(percent, 1)) (Printed result: 92.5) That is 92.5% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "92.5", "printed": "92.5", "notation": null}
nlprog_det-setting-0073221
Parking is $5 per hour with a daily maximum of $15. What do 4 hours cost? Parking costs $15.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0073223
If a 90-minute seminar begins at 8:40 AM, what time does it finish? Here is a short program for it. ```python start = 8 * 60 + 40 end = start + 90 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Result: 10:10 AM It ends at 10:10 AM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "10:10 AM", "printed": "10:10 AM", "notation": null}
nlprog_det-setting-0073224
<|start|><|user|> What simple interest does $20,000 earn at 4% a year over 6 years?<|eot|> <|assistant|> ```python principal = 20000 rate = 4 / 100 # 0.04 years = 6 interest = principal * rate * years # 4800.0 print(f"{interest:.2f}") ``` Console output: 4800.00 The interest is $4,800.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What simple interest does $20,000 earn at 4% a year over 6 years?" }, { "role": "assistant", "content": "```python\nprincipal = 20000\nrate = 4 / 100 # 0.04\nyears = 6\ninterest = principal * rate * years # 4800.0\nprint(f\"{interest:.2f}\")\n```\nConsole output: ...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "4800.00", "printed": "4800.00", "notation": null}
nlprog_det-setting-0073225
Lena lends $5,000 at 5% simple interest per year for 5 years. How much interest is earned? Programmatically: ```python principal = 5000 rate = 5 / 100 # 0.05 years = 5 interest = principal * rate * years # 1250.0 print(f"{interest:.2f}") ``` Executing it gives: 1250.00 It earns $1,250.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "1250.00", "printed": "1250.00", "notation": null}
nlprog_det-setting-0073226
<|start|><|system|> Available functions (JSON Schema): {"name": "py_exec", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> A claim accr...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"py_exec\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, ...
nlprog_det
setting
original
null
deterministic
[]
[]
248
{"gold": "2026-07-24", "printed": "2026-07-24", "notation": null}
nlprog_det-setting-0073227
<|start|><|user|> Counting the first and last day, how many days are there from February 2, 2024 through February 5, 2024?<|eot|> <|assistant|> 4 calendar days.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Counting the first and last day, how many days are there from February 2, 2024 through February 5, 2024?" }, { "role": "assistant", "content": "4 calendar days." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0073228
A library charges $0.15 per book per day late. What is the fine for 2 books that are 21 days late? The program: ```python per_day = 0.15 days_late = 21 books = 2 fine = per_day * days_late * books # 6.3 print(f"{fine:.2f}") ``` Executing it gives 6.30, as expected. The fine is $6.30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "6.30", "printed": "6.30", "notation": null}
nlprog_det-setting-0073229
Goran and Malik share $4,018 in the ratio 2:5. How much does Goran get? Program: ```python total = 4018 parts_a = 2 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 1148 print(share_a) ``` (Printed result: 1148) Goran's share is $1,148.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "1148", "printed": "1148", "notation": null}
nlprog_det-setting-0073230
4 clients win $96,000. The lawyer takes 25%, and the rest is split equally. How much does each client get? Set it up in Python: ```python award = 96000 fee = award * 25 / 100 # 24000.0 remaining = award - fee # 72000.0 per_client = remaining / 4 # 18000.0 print(f"{per_client:.2f}") ``` Out = 18000.00 Each share is...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "18000.00", "printed": "18000.00", "notation": null}
nlprog_det-setting-0073231
<|start|><|user|> A 130-mile drive at a steady 65 mph takes how many minutes?<|eot|> <|assistant|> ```python distance = 130 speed = 65 minutes = distance / speed * 60 # 120.0 print(round(minutes)) ``` The script prints: 120 120 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 130-mile drive at a steady 65 mph takes how many minutes?" }, { "role": "assistant", "content": "```python\ndistance = 130\nspeed = 65\nminutes = distance / speed * 60 # 120.0\nprint(round(minutes))\n```\nThe script prints: 120\n\n120 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0073233
Count the days between January 25, 2023 and August 8, 2023. ```python from datetime import date first = date(2023, 1, 25) # datetime.date(2023, 1, 25) second = date(2023, 8, 8) # datetime.date(2023, 8, 8) print((second - first).days) ``` (Out: 195) It is 195 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "195", "printed": "195", "notation": null}
nlprog_det-setting-0073234
84 volunteers are split into 5 equal teams. How many are on each team, and how many are left over? ```python total = 84 groups = 5 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` This prints 16 each, 4 left over, as expected. The answer: 16 each, 4 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "16 each, 4 left over", "printed": "16 each, 4 left over", "notation": null}
nlprog_det-setting-0073236
<|start|><|user|> 4 clients win $30,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> Each client gets $5,250.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "4 clients win $30,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": "Each client gets $5,250.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "5250.00", "printed": "5250.00", "notation": null}
nlprog_det-setting-0073237
Convert 4,832 EUR to USD at 1 EUR = 1.12 USD. Computation in Python: ```python amount = 4832 rate = 1.12 converted = amount * rate # 5411.84 print(f"{converted:.2f}") ``` Out: 5411.84 That is 5,411.84 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "5411.84", "printed": "5411.84", "notation": null}
nlprog_det-setting-0073238
Prorate $900 of monthly rent for 7 days of a 31-day month. In Python: ```python rent = 900 days_in_month = 31 days_occupied = 7 prorated = rent * days_occupied / days_in_month # 203.2258064516129 print(f"{prorated:.2f}") ``` stdout — 203.23 The prorated rent is $203.23.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "203.23", "printed": "203.23", "notation": null}
nlprog_det-setting-0073240
Water costs $18 a month plus $5.10 for each 1,000 gallons over 2,000. What is owed for 17,000 gallons? Python makes this quick: ```python base = 18 rate = 5.1 used = 17 free = 2 bill = base + rate * max(0, used - free) # 94.5 print(f"{bill:.2f}") ``` # run result: 94.50 $94.50 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "94.50", "printed": "94.50", "notation": null}
nlprog_det-setting-0073241
After a 30% fee is taken from a $72,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share? The Python version: award = 72000 fee = award * 30 / 100 # 21600.0 remaining = award - fee # 50400.0 per_client = remaining / 3 # 16800.0 print(f"{per_client:.2f}") Python ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "16800.00", "printed": "16800.00", "notation": null}
nlprog_det-setting-0073242
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> 36 markers cost $6 apiece. With 8% tax added, what is the total?<|eot|> <|assistant|> ```python quantity = 36 unit_price = 6 subtotal = quantity * unit_price # 216 total = subtotal * (1 + 8 / 100) # 233.28000000000003 print(f"{total:.2f}") ``` Run result = 23...
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "36 markers cost $6 apiece. With 8% tax added, what is the total?" }, { "role": "assistant", "content": "```python\nquantity = 36\nunit_price = 6\nsubtotal = quantity * unit_price # 216\ntotal = ...
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "233.28", "printed": "233.28", "notation": null}