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-0076141
5 swims at 200 calories each burn how many calories in total? 1000 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0076142
Notice was given on November 3, 2028. The notice period is 21 days. When does it run out? Here is a short program for it. ```python from datetime import date, timedelta start = date(2028, 11, 3) # datetime.date(2028, 11, 3) end = start + timedelta(days=21) # datetime.date(2028, 11, 24) print(end.isoformat()) ``` Exe...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "2028-11-24", "printed": "2028-11-24", "notation": null}
nlprog_det-setting-0076143
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "convert_units", "description": "Con...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\...
nlprog_det
setting
original
null
deterministic
[]
[]
397
{"gold": "4500", "printed": "4500", "notation": null}
nlprog_det-setting-0076144
<|start|><|system|> Double-check numbers before answering.<|eot|> <|user|> A garage charges $5 an hour, never more than $15 a day. How much for 10 hours?<|eot|> <|assistant|> ```python rate = 5 hours = 10 daily_max = 15 cost = min(rate * hours, daily_max) # 15 print(cost) ``` Execution prints: 15 Parking costs $15.<|...
chat
[ { "role": "system", "content": "Double-check numbers before answering." }, { "role": "user", "content": "A garage charges $5 an hour, never more than $15 a day. How much for 10 hours?" }, { "role": "assistant", "content": "```python\nrate = 5\nhours = 10\ndaily_max = 15\ncost = min(r...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0076145
<|start|><|user|> If a 135-minute hearing begins at 12:10 PM, what time does it finish?<|eot|> <|assistant|> ```python start = 12 * 60 + 10 end = start + 135 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` The run gives 2:25 PM, as expected. The hearing fin...
chat
[ { "role": "user", "content": "If a 135-minute hearing begins at 12:10 PM, what time does it finish?" }, { "role": "assistant", "content": "```python\nstart = 12 * 60 + 10\nend = start + 135\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": "2:25 PM", "printed": "2:25 PM", "notation": null}
nlprog_det-setting-0076147
A printer costs $180. It is 15% off. What is the sale price? Computation in Python: ```python price = 180 discount = 15 / 100 # 0.15 sale_price = price * (1 - discount) # 153.0 print(f"{sale_price:.2f}") ``` It outputs: 153.00 It costs $153.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "153.00", "printed": "153.00", "notation": null}
nlprog_det-setting-0076148
What simple interest does $2,500 earn at 8% a year over 5 years? ```python principal = 2500 rate = 8 / 100 # 0.08 years = 5 interest = principal * rate * years # 1000.0 print(f"{interest:.2f}") ``` (Output: 1000.00) The interest is $1,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "1000.00", "printed": "1000.00", "notation": null}
nlprog_det-setting-0076149
Walls total 652 sq ft and each can covers 250 sq ft. How many cans should be bought? Here is a short program for it. ```python import math area = 652 coverage = 250 cans = math.ceil(area / coverage) # 3 print(cans) ``` Result = 3 Buy 3 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0076150
A pack of 24 tape rolls sells for $72. What does each cost? A Python solution: ```python total = 72 count = 24 per_item = total // count # 3 print(per_item) ``` Python prints: 3 The unit price is $3.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0076151
Starting from $25,000, the team spends $3,895, $2,734. What remains? Let's compute it with Python. ```python budget = 25000 expenses = [3895, 2734] left = budget - sum(expenses) # 18371 print(left) ``` Console output — 18371 The remaining budget is $18,371.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "18371", "printed": "18371", "notation": null}
nlprog_det-setting-0076152
At 1.5% a month (simple), what interest builds on $2,500 over 2 months? One way, in code: ```python balance = 2500 monthly_rate = 1.5 / 100 months = 2 interest = balance * monthly_rate * months print(f"{interest:.2f}") ``` Executed, it shows 75.00. The interest is $75.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "75.00", "printed": "75.00", "notation": null}
nlprog_det-setting-0076153
<|start|><|system|> Tool definitions: [{"name": "sandbox_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> Copies cost $5 plus $0.10 for each ...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"sandbox_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]...
nlprog_det
setting
original
null
deterministic
[]
[]
250
{"gold": "5.00", "printed": "5.00", "notation": null}
nlprog_det-setting-0076154
A water bill is $15 plus $4.75 per thousand gallons beyond the first 2 thousand. What is the bill for 25 thousand gallons? Script: ```python base = 15 rate = 4.75 used = 25 free = 2 bill = base + rate * max(0, used - free) # 124.25 print(f"{bill:.2f}") ``` On running, it outputs 124.25. $124.25 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "124.25", "printed": "124.25", "notation": null}
nlprog_det-setting-0076155
A claim accrued on May 14, 2019. The limitations period is 3 years. On what date does it expire? Python, step by step: ```python from datetime import date accrued = date(2019, 5, 14) # datetime.date(2019, 5, 14) years = 3 expires = accrued.replace(year=accrued.year + years) # datetime.date(2022, 5, 14) print(expires...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "2022-05-14", "printed": "2022-05-14", "notation": null}
nlprog_det-setting-0076156
A 250-mile drive at a steady 40 mph takes how many minutes? Python, step by step: ```python distance = 250 speed = 40 minutes = distance / speed * 60 # 375.0 print(round(minutes)) ``` (Out: 375) 375 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "375", "printed": "375", "notation": null}
nlprog_det-setting-0076157
Noor earns $25.00 an hour and time and a half for hours over 40. What is the pay for a 43-hour week? As Python: ```python rate = 25.0 hours = 43 regular = 40 * rate # 1000.0 overtime = (hours - 40) * rate * 1.5 # 112.5 pay = regular + overtime # 1112.5 print(f"{pay:.2f}") ``` Running this gives: 1112.50 The weekly...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "1112.50", "printed": "1112.50", "notation": null}
nlprog_det-setting-0076158
Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 44 hours? 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}") ``` stdout: 920.00 Tariq earns $920.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "920.00", "printed": "920.00", "notation": null}
nlprog_det-setting-0076159
Fixed costs are $6,000. Each unit sells for $40 and costs $34 to make. How many units must be sold to break even? The Python version: ```python import math fixed = 6000 price = 40 variable = 34 units = math.ceil(fixed / (price - variable)) # 1000 print(units) ``` Printed result — 1000 Break-even is 1000 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0076160
A hearing is set for July 27, 2023. What day of the week is that? The program: from datetime import date hearing = date(2023, 7, 27) # datetime.date(2023, 7, 27) print(hearing.strftime("%A")) # program output: Thursday It is a Thursday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "Thursday", "printed": "Thursday", "notation": null}
nlprog_det-setting-0076162
Printing costs 8 cents a page. What does it cost to print 192 copies of a 37-page handout? Program: ```python pages = 37 copies = 192 cost_per_page = 0.08 cost = pages * copies * cost_per_page # 568.32 print(f"{cost:.2f}") ``` Python prints: 568.32 Printing costs $568.32.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "568.32", "printed": "568.32", "notation": null}
nlprog_det-setting-0076163
Notice was given on February 9, 2025. The notice period is 90 days. When does it run out? ```python from datetime import date, timedelta start = date(2025, 2, 9) # datetime.date(2025, 2, 9) end = start + timedelta(days=90) # datetime.date(2025, 5, 10) print(end.isoformat()) ``` The script prints 2025-05-10, as expec...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "2025-05-10", "printed": "2025-05-10", "notation": null}
nlprog_det-setting-0076164
Counting only Monday through Friday, how many business days are there after January 18, 2022 through February 12, 2022? The program: from datetime import date, timedelta start = date(2022, 1, 18) end = date(2022, 2, 12) count = 0 for k in range(1, (end - start).days + 1): if (start + timede...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0076165
<|start|><|system|> Available functions (JSON Schema): {"name": "py_exec", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}} {"name": "business_days", "descrip...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"py_exec\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requ...
nlprog_det
setting
original
null
deterministic
[]
[]
414
{"gold": "190.80", "printed": "190.80", "notation": null}
nlprog_det-setting-0076166
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> Jamal earns a 8% commission on $47,634 of sales. What is the commission?<|eot|> <|assistant|> ```python sales = 47634 rate = 8 / 100 # 0.08 commission = sales * rate # 3810.7200000000003 print(f"{commission:.2f}") ``` Output of the run — 381...
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "Jamal earns a 8% commission on $47,634 of sales. What is the commission?" }, { "role": "assistant", "content": "```python\nsales = 47634\nrate = 8 / 100 # 0.08\ncommission = sa...
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "3810.72", "printed": "3810.72", "notation": null}
nlprog_det-setting-0076167
Scale 150 g of pasta from 6 servings to 10 servings. Let the code do the arithmetic: ```python grams = 150 serves = 6 needed_for = 10 scaled = grams * needed_for // serves # 250 print(scaled) ``` Result: 250 Use 250 g of pasta.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "250", "printed": "250", "notation": null}
nlprog_det-setting-0076168
<|start|><|user|> An office budget of $20,000 has expenses of $2,207, $2,102, $1,764. How much of the budget is left?<|eot|> <|assistant|> ```python budget = 20000 expenses = [2207, 2102, 1764] left = budget - sum(expenses) # 13927 print(left) ``` This prints: 13927 $13,927 is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An office budget of $20,000 has expenses of $2,207, $2,102, $1,764. How much of the budget is left?" }, { "role": "assistant", "content": "```python\nbudget = 20000\nexpenses = [2207, 2102, 1764]\nleft = budget - sum(expenses) # 13927\nprint(left)\n```\nThis prints...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "13927", "printed": "13927", "notation": null}
nlprog_det-setting-0076169
How long, in days, is it from March 4, 2020 until August 7, 2020? Python: ```python from datetime import date first = date(2020, 3, 4) # datetime.date(2020, 3, 4) second = date(2020, 8, 7) # datetime.date(2020, 8, 7) print((second - first).days) ``` Running it prints: 156 There are 156 days between the two dates.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "156", "printed": "156", "notation": null}
nlprog_det-setting-0076170
Each storage box holds 24 files. How many boxes are needed for 407 files? One way, in code: ```python import math files = 407 per_box = 24 boxes = math.ceil(files / per_box) # 17 print(boxes) ``` Console output: 17 17 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0076171
<|start|><|user|> How many 1-foot square tiles cover a 8 ft by 7 ft floor (round up)?<|eot|> <|assistant|> ```python import math length = 8 width = 7 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 56 print(tiles) ``` (stdout: 56) It takes 56 tiles.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many 1-foot square tiles cover a 8 ft by 7 ft floor (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 8\nwidth = 7\ntile = 1\ntiles = math.ceil(length * width / (tile * tile)) # 56\nprint(tiles)\n```\n(stdout: 56)\n\nIt takes 5...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "56", "printed": "56", "notation": null}
nlprog_det-setting-0076172
<|start|><|system|> Functions: [{"name": "python_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "get_weather", "description": "Get the weather for a c...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"python_exec\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\"]}}, {\"name\...
nlprog_det
setting
original
null
deterministic
[]
[]
300
{"gold": "2020-12-01", "printed": "2020-12-01", "notation": null}
nlprog_det-setting-0076173
<|start|><|system|> You are a math tutor.<|eot|> <|user|> A 8% increase is applied to $1,500 monthly rent. What is the new amount?<|eot|> <|assistant|> ```python rent = 1500 increase = 8 / 100 # 0.08 new_rent = rent * (1 + increase) # 1620.0 print(f"{new_rent:.2f}") ``` (Printed result: 1620.00) It rises to $1,620.0...
chat
[ { "role": "system", "content": "You are a math tutor." }, { "role": "user", "content": "A 8% increase is applied to $1,500 monthly rent. What is the new amount?" }, { "role": "assistant", "content": "```python\nrent = 1500\nincrease = 8 / 100 # 0.08\nnew_rent = rent * (1 + increase)...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "1620.00", "printed": "1620.00", "notation": null}
nlprog_det-setting-0076174
A settlement of $525 is split equally among 5 parties. How much does each party receive? Each party receives $105.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "105", "printed": "105", "notation": null}
nlprog_det-setting-0076176
<|start|><|user|> How many units at $25 each (variable cost $21) cover $1,200 of fixed costs?<|eot|> <|assistant|> Break-even is 300 units.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many units at $25 each (variable cost $21) cover $1,200 of fixed costs?" }, { "role": "assistant", "content": "Break-even is 300 units." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0076177
<|start|><|system|> You are a careful reviewer of figures.<|eot|> <|user|> If a 2-year limitations period starts on August 1, 2014, when does it end?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2014, 8, 1) # datetime.date(2014, 8, 1) years = 2 expires = accrued.replace(year=accrued.year + y...
chat
[ { "role": "system", "content": "You are a careful reviewer of figures." }, { "role": "user", "content": "If a 2-year limitations period starts on August 1, 2014, when does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2014, 8, 1) ...
nlprog_det
setting
original
null
deterministic
[]
[]
153
{"gold": "2016-08-01", "printed": "2016-08-01", "notation": null}
nlprog_det-setting-0076178
<|start|><|user|> At an exchange rate of 0.74 USD per GBP, how many USD is 5,357 GBP?<|eot|> <|assistant|> ```python amount = 5357 rate = 0.74 converted = amount * rate # 3964.18 print(f"{converted:.2f}") ``` Result: 3964.18 It converts to 3,964.18 USD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At an exchange rate of 0.74 USD per GBP, how many USD is 5,357 GBP?" }, { "role": "assistant", "content": "```python\namount = 5357\nrate = 0.74\nconverted = amount * rate # 3964.18\nprint(f\"{converted:.2f}\")\n```\nResult: 3964.18\n\nIt converts to 3,964.18 USD."...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "3964.18", "printed": "3964.18", "notation": null}
nlprog_det-setting-0076180
<|start|><|user|> A lawyer's fee is 40% of a $40,000 recovery. How large is the fee?<|eot|> <|assistant|> ```python recovery = 40000 rate = 40 / 100 # 0.4 fee = recovery * rate # 16000.0 print(f"{fee:.2f}") ``` Result = 16000.00 The fee is $16,000.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lawyer's fee is 40% of a $40,000 recovery. How large is the fee?" }, { "role": "assistant", "content": "```python\nrecovery = 40000\nrate = 40 / 100 # 0.4\nfee = recovery * rate # 16000.0\nprint(f\"{fee:.2f}\")\n```\nResult = 16000.00\n\nThe fee is $16,000.00." ...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "16000.00", "printed": "16000.00", "notation": null}
nlprog_det-setting-0076181
At $23.19 an hour, what does 32 hours of work pay? ```python rate = 23.19 hours = 32 earnings = rate * hours # 742.08 print(f"{earnings:.2f}") ``` What it prints: 742.08 The pay is $742.08.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "742.08", "printed": "742.08", "notation": null}
nlprog_det-setting-0076182
How many days are there from November 24, 2024 to July 24, 2025? Let the code do the arithmetic: ```python from datetime import date first = date(2024, 11, 24) # datetime.date(2024, 11, 24) second = date(2025, 7, 24) # datetime.date(2025, 7, 24) print((second - first).days) ``` Printed — 242 It is 242 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "242", "printed": "242", "notation": null}
nlprog_det-setting-0076183
<|start|><|user|> The landlord deducts $85, $85 and $120 from a $2,500 deposit. What is returned to the tenant?<|eot|> <|assistant|> deposit = 2500 deductions = [85, 85, 120] refund = deposit - sum(deductions) # 2210 print(refund) Result: 2210 The refund is $2,210.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The landlord deducts $85, $85 and $120 from a $2,500 deposit. What is returned to the tenant?" }, { "role": "assistant", "content": " deposit = 2500\n deductions = [85, 85, 120]\n refund = deposit - sum(deductions) # 2210\n print(refund)\nResult:\n2210\...
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "2210", "printed": "2210", "notation": null}
nlprog_det-setting-0076184
How many 1-foot square tiles cover a 17 ft by 15 ft floor (round up)? The Python version: import math length = 17 width = 15 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 255 print(tiles) (Execution result: 255) 255 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "255", "printed": "255", "notation": null}
nlprog_det-setting-0076185
Scale 200 g of flour from 2 servings to 10 servings. Python code: ```python grams = 200 serves = 2 needed_for = 10 scaled = grams * needed_for // serves # 1000 print(scaled) ``` # console output: 1000 1000 grams of flour are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0076187
<|start|><|user|> Lucia has 3 documents to file, and each filing costs $35. How much are the filing fees in total?<|eot|> <|assistant|> ```python fee = 35 filings = 3 total = fee * filings # 105 print(total) ``` The run gives 105. The total fee is $105.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Lucia has 3 documents to file, and each filing costs $35. How much are the filing fees in total?" }, { "role": "assistant", "content": "```python\nfee = 35\nfilings = 3\ntotal = fee * filings # 105\nprint(total)\n```\nThe run gives 105.\n\nThe total fee is $105." ...
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "105", "printed": "105", "notation": null}
nlprog_det-setting-0076188
A measure needs at least 60% of 225 votes. How many votes is that, rounded up? Set it up in Python: ```python import math voters = 225 needed = math.ceil(voters * 60 / 100) # 135 print(needed) ``` (Program output: 135) At least 135 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "135", "printed": "135", "notation": null}
nlprog_det-setting-0076189
If a 75-minute class begins at 12:10 PM, what time does it finish? In code: ```python start = 12 * 60 + 10 end = start + 75 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` # execution result: 1:25 PM It ends at 1:25 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "1:25 PM", "printed": "1:25 PM", "notation": null}
nlprog_det-setting-0076190
<|start|><|user|> A customer buys 1 hard drives at $19 each, 1 folders at $26 each, 4 file boxes at $22 each and pays with $150. How much change is due?<|eot|> <|assistant|> $17 comes back.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A customer buys 1 hard drives at $19 each, 1 folders at $26 each, 4 file boxes at $22 each and pays with $150. How much change is due?" }, { "role": "assistant", "content": "$17 comes back." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
57
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0076191
A $2,500 security deposit has deductions of $45 and $120. How much is refunded? A few lines of Python do it: ```python deposit = 2500 deductions = [45, 120] refund = deposit - sum(deductions) # 2335 print(refund) ``` # program output: 2335 $2,335 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "2335", "printed": "2335", "notation": null}
nlprog_det-setting-0076192
After an initial $2,000, the remainder of a $12,000 grant is paid in 3 equal parts. What is each part? Here is a short program for it. ```python grant = 12000 up_front = 2000 installments = 3 each = (grant - up_front) / installments # 3333.3333333333335 print(f"{each:.2f}") ``` This prints: 3333.33 Each installment ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "3333.33", "printed": "3333.33", "notation": null}
nlprog_det-setting-0076193
Xavier has 13 documents to file, and each filing costs $45. How much are the filing fees in total? ```python fee = 45 filings = 13 total = fee * filings # 585 print(total) ``` Out — 585 $585 in filing fees.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "585", "printed": "585", "notation": null}
nlprog_det-setting-0076194
<|start|><|system|> Tools (call with JSON): {"name": "sandbox_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> A court ...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"sandbox_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"...
nlprog_det
setting
original
null
deterministic
[]
[]
266
{"gold": "13.70", "printed": "13.70", "notation": null}
nlprog_det-setting-0076195
Counting only Monday through Friday, how many business days are there after June 23, 2022 through July 18, 2022? There are 17 business days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0076196
What commission does Hana make on $84,770 in sales at 8%? Computing it: ```python sales = 84770 rate = 8 / 100 # 0.08 commission = sales * rate # 6781.6 print(f"{commission:.2f}") ``` Result = 6781.60 Hana earns $6,781.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "6781.60", "printed": "6781.60", "notation": null}
nlprog_det-setting-0076197
<|start|><|user|> A storeroom has 1246 ink cartridges. The office uses 19 a day. How many are left after 16 days?<|eot|> <|assistant|> ```python stock = 1246 per_day = 19 days = 16 left = stock - per_day * days # 942 print(left) ``` (Out: 942) 942 ink cartridges are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A storeroom has 1246 ink cartridges. The office uses 19 a day. How many are left after 16 days?" }, { "role": "assistant", "content": "```python\nstock = 1246\nper_day = 19\ndays = 16\nleft = stock - per_day * days # 942\nprint(left)\n```\n(Out: 942)\n\n942 ink car...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "942", "printed": "942", "notation": null}
nlprog_det-setting-0076198
<|start|><|user|> Elena drove 134 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement?<|eot|> <|assistant|> miles = 134 rate = 0.58 reimbursement = miles * rate print(f"{reimbursement:.2f}") Result: 77.72 The reimbursement is $77.72.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Elena drove 134 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement?" }, { "role": "assistant", "content": " miles = 134\n rate = 0.58\n reimbursement = miles * rate\n print(f\"{reimbursement:.2f}\")\nResult:\n77.72\n\...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "77.72", "printed": "77.72", "notation": null}
nlprog_det-setting-0076199
<|start|><|user|> An invoice lists 27 file boxes at $6 each, plus 5% sales tax. What is the invoice total?<|eot|> <|assistant|> ```python quantity = 27 unit_price = 6 subtotal = quantity * unit_price # 162 total = subtotal * (1 + 5 / 100) # 170.1 print(f"{total:.2f}") ``` Run result — 170.10 The total with tax is $1...
chat
[ { "role": "user", "content": "An invoice lists 27 file boxes at $6 each, plus 5% sales tax. What is the invoice total?" }, { "role": "assistant", "content": "```python\nquantity = 27\nunit_price = 6\nsubtotal = quantity * unit_price # 162\ntotal = subtotal * (1 + 5 / 100) # 170.1\nprint(f\"{to...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "170.10", "printed": "170.10", "notation": null}
nlprog_det-setting-0076200
A settlement of $1,200 is split equally among 4 parties. How much does each party receive? A few lines of Python do it: ```python settlement = 1200 parties = 4 share = settlement // parties # 300 print(share) ``` Execution prints 300. Each party receives $300.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0076201
Ana and Bruna share $2,792 in the ratio 1:3. How much does Ana get? Python does the arithmetic: ```python total = 2792 parts_a = 1 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 698 print(share_a) ``` Output: 698 Ana gets $698.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "698", "printed": "698", "notation": null}
nlprog_det-setting-0076202
<|start|><|user|> Each of Rosa's walks burns 200 calories. How many calories over 3 walks?<|eot|> <|assistant|> ```python per_session = 200 sessions = 3 total = per_session * sessions # 600 print(total) ``` The interpreter prints: 600 600 calories in total.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each of Rosa's walks burns 200 calories. How many calories over 3 walks?" }, { "role": "assistant", "content": "```python\nper_session = 200\nsessions = 3\ntotal = per_session * sessions # 600\nprint(total)\n```\nThe interpreter prints: 600\n\n600 calories in total...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0076203
Of a $5,000 budget, $1,200 has been spent. What percent is that? We can compute it in Python. ```python budget = 5000 spent = 1200 percent = spent / budget * 100 # 24.0 print(round(percent, 1)) ``` It outputs: 24.0 24.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "24.0", "printed": "24.0", "notation": null}
nlprog_det-setting-0076204
<|start|><|user|> Equal monthly payments repay $3,600 plus 8% simple yearly interest over 24 months. How large is a payment?<|eot|> <|assistant|> ```python principal = 3600 annual_rate = 8 / 100 months = 24 interest = principal * annual_rate * months / 12 payment = (principal + interest) / months print(f"{payment:.2f}"...
chat
[ { "role": "user", "content": "Equal monthly payments repay $3,600 plus 8% simple yearly interest over 24 months. How large is a payment?" }, { "role": "assistant", "content": "```python\nprincipal = 3600\nannual_rate = 8 / 100\nmonths = 24\ninterest = principal * annual_rate * months / 12\npayme...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "174.00", "printed": "174.00", "notation": null}
nlprog_det-setting-0076205
<|start|><|system|> Tools you may use: [{"name": "calculator", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "fetch_filing", "description": "Fetch a...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"calculator\", \"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
[]
[]
275
{"gold": "2430", "printed": "2430", "notation": null}
nlprog_det-setting-0076207
<|start|><|user|> 12 hours of work at $250 an hour: what is the total charge?<|eot|> <|assistant|> ```python hours = 12 rate = 250 bill = hours * rate # 3000 print(f"{bill:.2f}") ``` What it prints — 3000.00 That comes to $3,000.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "12 hours of work at $250 an hour: what is the total charge?" }, { "role": "assistant", "content": "```python\nhours = 12\nrate = 250\nbill = hours * rate # 3000\nprint(f\"{bill:.2f}\")\n```\nWhat it prints — 3000.00\n\nThat comes to $3,000.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "3000.00", "printed": "3000.00", "notation": null}
nlprog_det-setting-0076208
Divide 127 items among 4 groups as evenly as possible with equal groups. How many per group, and how many remain? Python: ```python total = 127 groups = 4 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` # program output: 31 each, 3 left over 31 each, 3 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "31 each, 3 left over", "printed": "31 each, 3 left over", "notation": null}
nlprog_det-setting-0076209
After a 40% fee is taken from a $48,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share? Translated to Python: ```python award = 48000 fee = award * 40 / 100 # 19200.0 remaining = award - fee # 28800.0 per_client = remaining / 3 # 9600.0 print(f"{per_client:.2f}") ``` Result: 9600...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "9600.00", "printed": "9600.00", "notation": null}
nlprog_det-setting-0076210
A recipe for 4 people uses 200 grams of sugar. How many grams are needed for 10 people? ```python grams = 200 serves = 4 needed_for = 10 scaled = grams * needed_for // serves # 500 print(scaled) ``` On running, it outputs: 500 500 grams of sugar are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "500", "printed": "500", "notation": null}
nlprog_det-setting-0076211
A service costs $12 a month or $126 a year. How much does the yearly plan save over 12 monthly payments? In code: ```python monthly = 12 yearly = 126 savings = monthly * 12 - yearly # 18 print(savings) ``` Execution result: 18 The annual plan saves $18.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0076212
Fixed costs are $2,500. Each unit sells for $15 and costs $7 to make. How many units must be sold to break even? Script: ```python import math fixed = 2500 price = 15 variable = 7 units = math.ceil(fixed / (price - variable)) # 313 print(units) ``` The program prints 313, as expected. Break-even is 313 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "313", "printed": "313", "notation": null}
nlprog_det-setting-0076213
<|start|><|user|> Which is cheaper per unit: 8 for $6.62 (A) or 18 for $13.16 (B)?<|eot|> <|assistant|> ```python pack_a = 6.62 / 8 # 0.8275 pack_b = 13.16 / 18 # 0.7311111111111112 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` Shell output — B Pack B is cheaper per item.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Which is cheaper per unit: 8 for $6.62 (A) or 18 for $13.16 (B)?" }, { "role": "assistant", "content": "```python\npack_a = 6.62 / 8 # 0.8275\npack_b = 13.16 / 18 # 0.7311111111111112\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'B'\nprint(cheaper)\n```\nShel...
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0076214
<|start|><|system|> You have access to these functions: {"name": "math_engine", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}} {"name": "convert_units", "description":...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"math_engine\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": ...
nlprog_det
setting
original
null
deterministic
[]
[]
378
{"gold": "2022-04-16", "printed": "2022-04-16", "notation": null}
nlprog_det-setting-0076216
Papers were served by mail on September 13, 2018. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date? A few lines of Python do it: ```python from datetime import date, timedelta served = date(2018, 9, 13) # datetime.date(2018, 9, 13) response_days = 21 mail_days = 3 due = ser...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
183
{"gold": "2018-10-07", "printed": "2018-10-07", "notation": null}
nlprog_det-setting-0076217
<|start|><|user|> Vera earns a 6% commission on $28,837 of sales. What is the commission?<|eot|> <|assistant|> ```python sales = 28837 rate = 6 / 100 # 0.06 commission = sales * rate # 1730.22 print(f"{commission:.2f}") ``` Printed: 1730.22 Vera earns $1,730.22.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Vera earns a 6% commission on $28,837 of sales. What is the commission?" }, { "role": "assistant", "content": "```python\nsales = 28837\nrate = 6 / 100 # 0.06\ncommission = sales * rate # 1730.22\nprint(f\"{commission:.2f}\")\n```\nPrinted: 1730.22\n\nVera earns $...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "1730.22", "printed": "1730.22", "notation": null}
nlprog_det-setting-0076218
Equal monthly payments repay $3,600 plus 5% simple yearly interest over 24 months. How large is a payment? Python, step by step: principal = 3600 annual_rate = 5 / 100 # 0.05 months = 24 interest = principal * annual_rate * months / 12 # 360.0 payment = (principal + interest) / months # 165.0 ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "165.00", "printed": "165.00", "notation": null}
nlprog_det-setting-0076219
<|start|><|user|> A garage charges $4 an hour, never more than $15 a day. How much for 1 hours?<|eot|> <|assistant|> ```python rate = 4 hours = 1 daily_max = 15 cost = min(rate * hours, daily_max) # 4 print(cost) ``` Run it and it prints: 4 Parking costs $4.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A garage charges $4 an hour, never more than $15 a day. How much for 1 hours?" }, { "role": "assistant", "content": "```python\nrate = 4\nhours = 1\ndaily_max = 15\ncost = min(rate * hours, daily_max) # 4\nprint(cost)\n```\nRun it and it prints: 4\n\nParking costs ...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0076220
5 friends split a $210 bill plus a 20% tip evenly. How much does each pay? Computing it: ```python bill = 210 tip_rate = 20 / 100 # 0.2 people = 5 each = bill * (1 + tip_rate) / people # 50.4 print(f"{each:.2f}") ``` Run result = 50.40 Each person pays $50.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "50.40", "printed": "50.40", "notation": null}
nlprog_det-setting-0076221
<|start|><|user|> Water costs $18 a month plus $3.50 for each 1,000 gallons over 3,000. What is owed for 18,000 gallons?<|eot|> <|assistant|> ```python base = 18 rate = 3.5 used = 18 free = 3 bill = base + rate * max(0, used - free) # 70.5 print(f"{bill:.2f}") ``` # execution result: 70.50 The bill is $70.50.<|eot|> ...
chat
[ { "role": "user", "content": "Water costs $18 a month plus $3.50 for each 1,000 gallons over 3,000. What is owed for 18,000 gallons?" }, { "role": "assistant", "content": "```python\nbase = 18\nrate = 3.5\nused = 18\nfree = 3\nbill = base + rate * max(0, used - free) # 70.5\nprint(f\"{bill:.2f}...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "70.50", "printed": "70.50", "notation": null}
nlprog_det-setting-0076222
A settlement of $15,000 is split equally among 3 parties. How much does each party receive? Computation in Python: ```python settlement = 15000 parties = 3 share = settlement // parties # 5000 print(share) ``` (Out: 5000) Each party receives $5,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "5000", "printed": "5000", "notation": null}
nlprog_det-setting-0076223
<|start|><|user|> 1.5 hours of work at $350 an hour: what is the total charge?<|eot|> <|assistant|> ```python hours = 1.5 rate = 350 bill = hours * rate # 525.0 print(f"{bill:.2f}") ``` Out — 525.00 The bill is $525.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "1.5 hours of work at $350 an hour: what is the total charge?" }, { "role": "assistant", "content": "```python\nhours = 1.5\nrate = 350\nbill = hours * rate # 525.0\nprint(f\"{bill:.2f}\")\n```\nOut — 525.00\n\nThe bill is $525.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "525.00", "printed": "525.00", "notation": null}
nlprog_det-setting-0076224
A 3% increase is applied to $2,200 monthly rent. What is the new amount? Computing it: ```python rent = 2200 increase = 3 / 100 # 0.03 new_rent = rent * (1 + increase) # 2266.0 print(f"{new_rent:.2f}") ``` Program output: 2266.00 It rises to $2,266.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "2266.00", "printed": "2266.00", "notation": null}
nlprog_det-setting-0076225
<|start|><|user|> An unpaid balance of $12,000 accrues 1% simple interest per month. How much interest accrues in 6 months?<|eot|> <|assistant|> $720.00 accrues.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An unpaid balance of $12,000 accrues 1% simple interest per month. How much interest accrues in 6 months?" }, { "role": "assistant", "content": "$720.00 accrues." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "720.00", "printed": "720.00", "notation": null}
nlprog_det-setting-0076226
<|start|><|system|> You help paralegals with routine tasks.<|eot|> <|user|> An invoice lists 7 calendars at $24 each, plus 8% sales tax. What is the invoice total?<|eot|> <|assistant|> ```python quantity = 7 unit_price = 24 subtotal = quantity * unit_price # 168 total = subtotal * (1 + 8 / 100) # 181.44 print(f"{tota...
chat
[ { "role": "system", "content": "You help paralegals with routine tasks." }, { "role": "user", "content": "An invoice lists 7 calendars at $24 each, plus 8% sales tax. What is the invoice total?" }, { "role": "assistant", "content": "```python\nquantity = 7\nunit_price = 24\nsubtotal ...
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "181.44", "printed": "181.44", "notation": null}
nlprog_det-setting-0076227
<|start|><|user|> 4 friends split a $210 bill plus a 18% tip evenly. How much does each pay?<|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}") ``` The run gives 61.95. The share is $61.95 each.<|eot|> <|end|...
chat
[ { "role": "user", "content": "4 friends split a $210 bill plus a 18% tip evenly. How much does each pay?" }, { "role": "assistant", "content": "```python\nbill = 210\ntip_rate = 18 / 100 # 0.18\npeople = 4\neach = bill * (1 + tip_rate) / people # 61.949999999999996\nprint(f\"{each:.2f}\")\n```...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "61.95", "printed": "61.95", "notation": null}
nlprog_det-setting-0076228
What day of the week is August 7, 2015? A Python solution: ```python from datetime import date hearing = date(2015, 8, 7) # datetime.date(2015, 8, 7) print(hearing.strftime("%A")) ``` Execution result — Friday It is a Friday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "Friday", "printed": "Friday", "notation": null}
nlprog_det-setting-0076229
Convert 32.9 km to meters. ```python km = 32.9 meters = km * 1000 # 32900.0 print(round(meters)) ``` This prints 32900, as expected. 32,900 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "32900", "printed": "32900", "notation": null}
nlprog_det-setting-0076230
An attorney bills 2 hours at $350 per hour. What is the bill? One way, in code: ```python hours = 2 rate = 350 bill = hours * rate # 700 print(f"{bill:.2f}") ``` Program output — 700.00 That comes to $700.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "700.00", "printed": "700.00", "notation": null}
nlprog_det-setting-0076231
With 20% off, what does a $80 kettle cost? Python code: price = 80 discount = 20 / 100 # 0.2 sale_price = price * (1 - discount) # 64.0 print(f"{sale_price:.2f}") It prints 64.00. It costs $64.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "64.00", "printed": "64.00", "notation": null}
nlprog_det-setting-0076232
Fixed costs are $6,000. Each unit sells for $20 and costs $12 to make. How many units must be sold to break even? Here's the code. ```python import math fixed = 6000 price = 20 variable = 12 units = math.ceil(fixed / (price - variable)) # 750 print(units) ``` The printout reads 750. 750 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0076233
Under a 35% contingency agreement, what fee is owed on a $12,000 award? Here's the code. ```python recovery = 12000 rate = 35 / 100 # 0.35 fee = recovery * rate # 4200.0 print(f"{fee:.2f}") ``` The program prints 4200.00, as expected. The fee is $4,200.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "4200.00", "printed": "4200.00", "notation": null}
nlprog_det-setting-0076234
Express 155 hours in days and hours. A Python solution: ```python hours = 155 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` What it prints — 6 days and 11 hours That is 6 days and 11 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "6 days and 11 hours", "printed": "6 days and 11 hours", "notation": null}
nlprog_det-setting-0076235
<|start|><|system|> Available functions (JSON Schema): [{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "py_exec", "description": "Python s...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\...
nlprog_det
setting
original
null
deterministic
[]
[]
364
{"gold": "2028-09-24", "printed": "2028-09-24", "notation": null}
nlprog_det-setting-0076236
After an initial $6,000, the remainder of a $48,000 grant is paid in 6 equal parts. What is each part? Computing it: ```python grant = 48000 up_front = 6000 installments = 6 each = (grant - up_front) / installments # 7000.0 print(f"{each:.2f}") ``` Out = 7000.00 $7,000.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "7000.00", "printed": "7000.00", "notation": null}
nlprog_det-setting-0076237
<|start|><|user|> Find the mean of these test scores: 99, 63, 95, 74, 80, 53 and 75.<|eot|> <|assistant|> The average score is 77.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Find the mean of these test scores: 99, 63, 95, 74, 80, 53 and 75." }, { "role": "assistant", "content": "The average score is 77." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0076238
How many of 32 members form a majority (more than half)? ```python members = 32 majority = members // 2 + 1 # 17 print(majority) ``` (Result: 17) That is 17 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
68
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0076239
Scale 240 g of rice from 2 servings to 6 servings. 720 grams of rice are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "720", "printed": "720", "notation": null}
nlprog_det-setting-0076240
A 210-mile drive at a steady 60 mph takes how many minutes? The trip takes 210 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
25
{"gold": "210", "printed": "210", "notation": null}
nlprog_det-setting-0076241
<|start|><|user|> Shipping costs $12 plus $1.50 per pound. What does a 7-pound parcel cost to ship?<|eot|> <|assistant|> base = 12 per_pound = 1.5 weight = 7 cost = base + per_pound * weight # 22.5 print(f"{cost:.2f}") Interpreter output: 22.50 Shipping costs $22.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Shipping costs $12 plus $1.50 per pound. What does a 7-pound parcel cost to ship?" }, { "role": "assistant", "content": " base = 12\n per_pound = 1.5\n weight = 7\n cost = base + per_pound * weight # 22.5\n print(f\"{cost:.2f}\")\nInterpreter output:...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "22.50", "printed": "22.50", "notation": null}
nlprog_det-setting-0076242
11 folders cost $12 apiece. With 8% tax added, what is the total? Computing it: ```python quantity = 11 unit_price = 12 subtotal = quantity * unit_price total = subtotal * (1 + 8 / 100) print(f"{total:.2f}") ``` It prints: 142.56 The invoice total is $142.56.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "142.56", "printed": "142.56", "notation": null}
nlprog_det-setting-0076243
Equipment costs $45,000, has a salvage value of $3,000, and a useful life of 5 years. What is the straight-line depreciation per year? We can compute it in Python. ```python cost = 45000 salvage = 3000 years = 5 per_year = (cost - salvage) / years # 8400.0 print(f"{per_year:.2f}") ``` What it prints — 8400.00 Deprec...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "8400.00", "printed": "8400.00", "notation": null}
nlprog_det-setting-0076244
A shift runs from 9:22 AM to 2:36 PM. How long is it in minutes? We write it as a program: ```python start = 9 * 60 + 22 # 562 end = 14 * 60 + 36 # 876 print(end - start) ``` The printout reads 314. 314 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "314", "printed": "314", "notation": null}
nlprog_det-setting-0076245
The rules require 1/3 of 55 members (round up) to be present. How many is that? Program: ```python import math members = 55 quorum = math.ceil(members * 1 / 3) # 19 print(quorum) ``` Printed: 19 19 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0076246
Someone born December 2, 1967 turns how old by July 27, 2027? Give the age in whole years. Programmatically: ```python from datetime import date born = date(1967, 12, 2) # datetime.date(1967, 12, 2) on = date(2027, 7, 27) # datetime.date(2027, 7, 27) age = on.year - born.year - ((on.month, on.day) < (born.month, bor...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
157
{"gold": "59", "printed": "59", "notation": null}
nlprog_det-setting-0076247
<|start|><|user|> Ulla was born on November 1, 2002. How old is Ulla on April 1, 2022?<|eot|> <|assistant|> ```python from datetime import date born = date(2002, 11, 1) # datetime.date(2002, 11, 1) on = date(2022, 4, 1) # datetime.date(2022, 4, 1) age = on.year - born.year - ((on.month, on.day) < (born.month, born.da...
chat
[ { "role": "user", "content": "Ulla was born on November 1, 2002. How old is Ulla on April 1, 2022?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(2002, 11, 1) # datetime.date(2002, 11, 1)\non = date(2022, 4, 1) # datetime.date(2022, 4, 1)\nage = on.yea...
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "19", "printed": "19", "notation": null}