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-0078487
<|start|><|system|> Tools (call with JSON): [{"name": "calc", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "search_cases", "description": "Search c...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"calc\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\...
nlprog_det
setting
original
null
deterministic
[]
[]
299
{"gold": "90.50", "printed": "90.50", "notation": null}
nlprog_det-setting-0078488
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> Under a 40% contingency agreement, what fee is owed on a $60,000 award?<|eot|> <|assistant|> ```python recovery = 60000 rate = 40 / 100 # 0.4 fee = recovery * rate # 24000.0 print(f"{fee:.2f}") ``` Executed, it shows: 24000.00 The fee is $24,000.00.<|e...
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "Under a 40% contingency agreement, what fee is owed on a $60,000 award?" }, { "role": "assistant", "content": "```python\nrecovery = 60000\nrate = 40 / 100 # 0.4\nfee = recovery * rate # ...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "24000.00", "printed": "24000.00", "notation": null}
nlprog_det-setting-0078489
Jamal's scores were 100, 59, 73 and 80. What is the average score? The average score is 78.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "78", "printed": "78", "notation": null}
nlprog_det-setting-0078490
<|start|><|user|> With 18 rows of 13 chairs and 8 empty chairs, how many chairs are taken?<|eot|> <|assistant|> ```python rows = 18 per_row = 13 empty = 8 seated = rows * per_row - empty # 226 print(seated) ``` It prints 226. 226 seats are taken.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 18 rows of 13 chairs and 8 empty chairs, how many chairs are taken?" }, { "role": "assistant", "content": "```python\nrows = 18\nper_row = 13\nempty = 8\nseated = rows * per_row - empty # 226\nprint(seated)\n```\nIt prints 226.\n\n226 seats are taken." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "226", "printed": "226", "notation": null}
nlprog_det-setting-0078492
Sara earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 50-hour week? ```python rate = 16.0 hours = 50 regular = 40 * rate # 640.0 overtime = (hours - 40) * rate * 1.5 # 240.0 pay = regular + overtime # 880.0 print(f"{pay:.2f}") ``` On running, it outputs 880.00. Sara earns $880.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "880.00", "printed": "880.00", "notation": null}
nlprog_det-setting-0078493
At a 6% tax rate, what is the tax on $324.31? The tax is $19.46.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "19.46", "printed": "19.46", "notation": null}
nlprog_det-setting-0078494
2 clients win $96,000. The lawyer takes 30%, and the rest is split equally. How much does each client get? ```python award = 96000 fee = award * 30 / 100 # 28800.0 remaining = award - fee # 67200.0 per_client = remaining / 2 # 33600.0 print(f"{per_client:.2f}") ``` # run result: 33600.00 Each share is $33,600.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "33600.00", "printed": "33600.00", "notation": null}
nlprog_det-setting-0078495
<|start|><|system|> You have access to these functions: [{"name": "calculator", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "search_cases", "descrip...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"calculator\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir...
nlprog_det
setting
original
null
deterministic
[]
[]
309
{"gold": "1143", "printed": "1143", "notation": null}
nlprog_det-setting-0078496
Starting with 1481 envelopes and using 25 per day, how many remain after 19 days? Python makes this quick: ```python stock = 1481 per_day = 25 days = 19 left = stock - per_day * days # 1006 print(left) ``` Execution prints: 1006 1006 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "1006", "printed": "1006", "notation": null}
nlprog_det-setting-0078497
1.5 hours of work at $180 an hour: what is the total charge? Let the code do the arithmetic: ```python hours = 1.5 rate = 180 bill = hours * rate print(f"{bill:.2f}") ``` Out: 270.00 That comes to $270.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "270.00", "printed": "270.00", "notation": null}
nlprog_det-setting-0078498
<|start|><|user|> A 60-mile drive at a steady 30 mph takes how many minutes?<|eot|> <|assistant|> 120 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 60-mile drive at a steady 30 mph takes how many minutes?" }, { "role": "assistant", "content": "120 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0078499
<|start|><|user|> A trial runs from February 25, 2020 to March 17, 2020, counting both days. How many calendar days is that?<|eot|> <|assistant|> ```python from datetime import date first = date(2020, 2, 25) # datetime.date(2020, 2, 25) last = date(2020, 3, 17) # datetime.date(2020, 3, 17) days = (last - first).days ...
chat
[ { "role": "user", "content": "A trial runs from February 25, 2020 to March 17, 2020, counting both days. How many calendar days is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2020, 2, 25) # datetime.date(2020, 2, 25)\nlast = date(2020, 3, 17) ...
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0078501
<|start|><|user|> If a 50-minute seminar begins at 11:30 AM, what time does it finish?<|eot|> <|assistant|> ```python start = 11 * 60 + 30 end = start + 50 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` The printout reads: 12:20 PM The seminar finishes at ...
chat
[ { "role": "user", "content": "If a 50-minute seminar begins at 11:30 AM, what time does it finish?" }, { "role": "assistant", "content": "```python\nstart = 11 * 60 + 30\nend = start + 50\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}\"...
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "12:20 PM", "printed": "12:20 PM", "notation": null}
nlprog_det-setting-0078502
A hall has 30 rows of 21 seats, and 33 seats are empty. How many people are seated? The computation: ```python rows = 30 per_row = 21 empty = 33 seated = rows * per_row - empty # 597 print(seated) ``` stdout — 597 597 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "597", "printed": "597", "notation": null}
nlprog_det-setting-0078503
<|start|><|user|> How many weekdays (Monday to Friday) fall after October 11, 2024 up to and including November 3, 2024?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2024, 10, 11) end = date(2024, 11, 3) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(d...
chat
[ { "role": "user", "content": "How many weekdays (Monday to Friday) fall after October 11, 2024 up to and including November 3, 2024?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2024, 10, 11)\nend = date(2024, 11, 3)\ncount = 0\nfor k in ra...
nlprog_det
setting
original
null
deterministic
[]
[]
156
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0078505
A trial runs from June 15, 2024 to July 9, 2024, counting both days. How many calendar days is that? 25 calendar days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0078506
<|start|><|user|> Equal monthly payments repay $2,400 plus 10% simple yearly interest over 36 months. How large is a payment?<|eot|> <|assistant|> ```python principal = 2400 annual_rate = 10 / 100 # 0.1 months = 36 interest = principal * annual_rate * months / 12 # 720.0 payment = (principal + interest) / months # 8...
chat
[ { "role": "user", "content": "Equal monthly payments repay $2,400 plus 10% simple yearly interest over 36 months. How large is a payment?" }, { "role": "assistant", "content": "```python\nprincipal = 2400\nannual_rate = 10 / 100 # 0.1\nmonths = 36\ninterest = principal * annual_rate * months / ...
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "86.67", "printed": "86.67", "notation": null}
nlprog_det-setting-0078508
$1,000 is invested at 3% compounded yearly. What is it worth after 2 years? Computing it: ```python principal = 1000 rate = 3 / 100 # 0.03 years = 2 value = principal * (1 + rate) ** years # 1060.8999999999999 print(f"{value:.2f}") ``` It prints 1060.90, as expected. It is worth $1,060.90.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "1060.90", "printed": "1060.90", "notation": null}
nlprog_det-setting-0078509
<|start|><|system|> You are a logic tutor.<|eot|> <|user|> Idris earns a 4% commission on $96,795 of sales. What is the commission?<|eot|> <|assistant|> ```python sales = 96795 rate = 4 / 100 # 0.04 commission = sales * rate # 3871.8 print(f"{commission:.2f}") ``` The program prints 3871.80, as expected. Idris earns...
chat
[ { "role": "system", "content": "You are a logic tutor." }, { "role": "user", "content": "Idris earns a 4% commission on $96,795 of sales. What is the commission?" }, { "role": "assistant", "content": "```python\nsales = 96795\nrate = 4 / 100 # 0.04\ncommission = sales * rate # 3871...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "3871.80", "printed": "3871.80", "notation": null}
nlprog_det-setting-0078510
A shift runs from 9:48 AM to 1:29 PM. How long is it in minutes? Here's the code. ```python start = 9 * 60 + 48 # 588 end = 13 * 60 + 29 # 809 print(end - start) ``` # printed result: 221 It is 221 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "221", "printed": "221", "notation": null}
nlprog_det-setting-0078511
A car travels 570 miles in 2 hours. What is its average speed in miles per hour? In Python: ```python distance = 570 hours = 2 speed = distance / hours # 285.0 print(round(speed)) ``` Shell output: 285 It averages 285 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "285", "printed": "285", "notation": null}
nlprog_det-setting-0078512
How many days are there from November 11, 2022 to August 1, 2023? A short script: ```python from datetime import date first = date(2022, 11, 11) # datetime.date(2022, 11, 11) second = date(2023, 8, 1) # datetime.date(2023, 8, 1) print((second - first).days) ``` Output: 263 It is 263 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "263", "printed": "263", "notation": null}
nlprog_det-setting-0078513
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> A ...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source ...
nlprog_det
setting
original
null
deterministic
[]
[]
220
{"gold": "18000.00", "printed": "18000.00", "notation": null}
nlprog_det-setting-0078514
Papers were served by mail on May 19, 2028. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date? It is due June 5, 2028.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "2028-06-05", "printed": "2028-06-05", "notation": null}
nlprog_det-setting-0078516
<|start|><|system|> Functions: {"name": "compute", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> What does $2,000 grow to in 2 years at 2% ann...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"compute\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}" }, ...
nlprog_det
setting
original
null
deterministic
[]
[]
217
{"gold": "2080.80", "printed": "2080.80", "notation": null}
nlprog_det-setting-0078517
A 18-month warranty starts on July 28, 2027. On what date does it end? One way, in code: ```python from datetime import date start = date(2027, 7, 28) months = 18 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` The printout...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "2029-01-28", "printed": "2029-01-28", "notation": null}
nlprog_det-setting-0078518
A clerk's office charges $405 for each filing. Reza submits 13 filings. What is the total fee? Python version: ```python fee = 405 filings = 13 total = fee * filings print(total) ``` stdout: 5265 The total fee is $5,265.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "5265", "printed": "5265", "notation": null}
nlprog_det-setting-0078519
Divide 79 items among 4 groups as evenly as possible with equal groups. How many per group, and how many remain? One way, in code: ```python total = 79 groups = 4 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Shell output: 19 each, 3 left over The answer: 19 each, ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "19 each, 3 left over", "printed": "19 each, 3 left over", "notation": null}
nlprog_det-setting-0078520
<|start|><|user|> Counting the first and last day, how many days are there from August 8, 2019 through August 19, 2019?<|eot|> <|assistant|> ```python from datetime import date first = date(2019, 8, 8) # datetime.date(2019, 8, 8) last = date(2019, 8, 19) # datetime.date(2019, 8, 19) days = (last - first).days + 1 # ...
chat
[ { "role": "user", "content": "Counting the first and last day, how many days are there from August 8, 2019 through August 19, 2019?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2019, 8, 8) # datetime.date(2019, 8, 8)\nlast = date(2019, 8, 19) # date...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0078522
A penalty of $250 a day accrues, capped at $1,000. What is owed after 41 days? We write it as a program: ```python per_day = 250 days = 41 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` Printed: 1000 $1,000 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0078524
A recipe for 4 people uses 200 grams of flour. How many grams are needed for 3 people? Written as code: ```python grams = 200 serves = 4 needed_for = 3 scaled = grams * needed_for // serves # 150 print(scaled) ``` On running, it outputs 150. 150 grams of flour are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0078525
Meals are $74 per day and lodging $110 per night. What is the allowance for 3 days and 2 nights? ```python days = 3 meal_rate = 74 lodging_rate = 110 nights = days - 1 # 2 total = days * meal_rate + nights * lodging_rate # 442 print(total) ``` (Console output: 442) That comes to $442.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "442", "printed": "442", "notation": null}
nlprog_det-setting-0078526
Fixed costs are $6,000. Each unit sells for $20 and costs $16 to make. How many units must be sold to break even? We write it as a program: ```python import math fixed = 6000 price = 20 variable = 16 units = math.ceil(fixed / (price - variable)) # 1500 print(units) ``` When run, it prints 1500, as expected. 1500 uni...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0078527
<|start|><|user|> Of a $8,000 budget, $4,400 has been spent. What percent is that?<|eot|> <|assistant|> ```python budget = 8000 spent = 4400 percent = spent / budget * 100 print(round(percent, 1)) ``` Output: 55.0 55.0% has been spent.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Of a $8,000 budget, $4,400 has been spent. What percent is that?" }, { "role": "assistant", "content": "```python\nbudget = 8000\nspent = 4400\npercent = spent / budget * 100\nprint(round(percent, 1))\n```\nOutput: 55.0\n\n55.0% has been spent." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "55.0", "printed": "55.0", "notation": null}
nlprog_det-setting-0078528
230 files go into boxes of 40. How many boxes does that take? ```python import math files = 230 per_box = 40 boxes = math.ceil(files / per_box) print(boxes) ``` When run, it prints 6, as expected. 6 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0078529
<|start|><|system|> Avoid unnecessary detail.<|eot|> <|user|> A measure needs at least 60% of 277 votes. How many votes is that, rounded up?<|eot|> <|assistant|> At least 167 votes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Avoid unnecessary detail." }, { "role": "user", "content": "A measure needs at least 60% of 277 votes. How many votes is that, rounded up?" }, { "role": "assistant", "content": "At least 167 votes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
48
{"gold": "167", "printed": "167", "notation": null}
nlprog_det-setting-0078530
<|start|><|user|> A hearing is set for January 25, 2030. What day of the week is that?<|eot|> <|assistant|> ```python from datetime import date hearing = date(2030, 1, 25) # datetime.date(2030, 1, 25) print(hearing.strftime("%A")) ``` (Run result: Friday) It is a Friday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hearing is set for January 25, 2030. What day of the week is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(2030, 1, 25) # datetime.date(2030, 1, 25)\nprint(hearing.strftime(\"%A\"))\n```\n(Run result: Friday)\n\...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "Friday", "printed": "Friday", "notation": null}
nlprog_det-setting-0078531
At a 4% tax rate, what is the tax on $656.17? Computing it: ```python price = 656.17 tax_rate = 4 / 100 # 0.04 tax = price * tax_rate # 26.2468 print(f"{tax:.2f}") ``` Out: 26.25 $26.25 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "26.25", "printed": "26.25", "notation": null}
nlprog_det-setting-0078533
How many meters are in 54.1 kilometers? 54,100 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
20
{"gold": "54100", "printed": "54100", "notation": null}
nlprog_det-setting-0078534
A clerk's office charges $45 for each filing. Ada submits 15 filings. What is the total fee? Here's the code. ```python fee = 45 filings = 15 total = fee * filings # 675 print(total) ``` Python prints 675. $675 in filing fees.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "675", "printed": "675", "notation": null}
nlprog_det-setting-0078535
<|start|><|user|> Shipping costs $5 plus $1.50 per pound. What does a 12-pound parcel cost to ship?<|eot|> <|assistant|> base = 5 per_pound = 1.5 weight = 12 cost = base + per_pound * weight # 23.0 print(f"{cost:.2f}") The program prints: 23.00 Shipping costs $23.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Shipping costs $5 plus $1.50 per pound. What does a 12-pound parcel cost to ship?" }, { "role": "assistant", "content": " base = 5\n per_pound = 1.5\n weight = 12\n cost = base + per_pound * weight # 23.0\n print(f\"{cost:.2f}\")\nThe program prints:...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "23.00", "printed": "23.00", "notation": null}
nlprog_det-setting-0078536
3 clients win $72,000. The lawyer takes 25%, and the rest is split equally. How much does each client get? Coded up: ```python award = 72000 fee = award * 25 / 100 # 18000.0 remaining = award - fee # 54000.0 per_client = remaining / 3 # 18000.0 print(f"{per_client:.2f}") ``` Running it prints 18000.00, as expected....
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "18000.00", "printed": "18000.00", "notation": null}
nlprog_det-setting-0078537
202 volunteers are split into 9 equal teams. How many are on each team, and how many are left over? As a program: ```python total = 202 groups = 9 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Run it and it prints 22 each, 4 left over. 22 each, 4 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "22 each, 4 left over", "printed": "22 each, 4 left over", "notation": null}
nlprog_det-setting-0078538
<|start|><|user|> A lease runs for 6 months at $850 per month. How much rent is paid over the whole term?<|eot|> <|assistant|> ```python monthly_rent = 850 months = 6 total = monthly_rent * months print(total) ``` Run result = 5100 The rent over the term is $5,100.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lease runs for 6 months at $850 per month. How much rent is paid over the whole term?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 850\nmonths = 6\ntotal = monthly_rent * months\nprint(total)\n```\nRun result = 5100\n\nThe rent over the term is...
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "5100", "printed": "5100", "notation": null}
nlprog_det-setting-0078539
After an initial $2,000, the remainder of a $30,000 grant is paid in 3 equal parts. What is each part? Each installment is $9,333.33.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "9333.33", "printed": "9333.33", "notation": null}
nlprog_det-setting-0078540
<|start|><|system|> You are a math tutor.<|eot|> <|user|> One can of paint covers 350 square feet. How many cans are needed for 754 square feet of wall?<|eot|> <|assistant|> ```python import math area = 754 coverage = 350 cans = math.ceil(area / coverage) # 3 print(cans) ``` The code prints: 3 3 cans are needed.<|eot...
chat
[ { "role": "system", "content": "You are a math tutor." }, { "role": "user", "content": "One can of paint covers 350 square feet. How many cans are needed for 754 square feet of wall?" }, { "role": "assistant", "content": "```python\nimport math\narea = 754\ncoverage = 350\ncans = mat...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0078541
<|start|><|user|> Hana was born on December 28, 1985. How old is Hana on April 27, 2020?<|eot|> <|assistant|> ```python from datetime import date born = date(1985, 12, 28) # datetime.date(1985, 12, 28) on = date(2020, 4, 27) # datetime.date(2020, 4, 27) age = on.year - born.year - ((on.month, on.day) < (born.month, b...
chat
[ { "role": "user", "content": "Hana was born on December 28, 1985. How old is Hana on April 27, 2020?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1985, 12, 28) # datetime.date(1985, 12, 28)\non = date(2020, 4, 27) # datetime.date(2020, 4, 27)\nage = ...
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "34", "printed": "34", "notation": null}
nlprog_det-setting-0078542
<|start|><|user|> What is a 20% tip on a $139.09 bill?<|eot|> <|assistant|> ```python bill = 139.09 tip_rate = 20 / 100 # 0.2 tip = bill * tip_rate # 27.818 print(f"{tip:.2f}") ``` The interpreter prints: 27.82 Leave $27.82.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is a 20% tip on a $139.09 bill?" }, { "role": "assistant", "content": "```python\nbill = 139.09\ntip_rate = 20 / 100 # 0.2\ntip = bill * tip_rate # 27.818\nprint(f\"{tip:.2f}\")\n```\nThe interpreter prints: 27.82\n\nLeave $27.82." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "27.82", "printed": "27.82", "notation": null}
nlprog_det-setting-0078543
<|start|><|user|> Starting from $8,000, the team spends $3,311, $894. What remains?<|eot|> <|assistant|> The remaining budget is $3,795.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting from $8,000, the team spends $3,311, $894. What remains?" }, { "role": "assistant", "content": "The remaining budget is $3,795." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "3795", "printed": "3795", "notation": null}
nlprog_det-setting-0078544
How many of 203 votes make 60% (round up)? At least 122 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
25
{"gold": "122", "printed": "122", "notation": null}
nlprog_det-setting-0078545
<|start|><|user|> 7 hours of work at $410 an hour: what is the total charge?<|eot|> <|assistant|> ```python hours = 7 rate = 410 bill = hours * rate # 2870 print(f"{bill:.2f}") ``` Result: 2870.00 That comes to $2,870.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "7 hours of work at $410 an hour: what is the total charge?" }, { "role": "assistant", "content": "```python\nhours = 7\nrate = 410\nbill = hours * rate # 2870\nprint(f\"{bill:.2f}\")\n```\nResult:\n2870.00\n\nThat comes to $2,870.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "2870.00", "printed": "2870.00", "notation": null}
nlprog_det-setting-0078546
<|start|><|user|> Revenue is $38,500 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|> <|assistant|> ```python revenue = 38500 costs = 36000 profit = revenue - costs # 2500 margin = profit / revenue * 100 # 6.493506493506493 print(round(margin, 1)) ``` Printed: 6.5 Profit...
chat
[ { "role": "user", "content": "Revenue is $38,500 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?" }, { "role": "assistant", "content": "```python\nrevenue = 38500\ncosts = 36000\nprofit = revenue - costs # 2500\nmargin = profit / revenue * 100 # 6.493506...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "6.5", "printed": "6.5", "notation": null}
nlprog_det-setting-0078548
An attorney bills 1.5 hours at $350 per hour. What is the bill? A short script: ```python hours = 1.5 rate = 350 bill = hours * rate # 525.0 print(f"{bill:.2f}") ``` Run result = 525.00 That comes to $525.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "525.00", "printed": "525.00", "notation": null}
nlprog_det-setting-0078549
Attendance was 42 out of 80. Express it as a percent. The computation: ```python present = 42 total = 80 percent = present / total * 100 print(round(percent, 1)) ``` The script prints: 52.5 52.5% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "52.5", "printed": "52.5", "notation": null}
nlprog_det-setting-0078550
<|start|><|user|> A lease runs for 12 months at $2,100 per month. How much rent is paid over the whole term?<|eot|> <|assistant|> ```python monthly_rent = 2100 months = 12 total = monthly_rent * months print(total) ``` Shell output: 25200 The rent over the term is $25,200.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lease runs for 12 months at $2,100 per month. How much rent is paid over the whole term?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 2100\nmonths = 12\ntotal = monthly_rent * months\nprint(total)\n```\nShell output: 25200\n\nThe rent over the ...
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "25200", "printed": "25200", "notation": null}
nlprog_det-setting-0078551
How many of 246 votes make 75% (round up)? Python, step by step: ```python import math voters = 246 needed = math.ceil(voters * 75 / 100) # 185 print(needed) ``` It prints 185. 185 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "185", "printed": "185", "notation": null}
nlprog_det-setting-0078552
5 bike rides at 350 calories each burn how many calories in total? As Python: ```python per_session = 350 sessions = 5 total = per_session * sessions # 1750 print(total) ``` Output = 1750 1750 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "1750", "printed": "1750", "notation": null}
nlprog_det-setting-0078553
<|start|><|user|> A meal costs $77.40. How much is a 20% tip?<|eot|> <|assistant|> bill = 77.4 tip_rate = 20 / 100 # 0.2 tip = bill * tip_rate # 15.480000000000002 print(f"{tip:.2f}") The script prints 15.48. The tip is $15.48.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A meal costs $77.40. How much is a 20% tip?" }, { "role": "assistant", "content": " bill = 77.4\n tip_rate = 20 / 100 # 0.2\n tip = bill * tip_rate # 15.480000000000002\n print(f\"{tip:.2f}\")\nThe script prints 15.48.\n\nThe tip is $15.48." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "15.48", "printed": "15.48", "notation": null}
nlprog_det-setting-0078554
Split $672 between Omar and Nikhil in the ratio 3 to 5. What is Omar's share? Python version: ```python total = 672 parts_a = 3 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 252 print(share_a) ``` Run output — 252 Omar's share is $252.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "252", "printed": "252", "notation": null}
nlprog_det-setting-0078555
<|start|><|user|> Rent of $1,800 goes up 3%. What is the new rent?<|eot|> <|assistant|> ```python rent = 1800 increase = 3 / 100 # 0.03 new_rent = rent * (1 + increase) # 1854.0 print(f"{new_rent:.2f}") ``` Out — 1854.00 It rises to $1,854.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rent of $1,800 goes up 3%. What is the new rent?" }, { "role": "assistant", "content": "```python\nrent = 1800\nincrease = 3 / 100 # 0.03\nnew_rent = rent * (1 + increase) # 1854.0\nprint(f\"{new_rent:.2f}\")\n```\nOut — 1854.00\n\nIt rises to $1,854.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "1854.00", "printed": "1854.00", "notation": null}
nlprog_det-setting-0078556
A count moves from 500 to 525. By what percent did it change (use a minus sign for a drop)? Set it up in Python: ```python old = 500 new = 525 change = (new - old) / old * 100 # 5.0 print(round(change)) ``` Run output: 5 It changed by 5%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0078557
At $30.90 an hour, what does 24 hours of work pay? Python: ```python rate = 30.9 hours = 24 earnings = rate * hours # 741.5999999999999 print(f"{earnings:.2f}") ``` Executed, it shows: 741.60 The pay is $741.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "741.60", "printed": "741.60", "notation": null}
nlprog_det-setting-0078558
<|start|><|user|> How many of 56 members form a majority (more than half)?<|eot|> <|assistant|> members = 56 majority = members // 2 + 1 # 29 print(majority) # output: 29 That is 29 members.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 56 members form a majority (more than half)?" }, { "role": "assistant", "content": " members = 56\n majority = members // 2 + 1 # 29\n print(majority)\n# output: 29\n\nThat is 29 members." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
58
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0078559
8 claimants share a $520 settlement equally. What is each share? Python does the arithmetic: ```python settlement = 520 parties = 8 share = settlement // parties # 65 print(share) ``` (Program output: 65) Each share is $65.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "65", "printed": "65", "notation": null}
nlprog_det-setting-0078560
A 7-day trip pays $64 a day for meals and $140 a night for lodging (6 nights). What is the total allowance? The program: ```python days = 7 meal_rate = 64 lodging_rate = 140 nights = days - 1 # 6 total = days * meal_rate + nights * lodging_rate # 1288 print(total) ``` Executed, it shows: 1288 The allowance is $1,28...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "1288", "printed": "1288", "notation": null}
nlprog_det-setting-0078561
Papers were served by mail on August 25, 2028. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date? The response is due on September 11, 2028.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "2028-09-11", "printed": "2028-09-11", "notation": null}
nlprog_det-setting-0078562
A claim accrued on September 28, 2023. The limitations period is 3 years. On what date does it expire? In code: ```python from datetime import date accrued = date(2023, 9, 28) years = 3 expires = accrued.replace(year=accrued.year + years) print(expires.isoformat()) ``` # run result: 2026-09-28 The period expires on S...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "2026-09-28", "printed": "2026-09-28", "notation": null}
nlprog_det-setting-0078564
Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 44 hours? Here is a short program for it. ```python rate = 20.0 hours = 44 regular = 40 * rate # 800.0 overtime = (hours - 40) * rate * 1.5 # 120.0 pay = regular + overtime # 920.0 print(f"{pay:.2f}") ``` Execution result — 920.0...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "920.00", "printed": "920.00", "notation": null}
nlprog_det-setting-0078565
<|start|><|user|> Revenue is $24,000 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|> <|assistant|> ```python revenue = 24000 costs = 20000 profit = revenue - costs # 4000 margin = profit / revenue * 100 # 16.666666666666664 print(round(margin, 1)) ``` What it prints: 16....
chat
[ { "role": "user", "content": "Revenue is $24,000 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?" }, { "role": "assistant", "content": "```python\nrevenue = 24000\ncosts = 20000\nprofit = revenue - costs # 4000\nmargin = profit / revenue * 100 # 16.66666...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "16.7", "printed": "16.7", "notation": null}
nlprog_det-setting-0078566
Fixed costs are $6,000. Each unit sells for $15 and costs $7 to make. How many units must be sold to break even? Break-even is 750 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0078568
Under a 25% contingency agreement, what fee is owed on a $40,000 award? A few lines of Python do it: ```python recovery = 40000 rate = 25 / 100 # 0.25 fee = recovery * rate # 10000.0 print(f"{fee:.2f}") ``` What it prints — 10000.00 The fee is $10,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "10000.00", "printed": "10000.00", "notation": null}
nlprog_det-setting-0078569
<|start|><|user|> What is a 10% tip on a $76.19 bill?<|eot|> <|assistant|> ```python bill = 76.19 tip_rate = 10 / 100 # 0.1 tip = bill * tip_rate # 7.619 print(f"{tip:.2f}") ``` Interpreter output — 7.62 The tip is $7.62.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is a 10% tip on a $76.19 bill?" }, { "role": "assistant", "content": "```python\nbill = 76.19\ntip_rate = 10 / 100 # 0.1\ntip = bill * tip_rate # 7.619\nprint(f\"{tip:.2f}\")\n```\nInterpreter output — 7.62\n\nThe tip is $7.62." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "7.62", "printed": "7.62", "notation": null}
nlprog_det-setting-0078570
<|start|><|user|> 3 clients win $48,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> award = 48000 fee = award * 40 / 100 # 19200.0 remaining = award - fee # 28800.0 per_client = remaining / 3 # 9600.0 print(f"{per_client:.2f}") # progr...
chat
[ { "role": "user", "content": "3 clients win $48,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": " award = 48000\n fee = award * 40 / 100 # 19200.0\n remaining = award - fee # 28800.0\n per_client = remai...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "9600.00", "printed": "9600.00", "notation": null}
nlprog_det-setting-0078571
Elena has 3 documents to file, and each filing costs $150. How much are the filing fees in total? As Python: ```python fee = 150 filings = 3 total = fee * filings print(total) ``` The program prints 450. The total fee is $450.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "450", "printed": "450", "notation": null}
nlprog_det-setting-0078572
<|start|><|system|> Tool definitions: [{"name": "interpreter", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> A court charges $15 per reques...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"interpreter\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"co...
nlprog_det
setting
original
null
deterministic
[]
[]
248
{"gold": "42.50", "printed": "42.50", "notation": null}
nlprog_det-setting-0078573
<|start|><|system|> Answer in plain English.<|eot|> <|user|> $5,000 is invested at 5% compounded yearly. What is it worth after 3 years?<|eot|> <|assistant|> principal = 5000 rate = 5 / 100 # 0.05 years = 3 value = principal * (1 + rate) ** years # 5788.125000000001 print(f"{value:.2f}") The scrip...
chat
[ { "role": "system", "content": "Answer in plain English." }, { "role": "user", "content": "$5,000 is invested at 5% compounded yearly. What is it worth after 3 years?" }, { "role": "assistant", "content": " principal = 5000\n rate = 5 / 100 # 0.05\n years = 3\n value = p...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "5788.13", "printed": "5788.13", "notation": null}
nlprog_det-setting-0078574
A $2,400 loan carries 6% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment? We write it as a program: ```python principal = 2400 annual_rate = 6 / 100 # 0.06 months = 24 interest = principal * annual_rate * months / 12 # 288.0 payment = (principa...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "112.00", "printed": "112.00", "notation": null}
nlprog_det-setting-0078575
Straight-line depreciation: cost $45,000, salvage $6,000, 5 years. How much per year? Let's compute it with Python. ```python cost = 45000 salvage = 6000 years = 5 per_year = (cost - salvage) / years # 7800.0 print(f"{per_year:.2f}") ``` Running it prints 7800.00, as expected. Depreciation is $7,800.00 per year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "7800.00", "printed": "7800.00", "notation": null}
nlprog_det-setting-0078576
<|start|><|user|> Someone works 24 hours at $27.98 per hour. What are the earnings?<|eot|> <|assistant|> ```python rate = 27.98 hours = 24 earnings = rate * hours # 671.52 print(f"{earnings:.2f}") ``` It prints 671.52, as expected. The pay is $671.52.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Someone works 24 hours at $27.98 per hour. What are the earnings?" }, { "role": "assistant", "content": "```python\nrate = 27.98\nhours = 24\nearnings = rate * hours # 671.52\nprint(f\"{earnings:.2f}\")\n```\nIt prints 671.52, as expected.\n\nThe pay is $671.52." ...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "671.52", "printed": "671.52", "notation": null}
nlprog_det-setting-0078577
How many weekdays (Monday to Friday) fall after August 8, 2025 up to and including August 21, 2025? Written as code: ```python from datetime import date, timedelta start = date(2025, 8, 8) end = date(2025, 8, 21) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() < 5: ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
157
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0078578
At 1% a month (simple), what interest builds on $4,000 over 2 months? Python does the arithmetic: ```python balance = 4000 monthly_rate = 1 / 100 # 0.01 months = 2 interest = balance * monthly_rate * months # 80.0 print(f"{interest:.2f}") ``` Execution prints 80.00, as expected. $80.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "80.00", "printed": "80.00", "notation": null}
nlprog_det-setting-0078580
<|start|><|user|> Counting only Monday through Friday, how many business days are there after March 23, 2020 through April 13, 2020?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2020, 3, 23) end = date(2020, 4, 13) count = 0 for k in range(1, (end - start).days + 1): if (start + ...
chat
[ { "role": "user", "content": "Counting only Monday through Friday, how many business days are there after March 23, 2020 through April 13, 2020?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2020, 3, 23)\nend = date(2020, 4, 13)\ncount = 0\n...
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0078581
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "calculator", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|u...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"calculator\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python ...
nlprog_det
setting
original
null
deterministic
[]
[]
252
{"gold": "105.00", "printed": "105.00", "notation": null}
nlprog_det-setting-0078582
<|start|><|system|> Tools you may use: [{"name": "math_engine", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> A 3-day trip pays $59 a day fo...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"math_engine\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"sour...
nlprog_det
setting
original
null
deterministic
[]
[]
244
{"gold": "457", "printed": "457", "notation": null}
nlprog_det-setting-0078583
<|start|><|user|> How many of 193 votes make 67% (round up)?<|eot|> <|assistant|> 130 votes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 193 votes make 67% (round up)?" }, { "role": "assistant", "content": "130 votes are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "130", "printed": "130", "notation": null}
nlprog_det-setting-0078584
<|start|><|user|> A customer buys 3 chairs at $21 each, 1 clipboards at $28 each and pays with $100. How much change is due?<|eot|> <|assistant|> ```python items = [(3, 21), (1, 28)] total = sum(q * p for q, p in items) # 91 paid = 100 change = paid - total # 9 print(change) ``` stdout: 9 The change is $9.<|eot|> <|...
chat
[ { "role": "user", "content": "A customer buys 3 chairs at $21 each, 1 clipboards at $28 each and pays with $100. How much change is due?" }, { "role": "assistant", "content": "```python\nitems = [(3, 21), (1, 28)]\ntotal = sum(q * p for q, p in items) # 91\npaid = 100\nchange = paid - total # ...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0078585
A $240 dinner bill gets a 20% tip, and 4 people share the cost equally. What is each person's share? In code: ```python bill = 240 tip_rate = 20 / 100 # 0.2 people = 4 each = bill * (1 + tip_rate) / people # 72.0 print(f"{each:.2f}") ``` Program output: 72.00 Each person pays $72.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "72.00", "printed": "72.00", "notation": null}
nlprog_det-setting-0078586
A hearing is set for May 4, 2002. What day of the week is that? In code: ```python from datetime import date hearing = date(2002, 5, 4) print(hearing.strftime("%A")) ``` The printout reads: Saturday May 4, 2002 is a Saturday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "Saturday", "printed": "Saturday", "notation": null}
nlprog_det-setting-0078587
<|start|><|user|> What does $1,000 grow to in 3 years at 2% annual compounding?<|eot|> <|assistant|> ```python principal = 1000 rate = 2 / 100 # 0.02 years = 3 value = principal * (1 + rate) ** years # 1061.208 print(f"{value:.2f}") ``` Result = 1061.21 The balance is $1,061.21.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What does $1,000 grow to in 3 years at 2% annual compounding?" }, { "role": "assistant", "content": "```python\nprincipal = 1000\nrate = 2 / 100 # 0.02\nyears = 3\nvalue = principal * (1 + rate) ** years # 1061.208\nprint(f\"{value:.2f}\")\n```\nResult = 1061.21\n...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "1061.21", "printed": "1061.21", "notation": null}
nlprog_det-setting-0078589
One can of paint covers 300 square feet. How many cans are needed for 638 square feet of wall? A few lines of Python do it: ```python import math area = 638 coverage = 300 cans = math.ceil(area / coverage) # 3 print(cans) ``` Python prints: 3 3 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0078590
What is the total rent on a 6-month lease at $1,475 a month? ```python monthly_rent = 1475 months = 6 total = monthly_rent * months # 8850 print(total) ``` (Program output: 8850) The rent over the term is $8,850.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "8850", "printed": "8850", "notation": null}
nlprog_det-setting-0078591
<|start|><|system|> Tool definitions: [{"name": "code_runner", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> 4 friends split a $180 bill plus a 1...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"code_runner\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}...
nlprog_det
setting
original
null
deterministic
[]
[]
229
{"gold": "53.10", "printed": "53.10", "notation": null}
nlprog_det-setting-0078592
Convert 20 °C to Fahrenheit. It equals 68 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "68", "printed": "68", "notation": null}
nlprog_det-setting-0078593
<|start|><|user|> An invoice lists 30 ink cartridges at $9 each, plus 10% sales tax. What is the invoice total?<|eot|> <|assistant|> ```python quantity = 30 unit_price = 9 subtotal = quantity * unit_price total = subtotal * (1 + 10 / 100) print(f"{total:.2f}") ``` Console output — 297.00 The invoice total is $297.00.<...
chat
[ { "role": "user", "content": "An invoice lists 30 ink cartridges at $9 each, plus 10% sales tax. What is the invoice total?" }, { "role": "assistant", "content": "```python\nquantity = 30\nunit_price = 9\nsubtotal = quantity * unit_price\ntotal = subtotal * (1 + 10 / 100)\nprint(f\"{total:.2f}\"...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "297.00", "printed": "297.00", "notation": null}
nlprog_det-setting-0078594
<|start|><|system|> Available functions (JSON Schema): {"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}} {"name": "compute", "description": "Run Python code in a sandbox; the result is whatever the...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}\n{\"name\": \"compute\", \"description\":...
nlprog_det
setting
original
null
deterministic
[]
[]
269
{"gold": "65400", "printed": "65400", "notation": null}
nlprog_det-setting-0078595
<|start|><|system|> Be concise.<|eot|> <|user|> A service costs $9 a month or $96 a year. How much does the yearly plan save over 12 monthly payments?<|eot|> <|assistant|> ```python monthly = 9 yearly = 96 savings = monthly * 12 - yearly # 12 print(savings) ``` Console: 12 $12 is saved.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "A service costs $9 a month or $96 a year. How much does the yearly plan save over 12 monthly payments?" }, { "role": "assistant", "content": "```python\nmonthly = 9\nyearly = 96\nsavings = monthly * 12 - ye...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0078596
<|start|><|system|> You are a patient tutor.<|eot|> <|user|> 40 notebooks cost $6 apiece. With 10% tax added, what is the total?<|eot|> <|assistant|> ```python quantity = 40 unit_price = 6 subtotal = quantity * unit_price # 240 total = subtotal * (1 + 10 / 100) # 264.0 print(f"{total:.2f}") ``` Result = 264.00 The i...
chat
[ { "role": "system", "content": "You are a patient tutor." }, { "role": "user", "content": "40 notebooks cost $6 apiece. With 10% tax added, what is the total?" }, { "role": "assistant", "content": "```python\nquantity = 40\nunit_price = 6\nsubtotal = quantity * unit_price # 240\ntot...
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "264.00", "printed": "264.00", "notation": null}
nlprog_det-setting-0078597
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> Of a $4,000 budget, $3,700 has been spent. What percent is that?<|eot|> <|assistant|> ```python budget = 4000 spent = 3700 percent = spent / budget * 100 print(round(percent, 1)) ``` stdout — 92.5 That is 92.5% of the budget.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "Of a $4,000 budget, $3,700 has been spent. What percent is that?" }, { "role": "assistant", "content": "```python\nbudget = 4000\nspent = 3700\npercent = spent / budget * 100\nprint(round(p...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "92.5", "printed": "92.5", "notation": null}
nlprog_det-setting-0078598
A hall has 8 rows of 10 seats, and 16 seats are empty. How many people are seated? In code: ```python rows = 8 per_row = 10 empty = 16 seated = rows * per_row - empty # 64 print(seated) ``` Python prints 64, as expected. 64 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "64", "printed": "64", "notation": null}
nlprog_det-setting-0078599
Equal monthly payments repay $9,000 plus 8% simple yearly interest over 24 months. How large is a payment? Set it up in Python: ```python principal = 9000 annual_rate = 8 / 100 # 0.08 months = 24 interest = principal * annual_rate * months / 12 # 1440.0 payment = (principal + interest) / months # 435.0 print(f"{pay...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "435.00", "printed": "435.00", "notation": null}