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-0068315
<|start|><|system|> Tool definitions: [{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "sandbox_python", "description": "Executes Python co...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\", \"end\"]}}, {\...
nlprog_det
setting
original
null
deterministic
[]
[]
392
{"gold": "1373", "printed": "1373", "notation": null}
nlprog_det-setting-0068316
<|start|><|system|> Answer the user's question directly.<|eot|> <|user|> At a 7% tax rate, what is the tax on $320.15?<|eot|> <|assistant|> $22.41 in tax.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer the user's question directly." }, { "role": "user", "content": "At a 7% tax rate, what is the tax on $320.15?" }, { "role": "assistant", "content": "$22.41 in tax." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "22.41", "printed": "22.41", "notation": null}
nlprog_det-setting-0068317
<|start|><|system|> You help people work with structured data.<|eot|> <|user|> 3 claimants share a $1,200 settlement equally. What is each share?<|eot|> <|assistant|> ```python settlement = 1200 parties = 3 share = settlement // parties # 400 print(share) ``` The script prints: 400 Each party receives $400.<|eot|> <|...
chat
[ { "role": "system", "content": "You help people work with structured data." }, { "role": "user", "content": "3 claimants share a $1,200 settlement equally. What is each share?" }, { "role": "assistant", "content": "```python\nsettlement = 1200\nparties = 3\nshare = settlement // part...
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "400", "printed": "400", "notation": null}
nlprog_det-setting-0068319
<|start|><|user|> A 38 lb package ships at $10 base plus $0.75/lb. What is the charge?<|eot|> <|assistant|> ```python base = 10 per_pound = 0.75 weight = 38 cost = base + per_pound * weight # 38.5 print(f"{cost:.2f}") ``` Executed, it shows 38.50. Shipping costs $38.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 38 lb package ships at $10 base plus $0.75/lb. What is the charge?" }, { "role": "assistant", "content": "```python\nbase = 10\nper_pound = 0.75\nweight = 38\ncost = base + per_pound * weight # 38.5\nprint(f\"{cost:.2f}\")\n```\nExecuted, it shows 38.50.\n\nShipp...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "38.50", "printed": "38.50", "notation": null}
nlprog_det-setting-0068320
<|start|><|system|> You are a logic tutor.<|eot|> <|user|> Someone works 40 hours at $30.95 per hour. What are the earnings?<|eot|> <|assistant|> ```python rate = 30.95 hours = 40 earnings = rate * hours # 1238.0 print(f"{earnings:.2f}") ``` When run, it prints 1238.00. That earns $1,238.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a logic tutor." }, { "role": "user", "content": "Someone works 40 hours at $30.95 per hour. What are the earnings?" }, { "role": "assistant", "content": "```python\nrate = 30.95\nhours = 40\nearnings = rate * hours # 1238.0\nprint(f\"{earnings...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "1238.00", "printed": "1238.00", "notation": null}
nlprog_det-setting-0068321
At 65 miles per hour, how many minutes does a 260-mile trip take? Let's compute it with Python. distance = 260 speed = 65 minutes = distance / speed * 60 print(round(minutes)) Program output: 240 The trip takes 240 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "240", "printed": "240", "notation": null}
nlprog_det-setting-0068322
A library charges $0.25 per book per day late. What is the fine for 1 books that are 17 days late? As a program: ```python per_day = 0.25 days_late = 17 books = 1 fine = per_day * days_late * books # 4.25 print(f"{fine:.2f}") ``` # printed result: 4.25 The fine is $4.25.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "4.25", "printed": "4.25", "notation": null}
nlprog_det-setting-0068323
<|start|><|system|> You are a data assistant.<|eot|> <|user|> A customer buys 2 envelopes at $14 each, 5 file boxes at $26 each, 1 binders at $4 each, 2 batteries at $26 each and pays with $250. How much change is due?<|eot|> <|assistant|> ```python items = [(2, 14), (5, 26), (1, 4), (2, 26)] total = sum(q * p for q, p...
chat
[ { "role": "system", "content": "You are a data assistant." }, { "role": "user", "content": "A customer buys 2 envelopes at $14 each, 5 file boxes at $26 each, 1 binders at $4 each, 2 batteries at $26 each and pays with $250. How much change is due?" }, { "role": "assistant", "content...
nlprog_det
setting
original
null
deterministic
[]
[]
153
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0068324
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "python_exec", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"python_exec\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\"...
nlprog_det
setting
original
null
deterministic
[]
[]
249
{"gold": "7500.00", "printed": "7500.00", "notation": null}
nlprog_det-setting-0068325
<|start|><|user|> Straight-line depreciation: cost $30,000, salvage $2,000, 6 years. How much per year?<|eot|> <|assistant|> Depreciation is $4,666.67 per year.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Straight-line depreciation: cost $30,000, salvage $2,000, 6 years. How much per year?" }, { "role": "assistant", "content": "Depreciation is $4,666.67 per year." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
54
{"gold": "4666.67", "printed": "4666.67", "notation": null}
nlprog_det-setting-0068326
3 clients win $48,000. The lawyer takes 30%, and the rest is split equally. How much does each client get? Here is a short program for it. award = 48000 fee = award * 30 / 100 # 14400.0 remaining = award - fee # 33600.0 per_client = remaining / 3 # 11200.0 print(f"{per_client:.2f}") (Printed res...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "11200.00", "printed": "11200.00", "notation": null}
nlprog_det-setting-0068327
<|start|><|user|> Pack A has 6 items for $13.27. Pack B has 30 items for $7.68. Which has the lower price per item?<|eot|> <|assistant|> ```python pack_a = 13.27 / 6 # 2.2116666666666664 pack_b = 7.68 / 30 # 0.256 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` Output: B B has the lower unit pric...
chat
[ { "role": "user", "content": "Pack A has 6 items for $13.27. Pack B has 30 items for $7.68. Which has the lower price per item?" }, { "role": "assistant", "content": "```python\npack_a = 13.27 / 6 # 2.2116666666666664\npack_b = 7.68 / 30 # 0.256\ncheaper = \"A\" if pack_a < pack_b else \"B\" ...
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0068329
Lucia lends $20,000 at 4% simple interest per year for 6 years. How much interest is earned? A Python solution: ```python principal = 20000 rate = 4 / 100 # 0.04 years = 6 interest = principal * rate * years # 4800.0 print(f"{interest:.2f}") ``` It outputs: 4800.00 It earns $4,800.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "4800.00", "printed": "4800.00", "notation": null}
nlprog_det-setting-0068330
<|start|><|user|> Vera was born on July 5, 1975. How old is Vera on November 15, 2029?<|eot|> <|assistant|> ```python from datetime import date born = date(1975, 7, 5) # datetime.date(1975, 7, 5) on = date(2029, 11, 15) # datetime.date(2029, 11, 15) age = on.year - born.year - ((on.month, on.day) < (born.month, born....
chat
[ { "role": "user", "content": "Vera was born on July 5, 1975. How old is Vera on November 15, 2029?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1975, 7, 5) # datetime.date(1975, 7, 5)\non = date(2029, 11, 15) # datetime.date(2029, 11, 15)\nage = on.y...
nlprog_det
setting
original
null
deterministic
[]
[]
153
{"gold": "54", "printed": "54", "notation": null}
nlprog_det-setting-0068331
How many weekdays (Monday to Friday) fall after November 22, 2024 up to and including December 4, 2024? As a program: ```python from datetime import date, timedelta start = date(2024, 11, 22) end = date(2024, 12, 4) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() < 5: ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
153
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0068332
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> A hearing is set for November 24, 2008. What day of the week is that?<|eot|> <|assistant|> ```python from datetime import date hearing = date(2008, 11, 24) # datetime.date(2008, 11, 24) print(hearing.strftime("%A")) ``` (Console output: Monday) November 24,...
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "A hearing is set for November 24, 2008. What day of the week is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(2008, 11, 24) # datetime.date(...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "Monday", "printed": "Monday", "notation": null}
nlprog_det-setting-0068333
Fixed costs are $4,000. Each unit sells for $40 and costs $32 to make. How many units must be sold to break even? In code: ```python import math fixed = 4000 price = 40 variable = 32 units = math.ceil(fixed / (price - variable)) # 500 print(units) ``` Output of the run: 500 Break-even is 500 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "500", "printed": "500", "notation": null}
nlprog_det-setting-0068334
What commission does Lucia make on $116,535 in sales at 4%? The commission is $4,661.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "4661.40", "printed": "4661.40", "notation": null}
nlprog_det-setting-0068335
A water bill is $18 plus $3.50 per thousand gallons beyond the first 0 thousand. What is the bill for 20 thousand gallons? base = 18 rate = 3.5 used = 20 free = 0 bill = base + rate * max(0, used - free) print(f"{bill:.2f}") Running it prints: 88.00 $88.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "88.00", "printed": "88.00", "notation": null}
nlprog_det-setting-0068336
Attendance was 64 out of 80. Express it as a percent. Computation in Python: ```python present = 64 total = 80 percent = present / total * 100 # 80.0 print(round(percent, 1)) ``` The code prints 80.0. Attendance was 80.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "80.0", "printed": "80.0", "notation": null}
nlprog_det-setting-0068337
5 runs at 200 calories each burn how many calories in total? ```python per_session = 200 sessions = 5 total = per_session * sessions # 1000 print(total) ``` That prints: 1000 1000 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0068338
<|start|><|system|> You are a math tutor.<|eot|> <|user|> A trial runs from December 13, 2024 to December 16, 2024, counting both days. How many calendar days is that?<|eot|> <|assistant|> ```python from datetime import date first = date(2024, 12, 13) # datetime.date(2024, 12, 13) last = date(2024, 12, 16) # datetime...
chat
[ { "role": "system", "content": "You are a math tutor." }, { "role": "user", "content": "A trial runs from December 13, 2024 to December 16, 2024, counting both days. How many calendar days is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = d...
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0068339
<|start|><|user|> Monthly rent is $1,800. A tenant moves in with 18 days left in a 31-day month. What is the prorated rent?<|eot|> <|assistant|> ```python rent = 1800 days_in_month = 31 days_occupied = 18 prorated = rent * days_occupied / days_in_month # 1045.1612903225807 print(f"{prorated:.2f}") ``` Printed result: ...
chat
[ { "role": "user", "content": "Monthly rent is $1,800. A tenant moves in with 18 days left in a 31-day month. What is the prorated rent?" }, { "role": "assistant", "content": "```python\nrent = 1800\ndays_in_month = 31\ndays_occupied = 18\nprorated = rent * days_occupied / days_in_month # 1045.1...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "1045.16", "printed": "1045.16", "notation": null}
nlprog_det-setting-0068340
<|start|><|user|> Rent of $900 goes up 4%. What is the new rent?<|eot|> <|assistant|> ```python rent = 900 increase = 4 / 100 # 0.04 new_rent = rent * (1 + increase) # 936.0 print(f"{new_rent:.2f}") ``` Python prints: 936.00 The new rent is $936.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rent of $900 goes up 4%. What is the new rent?" }, { "role": "assistant", "content": "```python\nrent = 900\nincrease = 4 / 100 # 0.04\nnew_rent = rent * (1 + increase) # 936.0\nprint(f\"{new_rent:.2f}\")\n```\nPython prints: 936.00\n\nThe new rent is $936.00." ...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "936.00", "printed": "936.00", "notation": null}
nlprog_det-setting-0068341
Walls total 824 sq ft and each can covers 400 sq ft. How many cans should be bought? Coded up: ```python import math area = 824 coverage = 400 cans = math.ceil(area / coverage) # 3 print(cans) ``` stdout: 3 Buy 3 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0068342
<|start|><|user|> At $0.62 per mile, what is the reimbursement for 446 miles?<|eot|> <|assistant|> ```python miles = 446 rate = 0.62 reimbursement = miles * rate print(f"{reimbursement:.2f}") ``` It prints 276.52, as expected. Lena is owed $276.52.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $0.62 per mile, what is the reimbursement for 446 miles?" }, { "role": "assistant", "content": "```python\nmiles = 446\nrate = 0.62\nreimbursement = miles * rate\nprint(f\"{reimbursement:.2f}\")\n```\nIt prints 276.52, as expected.\n\nLena is owed $276.52." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "276.52", "printed": "276.52", "notation": null}
nlprog_det-setting-0068343
To read 172 pages in 4 days, how many pages per day are needed? Python version: pages = 172 days = 4 per_day = pages // days # 43 print(per_day) What it prints: 43 43 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
70
{"gold": "43", "printed": "43", "notation": null}
nlprog_det-setting-0068344
<|start|><|system|> Tool definitions: {"name": "python_exec", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}} {"name": "get_weather", "descriptio...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"python_exec\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required...
nlprog_det
setting
original
null
deterministic
[]
[]
403
{"gold": "13500.00", "printed": "13500.00", "notation": null}
nlprog_det-setting-0068345
<|start|><|user|> Each of Viktor's bike rides burns 200 calories. How many calories over 7 bike rides?<|eot|> <|assistant|> ```python per_session = 200 sessions = 7 total = per_session * sessions # 1400 print(total) ``` (Out: 1400) 1400 calories in total.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each of Viktor's bike rides burns 200 calories. How many calories over 7 bike rides?" }, { "role": "assistant", "content": "```python\nper_session = 200\nsessions = 7\ntotal = per_session * sessions # 1400\nprint(total)\n```\n(Out: 1400)\n\n1400 calories in total."...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "1400", "printed": "1400", "notation": null}
nlprog_det-setting-0068346
Scale 240 g of lentils from 8 servings to 4 servings. Python version: ```python grams = 240 serves = 8 needed_for = 4 scaled = grams * needed_for // serves # 120 print(scaled) ``` Result: 120 Use 120 g of lentils.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0068347
<|start|><|user|> Someone works 32 hours at $17.92 per hour. What are the earnings?<|eot|> <|assistant|> ```python rate = 17.92 hours = 32 earnings = rate * hours # 573.44 print(f"{earnings:.2f}") ``` Result — 573.44 The pay is $573.44.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Someone works 32 hours at $17.92 per hour. What are the earnings?" }, { "role": "assistant", "content": "```python\nrate = 17.92\nhours = 32\nearnings = rate * hours # 573.44\nprint(f\"{earnings:.2f}\")\n```\nResult — 573.44\n\nThe pay is $573.44." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "573.44", "printed": "573.44", "notation": null}
nlprog_det-setting-0068348
Express 216 hours in days and hours. As a program: ```python hours = 216 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` It prints 9 days and 0 hours, as expected. 216 hours is 9 days and 0 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "9 days and 0 hours", "printed": "9 days and 0 hours", "notation": null}
nlprog_det-setting-0068349
What percentage of $10,000 is $1,900? Computation in Python: ```python budget = 10000 spent = 1900 percent = spent / budget * 100 # 19.0 print(round(percent, 1)) ``` (Output: 19.0) That is 19.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "19.0", "printed": "19.0", "notation": null}
nlprog_det-setting-0068350
Meals are $79 per day and lodging $175 per night. What is the allowance for 4 days and 3 nights? The program: days = 4 meal_rate = 79 lodging_rate = 175 nights = days - 1 # 3 total = days * meal_rate + nights * lodging_rate # 841 print(total) (Output: 841) That comes to $841.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "841", "printed": "841", "notation": null}
nlprog_det-setting-0068351
After a 40% fee is taken from a $30,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share? Python: ```python award = 30000 fee = award * 40 / 100 # 12000.0 remaining = award - fee # 18000.0 per_client = remaining / 3 # 6000.0 print(f"{per_client:.2f}") ``` # printed result: 6000.00 ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "6000.00", "printed": "6000.00", "notation": null}
nlprog_det-setting-0068352
<|start|><|user|> A 300-mile drive at a steady 50 mph takes how many minutes?<|eot|> <|assistant|> 360 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 300-mile drive at a steady 50 mph takes how many minutes?" }, { "role": "assistant", "content": "360 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "360", "printed": "360", "notation": null}
nlprog_det-setting-0068353
<|start|><|user|> Lucia drove 494 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?<|eot|> <|assistant|> miles = 494 rate = 0.65 reimbursement = miles * rate # 321.1 print(f"{reimbursement:.2f}") Executed, it shows: 321.10 The reimbursement is $321.10.<|eot|> <|e...
chat
[ { "role": "user", "content": "Lucia drove 494 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?" }, { "role": "assistant", "content": " miles = 494\n rate = 0.65\n reimbursement = miles * rate # 321.1\n print(f\"{reimbursement:.2f}\")\nExecuted...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "321.10", "printed": "321.10", "notation": null}
nlprog_det-setting-0068354
How many weekdays (Monday to Friday) fall after April 23, 2018 up to and including May 23, 2018? A short script: from datetime import date, timedelta start = date(2018, 4, 23) end = date(2018, 5, 23) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0068355
Divide 142 items among 5 groups as evenly as possible with equal groups. How many per group, and how many remain? Computation in Python: ```python total = 142 groups = 5 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Executing it gives 28 each, 2 left over. The answ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "28 each, 2 left over", "printed": "28 each, 2 left over", "notation": null}
nlprog_det-setting-0068356
From a $10,000 retainer, 2 hours at $200/hour have been drawn. What remains? Here is a short program for it. ```python retainer = 10000 hours = 2 rate = 200 left = retainer - hours * rate # 9600 print(left) ``` Executing it gives 9600. The remaining balance is $9,600.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "9600", "printed": "9600", "notation": null}
nlprog_det-setting-0068357
How many of 177 votes make 60% (round up)? At least 107 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
23
{"gold": "107", "printed": "107", "notation": null}
nlprog_det-setting-0068358
An office budget of $5,000 has expenses of $3,333, $1,454. How much of the budget is left? The computation: ```python budget = 5000 expenses = [3333, 1454] left = budget - sum(expenses) # 213 print(left) ``` Output: 213 $213 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "213", "printed": "213", "notation": null}
nlprog_det-setting-0068359
<|start|><|user|> A customer buys 1 badges at $21 each, 4 calendars at $10 each and pays with $100. How much change is due?<|eot|> <|assistant|> ```python items = [(1, 21), (4, 10)] total = sum(q * p for q, p in items) # 61 paid = 100 change = paid - total # 39 print(change) ``` # execution result: 39 $39 comes back...
chat
[ { "role": "user", "content": "A customer buys 1 badges at $21 each, 4 calendars at $10 each and pays with $100. How much change is due?" }, { "role": "assistant", "content": "```python\nitems = [(1, 21), (4, 10)]\ntotal = sum(q * p for q, p in items) # 61\npaid = 100\nchange = paid - total # 3...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "39", "printed": "39", "notation": null}
nlprog_det-setting-0068360
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> What percentage of $5,000 is $500?<|eot|> <|assistant|> 10.0% has been spent.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "What percentage of $5,000 is $500?" }, { "role": "assistant", "content": "10.0% has been spent." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "10.0", "printed": "10.0", "notation": null}
nlprog_det-setting-0068361
<|start|><|user|> With $8,000 in costs and $10,000 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|> <|assistant|> ```python revenue = 10000 costs = 8000 profit = revenue - costs margin = profit / revenue * 100 print(round(margin, 1)) ``` The program outputs: 20.0 The margin is 20.0%.<|eot|> ...
chat
[ { "role": "user", "content": "With $8,000 in costs and $10,000 in revenue, what percent of revenue is profit? Round to one decimal." }, { "role": "assistant", "content": "```python\nrevenue = 10000\ncosts = 8000\nprofit = revenue - costs\nmargin = profit / revenue * 100\nprint(round(margin, 1))\...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "20.0", "printed": "20.0", "notation": null}
nlprog_det-setting-0068362
<|start|><|system|> You may call the tools below. [{"name": "python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> Sara was bor...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"r...
nlprog_det
setting
original
null
deterministic
[]
[]
244
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0068363
Fixed costs are $9,000. Each unit sells for $30 and costs $26 to make. How many units must be sold to break even? As Python: ```python import math fixed = 9000 price = 30 variable = 26 units = math.ceil(fixed / (price - variable)) # 2250 print(units) ``` It prints 2250, as expected. 2250 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "2250", "printed": "2250", "notation": null}
nlprog_det-setting-0068364
Straight-line depreciation: cost $24,000, salvage $6,000, 10 years. How much per year? Python makes this quick: ```python cost = 24000 salvage = 6000 years = 10 per_year = (cost - salvage) / years # 1800.0 print(f"{per_year:.2f}") ``` The code prints: 1800.00 $1,800.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "1800.00", "printed": "1800.00", "notation": null}
nlprog_det-setting-0068365
<|start|><|user|> Liesel's scores were 79, 58, 89 and 54. What is the average score?<|eot|> <|assistant|> ```python scores = [79, 58, 89, 54] average = sum(scores) // len(scores) # 70 print(average) ``` Executing it gives: 70 The mean is 70.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Liesel's scores were 79, 58, 89 and 54. What is the average score?" }, { "role": "assistant", "content": "```python\nscores = [79, 58, 89, 54]\naverage = sum(scores) // len(scores) # 70\nprint(average)\n```\nExecuting it gives: 70\n\nThe mean is 70." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "70", "printed": "70", "notation": null}
nlprog_det-setting-0068366
How many 2-foot square tiles cover a 7 ft by 15 ft floor (round up)? ```python import math length = 7 width = 15 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 27 print(tiles) ``` Run it and it prints: 27 It takes 27 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0068367
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value"...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"},...
nlprog_det
setting
original
null
deterministic
[]
[]
393
{"gold": "296", "printed": "296", "notation": null}
nlprog_det-setting-0068368
A court charges $10 per request plus $0.10 per page after the first 10 pages. What does a 107-page copy cost? Let's compute it with Python. ```python pages = 107 base = 10 per_page = 0.1 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 19.700000000000003 print(f"{cost:.2f}") ``` (Output: 19.70) ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "19.70", "printed": "19.70", "notation": null}
nlprog_det-setting-0068369
<|start|><|user|> Meals are $59 per day and lodging $175 per night. What is the allowance for 9 days and 8 nights?<|eot|> <|assistant|> ```python days = 9 meal_rate = 59 lodging_rate = 175 nights = days - 1 # 8 total = days * meal_rate + nights * lodging_rate # 1931 print(total) ``` The program prints 1931. That com...
chat
[ { "role": "user", "content": "Meals are $59 per day and lodging $175 per night. What is the allowance for 9 days and 8 nights?" }, { "role": "assistant", "content": "```python\ndays = 9\nmeal_rate = 59\nlodging_rate = 175\nnights = days - 1 # 8\ntotal = days * meal_rate + nights * lodging_rate ...
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "1931", "printed": "1931", "notation": null}
nlprog_det-setting-0068370
<|start|><|system|> Functions: {"name": "python_exec", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> Straight-line depreciation: cost $4...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"python_exec\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"...
nlprog_det
setting
original
null
deterministic
[]
[]
241
{"gold": "11250.00", "printed": "11250.00", "notation": null}
nlprog_det-setting-0068371
A lawyer's fee is 25% of a $90,000 recovery. How large is the fee? The fee is $22,500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "22500.00", "printed": "22500.00", "notation": null}
nlprog_det-setting-0068372
<|start|><|user|> Equal monthly payments repay $2,400 plus 5% simple yearly interest over 24 months. How large is a payment?<|eot|> <|assistant|> ```python principal = 2400 annual_rate = 5 / 100 # 0.05 months = 24 interest = principal * annual_rate * months / 12 # 240.0 payment = (principal + interest) / months # 11...
chat
[ { "role": "user", "content": "Equal monthly payments repay $2,400 plus 5% simple yearly interest over 24 months. How large is a payment?" }, { "role": "assistant", "content": "```python\nprincipal = 2400\nannual_rate = 5 / 100 # 0.05\nmonths = 24\ninterest = principal * annual_rate * months / 1...
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "110.00", "printed": "110.00", "notation": null}
nlprog_det-setting-0068373
<|start|><|user|> Buying 1 cables at $14 each, 5 water bottles at $23 each, 4 markers at $5 each, 1 rulers at $18 each, someone hands over $200. What change comes back?<|eot|> <|assistant|> ```python items = [(1, 14), (5, 23), (4, 5), (1, 18)] total = sum(q * p for q, p in items) # 167 paid = 200 change = paid - total...
chat
[ { "role": "user", "content": "Buying 1 cables at $14 each, 5 water bottles at $23 each, 4 markers at $5 each, 1 rulers at $18 each, someone hands over $200. What change comes back?" }, { "role": "assistant", "content": "```python\nitems = [(1, 14), (5, 23), (4, 5), (1, 18)]\ntotal = sum(q * p fo...
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "33", "printed": "33", "notation": null}
nlprog_det-setting-0068374
<|start|><|user|> What average speed covers 425 miles in 2.5 hours?<|eot|> <|assistant|> ```python distance = 425 hours = 2.5 speed = distance / hours # 170.0 print(round(speed)) ``` Out = 170 The average speed is 170 mph.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What average speed covers 425 miles in 2.5 hours?" }, { "role": "assistant", "content": "```python\ndistance = 425\nhours = 2.5\nspeed = distance / hours # 170.0\nprint(round(speed))\n```\nOut = 170\n\nThe average speed is 170 mph." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "170", "printed": "170", "notation": null}
nlprog_det-setting-0068375
<|start|><|user|> How many whole days and leftover hours are in 313 hours?<|eot|> <|assistant|> ```python hours = 313 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Execution result: 13 days and 1 hours That is 13 days and 1 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many whole days and leftover hours are in 313 hours?" }, { "role": "assistant", "content": "```python\nhours = 313\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nExecution result: 13 days and 1 hours\n\nThat is 13 days and 1 hour...
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "13 days and 1 hours", "printed": "13 days and 1 hours", "notation": null}
nlprog_det-setting-0068377
<|start|><|system|> You are a careful reviewer of figures.<|eot|> <|user|> At an exchange rate of 0.92 EUR per USD, how many EUR is 1,157 USD?<|eot|> <|assistant|> ```python amount = 1157 rate = 0.92 converted = amount * rate # 1064.44 print(f"{converted:.2f}") ``` The run gives: 1064.44 It converts to 1,064.44 EUR.<...
chat
[ { "role": "system", "content": "You are a careful reviewer of figures." }, { "role": "user", "content": "At an exchange rate of 0.92 EUR per USD, how many EUR is 1,157 USD?" }, { "role": "assistant", "content": "```python\namount = 1157\nrate = 0.92\nconverted = amount * rate # 1064...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "1064.44", "printed": "1064.44", "notation": null}
nlprog_det-setting-0068378
<|start|><|user|> A $96 dinner bill gets a 18% tip, and 5 people share the cost equally. What is each person's share?<|eot|> <|assistant|> ```python bill = 96 tip_rate = 18 / 100 # 0.18 people = 5 each = bill * (1 + tip_rate) / people # 22.656 print(f"{each:.2f}") ``` Running this gives 22.66. The share is $22.66 ea...
chat
[ { "role": "user", "content": "A $96 dinner bill gets a 18% tip, and 5 people share the cost equally. What is each person's share?" }, { "role": "assistant", "content": "```python\nbill = 96\ntip_rate = 18 / 100 # 0.18\npeople = 5\neach = bill * (1 + tip_rate) / people # 22.656\nprint(f\"{each:...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "22.66", "printed": "22.66", "notation": null}
nlprog_det-setting-0068379
Emeka earns $25.00 an hour and time and a half for hours over 40. What is the pay for a 53-hour week? ```python rate = 25.0 hours = 53 regular = 40 * rate # 1000.0 overtime = (hours - 40) * rate * 1.5 # 487.5 pay = regular + overtime # 1487.5 print(f"{pay:.2f}") ``` # printed: 1487.50 The weekly pay is $1,487.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "1487.50", "printed": "1487.50", "notation": null}
nlprog_det-setting-0068381
A $2,000 security deposit has deductions of $200 and $150. How much is refunded? A few lines of Python do it: ```python deposit = 2000 deductions = [200, 150] refund = deposit - sum(deductions) # 1650 print(refund) ``` # run result: 1650 The refund is $1,650.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "1650", "printed": "1650", "notation": null}
nlprog_det-setting-0068382
<|start|><|system|> You are a math tutor.<|eot|> <|user|> After an initial $0, the remainder of a $48,000 grant is paid in 4 equal parts. What is each part?<|eot|> <|assistant|> ```python grant = 48000 up_front = 0 installments = 4 each = (grant - up_front) / installments # 12000.0 print(f"{each:.2f}") ``` Result — 12...
chat
[ { "role": "system", "content": "You are a math tutor." }, { "role": "user", "content": "After an initial $0, the remainder of a $48,000 grant is paid in 4 equal parts. What is each part?" }, { "role": "assistant", "content": "```python\ngrant = 48000\nup_front = 0\ninstallments = 4\n...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "12000.00", "printed": "12000.00", "notation": null}
nlprog_det-setting-0068384
With 17 rows of 24 chairs and 14 empty chairs, how many chairs are taken? The Python version: ```python rows = 17 per_row = 24 empty = 14 seated = rows * per_row - empty # 394 print(seated) ``` The program prints 394. 394 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "394", "printed": "394", "notation": null}
nlprog_det-setting-0068385
<|start|><|user|> An invoice lists 29 folders at $9 each, plus 7% sales tax. What is the invoice total?<|eot|> <|assistant|> ```python quantity = 29 unit_price = 9 subtotal = quantity * unit_price # 261 total = subtotal * (1 + 7 / 100) # 279.27000000000004 print(f"{total:.2f}") ``` Running it prints 279.27, as expect...
chat
[ { "role": "user", "content": "An invoice lists 29 folders at $9 each, plus 7% sales tax. What is the invoice total?" }, { "role": "assistant", "content": "```python\nquantity = 29\nunit_price = 9\nsubtotal = quantity * unit_price # 261\ntotal = subtotal * (1 + 7 / 100) # 279.27000000000004\npr...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "279.27", "printed": "279.27", "notation": null}
nlprog_det-setting-0068386
<|start|><|system|> You may call the tools below. {"name": "run_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> A quorum is 1/3 of the 39 mem...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"run_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"pro...
nlprog_det
setting
original
null
deterministic
[]
[]
213
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0068387
<|start|><|system|> You have access to these functions: [{"name": "math_engine", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> Each ...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"math_engine\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}...
nlprog_det
setting
original
null
deterministic
[]
[]
214
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0068388
<|start|><|user|> Someone born July 24, 2004 turns how old by January 2, 2028? Give the age in whole years.<|eot|> <|assistant|> from datetime import date born = date(2004, 7, 24) # datetime.date(2004, 7, 24) on = date(2028, 1, 2) # datetime.date(2028, 1, 2) age = on.year - born.year - ((on.month, on....
chat
[ { "role": "user", "content": "Someone born July 24, 2004 turns how old by January 2, 2028? Give the age in whole years." }, { "role": "assistant", "content": " from datetime import date\n born = date(2004, 7, 24) # datetime.date(2004, 7, 24)\n on = date(2028, 1, 2) # datetime.date(202...
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0068389
<|start|><|user|> 102 copies of a 58-page packet are printed at $0.10 per page. What is the cost?<|eot|> <|assistant|> ```python pages = 58 copies = 102 cost_per_page = 0.1 cost = pages * copies * cost_per_page # 591.6 print(f"{cost:.2f}") ``` The program prints 591.60, as expected. The job costs $591.60.<|eot|> <|en...
chat
[ { "role": "user", "content": "102 copies of a 58-page packet are printed at $0.10 per page. What is the cost?" }, { "role": "assistant", "content": "```python\npages = 58\ncopies = 102\ncost_per_page = 0.1\ncost = pages * copies * cost_per_page # 591.6\nprint(f\"{cost:.2f}\")\n```\nThe program ...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "591.60", "printed": "591.60", "notation": null}
nlprog_det-setting-0068390
Express 222 hours in days and hours. In Python: ```python hours = 222 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` The run gives: 9 days and 6 hours That is 9 days and 6 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "9 days and 6 hours", "printed": "9 days and 6 hours", "notation": null}
nlprog_det-setting-0068391
<|start|><|user|> Equal monthly payments repay $1,200 plus 6% simple yearly interest over 36 months. How large is a payment?<|eot|> <|assistant|> The monthly payment is $39.33.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Equal monthly payments repay $1,200 plus 6% simple yearly interest over 36 months. How large is a payment?" }, { "role": "assistant", "content": "The monthly payment is $39.33." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "39.33", "printed": "39.33", "notation": null}
nlprog_det-setting-0068392
A appointment starts at 9:15 AM and lasts 75 minutes. When does it end? Python does the arithmetic: ```python start = 9 * 60 + 15 end = start + 75 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` On running, it outputs 10:30 AM. It ends at 10:30 AM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "10:30 AM", "printed": "10:30 AM", "notation": null}
nlprog_det-setting-0068393
Someone born June 18, 1982 turns how old by October 25, 2025? Give the age in whole years. Translated to Python: ```python from datetime import date born = date(1982, 6, 18) # datetime.date(1982, 6, 18) on = date(2025, 10, 25) # datetime.date(2025, 10, 25) age = on.year - born.year - ((on.month, on.day) < (born.mont...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
163
{"gold": "43", "printed": "43", "notation": null}
nlprog_det-setting-0068394
<|start|><|user|> An invoice lists 10 water bottles at $2 each, plus 6% sales tax. What is the invoice total?<|eot|> <|assistant|> ```python quantity = 10 unit_price = 2 subtotal = quantity * unit_price # 20 total = subtotal * (1 + 6 / 100) # 21.200000000000003 print(f"{total:.2f}") ``` Execution prints 21.20, as exp...
chat
[ { "role": "user", "content": "An invoice lists 10 water bottles at $2 each, plus 6% sales tax. What is the invoice total?" }, { "role": "assistant", "content": "```python\nquantity = 10\nunit_price = 2\nsubtotal = quantity * unit_price # 20\ntotal = subtotal * (1 + 6 / 100) # 21.20000000000000...
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "21.20", "printed": "21.20", "notation": null}
nlprog_det-setting-0068396
A 380-page report must be reviewed in 19 days. How many pages a day is that, evenly? Python version: ```python pages = 380 days = 19 per_day = pages // days # 20 print(per_day) ``` The interpreter prints: 20 That is 20 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0068397
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "calculator", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|>...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"calculator\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source...
nlprog_det
setting
original
null
deterministic
[]
[]
208
{"gold": "345", "printed": "345", "notation": null}
nlprog_det-setting-0068398
$2,000 is invested at 3% compounded yearly. What is it worth after 3 years? A Python solution: ```python principal = 2000 rate = 3 / 100 # 0.03 years = 3 value = principal * (1 + rate) ** years # 2185.454 print(f"{value:.2f}") ``` That prints 2185.45. It is worth $2,185.45.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "2185.45", "printed": "2185.45", "notation": null}
nlprog_det-setting-0068399
<|start|><|user|> What percentage of $10,000 is $1,800?<|eot|> <|assistant|> budget = 10000 spent = 1800 percent = spent / budget * 100 # 18.0 print(round(percent, 1)) (stdout: 18.0) 18.0% has been spent.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What percentage of $10,000 is $1,800?" }, { "role": "assistant", "content": " budget = 10000\n spent = 1800\n percent = spent / budget * 100 # 18.0\n print(round(percent, 1))\n(stdout: 18.0)\n\n18.0% has been spent." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "18.0", "printed": "18.0", "notation": null}
nlprog_det-setting-0068400
A class starts at 12:00 PM and lasts 25 minutes. When does it end? Python code: ```python start = 12 * 60 + 0 end = start + 25 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Console output: 12:25 PM The class finishes at 12:25 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "12:25 PM", "printed": "12:25 PM", "notation": null}
nlprog_det-setting-0068401
A count moves from 200 to 190. By what percent did it change (use a minus sign for a drop)? ```python old = 200 new = 190 change = (new - old) / old * 100 # -5.0 print(round(change)) ``` This prints: -5 It changed by -5%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "-5", "printed": "-5", "notation": null}
nlprog_det-setting-0068402
<|start|><|user|> A settlement of $7,350 is split equally among 6 parties. How much does each party receive?<|eot|> <|assistant|> ```python settlement = 7350 parties = 6 share = settlement // parties # 1225 print(share) ``` (Output: 1225) Each share is $1,225.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A settlement of $7,350 is split equally among 6 parties. How much does each party receive?" }, { "role": "assistant", "content": "```python\nsettlement = 7350\nparties = 6\nshare = settlement // parties # 1225\nprint(share)\n```\n(Output: 1225)\n\nEach share is $1,...
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "1225", "printed": "1225", "notation": null}
nlprog_det-setting-0068403
<|start|><|system|> Tool definitions: {"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}} {"name": "compute", "description": "Runs a short Python snippet and returns what it prin...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}\n{\"name\": \"compute\", \"descriptio...
nlprog_det
setting
original
null
deterministic
[]
[]
282
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0068404
An unpaid balance of $12,000 accrues 2% simple interest per month. How much interest accrues in 6 months? Written as code: ```python balance = 12000 monthly_rate = 2 / 100 # 0.02 months = 6 interest = balance * monthly_rate * months # 1440.0 print(f"{interest:.2f}") ``` Execution result — 1440.00 The interest is $1...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "1440.00", "printed": "1440.00", "notation": null}
nlprog_det-setting-0068405
<|start|><|system|> Answer the user's question directly.<|eot|> <|user|> The landlord deducts $200 and $45 from a $2,500 deposit. What is returned to the tenant?<|eot|> <|assistant|> The refund is $2,255.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer the user's question directly." }, { "role": "user", "content": "The landlord deducts $200 and $45 from a $2,500 deposit. What is returned to the tenant?" }, { "role": "assistant", "content": "The refund is $2,255." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
55
{"gold": "2255", "printed": "2255", "notation": null}
nlprog_det-setting-0068406
<|start|><|user|> How many of 34 members form a majority (more than half)?<|eot|> <|assistant|> members = 34 majority = members // 2 + 1 # 18 print(majority) What it prints — 18 18 members are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 34 members form a majority (more than half)?" }, { "role": "assistant", "content": " members = 34\n majority = members // 2 + 1 # 18\n print(majority)\nWhat it prints — 18\n\n18 members are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
60
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0068407
Count the days between October 17, 2019 and November 12, 2020. ```python from datetime import date first = date(2019, 10, 17) # datetime.date(2019, 10, 17) second = date(2020, 11, 12) # datetime.date(2020, 11, 12) print((second - first).days) ``` Output: 392 It is 392 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "392", "printed": "392", "notation": null}
nlprog_det-setting-0068408
<|start|><|user|> A library charges $0.10 per book per day late. What is the fine for 3 books that are 21 days late?<|eot|> <|assistant|> per_day = 0.1 days_late = 21 books = 3 fine = per_day * days_late * books # 6.300000000000001 print(f"{fine:.2f}") Output of the run — 6.30 The fine is $6.30.<|...
chat
[ { "role": "user", "content": "A library charges $0.10 per book per day late. What is the fine for 3 books that are 21 days late?" }, { "role": "assistant", "content": " per_day = 0.1\n days_late = 21\n books = 3\n fine = per_day * days_late * books # 6.300000000000001\n print(f\"...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "6.30", "printed": "6.30", "notation": null}
nlprog_det-setting-0068409
<|start|><|user|> Count the days between October 3, 2028 and August 28, 2029.<|eot|> <|assistant|> ```python from datetime import date first = date(2028, 10, 3) # datetime.date(2028, 10, 3) second = date(2029, 8, 28) # datetime.date(2029, 8, 28) print((second - first).days) ``` # program output: 329 There are 329 da...
chat
[ { "role": "user", "content": "Count the days between October 3, 2028 and August 28, 2029." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2028, 10, 3) # datetime.date(2028, 10, 3)\nsecond = date(2029, 8, 28) # datetime.date(2029, 8, 28)\nprint((second ...
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "329", "printed": "329", "notation": null}
nlprog_det-setting-0068410
<|start|><|user|> 9 boxes hold 10 mugs each. After 6 are handed out, how many are left?<|eot|> <|assistant|> ```python boxes = 9 per_box = 10 given_away = 6 left = boxes * per_box - given_away # 84 print(left) ``` Run it and it prints: 84 That leaves 84 mugs.<|eot|> <|end|>
chat
[ { "role": "user", "content": "9 boxes hold 10 mugs each. After 6 are handed out, how many are left?" }, { "role": "assistant", "content": "```python\nboxes = 9\nper_box = 10\ngiven_away = 6\nleft = boxes * per_box - given_away # 84\nprint(left)\n```\nRun it and it prints: 84\n\nThat leaves 84 m...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "84", "printed": "84", "notation": null}
nlprog_det-setting-0068411
<|start|><|system|> You are a precise assistant.<|eot|> <|user|> Someone works 12 hours at $27.15 per hour. What are the earnings?<|eot|> <|assistant|> That earns $325.80.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a precise assistant." }, { "role": "user", "content": "Someone works 12 hours at $27.15 per hour. What are the earnings?" }, { "role": "assistant", "content": "That earns $325.80." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
48
{"gold": "325.80", "printed": "325.80", "notation": null}
nlprog_det-setting-0068412
Bilal earns a 4% commission on $101,867 of sales. What is the commission? sales = 101867 rate = 4 / 100 # 0.04 commission = sales * rate # 4074.6800000000003 print(f"{commission:.2f}") Execution result: 4074.68 Bilal earns $4,074.68.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "4074.68", "printed": "4074.68", "notation": null}
nlprog_det-setting-0068413
<|start|><|system|> Tools you may use: [{"name": "interpreter", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> A $240 dinner bi...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"interpreter\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir...
nlprog_det
setting
original
null
deterministic
[]
[]
230
{"gold": "48.00", "printed": "48.00", "notation": null}
nlprog_det-setting-0068414
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> Which is cheaper per unit: 8 for $8.58 (A) or 30 for $23.71 (B)?<|eot|> <|assistant|> ```python pack_a = 8.58 / 8 # 1.0725 pack_b = 23.71 / 30 # 0.7903333333333333 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` The program prints:...
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "role": "user", "content": "Which is cheaper per unit: 8 for $8.58 (A) or 30 for $23.71 (B)?" }, { "role": "assistant", "content": "```python\npack_a = 8.58 / 8 # 1.0725\npack_b = 23.71 / 30 # 0.7903333333333333\n...
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0068415
Of a $2,000 budget, $1,500 has been spent. What percent is that? We can compute it in Python. ```python budget = 2000 spent = 1500 percent = spent / budget * 100 # 75.0 print(round(percent, 1)) ``` Out: 75.0 75.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "75.0", "printed": "75.0", "notation": null}
nlprog_det-setting-0068416
A lawyer's fee is 25% of a $40,000 recovery. How large is the fee? We write it as a program: ```python recovery = 40000 rate = 25 / 100 # 0.25 fee = recovery * rate # 10000.0 print(f"{fee:.2f}") ``` The code prints: 10000.00 The lawyer's fee comes to $10,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "10000.00", "printed": "10000.00", "notation": null}
nlprog_det-setting-0068417
A 12-month warranty starts on October 5, 2022. On what date does it end? As a program: ```python from datetime import date start = date(2022, 10, 5) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Executing it g...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "2023-10-05", "printed": "2023-10-05", "notation": null}
nlprog_det-setting-0068418
Convert 3 h 35 min (the length of a film) to minutes. Here is the program. ```python hours = 3 minutes = 35 total_minutes = hours * 60 + minutes # 215 print(total_minutes) ``` # execution result: 215 That is 215 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "215", "printed": "215", "notation": null}
nlprog_det-setting-0068419
A penalty of $50 a day accrues, capped at $1,000. What is owed after 60 days? The program: ```python per_day = 50 days = 60 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` Out = 1000 The fine is $1,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0068420
At 1% a month (simple), what interest builds on $2,500 over 5 months? Here is the program. ```python balance = 2500 monthly_rate = 1 / 100 # 0.01 months = 5 interest = balance * monthly_rate * months # 125.0 print(f"{interest:.2f}") ``` Executed, it shows: 125.00 $125.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "125.00", "printed": "125.00", "notation": null}