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-0080001
How many weekdays (Monday to Friday) fall after October 25, 2020 up to and including November 16, 2020? ```python from datetime import date, timedelta start = date(2020, 10, 25) end = date(2020, 11, 16) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() < 5: count...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0080002
At 1% a month (simple), what interest builds on $12,000 over 6 months? Computation in Python: balance = 12000 monthly_rate = 1 / 100 # 0.01 months = 6 interest = balance * monthly_rate * months # 720.0 print(f"{interest:.2f}") Execution prints: 720.00 The interest is $720.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "720.00", "printed": "720.00", "notation": null}
nlprog_det-setting-0080003
On which weekday does September 6, 2001 fall? Here is a short program for it. ```python from datetime import date hearing = date(2001, 9, 6) # datetime.date(2001, 9, 6) print(hearing.strftime("%A")) ``` # program output: Thursday September 6, 2001 is a Thursday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "Thursday", "printed": "Thursday", "notation": null}
nlprog_det-setting-0080005
How many of 104 votes make 60% (round up)? Computing it: ```python import math voters = 104 needed = math.ceil(voters * 60 / 100) # 63 print(needed) ``` # out: 63 At least 63 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "63", "printed": "63", "notation": null}
nlprog_det-setting-0080006
6 swims at 300 calories each burn how many calories in total? ```python per_session = 300 sessions = 6 total = per_session * sessions # 1800 print(total) ``` Output of the run — 1800 That burns 1800 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "1800", "printed": "1800", "notation": null}
nlprog_det-setting-0080007
Water costs $20 a month plus $4.75 for each 1,000 gallons over 2,000. What is owed for 5,000 gallons? We can compute it in Python. base = 20 rate = 4.75 used = 5 free = 2 bill = base + rate * max(0, used - free) print(f"{bill:.2f}") Python prints 34.25. $34.25 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "34.25", "printed": "34.25", "notation": null}
nlprog_det-setting-0080008
<|start|><|user|> Each storage box holds 40 files. How many boxes are needed for 380 files?<|eot|> <|assistant|> ```python import math files = 380 per_box = 40 boxes = math.ceil(files / per_box) # 10 print(boxes) ``` Run result = 10 10 boxes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each storage box holds 40 files. How many boxes are needed for 380 files?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 380\nper_box = 40\nboxes = math.ceil(files / per_box) # 10\nprint(boxes)\n```\nRun result = 10\n\n10 boxes are needed." ...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0080009
A library charges $0.50 per book per day late. What is the fine for 3 books that are 19 days late? ```python per_day = 0.5 days_late = 19 books = 3 fine = per_day * days_late * books # 28.5 print(f"{fine:.2f}") ``` Interpreter output — 28.50 $28.50 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "28.50", "printed": "28.50", "notation": null}
nlprog_det-setting-0080010
Emeka earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 44-hour week? We can compute it in Python. ```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}") ``` Running it prints: 920...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "920.00", "printed": "920.00", "notation": null}
nlprog_det-setting-0080011
To read 396 pages in 9 days, how many pages per day are needed? In Python: ```python pages = 396 days = 9 per_day = pages // days # 44 print(per_day) ``` Python prints 44. That is 44 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "44", "printed": "44", "notation": null}
nlprog_det-setting-0080012
<|start|><|user|> With 20% off, what does a $90 desk lamp cost?<|eot|> <|assistant|> ```python price = 90 discount = 20 / 100 # 0.2 sale_price = price * (1 - discount) # 72.0 print(f"{sale_price:.2f}") ``` (Out: 72.00) It costs $72.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 20% off, what does a $90 desk lamp cost?" }, { "role": "assistant", "content": "```python\nprice = 90\ndiscount = 20 / 100 # 0.2\nsale_price = price * (1 - discount) # 72.0\nprint(f\"{sale_price:.2f}\")\n```\n(Out: 72.00)\n\nIt costs $72.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "72.00", "printed": "72.00", "notation": null}
nlprog_det-setting-0080013
Emeka's scores were 58, 66, 99 and 81. What is the average score? Translated to Python: scores = [58, 66, 99, 81] average = sum(scores) // len(scores) # 76 print(average) (Program output: 76) The average score is 76.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "76", "printed": "76", "notation": null}
nlprog_det-setting-0080014
How much is a $74 daily meal allowance over 4 days? ```python days = 4 meal_rate = 74 total = days * meal_rate # 296 print(total) ``` # output: 296 That comes to $296.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "296", "printed": "296", "notation": null}
nlprog_det-setting-0080015
A hall has 27 rows of 22 seats, and 36 seats are empty. How many people are seated? The computation: ```python rows = 27 per_row = 22 empty = 36 seated = rows * per_row - empty print(seated) ``` (Program output: 558) 558 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "558", "printed": "558", "notation": null}
nlprog_det-setting-0080016
A measure needs at least 67% of 16 votes. How many votes is that, rounded up? As a program: ```python import math voters = 16 needed = math.ceil(voters * 67 / 100) print(needed) ``` Printed: 11 11 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0080017
A lawyer's fee is 40% of a $40,000 recovery. How large is the fee? Code: ```python recovery = 40000 rate = 40 / 100 # 0.4 fee = recovery * rate # 16000.0 print(f"{fee:.2f}") ``` # console output: 16000.00 The fee is $16,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "16000.00", "printed": "16000.00", "notation": null}
nlprog_det-setting-0080018
Printing costs 5 cents a page. What does it cost to print 149 copies of a 20-page handout? The job costs $149.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "149.00", "printed": "149.00", "notation": null}
nlprog_det-setting-0080019
<|start|><|user|> A meal costs $199.57. How much is a 18% tip?<|eot|> <|assistant|> ```python bill = 199.57 tip_rate = 18 / 100 # 0.18 tip = bill * tip_rate # 35.922599999999996 print(f"{tip:.2f}") ``` (Program output: 35.92) The tip is $35.92.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A meal costs $199.57. How much is a 18% tip?" }, { "role": "assistant", "content": "```python\nbill = 199.57\ntip_rate = 18 / 100 # 0.18\ntip = bill * tip_rate # 35.922599999999996\nprint(f\"{tip:.2f}\")\n```\n(Program output: 35.92)\n\nThe tip is $35.92." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "35.92", "printed": "35.92", "notation": null}
nlprog_det-setting-0080020
Copies cost $5 plus $0.50 for each page beyond 20. How much for 45 pages? Here is a short program for it. ```python pages = 45 base = 5 per_page = 0.5 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 17.5 print(f"{cost:.2f}") ``` Out — 17.50 The copy costs $17.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "17.50", "printed": "17.50", "notation": null}
nlprog_det-setting-0080021
Starting from $20,000, the team spends $356, $3,908, $2,928, $1,912. What remains? Python does the arithmetic: ```python budget = 20000 expenses = [356, 3908, 2928, 1912] left = budget - sum(expenses) # 10896 print(left) ``` On running, it outputs 10896. The remaining budget is $10,896.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "10896", "printed": "10896", "notation": null}
nlprog_det-setting-0080022
<|start|><|user|> Revenue is $16,500 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)?<|eot|> <|assistant|> Profit is 24.2% of revenue.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Revenue is $16,500 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)?" }, { "role": "assistant", "content": "Profit is 24.2% of revenue." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
48
{"gold": "24.2", "printed": "24.2", "notation": null}
nlprog_det-setting-0080023
<|start|><|user|> Goran earns a 8% commission on $29,304 of sales. What is the commission?<|eot|> <|assistant|> ```python sales = 29304 rate = 8 / 100 commission = sales * rate print(f"{commission:.2f}") ``` # out: 2344.32 The commission is $2,344.32.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Goran earns a 8% commission on $29,304 of sales. What is the commission?" }, { "role": "assistant", "content": "```python\nsales = 29304\nrate = 8 / 100\ncommission = sales * rate\nprint(f\"{commission:.2f}\")\n```\n# out: 2344.32\n\nThe commission is $2,344.32." ...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "2344.32", "printed": "2344.32", "notation": null}
nlprog_det-setting-0080024
Starting with 1221 scissors and using 27 per day, how many remain after 11 days? Python, step by step: ```python stock = 1221 per_day = 27 days = 11 left = stock - per_day * days # 924 print(left) ``` Console: 924 924 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "924", "printed": "924", "notation": null}
nlprog_det-setting-0080026
<|start|><|system|> Functions: [{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "python_exec", "description": "Executes Python code and retu...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"target\"]}}, {\"name\":...
nlprog_det
setting
original
null
deterministic
[]
[]
359
{"gold": "2023-07-25", "printed": "2023-07-25", "notation": null}
nlprog_det-setting-0080028
From a $5,000 retainer, 3 hours at $250/hour have been drawn. What remains? The Python version: ```python retainer = 5000 hours = 3 rate = 250 left = retainer - hours * rate # 4250 print(left) ``` What it prints — 4250 $4,250 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "4250", "printed": "4250", "notation": null}
nlprog_det-setting-0080029
<|start|><|user|> A service costs $29 a month or $318 a year. How much does the yearly plan save over 12 monthly payments?<|eot|> <|assistant|> ```python monthly = 29 yearly = 318 savings = monthly * 12 - yearly # 30 print(savings) ``` Shell output: 30 $30 is saved.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A service costs $29 a month or $318 a year. How much does the yearly plan save over 12 monthly payments?" }, { "role": "assistant", "content": "```python\nmonthly = 29\nyearly = 318\nsavings = monthly * 12 - yearly # 30\nprint(savings)\n```\nShell output: 30\n\n$30...
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0080030
<|start|><|system|> You are a teaching assistant.<|eot|> <|user|> Jae's scores were 91, 70, 59, 59 and 96. What is the average score?<|eot|> <|assistant|> ```python scores = [91, 70, 59, 59, 96] average = sum(scores) // len(scores) # 75 print(average) ``` This prints 75, as expected. The mean is 75.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a teaching assistant." }, { "role": "user", "content": "Jae's scores were 91, 70, 59, 59 and 96. What is the average score?" }, { "role": "assistant", "content": "```python\nscores = [91, 70, 59, 59, 96]\naverage = sum(scores) // len(scores) #...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "75", "printed": "75", "notation": null}
nlprog_det-setting-0080032
<|start|><|user|> What simple interest does $2,500 earn at 8% a year over 5 years?<|eot|> <|assistant|> ```python principal = 2500 rate = 8 / 100 # 0.08 years = 5 interest = principal * rate * years # 1000.0 print(f"{interest:.2f}") ``` (Printed: 1000.00) The interest is $1,000.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What simple interest does $2,500 earn at 8% a year over 5 years?" }, { "role": "assistant", "content": "```python\nprincipal = 2500\nrate = 8 / 100 # 0.08\nyears = 5\ninterest = principal * rate * years # 1000.0\nprint(f\"{interest:.2f}\")\n```\n(Printed: 1000.00)...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "1000.00", "printed": "1000.00", "notation": null}
nlprog_det-setting-0080033
A $24,000 grant pays $3,000 up front and the rest in 3 equal installments. How large is each installment? ```python grant = 24000 up_front = 3000 installments = 3 each = (grant - up_front) / installments # 7000.0 print(f"{each:.2f}") ``` Run output — 7000.00 $7,000.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "7000.00", "printed": "7000.00", "notation": null}
nlprog_det-setting-0080034
<|start|><|user|> At $29.22 an hour, what does 38 hours of work pay?<|eot|> <|assistant|> ```python rate = 29.22 hours = 38 earnings = rate * hours print(f"{earnings:.2f}") ``` stdout = 1110.36 That earns $1,110.36.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $29.22 an hour, what does 38 hours of work pay?" }, { "role": "assistant", "content": "```python\nrate = 29.22\nhours = 38\nearnings = rate * hours\nprint(f\"{earnings:.2f}\")\n```\nstdout = 1110.36\n\nThat earns $1,110.36." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "1110.36", "printed": "1110.36", "notation": null}
nlprog_det-setting-0080035
Wen buys 10 boxes of 10 folders each and gives away 3 folders. How many folders are left? Program: ```python boxes = 10 per_box = 10 given_away = 3 left = boxes * per_box - given_away print(left) ``` Running it prints 97. 97 folders are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "97", "printed": "97", "notation": null}
nlprog_det-setting-0080037
<|start|><|system|> Available functions (JSON Schema): {"name": "sandbox_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}} {"name": "translate", "descr...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"sandbox_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"r...
nlprog_det
setting
original
null
deterministic
[]
[]
342
{"gold": "690", "printed": "690", "notation": null}
nlprog_det-setting-0080038
<|start|><|system|> You are a data assistant.<|eot|> <|user|> Fines run at $250 per day up to a maximum of $2,500. How much after 60 days?<|eot|> <|assistant|> ```python per_day = 250 days = 60 cap = 2500 fine = min(per_day * days, cap) # 2500 print(fine) ``` Running it prints 2500. $2,500 is owed.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a data assistant." }, { "role": "user", "content": "Fines run at $250 per day up to a maximum of $2,500. How much after 60 days?" }, { "role": "assistant", "content": "```python\nper_day = 250\ndays = 60\ncap = 2500\nfine = min(per_day * days, ...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0080039
<|start|><|system|> Give the answer first.<|eot|> <|user|> A $210 dinner bill gets a 18% tip, and 4 people share the cost equally. What is each person's share?<|eot|> <|assistant|> ```python bill = 210 tip_rate = 18 / 100 # 0.18 people = 4 each = bill * (1 + tip_rate) / people # 61.949999999999996 print(f"{each:.2f}"...
chat
[ { "role": "system", "content": "Give the answer first." }, { "role": "user", "content": "A $210 dinner bill gets a 18% tip, and 4 people share the cost equally. What is each person's share?" }, { "role": "assistant", "content": "```python\nbill = 210\ntip_rate = 18 / 100 # 0.18\npeo...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "61.95", "printed": "61.95", "notation": null}
nlprog_det-setting-0080040
Cyrus lends $8,000 at 6% simple interest per year for 4 years. How much interest is earned? The Python version: ```python principal = 8000 rate = 6 / 100 # 0.06 years = 4 interest = principal * rate * years # 1920.0 print(f"{interest:.2f}") ``` What it prints — 1920.00 It earns $1,920.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "1920.00", "printed": "1920.00", "notation": null}
nlprog_det-setting-0080041
<|start|><|system|> Be concise.<|eot|> <|user|> Someone born November 4, 1974 turns how old by September 2, 2028? Give the age in whole years.<|eot|> <|assistant|> ```python from datetime import date born = date(1974, 11, 4) # datetime.date(1974, 11, 4) on = date(2028, 9, 2) # datetime.date(2028, 9, 2) age = on.year ...
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "Someone born November 4, 1974 turns how old by September 2, 2028? Give the age in whole years." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1974, 11, 4) # dateti...
nlprog_det
setting
original
null
deterministic
[]
[]
164
{"gold": "53", "printed": "53", "notation": null}
nlprog_det-setting-0080042
Printing costs 8 cents a page. What does it cost to print 161 copies of a 37-page handout? One way, in code: ```python pages = 37 copies = 161 cost_per_page = 0.08 cost = pages * copies * cost_per_page # 476.56 print(f"{cost:.2f}") ``` Result: 476.56 The job costs $476.56.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "476.56", "printed": "476.56", "notation": null}
nlprog_det-setting-0080043
An unpaid balance of $7,500 accrues 1.5% simple interest per month. How much interest accrues in 2 months? ```python balance = 7500 monthly_rate = 1.5 / 100 # 0.015 months = 2 interest = balance * monthly_rate * months # 225.0 print(f"{interest:.2f}") ``` Execution prints 225.00, as expected. The interest is $225.0...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "225.00", "printed": "225.00", "notation": null}
nlprog_det-setting-0080044
How many whole days and leftover hours are in 249 hours? Python, step by step: ```python hours = 249 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` (Printed: 10 days and 9 hours) 249 hours is 10 days and 9 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "10 days and 9 hours", "printed": "10 days and 9 hours", "notation": null}
nlprog_det-setting-0080045
Jonas lends $5,000 at 8% simple interest per year for 5 years. How much interest is earned? Set it up in Python: ```python principal = 5000 rate = 8 / 100 # 0.08 years = 5 interest = principal * rate * years # 2000.0 print(f"{interest:.2f}") ``` Out — 2000.00 It earns $2,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0080046
<|start|><|user|> The paralegal logged 2 hours at a rate of $180. How much is billed?<|eot|> <|assistant|> ```python hours = 2 rate = 180 bill = hours * rate # 360 print(f"{bill:.2f}") ``` Executing it gives 360.00. The bill is $360.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The paralegal logged 2 hours at a rate of $180. How much is billed?" }, { "role": "assistant", "content": "```python\nhours = 2\nrate = 180\nbill = hours * rate # 360\nprint(f\"{bill:.2f}\")\n```\nExecuting it gives 360.00.\n\nThe bill is $360.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "360.00", "printed": "360.00", "notation": null}
nlprog_det-setting-0080047
<|start|><|user|> Count the days between April 11, 2027 and April 16, 2027.<|eot|> <|assistant|> There are 5 days between the two dates.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Count the days between April 11, 2027 and April 16, 2027." }, { "role": "assistant", "content": "There are 5 days between the two dates." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0080048
228 volunteers are split into 5 equal teams. How many are on each team, and how many are left over? Here's the code. ```python total = 228 groups = 5 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Output — 45 each, 3 left over 45 each, 3 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "45 each, 3 left over", "printed": "45 each, 3 left over", "notation": null}
nlprog_det-setting-0080049
A 4 lb package ships at $5 base plus $1.20/lb. What is the charge? Here's the code. ```python base = 5 per_pound = 1.2 weight = 4 cost = base + per_pound * weight # 9.8 print(f"{cost:.2f}") ``` That prints 9.80. The charge is $9.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "9.80", "printed": "9.80", "notation": null}
nlprog_det-setting-0080050
<|start|><|user|> At $23.02 an hour, what does 20 hours of work pay?<|eot|> <|assistant|> ```python rate = 23.02 hours = 20 earnings = rate * hours # 460.4 print(f"{earnings:.2f}") ``` The interpreter prints 460.40. The pay is $460.40.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $23.02 an hour, what does 20 hours of work pay?" }, { "role": "assistant", "content": "```python\nrate = 23.02\nhours = 20\nearnings = rate * hours # 460.4\nprint(f\"{earnings:.2f}\")\n```\nThe interpreter prints 460.40.\n\nThe pay is $460.40." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "460.40", "printed": "460.40", "notation": null}
nlprog_det-setting-0080051
Joelle's scores were 72, 63, 97 and 56. What is the average score? Python does the arithmetic: ```python scores = [72, 63, 97, 56] average = sum(scores) // len(scores) # 72 print(average) ``` What it prints: 72 The average score is 72.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "72", "printed": "72", "notation": null}
nlprog_det-setting-0080052
Of a $10,000 budget, $2,600 has been spent. What percent is that? 26.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "26.0", "printed": "26.0", "notation": null}
nlprog_det-setting-0080053
At 2% a month (simple), what interest builds on $2,500 over 5 months? Let the code do the arithmetic: ```python balance = 2500 monthly_rate = 2 / 100 # 0.02 months = 5 interest = balance * monthly_rate * months # 250.0 print(f"{interest:.2f}") ``` (Run result: 250.00) The interest is $250.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "250.00", "printed": "250.00", "notation": null}
nlprog_det-setting-0080054
At 60 miles per hour, how many minutes does a 255-mile trip take? ```python distance = 255 speed = 60 minutes = distance / speed * 60 # 255.0 print(round(minutes)) ``` (Printed result: 255) 255 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "255", "printed": "255", "notation": null}
nlprog_det-setting-0080055
Buying 5 scissors at $9 each, 6 folders at $8 each, 3 keyboards at $18 each, someone hands over $150. What change comes back? Programmatically: ```python items = [(5, 9), (6, 8), (3, 18)] total = sum(q * p for q, p in items) paid = 150 change = paid - total print(change) ``` Execution prints: 3 The change is $3.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0080056
$1,000 is invested at 4% compounded yearly. What is it worth after 4 years? Python makes this quick: ```python principal = 1000 rate = 4 / 100 # 0.04 years = 4 value = principal * (1 + rate) ** years # 1169.8585600000001 print(f"{value:.2f}") ``` (Output: 1169.86) The balance is $1,169.86.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "1169.86", "printed": "1169.86", "notation": null}
nlprog_det-setting-0080057
<|start|><|user|> From 2007 to 2031, how many years is that?<|eot|> <|assistant|> ```python start_year = 2007 end_year = 2031 print(end_year - start_year) ``` Run output — 24 That is 24 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From 2007 to 2031, how many years is that?" }, { "role": "assistant", "content": "```python\nstart_year = 2007\nend_year = 2031\nprint(end_year - start_year)\n```\nRun output — 24\n\nThat is 24 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
69
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0080059
Sales went from 200 to 160. What is the percent change? Translated to Python: ```python old = 200 new = 160 change = (new - old) / old * 100 # -20.0 print(round(change)) ``` (Console output: -20) It changed by -20%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "-20", "printed": "-20", "notation": null}
nlprog_det-setting-0080060
Walls total 1192 sq ft and each can covers 250 sq ft. How many cans should be bought? ```python import math area = 1192 coverage = 250 cans = math.ceil(area / coverage) # 5 print(cans) ``` The program prints: 5 Buy 5 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0080061
Monthly rent is $2,400. A tenant moves in with 13 days left in a 31-day month. What is the prorated rent? ```python rent = 2400 days_in_month = 31 days_occupied = 13 prorated = rent * days_occupied / days_in_month # 1006.4516129032259 print(f"{prorated:.2f}") ``` Printed — 1006.45 The prorated rent is $1,006.45.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "1006.45", "printed": "1006.45", "notation": null}
nlprog_det-setting-0080062
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> Counting only Monday through Friday, how many business days are there after October 11, 2020 through November 10, 2020?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2020, 10, 11) end = date(2020, 11, 10) count = 0 for...
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "role": "user", "content": "Counting only Monday through Friday, how many business days are there after October 11, 2020 through November 10, 2020?" }, { "role": "assistant", "content": "```python\nfrom datetime imp...
nlprog_det
setting
original
null
deterministic
[]
[]
163
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0080063
A recipe for 4 people uses 450 grams of rice. How many grams are needed for 10 people? 1125 grams of rice are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "1125", "printed": "1125", "notation": null}
nlprog_det-setting-0080064
A lawyer's fee is 35% of a $40,000 recovery. How large is the fee? Programmatically: ```python recovery = 40000 rate = 35 / 100 # 0.35 fee = recovery * rate # 14000.0 print(f"{fee:.2f}") ``` # result: 14000.00 The lawyer's fee comes to $14,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "14000.00", "printed": "14000.00", "notation": null}
nlprog_det-setting-0080065
Paula was born on May 4, 1960. How old is Paula on September 13, 2021? Let the code do the arithmetic: ```python from datetime import date born = date(1960, 5, 4) # datetime.date(1960, 5, 4) on = date(2021, 9, 13) # datetime.date(2021, 9, 13) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "61", "printed": "61", "notation": null}
nlprog_det-setting-0080066
Scale 450 g of oats from 8 servings to 12 servings. Python: ```python grams = 450 serves = 8 needed_for = 12 scaled = grams * needed_for // serves # 675 print(scaled) ``` # printed: 675 675 grams of oats are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "675", "printed": "675", "notation": null}
nlprog_det-setting-0080067
A penalty of $25 a day accrues, capped at $5,000. What is owed after 11 days? Script: ```python per_day = 25 days = 11 cap = 5000 fine = min(per_day * days, cap) # 275 print(fine) ``` Execution prints 275. $275 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "275", "printed": "275", "notation": null}
nlprog_det-setting-0080068
3 clients win $72,000. The lawyer takes 25%, and the rest is split equally. How much does each client get? Each share is $18,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "18000.00", "printed": "18000.00", "notation": null}
nlprog_det-setting-0080069
At a 4% tax rate, what is the tax on $628.32? Computation in Python: ```python price = 628.32 tax_rate = 4 / 100 # 0.04 tax = price * tax_rate # 25.132800000000003 print(f"{tax:.2f}") ``` Out — 25.13 $25.13 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "25.13", "printed": "25.13", "notation": null}
nlprog_det-setting-0080070
<|start|><|user|> A car travels 401 miles in 1 hours. What is its average speed in miles per hour?<|eot|> <|assistant|> ```python distance = 401 hours = 1 speed = distance / hours # 401.0 print(round(speed)) ``` Output of the run — 401 It averages 401 miles per hour.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A car travels 401 miles in 1 hours. What is its average speed in miles per hour?" }, { "role": "assistant", "content": "```python\ndistance = 401\nhours = 1\nspeed = distance / hours # 401.0\nprint(round(speed))\n```\nOutput of the run — 401\n\nIt averages 401 mile...
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "401", "printed": "401", "notation": null}
nlprog_det-setting-0080071
<|start|><|user|> A $12,000 grant pays $3,000 up front and the rest in 3 equal installments. How large is each installment?<|eot|> <|assistant|> ```python grant = 12000 up_front = 3000 installments = 3 each = (grant - up_front) / installments # 3000.0 print(f"{each:.2f}") ``` When run, it prints: 3000.00 $3,000.00 pe...
chat
[ { "role": "user", "content": "A $12,000 grant pays $3,000 up front and the rest in 3 equal installments. How large is each installment?" }, { "role": "assistant", "content": "```python\ngrant = 12000\nup_front = 3000\ninstallments = 3\neach = (grant - up_front) / installments # 3000.0\nprint(f\...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "3000.00", "printed": "3000.00", "notation": null}
nlprog_det-setting-0080072
A clerk's office charges $35 for each filing. Chen submits 19 filings. What is the total fee? Programmatically: ```python fee = 35 filings = 19 total = fee * filings # 665 print(total) ``` Printed = 665 The filings cost $665 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "665", "printed": "665", "notation": null}
nlprog_det-setting-0080073
<|start|><|user|> After a 25% fee is taken from a $60,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|> <|assistant|> award = 60000 fee = award * 25 / 100 # 15000.0 remaining = award - fee # 45000.0 per_client = remaining / 2 # 22500.0 print(f"{per_cli...
chat
[ { "role": "user", "content": "After a 25% fee is taken from a $60,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?" }, { "role": "assistant", "content": " award = 60000\n fee = award * 25 / 100 # 15000.0\n remaining = award - fee # 45000.0\n p...
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "22500.00", "printed": "22500.00", "notation": null}
nlprog_det-setting-0080074
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> 244 volunteers are split into 4 equal teams. How many are on each team, and how many are left over?<|eot|> <|assistant|> ```python total = 244 groups = 4 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` s...
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "role": "user", "content": "244 volunteers are split into 4 equal teams. How many are on each team, and how many are left over?" }, { "role": "assistant", "content": "```python\ntotal = 244\ngroups = 4\nper_group, re...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "61 each, 0 left over", "printed": "61 each, 0 left over", "notation": null}
nlprog_det-setting-0080075
<|start|><|user|> A hearing starts at 3:10 PM and lasts 90 minutes. When does it end?<|eot|> <|assistant|> It ends at 4:40 PM.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hearing starts at 3:10 PM and lasts 90 minutes. When does it end?" }, { "role": "assistant", "content": "It ends at 4:40 PM." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "4:40 PM", "printed": "4:40 PM", "notation": null}
nlprog_det-setting-0080076
What is a 22% tip on a $87.54 bill? As Python: ```python bill = 87.54 tip_rate = 22 / 100 # 0.22 tip = bill * tip_rate # 19.2588 print(f"{tip:.2f}") ``` Result = 19.26 The tip is $19.26.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "19.26", "printed": "19.26", "notation": null}
nlprog_det-setting-0080077
What percentage of $5,000 is $2,600? A Python solution: ```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
[]
[]
87
{"gold": "52.0", "printed": "52.0", "notation": null}
nlprog_det-setting-0080078
<|start|><|system|> You may call the tools below. {"name": "sandbox_python", "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|> The st...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"sandbox_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"...
nlprog_det
setting
original
null
deterministic
[]
[]
200
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0080079
A 2% increase is applied to $900 monthly rent. What is the new amount? We write it as a program: ```python rent = 900 increase = 2 / 100 # 0.02 new_rent = rent * (1 + increase) # 918.0 print(f"{new_rent:.2f}") ``` Printed: 918.00 The new rent is $918.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "918.00", "printed": "918.00", "notation": null}
nlprog_det-setting-0080080
<|start|><|user|> A service costs $9 a month or $72 a year. How much does the yearly plan save over 12 monthly payments?<|eot|> <|assistant|> ```python monthly = 9 yearly = 72 savings = monthly * 12 - yearly # 36 print(savings) ``` This prints: 36 The annual plan saves $36.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A service costs $9 a month or $72 a year. How much does the yearly plan save over 12 monthly payments?" }, { "role": "assistant", "content": "```python\nmonthly = 9\nyearly = 72\nsavings = monthly * 12 - yearly # 36\nprint(savings)\n```\nThis prints: 36\n\nThe annu...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0080081
Papers were served by mail on February 4, 2026. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date? Python makes this quick: ```python from datetime import date, timedelta served = date(2026, 2, 4) # datetime.date(2026, 2, 4) response_days = 30 mail_days = 3 due = served + ti...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
185
{"gold": "2026-03-09", "printed": "2026-03-09", "notation": null}
nlprog_det-setting-0080082
Printing costs 5 cents a page. What does it cost to print 190 copies of a 35-page handout? Python makes this quick: ```python pages = 35 copies = 190 cost_per_page = 0.05 cost = pages * copies * cost_per_page # 332.5 print(f"{cost:.2f}") ``` Program output — 332.50 The job costs $332.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "332.50", "printed": "332.50", "notation": null}
nlprog_det-setting-0080083
A shift runs from 10:56 AM to 11:40 AM. How long is it in minutes? ```python start = 10 * 60 + 56 # 656 end = 11 * 60 + 40 # 700 print(end - start) ``` Execution prints 44. 44 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "44", "printed": "44", "notation": null}
nlprog_det-setting-0080086
<|start|><|user|> A board has 11 members. A majority is more than half. How many votes make a majority?<|eot|> <|assistant|> ```python members = 11 majority = members // 2 + 1 # 6 print(majority) ``` When run, it prints: 6 6 members are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A board has 11 members. A majority is more than half. How many votes make a majority?" }, { "role": "assistant", "content": "```python\nmembers = 11\nmajority = members // 2 + 1 # 6\nprint(majority)\n```\nWhen run, it prints: 6\n\n6 members are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0080087
<|start|><|user|> How many 2-foot square tiles cover a 9 ft by 8 ft floor (round up)?<|eot|> <|assistant|> ```python import math length = 9 width = 8 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 18 print(tiles) ``` On running, it outputs 18. 18 tiles are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many 2-foot square tiles cover a 9 ft by 8 ft floor (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 9\nwidth = 8\ntile = 2\ntiles = math.ceil(length * width / (tile * tile)) # 18\nprint(tiles)\n```\nOn running, it outputs 18....
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0080088
<|start|><|user|> An invoice lists 14 calendars at $24 each, plus 10% sales tax. What is the invoice total?<|eot|> <|assistant|> ```python quantity = 14 unit_price = 24 subtotal = quantity * unit_price # 336 total = subtotal * (1 + 10 / 100) # 369.6 print(f"{total:.2f}") ``` On running, it outputs: 369.60 The invoic...
chat
[ { "role": "user", "content": "An invoice lists 14 calendars at $24 each, plus 10% sales tax. What is the invoice total?" }, { "role": "assistant", "content": "```python\nquantity = 14\nunit_price = 24\nsubtotal = quantity * unit_price # 336\ntotal = subtotal * (1 + 10 / 100) # 369.6\nprint(f\"...
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "369.60", "printed": "369.60", "notation": null}
nlprog_det-setting-0080089
A hall has 28 rows of 17 seats, and 4 seats are empty. How many people are seated? A short script: ```python rows = 28 per_row = 17 empty = 4 seated = rows * per_row - empty # 472 print(seated) ``` The run gives 472, as expected. 472 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "472", "printed": "472", "notation": null}
nlprog_det-setting-0080090
Tomas earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 48-hour week? Coded up: rate = 20.0 hours = 48 regular = 40 * rate # 800.0 overtime = (hours - 40) * rate * 1.5 # 240.0 pay = regular + overtime # 1040.0 print(f"{pay:.2f}") The program prints 1040.00, as...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "1040.00", "printed": "1040.00", "notation": null}
nlprog_det-setting-0080091
Convert 46 km to meters. Let's compute it with Python. ```python km = 46 meters = km * 1000 # 46000 print(round(meters)) ``` # console output: 46000 46,000 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "46000", "printed": "46000", "notation": null}
nlprog_det-setting-0080092
<|start|><|user|> Convert 5,684 EUR to USD at 1 EUR = 0.74 USD.<|eot|> <|assistant|> ```python amount = 5684 rate = 0.74 converted = amount * rate # 4206.16 print(f"{converted:.2f}") ``` (Printed: 4206.16) That is 4,206.16 USD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 5,684 EUR to USD at 1 EUR = 0.74 USD." }, { "role": "assistant", "content": "```python\namount = 5684\nrate = 0.74\nconverted = amount * rate # 4206.16\nprint(f\"{converted:.2f}\")\n```\n(Printed: 4206.16)\n\nThat is 4,206.16 USD." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "4206.16", "printed": "4206.16", "notation": null}
nlprog_det-setting-0080093
At a 6% tax rate, what is the tax on $16.43? Python makes this quick: ```python price = 16.43 tax_rate = 6 / 100 # 0.06 tax = price * tax_rate # 0.9857999999999999 print(f"{tax:.2f}") ``` Execution prints 0.99, as expected. $0.99 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "0.99", "printed": "0.99", "notation": null}
nlprog_det-setting-0080094
Meals are $74 per day and lodging $110 per night. What is the allowance for 9 days and 8 nights? In Python: ```python days = 9 meal_rate = 74 lodging_rate = 110 nights = days - 1 total = days * meal_rate + nights * lodging_rate print(total) ``` On running, it outputs 1546. The allowance is $1,546.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "1546", "printed": "1546", "notation": null}
nlprog_det-setting-0080095
How many 1-foot square tiles cover a 20 ft by 8 ft floor (round up)? It takes 160 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "160", "printed": "160", "notation": null}
nlprog_det-setting-0080096
Monthly rent is $900. A tenant moves in with 18 days left in a 30-day month. What is the prorated rent? Programmatically: ```python rent = 900 days_in_month = 30 days_occupied = 18 prorated = rent * days_occupied / days_in_month # 540.0 print(f"{prorated:.2f}") ``` It prints 540.00, as expected. The prorated rent is...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "540.00", "printed": "540.00", "notation": null}
nlprog_det-setting-0080097
<|start|><|user|> A shift runs from 8:15 AM to 1:10 PM. How long is it in minutes?<|eot|> <|assistant|> ```python start = 8 * 60 + 15 # 495 end = 13 * 60 + 10 # 790 print(end - start) ``` (Printed result: 295) 295 minutes pass.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A shift runs from 8:15 AM to 1:10 PM. How long is it in minutes?" }, { "role": "assistant", "content": "```python\nstart = 8 * 60 + 15 # 495\nend = 13 * 60 + 10 # 790\nprint(end - start)\n```\n(Printed result: 295)\n\n295 minutes pass." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "295", "printed": "295", "notation": null}
nlprog_det-setting-0080098
Of a $2,000 budget, $600 has been spent. What percent is that? Let the code do the arithmetic: budget = 2000 spent = 600 percent = spent / budget * 100 # 30.0 print(round(percent, 1)) Result: 30.0 30.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "30.0", "printed": "30.0", "notation": null}
nlprog_det-setting-0080099
<|start|><|system|> Be concise.<|eot|> <|user|> What percentage of $2,000 is $800?<|eot|> <|assistant|> ```python budget = 2000 spent = 800 percent = spent / budget * 100 # 40.0 print(round(percent, 1)) ``` Result: 40.0 40.0% has been spent.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "What percentage of $2,000 is $800?" }, { "role": "assistant", "content": "```python\nbudget = 2000\nspent = 800\npercent = spent / budget * 100 # 40.0\nprint(round(percent, 1))\n```\nResult:\n40.0\n\n40.0%...
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "40.0", "printed": "40.0", "notation": null}
nlprog_det-setting-0080100
<|start|><|user|> A 120-day notice period begins on October 27, 2020. On what date does it end?<|eot|> <|assistant|> from datetime import date, timedelta start = date(2020, 10, 27) # datetime.date(2020, 10, 27) end = start + timedelta(days=120) # datetime.date(2021, 2, 24) print(end.isoformat()) Conso...
chat
[ { "role": "user", "content": "A 120-day notice period begins on October 27, 2020. On what date does it end?" }, { "role": "assistant", "content": " from datetime import date, timedelta\n start = date(2020, 10, 27) # datetime.date(2020, 10, 27)\n end = start + timedelta(days=120) # dat...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "2021-02-24", "printed": "2021-02-24", "notation": null}
nlprog_det-setting-0080101
<|start|><|user|> A quorum is 3/5 of the 13 members, rounded up. How many members make a quorum?<|eot|> <|assistant|> 8 members are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A quorum is 3/5 of the 13 members, rounded up. How many members make a quorum?" }, { "role": "assistant", "content": "8 members are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0080102
<|start|><|user|> The bridge was finished in 1991. How many years had passed by 2030?<|eot|> <|assistant|> ```python start_year = 1991 end_year = 2030 print(end_year - start_year) ``` The run gives 39. 39 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The bridge was finished in 1991. How many years had passed by 2030?" }, { "role": "assistant", "content": "```python\nstart_year = 1991\nend_year = 2030\nprint(end_year - start_year)\n```\nThe run gives 39.\n\n39 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
71
{"gold": "39", "printed": "39", "notation": null}
nlprog_det-setting-0080103
<|start|><|user|> A party has 28 days to respond to a motion served on April 7, 2028, with 3 days added because service was by mail. When is the response due?<|eot|> <|assistant|> from datetime import date, timedelta served = date(2028, 4, 7) response_days = 28 mail_days = 3 due = served + timedelta...
chat
[ { "role": "user", "content": "A party has 28 days to respond to a motion served on April 7, 2028, with 3 days added because service was by mail. When is the response due?" }, { "role": "assistant", "content": " from datetime import date, timedelta\n served = date(2028, 4, 7)\n response_...
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "2028-05-08", "printed": "2028-05-08", "notation": null}
nlprog_det-setting-0080104
Which is cheaper per unit: 6 for $5.17 (A) or 18 for $25.44 (B)? Let the code do the arithmetic: pack_a = 5.17 / 6 # 0.8616666666666667 pack_b = 25.44 / 18 # 1.4133333333333333 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) The code prints A. A has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0080105
<|start|><|user|> A client paid a $7,500 retainer. The firm has billed 12 hours at $150 per hour. How much of the retainer is left?<|eot|> <|assistant|> $5,700 of the retainer is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A client paid a $7,500 retainer. The firm has billed 12 hours at $150 per hour. How much of the retainer is left?" }, { "role": "assistant", "content": "$5,700 of the retainer is left." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
52
{"gold": "5700", "printed": "5700", "notation": null}
nlprog_det-setting-0080107
A meal costs $243.35. How much is a 18% tip? ```python bill = 243.35 tip_rate = 18 / 100 # 0.18 tip = bill * tip_rate # 43.803 print(f"{tip:.2f}") ``` This prints 43.80. The tip is $43.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "43.80", "printed": "43.80", "notation": null}
nlprog_det-setting-0080108
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "python_exec", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> How ma...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"python_exec\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"...
nlprog_det
setting
original
null
deterministic
[]
[]
294
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0080109
11 water bottles cost $12 apiece. With 5% tax added, what is the total? The Python version: ```python quantity = 11 unit_price = 12 subtotal = quantity * unit_price # 132 total = subtotal * (1 + 5 / 100) # 138.6 print(f"{total:.2f}") ``` Output — 138.60 The total with tax is $138.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "138.60", "printed": "138.60", "notation": null}