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-0046369
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "code_runner", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"code_runner\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"de...
nlprog_det
setting
original
null
deterministic
[]
[]
241
{"gold": "22.08", "printed": "22.08", "notation": null}
nlprog_det-setting-0046370
A $1,500 security deposit has deductions of $150, $45 and $75. How much is refunded? In Python: ```python deposit = 1500 deductions = [150, 45, 75] refund = deposit - sum(deductions) print(refund) ``` Printed: 1230 The refund is $1,230.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "1230", "printed": "1230", "notation": null}
nlprog_det-setting-0046371
A hall has 13 rows of 17 seats, and 15 seats are empty. How many people are seated? Python version: ```python rows = 13 per_row = 17 empty = 15 seated = rows * per_row - empty # 206 print(seated) ``` The run gives 206. 206 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "206", "printed": "206", "notation": null}
nlprog_det-setting-0046372
A 552-page report must be reviewed in 12 days. How many pages a day is that, evenly? The program: ```python pages = 552 days = 12 per_day = pages // days print(per_day) ``` Execution prints: 46 That is 46 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "46", "printed": "46", "notation": null}
nlprog_det-setting-0046373
At an exchange rate of 1.35 CAD per USD, how many CAD is 1,044 USD? That is 1,409.40 CAD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "1409.40", "printed": "1409.40", "notation": null}
nlprog_det-setting-0046374
<|start|><|user|> To read 532 pages in 14 days, how many pages per day are needed?<|eot|> <|assistant|> pages = 532 days = 14 per_day = pages // days # 38 print(per_day) What it prints: 38 That is 38 pages per day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "To read 532 pages in 14 days, how many pages per day are needed?" }, { "role": "assistant", "content": " pages = 532\n days = 14\n per_day = pages // days # 38\n print(per_day)\nWhat it prints: 38\n\nThat is 38 pages per day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "38", "printed": "38", "notation": null}
nlprog_det-setting-0046375
A court charges $5 per request plus $0.10 per page after the first 20 pages. What does a 92-page copy cost? The total is $12.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "12.20", "printed": "12.20", "notation": null}
nlprog_det-setting-0046376
4 clients win $96,000. The lawyer takes 40%, and the rest is split equally. How much does each client get? The Python version: ```python award = 96000 fee = award * 40 / 100 # 38400.0 remaining = award - fee # 57600.0 per_client = remaining / 4 # 14400.0 print(f"{per_client:.2f}") ``` Result = 14400.00 Each client...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "14400.00", "printed": "14400.00", "notation": null}
nlprog_det-setting-0046378
<|start|><|user|> Monthly: $29. Annual: $324. What is saved per year by paying annually?<|eot|> <|assistant|> ```python monthly = 29 yearly = 324 savings = monthly * 12 - yearly # 24 print(savings) ``` The script prints 24. $24 is saved.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Monthly: $29. Annual: $324. What is saved per year by paying annually?" }, { "role": "assistant", "content": "```python\nmonthly = 29\nyearly = 324\nsavings = monthly * 12 - yearly # 24\nprint(savings)\n```\nThe script prints 24.\n\n$24 is saved." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0046379
2 friends split a $84 bill plus a 15% tip evenly. How much does each pay? The program: ```python bill = 84 tip_rate = 15 / 100 # 0.15 people = 2 each = bill * (1 + tip_rate) / people # 48.3 print(f"{each:.2f}") ``` Shell output: 48.30 Each person pays $48.30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "48.30", "printed": "48.30", "notation": null}
nlprog_det-setting-0046380
<|start|><|user|> Goods bought on January 8, 2022 carry a 24-month warranty. When does it expire?<|eot|> <|assistant|> ```python from datetime import date start = date(2022, 1, 8) months = 24 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.i...
chat
[ { "role": "user", "content": "Goods bought on January 8, 2022 carry a 24-month warranty. When does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2022, 1, 8)\nmonths = 24\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(...
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "2024-01-08", "printed": "2024-01-08", "notation": null}
nlprog_det-setting-0046381
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> 93 copies of a 51-page packet are printed at $0.05 per page. What is the cost?<|eot|> <|assistant|> ```python pages = 51 copies = 93 cost_per_page = 0.05 cost = pages * copies * cost_per_page # 237.15 print(f"{cost:.2f}") ``` # result: 237.15 The job co...
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "93 copies of a 51-page packet are printed at $0.05 per page. What is the cost?" }, { "role": "assistant", "content": "```python\npages = 51\ncopies = 93\ncost_per_page = 0.05\ncost = pages ...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "237.15", "printed": "237.15", "notation": null}
nlprog_det-setting-0046382
What is 0 degrees Celsius in Fahrenheit? In code: celsius = 0 fahrenheit = celsius * 9 / 5 + 32 print(round(fahrenheit)) (Output: 32) It equals 32 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0046383
<|start|><|user|> How many of 44 members form a majority (more than half)?<|eot|> <|assistant|> ```python members = 44 majority = members // 2 + 1 # 23 print(majority) ``` Output = 23 That is 23 members.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 44 members form a majority (more than half)?" }, { "role": "assistant", "content": "```python\nmembers = 44\nmajority = members // 2 + 1 # 23\nprint(majority)\n```\nOutput = 23\n\nThat is 23 members." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0046384
A 325-mile drive at a steady 50 mph takes how many minutes? The trip takes 390 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "390", "printed": "390", "notation": null}
nlprog_det-setting-0046385
An unpaid balance of $12,000 accrues 1.5% simple interest per month. How much interest accrues in 2 months? Here is the program. ```python balance = 12000 monthly_rate = 1.5 / 100 # 0.015 months = 2 interest = balance * monthly_rate * months # 360.0 print(f"{interest:.2f}") ``` Shell output: 360.00 The interest is ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "360.00", "printed": "360.00", "notation": null}
nlprog_det-setting-0046386
<|start|><|system|> Tools (call with JSON): {"name": "compute", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> <|user|> Delia buys 9 boxes of 8...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"compute\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": ...
nlprog_det
setting
original
null
deterministic
[]
[]
228
{"gold": "53", "printed": "53", "notation": null}
nlprog_det-setting-0046387
Water costs $20 a month plus $3.50 for each 1,000 gallons over 0,000. What is owed for 9,000 gallons? Python: ```python base = 20 rate = 3.5 used = 9 free = 0 bill = base + rate * max(0, used - free) # 51.5 print(f"{bill:.2f}") ``` Execution prints 51.50. $51.50 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "51.50", "printed": "51.50", "notation": null}
nlprog_det-setting-0046389
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> Convert 48.6 km to meters.<|eot|> <|assistant|> km = 48.6 meters = km * 1000 # 48600.0 print(round(meters)) The interpreter prints 48600. That is 48,600 meters.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "Convert 48.6 km to meters." }, { "role": "assistant", "content": " km = 48.6\n meters = km * 1000 # 48600.0\n print(round(meters))\nThe interpreter prints 48600.\n\nThat is 4...
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "48600", "printed": "48600", "notation": null}
nlprog_det-setting-0046390
<|start|><|user|> How long, in days, is it from June 5, 2023 until December 31, 2023?<|eot|> <|assistant|> from datetime import date first = date(2023, 6, 5) # datetime.date(2023, 6, 5) second = date(2023, 12, 31) # datetime.date(2023, 12, 31) print((second - first).days) Running it prints 209, as exp...
chat
[ { "role": "user", "content": "How long, in days, is it from June 5, 2023 until December 31, 2023?" }, { "role": "assistant", "content": " from datetime import date\n first = date(2023, 6, 5) # datetime.date(2023, 6, 5)\n second = date(2023, 12, 31) # datetime.date(2023, 12, 31)\n p...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "209", "printed": "209", "notation": null}
nlprog_det-setting-0046391
<|start|><|user|> Zainab drove 588 miles for work. Mileage is reimbursed at 70 cents a mile. How much is the reimbursement?<|eot|> <|assistant|> ```python miles = 588 rate = 0.7 reimbursement = miles * rate # 411.59999999999997 print(f"{reimbursement:.2f}") ``` The script prints 411.60. Zainab is owed $411.60.<|eot|>...
chat
[ { "role": "user", "content": "Zainab drove 588 miles for work. Mileage is reimbursed at 70 cents a mile. How much is the reimbursement?" }, { "role": "assistant", "content": "```python\nmiles = 588\nrate = 0.7\nreimbursement = miles * rate # 411.59999999999997\nprint(f\"{reimbursement:.2f}\")\n...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "411.60", "printed": "411.60", "notation": null}
nlprog_det-setting-0046392
A count moves from 2,500 to 2,375. By what percent did it change (use a minus sign for a drop)? As a program: ```python old = 2500 new = 2375 change = (new - old) / old * 100 # -5.0 print(round(change)) ``` The printout reads: -5 The change is -5%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "-5", "printed": "-5", "notation": null}
nlprog_det-setting-0046393
9 boxes hold 10 badges each. After 15 are handed out, how many are left? We can compute it in Python. ```python boxes = 9 per_box = 10 given_away = 15 left = boxes * per_box - given_away # 75 print(left) ``` # run result: 75 That leaves 75 badges.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "75", "printed": "75", "notation": null}
nlprog_det-setting-0046394
Papers were served by mail on October 18, 2027. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date? Let the code do the arithmetic: ```python from datetime import date, timedelta served = date(2027, 10, 18) # datetime.date(2027, 10, 18) response_days = 14 mail_days = 3 due = ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
183
{"gold": "2027-11-04", "printed": "2027-11-04", "notation": null}
nlprog_det-setting-0046395
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> Count 90 days forward from April 2, 2024. What date is that?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2024, 4, 2) # datetime.date(2024, 4, 2) end = start + timedelta(days=90) # datetime.date(2024, 7, 1) print...
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "Count 90 days forward from April 2, 2024. What date is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2024, 4, 2) # datetim...
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "2024-07-01", "printed": "2024-07-01", "notation": null}
nlprog_det-setting-0046396
<|start|><|user|> How much sales tax is charged on a $299.48 purchase at 4%?<|eot|> <|assistant|> ```python price = 299.48 tax_rate = 4 / 100 # 0.04 tax = price * tax_rate # 11.9792 print(f"{tax:.2f}") ``` That prints: 11.98 $11.98 in tax.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How much sales tax is charged on a $299.48 purchase at 4%?" }, { "role": "assistant", "content": "```python\nprice = 299.48\ntax_rate = 4 / 100 # 0.04\ntax = price * tax_rate # 11.9792\nprint(f\"{tax:.2f}\")\n```\nThat prints: 11.98\n\n$11.98 in tax." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "11.98", "printed": "11.98", "notation": null}
nlprog_det-setting-0046397
<|start|><|system|> Tools (call with JSON): [{"name": "interpreter", "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|> Counting only...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"interpreter\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"re...
nlprog_det
setting
original
null
deterministic
[]
[]
285
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0046398
Divide 242 items among 9 groups as evenly as possible with equal groups. How many per group, and how many remain? Let's compute it with Python. ```python total = 242 groups = 9 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Printed — 26 each, 8 left over The answer:...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "26 each, 8 left over", "printed": "26 each, 8 left over", "notation": null}
nlprog_det-setting-0046399
Filing fees are $50 per document. What do 18 filings cost? Computing it: ```python fee = 50 filings = 18 total = fee * filings # 900 print(total) ``` That prints 900. The total fee is $900.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0046400
<|start|><|user|> Meals are $79 per day and lodging $110 per night. What is the allowance for 7 days and 6 nights?<|eot|> <|assistant|> That comes to $1,213.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Meals are $79 per day and lodging $110 per night. What is the allowance for 7 days and 6 nights?" }, { "role": "assistant", "content": "That comes to $1,213." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "1213", "printed": "1213", "notation": null}
nlprog_det-setting-0046401
Parking is $2 per hour with a daily maximum of $18. What do 4 hours cost? Parking costs $8.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0046402
<|start|><|system|> Tool definitions: [{"name": "python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> What percentage of $8,000 is $4,800?<|e...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\"]}}]"...
nlprog_det
setting
original
null
deterministic
[]
[]
202
{"gold": "60.0", "printed": "60.0", "notation": null}
nlprog_det-setting-0046403
<|start|><|user|> One can of paint covers 350 square feet. How many cans are needed for 781 square feet of wall?<|eot|> <|assistant|> ```python import math area = 781 coverage = 350 cans = math.ceil(area / coverage) # 3 print(cans) ``` The script prints 3, as expected. Buy 3 cans.<|eot|> <|end|>
chat
[ { "role": "user", "content": "One can of paint covers 350 square feet. How many cans are needed for 781 square feet of wall?" }, { "role": "assistant", "content": "```python\nimport math\narea = 781\ncoverage = 350\ncans = math.ceil(area / coverage) # 3\nprint(cans)\n```\nThe script prints 3, a...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0046405
Copies cost $10 plus $0.10 for each page beyond 20. How much for 106 pages? As a program: ```python pages = 106 base = 10 per_page = 0.1 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 18.6 print(f"{cost:.2f}") ``` Executing it gives 18.60, as expected. The total is $18.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "18.60", "printed": "18.60", "notation": null}
nlprog_det-setting-0046406
A service costs $9 a month or $90 a year. How much does the yearly plan save over 12 monthly payments? Python does the arithmetic: ```python monthly = 9 yearly = 90 savings = monthly * 12 - yearly # 18 print(savings) ``` # run result: 18 $18 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0046407
From a $2,500 retainer, 9 hours at $275/hour have been drawn. What remains? ```python retainer = 2500 hours = 9 rate = 275 left = retainer - hours * rate # 25 print(left) ``` Run it and it prints 25. $25 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0046408
A recipe for 8 people uses 300 grams of oats. How many grams are needed for 12 people? 450 grams of oats are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "450", "printed": "450", "notation": null}
nlprog_det-setting-0046409
<|start|><|user|> What is the total rent on a 24-month lease at $1,640 a month?<|eot|> <|assistant|> ```python monthly_rent = 1640 months = 24 total = monthly_rent * months # 39360 print(total) ``` stdout: 39360 The rent over the term is $39,360.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is the total rent on a 24-month lease at $1,640 a month?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 1640\nmonths = 24\ntotal = monthly_rent * months # 39360\nprint(total)\n```\nstdout:\n39360\n\nThe rent over the term is $39,360." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "39360", "printed": "39360", "notation": null}
nlprog_det-setting-0046410
$10,000 is invested at 4% compounded yearly. What is it worth after 2 years? As Python: ```python principal = 10000 rate = 4 / 100 years = 2 value = principal * (1 + rate) ** years print(f"{value:.2f}") ``` (Printed: 10816.00) The balance is $10,816.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "10816.00", "printed": "10816.00", "notation": null}
nlprog_det-setting-0046411
<|start|><|user|> A shift runs from 8:22 AM to 9:57 AM. How long is it in minutes?<|eot|> <|assistant|> ```python start = 8 * 60 + 22 # 502 end = 9 * 60 + 57 # 597 print(end - start) ``` Execution result — 95 It is 95 minutes long.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A shift runs from 8:22 AM to 9:57 AM. How long is it in minutes?" }, { "role": "assistant", "content": "```python\nstart = 8 * 60 + 22 # 502\nend = 9 * 60 + 57 # 597\nprint(end - start)\n```\nExecution result — 95\n\nIt is 95 minutes long." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "95", "printed": "95", "notation": null}
nlprog_det-setting-0046412
<|start|><|user|> Under a 33% contingency agreement, what fee is owed on a $40,000 award?<|eot|> <|assistant|> ```python recovery = 40000 rate = 33 / 100 # 0.33 fee = recovery * rate # 13200.0 print(f"{fee:.2f}") ``` Run output: 13200.00 The fee is $13,200.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Under a 33% contingency agreement, what fee is owed on a $40,000 award?" }, { "role": "assistant", "content": "```python\nrecovery = 40000\nrate = 33 / 100 # 0.33\nfee = recovery * rate # 13200.0\nprint(f\"{fee:.2f}\")\n```\nRun output: 13200.00\n\nThe fee is $13,...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "13200.00", "printed": "13200.00", "notation": null}
nlprog_det-setting-0046413
<|start|><|user|> How many weekdays (Monday to Friday) fall after December 14, 2020 up to and including January 4, 2021?<|eot|> <|assistant|> from datetime import date, timedelta start = date(2020, 12, 14) end = date(2021, 1, 4) count = 0 for k in range(1, (end - start).days + 1): if (start ...
chat
[ { "role": "user", "content": "How many weekdays (Monday to Friday) fall after December 14, 2020 up to and including January 4, 2021?" }, { "role": "assistant", "content": " from datetime import date, timedelta\n start = date(2020, 12, 14)\n end = date(2021, 1, 4)\n count = 0\n for...
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0046414
2 friends split a $240 bill plus a 20% tip evenly. How much does each pay? ```python bill = 240 tip_rate = 20 / 100 # 0.2 people = 2 each = bill * (1 + tip_rate) / people # 144.0 print(f"{each:.2f}") ``` # printed: 144.00 The share is $144.00 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "144.00", "printed": "144.00", "notation": null}
nlprog_det-setting-0046415
696 files go into boxes of 25. How many boxes does that take? It takes 28 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0046416
<|start|><|user|> Which is cheaper per unit: 10 for $9.45 (A) or 15 for $13.90 (B)?<|eot|> <|assistant|> ```python pack_a = 9.45 / 10 pack_b = 13.9 / 15 cheaper = "A" if pack_a < pack_b else "B" print(cheaper) ``` (Out: B) Pack B is cheaper per item.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Which is cheaper per unit: 10 for $9.45 (A) or 15 for $13.90 (B)?" }, { "role": "assistant", "content": "```python\npack_a = 9.45 / 10\npack_b = 13.9 / 15\ncheaper = \"A\" if pack_a < pack_b else \"B\"\nprint(cheaper)\n```\n(Out: B)\n\nPack B is cheaper per item." ...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0046417
How much sales tax is charged on a $318.08 purchase at 9%? Set it up in Python: ```python price = 318.08 tax_rate = 9 / 100 # 0.09 tax = price * tax_rate # 28.6272 print(f"{tax:.2f}") ``` When run, it prints 28.63, as expected. The tax is $28.63.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "28.63", "printed": "28.63", "notation": null}
nlprog_det-setting-0046418
<|start|><|user|> A measure needs at least 67% of 273 votes. How many votes is that, rounded up?<|eot|> <|assistant|> ```python import math voters = 273 needed = math.ceil(voters * 67 / 100) # 183 print(needed) ``` Python prints 183, as expected. At least 183 votes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A measure needs at least 67% of 273 votes. How many votes is that, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 273\nneeded = math.ceil(voters * 67 / 100) # 183\nprint(needed)\n```\nPython prints 183, as expected.\n\nAt least ...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "183", "printed": "183", "notation": null}
nlprog_det-setting-0046419
<|start|><|system|> You can call tools. Available tools: {"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}} {"name": "calculator", "description": "Run Py...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", ...
nlprog_det
setting
original
null
deterministic
[]
[]
385
{"gold": "411.38", "printed": "411.38", "notation": null}
nlprog_det-setting-0046420
Express 39 hours in days and hours. ```python hours = 39 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Printed — 1 days and 15 hours 39 hours is 1 days and 15 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "1 days and 15 hours", "printed": "1 days and 15 hours", "notation": null}
nlprog_det-setting-0046421
The statute was enacted in 2007. How many years had passed by 2029? Python, step by step: start_year = 2007 end_year = 2029 print(end_year - start_year) Interpreter output: 22 That is 22 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
68
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0046422
<|start|><|user|> Kaito and Diego share $764 in the ratio 1:3. How much does Kaito get?<|eot|> <|assistant|> ```python total = 764 parts_a = 1 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 191 print(share_a) ``` The script prints 191. Kaito gets $191.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Kaito and Diego share $764 in the ratio 1:3. How much does Kaito get?" }, { "role": "assistant", "content": "```python\ntotal = 764\nparts_a = 1\nparts_b = 3\nshare_a = total * parts_a // (parts_a + parts_b) # 191\nprint(share_a)\n```\nThe script prints 191.\n\nKai...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "191", "printed": "191", "notation": null}
nlprog_det-setting-0046423
<|start|><|system|> You can call tools. Available tools: [{"name": "eval_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> How many weekdays (...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"eval_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\...
nlprog_det
setting
original
null
deterministic
[]
[]
295
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0046424
The paralegal logged 6.5 hours at a rate of $250. How much is billed? Script: hours = 6.5 rate = 250 bill = hours * rate # 1625.0 print(f"{bill:.2f}") Output of the run: 1625.00 The bill is $1,625.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "1625.00", "printed": "1625.00", "notation": null}
nlprog_det-setting-0046425
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "interpreter", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name"...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"interpreter\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python...
nlprog_det
setting
original
null
deterministic
[]
[]
315
{"gold": "18000", "printed": "18000", "notation": null}
nlprog_det-setting-0046426
<|start|><|user|> Copies cost $5 plus $0.25 for each page beyond 20. How much for 42 pages?<|eot|> <|assistant|> ```python pages = 42 base = 5 per_page = 0.25 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 10.5 print(f"{cost:.2f}") ``` Out: 10.50 The total is $10.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Copies cost $5 plus $0.25 for each page beyond 20. How much for 42 pages?" }, { "role": "assistant", "content": "```python\npages = 42\nbase = 5\nper_page = 0.25\nfree_pages = 20\ncost = base + max(0, pages - free_pages) * per_page # 10.5\nprint(f\"{cost:.2f}\")\n`...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "10.50", "printed": "10.50", "notation": null}
nlprog_det-setting-0046427
98 copies of a 43-page packet are printed at $0.10 per page. What is the cost? Program: ```python pages = 43 copies = 98 cost_per_page = 0.1 cost = pages * copies * cost_per_page # 421.40000000000003 print(f"{cost:.2f}") ``` # program output: 421.40 Printing costs $421.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "421.40", "printed": "421.40", "notation": null}
nlprog_det-setting-0046428
Convert 7,153 USD to CAD at 1 USD = 1.27 CAD. As a program: ```python amount = 7153 rate = 1.27 converted = amount * rate # 9084.31 print(f"{converted:.2f}") ``` Run output: 9084.31 It converts to 9,084.31 CAD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "9084.31", "printed": "9084.31", "notation": null}
nlprog_det-setting-0046429
A pack of 12 batteries sells for $384. What does each cost? Python code: total = 384 count = 12 per_item = total // count # 32 print(per_item) On running, it outputs 32. The unit price is $32.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0046431
A 9-day trip pays $74 a day for meals and $140 a night for lodging (8 nights). What is the total allowance? As a program: ```python days = 9 meal_rate = 74 lodging_rate = 140 nights = days - 1 # 8 total = days * meal_rate + nights * lodging_rate # 1786 print(total) ``` # result: 1786 The allowance is $1,786.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "1786", "printed": "1786", "notation": null}
nlprog_det-setting-0046432
<|start|><|user|> Attendance was 18 out of 20. Express it as a percent.<|eot|> <|assistant|> ```python present = 18 total = 20 percent = present / total * 100 # 90.0 print(round(percent, 1)) ``` Run result: 90.0 Attendance was 90.0%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Attendance was 18 out of 20. Express it as a percent." }, { "role": "assistant", "content": "```python\npresent = 18\ntotal = 20\npercent = present / total * 100 # 90.0\nprint(round(percent, 1))\n```\nRun result: 90.0\n\nAttendance was 90.0%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "90.0", "printed": "90.0", "notation": null}
nlprog_det-setting-0046433
At an exchange rate of 1.08 USD per CHF, how many USD is 3,462 CHF? Let the code do the arithmetic: ```python amount = 3462 rate = 1.08 converted = amount * rate # 3738.96 print(f"{converted:.2f}") ``` # printed: 3738.96 It converts to 3,738.96 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "3738.96", "printed": "3738.96", "notation": null}
nlprog_det-setting-0046435
Wen was born on July 4, 2002. How old is Wen on January 9, 2021? One way, in code: ```python from datetime import date born = date(2002, 7, 4) # datetime.date(2002, 7, 4) on = date(2021, 1, 9) # datetime.date(2021, 1, 9) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 18 print(age) ``` I...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0046437
<|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": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> A penalty o...
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\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, ...
nlprog_det
setting
original
null
deterministic
[]
[]
224
{"gold": "325", "printed": "325", "notation": null}
nlprog_det-setting-0046438
Sales went from 1,200 to 1,020. What is the percent change? The computation: old = 1200 new = 1020 change = (new - old) / old * 100 print(round(change)) Out — -15 It changed by -15%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
70
{"gold": "-15", "printed": "-15", "notation": null}
nlprog_det-setting-0046440
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> Convert 40 °C to Fahrenheit.<|eot|> <|assistant|> ```python celsius = 40 fahrenheit = celsius * 9 / 5 + 32 # 104.0 print(round(fahrenheit)) ``` # out: 104 It equals 104 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "role": "user", "content": "Convert 40 °C to Fahrenheit." }, { "role": "assistant", "content": "```python\ncelsius = 40\nfahrenheit = celsius * 9 / 5 + 32 # 104.0\nprint(round(fahrenheit))\n```\n# out: 104\n\nIt eq...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "104", "printed": "104", "notation": null}
nlprog_det-setting-0046441
<|start|><|user|> Equal monthly payments repay $6,000 plus 10% simple yearly interest over 24 months. How large is a payment?<|eot|> <|assistant|> ```python principal = 6000 annual_rate = 10 / 100 # 0.1 months = 24 interest = principal * annual_rate * months / 12 # 1200.0 payment = (principal + interest) / months # ...
chat
[ { "role": "user", "content": "Equal monthly payments repay $6,000 plus 10% simple yearly interest over 24 months. How large is a payment?" }, { "role": "assistant", "content": "```python\nprincipal = 6000\nannual_rate = 10 / 100 # 0.1\nmonths = 24\ninterest = principal * annual_rate * months / ...
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "300.00", "printed": "300.00", "notation": null}
nlprog_det-setting-0046442
A $84 dinner bill gets a 18% tip, and 5 people share the cost equally. What is each person's share? Each person pays $19.82.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "19.82", "printed": "19.82", "notation": null}
nlprog_det-setting-0046443
Count 10 days forward from June 16, 2027. What date is that? Python version: ```python from datetime import date, timedelta start = date(2027, 6, 16) # datetime.date(2027, 6, 16) end = start + timedelta(days=10) # datetime.date(2027, 6, 26) print(end.isoformat()) ``` (stdout: 2027-06-26) The period ends on June 26,...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "2027-06-26", "printed": "2027-06-26", "notation": null}
nlprog_det-setting-0046444
<|start|><|user|> 4 clients win $30,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> ```python award = 30000 fee = award * 40 / 100 # 12000.0 remaining = award - fee # 18000.0 per_client = remaining / 4 # 4500.0 print(f"{per_client:.2f}") ``` The program p...
chat
[ { "role": "user", "content": "4 clients win $30,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": "```python\naward = 30000\nfee = award * 40 / 100 # 12000.0\nremaining = award - fee # 18000.0\nper_client = remaining ...
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "4500.00", "printed": "4500.00", "notation": null}
nlprog_det-setting-0046445
A penalty of $100 a day accrues, capped at $5,000. What is owed after 26 days? Let's compute it with Python. ```python per_day = 100 days = 26 cap = 5000 fine = min(per_day * days, cap) # 2600 print(fine) ``` Result = 2600 $2,600 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "2600", "printed": "2600", "notation": null}
nlprog_det-setting-0046446
<|start|><|user|> An office budget of $8,000 has expenses of $3,897, $1,311, $2,552. How much of the budget is left?<|eot|> <|assistant|> ```python budget = 8000 expenses = [3897, 1311, 2552] left = budget - sum(expenses) # 240 print(left) ``` Execution prints: 240 The remaining budget is $240.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An office budget of $8,000 has expenses of $3,897, $1,311, $2,552. How much of the budget is left?" }, { "role": "assistant", "content": "```python\nbudget = 8000\nexpenses = [3897, 1311, 2552]\nleft = budget - sum(expenses) # 240\nprint(left)\n```\nExecution print...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "240", "printed": "240", "notation": null}
nlprog_det-setting-0046447
<|start|><|user|> Goods bought on February 14, 2024 carry a 36-month warranty. When does it expire?<|eot|> <|assistant|> ```python from datetime import date start = date(2024, 2, 14) months = 36 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(en...
chat
[ { "role": "user", "content": "Goods bought on February 14, 2024 carry a 36-month warranty. When does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2024, 2, 14)\nmonths = 36\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = da...
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "2027-02-14", "printed": "2027-02-14", "notation": null}
nlprog_det-setting-0046448
<|start|><|user|> On which weekday does December 21, 1990 fall?<|eot|> <|assistant|> from datetime import date hearing = date(1990, 12, 21) # datetime.date(1990, 12, 21) print(hearing.strftime("%A")) Printed = Friday December 21, 1990 is a Friday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "On which weekday does December 21, 1990 fall?" }, { "role": "assistant", "content": " from datetime import date\n hearing = date(1990, 12, 21) # datetime.date(1990, 12, 21)\n print(hearing.strftime(\"%A\"))\nPrinted = Friday\n\nDecember 21, 1990 is a Frida...
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "Friday", "printed": "Friday", "notation": null}
nlprog_det-setting-0046449
A quorum is 2/3 of the 20 members, rounded up. How many members make a quorum? A Python solution: ```python import math members = 20 quorum = math.ceil(members * 2 / 3) # 14 print(quorum) ``` (Program output: 14) 14 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0046450
Which is cheaper per unit: 10 for $10.19 (A) or 15 for $31.23 (B)? Let the code do the arithmetic: ```python pack_a = 10.19 / 10 # 1.019 pack_b = 31.23 / 15 # 2.082 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` (Printed result: A) A has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0046451
What is a 15% tip on a $67.36 bill? Translated to Python: ```python bill = 67.36 tip_rate = 15 / 100 # 0.15 tip = bill * tip_rate # 10.104 print(f"{tip:.2f}") ``` Execution prints 10.10, as expected. The tip is $10.10.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "10.10", "printed": "10.10", "notation": null}
nlprog_det-setting-0046452
After a 25% fee is taken from a $96,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share? Here is the program. ```python award = 96000 fee = award * 25 / 100 # 24000.0 remaining = award - fee # 72000.0 per_client = remaining / 2 # 36000.0 print(f"{per_client:.2f}") ``` The program ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "36000.00", "printed": "36000.00", "notation": null}
nlprog_det-setting-0046453
<|start|><|system|> You are a careful reviewer of figures.<|eot|> <|user|> A lease runs for 24 months at $1,200 per month. How much rent is paid over the whole term?<|eot|> <|assistant|> ```python monthly_rent = 1200 months = 24 total = monthly_rent * months # 28800 print(total) ``` # result: 28800 The rent over the ...
chat
[ { "role": "system", "content": "You are a careful reviewer of figures." }, { "role": "user", "content": "A lease runs for 24 months at $1,200 per month. How much rent is paid over the whole term?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 1200\nmonths = 24\ntota...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "28800", "printed": "28800", "notation": null}
nlprog_det-setting-0046454
Find the mean of these test scores: 91, 67, 92, 55, 83 and 50. Program: ```python scores = [91, 67, 92, 55, 83, 50] average = sum(scores) // len(scores) # 73 print(average) ``` Result = 73 The average score is 73.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "73", "printed": "73", "notation": null}
nlprog_det-setting-0046455
<|start|><|system|> Be brief and correct.<|eot|> <|user|> A $96 dinner bill gets a 18% tip, and 2 people share the cost equally. What is each person's share?<|eot|> <|assistant|> ```python bill = 96 tip_rate = 18 / 100 # 0.18 people = 2 each = bill * (1 + tip_rate) / people # 56.64 print(f"{each:.2f}") ``` # console ...
chat
[ { "role": "system", "content": "Be brief and correct." }, { "role": "user", "content": "A $96 dinner bill gets a 18% tip, and 2 people share the cost equally. What is each person's share?" }, { "role": "assistant", "content": "```python\nbill = 96\ntip_rate = 18 / 100 # 0.18\npeople...
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "56.64", "printed": "56.64", "notation": null}
nlprog_det-setting-0046458
4 clients win $30,000. The lawyer takes 40%, and the rest is split equally. How much does each client get? The Python version: ```python award = 30000 fee = award * 40 / 100 # 12000.0 remaining = award - fee # 18000.0 per_client = remaining / 4 # 4500.0 print(f"{per_client:.2f}") ``` stdout — 4500.00 Each share is...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "4500.00", "printed": "4500.00", "notation": null}
nlprog_det-setting-0046459
<|start|><|user|> How many days are there from September 20, 2019 to October 8, 2020?<|eot|> <|assistant|> ```python from datetime import date first = date(2019, 9, 20) # datetime.date(2019, 9, 20) second = date(2020, 10, 8) # datetime.date(2020, 10, 8) print((second - first).days) ``` Output of the run: 384 It is 3...
chat
[ { "role": "user", "content": "How many days are there from September 20, 2019 to October 8, 2020?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2019, 9, 20) # datetime.date(2019, 9, 20)\nsecond = date(2020, 10, 8) # datetime.date(2020, 10, 8)\nprint(...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "384", "printed": "384", "notation": null}
nlprog_det-setting-0046461
How much sales tax is charged on a $436.83 purchase at 6%? The Python version: price = 436.83 tax_rate = 6 / 100 # 0.06 tax = price * tax_rate # 26.209799999999998 print(f"{tax:.2f}") (stdout: 26.21) The tax is $26.21.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "26.21", "printed": "26.21", "notation": null}
nlprog_det-setting-0046462
How many whole days and leftover hours are in 245 hours? Python, step by step: ```python hours = 245 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` (Result: 10 days and 5 hours) That is 10 days and 5 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "10 days and 5 hours", "printed": "10 days and 5 hours", "notation": null}
nlprog_det-setting-0046463
<|start|><|system|> Functions: [{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "math_engine", "description": "Executes a Python program and returns its output.", "...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"name\": \"math_engine\", \"description\...
nlprog_det
setting
original
null
deterministic
[]
[]
323
{"gold": "280.00", "printed": "280.00", "notation": null}
nlprog_det-setting-0046464
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> A 11 lb package ships at $5 base plus $0.75/lb. What is the charge?<|eot|> <|assistant|> base = 5 per_pound = 0.75 weight = 11 cost = base + per_pound * weight # 13.25 print(f"{cost:.2f}") Result: 13.25 The charge is $13.25.<|eot|> ...
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "role": "user", "content": "A 11 lb package ships at $5 base plus $0.75/lb. What is the charge?" }, { "role": "assistant", "content": " base = 5\n per_pound = 0.75\n weight = 11\n cost = base + per_pound ...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "13.25", "printed": "13.25", "notation": null}
nlprog_det-setting-0046465
From 2009 to 2034, how many years is that? Coded up: ```python start_year = 2009 end_year = 2034 print(end_year - start_year) ``` Run result: 25 25 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
65
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0046466
3 boxes hold 25 rulers each. After 12 are handed out, how many are left? Programmatically: boxes = 3 per_box = 25 given_away = 12 left = boxes * per_box - given_away # 63 print(left) Output: 63 63 rulers are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "63", "printed": "63", "notation": null}
nlprog_det-setting-0046467
If a 3-year limitations period starts on August 1, 2013, when does it end? Python code: ```python from datetime import date accrued = date(2013, 8, 1) # datetime.date(2013, 8, 1) years = 3 expires = accrued.replace(year=accrued.year + years) # datetime.date(2016, 8, 1) print(expires.isoformat()) ``` Running it print...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "2016-08-01", "printed": "2016-08-01", "notation": null}
nlprog_det-setting-0046468
2 friends split a $96 bill plus a 20% tip evenly. How much does each pay? Here is a short program for it. ```python bill = 96 tip_rate = 20 / 100 people = 2 each = bill * (1 + tip_rate) / people print(f"{each:.2f}") ``` It outputs: 57.60 Each person pays $57.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "57.60", "printed": "57.60", "notation": null}
nlprog_det-setting-0046469
Goods bought on September 25, 2025 carry a 6-month warranty. When does it expire? Here is a short program for it. ```python from datetime import date start = date(2025, 9, 25) months = 6 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isofo...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "2026-03-25", "printed": "2026-03-25", "notation": null}
nlprog_det-setting-0046470
<|start|><|user|> Priya earns a 8% commission on $109,441 of sales. What is the commission?<|eot|> <|assistant|> ```python sales = 109441 rate = 8 / 100 # 0.08 commission = sales * rate # 8755.28 print(f"{commission:.2f}") ``` Output of the run: 8755.28 Priya earns $8,755.28.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Priya earns a 8% commission on $109,441 of sales. What is the commission?" }, { "role": "assistant", "content": "```python\nsales = 109441\nrate = 8 / 100 # 0.08\ncommission = sales * rate # 8755.28\nprint(f\"{commission:.2f}\")\n```\nOutput of the run: 8755.28\n\...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "8755.28", "printed": "8755.28", "notation": null}
nlprog_det-setting-0046471
Convert 23.8 km to meters. As a program: ```python km = 23.8 meters = km * 1000 # 23800.0 print(round(meters)) ``` Running this gives: 23800 23,800 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "23800", "printed": "23800", "notation": null}
nlprog_det-setting-0046472
8 claimants share a $960 settlement equally. What is each share? Let's compute it with Python. settlement = 960 parties = 8 share = settlement // parties # 120 print(share) The run gives: 120 Each party receives $120.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
71
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0046473
How many weekdays (Monday to Friday) fall after December 17, 2019 up to and including January 10, 2020? Code: from datetime import date, timedelta start = date(2019, 12, 17) end = date(2020, 1, 10) 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
[]
[]
139
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0046474
<|start|><|system|> You can call tools. Available tools: [{"name": "py_exec", "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|> 4 claima...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"py_exec\", \"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
[]
[]
208
{"gold": "21000", "printed": "21000", "notation": null}
nlprog_det-setting-0046475
Counting the first and last day, how many days are there from September 24, 2026 through September 28, 2026? ```python from datetime import date first = date(2026, 9, 24) # datetime.date(2026, 9, 24) last = date(2026, 9, 28) # datetime.date(2026, 9, 28) days = (last - first).days + 1 # 5 print(days) ``` The program...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0046476
How many whole days and leftover hours are in 66 hours? The computation: hours = 66 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") Out: 2 days and 18 hours That is 2 days and 18 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "2 days and 18 hours", "printed": "2 days and 18 hours", "notation": null}
nlprog_det-setting-0046477
<|start|><|user|> How long, in days, is it from November 1, 2022 until January 2, 2023?<|eot|> <|assistant|> ```python from datetime import date first = date(2022, 11, 1) # datetime.date(2022, 11, 1) second = date(2023, 1, 2) # datetime.date(2023, 1, 2) print((second - first).days) ``` Shell output: 62 It is 62 days...
chat
[ { "role": "user", "content": "How long, in days, is it from November 1, 2022 until January 2, 2023?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2022, 11, 1) # datetime.date(2022, 11, 1)\nsecond = date(2023, 1, 2) # datetime.date(2023, 1, 2)\nprint(...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "62", "printed": "62", "notation": null}
nlprog_det-setting-0046478
<|start|><|user|> Find the mean of these test scores: 94, 98, 87, 64, 59, 83 and 82.<|eot|> <|assistant|> ```python scores = [94, 98, 87, 64, 59, 83, 82] average = sum(scores) // len(scores) # 81 print(average) ``` (Execution result: 81) The mean is 81.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Find the mean of these test scores: 94, 98, 87, 64, 59, 83 and 82." }, { "role": "assistant", "content": "```python\nscores = [94, 98, 87, 64, 59, 83, 82]\naverage = sum(scores) // len(scores) # 81\nprint(average)\n```\n(Execution result: 81)\n\nThe mean is 81." ...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "81", "printed": "81", "notation": null}