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-0065018
A shift runs from 9:15 AM to 2:33 PM. How long is it in minutes? Code: ```python start = 9 * 60 + 15 # 555 end = 14 * 60 + 33 # 873 print(end - start) ``` On running, it outputs 318. 318 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "318", "printed": "318", "notation": null}
nlprog_det-setting-0065020
Split $2,312 between Helga and Kemal in the ratio 1 to 3. What is Helga's share? Written as code: ```python total = 2312 parts_a = 1 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 578 print(share_a) ``` (Result: 578) Helga gets $578.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "578", "printed": "578", "notation": null}
nlprog_det-setting-0065021
<|start|><|user|> Buying 2 badges at $3 each, 5 folders at $15 each, someone hands over $100. What change comes back?<|eot|> <|assistant|> ```python items = [(2, 3), (5, 15)] total = sum(q * p for q, p in items) # 81 paid = 100 change = paid - total # 19 print(change) ``` (Result: 19) $19 comes back.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Buying 2 badges at $3 each, 5 folders at $15 each, someone hands over $100. What change comes back?" }, { "role": "assistant", "content": "```python\nitems = [(2, 3), (5, 15)]\ntotal = sum(q * p for q, p in items) # 81\npaid = 100\nchange = paid - total # 19\nprin...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0065022
A film lasted 2 hours and 38 minutes. How many minutes is that? A Python solution: ```python hours = 2 minutes = 38 total_minutes = hours * 60 + minutes # 158 print(total_minutes) ``` Execution prints 158. The film lasted 158 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "158", "printed": "158", "notation": null}
nlprog_det-setting-0065023
What day of the week is January 19, 1990? Python version: ```python from datetime import date hearing = date(1990, 1, 19) # datetime.date(1990, 1, 19) print(hearing.strftime("%A")) ``` When run, it prints: Friday January 19, 1990 is a Friday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "Friday", "printed": "Friday", "notation": null}
nlprog_det-setting-0065024
An unpaid balance of $12,000 accrues 1% simple interest per month. How much interest accrues in 3 months? As Python: balance = 12000 monthly_rate = 1 / 100 # 0.01 months = 3 interest = balance * monthly_rate * months # 360.0 print(f"{interest:.2f}") It prints 360.00, as expected. The interest is...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "360.00", "printed": "360.00", "notation": null}
nlprog_det-setting-0065025
If a 5-year limitations period starts on May 8, 2013, when does it end? The computation: ```python from datetime import date accrued = date(2013, 5, 8) # datetime.date(2013, 5, 8) years = 5 expires = accrued.replace(year=accrued.year + years) # datetime.date(2018, 5, 8) print(expires.isoformat()) ``` Executing it gi...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "2018-05-08", "printed": "2018-05-08", "notation": null}
nlprog_det-setting-0065026
<|start|><|user|> Sales went from 2,500 to 1,500. What is the percent change?<|eot|> <|assistant|> ```python old = 2500 new = 1500 change = (new - old) / old * 100 # -40.0 print(round(change)) ``` # stdout: -40 It changed by -40%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Sales went from 2,500 to 1,500. What is the percent change?" }, { "role": "assistant", "content": "```python\nold = 2500\nnew = 1500\nchange = (new - old) / old * 100 # -40.0\nprint(round(change))\n```\n# stdout: -40\n\nIt changed by -40%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "-40", "printed": "-40", "notation": null}
nlprog_det-setting-0065027
With 10% off, what does a $80 printer cost? In Python: ```python price = 80 discount = 10 / 100 # 0.1 sale_price = price * (1 - discount) # 72.0 print(f"{sale_price:.2f}") ``` Executing it gives 72.00. The sale price is $72.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "72.00", "printed": "72.00", "notation": null}
nlprog_det-setting-0065028
The statute was enacted in 2023. How many years had passed by 2036? Here is the program. ```python start_year = 2023 end_year = 2036 print(end_year - start_year) ``` (Program output: 13) That is 13 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0065029
<|start|><|system|> Answer the user's question directly.<|eot|> <|user|> A quorum is 3/5 of the 46 members, rounded up. How many members make a quorum?<|eot|> <|assistant|> ```python import math members = 46 quorum = math.ceil(members * 3 / 5) # 28 print(quorum) ``` The script prints 28, as expected. That is 28 membe...
chat
[ { "role": "system", "content": "Answer the user's question directly." }, { "role": "user", "content": "A quorum is 3/5 of the 46 members, rounded up. How many members make a quorum?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 46\nquorum = math.ceil(member...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0065030
<|start|><|user|> Counting only Monday through Friday, how many business days are there after March 24, 2024 through May 2, 2024?<|eot|> <|assistant|> There are 29 business days.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Counting only Monday through Friday, how many business days are there after March 24, 2024 through May 2, 2024?" }, { "role": "assistant", "content": "There are 29 business days." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0065031
<|start|><|user|> An unpaid balance of $2,500 accrues 2% simple interest per month. How much interest accrues in 5 months?<|eot|> <|assistant|> $250.00 accrues.<|eot|> <|end|>
chat
[ { "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": "$250.00 accrues." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "250.00", "printed": "250.00", "notation": null}
nlprog_det-setting-0065032
<|start|><|user|> Divide 149 items among 8 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|> <|assistant|> The answer: 18 each, 5 left over.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Divide 149 items among 8 groups as evenly as possible with equal groups. How many per group, and how many remain?" }, { "role": "assistant", "content": "The answer: 18 each, 5 left over." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "18 each, 5 left over", "printed": "18 each, 5 left over", "notation": null}
nlprog_det-setting-0065033
Counting only Monday through Friday, how many business days are there after February 1, 2024 through March 2, 2024? Python code: ```python from datetime import date, timedelta start = date(2024, 2, 1) end = date(2024, 3, 2) 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
[]
[]
159
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0065034
<|start|><|user|> An office budget of $8,000 has expenses of $2,916, $1,925, $385, $1,811. How much of the budget is left?<|eot|> <|assistant|> ```python budget = 8000 expenses = [2916, 1925, 385, 1811] left = budget - sum(expenses) # 963 print(left) ``` (Output: 963) $963 is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An office budget of $8,000 has expenses of $2,916, $1,925, $385, $1,811. How much of the budget is left?" }, { "role": "assistant", "content": "```python\nbudget = 8000\nexpenses = [2916, 1925, 385, 1811]\nleft = budget - sum(expenses) # 963\nprint(left)\n```\n(Out...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "963", "printed": "963", "notation": null}
nlprog_det-setting-0065035
Under a 25% contingency agreement, what fee is owed on a $60,000 award? Python makes this quick: ```python recovery = 60000 rate = 25 / 100 # 0.25 fee = recovery * rate # 15000.0 print(f"{fee:.2f}") ``` (stdout: 15000.00) The fee is $15,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "15000.00", "printed": "15000.00", "notation": null}
nlprog_det-setting-0065036
Rosa drove 466 miles for work. Mileage is reimbursed at 62 cents a mile. How much is the reimbursement? Here's the code. ```python miles = 466 rate = 0.62 reimbursement = miles * rate # 288.92 print(f"{reimbursement:.2f}") ``` On running, it outputs 288.92. The reimbursement is $288.92.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "288.92", "printed": "288.92", "notation": null}
nlprog_det-setting-0065037
A 250-mile drive at a steady 50 mph takes how many minutes? Python code: ```python distance = 250 speed = 50 minutes = distance / speed * 60 print(round(minutes)) ``` This prints 300, as expected. The trip takes 300 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0065038
<|start|><|user|> Goods bought on July 7, 2022 carry a 36-month warranty. When does it expire?<|eot|> <|assistant|> ```python from datetime import date start = date(2022, 7, 7) months = 36 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isof...
chat
[ { "role": "user", "content": "Goods bought on July 7, 2022 carry a 36-month warranty. When does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2022, 7, 7)\nmonths = 36\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(sta...
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "2025-07-07", "printed": "2025-07-07", "notation": null}
nlprog_det-setting-0065039
Split $3,020 between Femi and Yusuf in the ratio 2 to 3. What is Femi's share? Femi gets $1,208.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "1208", "printed": "1208", "notation": null}
nlprog_det-setting-0065040
<|start|><|user|> A shift runs from 7:22 AM to 9:10 AM. How long is it in minutes?<|eot|> <|assistant|> It is 108 minutes long.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A shift runs from 7:22 AM to 9:10 AM. How long is it in minutes?" }, { "role": "assistant", "content": "It is 108 minutes long." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "108", "printed": "108", "notation": null}
nlprog_det-setting-0065041
<|start|><|user|> A 240-mile drive at a steady 40 mph takes how many minutes?<|eot|> <|assistant|> ```python distance = 240 speed = 40 minutes = distance / speed * 60 # 360.0 print(round(minutes)) ``` What it prints: 360 The trip takes 360 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 240-mile drive at a steady 40 mph takes how many minutes?" }, { "role": "assistant", "content": "```python\ndistance = 240\nspeed = 40\nminutes = distance / speed * 60 # 360.0\nprint(round(minutes))\n```\nWhat it prints: 360\n\nThe trip takes 360 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "360", "printed": "360", "notation": null}
nlprog_det-setting-0065042
Rent of $2,200 goes up 6%. What is the new rent? Let's compute it with Python. ```python rent = 2200 increase = 6 / 100 # 0.06 new_rent = rent * (1 + increase) # 2332.0 print(f"{new_rent:.2f}") ``` This prints: 2332.00 It rises to $2,332.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "2332.00", "printed": "2332.00", "notation": null}
nlprog_det-setting-0065043
Chen buys 5 boxes of 12 hard drives each and gives away 8 hard drives. How many hard drives are left? The computation: ```python boxes = 5 per_box = 12 given_away = 8 left = boxes * per_box - given_away # 52 print(left) ``` The program prints 52, as expected. 52 hard drives are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "52", "printed": "52", "notation": null}
nlprog_det-setting-0065044
Cyrus earns a 5% commission on $58,597 of sales. What is the commission? A few lines of Python do it: ```python sales = 58597 rate = 5 / 100 # 0.05 commission = sales * rate # 2929.8500000000004 print(f"{commission:.2f}") ``` Result — 2929.85 Cyrus earns $2,929.85.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "2929.85", "printed": "2929.85", "notation": null}
nlprog_det-setting-0065045
Straight-line depreciation: cost $12,000, salvage $6,000, 8 years. How much per year? Here is the program. cost = 12000 salvage = 6000 years = 8 per_year = (cost - salvage) / years # 750.0 print(f"{per_year:.2f}") Running it prints 750.00. $750.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "750.00", "printed": "750.00", "notation": null}
nlprog_det-setting-0065046
The landlord deducts $85, $85 and $200 from a $2,000 deposit. What is returned to the tenant? Code: ```python deposit = 2000 deductions = [85, 85, 200] refund = deposit - sum(deductions) # 1630 print(refund) ``` Printed result: 1630 $1,630 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "1630", "printed": "1630", "notation": null}
nlprog_det-setting-0065047
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> A court charges $5 per request plus $0.25 per page after the first 10 pages. What does a 89-page copy cost?<|eot|> <|assistant|> The total is $24.75.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "A court charges $5 per request plus $0.25 per page after the first 10 pages. What does a 89-page copy cost?" }, { "role": "assistant", "content": "The total is $24.75." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
60
{"gold": "24.75", "printed": "24.75", "notation": null}
nlprog_det-setting-0065048
Monthly rent is $1,500. A tenant moves in with 7 days left in a 31-day month. What is the prorated rent? Python, step by step: ```python rent = 1500 days_in_month = 31 days_occupied = 7 prorated = rent * days_occupied / days_in_month print(f"{prorated:.2f}") ``` Output of the run: 338.71 The tenant owes $338.71.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "338.71", "printed": "338.71", "notation": null}
nlprog_det-setting-0065049
Someone born November 10, 2007 turns how old by July 8, 2023? Give the age in whole years. The program: ```python from datetime import date born = date(2007, 11, 10) # datetime.date(2007, 11, 10) on = date(2023, 7, 8) # datetime.date(2023, 7, 8) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0065050
At 60 miles per hour, how many minutes does a 90-mile trip take? We can compute it in Python. ```python distance = 90 speed = 60 minutes = distance / speed * 60 # 90.0 print(round(minutes)) ``` Result: 90 90 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "90", "printed": "90", "notation": null}
nlprog_det-setting-0065051
<|start|><|system|> Available functions (JSON Schema): {"name": "eval_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> A customer buys 6...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"eval_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requi...
nlprog_det
setting
original
null
deterministic
[]
[]
259
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0065052
<|start|><|system|> Tools you may use: [{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_unit", "to_unit"]}}, {"name": "c...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\": \"string\"}}, \...
nlprog_det
setting
original
null
deterministic
[]
[]
341
{"gold": "31.75", "printed": "31.75", "notation": null}
nlprog_det-setting-0065053
$10,000 is invested at 2% compounded yearly. What is it worth after 3 years? A Python solution: ```python principal = 10000 rate = 2 / 100 # 0.02 years = 3 value = principal * (1 + rate) ** years # 10612.080000000002 print(f"{value:.2f}") ``` It prints 10612.08, as expected. The balance is $10,612.08.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "10612.08", "printed": "10612.08", "notation": null}
nlprog_det-setting-0065054
Fixed costs are $1,200. Each unit sells for $15 and costs $9 to make. How many units must be sold to break even? Written as code: ```python import math fixed = 1200 price = 15 variable = 9 units = math.ceil(fixed / (price - variable)) # 200 print(units) ``` The script prints 200. 200 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "200", "printed": "200", "notation": null}
nlprog_det-setting-0065055
<|start|><|system|> Tools you may use: {"name": "py_exec", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}} {"name": "fetch_filing", "description": "Fetch...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"py_exec\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"scr...
nlprog_det
setting
original
null
deterministic
[]
[]
285
{"gold": "42", "printed": "42", "notation": null}
nlprog_det-setting-0065056
A customer buys 2 labels at $14 each, 6 keyboards at $9 each and pays with $100. How much change is due? ```python items = [(2, 14), (6, 9)] total = sum(q * p for q, p in items) # 82 paid = 100 change = paid - total # 18 print(change) ``` Python prints: 18 $18 comes back.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0065057
<|start|><|user|> Express 73 hours in days and hours.<|eot|> <|assistant|> hours = 73 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") Output — 3 days and 1 hours That is 3 days and 1 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Express 73 hours in days and hours." }, { "role": "assistant", "content": " hours = 73\n days, rest = divmod(hours, 24)\n print(f\"{days} days and {rest} hours\")\nOutput — 3 days and 1 hours\n\nThat is 3 days and 1 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "3 days and 1 hours", "printed": "3 days and 1 hours", "notation": null}
nlprog_det-setting-0065058
<|start|><|user|> A desk lamp costs $40. It is 20% off. What is the sale price?<|eot|> <|assistant|> It costs $32.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A desk lamp costs $40. It is 20% off. What is the sale price?" }, { "role": "assistant", "content": "It costs $32.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "32.00", "printed": "32.00", "notation": null}
nlprog_det-setting-0065060
A service costs $19 a month or $204 a year. How much does the yearly plan save over 12 monthly payments? In Python: ```python monthly = 19 yearly = 204 savings = monthly * 12 - yearly print(savings) ``` The program outputs: 24 The annual plan saves $24.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0065061
<|start|><|system|> Keep explanations short.<|eot|> <|user|> What is 15 degrees Celsius in Fahrenheit?<|eot|> <|assistant|> ```python celsius = 15 fahrenheit = celsius * 9 / 5 + 32 # 59.0 print(round(fahrenheit)) ``` Out = 59 It equals 59 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Keep explanations short." }, { "role": "user", "content": "What is 15 degrees Celsius in Fahrenheit?" }, { "role": "assistant", "content": "```python\ncelsius = 15\nfahrenheit = celsius * 9 / 5 + 32 # 59.0\nprint(round(fahrenheit))\n```\nOut = 59\n\nI...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "59", "printed": "59", "notation": null}
nlprog_det-setting-0065062
Convert 25.3 km to meters. Python makes this quick: ```python km = 25.3 meters = km * 1000 # 25300.0 print(round(meters)) ``` Running it prints 25300. That is 25,300 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "25300", "printed": "25300", "notation": null}
nlprog_det-setting-0065063
<|start|><|user|> A measure needs at least 75% of 152 votes. How many votes is that, rounded up?<|eot|> <|assistant|> ```python import math voters = 152 needed = math.ceil(voters * 75 / 100) # 114 print(needed) ``` The script prints 114. 114 votes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A measure needs at least 75% of 152 votes. How many votes is that, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 152\nneeded = math.ceil(voters * 75 / 100) # 114\nprint(needed)\n```\nThe script prints 114.\n\n114 votes are need...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "114", "printed": "114", "notation": null}
nlprog_det-setting-0065064
<|start|><|user|> From 1998 to 2031, how many years is that?<|eot|> <|assistant|> 33 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From 1998 to 2031, how many years is that?" }, { "role": "assistant", "content": "33 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
24
{"gold": "33", "printed": "33", "notation": null}
nlprog_det-setting-0065065
An unpaid balance of $7,500 accrues 1.5% simple interest per month. How much interest accrues in 2 months? A few lines of Python do it: ```python balance = 7500 monthly_rate = 1.5 / 100 months = 2 interest = balance * monthly_rate * months print(f"{interest:.2f}") ``` (Console output: 225.00) The interest is $225.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "225.00", "printed": "225.00", "notation": null}
nlprog_det-setting-0065066
<|start|><|user|> 260 volunteers are split into 6 equal teams. How many are on each team, and how many are left over?<|eot|> <|assistant|> ```python total = 260 groups = 6 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Output: 43 each, 2 left over 43 each, 2 left ove...
chat
[ { "role": "user", "content": "260 volunteers are split into 6 equal teams. How many are on each team, and how many are left over?" }, { "role": "assistant", "content": "```python\ntotal = 260\ngroups = 6\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remainder} left o...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "43 each, 2 left over", "printed": "43 each, 2 left over", "notation": null}
nlprog_det-setting-0065067
How many 1-foot square tiles cover a 17 ft by 8 ft floor (round up)? One way, in code: ```python import math length = 17 width = 8 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 136 print(tiles) ``` The printout reads: 136 136 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "136", "printed": "136", "notation": null}
nlprog_det-setting-0065068
<|start|><|user|> From 2008 to 2046, how many years is that?<|eot|> <|assistant|> ```python start_year = 2008 end_year = 2046 print(end_year - start_year) ``` Run it and it prints 38. That is 38 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From 2008 to 2046, how many years is that?" }, { "role": "assistant", "content": "```python\nstart_year = 2008\nend_year = 2046\nprint(end_year - start_year)\n```\nRun it and it prints 38.\n\nThat is 38 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "38", "printed": "38", "notation": null}
nlprog_det-setting-0065069
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "calculator", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}} {"name": "fetch_fi...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"calculator\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source co...
nlprog_det
setting
original
null
deterministic
[]
[]
329
{"gold": "1858.06", "printed": "1858.06", "notation": null}
nlprog_det-setting-0065070
<|start|><|system|> You are a careful assistant.<|eot|> <|user|> A $1,000 security deposit has deductions of $200. How much is refunded?<|eot|> <|assistant|> ```python deposit = 1000 deductions = [200] refund = deposit - sum(deductions) # 800 print(refund) ``` Running it prints: 800 $800 is returned.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a careful assistant." }, { "role": "user", "content": "A $1,000 security deposit has deductions of $200. How much is refunded?" }, { "role": "assistant", "content": "```python\ndeposit = 1000\ndeductions = [200]\nrefund = deposit - sum(deductio...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "800", "printed": "800", "notation": null}
nlprog_det-setting-0065071
<|start|><|user|> A 12-month warranty starts on December 9, 2028. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date start = date(2028, 12, 9) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isofor...
chat
[ { "role": "user", "content": "A 12-month warranty starts on December 9, 2028. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2028, 12, 9)\nmonths = 12\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(start...
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "2029-12-09", "printed": "2029-12-09", "notation": null}
nlprog_det-setting-0065072
32 files go into boxes of 25. How many boxes does that take? 2 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
26
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0065073
Pack A has 8 items for $11.89. Pack B has 18 items for $11.48. Which has the lower price per item? Coded up: ```python pack_a = 11.89 / 8 # 1.48625 pack_b = 11.48 / 18 # 0.6377777777777778 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` Execution prints: B B has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0065074
With 14 rows of 20 chairs and 36 empty chairs, how many chairs are taken? Program: ```python rows = 14 per_row = 20 empty = 36 seated = rows * per_row - empty # 244 print(seated) ``` Result = 244 244 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "244", "printed": "244", "notation": null}
nlprog_det-setting-0065075
Each of Nikhil's runs burns 400 calories. How many calories over 6 runs? Translated to Python: ```python per_session = 400 sessions = 6 total = per_session * sessions # 2400 print(total) ``` Running this gives 2400. 2400 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "2400", "printed": "2400", "notation": null}
nlprog_det-setting-0065076
<|start|><|user|> 16 of 25 members attended. What percent attended?<|eot|> <|assistant|> ```python present = 16 total = 25 percent = present / total * 100 print(round(percent, 1)) ``` Execution prints: 64.0 64.0% attended.<|eot|> <|end|>
chat
[ { "role": "user", "content": "16 of 25 members attended. What percent attended?" }, { "role": "assistant", "content": "```python\npresent = 16\ntotal = 25\npercent = present / total * 100\nprint(round(percent, 1))\n```\nExecution prints: 64.0\n\n64.0% attended." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "64.0", "printed": "64.0", "notation": null}
nlprog_det-setting-0065077
Express 263 hours in days and hours. The computation: ```python hours = 263 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` The run gives 10 days and 23 hours, as expected. 263 hours is 10 days and 23 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "10 days and 23 hours", "printed": "10 days and 23 hours", "notation": null}
nlprog_det-setting-0065078
<|start|><|user|> Starting from $8,000, the team spends $2,756, $3,833. What remains?<|eot|> <|assistant|> The remaining budget is $1,411.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting from $8,000, the team spends $2,756, $3,833. What remains?" }, { "role": "assistant", "content": "The remaining budget is $1,411." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "1411", "printed": "1411", "notation": null}
nlprog_det-setting-0065079
<|start|><|user|> One can of paint covers 250 square feet. How many cans are needed for 597 square feet of wall?<|eot|> <|assistant|> ```python import math area = 597 coverage = 250 cans = math.ceil(area / coverage) # 3 print(cans) ``` Running this gives 3. 3 cans are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "One can of paint covers 250 square feet. How many cans are needed for 597 square feet of wall?" }, { "role": "assistant", "content": "```python\nimport math\narea = 597\ncoverage = 250\ncans = math.ceil(area / coverage) # 3\nprint(cans)\n```\nRunning this gives 3.\...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0065080
Pack A has 6 items for $3.04. Pack B has 30 items for $17.68. Which has the lower price per item? Python code: pack_a = 3.04 / 6 # 0.5066666666666667 pack_b = 17.68 / 30 # 0.5893333333333334 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) stdout — A A has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0065081
A 10 × 10 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up? ```python import math length = 10 width = 10 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 25 print(tiles) ``` What it prints — 25 25 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0065082
56 of 80 members attended. What percent attended? Attendance was 70.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
25
{"gold": "70.0", "printed": "70.0", "notation": null}
nlprog_det-setting-0065083
A $96 dinner bill gets a 18% tip, and 2 people share the cost equally. What is each person's share? Python version: ```python bill = 96 tip_rate = 18 / 100 # 0.18 people = 2 each = bill * (1 + tip_rate) / people # 56.64 print(f"{each:.2f}") ``` Run result = 56.64 Each person pays $56.64.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "56.64", "printed": "56.64", "notation": null}
nlprog_det-setting-0065084
How many meters are in 77 kilometers? Computation in Python: ```python km = 77 meters = km * 1000 # 77000 print(round(meters)) ``` # printed: 77000 That is 77,000 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "77000", "printed": "77000", "notation": null}
nlprog_det-setting-0065085
Water costs $15 a month plus $3.50 for each 1,000 gallons over 3,000. What is owed for 18,000 gallons? Python version: ```python base = 15 rate = 3.5 used = 18 free = 3 bill = base + rate * max(0, used - free) print(f"{bill:.2f}") ``` (Result: 67.50) The bill is $67.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "67.50", "printed": "67.50", "notation": null}
nlprog_det-setting-0065086
<|start|><|user|> A claim accrued on April 24, 2015. The limitations period is 4 years. On what date does it expire?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2015, 4, 24) # datetime.date(2015, 4, 24) years = 4 expires = accrued.replace(year=accrued.year + years) # datetime.date(2019, 4,...
chat
[ { "role": "user", "content": "A claim accrued on April 24, 2015. The limitations period is 4 years. On what date does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2015, 4, 24) # datetime.date(2015, 4, 24)\nyears = 4\nexpires = accrued.re...
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "2019-04-24", "printed": "2019-04-24", "notation": null}
nlprog_det-setting-0065088
<|start|><|system|> Tool definitions: {"name": "calculator", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> Count 21 days forward from January 16, 2024...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"calculator\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}" }...
nlprog_det
setting
original
null
deterministic
[]
[]
223
{"gold": "2024-02-06", "printed": "2024-02-06", "notation": null}
nlprog_det-setting-0065089
The landlord deducts $150, $200 and $120 from a $1,500 deposit. What is returned to the tenant? A Python solution: ```python deposit = 1500 deductions = [150, 200, 120] refund = deposit - sum(deductions) # 1030 print(refund) ``` stdout = 1030 $1,030 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "1030", "printed": "1030", "notation": null}
nlprog_det-setting-0065090
<|start|><|user|> A recipe for 6 people uses 100 grams of oats. How many grams are needed for 3 people?<|eot|> <|assistant|> ```python grams = 100 serves = 6 needed_for = 3 scaled = grams * needed_for // serves # 50 print(scaled) ``` (Output: 50) 50 grams of oats are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A recipe for 6 people uses 100 grams of oats. How many grams are needed for 3 people?" }, { "role": "assistant", "content": "```python\ngrams = 100\nserves = 6\nneeded_for = 3\nscaled = grams * needed_for // serves # 50\nprint(scaled)\n```\n(Output: 50)\n\n50 grams...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0065092
A quorum is 1/3 of the 30 members, rounded up. How many members make a quorum? The program: ```python import math members = 30 quorum = math.ceil(members * 1 / 3) # 10 print(quorum) ``` Out: 10 10 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0065093
<|start|><|user|> Rent of $1,800 goes up 6%. What is the new rent?<|eot|> <|assistant|> It rises to $1,908.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rent of $1,800 goes up 6%. What is the new rent?" }, { "role": "assistant", "content": "It rises to $1,908.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "1908.00", "printed": "1908.00", "notation": null}
nlprog_det-setting-0065094
A clerk's office charges $35 for each filing. Farah submits 18 filings. What is the total fee? Script: ```python fee = 35 filings = 18 total = fee * filings # 630 print(total) ``` Python prints: 630 The total fee is $630.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "630", "printed": "630", "notation": null}
nlprog_det-setting-0065095
<|start|><|user|> The meal allowance is $79 per day. What is it for 3 days?<|eot|> <|assistant|> ```python days = 3 meal_rate = 79 total = days * meal_rate print(total) ``` (Result: 237) The allowance is $237.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The meal allowance is $79 per day. What is it for 3 days?" }, { "role": "assistant", "content": "```python\ndays = 3\nmeal_rate = 79\ntotal = days * meal_rate\nprint(total)\n```\n(Result: 237)\n\nThe allowance is $237." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "237", "printed": "237", "notation": null}
nlprog_det-setting-0065096
A quorum is 3/5 of the 42 members, rounded up. How many members make a quorum? Here is the program. ```python import math members = 42 quorum = math.ceil(members * 3 / 5) # 26 print(quorum) ``` Out: 26 26 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0065097
<|start|><|system|> Double-check numbers before answering.<|eot|> <|user|> 3 bike rides at 350 calories each burn how many calories in total?<|eot|> <|assistant|> ```python per_session = 350 sessions = 3 total = per_session * sessions # 1050 print(total) ``` On running, it outputs 1050. That burns 1050 calories.<|eot...
chat
[ { "role": "system", "content": "Double-check numbers before answering." }, { "role": "user", "content": "3 bike rides at 350 calories each burn how many calories in total?" }, { "role": "assistant", "content": "```python\nper_session = 350\nsessions = 3\ntotal = per_session * session...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "1050", "printed": "1050", "notation": null}
nlprog_det-setting-0065098
3 boxes hold 12 markers each. After 15 are handed out, how many are left? A Python solution: ```python boxes = 3 per_box = 12 given_away = 15 left = boxes * per_box - given_away # 21 print(left) ``` Python prints: 21 That leaves 21 markers.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0065099
<|start|><|system|> You have access to these functions: {"name": "eval_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}} {"name": "lookup_statute", "desc...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"eval_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requi...
nlprog_det
setting
original
null
deterministic
[]
[]
304
{"gold": "34.26", "printed": "34.26", "notation": null}
nlprog_det-setting-0065100
Oskar earns a 4% commission on $27,544 of sales. What is the commission? In Python: ```python sales = 27544 rate = 4 / 100 # 0.04 commission = sales * rate # 1101.76 print(f"{commission:.2f}") ``` Printed: 1101.76 Oskar earns $1,101.76.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "1101.76", "printed": "1101.76", "notation": null}
nlprog_det-setting-0065101
A meal costs $175.66. How much is a 10% tip? A few lines of Python do it: ```python bill = 175.66 tip_rate = 10 / 100 # 0.1 tip = bill * tip_rate # 17.566 print(f"{tip:.2f}") ``` That prints: 17.57 The tip is $17.57.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "17.57", "printed": "17.57", "notation": null}
nlprog_det-setting-0065102
How many of 43 members form a majority (more than half)? We can compute it in Python. ```python members = 43 majority = members // 2 + 1 # 22 print(majority) ``` Printed — 22 22 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0065103
<|start|><|user|> 49 files go into boxes of 24. How many boxes does that take?<|eot|> <|assistant|> 3 boxes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "49 files go into boxes of 24. How many boxes does that take?" }, { "role": "assistant", "content": "3 boxes are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0065104
<|start|><|user|> A 300-mile drive at a steady 45 mph takes how many minutes?<|eot|> <|assistant|> ```python distance = 300 speed = 45 minutes = distance / speed * 60 # 400.0 print(round(minutes)) ``` Execution prints 400. 400 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 300-mile drive at a steady 45 mph takes how many minutes?" }, { "role": "assistant", "content": "```python\ndistance = 300\nspeed = 45\nminutes = distance / speed * 60 # 400.0\nprint(round(minutes))\n```\nExecution prints 400.\n\n400 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "400", "printed": "400", "notation": null}
nlprog_det-setting-0065105
One can of paint covers 250 square feet. How many cans are needed for 1222 square feet of wall? Python makes this quick: import math area = 1222 coverage = 250 cans = math.ceil(area / coverage) # 5 print(cans) This prints 5. 5 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0065106
<|start|><|system|> Functions: [{"name": "python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> Shipping costs $8 plus $0.75 per po...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]...
nlprog_det
setting
original
null
deterministic
[]
[]
225
{"gold": "28.25", "printed": "28.25", "notation": null}
nlprog_det-setting-0065108
<|start|><|system|> You are a teaching assistant.<|eot|> <|user|> Express 342 hours in days and hours.<|eot|> <|assistant|> ```python hours = 342 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Printed = 14 days and 6 hours That is 14 days and 6 hours.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a teaching assistant." }, { "role": "user", "content": "Express 342 hours in days and hours." }, { "role": "assistant", "content": "```python\nhours = 342\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nPrinted =...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "14 days and 6 hours", "printed": "14 days and 6 hours", "notation": null}
nlprog_det-setting-0065109
Pack A has 10 items for $10.34. Pack B has 24 items for $12.15. Which has the lower price per item? Here's the code. pack_a = 10.34 / 10 # 1.034 pack_b = 12.15 / 24 # 0.50625 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) The run gives: B B has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0065110
<|start|><|system|> Show working only when it helps.<|eot|> <|user|> Copies cost $15 plus $0.50 for each page beyond 0. How much for 55 pages?<|eot|> <|assistant|> The copy costs $42.50.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Show working only when it helps." }, { "role": "user", "content": "Copies cost $15 plus $0.50 for each page beyond 0. How much for 55 pages?" }, { "role": "assistant", "content": "The copy costs $42.50." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
51
{"gold": "42.50", "printed": "42.50", "notation": null}
nlprog_det-setting-0065111
<|start|><|user|> How many meters are in 59.8 kilometers?<|eot|> <|assistant|> km = 59.8 meters = km * 1000 # 59800.0 print(round(meters)) stdout = 59800 That is 59,800 meters.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many meters are in 59.8 kilometers?" }, { "role": "assistant", "content": " km = 59.8\n meters = km * 1000 # 59800.0\n print(round(meters))\nstdout = 59800\n\nThat is 59,800 meters." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "59800", "printed": "59800", "notation": null}
nlprog_det-setting-0065112
A court charges $5 per request plus $0.10 per page after the first 10 pages. What does a 29-page copy cost? Here is a short program for it. pages = 29 base = 5 per_page = 0.1 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 6.9 print(f"{cost:.2f}") stdout: 6.90 The copy c...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "6.90", "printed": "6.90", "notation": null}
nlprog_det-setting-0065113
<|start|><|user|> After an initial $3,000, the remainder of a $60,000 grant is paid in 12 equal parts. What is each part?<|eot|> <|assistant|> ```python grant = 60000 up_front = 3000 installments = 12 each = (grant - up_front) / installments # 4750.0 print(f"{each:.2f}") ``` (Program output: 4750.00) $4,750.00 per in...
chat
[ { "role": "user", "content": "After an initial $3,000, the remainder of a $60,000 grant is paid in 12 equal parts. What is each part?" }, { "role": "assistant", "content": "```python\ngrant = 60000\nup_front = 3000\ninstallments = 12\neach = (grant - up_front) / installments # 4750.0\nprint(f\"...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "4750.00", "printed": "4750.00", "notation": null}
nlprog_det-setting-0065114
A room is 9 feet by 14 feet. Flooring costs $5 per square foot. What does it cost to floor the room? It costs $630.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "630", "printed": "630", "notation": null}
nlprog_det-setting-0065115
2 friends split a $120 bill plus a 20% tip evenly. How much does each pay? Translated to Python: ```python bill = 120 tip_rate = 20 / 100 # 0.2 people = 2 each = bill * (1 + tip_rate) / people # 72.0 print(f"{each:.2f}") ``` Shell output: 72.00 The share is $72.00 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "72.00", "printed": "72.00", "notation": null}
nlprog_det-setting-0065116
<|start|><|system|> Tools (call with JSON): [{"name": "math_engine", "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"]}}, {"name": "fetch_filing", "des...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"math_engine\", \"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
[]
[]
320
{"gold": "199.02", "printed": "199.02", "notation": null}
nlprog_det-setting-0065117
Filing fees are $35 per document. What do 8 filings cost? Code: ```python fee = 35 filings = 8 total = fee * filings # 280 print(total) ``` Program output: 280 The total fee is $280.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "280", "printed": "280", "notation": null}
nlprog_det-setting-0065118
The landlord deducts $85 and $45 from a $2,000 deposit. What is returned to the tenant? Programmatically: ```python deposit = 2000 deductions = [85, 45] refund = deposit - sum(deductions) # 1870 print(refund) ``` Run result — 1870 $1,870 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "1870", "printed": "1870", "notation": null}
nlprog_det-setting-0065119
<|start|><|user|> Counting only Monday through Friday, how many business days are there after February 22, 2027 through March 12, 2027?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2027, 2, 22) end = date(2027, 3, 12) count = 0 for k in range(1, (end - start).days + 1): if (start...
chat
[ { "role": "user", "content": "Counting only Monday through Friday, how many business days are there after February 22, 2027 through March 12, 2027?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2027, 2, 22)\nend = date(2027, 3, 12)\ncount = ...
nlprog_det
setting
original
null
deterministic
[]
[]
159
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0065120
<|start|><|user|> A hearing starts at 12:15 PM and lasts 150 minutes. When does it end?<|eot|> <|assistant|> The hearing finishes at 2:45 PM.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hearing starts at 12:15 PM and lasts 150 minutes. When does it end?" }, { "role": "assistant", "content": "The hearing finishes at 2:45 PM." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "2:45 PM", "printed": "2:45 PM", "notation": null}
nlprog_det-setting-0065121
Papers were served by mail on July 4, 2025. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date? It is due August 6, 2025.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "2025-08-06", "printed": "2025-08-06", "notation": null}
nlprog_det-setting-0065122
The rules require 3/5 of 9 members (round up) to be present. How many is that? ```python import math members = 9 quorum = math.ceil(members * 3 / 5) # 6 print(quorum) ``` Running it prints 6. That is 6 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "6", "printed": "6", "notation": null}