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-0074315
With 20 rows of 17 chairs and 13 empty chairs, how many chairs are taken? One way, in code: ```python rows = 20 per_row = 17 empty = 13 seated = rows * per_row - empty # 327 print(seated) ``` Output: 327 327 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "327", "printed": "327", "notation": null}
nlprog_det-setting-0074317
<|start|><|user|> Straight-line depreciation: cost $12,000, salvage $2,000, 3 years. How much per year?<|eot|> <|assistant|> Depreciation is $3,333.33 per year.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Straight-line depreciation: cost $12,000, salvage $2,000, 3 years. How much per year?" }, { "role": "assistant", "content": "Depreciation is $3,333.33 per year." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
54
{"gold": "3333.33", "printed": "3333.33", "notation": null}
nlprog_det-setting-0074318
A meal costs $203.38. How much is a 22% tip? Here's the code. ```python bill = 203.38 tip_rate = 22 / 100 # 0.22 tip = bill * tip_rate # 44.7436 print(f"{tip:.2f}") ``` What it prints: 44.74 Leave $44.74.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "44.74", "printed": "44.74", "notation": null}
nlprog_det-setting-0074319
How many whole days and leftover hours are in 269 hours? 269 hours is 11 days and 5 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
26
{"gold": "11 days and 5 hours", "printed": "11 days and 5 hours", "notation": null}
nlprog_det-setting-0074320
Starting with 280 rulers and using 32 per day, how many remain after 8 days? Programmatically: ```python stock = 280 per_day = 32 days = 8 left = stock - per_day * days # 24 print(left) ``` Output of the run — 24 24 rulers are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0074321
The bridge was finished in 1997. How many years had passed by 2012? As a program: ```python start_year = 1997 end_year = 2012 print(end_year - start_year) ``` # console output: 15 That is 15 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0074322
<|start|><|user|> On which weekday does June 8, 2010 fall?<|eot|> <|assistant|> ```python from datetime import date hearing = date(2010, 6, 8) # datetime.date(2010, 6, 8) print(hearing.strftime("%A")) ``` Execution result — Tuesday It is a Tuesday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "On which weekday does June 8, 2010 fall?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(2010, 6, 8) # datetime.date(2010, 6, 8)\nprint(hearing.strftime(\"%A\"))\n```\nExecution result — Tuesday\n\nIt is a Tuesday." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "Tuesday", "printed": "Tuesday", "notation": null}
nlprog_det-setting-0074323
After a 30% fee is taken from a $30,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share? Computing it: ```python award = 30000 fee = award * 30 / 100 # 9000.0 remaining = award - fee # 21000.0 per_client = remaining / 3 # 7000.0 print(f"{per_client:.2f}") ``` Python prints: 7000.0...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "7000.00", "printed": "7000.00", "notation": null}
nlprog_det-setting-0074324
Parking is $3 per hour with a daily maximum of $24. What do 2 hours cost? Computing it: ```python rate = 3 hours = 2 daily_max = 24 cost = min(rate * hours, daily_max) # 6 print(cost) ``` Out: 6 Parking costs $6.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0074325
From 2024 to 2052, how many years is that? One way, in code: ```python start_year = 2024 end_year = 2052 print(end_year - start_year) ``` It prints 28. 28 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
68
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0074326
At 60 miles per hour, how many minutes does a 195-mile trip take? Python, step by step: ```python distance = 195 speed = 60 minutes = distance / speed * 60 # 195.0 print(round(minutes)) ``` Executed, it shows: 195 The trip takes 195 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "195", "printed": "195", "notation": null}
nlprog_det-setting-0074327
<|start|><|user|> To read 396 pages in 11 days, how many pages per day are needed?<|eot|> <|assistant|> ```python pages = 396 days = 11 per_day = pages // days # 36 print(per_day) ``` It prints 36, as expected. 36 pages a day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "To read 396 pages in 11 days, how many pages per day are needed?" }, { "role": "assistant", "content": "```python\npages = 396\ndays = 11\nper_day = pages // days # 36\nprint(per_day)\n```\nIt prints 36, as expected.\n\n36 pages a day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0074328
<|start|><|user|> Pack A has 8 items for $8.25. Pack B has 20 items for $12.67. Which has the lower price per item?<|eot|> <|assistant|> ```python pack_a = 8.25 / 8 # 1.03125 pack_b = 12.67 / 20 # 0.6335 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` Output: B Pack B is cheaper per item.<|eot|> ...
chat
[ { "role": "user", "content": "Pack A has 8 items for $8.25. Pack B has 20 items for $12.67. Which has the lower price per item?" }, { "role": "assistant", "content": "```python\npack_a = 8.25 / 8 # 1.03125\npack_b = 12.67 / 20 # 0.6335\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'B'\npri...
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0074330
A meeting starts at 1:00 PM and lasts 150 minutes. When does it end? Let the code do the arithmetic: ```python start = 13 * 60 + 0 end = start + 150 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` It outputs: 3:30 PM It ends at 3:30 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "3:30 PM", "printed": "3:30 PM", "notation": null}
nlprog_det-setting-0074331
<|start|><|user|> Cyrus earns a 3% commission on $50,210 of sales. What is the commission?<|eot|> <|assistant|> ```python sales = 50210 rate = 3 / 100 # 0.03 commission = sales * rate # 1506.3 print(f"{commission:.2f}") ``` Running this gives 1506.30. Cyrus earns $1,506.30.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Cyrus earns a 3% commission on $50,210 of sales. What is the commission?" }, { "role": "assistant", "content": "```python\nsales = 50210\nrate = 3 / 100 # 0.03\ncommission = sales * rate # 1506.3\nprint(f\"{commission:.2f}\")\n```\nRunning this gives 1506.30.\n\nC...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "1506.30", "printed": "1506.30", "notation": null}
nlprog_det-setting-0074334
A lawyer's fee is 25% of a $40,000 recovery. How large is the fee? Computing it: ```python recovery = 40000 rate = 25 / 100 # 0.25 fee = recovery * rate # 10000.0 print(f"{fee:.2f}") ``` Execution prints 10000.00, as expected. The fee is $10,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "10000.00", "printed": "10000.00", "notation": null}
nlprog_det-setting-0074335
Grace and Femi share $867 in the ratio 1:2. How much does Grace get? Grace gets $289.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "289", "printed": "289", "notation": null}
nlprog_det-setting-0074336
<|start|><|user|> An unpaid balance of $12,000 accrues 1% simple interest per month. How much interest accrues in 3 months?<|eot|> <|assistant|> ```python balance = 12000 monthly_rate = 1 / 100 # 0.01 months = 3 interest = balance * monthly_rate * months # 360.0 print(f"{interest:.2f}") ``` Python prints 360.00. $36...
chat
[ { "role": "user", "content": "An unpaid balance of $12,000 accrues 1% simple interest per month. How much interest accrues in 3 months?" }, { "role": "assistant", "content": "```python\nbalance = 12000\nmonthly_rate = 1 / 100 # 0.01\nmonths = 3\ninterest = balance * monthly_rate * months # 360...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "360.00", "printed": "360.00", "notation": null}
nlprog_det-setting-0074337
A library charges $0.50 per book per day late. What is the fine for 3 books that are 8 days late? A few lines of Python do it: ```python per_day = 0.5 days_late = 8 books = 3 fine = per_day * days_late * books # 12.0 print(f"{fine:.2f}") ``` (Program output: 12.00) The fine is $12.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "12.00", "printed": "12.00", "notation": null}
nlprog_det-setting-0074338
A $120 dinner bill gets a 20% tip, and 6 people share the cost equally. What is each person's share? Python makes this quick: ```python bill = 120 tip_rate = 20 / 100 # 0.2 people = 6 each = bill * (1 + tip_rate) / people # 24.0 print(f"{each:.2f}") ``` The run gives 24.00, as expected. The share is $24.00 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "24.00", "printed": "24.00", "notation": null}
nlprog_det-setting-0074339
<|start|><|user|> A customer buys 1 headsets at $14 each, 4 lanyards at $18 each, 4 staplers at $7 each, 5 binders at $30 each and pays with $300. How much change is due?<|eot|> <|assistant|> The change is $36.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A customer buys 1 headsets at $14 each, 4 lanyards at $18 each, 4 staplers at $7 each, 5 binders at $30 each and pays with $300. How much change is due?" }, { "role": "assistant", "content": "The change is $36." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
67
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0074340
A claim accrued on October 26, 2015. The limitations period is 5 years. On what date does it expire? from datetime import date accrued = date(2015, 10, 26) # datetime.date(2015, 10, 26) years = 5 expires = accrued.replace(year=accrued.year + years) # datetime.date(2020, 10, 26) print(expires.isof...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "2020-10-26", "printed": "2020-10-26", "notation": null}
nlprog_det-setting-0074341
Shipping costs $12 plus $2.50 per pound. What does a 26-pound parcel cost to ship? ```python base = 12 per_pound = 2.5 weight = 26 cost = base + per_pound * weight # 77.0 print(f"{cost:.2f}") ``` The script prints: 77.00 The charge is $77.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "77.00", "printed": "77.00", "notation": null}
nlprog_det-setting-0074342
Monthly: $9. Annual: $90. What is saved per year by paying annually? $18 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0074343
2 clients win $72,000. The lawyer takes 30%, and the rest is split equally. How much does each client get? Let the code do the arithmetic: ```python award = 72000 fee = award * 30 / 100 # 21600.0 remaining = award - fee # 50400.0 per_client = remaining / 2 # 25200.0 print(f"{per_client:.2f}") ``` Running it prints ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "25200.00", "printed": "25200.00", "notation": null}
nlprog_det-setting-0074344
<|start|><|user|> Each storage box holds 12 files. How many boxes are needed for 439 files?<|eot|> <|assistant|> import math files = 439 per_box = 12 boxes = math.ceil(files / per_box) print(boxes) Result: 37 It takes 37 boxes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each storage box holds 12 files. How many boxes are needed for 439 files?" }, { "role": "assistant", "content": " import math\n files = 439\n per_box = 12\n boxes = math.ceil(files / per_box)\n print(boxes)\nResult: 37\n\nIt takes 37 boxes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "37", "printed": "37", "notation": null}
nlprog_det-setting-0074345
Equipment costs $18,000, has a salvage value of $3,000, and a useful life of 5 years. What is the straight-line depreciation per year? In Python: ```python cost = 18000 salvage = 3000 years = 5 per_year = (cost - salvage) / years # 3000.0 print(f"{per_year:.2f}") ``` Executed, it shows: 3000.00 Depreciation is $3,00...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "3000.00", "printed": "3000.00", "notation": null}
nlprog_det-setting-0074346
At an exchange rate of 0.92 CAD per USD, how many CAD is 6,674 USD? Written as code: ```python amount = 6674 rate = 0.92 converted = amount * rate # 6140.08 print(f"{converted:.2f}") ``` Executed, it shows 6140.08. It converts to 6,140.08 CAD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "6140.08", "printed": "6140.08", "notation": null}
nlprog_det-setting-0074347
<|start|><|user|> A service costs $19 a month or $210 a year. How much does the yearly plan save over 12 monthly payments?<|eot|> <|assistant|> ```python monthly = 19 yearly = 210 savings = monthly * 12 - yearly # 18 print(savings) ``` # output: 18 The annual plan saves $18.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A service costs $19 a month or $210 a year. How much does the yearly plan save over 12 monthly payments?" }, { "role": "assistant", "content": "```python\nmonthly = 19\nyearly = 210\nsavings = monthly * 12 - yearly # 18\nprint(savings)\n```\n# output: 18\n\nThe ann...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0074348
How many minutes pass from 10:31 AM to 12:11 PM on the same day? In Python: start = 10 * 60 + 31 # 631 end = 12 * 60 + 11 # 731 print(end - start) It prints 100. It is 100 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "100", "printed": "100", "notation": null}
nlprog_det-setting-0074349
Divide 100 items among 6 groups as evenly as possible with equal groups. How many per group, and how many remain? A few lines of Python do it: ```python total = 100 groups = 6 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` The interpreter prints: 16 each, 4 left over...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "16 each, 4 left over", "printed": "16 each, 4 left over", "notation": null}
nlprog_det-setting-0074351
Copies cost $15 plus $0.10 for each page beyond 0. How much for 34 pages? Here is a short program for it. ```python pages = 34 base = 15 per_page = 0.1 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 18.4 print(f"{cost:.2f}") ``` The printout reads 18.40. The copy costs $18.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "18.40", "printed": "18.40", "notation": null}
nlprog_det-setting-0074352
With 25% off, what does a $120 printer cost? A few lines of Python do it: ```python price = 120 discount = 25 / 100 # 0.25 sale_price = price * (1 - discount) # 90.0 print(f"{sale_price:.2f}") ``` # out: 90.00 The sale price is $90.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "90.00", "printed": "90.00", "notation": null}
nlprog_det-setting-0074353
With $12,500 in costs and $15,000 in revenue, what percent of revenue is profit? Round to one decimal. ```python revenue = 15000 costs = 12500 profit = revenue - costs # 2500 margin = profit / revenue * 100 # 16.666666666666664 print(round(margin, 1)) ``` Python prints 16.7, as expected. Profit is 16.7% of revenue.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "16.7", "printed": "16.7", "notation": null}
nlprog_det-setting-0074354
Revenue is $13,000 and costs are $8,000. What is the profit margin as a percent of revenue (one decimal)? Here's the code. revenue = 13000 costs = 8000 profit = revenue - costs # 5000 margin = profit / revenue * 100 # 38.46153846153847 print(round(margin, 1)) Out = 38.5 Profit is 38.5% of revenu...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "38.5", "printed": "38.5", "notation": null}
nlprog_det-setting-0074355
<|start|><|user|> Signe earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 47-hour week?<|eot|> <|assistant|> The weekly pay is $808.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Signe earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 47-hour week?" }, { "role": "assistant", "content": "The weekly pay is $808.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
50
{"gold": "808.00", "printed": "808.00", "notation": null}
nlprog_det-setting-0074356
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> A penalty of $25 a day accrues, capped at $5,000. What is owed after 4 days?<|eot|> <|assistant|> ```python per_day = 25 days = 4 cap = 5000 fine = min(per_day * days, cap) # 100 print(fine) ``` Run output — 100 $100 is owed.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "role": "user", "content": "A penalty of $25 a day accrues, capped at $5,000. What is owed after 4 days?" }, { "role": "assistant", "content": "```python\nper_day = 25\ndays = 4\ncap = 5000\nfine = min(per_day * day...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "100", "printed": "100", "notation": null}
nlprog_det-setting-0074357
<|start|><|system|> Tools you may use: [{"name": "interpreter", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "lookup_statute",...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"interpreter\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \...
nlprog_det
setting
original
null
deterministic
[]
[]
366
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0074358
<|start|><|user|> Revenue is $20,500 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|> <|assistant|> The margin is 2.4%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Revenue is $20,500 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?" }, { "role": "assistant", "content": "The margin is 2.4%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "2.4", "printed": "2.4", "notation": null}
nlprog_det-setting-0074359
Rania and Nikhil share $1,308 in the ratio 1:2. How much does Rania get? A short script: ```python total = 1308 parts_a = 1 parts_b = 2 share_a = total * parts_a // (parts_a + parts_b) # 436 print(share_a) ``` Running it prints 436. Rania gets $436.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "436", "printed": "436", "notation": null}
nlprog_det-setting-0074360
<|start|><|user|> 6 walks at 150 calories each burn how many calories in total?<|eot|> <|assistant|> per_session = 150 sessions = 6 total = per_session * sessions # 900 print(total) It outputs 900. That burns 900 calories.<|eot|> <|end|>
chat
[ { "role": "user", "content": "6 walks at 150 calories each burn how many calories in total?" }, { "role": "assistant", "content": " per_session = 150\n sessions = 6\n total = per_session * sessions # 900\n print(total)\nIt outputs 900.\n\nThat burns 900 calories." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0074361
Pay is $22.40/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 53 hours? rate = 22.4 hours = 53 regular = 40 * rate # 896.0 overtime = (hours - 40) * rate * 1.5 # 436.79999999999995 pay = regular + overtime # 1332.8 print(f"{pay:.2f}") Printed: 1332.80 The weekly pay...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "1332.80", "printed": "1332.80", "notation": null}
nlprog_det-setting-0074362
<|start|><|user|> With 25% off, what does a $40 bicycle helmet cost?<|eot|> <|assistant|> ```python price = 40 discount = 25 / 100 # 0.25 sale_price = price * (1 - discount) # 30.0 print(f"{sale_price:.2f}") ``` The code prints 30.00. The sale price is $30.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 25% off, what does a $40 bicycle helmet cost?" }, { "role": "assistant", "content": "```python\nprice = 40\ndiscount = 25 / 100 # 0.25\nsale_price = price * (1 - discount) # 30.0\nprint(f\"{sale_price:.2f}\")\n```\nThe code prints 30.00.\n\nThe sale price is ...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "30.00", "printed": "30.00", "notation": null}
nlprog_det-setting-0074363
Prorate $1,500 of monthly rent for 21 days of a 30-day month. ```python rent = 1500 days_in_month = 30 days_occupied = 21 prorated = rent * days_occupied / days_in_month # 1050.0 print(f"{prorated:.2f}") ``` (Printed: 1050.00) The tenant owes $1,050.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "1050.00", "printed": "1050.00", "notation": null}
nlprog_det-setting-0074364
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> At 65 miles per hour, how many minutes does a 195-mile trip take?<|eot|> <|assistant|> The trip takes 180 minutes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "At 65 miles per hour, how many minutes does a 195-mile trip take?" }, { "role": "assistant", "content": "The trip takes 180 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
49
{"gold": "180", "printed": "180", "notation": null}
nlprog_det-setting-0074365
<|start|><|user|> Attendance was 64 out of 100. Express it as a percent.<|eot|> <|assistant|> ```python present = 64 total = 100 percent = present / total * 100 # 64.0 print(round(percent, 1)) ``` # program output: 64.0 Attendance was 64.0%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Attendance was 64 out of 100. Express it as a percent." }, { "role": "assistant", "content": "```python\npresent = 64\ntotal = 100\npercent = present / total * 100 # 64.0\nprint(round(percent, 1))\n```\n# program output: 64.0\n\nAttendance was 64.0%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "64.0", "printed": "64.0", "notation": null}
nlprog_det-setting-0074366
An invoice lists 21 markers at $7 each, plus 5% sales tax. What is the invoice total? Code: quantity = 21 unit_price = 7 subtotal = quantity * unit_price total = subtotal * (1 + 5 / 100) print(f"{total:.2f}") Python prints: 154.35 The total with tax is $154.35.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "154.35", "printed": "154.35", "notation": null}
nlprog_det-setting-0074367
<|start|><|user|> A 270-mile drive at a steady 45 mph takes how many minutes?<|eot|> <|assistant|> ```python distance = 270 speed = 45 minutes = distance / speed * 60 # 360.0 print(round(minutes)) ``` Executed, it shows: 360 360 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 270-mile drive at a steady 45 mph takes how many minutes?" }, { "role": "assistant", "content": "```python\ndistance = 270\nspeed = 45\nminutes = distance / speed * 60 # 360.0\nprint(round(minutes))\n```\nExecuted, it shows: 360\n\n360 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "360", "printed": "360", "notation": null}
nlprog_det-setting-0074368
Buying 6 clipboards at $28 each, 6 mugs at $11 each, 3 lanyards at $13 each, someone hands over $300. What change comes back? Python: ```python items = [(6, 28), (6, 11), (3, 13)] total = sum(q * p for q, p in items) # 273 paid = 300 change = paid - total # 27 print(change) ``` (Execution result: 27) The change is ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0074369
<|start|><|user|> Nikhil and Wen share $2,472 in the ratio 3:5. How much does Nikhil get?<|eot|> <|assistant|> Nikhil gets $927.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Nikhil and Wen share $2,472 in the ratio 3:5. How much does Nikhil get?" }, { "role": "assistant", "content": "Nikhil gets $927." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "927", "printed": "927", "notation": null}
nlprog_det-setting-0074371
25 desk lamps cost $4 apiece. With 10% tax added, what is the total? Written as code: ```python quantity = 25 unit_price = 4 subtotal = quantity * unit_price # 100 total = subtotal * (1 + 10 / 100) # 110.00000000000001 print(f"{total:.2f}") ``` Printed: 110.00 The total with tax is $110.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "110.00", "printed": "110.00", "notation": null}
nlprog_det-setting-0074373
A shift runs from 9:40 AM to 4:07 PM. How long is it in minutes? ```python start = 9 * 60 + 40 # 580 end = 16 * 60 + 7 # 967 print(end - start) ``` The program prints: 387 387 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "387", "printed": "387", "notation": null}
nlprog_det-setting-0074374
A garage charges $4 an hour, never more than $20 a day. How much for 2 hours? Let's compute it with Python. ```python rate = 4 hours = 2 daily_max = 20 cost = min(rate * hours, daily_max) # 8 print(cost) ``` Running it prints 8, as expected. Parking costs $8.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0074375
Under a 40% contingency agreement, what fee is owed on a $12,000 award? In Python: ```python recovery = 12000 rate = 40 / 100 # 0.4 fee = recovery * rate # 4800.0 print(f"{fee:.2f}") ``` The script prints 4800.00, as expected. The fee is $4,800.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "4800.00", "printed": "4800.00", "notation": null}
nlprog_det-setting-0074376
A quorum is 2/3 of the 14 members, rounded up. How many members make a quorum? Python does the arithmetic: ```python import math members = 14 quorum = math.ceil(members * 2 / 3) # 10 print(quorum) ``` Execution prints 10. 10 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0074378
Equipment costs $18,000, has a salvage value of $2,000, and a useful life of 4 years. What is the straight-line depreciation per year? Let the code do the arithmetic: ```python cost = 18000 salvage = 2000 years = 4 per_year = (cost - salvage) / years print(f"{per_year:.2f}") ``` # execution result: 4000.00 Depreciati...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "4000.00", "printed": "4000.00", "notation": null}
nlprog_det-setting-0074380
<|start|><|user|> Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 43 hours?<|eot|> <|assistant|> ```python rate = 16.0 hours = 43 regular = 40 * rate # 640.0 overtime = (hours - 40) * rate * 1.5 # 72.0 pay = regular + overtime # 712.0 print(f"{pay:.2f}") ``` Result — 712.00 Th...
chat
[ { "role": "user", "content": "Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 43 hours?" }, { "role": "assistant", "content": "```python\nrate = 16.0\nhours = 43\nregular = 40 * rate # 640.0\novertime = (hours - 40) * rate * 1.5 # 72.0\npay = regular + ov...
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "712.00", "printed": "712.00", "notation": null}
nlprog_det-setting-0074381
Water costs $20 a month plus $4.75 for each 1,000 gallons over 2,000. What is owed for 3,000 gallons? ```python base = 20 rate = 4.75 used = 3 free = 2 bill = base + rate * max(0, used - free) # 24.75 print(f"{bill:.2f}") ``` Run output: 24.75 $24.75 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "24.75", "printed": "24.75", "notation": null}
nlprog_det-setting-0074382
<|start|><|user|> An office budget of $8,000 has expenses of $989, $2,375. How much of the budget is left?<|eot|> <|assistant|> ```python budget = 8000 expenses = [989, 2375] left = budget - sum(expenses) # 4636 print(left) ``` Console output: 4636 The remaining budget is $4,636.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An office budget of $8,000 has expenses of $989, $2,375. How much of the budget is left?" }, { "role": "assistant", "content": "```python\nbudget = 8000\nexpenses = [989, 2375]\nleft = budget - sum(expenses) # 4636\nprint(left)\n```\nConsole output: 4636\n\nThe rem...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "4636", "printed": "4636", "notation": null}
nlprog_det-setting-0074383
Pack A has 12 items for $5.40. Pack B has 30 items for $7.05. Which has the lower price per item? ```python pack_a = 5.4 / 12 pack_b = 7.05 / 30 cheaper = "A" if pack_a < pack_b else "B" print(cheaper) ``` stdout: B B has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0074384
Buying 1 staplers at $3 each, 5 file boxes at $6 each, 2 scissors at $13 each, someone hands over $100. What change comes back? Code: ```python items = [(1, 3), (5, 6), (2, 13)] total = sum(q * p for q, p in items) # 59 paid = 100 change = paid - total # 41 print(change) ``` Printed result — 41 $41 comes back.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "41", "printed": "41", "notation": null}
nlprog_det-setting-0074385
An invoice lists 18 pens at $4 each, plus 8% sales tax. What is the invoice total? Python code: ```python quantity = 18 unit_price = 4 subtotal = quantity * unit_price # 72 total = subtotal * (1 + 8 / 100) # 77.76 print(f"{total:.2f}") ``` The program prints: 77.76 The invoice total is $77.76.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "77.76", "printed": "77.76", "notation": null}
nlprog_det-setting-0074386
The landlord deducts $85 and $120 from a $1,000 deposit. What is returned to the tenant? The refund is $795.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "795", "printed": "795", "notation": null}
nlprog_det-setting-0074387
2 clients win $96,000. The lawyer takes 25%, and the rest is split equally. How much does each client get? The program: ```python award = 96000 fee = award * 25 / 100 # 24000.0 remaining = award - fee # 72000.0 per_client = remaining / 2 # 36000.0 print(f"{per_client:.2f}") ``` Output of the run — 36000.00 Each sh...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "36000.00", "printed": "36000.00", "notation": null}
nlprog_det-setting-0074388
Meals are $69 per day and lodging $110 per night. What is the allowance for 5 days and 4 nights? A few lines of Python do it: ```python days = 5 meal_rate = 69 lodging_rate = 110 nights = days - 1 # 4 total = days * meal_rate + nights * lodging_rate # 785 print(total) ``` Shell output — 785 That comes to $785.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "785", "printed": "785", "notation": null}
nlprog_det-setting-0074389
164 copies of a 25-page packet are printed at $0.12 per page. What is the cost? In code: ```python pages = 25 copies = 164 cost_per_page = 0.12 cost = pages * copies * cost_per_page # 492.0 print(f"{cost:.2f}") ``` Python prints 492.00. The job costs $492.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "492.00", "printed": "492.00", "notation": null}
nlprog_det-setting-0074391
Priya and Lucia share $4,347 in the ratio 2:5. How much does Priya get? Let the code do the arithmetic: total = 4347 parts_a = 2 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 1242 print(share_a) When run, it prints 1242, as expected. Priya's share is $1,242.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "1242", "printed": "1242", "notation": null}
nlprog_det-setting-0074392
After an initial $0, the remainder of a $60,000 grant is paid in 12 equal parts. What is each part? Here is the program. ```python grant = 60000 up_front = 0 installments = 12 each = (grant - up_front) / installments # 5000.0 print(f"{each:.2f}") ``` # printed result: 5000.00 Each installment is $5,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "5000.00", "printed": "5000.00", "notation": null}
nlprog_det-setting-0074393
The landlord deducts $85, $200 and $85 from a $800 deposit. What is returned to the tenant? As a program: ```python deposit = 800 deductions = [85, 200, 85] refund = deposit - sum(deductions) # 430 print(refund) ``` Output: 430 The refund is $430.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "430", "printed": "430", "notation": null}
nlprog_det-setting-0074394
How many days are there from December 18, 2027 to December 14, 2028? Script: ```python from datetime import date first = date(2027, 12, 18) # datetime.date(2027, 12, 18) second = date(2028, 12, 14) # datetime.date(2028, 12, 14) print((second - first).days) ``` Console output — 362 There are 362 days between the two...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "362", "printed": "362", "notation": null}
nlprog_det-setting-0074395
<|start|><|user|> How long, in days, is it from January 18, 2021 until October 17, 2021?<|eot|> <|assistant|> ```python from datetime import date first = date(2021, 1, 18) # datetime.date(2021, 1, 18) second = date(2021, 10, 17) # datetime.date(2021, 10, 17) print((second - first).days) ``` Python prints: 272 It is ...
chat
[ { "role": "user", "content": "How long, in days, is it from January 18, 2021 until October 17, 2021?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2021, 1, 18) # datetime.date(2021, 1, 18)\nsecond = date(2021, 10, 17) # datetime.date(2021, 10, 17)\np...
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "272", "printed": "272", "notation": null}
nlprog_det-setting-0074396
A $240 dinner bill gets a 20% tip, and 4 people share the cost equally. What is each person's share? Here is a short program for it. ```python bill = 240 tip_rate = 20 / 100 # 0.2 people = 4 each = bill * (1 + tip_rate) / people # 72.0 print(f"{each:.2f}") ``` Executed, it shows: 72.00 Each person pays $72.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "72.00", "printed": "72.00", "notation": null}
nlprog_det-setting-0074397
<|start|><|user|> An unpaid balance of $1,000 accrues 1.5% simple interest per month. How much interest accrues in 5 months?<|eot|> <|assistant|> balance = 1000 monthly_rate = 1.5 / 100 # 0.015 months = 5 interest = balance * monthly_rate * months # 75.0 print(f"{interest:.2f}") It prints 75.00. ...
chat
[ { "role": "user", "content": "An unpaid balance of $1,000 accrues 1.5% simple interest per month. How much interest accrues in 5 months?" }, { "role": "assistant", "content": " balance = 1000\n monthly_rate = 1.5 / 100 # 0.015\n months = 5\n interest = balance * monthly_rate * month...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "75.00", "printed": "75.00", "notation": null}
nlprog_det-setting-0074398
<|start|><|system|> Tools you may use: {"name": "python_exec", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> <|user|> Under a 30% contingency agreeme...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"python_exec\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snipp...
nlprog_det
setting
original
null
deterministic
[]
[]
230
{"gold": "27000.00", "printed": "27000.00", "notation": null}
nlprog_det-setting-0074399
Someone works 12 hours at $19.55 per hour. What are the earnings? Program: ```python rate = 19.55 hours = 12 earnings = rate * hours # 234.60000000000002 print(f"{earnings:.2f}") ``` Python prints 234.60, as expected. The pay is $234.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "234.60", "printed": "234.60", "notation": null}
nlprog_det-setting-0074400
Each of Yara's walks burns 150 calories. How many calories over 3 walks? We can compute it in Python. ```python per_session = 150 sessions = 3 total = per_session * sessions # 450 print(total) ``` It outputs 450. 450 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "450", "printed": "450", "notation": null}
nlprog_det-setting-0074401
A 140-mile drive at a steady 40 mph takes how many minutes? The Python version: ```python distance = 140 speed = 40 minutes = distance / speed * 60 # 210.0 print(round(minutes)) ``` Printed = 210 210 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "210", "printed": "210", "notation": null}
nlprog_det-setting-0074403
Someone works 36 hours at $24.16 per hour. What are the earnings? The program: ```python rate = 24.16 hours = 36 earnings = rate * hours # 869.76 print(f"{earnings:.2f}") ``` # program output: 869.76 That earns $869.76.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "869.76", "printed": "869.76", "notation": null}
nlprog_det-setting-0074404
A chair costs $40. It is 25% off. What is the sale price? One way, in code: ```python price = 40 discount = 25 / 100 # 0.25 sale_price = price * (1 - discount) # 30.0 print(f"{sale_price:.2f}") ``` Console output: 30.00 It costs $30.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "30.00", "printed": "30.00", "notation": null}
nlprog_det-setting-0074405
Papers were served by mail on October 1, 2019. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date? Let the code do the arithmetic: ```python from datetime import date, timedelta served = date(2019, 10, 1) # datetime.date(2019, 10, 1) response_days = 30 mail_days = 3 due = ser...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
187
{"gold": "2019-11-03", "printed": "2019-11-03", "notation": null}
nlprog_det-setting-0074406
<|start|><|user|> A court charges $15 per request plus $0.50 per page after the first 20 pages. What does a 11-page copy cost?<|eot|> <|assistant|> ```python pages = 11 base = 15 per_page = 0.5 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page print(f"{cost:.2f}") ``` The interpreter prints: 15.00 Th...
chat
[ { "role": "user", "content": "A court charges $15 per request plus $0.50 per page after the first 20 pages. What does a 11-page copy cost?" }, { "role": "assistant", "content": "```python\npages = 11\nbase = 15\nper_page = 0.5\nfree_pages = 20\ncost = base + max(0, pages - free_pages) * per_page...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "15.00", "printed": "15.00", "notation": null}
nlprog_det-setting-0074407
<|start|><|user|> $10,000 is invested at 5% compounded yearly. What is it worth after 2 years?<|eot|> <|assistant|> ```python principal = 10000 rate = 5 / 100 # 0.05 years = 2 value = principal * (1 + rate) ** years # 11025.0 print(f"{value:.2f}") ``` It prints 11025.00, as expected. The balance is $11,025.00.<|eot|...
chat
[ { "role": "user", "content": "$10,000 is invested at 5% compounded yearly. What is it worth after 2 years?" }, { "role": "assistant", "content": "```python\nprincipal = 10000\nrate = 5 / 100 # 0.05\nyears = 2\nvalue = principal * (1 + rate) ** years # 11025.0\nprint(f\"{value:.2f}\")\n```\nIt ...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "11025.00", "printed": "11025.00", "notation": null}
nlprog_det-setting-0074408
<|start|><|user|> From a $7,500 retainer, 13 hours at $275/hour have been drawn. What remains?<|eot|> <|assistant|> ```python retainer = 7500 hours = 13 rate = 275 left = retainer - hours * rate # 3925 print(left) ``` Python prints 3925. $3,925 of the retainer is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From a $7,500 retainer, 13 hours at $275/hour have been drawn. What remains?" }, { "role": "assistant", "content": "```python\nretainer = 7500\nhours = 13\nrate = 275\nleft = retainer - hours * rate # 3925\nprint(left)\n```\nPython prints 3925.\n\n$3,925 of the ret...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "3925", "printed": "3925", "notation": null}
nlprog_det-setting-0074409
A count moves from 500 to 425. By what percent did it change (use a minus sign for a drop)? We can compute it in Python. ```python old = 500 new = 425 change = (new - old) / old * 100 # -15.0 print(round(change)) ``` (Execution result: -15) The change is -15%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "-15", "printed": "-15", "notation": null}
nlprog_det-setting-0074410
How many 2-foot square tiles cover a 13 ft by 9 ft floor (round up)? Python version: ```python import math length = 13 width = 9 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 30 print(tiles) ``` What it prints — 30 It takes 30 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0074411
<|start|><|user|> A recipe for 4 people uses 150 grams of lentils. How many grams are needed for 8 people?<|eot|> <|assistant|> ```python grams = 150 serves = 4 needed_for = 8 scaled = grams * needed_for // serves # 300 print(scaled) ``` The run gives: 300 Use 300 g of lentils.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A recipe for 4 people uses 150 grams of lentils. How many grams are needed for 8 people?" }, { "role": "assistant", "content": "```python\ngrams = 150\nserves = 4\nneeded_for = 8\nscaled = grams * needed_for // serves # 300\nprint(scaled)\n```\nThe run gives: 300\n...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0074412
<|start|><|system|> Functions: {"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}} {"name": "calc", "description": "Use for arithmetic and date math; ret...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\", \"end\"]}}\n{\"name\":...
nlprog_det
setting
original
null
deterministic
[]
[]
302
{"gold": "1872.00", "printed": "1872.00", "notation": null}
nlprog_det-setting-0074413
A 5-day trip pays $59 a day for meals and $140 a night for lodging (4 nights). What is the total allowance? Here is a short program for it. ```python days = 5 meal_rate = 59 lodging_rate = 140 nights = days - 1 # 4 total = days * meal_rate + nights * lodging_rate # 855 print(total) ``` This prints: 855 That comes t...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "855", "printed": "855", "notation": null}
nlprog_det-setting-0074414
Prorate $1,800 of monthly rent for 25 days of a 30-day month. As a program: ```python rent = 1800 days_in_month = 30 days_occupied = 25 prorated = rent * days_occupied / days_in_month # 1500.0 print(f"{prorated:.2f}") ``` Running it prints 1500.00. The prorated rent is $1,500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "1500.00", "printed": "1500.00", "notation": null}
nlprog_det-setting-0074415
7 boxes hold 6 keyboards each. After 11 are handed out, how many are left? One way, in code: ```python boxes = 7 per_box = 6 given_away = 11 left = boxes * per_box - given_away # 31 print(left) ``` When run, it prints 31, as expected. 31 keyboards are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "31", "printed": "31", "notation": null}
nlprog_det-setting-0074416
A service costs $29 a month or $330 a year. How much does the yearly plan save over 12 monthly payments? Computation in Python: ```python monthly = 29 yearly = 330 savings = monthly * 12 - yearly # 18 print(savings) ``` Result: 18 The annual plan saves $18.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0074417
<|start|><|user|> Copies cost $10 plus $0.10 for each page beyond 10. How much for 103 pages?<|eot|> <|assistant|> The copy costs $19.30.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Copies cost $10 plus $0.10 for each page beyond 10. How much for 103 pages?" }, { "role": "assistant", "content": "The copy costs $19.30." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "19.30", "printed": "19.30", "notation": null}
nlprog_det-setting-0074418
<|start|><|user|> Sales went from 500 to 300. What is the percent change?<|eot|> <|assistant|> The change is -40%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Sales went from 500 to 300. What is the percent change?" }, { "role": "assistant", "content": "The change is -40%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "-40", "printed": "-40", "notation": null}
nlprog_det-setting-0074419
What day of the week is March 28, 2005? Computing it: ```python from datetime import date hearing = date(2005, 3, 28) # datetime.date(2005, 3, 28) print(hearing.strftime("%A")) ``` That prints Monday. It is a Monday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "Monday", "printed": "Monday", "notation": null}
nlprog_det-setting-0074420
An unpaid balance of $7,500 accrues 2% simple interest per month. How much interest accrues in 2 months? Programmatically: ```python balance = 7500 monthly_rate = 2 / 100 # 0.02 months = 2 interest = balance * monthly_rate * months # 300.0 print(f"{interest:.2f}") ``` The code prints: 300.00 The interest is $300.00...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "300.00", "printed": "300.00", "notation": null}
nlprog_det-setting-0074421
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}, {"name":...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"str...
nlprog_det
setting
original
null
deterministic
[]
[]
290
{"gold": "60.0", "printed": "60.0", "notation": null}
nlprog_det-setting-0074422
A settlement of $960 is split equally among 2 parties. How much does each party receive? Translated to Python: ```python settlement = 960 parties = 2 share = settlement // parties # 480 print(share) ``` Python prints 480, as expected. Each party receives $480.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "480", "printed": "480", "notation": null}
nlprog_det-setting-0074423
Meals are $64 per day and lodging $175 per night. What is the allowance for 9 days and 8 nights? Set it up in Python: ```python days = 9 meal_rate = 64 lodging_rate = 175 nights = days - 1 # 8 total = days * meal_rate + nights * lodging_rate # 1976 print(total) ``` Run output: 1976 The allowance is $1,976.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "1976", "printed": "1976", "notation": null}
nlprog_det-setting-0074424
<|start|><|system|> Tools (call with JSON): {"name": "py_exec", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}} {"name": "get_weather", "description": "Get the we...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"py_exec\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\...
nlprog_det
setting
original
null
deterministic
[]
[]
313
{"gold": "12000.00", "printed": "12000.00", "notation": null}
nlprog_det-setting-0074425
Split $1,981 between Ana and Priya in the ratio 2 to 5. What is Ana's share? Python makes this quick: total = 1981 parts_a = 2 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 566 print(share_a) Execution prints 566. Ana gets $566.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "566", "printed": "566", "notation": null}