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-0068952
2 books come back 11 days late, at $0.25 a day each. What is the fine? Python version: ```python per_day = 0.25 days_late = 11 books = 2 fine = per_day * days_late * books # 5.5 print(f"{fine:.2f}") ``` (Program output: 5.50) The fine is $5.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "5.50", "printed": "5.50", "notation": null}
nlprog_det-setting-0068953
<|start|><|user|> A count moves from 1,200 to 600. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> It changed by -50%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A count moves from 1,200 to 600. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": "It changed by -50%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "-50", "printed": "-50", "notation": null}
nlprog_det-setting-0068954
<|start|><|system|> You have access to these functions: [{"name": "compute", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> From 1996 to 2017, how m...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"compute\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\":...
nlprog_det
setting
original
null
deterministic
[]
[]
185
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0068955
A 231-page report must be reviewed in 7 days. How many pages a day is that, evenly? Let the code do the arithmetic: ```python pages = 231 days = 7 per_day = pages // days # 33 print(per_day) ``` This prints 33. That is 33 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "33", "printed": "33", "notation": null}
nlprog_det-setting-0068956
<|start|><|user|> Pay is $22.40/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 48 hours?<|eot|> <|assistant|> rate = 22.4 hours = 48 regular = 40 * rate # 896.0 overtime = (hours - 40) * rate * 1.5 # 268.79999999999995 pay = regular + overtime # 1164.8 print(f"{pay:....
chat
[ { "role": "user", "content": "Pay is $22.40/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 48 hours?" }, { "role": "assistant", "content": " rate = 22.4\n hours = 48\n regular = 40 * rate # 896.0\n overtime = (hours - 40) * rate * 1.5 # 268.79999999999995\...
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "1164.80", "printed": "1164.80", "notation": null}
nlprog_det-setting-0068957
A party has 30 days to respond to a motion served on March 8, 2027, with 3 days added because service was by mail. When is the response due? Python, step by step: ```python from datetime import date, timedelta served = date(2027, 3, 8) # datetime.date(2027, 3, 8) response_days = 30 mail_days = 3 due = served + timede...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
183
{"gold": "2027-04-10", "printed": "2027-04-10", "notation": null}
nlprog_det-setting-0068958
<|start|><|system|> Tools you may use: {"name": "code_runner", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}} {"name": "get_weather", "description": "Ge...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"code_runner\", \"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
[]
[]
274
{"gold": "53", "printed": "53", "notation": null}
nlprog_det-setting-0068959
At $17.31 an hour, what does 12 hours of work pay? That earns $207.72.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "207.72", "printed": "207.72", "notation": null}
nlprog_det-setting-0068960
A court charges $10 per request plus $0.10 per page after the first 10 pages. What does a 10-page copy cost? Here is a short program for it. pages = 10 base = 10 per_page = 0.1 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 10.0 print(f"{cost:.2f}") Result = 10.00 The c...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "10.00", "printed": "10.00", "notation": null}
nlprog_det-setting-0068962
<|start|><|user|> A garage charges $5 an hour, never more than $18 a day. How much for 1 hours?<|eot|> <|assistant|> ```python rate = 5 hours = 1 daily_max = 18 cost = min(rate * hours, daily_max) print(cost) ``` Shell output: 5 The charge is $5.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A garage charges $5 an hour, never more than $18 a day. How much for 1 hours?" }, { "role": "assistant", "content": "```python\nrate = 5\nhours = 1\ndaily_max = 18\ncost = min(rate * hours, daily_max)\nprint(cost)\n```\nShell output: 5\n\nThe charge is $5." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0068963
2 books come back 25 days late, at $0.50 a day each. What is the fine? One way, in code: ```python per_day = 0.5 days_late = 25 books = 2 fine = per_day * days_late * books # 25.0 print(f"{fine:.2f}") ``` # out: 25.00 $25.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "25.00", "printed": "25.00", "notation": null}
nlprog_det-setting-0068964
<|start|><|user|> What percentage of $8,000 is $4,000?<|eot|> <|assistant|> budget = 8000 spent = 4000 percent = spent / budget * 100 # 50.0 print(round(percent, 1)) Executed, it shows: 50.0 50.0% has been spent.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What percentage of $8,000 is $4,000?" }, { "role": "assistant", "content": " budget = 8000\n spent = 4000\n percent = spent / budget * 100 # 50.0\n print(round(percent, 1))\nExecuted, it shows: 50.0\n\n50.0% has been spent." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "50.0", "printed": "50.0", "notation": null}
nlprog_det-setting-0068965
<|start|><|user|> The rules require 1/3 of 36 members (round up) to be present. How many is that?<|eot|> <|assistant|> ```python import math members = 36 quorum = math.ceil(members * 1 / 3) # 12 print(quorum) ``` The program outputs 12. That is 12 members.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The rules require 1/3 of 36 members (round up) to be present. How many is that?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 36\nquorum = math.ceil(members * 1 / 3) # 12\nprint(quorum)\n```\nThe program outputs 12.\n\nThat is 12 members....
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0068966
<|start|><|system|> Tools you may use: {"name": "eval_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}} {"name": "convert_units", "description": "Convert a quant...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"eval_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}\n{...
nlprog_det
setting
original
null
deterministic
[]
[]
440
{"gold": "18.00", "printed": "18.00", "notation": null}
nlprog_det-setting-0068967
<|start|><|user|> Convert 20 °C to Fahrenheit.<|eot|> <|assistant|> ```python celsius = 20 fahrenheit = celsius * 9 / 5 + 32 # 68.0 print(round(fahrenheit)) ``` Execution prints: 68 That is 68 °F.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 20 °C to Fahrenheit." }, { "role": "assistant", "content": "```python\ncelsius = 20\nfahrenheit = celsius * 9 / 5 + 32 # 68.0\nprint(round(fahrenheit))\n```\nExecution prints: 68\n\nThat is 68 °F." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "68", "printed": "68", "notation": null}
nlprog_det-setting-0068968
If a 90-minute seminar begins at 10:10 AM, what time does it finish? A short script: ```python start = 10 * 60 + 10 end = start + 90 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Run result: 11:40 AM The seminar finishes at 11:40 AM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "11:40 AM", "printed": "11:40 AM", "notation": null}
nlprog_det-setting-0068969
With 30% off, what does a $300 jacket cost? Programmatically: ```python price = 300 discount = 30 / 100 # 0.3 sale_price = price * (1 - discount) # 210.0 print(f"{sale_price:.2f}") ``` Output: 210.00 It costs $210.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "210.00", "printed": "210.00", "notation": null}
nlprog_det-setting-0068971
<|start|><|user|> 1 books come back 11 days late, at $0.50 a day each. What is the fine?<|eot|> <|assistant|> ```python per_day = 0.5 days_late = 11 books = 1 fine = per_day * days_late * books # 5.5 print(f"{fine:.2f}") ``` Run it and it prints 5.50. The fine is $5.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "1 books come back 11 days late, at $0.50 a day each. What is the fine?" }, { "role": "assistant", "content": "```python\nper_day = 0.5\ndays_late = 11\nbooks = 1\nfine = per_day * days_late * books # 5.5\nprint(f\"{fine:.2f}\")\n```\nRun it and it prints 5.50.\n\nT...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "5.50", "printed": "5.50", "notation": null}
nlprog_det-setting-0068972
Convert 3 h 9 min (the length of a film) to minutes. Written as code: ```python hours = 3 minutes = 9 total_minutes = hours * 60 + minutes # 189 print(total_minutes) ``` Result — 189 The film lasted 189 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "189", "printed": "189", "notation": null}
nlprog_det-setting-0068973
Sales went from 1,200 to 960. What is the percent change? The computation: ```python old = 1200 new = 960 change = (new - old) / old * 100 # -20.0 print(round(change)) ``` Out: -20 The change is -20%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "-20", "printed": "-20", "notation": null}
nlprog_det-setting-0068974
A trial runs from February 14, 2024 to February 29, 2024, counting both days. How many calendar days is that? ```python from datetime import date first = date(2024, 2, 14) # datetime.date(2024, 2, 14) last = date(2024, 2, 29) # datetime.date(2024, 2, 29) days = (last - first).days + 1 # 16 print(days) ``` stdout — ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0068975
<|start|><|user|> Someone works 30 hours at $27.06 per hour. What are the earnings?<|eot|> <|assistant|> ```python rate = 27.06 hours = 30 earnings = rate * hours # 811.8 print(f"{earnings:.2f}") ``` The program prints 811.80, as expected. That earns $811.80.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Someone works 30 hours at $27.06 per hour. What are the earnings?" }, { "role": "assistant", "content": "```python\nrate = 27.06\nhours = 30\nearnings = rate * hours # 811.8\nprint(f\"{earnings:.2f}\")\n```\nThe program prints 811.80, as expected.\n\nThat earns $81...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "811.80", "printed": "811.80", "notation": null}
nlprog_det-setting-0068976
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> How much sales tax is charged on a $516.70 purchase at 8%?<|eot|> <|assistant|> The tax is $41.34.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "role": "user", "content": "How much sales tax is charged on a $516.70 purchase at 8%?" }, { "role": "assistant", "content": "The tax is $41.34." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "41.34", "printed": "41.34", "notation": null}
nlprog_det-setting-0068977
Printing costs 15 cents a page. What does it cost to print 185 copies of a 33-page handout? The job costs $915.75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "915.75", "printed": "915.75", "notation": null}
nlprog_det-setting-0068978
3 friends split a $120 bill plus a 18% tip evenly. How much does each pay? We can compute it in Python. bill = 120 tip_rate = 18 / 100 # 0.18 people = 3 each = bill * (1 + tip_rate) / people # 47.199999999999996 print(f"{each:.2f}") Executed, it shows 47.20. Each person pays $47.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "47.20", "printed": "47.20", "notation": null}
nlprog_det-setting-0068979
Walls total 318 sq ft and each can covers 250 sq ft. How many cans should be bought? Buy 2 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0068980
A car travels 588 miles in 4 hours. What is its average speed in miles per hour? Here is a short program for it. distance = 588 hours = 4 speed = distance / hours # 147.0 print(round(speed)) Printed result: 147 It averages 147 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "147", "printed": "147", "notation": null}
nlprog_det-setting-0068981
Counting only Monday through Friday, how many business days are there after March 23, 2024 through April 24, 2024? The computation: ```python from datetime import date, timedelta start = date(2024, 3, 23) end = date(2024, 4, 24) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).we...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
158
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0068982
<|start|><|user|> A clerk's office charges $45 for each filing. Ada submits 17 filings. What is the total fee?<|eot|> <|assistant|> ```python fee = 45 filings = 17 total = fee * filings # 765 print(total) ``` Output — 765 $765 in filing fees.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A clerk's office charges $45 for each filing. Ada submits 17 filings. What is the total fee?" }, { "role": "assistant", "content": "```python\nfee = 45\nfilings = 17\ntotal = fee * filings # 765\nprint(total)\n```\nOutput — 765\n\n$765 in filing fees." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "765", "printed": "765", "notation": null}
nlprog_det-setting-0068983
A 6% increase is applied to $1,250 monthly rent. What is the new amount? Code: ```python rent = 1250 increase = 6 / 100 # 0.06 new_rent = rent * (1 + increase) # 1325.0 print(f"{new_rent:.2f}") ``` Printed — 1325.00 The new rent is $1,325.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "1325.00", "printed": "1325.00", "notation": null}
nlprog_det-setting-0068984
<|start|><|system|> Tools you may use: [{"name": "py_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> Someone born June 24, 1974 turns how old ...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"py_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
[]
[]
244
{"gold": "46", "printed": "46", "notation": null}
nlprog_det-setting-0068985
<|start|><|user|> A 180-mile drive at a steady 30 mph takes how many minutes?<|eot|> <|assistant|> ```python distance = 180 speed = 30 minutes = distance / speed * 60 # 360.0 print(round(minutes)) ``` Execution result: 360 360 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 180-mile drive at a steady 30 mph takes how many minutes?" }, { "role": "assistant", "content": "```python\ndistance = 180\nspeed = 30\nminutes = distance / speed * 60 # 360.0\nprint(round(minutes))\n```\nExecution result: 360\n\n360 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "360", "printed": "360", "notation": null}
nlprog_det-setting-0068986
<|start|><|user|> A water bill is $20 plus $4.75 per thousand gallons beyond the first 3 thousand. What is the bill for 18 thousand gallons?<|eot|> <|assistant|> ```python base = 20 rate = 4.75 used = 18 free = 3 bill = base + rate * max(0, used - free) print(f"{bill:.2f}") ``` Printed: 91.25 $91.25 is owed.<|eot|> <|...
chat
[ { "role": "user", "content": "A water bill is $20 plus $4.75 per thousand gallons beyond the first 3 thousand. What is the bill for 18 thousand gallons?" }, { "role": "assistant", "content": "```python\nbase = 20\nrate = 4.75\nused = 18\nfree = 3\nbill = base + rate * max(0, used - free)\nprint(...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "91.25", "printed": "91.25", "notation": null}
nlprog_det-setting-0068987
Someone works 16 hours at $29.04 per hour. What are the earnings? The pay is $464.64.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "464.64", "printed": "464.64", "notation": null}
nlprog_det-setting-0068988
Count 30 days forward from September 19, 2025. What date is that? A short script: ```python from datetime import date, timedelta start = date(2025, 9, 19) # datetime.date(2025, 9, 19) end = start + timedelta(days=30) # datetime.date(2025, 10, 19) print(end.isoformat()) ``` It prints 2025-10-19, as expected. The per...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "2025-10-19", "printed": "2025-10-19", "notation": null}
nlprog_det-setting-0068989
An office budget of $5,000 has expenses of $479, $1,956, $1,112, $2,562. How much of the budget is left? We can compute it in Python. budget = 5000 expenses = [479, 1956, 1112, 2562] left = budget - sum(expenses) # -1109 print(left) Output — -1109 -$1,109 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "-1109", "printed": "-1109", "notation": null}
nlprog_det-setting-0068990
Monthly: $15. Annual: $168. What is saved per year by paying annually? Coded up: ```python monthly = 15 yearly = 168 savings = monthly * 12 - yearly # 12 print(savings) ``` Console: 12 $12 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0068991
Water costs $15 a month plus $4.75 for each 1,000 gallons over 3,000. What is owed for 21,000 gallons? The bill is $100.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "100.50", "printed": "100.50", "notation": null}
nlprog_det-setting-0068992
A service costs $19 a month or $210 a year. How much does the yearly plan save over 12 monthly payments? Translated to Python: ```python monthly = 19 yearly = 210 savings = monthly * 12 - yearly # 18 print(savings) ``` Console output: 18 The annual plan saves $18.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0068993
A recipe for 4 people uses 450 grams of pasta. How many grams are needed for 6 people? The program: ```python grams = 450 serves = 4 needed_for = 6 scaled = grams * needed_for // serves # 675 print(scaled) ``` Printed = 675 Use 675 g of pasta.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "675", "printed": "675", "notation": null}
nlprog_det-setting-0068994
2.5 hours of work at $410 an hour: what is the total charge? Here is a short program for it. ```python hours = 2.5 rate = 410 bill = hours * rate # 1025.0 print(f"{bill:.2f}") ``` Run it and it prints: 1025.00 That comes to $1,025.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "1025.00", "printed": "1025.00", "notation": null}
nlprog_det-setting-0068995
A $2,500 security deposit has deductions of $60 and $45. How much is refunded? ```python deposit = 2500 deductions = [60, 45] refund = deposit - sum(deductions) # 2395 print(refund) ``` Executing it gives 2395. $2,395 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "2395", "printed": "2395", "notation": null}
nlprog_det-setting-0068996
Find the mean of these test scores: 100, 79, 80 and 53. Here is the program. ```python scores = [100, 79, 80, 53] average = sum(scores) // len(scores) # 78 print(average) ``` Out — 78 The average score is 78.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "78", "printed": "78", "notation": null}
nlprog_det-setting-0068997
Monthly: $19. Annual: $192. What is saved per year by paying annually? As Python: ```python monthly = 19 yearly = 192 savings = monthly * 12 - yearly # 36 print(savings) ``` Executed, it shows: 36 The annual plan saves $36.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0068998
With $8,000 in costs and $10,500 in revenue, what percent of revenue is profit? Round to one decimal. The program: ```python revenue = 10500 costs = 8000 profit = revenue - costs # 2500 margin = profit / revenue * 100 # 23.809523809523807 print(round(margin, 1)) ``` Python prints: 23.8 Profit is 23.8% of revenue.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "23.8", "printed": "23.8", "notation": null}
nlprog_det-setting-0068999
<|start|><|user|> 4 clients win $30,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> ```python award = 30000 fee = award * 40 / 100 # 12000.0 remaining = award - fee # 18000.0 per_client = remaining / 4 # 4500.0 print(f"{per_client:.2f}") ``` Printed: 4500...
chat
[ { "role": "user", "content": "4 clients win $30,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": "```python\naward = 30000\nfee = award * 40 / 100 # 12000.0\nremaining = award - fee # 18000.0\nper_client = remaining ...
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "4500.00", "printed": "4500.00", "notation": null}
nlprog_det-setting-0069000
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> 6 claimants share a $1,200 settlement equally. What is each share?<|eot|> <|assistant|> ```python settlement = 1200 parties = 6 share = settlement // parties # 200 print(share) ``` The code prints: 200 Each share is $200.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "6 claimants share a $1,200 settlement equally. What is each share?" }, { "role": "assistant", "content": "```python\nsettlement = 1200\nparties = 6\nshare = settlement // parties # 200\npr...
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "200", "printed": "200", "notation": null}
nlprog_det-setting-0069001
A 10 × 7 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up? ```python import math length = 10 width = 7 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 70 print(tiles) ``` (Console output: 70) 70 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "70", "printed": "70", "notation": null}
nlprog_det-setting-0069002
Rent of $1,250 goes up 8%. What is the new rent? As Python: ```python rent = 1250 increase = 8 / 100 # 0.08 new_rent = rent * (1 + increase) # 1350.0 print(f"{new_rent:.2f}") ``` The program outputs 1350.00. It rises to $1,350.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "1350.00", "printed": "1350.00", "notation": null}
nlprog_det-setting-0069003
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> Shipping costs $5 plus $1.20 per pound. What does a 26-pound parcel cost to ship?<|eot|> <|assistant|> ```python base = 5 per_pound = 1.2 weight = 26 cost = base + per_pound * weight # 36.2 print(f"{cost:.2f}") ``` The script prints: 36.20 S...
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "Shipping costs $5 plus $1.20 per pound. What does a 26-pound parcel cost to ship?" }, { "role": "assistant", "content": "```python\nbase = 5\nper_pound = 1.2\nweight = 26\ncost ...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "36.20", "printed": "36.20", "notation": null}
nlprog_det-setting-0069004
<|start|><|user|> Goods bought on September 26, 2024 carry a 6-month warranty. When does it expire?<|eot|> <|assistant|> ```python from datetime import date start = date(2024, 9, 26) months = 6 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end...
chat
[ { "role": "user", "content": "Goods bought on September 26, 2024 carry a 6-month warranty. When does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2024, 9, 26)\nmonths = 6\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = dat...
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "2025-03-26", "printed": "2025-03-26", "notation": null}
nlprog_det-setting-0069005
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> Express 229 hours in days and hours.<|eot|> <|assistant|> hours = 229 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") Running this gives 9 days and 13 hours. That is 9 days and 13 hours.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "Express 229 hours in days and hours." }, { "role": "assistant", "content": " hours = 229\n days, rest = divmod(hours, 24)\n print(f\"{days} days and {rest} hours\")\nRunning this gives...
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "9 days and 13 hours", "printed": "9 days and 13 hours", "notation": null}
nlprog_det-setting-0069006
Rent of $1,800 goes up 4%. What is the new rent? Let the code do the arithmetic: ```python rent = 1800 increase = 4 / 100 # 0.04 new_rent = rent * (1 + increase) # 1872.0 print(f"{new_rent:.2f}") ``` # out: 1872.00 The new rent is $1,872.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "1872.00", "printed": "1872.00", "notation": null}
nlprog_det-setting-0069007
<|start|><|user|> A hearing starts at 1:40 PM and lasts 135 minutes. When does it end?<|eot|> <|assistant|> It ends at 3:55 PM.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hearing starts at 1:40 PM and lasts 135 minutes. When does it end?" }, { "role": "assistant", "content": "It ends at 3:55 PM." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "3:55 PM", "printed": "3:55 PM", "notation": null}
nlprog_det-setting-0069008
A $84 dinner bill gets a 20% tip, and 5 people share the cost equally. What is each person's share? In Python: ```python bill = 84 tip_rate = 20 / 100 # 0.2 people = 5 each = bill * (1 + tip_rate) / people # 20.16 print(f"{each:.2f}") ``` Out: 20.16 The share is $20.16 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "20.16", "printed": "20.16", "notation": null}
nlprog_det-setting-0069009
<|start|><|user|> If a 6-year limitations period starts on March 19, 2014, when does it end?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2014, 3, 19) # datetime.date(2014, 3, 19) years = 6 expires = accrued.replace(year=accrued.year + years) # datetime.date(2020, 3, 19) print(expires.isofo...
chat
[ { "role": "user", "content": "If a 6-year limitations period starts on March 19, 2014, when does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2014, 3, 19) # datetime.date(2014, 3, 19)\nyears = 6\nexpires = accrued.replace(year=accrued.year ...
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "2020-03-19", "printed": "2020-03-19", "notation": null}
nlprog_det-setting-0069010
Walls total 1144 sq ft and each can covers 250 sq ft. How many cans should be bought? Here is the program. ```python import math area = 1144 coverage = 250 cans = math.ceil(area / coverage) # 5 print(cans) ``` Executing it gives 5, as expected. 5 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0069011
<|start|><|user|> 147 copies of a 55-page packet are printed at $0.08 per page. What is the cost?<|eot|> <|assistant|> ```python pages = 55 copies = 147 cost_per_page = 0.08 cost = pages * copies * cost_per_page # 646.8000000000001 print(f"{cost:.2f}") ``` Output: 646.80 The job costs $646.80.<|eot|> <|end|>
chat
[ { "role": "user", "content": "147 copies of a 55-page packet are printed at $0.08 per page. What is the cost?" }, { "role": "assistant", "content": "```python\npages = 55\ncopies = 147\ncost_per_page = 0.08\ncost = pages * copies * cost_per_page # 646.8000000000001\nprint(f\"{cost:.2f}\")\n```\...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "646.80", "printed": "646.80", "notation": null}
nlprog_det-setting-0069012
<|start|><|user|> After an initial $3,000, the remainder of a $48,000 grant is paid in 12 equal parts. What is each part?<|eot|> <|assistant|> $3,750.00 per installment.<|eot|> <|end|>
chat
[ { "role": "user", "content": "After an initial $3,000, the remainder of a $48,000 grant is paid in 12 equal parts. What is each part?" }, { "role": "assistant", "content": "$3,750.00 per installment." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
49
{"gold": "3750.00", "printed": "3750.00", "notation": null}
nlprog_det-setting-0069013
Fixed costs are $2,500. Each unit sells for $20 and costs $15 to make. How many units must be sold to break even? Python code: ```python import math fixed = 2500 price = 20 variable = 15 units = math.ceil(fixed / (price - variable)) print(units) ``` (Out: 500) Break-even is 500 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "500", "printed": "500", "notation": null}
nlprog_det-setting-0069014
<|start|><|user|> Convert 30.9 km to meters.<|eot|> <|assistant|> ```python km = 30.9 meters = km * 1000 print(round(meters)) ``` # printed: 30900 30,900 m.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 30.9 km to meters." }, { "role": "assistant", "content": "```python\nkm = 30.9\nmeters = km * 1000\nprint(round(meters))\n```\n# printed: 30900\n\n30,900 m." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
69
{"gold": "30900", "printed": "30900", "notation": null}
nlprog_det-setting-0069015
<|start|><|user|> Papers were served by mail on September 4, 2024. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2024, 9, 4) # datetime.date(2024, 9, 4) response_days = 28 mail_days = 3 due...
chat
[ { "role": "user", "content": "Papers were served by mail on September 4, 2024. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nserved = date(2024, 9, 4) # dateti...
nlprog_det
setting
original
null
deterministic
[]
[]
180
{"gold": "2024-10-05", "printed": "2024-10-05", "notation": null}
nlprog_det-setting-0069016
After a 30% fee is taken from a $30,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share? Python makes this quick: ```python award = 30000 fee = award * 30 / 100 # 9000.0 remaining = award - fee # 21000.0 per_client = remaining / 3 # 7000.0 print(f"{per_client:.2f}") ``` Console ou...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "7000.00", "printed": "7000.00", "notation": null}
nlprog_det-setting-0069017
<|start|><|user|> Flooring at $8/sq ft for a 10 ft × 17 ft room costs how much?<|eot|> <|assistant|> It costs $1,360.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Flooring at $8/sq ft for a 10 ft × 17 ft room costs how much?" }, { "role": "assistant", "content": "It costs $1,360." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "1360", "printed": "1360", "notation": null}
nlprog_det-setting-0069018
The landlord deducts $150 from a $2,000 deposit. What is returned to the tenant? Code: deposit = 2000 deductions = [150] refund = deposit - sum(deductions) # 1850 print(refund) # stdout: 1850 $1,850 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "1850", "printed": "1850", "notation": null}
nlprog_det-setting-0069019
Revenue is $14,500 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)? As a program: ```python revenue = 14500 costs = 12500 profit = revenue - costs # 2000 margin = profit / revenue * 100 # 13.793103448275861 print(round(margin, 1)) ``` (Printed: 13.8) Profit is 13.8% of revenue...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "13.8", "printed": "13.8", "notation": null}
nlprog_det-setting-0069020
<|start|><|user|> Each of Ulla's swims burns 250 calories. How many calories over 5 swims?<|eot|> <|assistant|> ```python per_session = 250 sessions = 5 total = per_session * sessions print(total) ``` The program prints: 1250 1250 calories in total.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each of Ulla's swims burns 250 calories. How many calories over 5 swims?" }, { "role": "assistant", "content": "```python\nper_session = 250\nsessions = 5\ntotal = per_session * sessions\nprint(total)\n```\nThe program prints: 1250\n\n1250 calories in total." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "1250", "printed": "1250", "notation": null}
nlprog_det-setting-0069022
Equipment costs $18,000, has a salvage value of $2,000, and a useful life of 8 years. What is the straight-line depreciation per year? The computation: cost = 18000 salvage = 2000 years = 8 per_year = (cost - salvage) / years # 2000.0 print(f"{per_year:.2f}") On running, it outputs 2000.00. Depre...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0069023
Idris drove 453 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement? ```python miles = 453 rate = 0.65 reimbursement = miles * rate # 294.45 print(f"{reimbursement:.2f}") ``` Run it and it prints 294.45. The reimbursement is $294.45.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "294.45", "printed": "294.45", "notation": null}
nlprog_det-setting-0069024
<|start|><|user|> A lawyer's fee is 40% of a $150,000 recovery. How large is the fee?<|eot|> <|assistant|> recovery = 150000 rate = 40 / 100 # 0.4 fee = recovery * rate # 60000.0 print(f"{fee:.2f}") Run output: 60000.00 The fee is $60,000.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lawyer's fee is 40% of a $150,000 recovery. How large is the fee?" }, { "role": "assistant", "content": " recovery = 150000\n rate = 40 / 100 # 0.4\n fee = recovery * rate # 60000.0\n print(f\"{fee:.2f}\")\nRun output: 60000.00\n\nThe fee is $60,000....
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "60000.00", "printed": "60000.00", "notation": null}
nlprog_det-setting-0069025
<|start|><|user|> Equal monthly payments repay $2,400 plus 6% simple yearly interest over 24 months. How large is a payment?<|eot|> <|assistant|> The monthly payment is $112.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Equal monthly payments repay $2,400 plus 6% simple yearly interest over 24 months. How large is a payment?" }, { "role": "assistant", "content": "The monthly payment is $112.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "112.00", "printed": "112.00", "notation": null}
nlprog_det-setting-0069026
<|start|><|user|> Rent of $1,250 goes up 6%. What is the new rent?<|eot|> <|assistant|> ```python rent = 1250 increase = 6 / 100 # 0.06 new_rent = rent * (1 + increase) # 1325.0 print(f"{new_rent:.2f}") ``` Running this gives 1325.00. It rises to $1,325.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rent of $1,250 goes up 6%. What is the new rent?" }, { "role": "assistant", "content": "```python\nrent = 1250\nincrease = 6 / 100 # 0.06\nnew_rent = rent * (1 + increase) # 1325.0\nprint(f\"{new_rent:.2f}\")\n```\nRunning this gives 1325.00.\n\nIt rises to $1,325...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "1325.00", "printed": "1325.00", "notation": null}
nlprog_det-setting-0069027
Find the mean of these test scores: 55, 60, 61, 72, 81, 85 and 62. Python code: scores = [55, 60, 61, 72, 81, 85, 62] average = sum(scores) // len(scores) # 68 print(average) # out: 68 The mean is 68.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "68", "printed": "68", "notation": null}
nlprog_det-setting-0069028
A printer costs $180. It is 10% off. What is the sale price? We can compute it in Python. ```python price = 180 discount = 10 / 100 # 0.1 sale_price = price * (1 - discount) # 162.0 print(f"{sale_price:.2f}") ``` Printed result — 162.00 It costs $162.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "162.00", "printed": "162.00", "notation": null}
nlprog_det-setting-0069029
The bridge was finished in 2016. How many years had passed by 2022? Script: ```python start_year = 2016 end_year = 2022 print(end_year - start_year) ``` stdout — 6 That is 6 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
70
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0069030
At 50 miles per hour, how many minutes does a 50-mile trip take? Code: ```python distance = 50 speed = 50 minutes = distance / speed * 60 # 60.0 print(round(minutes)) ``` Printed: 60 60 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0069031
<|start|><|user|> 2 clients win $60,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> ```python award = 60000 fee = award * 30 / 100 # 18000.0 remaining = award - fee # 42000.0 per_client = remaining / 2 # 21000.0 print(f"{per_client:.2f}") ``` Console: 210...
chat
[ { "role": "user", "content": "2 clients win $60,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": "```python\naward = 60000\nfee = award * 30 / 100 # 18000.0\nremaining = award - fee # 42000.0\nper_client = remaining ...
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "21000.00", "printed": "21000.00", "notation": null}
nlprog_det-setting-0069032
With $4,000 in costs and $6,000 in revenue, what percent of revenue is profit? Round to one decimal. Program: ```python revenue = 6000 costs = 4000 profit = revenue - costs # 2000 margin = profit / revenue * 100 # 33.33333333333333 print(round(margin, 1)) ``` Interpreter output: 33.3 Profit is 33.3% of revenue.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "33.3", "printed": "33.3", "notation": null}
nlprog_det-setting-0069034
A party has 21 days to respond to a motion served on January 4, 2024, with 3 days added because service was by mail. When is the response due? ```python from datetime import date, timedelta served = date(2024, 1, 4) # datetime.date(2024, 1, 4) response_days = 21 mail_days = 3 due = served + timedelta(days=response_da...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
168
{"gold": "2024-01-28", "printed": "2024-01-28", "notation": null}
nlprog_det-setting-0069035
<|start|><|system|> Tool definitions: [{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "interpreter", "description": "Executes Python code a...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"target\"]}}, {\"...
nlprog_det
setting
original
null
deterministic
[]
[]
369
{"gold": "2100", "printed": "2100", "notation": null}
nlprog_det-setting-0069036
Convert 21.8 km to meters. That is 21,800 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
23
{"gold": "21800", "printed": "21800", "notation": null}
nlprog_det-setting-0069037
6 friends split a $150 bill plus a 15% tip evenly. How much does each pay? Python version: bill = 150 tip_rate = 15 / 100 # 0.15 people = 6 each = bill * (1 + tip_rate) / people # 28.75 print(f"{each:.2f}") It prints 28.75, as expected. The share is $28.75 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "28.75", "printed": "28.75", "notation": null}
nlprog_det-setting-0069038
<|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": "Run...
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
[]
[]
370
{"gold": "200", "printed": "200", "notation": null}
nlprog_det-setting-0069040
Ada earns a 4% commission on $112,705 of sales. What is the commission? Python, step by step: ```python sales = 112705 rate = 4 / 100 # 0.04 commission = sales * rate # 4508.2 print(f"{commission:.2f}") ``` Result: 4508.20 Ada earns $4,508.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "4508.20", "printed": "4508.20", "notation": null}
nlprog_det-setting-0069041
What is the total rent on a 18-month lease at $975 a month? Python: ```python monthly_rent = 975 months = 18 total = monthly_rent * months # 17550 print(total) ``` (Execution result: 17550) The rent over the term is $17,550.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "17550", "printed": "17550", "notation": null}
nlprog_det-setting-0069042
Each storage box holds 50 files. How many boxes are needed for 811 files? It takes 17 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0069043
<|start|><|user|> 6 claimants share a $15,000 settlement equally. What is each share?<|eot|> <|assistant|> ```python settlement = 15000 parties = 6 share = settlement // parties # 2500 print(share) ``` Output: 2500 Each share is $2,500.<|eot|> <|end|>
chat
[ { "role": "user", "content": "6 claimants share a $15,000 settlement equally. What is each share?" }, { "role": "assistant", "content": "```python\nsettlement = 15000\nparties = 6\nshare = settlement // parties # 2500\nprint(share)\n```\nOutput: 2500\n\nEach share is $2,500." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0069044
<|start|><|user|> How many of 69 votes make 67% (round up)?<|eot|> <|assistant|> ```python import math voters = 69 needed = math.ceil(voters * 67 / 100) # 47 print(needed) ``` The program prints 47, as expected. 47 votes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 69 votes make 67% (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 69\nneeded = math.ceil(voters * 67 / 100) # 47\nprint(needed)\n```\nThe program prints 47, as expected.\n\n47 votes are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "47", "printed": "47", "notation": null}
nlprog_det-setting-0069045
How many whole days and leftover hours are in 341 hours? Python, step by step: ```python hours = 341 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` The run gives 14 days and 5 hours. 341 hours is 14 days and 5 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "14 days and 5 hours", "printed": "14 days and 5 hours", "notation": null}
nlprog_det-setting-0069046
Convert 3 h 51 min (the length of a film) to minutes. We write it as a program: ```python hours = 3 minutes = 51 total_minutes = hours * 60 + minutes # 231 print(total_minutes) ``` # run result: 231 That is 231 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "231", "printed": "231", "notation": null}
nlprog_det-setting-0069047
<|start|><|user|> A storeroom has 446 scissors. The office uses 6 a day. How many are left after 8 days?<|eot|> <|assistant|> ```python stock = 446 per_day = 6 days = 8 left = stock - per_day * days # 398 print(left) ``` Run result — 398 398 scissors are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A storeroom has 446 scissors. The office uses 6 a day. How many are left after 8 days?" }, { "role": "assistant", "content": "```python\nstock = 446\nper_day = 6\ndays = 8\nleft = stock - per_day * days # 398\nprint(left)\n```\nRun result — 398\n\n398 scissors are ...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "398", "printed": "398", "notation": null}
nlprog_det-setting-0069048
A hall has 24 rows of 18 seats, and 23 seats are empty. How many people are seated? Python does the arithmetic: ```python rows = 24 per_row = 18 empty = 23 seated = rows * per_row - empty # 409 print(seated) ``` Execution result — 409 409 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "409", "printed": "409", "notation": null}
nlprog_det-setting-0069049
<|start|><|user|> A 18-month warranty starts on November 23, 2026. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date start = date(2026, 11, 23) months = 18 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isof...
chat
[ { "role": "user", "content": "A 18-month warranty starts on November 23, 2026. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2026, 11, 23)\nmonths = 18\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(sta...
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "2028-05-23", "printed": "2028-05-23", "notation": null}
nlprog_det-setting-0069050
To read 105 pages in 5 days, how many pages per day are needed? Translated to Python: ```python pages = 105 days = 5 per_day = pages // days # 21 print(per_day) ``` # program output: 21 That is 21 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0069051
<|start|><|system|> Show working only when it helps.<|eot|> <|user|> At a 8% tax rate, what is the tax on $189.83?<|eot|> <|assistant|> ```python price = 189.83 tax_rate = 8 / 100 # 0.08 tax = price * tax_rate # 15.1864 print(f"{tax:.2f}") ``` What it prints — 15.19 $15.19 in tax.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Show working only when it helps." }, { "role": "user", "content": "At a 8% tax rate, what is the tax on $189.83?" }, { "role": "assistant", "content": "```python\nprice = 189.83\ntax_rate = 8 / 100 # 0.08\ntax = price * tax_rate # 15.1864\nprint(f\"{...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "15.19", "printed": "15.19", "notation": null}
nlprog_det-setting-0069052
<|start|><|user|> What simple interest does $1,000 earn at 2% a year over 6 years?<|eot|> <|assistant|> principal = 1000 rate = 2 / 100 # 0.02 years = 6 interest = principal * rate * years # 120.0 print(f"{interest:.2f}") The run gives 120.00, as expected. It earns $120.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What simple interest does $1,000 earn at 2% a year over 6 years?" }, { "role": "assistant", "content": " principal = 1000\n rate = 2 / 100 # 0.02\n years = 6\n interest = principal * rate * years # 120.0\n print(f\"{interest:.2f}\")\nThe run gives 1...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "120.00", "printed": "120.00", "notation": null}
nlprog_det-setting-0069053
Fixed costs are $4,000. Each unit sells for $25 and costs $15 to make. How many units must be sold to break even? We write it as a program: ```python import math fixed = 4000 price = 25 variable = 15 units = math.ceil(fixed / (price - variable)) print(units) ``` Shell output — 400 400 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "400", "printed": "400", "notation": null}
nlprog_det-setting-0069054
A count moves from 2,000 to 1,500. By what percent did it change (use a minus sign for a drop)? Python version: ```python old = 2000 new = 1500 change = (new - old) / old * 100 print(round(change)) ``` # run result: -25 It changed by -25%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "-25", "printed": "-25", "notation": null}
nlprog_det-setting-0069055
<|start|><|user|> Each of Oskar's bike rides burns 350 calories. How many calories over 6 bike rides?<|eot|> <|assistant|> ```python per_session = 350 sessions = 6 total = per_session * sessions # 2100 print(total) ``` Out: 2100 2100 calories in total.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each of Oskar's bike rides burns 350 calories. How many calories over 6 bike rides?" }, { "role": "assistant", "content": "```python\nper_session = 350\nsessions = 6\ntotal = per_session * sessions # 2100\nprint(total)\n```\nOut: 2100\n\n2100 calories in total." ...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "2100", "printed": "2100", "notation": null}
nlprog_det-setting-0069056
<|start|><|system|> Keep explanations short.<|eot|> <|user|> To read 360 pages in 10 days, how many pages per day are needed?<|eot|> <|assistant|> ```python pages = 360 days = 10 per_day = pages // days # 36 print(per_day) ``` # execution result: 36 That is 36 pages per day.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Keep explanations short." }, { "role": "user", "content": "To read 360 pages in 10 days, how many pages per day are needed?" }, { "role": "assistant", "content": "```python\npages = 360\ndays = 10\nper_day = pages // days # 36\nprint(per_day)\n```\n# ...
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "36", "printed": "36", "notation": null}