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-0062444
Amir and Arjun share $2,084 in the ratio 1:3. How much does Amir get? Amir gets $521.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "521", "printed": "521", "notation": null}
nlprog_det-setting-0062445
3 claimants share a $36,000 settlement equally. What is each share? Python: ```python settlement = 36000 parties = 3 share = settlement // parties # 12000 print(share) ``` Interpreter output — 12000 Each party receives $12,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "12000", "printed": "12000", "notation": null}
nlprog_det-setting-0062446
<|start|><|system|> Available functions (JSON Schema): {"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}} {"name": "python", "description": "Evaluates Python and returns the pri...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}\n{\"name\": \"python...
nlprog_det
setting
original
null
deterministic
[]
[]
304
{"gold": "46.20", "printed": "46.20", "notation": null}
nlprog_det-setting-0062447
With 40% off, what does a $80 filing cabinet cost? The computation: ```python price = 80 discount = 40 / 100 # 0.4 sale_price = price * (1 - discount) # 48.0 print(f"{sale_price:.2f}") ``` The script prints 48.00, as expected. It costs $48.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "48.00", "printed": "48.00", "notation": null}
nlprog_det-setting-0062448
<|start|><|system|> You have access to these functions: [{"name": "eval_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> A pack of 1...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"eval_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"r...
nlprog_det
setting
original
null
deterministic
[]
[]
203
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0062449
Starting with 894 hard drives and using 39 per day, how many remain after 4 days? In Python: ```python stock = 894 per_day = 39 days = 4 left = stock - per_day * days # 738 print(left) ``` Run it and it prints 738. 738 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "738", "printed": "738", "notation": null}
nlprog_det-setting-0062450
How many days are there from November 3, 2024 to November 24, 2025? Coded up: ```python from datetime import date first = date(2024, 11, 3) # datetime.date(2024, 11, 3) second = date(2025, 11, 24) # datetime.date(2025, 11, 24) print((second - first).days) ``` Python prints 386. It is 386 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "386", "printed": "386", "notation": null}
nlprog_det-setting-0062451
From a $2,500 retainer, 3 hours at $200/hour have been drawn. What remains? We write it as a program: ```python retainer = 2500 hours = 3 rate = 200 left = retainer - hours * rate # 1900 print(left) ``` Run it and it prints 1900. $1,900 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "1900", "printed": "1900", "notation": null}
nlprog_det-setting-0062452
Rent of $900 goes up 4%. What is the new rent? Written as code: ```python rent = 900 increase = 4 / 100 # 0.04 new_rent = rent * (1 + increase) # 936.0 print(f"{new_rent:.2f}") ``` Program output — 936.00 It rises to $936.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "936.00", "printed": "936.00", "notation": null}
nlprog_det-setting-0062453
<|start|><|user|> Convert 4 h 33 min (the length of a meeting) to minutes.<|eot|> <|assistant|> ```python hours = 4 minutes = 33 total_minutes = hours * 60 + minutes # 273 print(total_minutes) ``` The printout reads 273. That is 273 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 4 h 33 min (the length of a meeting) to minutes." }, { "role": "assistant", "content": "```python\nhours = 4\nminutes = 33\ntotal_minutes = hours * 60 + minutes # 273\nprint(total_minutes)\n```\nThe printout reads 273.\n\nThat is 273 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "273", "printed": "273", "notation": null}
nlprog_det-setting-0062454
A claim accrued on November 5, 2018. The limitations period is 5 years. On what date does it expire? ```python from datetime import date accrued = date(2018, 11, 5) # datetime.date(2018, 11, 5) years = 5 expires = accrued.replace(year=accrued.year + years) # datetime.date(2023, 11, 5) print(expires.isoformat()) ``` ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "2023-11-05", "printed": "2023-11-05", "notation": null}
nlprog_det-setting-0062455
Papers were served by mail on November 19, 2021. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date? Computing it: from datetime import date, timedelta served = date(2021, 11, 19) # datetime.date(2021, 11, 19) response_days = 28 mail_days = 3 due = served ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
168
{"gold": "2021-12-20", "printed": "2021-12-20", "notation": null}
nlprog_det-setting-0062456
<|start|><|user|> With 20% off, what does a $60 chair cost?<|eot|> <|assistant|> ```python price = 60 discount = 20 / 100 # 0.2 sale_price = price * (1 - discount) # 48.0 print(f"{sale_price:.2f}") ``` # program output: 48.00 It costs $48.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 20% off, what does a $60 chair cost?" }, { "role": "assistant", "content": "```python\nprice = 60\ndiscount = 20 / 100 # 0.2\nsale_price = price * (1 - discount) # 48.0\nprint(f\"{sale_price:.2f}\")\n```\n# program output: 48.00\n\nIt costs $48.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "48.00", "printed": "48.00", "notation": null}
nlprog_det-setting-0062457
<|start|><|user|> Starting with 457 clipboards and using 8 per day, how many remain after 7 days?<|eot|> <|assistant|> ```python stock = 457 per_day = 8 days = 7 left = stock - per_day * days # 401 print(left) ``` Output — 401 401 clipboards are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting with 457 clipboards and using 8 per day, how many remain after 7 days?" }, { "role": "assistant", "content": "```python\nstock = 457\nper_day = 8\ndays = 7\nleft = stock - per_day * days # 401\nprint(left)\n```\nOutput — 401\n\n401 clipboards are left." ...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "401", "printed": "401", "notation": null}
nlprog_det-setting-0062458
<|start|><|user|> At 45 miles per hour, how many minutes does a 225-mile trip take?<|eot|> <|assistant|> distance = 225 speed = 45 minutes = distance / speed * 60 # 300.0 print(round(minutes)) Run it and it prints 300. 300 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 45 miles per hour, how many minutes does a 225-mile trip take?" }, { "role": "assistant", "content": " distance = 225\n speed = 45\n minutes = distance / speed * 60 # 300.0\n print(round(minutes))\nRun it and it prints 300.\n\n300 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
70
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0062459
How many meters are in 87.3 kilometers? Python code: ```python km = 87.3 meters = km * 1000 # 87300.0 print(round(meters)) ``` The program prints 87300, as expected. That is 87,300 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "87300", "printed": "87300", "notation": null}
nlprog_det-setting-0062460
If a 3-year limitations period starts on March 11, 2017, when does it end? Let the code do the arithmetic: from datetime import date accrued = date(2017, 3, 11) # datetime.date(2017, 3, 11) years = 3 expires = accrued.replace(year=accrued.year + years) # datetime.date(2020, 3, 11) print(expires.i...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "2020-03-11", "printed": "2020-03-11", "notation": null}
nlprog_det-setting-0062461
<|start|><|user|> At 1% a month (simple), what interest builds on $12,000 over 5 months?<|eot|> <|assistant|> balance = 12000 monthly_rate = 1 / 100 # 0.01 months = 5 interest = balance * monthly_rate * months # 600.0 print(f"{interest:.2f}") Running this gives 600.00. $600.00 accrues.<|eot|> <|e...
chat
[ { "role": "user", "content": "At 1% a month (simple), what interest builds on $12,000 over 5 months?" }, { "role": "assistant", "content": " balance = 12000\n monthly_rate = 1 / 100 # 0.01\n months = 5\n interest = balance * monthly_rate * months # 600.0\n print(f\"{interest:.2f...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "600.00", "printed": "600.00", "notation": null}
nlprog_det-setting-0062462
<|start|><|user|> Farah drove 83 miles for work. Mileage is reimbursed at 70 cents a mile. How much is the reimbursement?<|eot|> <|assistant|> ```python miles = 83 rate = 0.7 reimbursement = miles * rate # 58.099999999999994 print(f"{reimbursement:.2f}") ``` Run output: 58.10 Farah is owed $58.10.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Farah drove 83 miles for work. Mileage is reimbursed at 70 cents a mile. How much is the reimbursement?" }, { "role": "assistant", "content": "```python\nmiles = 83\nrate = 0.7\nreimbursement = miles * rate # 58.099999999999994\nprint(f\"{reimbursement:.2f}\")\n```...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "58.10", "printed": "58.10", "notation": null}
nlprog_det-setting-0062463
<|start|><|user|> With 14 rows of 17 chairs and 34 empty chairs, how many chairs are taken?<|eot|> <|assistant|> ```python rows = 14 per_row = 17 empty = 34 seated = rows * per_row - empty # 204 print(seated) ``` Printed result — 204 204 seats are taken.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 14 rows of 17 chairs and 34 empty chairs, how many chairs are taken?" }, { "role": "assistant", "content": "```python\nrows = 14\nper_row = 17\nempty = 34\nseated = rows * per_row - empty # 204\nprint(seated)\n```\nPrinted result — 204\n\n204 seats are taken."...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "204", "printed": "204", "notation": null}
nlprog_det-setting-0062464
A party has 21 days to respond to a motion served on April 12, 2025, with 3 days added because service was by mail. When is the response due? Set it up in Python: ```python from datetime import date, timedelta served = date(2025, 4, 12) response_days = 21 mail_days = 3 due = served + timedelta(days=response_days + mai...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "2025-05-06", "printed": "2025-05-06", "notation": null}
nlprog_det-setting-0062465
<|start|><|user|> A lease runs for 6 months at $2,100 per month. How much rent is paid over the whole term?<|eot|> <|assistant|> monthly_rent = 2100 months = 6 total = monthly_rent * months # 12600 print(total) (Execution result: 12600) In total, $12,600 is paid.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lease runs for 6 months at $2,100 per month. How much rent is paid over the whole term?" }, { "role": "assistant", "content": " monthly_rent = 2100\n months = 6\n total = monthly_rent * months # 12600\n print(total)\n(Execution result: 12600)\n\nIn to...
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "12600", "printed": "12600", "notation": null}
nlprog_det-setting-0062466
<|start|><|user|> 5 boxes hold 12 clipboards each. After 4 are handed out, how many are left?<|eot|> <|assistant|> ```python boxes = 5 per_box = 12 given_away = 4 left = boxes * per_box - given_away # 56 print(left) ``` The code prints: 56 56 clipboards are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "5 boxes hold 12 clipboards each. After 4 are handed out, how many are left?" }, { "role": "assistant", "content": "```python\nboxes = 5\nper_box = 12\ngiven_away = 4\nleft = boxes * per_box - given_away # 56\nprint(left)\n```\nThe code prints: 56\n\n56 clipboards a...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "56", "printed": "56", "notation": null}
nlprog_det-setting-0062467
<|start|><|user|> Goods bought on December 8, 2023 carry a 12-month warranty. When does it expire?<|eot|> <|assistant|> from datetime import date start = date(2023, 12, 8) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day)...
chat
[ { "role": "user", "content": "Goods bought on December 8, 2023 carry a 12-month warranty. When does it expire?" }, { "role": "assistant", "content": " from datetime import date\n start = date(2023, 12, 8)\n months = 12\n years, month_index = divmod(start.month - 1 + months, 12)\n ...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "2024-12-08", "printed": "2024-12-08", "notation": null}
nlprog_det-setting-0062468
Each storage box holds 50 files. How many boxes are needed for 343 files? 7 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
26
{"gold": "7", "printed": "7", "notation": null}
nlprog_det-setting-0062469
Split $5,848 between Olga and Viktor in the ratio 3 to 5. What is Olga's share? Olga's share is $2,193.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
50
{"gold": "2193", "printed": "2193", "notation": null}
nlprog_det-setting-0062470
<|start|><|system|> You are a data assistant.<|eot|> <|user|> An unpaid balance of $2,500 accrues 2% simple interest per month. How much interest accrues in 5 months?<|eot|> <|assistant|> ```python balance = 2500 monthly_rate = 2 / 100 # 0.02 months = 5 interest = balance * monthly_rate * months # 250.0 print(f"{inte...
chat
[ { "role": "system", "content": "You are a data assistant." }, { "role": "user", "content": "An unpaid balance of $2,500 accrues 2% simple interest per month. How much interest accrues in 5 months?" }, { "role": "assistant", "content": "```python\nbalance = 2500\nmonthly_rate = 2 / 10...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "250.00", "printed": "250.00", "notation": null}
nlprog_det-setting-0062471
<|start|><|user|> Goran's scores were 84, 86, 53, 62, 89, 87 and 99. What is the average score?<|eot|> <|assistant|> The average score is 80.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Goran's scores were 84, 86, 53, 62, 89, 87 and 99. What is the average score?" }, { "role": "assistant", "content": "The average score is 80." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "80", "printed": "80", "notation": null}
nlprog_det-setting-0062472
Lucia lends $12,000 at 5% simple interest per year for 2 years. How much interest is earned? The program: principal = 12000 rate = 5 / 100 # 0.05 years = 2 interest = principal * rate * years # 1200.0 print(f"{interest:.2f}") Output of the run — 1200.00 It earns $1,200.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "1200.00", "printed": "1200.00", "notation": null}
nlprog_det-setting-0062473
<|start|><|user|> Under a 33% contingency agreement, what fee is owed on a $60,000 award?<|eot|> <|assistant|> ```python recovery = 60000 rate = 33 / 100 # 0.33 fee = recovery * rate # 19800.0 print(f"{fee:.2f}") ``` The run gives 19800.00, as expected. The fee is $19,800.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Under a 33% contingency agreement, what fee is owed on a $60,000 award?" }, { "role": "assistant", "content": "```python\nrecovery = 60000\nrate = 33 / 100 # 0.33\nfee = recovery * rate # 19800.0\nprint(f\"{fee:.2f}\")\n```\nThe run gives 19800.00, as expected.\n\...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "19800.00", "printed": "19800.00", "notation": null}
nlprog_det-setting-0062474
A $48,000 grant pays $0 up front and the rest in 3 equal installments. How large is each installment? Each installment is $16,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "16000.00", "printed": "16000.00", "notation": null}
nlprog_det-setting-0062475
<|start|><|system|> You check calculations for an accounting team.<|eot|> <|user|> With 14 rows of 9 chairs and 18 empty chairs, how many chairs are taken?<|eot|> <|assistant|> rows = 14 per_row = 9 empty = 18 seated = rows * per_row - empty # 108 print(seated) This prints 108. 108 people are seat...
chat
[ { "role": "system", "content": "You check calculations for an accounting team." }, { "role": "user", "content": "With 14 rows of 9 chairs and 18 empty chairs, how many chairs are taken?" }, { "role": "assistant", "content": " rows = 14\n per_row = 9\n empty = 18\n seated ...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "108", "printed": "108", "notation": null}
nlprog_det-setting-0062476
A storeroom has 905 pens. The office uses 8 a day. How many are left after 15 days? Python makes this quick: ```python stock = 905 per_day = 8 days = 15 left = stock - per_day * days # 785 print(left) ``` The run gives: 785 785 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "785", "printed": "785", "notation": null}
nlprog_det-setting-0062477
<|start|><|user|> How many minutes pass from 7:42 AM to 2:30 PM on the same day?<|eot|> <|assistant|> ```python start = 7 * 60 + 42 # 462 end = 14 * 60 + 30 # 870 print(end - start) ``` When run, it prints 408. It is 408 minutes long.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many minutes pass from 7:42 AM to 2:30 PM on the same day?" }, { "role": "assistant", "content": "```python\nstart = 7 * 60 + 42 # 462\nend = 14 * 60 + 30 # 870\nprint(end - start)\n```\nWhen run, it prints 408.\n\nIt is 408 minutes long." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "408", "printed": "408", "notation": null}
nlprog_det-setting-0062478
<|start|><|user|> A printer costs $60. It is 10% off. What is the sale price?<|eot|> <|assistant|> ```python price = 60 discount = 10 / 100 # 0.1 sale_price = price * (1 - discount) # 54.0 print(f"{sale_price:.2f}") ``` On running, it outputs 54.00. It costs $54.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A printer costs $60. It is 10% off. What is the sale price?" }, { "role": "assistant", "content": "```python\nprice = 60\ndiscount = 10 / 100 # 0.1\nsale_price = price * (1 - discount) # 54.0\nprint(f\"{sale_price:.2f}\")\n```\nOn running, it outputs 54.00.\n\nIt ...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "54.00", "printed": "54.00", "notation": null}
nlprog_det-setting-0062479
<|start|><|user|> A client paid a $10,000 retainer. The firm has billed 6 hours at $250 per hour. How much of the retainer is left?<|eot|> <|assistant|> ```python retainer = 10000 hours = 6 rate = 250 left = retainer - hours * rate # 8500 print(left) ``` # run result: 8500 $8,500 of the retainer is left.<|eot|> <|end...
chat
[ { "role": "user", "content": "A client paid a $10,000 retainer. The firm has billed 6 hours at $250 per hour. How much of the retainer is left?" }, { "role": "assistant", "content": "```python\nretainer = 10000\nhours = 6\nrate = 250\nleft = retainer - hours * rate # 8500\nprint(left)\n```\n# r...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "8500", "printed": "8500", "notation": null}
nlprog_det-setting-0062480
To read 176 pages in 11 days, how many pages per day are needed? That is 16 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0062482
Someone works 16 hours at $23.05 per hour. What are the earnings? Here is the program. ```python rate = 23.05 hours = 16 earnings = rate * hours # 368.8 print(f"{earnings:.2f}") ``` # out: 368.80 That earns $368.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "368.80", "printed": "368.80", "notation": null}
nlprog_det-setting-0062483
Equal monthly payments repay $9,000 plus 8% simple yearly interest over 36 months. How large is a payment? Python does the arithmetic: ```python principal = 9000 annual_rate = 8 / 100 # 0.08 months = 36 interest = principal * annual_rate * months / 12 # 2160.0 payment = (principal + interest) / months # 310.0 print...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "310.00", "printed": "310.00", "notation": null}
nlprog_det-setting-0062484
<|start|><|user|> If a 3-year limitations period starts on April 24, 2016, when does it end?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2016, 4, 24) # datetime.date(2016, 4, 24) years = 3 expires = accrued.replace(year=accrued.year + years) # datetime.date(2019, 4, 24) print(expires.isofo...
chat
[ { "role": "user", "content": "If a 3-year limitations period starts on April 24, 2016, when does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2016, 4, 24) # datetime.date(2016, 4, 24)\nyears = 3\nexpires = accrued.replace(year=accrued.year ...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "2019-04-24", "printed": "2019-04-24", "notation": null}
nlprog_det-setting-0062485
<|start|><|user|> How much sales tax is charged on a $830.91 purchase at 9%?<|eot|> <|assistant|> ```python price = 830.91 tax_rate = 9 / 100 # 0.09 tax = price * tax_rate # 74.7819 print(f"{tax:.2f}") ``` Printed = 74.78 The tax is $74.78.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How much sales tax is charged on a $830.91 purchase at 9%?" }, { "role": "assistant", "content": "```python\nprice = 830.91\ntax_rate = 9 / 100 # 0.09\ntax = price * tax_rate # 74.7819\nprint(f\"{tax:.2f}\")\n```\nPrinted = 74.78\n\nThe tax is $74.78." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "74.78", "printed": "74.78", "notation": null}
nlprog_det-setting-0062486
A claim accrued on April 11, 2019. The limitations period is 4 years. On what date does it expire? In code: ```python from datetime import date accrued = date(2019, 4, 11) # datetime.date(2019, 4, 11) years = 4 expires = accrued.replace(year=accrued.year + years) # datetime.date(2023, 4, 11) print(expires.isoformat(...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "2023-04-11", "printed": "2023-04-11", "notation": null}
nlprog_det-setting-0062487
<|start|><|user|> Each storage box holds 15 files. How many boxes are needed for 717 files?<|eot|> <|assistant|> ```python import math files = 717 per_box = 15 boxes = math.ceil(files / per_box) print(boxes) ``` The interpreter prints 48. It takes 48 boxes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each storage box holds 15 files. How many boxes are needed for 717 files?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 717\nper_box = 15\nboxes = math.ceil(files / per_box)\nprint(boxes)\n```\nThe interpreter prints 48.\n\nIt takes 48 boxes...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0062489
From a $5,000 retainer, 8 hours at $150/hour have been drawn. What remains? $3,800 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "3800", "printed": "3800", "notation": null}
nlprog_det-setting-0062490
<|start|><|system|> Keep explanations short.<|eot|> <|user|> 30 copies of a 39-page packet are printed at $0.12 per page. What is the cost?<|eot|> <|assistant|> ```python pages = 39 copies = 30 cost_per_page = 0.12 cost = pages * copies * cost_per_page # 140.4 print(f"{cost:.2f}") ``` Interpreter output — 140.40 Prin...
chat
[ { "role": "system", "content": "Keep explanations short." }, { "role": "user", "content": "30 copies of a 39-page packet are printed at $0.12 per page. What is the cost?" }, { "role": "assistant", "content": "```python\npages = 39\ncopies = 30\ncost_per_page = 0.12\ncost = pages * co...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "140.40", "printed": "140.40", "notation": null}
nlprog_det-setting-0062491
<|start|><|user|> Tobias was born on June 2, 1962. How old is Tobias on March 13, 2027?<|eot|> <|assistant|> ```python from datetime import date born = date(1962, 6, 2) # datetime.date(1962, 6, 2) on = date(2027, 3, 13) # datetime.date(2027, 3, 13) age = on.year - born.year - ((on.month, on.day) < (born.month, born.d...
chat
[ { "role": "user", "content": "Tobias was born on June 2, 1962. How old is Tobias on March 13, 2027?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1962, 6, 2) # datetime.date(1962, 6, 2)\non = date(2027, 3, 13) # datetime.date(2027, 3, 13)\nage = on.ye...
nlprog_det
setting
original
null
deterministic
[]
[]
156
{"gold": "64", "printed": "64", "notation": null}
nlprog_det-setting-0062492
Fixed costs are $1,200. Each unit sells for $30 and costs $26 to make. How many units must be sold to break even? Program: ```python import math fixed = 1200 price = 30 variable = 26 units = math.ceil(fixed / (price - variable)) # 300 print(units) ``` # printed result: 300 300 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0062493
A $1,500 security deposit has deductions of $200, $75 and $120. How much is refunded? Coded up: ```python deposit = 1500 deductions = [200, 75, 120] refund = deposit - sum(deductions) # 1105 print(refund) ``` Running it prints: 1105 $1,105 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "1105", "printed": "1105", "notation": null}
nlprog_det-setting-0062494
A recipe for 6 people uses 300 grams of flour. How many grams are needed for 12 people? Python makes this quick: ```python grams = 300 serves = 6 needed_for = 12 scaled = grams * needed_for // serves # 600 print(scaled) ``` stdout: 600 600 grams of flour are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0062495
Convert 4,655 CHF to USD at 1 CHF = 0.92 USD. Translated to Python: ```python amount = 4655 rate = 0.92 converted = amount * rate # 4282.6 print(f"{converted:.2f}") ``` Program output — 4282.60 That is 4,282.60 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "4282.60", "printed": "4282.60", "notation": null}
nlprog_det-setting-0062496
<|start|><|user|> A class starts at 4:15 PM and lasts 150 minutes. When does it end?<|eot|> <|assistant|> ```python start = 16 * 60 + 15 end = start + 150 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Result: 6:45 PM It ends at 6:45 PM.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A class starts at 4:15 PM and lasts 150 minutes. When does it end?" }, { "role": "assistant", "content": "```python\nstart = 16 * 60 + 15\nend = start + 150\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}\")...
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "6:45 PM", "printed": "6:45 PM", "notation": null}
nlprog_det-setting-0062497
<|start|><|user|> Split $2,840 between Ulla and Nikhil in the ratio 1 to 3. What is Ulla's share?<|eot|> <|assistant|> ```python total = 2840 parts_a = 1 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 710 print(share_a) ``` The interpreter prints: 710 Ulla's share is $710.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Split $2,840 between Ulla and Nikhil in the ratio 1 to 3. What is Ulla's share?" }, { "role": "assistant", "content": "```python\ntotal = 2840\nparts_a = 1\nparts_b = 3\nshare_a = total * parts_a // (parts_a + parts_b) # 710\nprint(share_a)\n```\nThe interpreter pr...
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "710", "printed": "710", "notation": null}
nlprog_det-setting-0062498
<|start|><|user|> Each storage box holds 20 files. How many boxes are needed for 120 files?<|eot|> <|assistant|> ```python import math files = 120 per_box = 20 boxes = math.ceil(files / per_box) # 6 print(boxes) ``` Printed = 6 It takes 6 boxes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each storage box holds 20 files. How many boxes are needed for 120 files?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 120\nper_box = 20\nboxes = math.ceil(files / per_box) # 6\nprint(boxes)\n```\nPrinted = 6\n\nIt takes 6 boxes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0062500
Lena earns a 6% commission on $8,110 of sales. What is the commission? Script: ```python sales = 8110 rate = 6 / 100 # 0.06 commission = sales * rate # 486.59999999999997 print(f"{commission:.2f}") ``` Running it prints 486.60, as expected. The commission is $486.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "486.60", "printed": "486.60", "notation": null}
nlprog_det-setting-0062501
<|start|><|system|> Show working only when it helps.<|eot|> <|user|> At $0.65 per mile, what is the reimbursement for 139 miles?<|eot|> <|assistant|> ```python miles = 139 rate = 0.65 reimbursement = miles * rate # 90.35000000000001 print(f"{reimbursement:.2f}") ``` The printout reads: 90.35 Malik is owed $90.35.<|eo...
chat
[ { "role": "system", "content": "Show working only when it helps." }, { "role": "user", "content": "At $0.65 per mile, what is the reimbursement for 139 miles?" }, { "role": "assistant", "content": "```python\nmiles = 139\nrate = 0.65\nreimbursement = miles * rate # 90.35000000000001...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "90.35", "printed": "90.35", "notation": null}
nlprog_det-setting-0062502
1 books come back 26 days late, at $0.10 a day each. What is the fine? Translated to Python: ```python per_day = 0.1 days_late = 26 books = 1 fine = per_day * days_late * books # 2.6 print(f"{fine:.2f}") ``` # printed result: 2.60 $2.60 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "2.60", "printed": "2.60", "notation": null}
nlprog_det-setting-0062503
<|start|><|system|> Be brief and correct.<|eot|> <|user|> A lawyer's fee is 35% of a $60,000 recovery. How large is the fee?<|eot|> <|assistant|> ```python recovery = 60000 rate = 35 / 100 # 0.35 fee = recovery * rate # 21000.0 print(f"{fee:.2f}") ``` The code prints: 21000.00 The fee is $21,000.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be brief and correct." }, { "role": "user", "content": "A lawyer's fee is 35% of a $60,000 recovery. How large is the fee?" }, { "role": "assistant", "content": "```python\nrecovery = 60000\nrate = 35 / 100 # 0.35\nfee = recovery * rate # 21000.0\npr...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "21000.00", "printed": "21000.00", "notation": null}
nlprog_det-setting-0062504
Nilufar earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 46-hour week? ```python rate = 18.5 hours = 46 regular = 40 * rate # 740.0 overtime = (hours - 40) * rate * 1.5 # 166.5 pay = regular + overtime # 906.5 print(f"{pay:.2f}") ``` # output: 906.50 Nilufar earns $906.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "906.50", "printed": "906.50", "notation": null}
nlprog_det-setting-0062505
A trial runs from August 27, 2018 to September 6, 2018, counting both days. How many calendar days is that? Code: ```python from datetime import date first = date(2018, 8, 27) last = date(2018, 9, 6) days = (last - first).days + 1 print(days) ``` Printed: 11 11 calendar days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0062506
A 5% increase is applied to $1,100 monthly rent. What is the new amount? The program: ```python rent = 1100 increase = 5 / 100 # 0.05 new_rent = rent * (1 + increase) # 1155.0 print(f"{new_rent:.2f}") ``` Console output — 1155.00 The new rent is $1,155.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "1155.00", "printed": "1155.00", "notation": null}
nlprog_det-setting-0062508
<|start|><|user|> On which weekday does May 25, 2024 fall?<|eot|> <|assistant|> ```python from datetime import date hearing = date(2024, 5, 25) # datetime.date(2024, 5, 25) print(hearing.strftime("%A")) ``` stdout — Saturday May 25, 2024 is a Saturday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "On which weekday does May 25, 2024 fall?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(2024, 5, 25) # datetime.date(2024, 5, 25)\nprint(hearing.strftime(\"%A\"))\n```\nstdout — Saturday\n\nMay 25, 2024 is a Saturday." ...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "Saturday", "printed": "Saturday", "notation": null}
nlprog_det-setting-0062509
Convert 803 GBP to USD at 1 GBP = 1.31 USD. The program: ```python amount = 803 rate = 1.31 converted = amount * rate # 1051.93 print(f"{converted:.2f}") ``` Running this gives: 1051.93 It converts to 1,051.93 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "1051.93", "printed": "1051.93", "notation": null}
nlprog_det-setting-0062510
A library charges $0.25 per book per day late. What is the fine for 1 books that are 22 days late? Let the code do the arithmetic: ```python per_day = 0.25 days_late = 22 books = 1 fine = per_day * days_late * books # 5.5 print(f"{fine:.2f}") ``` Run output: 5.50 The fine is $5.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "5.50", "printed": "5.50", "notation": null}
nlprog_det-setting-0062511
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> A trial runs from December 3, 2026 to December 18, 2026, counting both days. How many calendar days is that?<|eot|> <|assistant|> That is 16 days.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "A trial runs from December 3, 2026 to December 18, 2026, counting both days. How many calendar days is that?" }, { "role": "assistant", "content": "That is 16 days." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
53
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0062514
A $30,000 grant pays $2,000 up front and the rest in 4 equal installments. How large is each installment? Each installment is $7,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "7000.00", "printed": "7000.00", "notation": null}
nlprog_det-setting-0062515
Copies cost $5 plus $0.10 for each page beyond 10. How much for 112 pages? In Python: ```python pages = 112 base = 5 per_page = 0.1 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 15.200000000000001 print(f"{cost:.2f}") ``` What it prints — 15.20 The copy costs $15.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "15.20", "printed": "15.20", "notation": null}
nlprog_det-setting-0062516
An unpaid balance of $1,000 accrues 1.5% simple interest per month. How much interest accrues in 6 months? Translated to Python: balance = 1000 monthly_rate = 1.5 / 100 # 0.015 months = 6 interest = balance * monthly_rate * months # 90.0 print(f"{interest:.2f}") It prints 90.00, as expected. The...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "90.00", "printed": "90.00", "notation": null}
nlprog_det-setting-0062517
If a 3-year limitations period starts on July 10, 2012, when does it end? Python, step by step: ```python from datetime import date accrued = date(2012, 7, 10) # datetime.date(2012, 7, 10) years = 3 expires = accrued.replace(year=accrued.year + years) # datetime.date(2015, 7, 10) print(expires.isoformat()) ``` Progr...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "2015-07-10", "printed": "2015-07-10", "notation": null}
nlprog_det-setting-0062518
At an exchange rate of 1.31 CAD per USD, how many CAD is 1,018 USD? ```python amount = 1018 rate = 1.31 converted = amount * rate # 1333.5800000000002 print(f"{converted:.2f}") ``` Result — 1333.58 It converts to 1,333.58 CAD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "1333.58", "printed": "1333.58", "notation": null}
nlprog_det-setting-0062519
<|start|><|user|> Nadia lends $2,500 at 8% simple interest per year for 3 years. How much interest is earned?<|eot|> <|assistant|> ```python principal = 2500 rate = 8 / 100 # 0.08 years = 3 interest = principal * rate * years # 600.0 print(f"{interest:.2f}") ``` Running this gives: 600.00 The interest is $600.00.<|e...
chat
[ { "role": "user", "content": "Nadia lends $2,500 at 8% simple interest per year for 3 years. How much interest is earned?" }, { "role": "assistant", "content": "```python\nprincipal = 2500\nrate = 8 / 100 # 0.08\nyears = 3\ninterest = principal * rate * years # 600.0\nprint(f\"{interest:.2f}\"...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "600.00", "printed": "600.00", "notation": null}
nlprog_det-setting-0062520
At 1.5% a month (simple), what interest builds on $1,000 over 3 months? Python: ```python balance = 1000 monthly_rate = 1.5 / 100 # 0.015 months = 3 interest = balance * monthly_rate * months # 45.0 print(f"{interest:.2f}") ``` Result: 45.00 The interest is $45.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "45.00", "printed": "45.00", "notation": null}
nlprog_det-setting-0062521
<|start|><|user|> Printing costs 5 cents a page. What does it cost to print 186 copies of a 32-page handout?<|eot|> <|assistant|> ```python pages = 32 copies = 186 cost_per_page = 0.05 cost = pages * copies * cost_per_page # 297.6 print(f"{cost:.2f}") ``` # program output: 297.60 Printing costs $297.60.<|eot|> <|end|...
chat
[ { "role": "user", "content": "Printing costs 5 cents a page. What does it cost to print 186 copies of a 32-page handout?" }, { "role": "assistant", "content": "```python\npages = 32\ncopies = 186\ncost_per_page = 0.05\ncost = pages * copies * cost_per_page # 297.6\nprint(f\"{cost:.2f}\")\n```\n...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "297.60", "printed": "297.60", "notation": null}
nlprog_det-setting-0062522
<|start|><|user|> A $2,500 security deposit has deductions of $60, $45 and $120. How much is refunded?<|eot|> <|assistant|> deposit = 2500 deductions = [60, 45, 120] refund = deposit - sum(deductions) # 2275 print(refund) Result: 2275 $2,275 is returned.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $2,500 security deposit has deductions of $60, $45 and $120. How much is refunded?" }, { "role": "assistant", "content": " deposit = 2500\n deductions = [60, 45, 120]\n refund = deposit - sum(deductions) # 2275\n print(refund)\nResult: 2275\n\n$2,275 ...
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "2275", "printed": "2275", "notation": null}
nlprog_det-setting-0062523
<|start|><|user|> Reza has 14 documents to file, and each filing costs $405. How much are the filing fees in total?<|eot|> <|assistant|> $5,670 in filing fees.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Reza has 14 documents to file, and each filing costs $405. How much are the filing fees in total?" }, { "role": "assistant", "content": "$5,670 in filing fees." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "5670", "printed": "5670", "notation": null}
nlprog_det-setting-0062524
At $15.34 an hour, what does 30 hours of work pay? Code: rate = 15.34 hours = 30 earnings = rate * hours # 460.2 print(f"{earnings:.2f}") The script prints: 460.20 The pay is $460.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "460.20", "printed": "460.20", "notation": null}
nlprog_det-setting-0062525
Goods bought on November 10, 2025 carry a 6-month warranty. When does it expire? Python: ```python from datetime import date start = date(2025, 11, 10) months = 6 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Result: 2026...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "2026-05-10", "printed": "2026-05-10", "notation": null}
nlprog_det-setting-0062526
12 notebooks cost $8 apiece. With 10% tax added, what is the total? Code: ```python quantity = 12 unit_price = 8 subtotal = quantity * unit_price # 96 total = subtotal * (1 + 10 / 100) # 105.60000000000001 print(f"{total:.2f}") ``` Running it prints: 105.60 The total with tax is $105.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "105.60", "printed": "105.60", "notation": null}
nlprog_det-setting-0062527
<|start|><|user|> An unpaid balance of $7,500 accrues 1.5% simple interest per month. How much interest accrues in 6 months?<|eot|> <|assistant|> ```python balance = 7500 monthly_rate = 1.5 / 100 months = 6 interest = balance * monthly_rate * months print(f"{interest:.2f}") ``` It prints 675.00. $675.00 accrues.<|eot|...
chat
[ { "role": "user", "content": "An unpaid balance of $7,500 accrues 1.5% simple interest per month. How much interest accrues in 6 months?" }, { "role": "assistant", "content": "```python\nbalance = 7500\nmonthly_rate = 1.5 / 100\nmonths = 6\ninterest = balance * monthly_rate * months\nprint(f\"{i...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "675.00", "printed": "675.00", "notation": null}
nlprog_det-setting-0062528
Shipping costs $10 plus $1.50 per pound. What does a 3-pound parcel cost to ship? Python version: ```python base = 10 per_pound = 1.5 weight = 3 cost = base + per_pound * weight # 14.5 print(f"{cost:.2f}") ``` The script prints 14.50, as expected. The charge is $14.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "14.50", "printed": "14.50", "notation": null}
nlprog_det-setting-0062529
Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 50 hours? A short script: ```python rate = 25.0 hours = 50 regular = 40 * rate # 1000.0 overtime = (hours - 40) * rate * 1.5 # 375.0 pay = regular + overtime # 1375.0 print(f"{pay:.2f}") ``` The script prints 1375.00, as expected...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "1375.00", "printed": "1375.00", "notation": null}
nlprog_det-setting-0062530
<|start|><|user|> A settlement of $36,000 is split equally among 5 parties. How much does each party receive?<|eot|> <|assistant|> ```python settlement = 36000 parties = 5 share = settlement // parties # 7200 print(share) ``` Interpreter output — 7200 Each party receives $7,200.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A settlement of $36,000 is split equally among 5 parties. How much does each party receive?" }, { "role": "assistant", "content": "```python\nsettlement = 36000\nparties = 5\nshare = settlement // parties # 7200\nprint(share)\n```\nInterpreter output — 7200\n\nEach...
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "7200", "printed": "7200", "notation": null}
nlprog_det-setting-0062531
<|start|><|user|> From a $2,500 retainer, 2 hours at $250/hour have been drawn. What remains?<|eot|> <|assistant|> ```python retainer = 2500 hours = 2 rate = 250 left = retainer - hours * rate print(left) ``` (Result: 2000) The remaining balance is $2,000.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From a $2,500 retainer, 2 hours at $250/hour have been drawn. What remains?" }, { "role": "assistant", "content": "```python\nretainer = 2500\nhours = 2\nrate = 250\nleft = retainer - hours * rate\nprint(left)\n```\n(Result: 2000)\n\nThe remaining balance is $2,000....
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "2000", "printed": "2000", "notation": null}
nlprog_det-setting-0062532
<|start|><|user|> If a 6-year limitations period starts on February 14, 2024, when does it end?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2024, 2, 14) years = 6 expires = accrued.replace(year=accrued.year + years) print(expires.isoformat()) ``` Execution result — 2030-02-14 The period exp...
chat
[ { "role": "user", "content": "If a 6-year limitations period starts on February 14, 2024, when does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2024, 2, 14)\nyears = 6\nexpires = accrued.replace(year=accrued.year + years)\nprint(expires.iso...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "2030-02-14", "printed": "2030-02-14", "notation": null}
nlprog_det-setting-0062533
An office budget of $5,000 has expenses of $841, $1,624. How much of the budget is left? Coded up: ```python budget = 5000 expenses = [841, 1624] left = budget - sum(expenses) # 2535 print(left) ``` Execution prints: 2535 $2,535 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "2535", "printed": "2535", "notation": null}
nlprog_det-setting-0062534
Rent of $1,500 goes up 6%. What is the new rent? Here is a short program for it. ```python rent = 1500 increase = 6 / 100 new_rent = rent * (1 + increase) print(f"{new_rent:.2f}") ``` # console output: 1590.00 The new rent is $1,590.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "1590.00", "printed": "1590.00", "notation": null}
nlprog_det-setting-0062535
At a 6% tax rate, what is the tax on $808.58? ```python price = 808.58 tax_rate = 6 / 100 # 0.06 tax = price * tax_rate # 48.5148 print(f"{tax:.2f}") ``` The program prints 48.51. The tax is $48.51.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "48.51", "printed": "48.51", "notation": null}
nlprog_det-setting-0062536
$1,000 is invested at 2% compounded yearly. What is it worth after 4 years? It is worth $1,082.43.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "1082.43", "printed": "1082.43", "notation": null}
nlprog_det-setting-0062537
<|start|><|user|> How many meters are in 8.1 kilometers?<|eot|> <|assistant|> ```python km = 8.1 meters = km * 1000 # 8100.0 print(round(meters)) ``` The code prints: 8100 8,100 m.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many meters are in 8.1 kilometers?" }, { "role": "assistant", "content": "```python\nkm = 8.1\nmeters = km * 1000 # 8100.0\nprint(round(meters))\n```\nThe code prints: 8100\n\n8,100 m." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "8100", "printed": "8100", "notation": null}
nlprog_det-setting-0062539
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> 2 books come back 20 days late, at $0.10 a day each. What is the fine?<|eot|> <|assistant|> ```python per_day = 0.1 days_late = 20 books = 2 fine = per_day * days_late * books # 4.0 print(f"{fine:.2f}") ``` When run, it prints 4.00. $4.00 is owed.<|eot|> <|...
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "2 books come back 20 days late, at $0.10 a day each. What is the fine?" }, { "role": "assistant", "content": "```python\nper_day = 0.1\ndays_late = 20\nbooks = 2\nfine = per_day * days_late * b...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "4.00", "printed": "4.00", "notation": null}
nlprog_det-setting-0062540
Revenue is $10,000 and costs are $8,000. What is the profit margin as a percent of revenue (one decimal)? The margin is 20.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "20.0", "printed": "20.0", "notation": null}
nlprog_det-setting-0062541
What simple interest does $8,000 earn at 6% a year over 3 years? We write it as a program: ```python principal = 8000 rate = 6 / 100 # 0.06 years = 3 interest = principal * rate * years # 1440.0 print(f"{interest:.2f}") ``` It outputs 1440.00. The interest is $1,440.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "1440.00", "printed": "1440.00", "notation": null}
nlprog_det-setting-0062542
A measure needs at least 75% of 41 votes. How many votes is that, rounded up? Python, step by step: ```python import math voters = 41 needed = math.ceil(voters * 75 / 100) # 31 print(needed) ``` # execution result: 31 31 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "31", "printed": "31", "notation": null}
nlprog_det-setting-0062543
A board has 30 members. A majority is more than half. How many votes make a majority? Code: ```python members = 30 majority = members // 2 + 1 # 16 print(majority) ``` The script prints 16. That is 16 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0062544
<|start|><|user|> A deposition lasted 4 hours and 22 minutes. How many minutes is that?<|eot|> <|assistant|> ```python hours = 4 minutes = 22 total_minutes = hours * 60 + minutes print(total_minutes) ``` # run result: 262 The deposition lasted 262 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A deposition lasted 4 hours and 22 minutes. How many minutes is that?" }, { "role": "assistant", "content": "```python\nhours = 4\nminutes = 22\ntotal_minutes = hours * 60 + minutes\nprint(total_minutes)\n```\n# run result: 262\n\nThe deposition lasted 262 minutes."...
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "262", "printed": "262", "notation": null}
nlprog_det-setting-0062545
A 13 × 10 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up? Python version: ```python import math length = 13 width = 10 tile = 2 tiles = math.ceil(length * width / (tile * tile)) print(tiles) ``` Console: 33 It takes 33 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "33", "printed": "33", "notation": null}
nlprog_det-setting-0062546
<|start|><|system|> Functions: [{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "py_exec", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": ...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"py_exec\", \"description\": \"Use for arithmetic a...
nlprog_det
setting
original
null
deterministic
[]
[]
274
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0062547
The rules require 3/5 of 38 members (round up) to be present. How many is that? Python version: import math members = 38 quorum = math.ceil(members * 3 / 5) # 23 print(quorum) (Run result: 23) That is 23 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0062548
Copies cost $10 plus $0.10 for each page beyond 20. How much for 115 pages? One way, in code: pages = 115 base = 10 per_page = 0.1 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 19.5 print(f"{cost:.2f}") The printout reads 19.50. The total is $19.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "19.50", "printed": "19.50", "notation": null}
nlprog_det-setting-0062549
<|start|><|system|> Avoid unnecessary detail.<|eot|> <|user|> How many days are there from January 18, 2019 to October 3, 2019?<|eot|> <|assistant|> ```python from datetime import date first = date(2019, 1, 18) # datetime.date(2019, 1, 18) second = date(2019, 10, 3) # datetime.date(2019, 10, 3) print((second - first)...
chat
[ { "role": "system", "content": "Avoid unnecessary detail." }, { "role": "user", "content": "How many days are there from January 18, 2019 to October 3, 2019?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2019, 1, 18) # datetime.date(2019, ...
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "258", "printed": "258", "notation": null}
nlprog_det-setting-0062550
An office budget of $25,000 has expenses of $2,939, $1,040, $1,493. How much of the budget is left? Python makes this quick: ```python budget = 25000 expenses = [2939, 1040, 1493] left = budget - sum(expenses) # 19528 print(left) ``` Interpreter output: 19528 The remaining budget is $19,528.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "19528", "printed": "19528", "notation": null}