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-0069057
<|start|><|user|> With 27 rows of 18 chairs and 10 empty chairs, how many chairs are taken?<|eot|> <|assistant|> 476 seats are taken.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 27 rows of 18 chairs and 10 empty chairs, how many chairs are taken?" }, { "role": "assistant", "content": "476 seats are taken." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "476", "printed": "476", "notation": null}
nlprog_det-setting-0069058
Prorate $1,800 of monthly rent for 18 days of a 31-day month. Script: rent = 1800 days_in_month = 31 days_occupied = 18 prorated = rent * days_occupied / days_in_month # 1045.1612903225807 print(f"{prorated:.2f}") stdout: 1045.16 The prorated rent is $1,045.16.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "1045.16", "printed": "1045.16", "notation": null}
nlprog_det-setting-0069059
Find the mean of these test scores: 53, 55, 77, 90, 76, 63 and 76. Let the code do the arithmetic: scores = [53, 55, 77, 90, 76, 63, 76] average = sum(scores) // len(scores) # 70 print(average) Running it prints: 70 The mean is 70.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "70", "printed": "70", "notation": null}
nlprog_det-setting-0069060
A clerk's office charges $350 for each filing. Idris submits 18 filings. What is the total fee? Python, step by step: ```python fee = 350 filings = 18 total = fee * filings # 6300 print(total) ``` # program output: 6300 $6,300 in filing fees.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "6300", "printed": "6300", "notation": null}
nlprog_det-setting-0069061
<|start|><|system|> You are a logic tutor.<|eot|> <|user|> A appointment starts at 4:00 PM and lasts 135 minutes. When does it end?<|eot|> <|assistant|> ```python start = 16 * 60 + 0 end = start + 135 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` # console...
chat
[ { "role": "system", "content": "You are a logic tutor." }, { "role": "user", "content": "A appointment starts at 4:00 PM and lasts 135 minutes. When does it end?" }, { "role": "assistant", "content": "```python\nstart = 16 * 60 + 0\nend = start + 135\nhour, minute = divmod(end, 60)\n...
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "6:15 PM", "printed": "6:15 PM", "notation": null}
nlprog_det-setting-0069062
An unpaid balance of $4,000 accrues 1.5% simple interest per month. How much interest accrues in 6 months? As Python: ```python balance = 4000 monthly_rate = 1.5 / 100 # 0.015 months = 6 interest = balance * monthly_rate * months # 360.0 print(f"{interest:.2f}") ``` This prints: 360.00 $360.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "360.00", "printed": "360.00", "notation": null}
nlprog_det-setting-0069063
Priya earns a 8% commission on $108,940 of sales. What is the commission? The computation: sales = 108940 rate = 8 / 100 # 0.08 commission = sales * rate # 8715.2 print(f"{commission:.2f}") Executed, it shows: 8715.20 Priya earns $8,715.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "8715.20", "printed": "8715.20", "notation": null}
nlprog_det-setting-0069064
How many whole days and leftover hours are in 395 hours? A short script: ```python hours = 395 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` The printout reads 16 days and 11 hours. That is 16 days and 11 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "16 days and 11 hours", "printed": "16 days and 11 hours", "notation": null}
nlprog_det-setting-0069065
<|start|><|user|> Starting with 1884 paper reams and using 10 per day, how many remain after 17 days?<|eot|> <|assistant|> 1714 remain.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting with 1884 paper reams and using 10 per day, how many remain after 17 days?" }, { "role": "assistant", "content": "1714 remain." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "1714", "printed": "1714", "notation": null}
nlprog_det-setting-0069067
With 25% off, what does a $40 bicycle helmet cost? Script: ```python price = 40 discount = 25 / 100 # 0.25 sale_price = price * (1 - discount) # 30.0 print(f"{sale_price:.2f}") ``` Run result = 30.00 The sale price is $30.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "30.00", "printed": "30.00", "notation": null}
nlprog_det-setting-0069068
<|start|><|system|> You check calculations for an accounting team.<|eot|> <|user|> Express 235 hours in days and hours.<|eot|> <|assistant|> ```python hours = 235 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Console output — 9 days and 19 hours 235 hours is 9 days and 19 hours.<|eot|> <|en...
chat
[ { "role": "system", "content": "You check calculations for an accounting team." }, { "role": "user", "content": "Express 235 hours in days and hours." }, { "role": "assistant", "content": "```python\nhours = 235\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\"...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "9 days and 19 hours", "printed": "9 days and 19 hours", "notation": null}
nlprog_det-setting-0069069
<|start|><|user|> A pack of 25 badges sells for $425. What does each cost?<|eot|> <|assistant|> ```python total = 425 count = 25 per_item = total // count # 17 print(per_item) ``` # program output: 17 Each one costs $17.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A pack of 25 badges sells for $425. What does each cost?" }, { "role": "assistant", "content": "```python\ntotal = 425\ncount = 25\nper_item = total // count # 17\nprint(per_item)\n```\n# program output: 17\n\nEach one costs $17." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0069070
Meals are $69 per day and lodging $140 per night. What is the allowance for 3 days and 2 nights? A few lines of Python do it: ```python days = 3 meal_rate = 69 lodging_rate = 140 nights = days - 1 # 2 total = days * meal_rate + nights * lodging_rate # 487 print(total) ``` Result = 487 That comes to $487.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "487", "printed": "487", "notation": null}
nlprog_det-setting-0069071
A claim accrued on March 12, 2024. The limitations period is 5 years. On what date does it expire? As Python: ```python from datetime import date accrued = date(2024, 3, 12) # datetime.date(2024, 3, 12) years = 5 expires = accrued.replace(year=accrued.year + years) # datetime.date(2029, 3, 12) print(expires.isoforma...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "2029-03-12", "printed": "2029-03-12", "notation": null}
nlprog_det-setting-0069072
<|start|><|user|> Zoe was born on August 8, 1999. How old is Zoe on January 27, 2022?<|eot|> <|assistant|> ```python from datetime import date born = date(1999, 8, 8) # datetime.date(1999, 8, 8) on = date(2022, 1, 27) # datetime.date(2022, 1, 27) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day...
chat
[ { "role": "user", "content": "Zoe was born on August 8, 1999. How old is Zoe on January 27, 2022?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1999, 8, 8) # datetime.date(1999, 8, 8)\non = date(2022, 1, 27) # datetime.date(2022, 1, 27)\nage = on.year...
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0069073
An attorney bills 12 hours at $410 per hour. What is the bill? One way, in code: ```python hours = 12 rate = 410 bill = hours * rate # 4920 print(f"{bill:.2f}") ``` Printed: 4920.00 That comes to $4,920.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "4920.00", "printed": "4920.00", "notation": null}
nlprog_det-setting-0069074
Tariq was born on January 25, 1960. How old is Tariq on October 19, 2023? Python: ```python from datetime import date born = date(1960, 1, 25) # datetime.date(1960, 1, 25) on = date(2023, 10, 19) # datetime.date(2023, 10, 19) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 63 print(age) ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
153
{"gold": "63", "printed": "63", "notation": null}
nlprog_det-setting-0069075
<|start|><|user|> 37 of 50 members attended. What percent attended?<|eot|> <|assistant|> present = 37 total = 50 percent = present / total * 100 # 74.0 print(round(percent, 1)) # console output: 74.0 Attendance was 74.0%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "37 of 50 members attended. What percent attended?" }, { "role": "assistant", "content": " present = 37\n total = 50\n percent = present / total * 100 # 74.0\n print(round(percent, 1))\n# console output: 74.0\n\nAttendance was 74.0%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "74.0", "printed": "74.0", "notation": null}
nlprog_det-setting-0069076
A library charges $0.15 per book per day late. What is the fine for 2 books that are 9 days late? Here's the code. ```python per_day = 0.15 days_late = 9 books = 2 fine = per_day * days_late * books # 2.6999999999999997 print(f"{fine:.2f}") ``` (Out: 2.70) $2.70 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "2.70", "printed": "2.70", "notation": null}
nlprog_det-setting-0069077
Copies cost $10 plus $0.10 for each page beyond 0. How much for 7 pages? Python: ```python pages = 7 base = 10 per_page = 0.1 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 10.7 print(f"{cost:.2f}") ``` The printout reads 10.70. The total is $10.70.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "10.70", "printed": "10.70", "notation": null}
nlprog_det-setting-0069078
A settlement of $15,000 is split equally among 2 parties. How much does each party receive? Written as code: ```python settlement = 15000 parties = 2 share = settlement // parties # 7500 print(share) ``` The script prints: 7500 Each party receives $7,500.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "7500", "printed": "7500", "notation": null}
nlprog_det-setting-0069079
Convert 5 h 39 min (the length of a film) to minutes. One way, in code: ```python hours = 5 minutes = 39 total_minutes = hours * 60 + minutes # 339 print(total_minutes) ``` Output: 339 The film lasted 339 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "339", "printed": "339", "notation": null}
nlprog_det-setting-0069080
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> A hearing starts at 1:40 PM and lasts 150 minutes. When does it end?<|eot|> <|assistant|> The hearing finishes at 4:10 PM.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "role": "user", "content": "A hearing starts at 1:40 PM and lasts 150 minutes. When does it end?" }, { "role": "assistant", "content": "The hearing finishes at 4:10 PM." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
51
{"gold": "4:10 PM", "printed": "4:10 PM", "notation": null}
nlprog_det-setting-0069081
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> An office budget of $8,000 has expenses of $2,704, $3,024. How much of the budget is left?<|eot|> <|assistant|> ```python budget = 8000 expenses = [2704, 3024] left = budget - sum(expenses) # 2272 print(left) ``` Shell output — 2272 The remaining b...
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "An office budget of $8,000 has expenses of $2,704, $3,024. How much of the budget is left?" }, { "role": "assistant", "content": "```python\nbudget = 8000\nexpenses = [2704, 3024]\nlef...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "2272", "printed": "2272", "notation": null}
nlprog_det-setting-0069082
<|start|><|system|> Available functions (JSON Schema): {"name": "sandbox_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> <|user|>...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"sandbox_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source ...
nlprog_det
setting
original
null
deterministic
[]
[]
266
{"gold": "116.00", "printed": "116.00", "notation": null}
nlprog_det-setting-0069083
Dara earns $22.40 an hour and time and a half for hours over 40. What is the pay for a 52-hour week? Coded up: ```python rate = 22.4 hours = 52 regular = 40 * rate # 896.0 overtime = (hours - 40) * rate * 1.5 # 403.19999999999993 pay = regular + overtime # 1299.1999999999998 print(f"{pay:.2f}") ``` Output: 1299.20 ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "1299.20", "printed": "1299.20", "notation": null}
nlprog_det-setting-0069084
A service costs $29 a month or $300 a year. How much does the yearly plan save over 12 monthly payments? monthly = 29 yearly = 300 savings = monthly * 12 - yearly # 48 print(savings) The interpreter prints: 48 The annual plan saves $48.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0069085
<|start|><|user|> At 60 miles per hour, how many minutes does a 240-mile trip take?<|eot|> <|assistant|> distance = 240 speed = 60 minutes = distance / speed * 60 # 240.0 print(round(minutes)) Run result: 240 The trip takes 240 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 60 miles per hour, how many minutes does a 240-mile trip take?" }, { "role": "assistant", "content": " distance = 240\n speed = 60\n minutes = distance / speed * 60 # 240.0\n print(round(minutes))\nRun result: 240\n\nThe trip takes 240 minutes." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
70
{"gold": "240", "printed": "240", "notation": null}
nlprog_det-setting-0069087
<|start|><|user|> An office budget of $25,000 has expenses of $3,912, $481. How much of the budget is left?<|eot|> <|assistant|> $20,607 is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An office budget of $25,000 has expenses of $3,912, $481. How much of the budget is left?" }, { "role": "assistant", "content": "$20,607 is left." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "20607", "printed": "20607", "notation": null}
nlprog_det-setting-0069088
<|start|><|user|> Notice was given on August 3, 2026. The notice period is 14 days. When does it run out?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2026, 8, 3) end = start + timedelta(days=14) print(end.isoformat()) ``` Executing it gives: 2026-08-17 The period ends on August 17,...
chat
[ { "role": "user", "content": "Notice was given on August 3, 2026. The notice period is 14 days. When does it run out?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2026, 8, 3)\nend = start + timedelta(days=14)\nprint(end.isoformat())\n```\nE...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "2026-08-17", "printed": "2026-08-17", "notation": null}
nlprog_det-setting-0069089
A car travels 96 miles in 2 hours. What is its average speed in miles per hour? Python does the arithmetic: ```python distance = 96 hours = 2 speed = distance / hours # 48.0 print(round(speed)) ``` Printed result — 48 It averages 48 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0069091
<|start|><|system|> Tools (call with JSON): {"name": "py_exec", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> Filing fees are $15...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"py_exec\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require...
nlprog_det
setting
original
null
deterministic
[]
[]
206
{"gold": "1650", "printed": "1650", "notation": null}
nlprog_det-setting-0069092
<|start|><|system|> You may call the tools below. [{"name": "python_exec", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|>...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"python_exec\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source ...
nlprog_det
setting
original
null
deterministic
[]
[]
229
{"gold": "270.00", "printed": "270.00", "notation": null}
nlprog_det-setting-0069093
Express 83 hours in days and hours. Code: hours = 83 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") # program output: 3 days and 11 hours 83 hours is 3 days and 11 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
69
{"gold": "3 days and 11 hours", "printed": "3 days and 11 hours", "notation": null}
nlprog_det-setting-0069094
<|start|><|system|> Be brief and correct.<|eot|> <|user|> Counting only Monday through Friday, how many business days are there after March 18, 2018 through April 13, 2018?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2018, 3, 18) end = date(2018, 4, 13) count = 0 for k in range(1, (...
chat
[ { "role": "system", "content": "Be brief and correct." }, { "role": "user", "content": "Counting only Monday through Friday, how many business days are there after March 18, 2018 through April 13, 2018?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, time...
nlprog_det
setting
original
null
deterministic
[]
[]
163
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0069095
An office budget of $20,000 has expenses of $2,915, $1,408. How much of the budget is left? ```python budget = 20000 expenses = [2915, 1408] left = budget - sum(expenses) # 15677 print(left) ``` The program prints: 15677 The remaining budget is $15,677.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "15677", "printed": "15677", "notation": null}
nlprog_det-setting-0069096
<|start|><|user|> After a 30% fee is taken from a $60,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|> <|assistant|> Each client gets $21,000.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "After a 30% fee is taken from a $60,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?" }, { "role": "assistant", "content": "Each client gets $21,000.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
49
{"gold": "21000.00", "printed": "21000.00", "notation": null}
nlprog_det-setting-0069097
The firm was founded in 2011. How many years had passed by 2043? The program: ```python start_year = 2011 end_year = 2043 print(end_year - start_year) ``` The run gives 32, as expected. 32 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0069098
<|start|><|user|> Each storage box holds 40 files. How many boxes are needed for 244 files?<|eot|> <|assistant|> import math files = 244 per_box = 40 boxes = math.ceil(files / per_box) print(boxes) The script prints 7. 7 boxes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each storage box holds 40 files. How many boxes are needed for 244 files?" }, { "role": "assistant", "content": " import math\n files = 244\n per_box = 40\n boxes = math.ceil(files / per_box)\n print(boxes)\nThe script prints 7.\n\n7 boxes are needed....
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "7", "printed": "7", "notation": null}
nlprog_det-setting-0069099
How many of 223 votes make 60% (round up)? As Python: ```python import math voters = 223 needed = math.ceil(voters * 60 / 100) # 134 print(needed) ``` Interpreter output — 134 At least 134 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "134", "printed": "134", "notation": null}
nlprog_det-setting-0069100
<|start|><|user|> Each storage box holds 40 files. How many boxes are needed for 87 files?<|eot|> <|assistant|> import math files = 87 per_box = 40 boxes = math.ceil(files / per_box) # 3 print(boxes) What it prints: 3 It takes 3 boxes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each storage box holds 40 files. How many boxes are needed for 87 files?" }, { "role": "assistant", "content": " import math\n files = 87\n per_box = 40\n boxes = math.ceil(files / per_box) # 3\n print(boxes)\nWhat it prints: 3\n\nIt takes 3 boxes." ...
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0069101
Printing costs 5 cents a page. What does it cost to print 149 copies of a 24-page handout? Code: ```python pages = 24 copies = 149 cost_per_page = 0.05 cost = pages * copies * cost_per_page print(f"{cost:.2f}") ``` stdout: 178.80 The job costs $178.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "178.80", "printed": "178.80", "notation": null}
nlprog_det-setting-0069102
$10,000 is invested at 3% compounded yearly. What is it worth after 5 years? It is worth $11,592.74.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "11592.74", "printed": "11592.74", "notation": null}
nlprog_det-setting-0069103
Walls total 163 sq ft and each can covers 350 sq ft. How many cans should be bought? Script: ```python import math area = 163 coverage = 350 cans = math.ceil(area / coverage) # 1 print(cans) ``` Executing it gives 1. 1 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "1", "printed": "1", "notation": null}
nlprog_det-setting-0069104
<|start|><|user|> A film lasted 4 hours and 45 minutes. How many minutes is that?<|eot|> <|assistant|> ```python hours = 4 minutes = 45 total_minutes = hours * 60 + minutes # 285 print(total_minutes) ``` Output — 285 The film lasted 285 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A film lasted 4 hours and 45 minutes. How many minutes is that?" }, { "role": "assistant", "content": "```python\nhours = 4\nminutes = 45\ntotal_minutes = hours * 60 + minutes # 285\nprint(total_minutes)\n```\nOutput — 285\n\nThe film lasted 285 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "285", "printed": "285", "notation": null}
nlprog_det-setting-0069105
<|start|><|user|> At a 6% tax rate, what is the tax on $595.77?<|eot|> <|assistant|> ```python price = 595.77 tax_rate = 6 / 100 # 0.06 tax = price * tax_rate # 35.746199999999995 print(f"{tax:.2f}") ``` Executing it gives 35.75. $35.75 in tax.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At a 6% tax rate, what is the tax on $595.77?" }, { "role": "assistant", "content": "```python\nprice = 595.77\ntax_rate = 6 / 100 # 0.06\ntax = price * tax_rate # 35.746199999999995\nprint(f\"{tax:.2f}\")\n```\nExecuting it gives 35.75.\n\n$35.75 in tax." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "35.75", "printed": "35.75", "notation": null}
nlprog_det-setting-0069106
A hearing is set for January 7, 1994. What day of the week is that? We write it as a program: ```python from datetime import date hearing = date(1994, 1, 7) # datetime.date(1994, 1, 7) print(hearing.strftime("%A")) ``` Program output — Friday January 7, 1994 is a Friday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "Friday", "printed": "Friday", "notation": null}
nlprog_det-setting-0069107
<|start|><|system|> You help people work with structured data.<|eot|> <|user|> The paralegal logged 8 hours at a rate of $300. How much is billed?<|eot|> <|assistant|> hours = 8 rate = 300 bill = hours * rate # 2400 print(f"{bill:.2f}") It outputs: 2400.00 The bill is $2,400.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help people work with structured data." }, { "role": "user", "content": "The paralegal logged 8 hours at a rate of $300. How much is billed?" }, { "role": "assistant", "content": " hours = 8\n rate = 300\n bill = hours * rate # 2400\n ...
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "2400.00", "printed": "2400.00", "notation": null}
nlprog_det-setting-0069108
<|start|><|user|> Kofi earns $22.40 an hour and time and a half for hours over 40. What is the pay for a 50-hour week?<|eot|> <|assistant|> The weekly pay is $1,232.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Kofi earns $22.40 an hour and time and a half for hours over 40. What is the pay for a 50-hour week?" }, { "role": "assistant", "content": "The weekly pay is $1,232.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
52
{"gold": "1232.00", "printed": "1232.00", "notation": null}
nlprog_det-setting-0069109
How many meters are in 5.7 kilometers? Python code: ```python km = 5.7 meters = km * 1000 # 5700.0 print(round(meters)) ``` The script prints 5700, as expected. That is 5,700 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "5700", "printed": "5700", "notation": null}
nlprog_det-setting-0069110
A backpack costs $300. It is 15% off. What is the sale price? Coded up: ```python price = 300 discount = 15 / 100 # 0.15 sale_price = price * (1 - discount) # 255.0 print(f"{sale_price:.2f}") ``` Run output: 255.00 The sale price is $255.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "255.00", "printed": "255.00", "notation": null}
nlprog_det-setting-0069111
Sales went from 400 to 560. What is the percent change? Script: old = 400 new = 560 change = (new - old) / old * 100 # 40.0 print(round(change)) (Output: 40) The change is 40%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
70
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0069112
If a 3-year limitations period starts on March 8, 2018, when does it end? In code: ```python from datetime import date accrued = date(2018, 3, 8) # datetime.date(2018, 3, 8) years = 3 expires = accrued.replace(year=accrued.year + years) # datetime.date(2021, 3, 8) print(expires.isoformat()) ``` The program outputs: ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "2021-03-08", "printed": "2021-03-08", "notation": null}
nlprog_det-setting-0069113
An invoice lists 13 clipboards at $15 each, plus 5% sales tax. What is the invoice total? In code: ```python quantity = 13 unit_price = 15 subtotal = quantity * unit_price # 195 total = subtotal * (1 + 5 / 100) # 204.75 print(f"{total:.2f}") ``` (Program output: 204.75) The total with tax is $204.75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "204.75", "printed": "204.75", "notation": null}
nlprog_det-setting-0069114
A garage charges $4 an hour, never more than $20 a day. How much for 11 hours? The charge is $20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0069115
Someone works 20 hours at $17.73 per hour. What are the earnings? Here is a short program for it. ```python rate = 17.73 hours = 20 earnings = rate * hours # 354.6 print(f"{earnings:.2f}") ``` Program output — 354.60 That earns $354.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "354.60", "printed": "354.60", "notation": null}
nlprog_det-setting-0069116
273 volunteers are split into 8 equal teams. How many are on each team, and how many are left over? Programmatically: total = 273 groups = 8 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") Execution prints 34 each, 1 left over. 34 each, 1 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "34 each, 1 left over", "printed": "34 each, 1 left over", "notation": null}
nlprog_det-setting-0069117
Each storage box holds 15 files. How many boxes are needed for 435 files? The program: ```python import math files = 435 per_box = 15 boxes = math.ceil(files / per_box) # 29 print(boxes) ``` (Run result: 29) 29 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0069118
<|start|><|user|> Water costs $20 a month plus $3.50 for each 1,000 gallons over 2,000. What is owed for 7,000 gallons?<|eot|> <|assistant|> ```python base = 20 rate = 3.5 used = 7 free = 2 bill = base + rate * max(0, used - free) # 37.5 print(f"{bill:.2f}") ``` Printed = 37.50 The bill is $37.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Water costs $20 a month plus $3.50 for each 1,000 gallons over 2,000. What is owed for 7,000 gallons?" }, { "role": "assistant", "content": "```python\nbase = 20\nrate = 3.5\nused = 7\nfree = 2\nbill = base + rate * max(0, used - free) # 37.5\nprint(f\"{bill:.2f}\"...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "37.50", "printed": "37.50", "notation": null}
nlprog_det-setting-0069119
Fines run at $250 per day up to a maximum of $5,000. How much after 23 days? Script: ```python per_day = 250 days = 23 cap = 5000 fine = min(per_day * days, cap) # 5000 print(fine) ``` The program prints 5000, as expected. The fine is $5,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "5000", "printed": "5000", "notation": null}
nlprog_det-setting-0069120
<|start|><|user|> With 29 rows of 11 chairs and 5 empty chairs, how many chairs are taken?<|eot|> <|assistant|> ```python rows = 29 per_row = 11 empty = 5 seated = rows * per_row - empty # 314 print(seated) ``` Run it and it prints 314. 314 seats are taken.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 29 rows of 11 chairs and 5 empty chairs, how many chairs are taken?" }, { "role": "assistant", "content": "```python\nrows = 29\nper_row = 11\nempty = 5\nseated = rows * per_row - empty # 314\nprint(seated)\n```\nRun it and it prints 314.\n\n314 seats are take...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "314", "printed": "314", "notation": null}
nlprog_det-setting-0069122
A customer buys 6 water bottles at $23 each, 5 hard drives at $20 each, 6 lanyards at $27 each, 6 flash drives at $3 each and pays with $450. How much change is due? ```python items = [(6, 23), (5, 20), (6, 27), (6, 3)] total = sum(q * p for q, p in items) # 418 paid = 450 change = paid - total # 32 print(change) ``...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0069123
Monthly rent is $1,200. A tenant moves in with 20 days left in a 30-day month. What is the prorated rent? ```python rent = 1200 days_in_month = 30 days_occupied = 20 prorated = rent * days_occupied / days_in_month # 800.0 print(f"{prorated:.2f}") ``` It outputs 800.00. The tenant owes $800.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "800.00", "printed": "800.00", "notation": null}
nlprog_det-setting-0069124
A 9 × 14 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up? Script: ```python import math length = 9 width = 14 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 126 print(tiles) ``` Execution prints 126. 126 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "126", "printed": "126", "notation": null}
nlprog_det-setting-0069125
An invoice lists 33 water bottles at $24 each, plus 10% sales tax. What is the invoice total? Set it up in Python: ```python quantity = 33 unit_price = 24 subtotal = quantity * unit_price # 792 total = subtotal * (1 + 10 / 100) # 871.2 print(f"{total:.2f}") ``` Shell output: 871.20 The total with tax is $871.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "871.20", "printed": "871.20", "notation": null}
nlprog_det-setting-0069126
An unpaid balance of $2,500 accrues 1% simple interest per month. How much interest accrues in 3 months? Python, step by step: ```python balance = 2500 monthly_rate = 1 / 100 # 0.01 months = 3 interest = balance * monthly_rate * months # 75.0 print(f"{interest:.2f}") ``` Printed — 75.00 $75.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "75.00", "printed": "75.00", "notation": null}
nlprog_det-setting-0069127
An attorney bills 10.5 hours at $180 per hour. What is the bill? That comes to $1,890.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "1890.00", "printed": "1890.00", "notation": null}
nlprog_det-setting-0069128
At an exchange rate of 0.92 USD per CHF, how many USD is 7,204 CHF? Python code: ```python amount = 7204 rate = 0.92 converted = amount * rate # 6627.68 print(f"{converted:.2f}") ``` Shell output — 6627.68 That is 6,627.68 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "6627.68", "printed": "6627.68", "notation": null}
nlprog_det-setting-0069129
<|start|><|user|> The landlord deducts $85 from a $1,000 deposit. What is returned to the tenant?<|eot|> <|assistant|> ```python deposit = 1000 deductions = [85] refund = deposit - sum(deductions) # 915 print(refund) ``` # output: 915 $915 is returned.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The landlord deducts $85 from a $1,000 deposit. What is returned to the tenant?" }, { "role": "assistant", "content": "```python\ndeposit = 1000\ndeductions = [85]\nrefund = deposit - sum(deductions) # 915\nprint(refund)\n```\n# output: 915\n\n$915 is returned." ...
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "915", "printed": "915", "notation": null}
nlprog_det-setting-0069131
<|start|><|system|> Tools (call with JSON): [{"name": "calculator", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> A recipe for 8 people uses ...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"calculator\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"s...
nlprog_det
setting
original
null
deterministic
[]
[]
222
{"gold": "75", "printed": "75", "notation": null}
nlprog_det-setting-0069132
<|start|><|user|> Express 48 hours in days and hours.<|eot|> <|assistant|> ```python hours = 48 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Executing it gives: 2 days and 0 hours That is 2 days and 0 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Express 48 hours in days and hours." }, { "role": "assistant", "content": "```python\nhours = 48\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nExecuting it gives: 2 days and 0 hours\n\nThat is 2 days and 0 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "2 days and 0 hours", "printed": "2 days and 0 hours", "notation": null}
nlprog_det-setting-0069133
<|start|><|user|> What is 20 degrees Celsius in 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": "What is 20 degrees Celsius in 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
[]
[]
89
{"gold": "68", "printed": "68", "notation": null}
nlprog_det-setting-0069134
Shipping costs $8 plus $2.00 per pound. What does a 24-pound parcel cost to ship? We can compute it in Python. ```python base = 8 per_pound = 2.0 weight = 24 cost = base + per_pound * weight # 56.0 print(f"{cost:.2f}") ``` # console output: 56.00 The charge is $56.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "56.00", "printed": "56.00", "notation": null}
nlprog_det-setting-0069135
Of a $5,000 budget, $2,600 has been spent. What percent is that? Here is the program. ```python budget = 5000 spent = 2600 percent = spent / budget * 100 # 52.0 print(round(percent, 1)) ``` Printed: 52.0 52.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "52.0", "printed": "52.0", "notation": null}
nlprog_det-setting-0069136
From 2008 to 2013, how many years is that? Python, step by step: ```python start_year = 2008 end_year = 2013 print(end_year - start_year) ``` Console: 5 That is 5 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0069137
What commission does Sofia make on $60,565 in sales at 5%? Let's compute it with Python. ```python sales = 60565 rate = 5 / 100 commission = sales * rate print(f"{commission:.2f}") ``` Executed, it shows 3028.25. The commission is $3,028.25.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "3028.25", "printed": "3028.25", "notation": null}
nlprog_det-setting-0069138
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "py_exec", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "convert_u...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"py_exec\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\...
nlprog_det
setting
original
null
deterministic
[]
[]
338
{"gold": "56.63", "printed": "56.63", "notation": null}
nlprog_det-setting-0069139
Equal monthly payments repay $1,200 plus 10% simple yearly interest over 12 months. How large is a payment? The computation: ```python principal = 1200 annual_rate = 10 / 100 months = 12 interest = principal * annual_rate * months / 12 payment = (principal + interest) / months print(f"{payment:.2f}") ``` (Printed resu...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "110.00", "printed": "110.00", "notation": null}
nlprog_det-setting-0069141
47 volunteers are split into 8 equal teams. How many are on each team, and how many are left over? Set it up in Python: total = 47 groups = 8 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") stdout — 5 each, 7 left over The answer: 5 each, 7 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "5 each, 7 left over", "printed": "5 each, 7 left over", "notation": null}
nlprog_det-setting-0069142
Split $420 between Chen and Rania in the ratio 2 to 5. What is Chen's share? A Python solution: ```python total = 420 parts_a = 2 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 120 print(share_a) ``` That prints: 120 Chen's share is $120.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0069143
The rules require 1/3 of 10 members (round up) to be present. How many is that? One way, in code: ```python import math members = 10 quorum = math.ceil(members * 1 / 3) print(quorum) ``` Output — 4 4 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0069144
<|start|><|system|> You can call tools. Available tools: {"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}} {"name": "math_engine", "description": "Runs a short Python snippet a...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}\n{\"name\": \"math...
nlprog_det
setting
original
null
deterministic
[]
[]
292
{"gold": "Friday", "printed": "Friday", "notation": null}
nlprog_det-setting-0069145
A 8% increase is applied to $2,200 monthly rent. What is the new amount? The program: ```python rent = 2200 increase = 8 / 100 # 0.08 new_rent = rent * (1 + increase) # 2376.0 print(f"{new_rent:.2f}") ``` (Console output: 2376.00) It rises to $2,376.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "2376.00", "printed": "2376.00", "notation": null}
nlprog_det-setting-0069146
Equipment costs $30,000, has a salvage value of $0, and a useful life of 8 years. What is the straight-line depreciation per year? ```python cost = 30000 salvage = 0 years = 8 per_year = (cost - salvage) / years # 3750.0 print(f"{per_year:.2f}") ``` When run, it prints 3750.00, as expected. $3,750.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "3750.00", "printed": "3750.00", "notation": null}
nlprog_det-setting-0069147
<|start|><|user|> How many of 67 votes make 67% (round up)?<|eot|> <|assistant|> ```python import math voters = 67 needed = math.ceil(voters * 67 / 100) # 45 print(needed) ``` The code prints: 45 45 votes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 67 votes make 67% (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 67\nneeded = math.ceil(voters * 67 / 100) # 45\nprint(needed)\n```\nThe code prints: 45\n\n45 votes are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "45", "printed": "45", "notation": null}
nlprog_det-setting-0069148
<|start|><|user|> At a 6% tax rate, what is the tax on $641.18?<|eot|> <|assistant|> ```python price = 641.18 tax_rate = 6 / 100 # 0.06 tax = price * tax_rate # 38.4708 print(f"{tax:.2f}") ``` Console output — 38.47 The tax is $38.47.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At a 6% tax rate, what is the tax on $641.18?" }, { "role": "assistant", "content": "```python\nprice = 641.18\ntax_rate = 6 / 100 # 0.06\ntax = price * tax_rate # 38.4708\nprint(f\"{tax:.2f}\")\n```\nConsole output — 38.47\n\nThe tax is $38.47." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "38.47", "printed": "38.47", "notation": null}
nlprog_det-setting-0069149
7 walks at 250 calories each burn how many calories in total? 1750 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "1750", "printed": "1750", "notation": null}
nlprog_det-setting-0069150
What simple interest does $2,500 earn at 5% a year over 4 years? Python version: ```python principal = 2500 rate = 5 / 100 # 0.05 years = 4 interest = principal * rate * years # 500.0 print(f"{interest:.2f}") ``` Printed result — 500.00 The interest is $500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "500.00", "printed": "500.00", "notation": null}
nlprog_det-setting-0069151
7 walks at 350 calories each burn how many calories in total? The computation: ```python per_session = 350 sessions = 7 total = per_session * sessions # 2450 print(total) ``` It outputs 2450. That burns 2450 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "2450", "printed": "2450", "notation": null}
nlprog_det-setting-0069152
<|start|><|user|> With 15% off, what does a $40 printer cost?<|eot|> <|assistant|> ```python price = 40 discount = 15 / 100 # 0.15 sale_price = price * (1 - discount) # 34.0 print(f"{sale_price:.2f}") ``` Executing it gives: 34.00 The sale price is $34.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 15% off, what does a $40 printer cost?" }, { "role": "assistant", "content": "```python\nprice = 40\ndiscount = 15 / 100 # 0.15\nsale_price = price * (1 - discount) # 34.0\nprint(f\"{sale_price:.2f}\")\n```\nExecuting it gives: 34.00\n\nThe sale price is $34....
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "34.00", "printed": "34.00", "notation": null}
nlprog_det-setting-0069153
A 31 lb package ships at $12 base plus $2.00/lb. What is the charge? Programmatically: ```python base = 12 per_pound = 2.0 weight = 31 cost = base + per_pound * weight # 74.0 print(f"{cost:.2f}") ``` Output: 74.00 The charge is $74.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "74.00", "printed": "74.00", "notation": null}
nlprog_det-setting-0069154
What is -5 degrees Celsius in Fahrenheit? As a program: ```python celsius = -5 fahrenheit = celsius * 9 / 5 + 32 # 23.0 print(round(fahrenheit)) ``` Python prints: 23 It equals 23 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0069155
<|start|><|user|> A 112-page report must be reviewed in 4 days. How many pages a day is that, evenly?<|eot|> <|assistant|> ```python pages = 112 days = 4 per_day = pages // days print(per_day) ``` The interpreter prints: 28 That is 28 pages per day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 112-page report must be reviewed in 4 days. How many pages a day is that, evenly?" }, { "role": "assistant", "content": "```python\npages = 112\ndays = 4\nper_day = pages // days\nprint(per_day)\n```\nThe interpreter prints: 28\n\nThat is 28 pages per day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0069156
22 mugs cost $2 apiece. With 6% tax added, what is the total? quantity = 22 unit_price = 2 subtotal = quantity * unit_price # 44 total = subtotal * (1 + 6 / 100) # 46.64 print(f"{total:.2f}") The run gives: 46.64 The invoice total is $46.64.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "46.64", "printed": "46.64", "notation": null}
nlprog_det-setting-0069157
How many of 8 members form a majority (more than half)? Python code: ```python members = 8 majority = members // 2 + 1 # 5 print(majority) ``` # program output: 5 That is 5 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0069158
Copies cost $15 plus $0.10 for each page beyond 0. How much for 72 pages? Translated to Python: ```python pages = 72 base = 15 per_page = 0.1 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page print(f"{cost:.2f}") ``` Out: 22.20 The copy costs $22.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "22.20", "printed": "22.20", "notation": null}
nlprog_det-setting-0069159
How many of 300 votes make 75% (round up)? Script: ```python import math voters = 300 needed = math.ceil(voters * 75 / 100) # 225 print(needed) ``` Run output: 225 At least 225 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "225", "printed": "225", "notation": null}
nlprog_det-setting-0069160
<|start|><|system|> You are a precise assistant.<|eot|> <|user|> How many weekdays (Monday to Friday) fall after July 17, 2025 up to and including July 30, 2025?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2025, 7, 17) end = date(2025, 7, 30) count = 0 for k in range(1, (end - start...
chat
[ { "role": "system", "content": "You are a precise assistant." }, { "role": "user", "content": "How many weekdays (Monday to Friday) fall after July 17, 2025 up to and including July 30, 2025?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstar...
nlprog_det
setting
original
null
deterministic
[]
[]
167
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0069161
167 copies of a 12-page packet are printed at $0.10 per page. What is the cost? Let's compute it with Python. ```python pages = 12 copies = 167 cost_per_page = 0.1 cost = pages * copies * cost_per_page # 200.4 print(f"{cost:.2f}") ``` Executed, it shows: 200.40 Printing costs $200.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "200.40", "printed": "200.40", "notation": null}
nlprog_det-setting-0069162
<|start|><|system|> Tools you may use: [{"name": "python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "translate", "description": "Translate text into ...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\"]}}, {\"...
nlprog_det
setting
original
null
deterministic
[]
[]
438
{"gold": "2021-09-18", "printed": "2021-09-18", "notation": null}