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-0067460
Counting only Monday through Friday, how many business days are there after October 15, 2023 through October 22, 2023? ```python from datetime import date, timedelta start = date(2023, 10, 15) end = date(2023, 10, 22) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() < 5...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0067461
Convert 2,877 EUR to USD at 1 EUR = 1.31 USD. Computing it: ```python amount = 2877 rate = 1.31 converted = amount * rate # 3768.8700000000003 print(f"{converted:.2f}") ``` This prints 3768.87, as expected. It converts to 3,768.87 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "3768.87", "printed": "3768.87", "notation": null}
nlprog_det-setting-0067462
After a 30% fee is taken from a $48,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share? Translated to Python: award = 48000 fee = award * 30 / 100 # 14400.0 remaining = award - fee # 33600.0 per_client = remaining / 4 # 8400.0 print(f"{per_client:.2f}") The ru...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "8400.00", "printed": "8400.00", "notation": null}
nlprog_det-setting-0067464
A water bill is $15 plus $3.50 per thousand gallons beyond the first 2 thousand. What is the bill for 15 thousand gallons? ```python base = 15 rate = 3.5 used = 15 free = 2 bill = base + rate * max(0, used - free) print(f"{bill:.2f}") ``` (Result: 60.50) The bill is $60.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "60.50", "printed": "60.50", "notation": null}
nlprog_det-setting-0067465
An unpaid balance of $4,000 accrues 1% simple interest per month. How much interest accrues in 5 months? $200.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "200.00", "printed": "200.00", "notation": null}
nlprog_det-setting-0067467
<|start|><|user|> To read 147 pages in 7 days, how many pages per day are needed?<|eot|> <|assistant|> ```python pages = 147 days = 7 per_day = pages // days # 21 print(per_day) ``` Running this gives 21. That is 21 pages per day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "To read 147 pages in 7 days, how many pages per day are needed?" }, { "role": "assistant", "content": "```python\npages = 147\ndays = 7\nper_day = pages // days # 21\nprint(per_day)\n```\nRunning this gives 21.\n\nThat is 21 pages per day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0067468
Count 45 days forward from January 22, 2028. What date is that? That date is March 7, 2028.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "2028-03-07", "printed": "2028-03-07", "notation": null}
nlprog_det-setting-0067469
$5,000 is invested at 4% compounded yearly. What is it worth after 2 years? The computation: principal = 5000 rate = 4 / 100 # 0.04 years = 2 value = principal * (1 + rate) ** years # 5408.000000000001 print(f"{value:.2f}") Run it and it prints: 5408.00 It is worth $5,408.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "5408.00", "printed": "5408.00", "notation": null}
nlprog_det-setting-0067470
<|start|><|user|> A party has 14 days to respond to a motion served on April 2, 2018, with 3 days added because service was by mail. When is the response due?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2018, 4, 2) # datetime.date(2018, 4, 2) response_days = 14 mail_days = 3 due =...
chat
[ { "role": "user", "content": "A party has 14 days to respond to a motion served on April 2, 2018, with 3 days added because service was by mail. When is the response due?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nserved = date(2018, 4, 2) # datetime...
nlprog_det
setting
original
null
deterministic
[]
[]
174
{"gold": "2018-04-19", "printed": "2018-04-19", "notation": null}
nlprog_det-setting-0067471
<|start|><|system|> You are a math tutor.<|eot|> <|user|> With 10 rows of 22 chairs and 7 empty chairs, how many chairs are taken?<|eot|> <|assistant|> ```python rows = 10 per_row = 22 empty = 7 seated = rows * per_row - empty # 213 print(seated) ``` This prints 213, as expected. 213 people are seated.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a math tutor." }, { "role": "user", "content": "With 10 rows of 22 chairs and 7 empty chairs, how many chairs are taken?" }, { "role": "assistant", "content": "```python\nrows = 10\nper_row = 22\nempty = 7\nseated = rows * per_row - empty # 21...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "213", "printed": "213", "notation": null}
nlprog_det-setting-0067472
<|start|><|user|> Lena lends $8,000 at 4% simple interest per year for 3 years. How much interest is earned?<|eot|> <|assistant|> ```python principal = 8000 rate = 4 / 100 # 0.04 years = 3 interest = principal * rate * years # 960.0 print(f"{interest:.2f}") ``` The interpreter prints: 960.00 It earns $960.00.<|eot|>...
chat
[ { "role": "user", "content": "Lena lends $8,000 at 4% simple interest per year for 3 years. How much interest is earned?" }, { "role": "assistant", "content": "```python\nprincipal = 8000\nrate = 4 / 100 # 0.04\nyears = 3\ninterest = principal * rate * years # 960.0\nprint(f\"{interest:.2f}\")...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "960.00", "printed": "960.00", "notation": null}
nlprog_det-setting-0067474
An invoice lists 21 desk lamps at $6 each, plus 5% sales tax. What is the invoice total? Let the code do the arithmetic: ```python quantity = 21 unit_price = 6 subtotal = quantity * unit_price # 126 total = subtotal * (1 + 5 / 100) # 132.3 print(f"{total:.2f}") ``` What it prints: 132.30 The total with tax is $132....
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "132.30", "printed": "132.30", "notation": null}
nlprog_det-setting-0067475
<|start|><|user|> Omar has 18 documents to file, and each filing costs $350. How much are the filing fees in total?<|eot|> <|assistant|> ```python fee = 350 filings = 18 total = fee * filings # 6300 print(total) ``` Out: 6300 $6,300 in filing fees.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Omar has 18 documents to file, and each filing costs $350. How much are the filing fees in total?" }, { "role": "assistant", "content": "```python\nfee = 350\nfilings = 18\ntotal = fee * filings # 6300\nprint(total)\n```\nOut:\n6300\n\n$6,300 in filing fees." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "6300", "printed": "6300", "notation": null}
nlprog_det-setting-0067478
<|start|><|system|> Tools (call with JSON): [{"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|> Copies cost $5 plus $0.10 for ea...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"eval_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet...
nlprog_det
setting
original
null
deterministic
[]
[]
260
{"gold": "7.70", "printed": "7.70", "notation": null}
nlprog_det-setting-0067479
A 2% increase is applied to $2,200 monthly rent. What is the new amount? As Python: ```python rent = 2200 increase = 2 / 100 # 0.02 new_rent = rent * (1 + increase) # 2244.0 print(f"{new_rent:.2f}") ``` Console: 2244.00 The new rent is $2,244.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "2244.00", "printed": "2244.00", "notation": null}
nlprog_det-setting-0067480
Revenue is $38,000 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)? We write it as a program: revenue = 38000 costs = 36000 profit = revenue - costs # 2000 margin = profit / revenue * 100 # 5.263157894736842 print(round(margin, 1)) Printed result: 5.3 Profi...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "5.3", "printed": "5.3", "notation": null}
nlprog_det-setting-0067481
The landlord deducts $150 from a $2,500 deposit. What is returned to the tenant? Computing it: ```python deposit = 2500 deductions = [150] refund = deposit - sum(deductions) print(refund) ``` That prints 2350. $2,350 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "2350", "printed": "2350", "notation": null}
nlprog_det-setting-0067482
Ulla earns $22.40 an hour and time and a half for hours over 40. What is the pay for a 43-hour week? We write it as a program: ```python rate = 22.4 hours = 43 regular = 40 * rate # 896.0 overtime = (hours - 40) * rate * 1.5 # 100.79999999999998 pay = regular + overtime # 996.8 print(f"{pay:.2f}") ``` The run gives...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "996.80", "printed": "996.80", "notation": null}
nlprog_det-setting-0067483
<|start|><|user|> 75 copies of a 47-page packet are printed at $0.15 per page. What is the cost?<|eot|> <|assistant|> ```python pages = 47 copies = 75 cost_per_page = 0.15 cost = pages * copies * cost_per_page # 528.75 print(f"{cost:.2f}") ``` Execution prints 528.75. The job costs $528.75.<|eot|> <|end|>
chat
[ { "role": "user", "content": "75 copies of a 47-page packet are printed at $0.15 per page. What is the cost?" }, { "role": "assistant", "content": "```python\npages = 47\ncopies = 75\ncost_per_page = 0.15\ncost = pages * copies * cost_per_page # 528.75\nprint(f\"{cost:.2f}\")\n```\nExecution pr...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "528.75", "printed": "528.75", "notation": null}
nlprog_det-setting-0067484
Scale 100 g of flour from 4 servings to 8 servings. In code: ```python grams = 100 serves = 4 needed_for = 8 scaled = grams * needed_for // serves # 200 print(scaled) ``` Program output: 200 200 grams of flour are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "200", "printed": "200", "notation": null}
nlprog_det-setting-0067485
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "calculator", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"calculator\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Pyth...
nlprog_det
setting
original
null
deterministic
[]
[]
229
{"gold": "36.80", "printed": "36.80", "notation": null}
nlprog_det-setting-0067487
<|start|><|system|> You have access to these functions: {"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}} {"name": "translate", "description": "Transla...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\...
nlprog_det
setting
original
null
deterministic
[]
[]
390
{"gold": "800", "printed": "800", "notation": null}
nlprog_det-setting-0067488
<|start|><|system|> Available functions (JSON Schema): [{"name": "python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> 6 friends split a $9...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\...
nlprog_det
setting
original
null
deterministic
[]
[]
234
{"gold": "18.88", "printed": "18.88", "notation": null}
nlprog_det-setting-0067489
How many 1-foot square tiles cover a 7 ft by 10 ft floor (round up)? Python makes this quick: ```python import math length = 7 width = 10 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 70 print(tiles) ``` Output of the run: 70 It takes 70 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "70", "printed": "70", "notation": null}
nlprog_det-setting-0067490
Rent of $900 goes up 6%. What is the new rent? ```python rent = 900 increase = 6 / 100 # 0.06 new_rent = rent * (1 + increase) # 954.0 print(f"{new_rent:.2f}") ``` It prints: 954.00 The new rent is $954.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "954.00", "printed": "954.00", "notation": null}
nlprog_det-setting-0067491
A claim accrued on August 7, 2021. The limitations period is 3 years. On what date does it expire? Python makes this quick: ```python from datetime import date accrued = date(2021, 8, 7) # datetime.date(2021, 8, 7) years = 3 expires = accrued.replace(year=accrued.year + years) # datetime.date(2024, 8, 7) print(expir...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "2024-08-07", "printed": "2024-08-07", "notation": null}
nlprog_det-setting-0067493
Water costs $15 a month plus $3.50 for each 1,000 gallons over 0,000. What is owed for 16,000 gallons? The bill is $71.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "71.00", "printed": "71.00", "notation": null}
nlprog_det-setting-0067494
A claim accrued on February 19, 2022. The limitations period is 6 years. On what date does it expire? We can compute it in Python. ```python from datetime import date accrued = date(2022, 2, 19) # datetime.date(2022, 2, 19) years = 6 expires = accrued.replace(year=accrued.year + years) # datetime.date(2028, 2, 19) p...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
154
{"gold": "2028-02-19", "printed": "2028-02-19", "notation": null}
nlprog_det-setting-0067495
64 of 100 members attended. What percent attended? In code: ```python present = 64 total = 100 percent = present / total * 100 # 64.0 print(round(percent, 1)) ``` Executing it gives 64.0, as expected. 64.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "64.0", "printed": "64.0", "notation": null}
nlprog_det-setting-0067496
How many minutes pass from 9:34 AM to 10:59 AM on the same day? ```python start = 9 * 60 + 34 # 574 end = 10 * 60 + 59 # 659 print(end - start) ``` Out: 85 85 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "85", "printed": "85", "notation": null}
nlprog_det-setting-0067497
<|start|><|system|> You may call the tools below. {"name": "compute", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> At $0.67 per mile, what is t...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"compute\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"s...
nlprog_det
setting
original
null
deterministic
[]
[]
214
{"gold": "290.78", "printed": "290.78", "notation": null}
nlprog_det-setting-0067498
What average speed covers 492 miles in 4 hours? ```python distance = 492 hours = 4 speed = distance / hours # 123.0 print(round(speed)) ``` The printout reads: 123 It averages 123 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "123", "printed": "123", "notation": null}
nlprog_det-setting-0067499
<|start|><|system|> Functions: [{"name": "py_exec", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> If a 6-year limitations period starts on A...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"py_exec\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}]" ...
nlprog_det
setting
original
null
deterministic
[]
[]
237
{"gold": "2028-08-09", "printed": "2028-08-09", "notation": null}
nlprog_det-setting-0067500
<|start|><|system|> You have access to these functions: {"name": "calculator", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> Fines run at $25 per day ...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"calculator\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [...
nlprog_det
setting
original
null
deterministic
[]
[]
212
{"gold": "425", "printed": "425", "notation": null}
nlprog_det-setting-0067501
What is a 10% tip on a $234.64 bill? A few lines of Python do it: ```python bill = 234.64 tip_rate = 10 / 100 # 0.1 tip = bill * tip_rate # 23.464 print(f"{tip:.2f}") ``` Printed — 23.46 Leave $23.46.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "23.46", "printed": "23.46", "notation": null}
nlprog_det-setting-0067502
<|start|><|user|> 2 clients win $96,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> ```python award = 96000 fee = award * 30 / 100 # 28800.0 remaining = award - fee # 67200.0 per_client = remaining / 2 # 33600.0 print(f"{per_client:.2f}") ``` stdout: 3360...
chat
[ { "role": "user", "content": "2 clients win $96,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": "```python\naward = 96000\nfee = award * 30 / 100 # 28800.0\nremaining = award - fee # 67200.0\nper_client = remaining ...
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "33600.00", "printed": "33600.00", "notation": null}
nlprog_det-setting-0067503
A 250-mile drive at a steady 50 mph takes how many minutes? As a program: ```python distance = 250 speed = 50 minutes = distance / speed * 60 # 300.0 print(round(minutes)) ``` Execution result: 300 300 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0067504
How many 1-foot square tiles cover a 17 ft by 12 ft floor (round up)? Here's the code. ```python import math length = 17 width = 12 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 204 print(tiles) ``` Run result = 204 204 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "204", "printed": "204", "notation": null}
nlprog_det-setting-0067505
A claim accrued on November 1, 2018. The limitations period is 2 years. On what date does it expire? A few lines of Python do it: from datetime import date accrued = date(2018, 11, 1) years = 2 expires = accrued.replace(year=accrued.year + years) print(expires.isoformat()) This prints 2020-11-01, a...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "2020-11-01", "printed": "2020-11-01", "notation": null}
nlprog_det-setting-0067508
Straight-line depreciation: cost $24,000, salvage $3,000, 6 years. How much per year? The program: ```python cost = 24000 salvage = 3000 years = 6 per_year = (cost - salvage) / years # 3500.0 print(f"{per_year:.2f}") ``` (Program output: 3500.00) Depreciation is $3,500.00 per year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "3500.00", "printed": "3500.00", "notation": null}
nlprog_det-setting-0067509
A $2,000 security deposit has deductions of $85. How much is refunded? Written as code: ```python deposit = 2000 deductions = [85] refund = deposit - sum(deductions) # 1915 print(refund) ``` Run result — 1915 The refund is $1,915.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "1915", "printed": "1915", "notation": null}
nlprog_det-setting-0067510
<|start|><|user|> What is 10 degrees Celsius in Fahrenheit?<|eot|> <|assistant|> ```python celsius = 10 fahrenheit = celsius * 9 / 5 + 32 # 50.0 print(round(fahrenheit)) ``` The script prints 50, as expected. That is 50 °F.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is 10 degrees Celsius in Fahrenheit?" }, { "role": "assistant", "content": "```python\ncelsius = 10\nfahrenheit = celsius * 9 / 5 + 32 # 50.0\nprint(round(fahrenheit))\n```\nThe script prints 50, as expected.\n\nThat is 50 °F." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0067511
258 volunteers are split into 3 equal teams. How many are on each team, and how many are left over? Python: ```python total = 258 groups = 3 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Output of the run: 86 each, 0 left over The answer: 86 each, 0 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "86 each, 0 left over", "printed": "86 each, 0 left over", "notation": null}
nlprog_det-setting-0067512
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> At an exchange rate of 1.35 EUR per USD, how many EUR is 6,572 USD?<|eot|> <|assistant|> It converts to 8,872.20 EUR.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "At an exchange rate of 1.35 EUR per USD, how many EUR is 6,572 USD?" }, { "role": "assistant", "content": "It converts to 8,872.20 EUR." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
59
{"gold": "8872.20", "printed": "8872.20", "notation": null}
nlprog_det-setting-0067513
What is 20 degrees Celsius in Fahrenheit? Coded up: ```python celsius = 20 fahrenheit = celsius * 9 / 5 + 32 # 68.0 print(round(fahrenheit)) ``` The program prints 68. That is 68 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "68", "printed": "68", "notation": null}
nlprog_det-setting-0067514
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> Buying 3 envelopes at $15 each, 6 scissors at $29 each, someone hands over $250. What change comes back?<|eot|> <|assistant|> ```python items = [(3, 15), (6, 29)] total = sum(q * p for q, p in items) # 219 paid = 250 change = paid - total # 31 prin...
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "Buying 3 envelopes at $15 each, 6 scissors at $29 each, someone hands over $250. What change comes back?" }, { "role": "assistant", "content": "```python\nitems = [(3, 15), (6, 29)]\nt...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "31", "printed": "31", "notation": null}
nlprog_det-setting-0067515
How many minutes pass from 8:14 AM to 9:05 AM on the same day? It is 51 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
24
{"gold": "51", "printed": "51", "notation": null}
nlprog_det-setting-0067517
With 27 rows of 11 chairs and 27 empty chairs, how many chairs are taken? As Python: ```python rows = 27 per_row = 11 empty = 27 seated = rows * per_row - empty # 270 print(seated) ``` Shell output: 270 270 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "270", "printed": "270", "notation": null}
nlprog_det-setting-0067519
A settlement of $18,000 is split equally among 3 parties. How much does each party receive? Python code: settlement = 18000 parties = 3 share = settlement // parties # 6000 print(share) Run output — 6000 Each share is $6,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "6000", "printed": "6000", "notation": null}
nlprog_det-setting-0067520
With 9 rows of 22 chairs and 14 empty chairs, how many chairs are taken? The program: ```python rows = 9 per_row = 22 empty = 14 seated = rows * per_row - empty # 184 print(seated) ``` Output of the run — 184 184 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "184", "printed": "184", "notation": null}
nlprog_det-setting-0067521
<|start|><|system|> Answer in plain English.<|eot|> <|user|> A 100-mile drive at a steady 50 mph takes how many minutes?<|eot|> <|assistant|> The trip takes 120 minutes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer in plain English." }, { "role": "user", "content": "A 100-mile drive at a steady 50 mph takes how many minutes?" }, { "role": "assistant", "content": "The trip takes 120 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0067522
<|start|><|system|> You have access to these functions: [{"name": "py_exec", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> A $12,000 grant pa...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"py_exec\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require...
nlprog_det
setting
original
null
deterministic
[]
[]
238
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0067523
At $0.70 per mile, what is the reimbursement for 585 miles? Set it up in Python: ```python miles = 585 rate = 0.7 reimbursement = miles * rate # 409.5 print(f"{reimbursement:.2f}") ``` It prints 409.50. Delia is owed $409.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "409.50", "printed": "409.50", "notation": null}
nlprog_det-setting-0067524
<|start|><|system|> Avoid unnecessary detail.<|eot|> <|user|> Signe was born on August 17, 1990. How old is Signe on June 24, 2024?<|eot|> <|assistant|> ```python from datetime import date born = date(1990, 8, 17) # datetime.date(1990, 8, 17) on = date(2024, 6, 24) # datetime.date(2024, 6, 24) age = on.year - born.ye...
chat
[ { "role": "system", "content": "Avoid unnecessary detail." }, { "role": "user", "content": "Signe was born on August 17, 1990. How old is Signe on June 24, 2024?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1990, 8, 17) # datetime.date(199...
nlprog_det
setting
original
null
deterministic
[]
[]
165
{"gold": "33", "printed": "33", "notation": null}
nlprog_det-setting-0067525
A $84 dinner bill gets a 15% tip, and 2 people share the cost equally. What is each person's share? A few lines of Python do it: ```python bill = 84 tip_rate = 15 / 100 # 0.15 people = 2 each = bill * (1 + tip_rate) / people # 48.3 print(f"{each:.2f}") ``` When run, it prints: 48.30 The share is $48.30 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "48.30", "printed": "48.30", "notation": null}
nlprog_det-setting-0067526
Buying 2 paper reams at $5 each, 5 scissors at $27 each, 3 headsets at $11 each, 6 desk lamps at $8 each, someone hands over $250. What change comes back? $24 comes back.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
58
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0067528
A settlement of $2,640 is split equally among 6 parties. How much does each party receive? Here's the code. ```python settlement = 2640 parties = 6 share = settlement // parties # 440 print(share) ``` What it prints — 440 Each share is $440.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "440", "printed": "440", "notation": null}
nlprog_det-setting-0067529
<|start|><|system|> You are a careful reviewer of figures.<|eot|> <|user|> Fines run at $50 per day up to a maximum of $1,000. How much after 41 days?<|eot|> <|assistant|> $1,000 is owed.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a careful reviewer of figures." }, { "role": "user", "content": "Fines run at $50 per day up to a maximum of $1,000. How much after 41 days?" }, { "role": "assistant", "content": "$1,000 is owed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
53
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0067530
<|start|><|user|> After a 30% fee is taken from a $96,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|> <|assistant|> ```python award = 96000 fee = award * 30 / 100 # 28800.0 remaining = award - fee # 67200.0 per_client = remaining / 3 # 22400.0 print(f"{per_client:.2f}")...
chat
[ { "role": "user", "content": "After a 30% fee is taken from a $96,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?" }, { "role": "assistant", "content": "```python\naward = 96000\nfee = award * 30 / 100 # 28800.0\nremaining = award - fee # 67200.0\nper_cl...
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "22400.00", "printed": "22400.00", "notation": null}
nlprog_det-setting-0067531
<|start|><|user|> What does $1,000 grow to in 2 years at 2% annual compounding?<|eot|> <|assistant|> ```python principal = 1000 rate = 2 / 100 # 0.02 years = 2 value = principal * (1 + rate) ** years # 1040.4 print(f"{value:.2f}") ``` When run, it prints 1040.40. It is worth $1,040.40.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What does $1,000 grow to in 2 years at 2% annual compounding?" }, { "role": "assistant", "content": "```python\nprincipal = 1000\nrate = 2 / 100 # 0.02\nyears = 2\nvalue = principal * (1 + rate) ** years # 1040.4\nprint(f\"{value:.2f}\")\n```\nWhen run, it prints ...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "1040.40", "printed": "1040.40", "notation": null}
nlprog_det-setting-0067532
Revenue is $22,500 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)? Translated to Python: ```python revenue = 22500 costs = 20000 profit = revenue - costs # 2500 margin = profit / revenue * 100 # 11.11111111111111 print(round(margin, 1)) ``` Executed, it shows 11.1. Profit is ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "11.1", "printed": "11.1", "notation": null}
nlprog_det-setting-0067533
Each storage box holds 20 files. How many boxes are needed for 236 files? We write it as a program: ```python import math files = 236 per_box = 20 boxes = math.ceil(files / per_box) print(boxes) ``` Result: 12 12 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0067534
<|start|><|system|> You help with homework problems.<|eot|> <|user|> Split $5,390 between Quinn and Marek in the ratio 2 to 5. What is Quinn's share?<|eot|> <|assistant|> Quinn's share is $1,540.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "Split $5,390 between Quinn and Marek in the ratio 2 to 5. What is Quinn's share?" }, { "role": "assistant", "content": "Quinn's share is $1,540." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
63
{"gold": "1540", "printed": "1540", "notation": null}
nlprog_det-setting-0067535
The landlord deducts $85, $45 and $60 from a $800 deposit. What is returned to the tenant? Programmatically: ```python deposit = 800 deductions = [85, 45, 60] refund = deposit - sum(deductions) # 610 print(refund) ``` The script prints 610, as expected. The refund is $610.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "610", "printed": "610", "notation": null}
nlprog_det-setting-0067536
Copies cost $5 plus $0.50 for each page beyond 0. How much for 109 pages? Programmatically: ```python pages = 109 base = 5 per_page = 0.5 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 59.5 print(f"{cost:.2f}") ``` The program prints 59.50. The copy costs $59.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "59.50", "printed": "59.50", "notation": null}
nlprog_det-setting-0067537
Copies cost $10 plus $0.25 for each page beyond 20. How much for 43 pages? A few lines of Python do it: ```python pages = 43 base = 10 per_page = 0.25 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 15.75 print(f"{cost:.2f}") ``` (Console output: 15.75) The total is $15.75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "15.75", "printed": "15.75", "notation": null}
nlprog_det-setting-0067538
<|start|><|user|> A penalty of $100 a day accrues, capped at $1,000. What is owed after 37 days?<|eot|> <|assistant|> $1,000 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A penalty of $100 a day accrues, capped at $1,000. What is owed after 37 days?" }, { "role": "assistant", "content": "$1,000 is owed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0067539
The building opened in 2016. How many years had passed by 2038? In code: ```python start_year = 2016 end_year = 2038 print(end_year - start_year) ``` When run, it prints: 22 22 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
71
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0067540
<|start|><|user|> From a $5,000 retainer, 10 hours at $250/hour have been drawn. What remains?<|eot|> <|assistant|> ```python retainer = 5000 hours = 10 rate = 250 left = retainer - hours * rate # 2500 print(left) ``` (Out: 2500) $2,500 of the retainer is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From a $5,000 retainer, 10 hours at $250/hour have been drawn. What remains?" }, { "role": "assistant", "content": "```python\nretainer = 5000\nhours = 10\nrate = 250\nleft = retainer - hours * rate # 2500\nprint(left)\n```\n(Out: 2500)\n\n$2,500 of the retainer is...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0067541
<|start|><|user|> Buying 3 cables at $12 each, 3 notebooks at $13 each, 6 calendars at $10 each, someone hands over $150. What change comes back?<|eot|> <|assistant|> ```python items = [(3, 12), (3, 13), (6, 10)] total = sum(q * p for q, p in items) # 135 paid = 150 change = paid - total # 15 print(change) ``` (Progr...
chat
[ { "role": "user", "content": "Buying 3 cables at $12 each, 3 notebooks at $13 each, 6 calendars at $10 each, someone hands over $150. What change comes back?" }, { "role": "assistant", "content": "```python\nitems = [(3, 12), (3, 13), (6, 10)]\ntotal = sum(q * p for q, p in items) # 135\npaid =...
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0067542
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> How many meters are in 44.6 kilometers?<|eot|> <|assistant|> ```python km = 44.6 meters = km * 1000 # 44600.0 print(round(meters)) ``` Out = 44600 44,600 m.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "How many meters are in 44.6 kilometers?" }, { "role": "assistant", "content": "```python\nkm = 44.6\nmeters = km * 1000 # 44600.0\nprint(round(meters))\n```\nOut = 44600\n\n44,600 m." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "44600", "printed": "44600", "notation": null}
nlprog_det-setting-0067543
<|start|><|user|> Walls total 899 sq ft and each can covers 250 sq ft. How many cans should be bought?<|eot|> <|assistant|> ```python import math area = 899 coverage = 250 cans = math.ceil(area / coverage) # 4 print(cans) ``` Python prints 4, as expected. Buy 4 cans.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Walls total 899 sq ft and each can covers 250 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "```python\nimport math\narea = 899\ncoverage = 250\ncans = math.ceil(area / coverage) # 4\nprint(cans)\n```\nPython prints 4, as expected.\n\...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0067544
<|start|><|system|> Tools (call with JSON): [{"name": "code_runner", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "business_days", "description": ...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"code_runner\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\...
nlprog_det
setting
original
null
deterministic
[]
[]
321
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0067545
<|start|><|user|> Parking is $2 per hour with a daily maximum of $18. What do 7 hours cost?<|eot|> <|assistant|> ```python rate = 2 hours = 7 daily_max = 18 cost = min(rate * hours, daily_max) # 14 print(cost) ``` When run, it prints 14, as expected. Parking costs $14.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Parking is $2 per hour with a daily maximum of $18. What do 7 hours cost?" }, { "role": "assistant", "content": "```python\nrate = 2\nhours = 7\ndaily_max = 18\ncost = min(rate * hours, daily_max) # 14\nprint(cost)\n```\nWhen run, it prints 14, as expected.\n\nPark...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0067546
A $1,000 security deposit has deductions of $85 and $200. How much is refunded? $715 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "715", "printed": "715", "notation": null}
nlprog_det-setting-0067547
<|start|><|user|> Equipment costs $30,000, has a salvage value of $0, and a useful life of 5 years. What is the straight-line depreciation per year?<|eot|> <|assistant|> ```python cost = 30000 salvage = 0 years = 5 per_year = (cost - salvage) / years # 6000.0 print(f"{per_year:.2f}") ``` It prints 6000.00, as expected...
chat
[ { "role": "user", "content": "Equipment costs $30,000, has a salvage value of $0, and a useful life of 5 years. What is the straight-line depreciation per year?" }, { "role": "assistant", "content": "```python\ncost = 30000\nsalvage = 0\nyears = 5\nper_year = (cost - salvage) / years # 6000.0\n...
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "6000.00", "printed": "6000.00", "notation": null}
nlprog_det-setting-0067548
<|start|><|user|> Parking is $5 per hour with a daily maximum of $18. What do 3 hours cost?<|eot|> <|assistant|> ```python rate = 5 hours = 3 daily_max = 18 cost = min(rate * hours, daily_max) # 15 print(cost) ``` The interpreter prints: 15 The charge is $15.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Parking is $5 per hour with a daily maximum of $18. What do 3 hours cost?" }, { "role": "assistant", "content": "```python\nrate = 5\nhours = 3\ndaily_max = 18\ncost = min(rate * hours, daily_max) # 15\nprint(cost)\n```\nThe interpreter prints: 15\n\nThe charge is ...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0067549
How many of 32 members form a majority (more than half)? The Python version: ```python members = 32 majority = members // 2 + 1 # 17 print(majority) ``` Execution prints 17, as expected. 17 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0067550
7 hours of work at $410 an hour: what is the total charge? One way, in code: ```python hours = 7 rate = 410 bill = hours * rate # 2870 print(f"{bill:.2f}") ``` The printout reads: 2870.00 That comes to $2,870.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "2870.00", "printed": "2870.00", "notation": null}
nlprog_det-setting-0067551
<|start|><|system|> Available functions (JSON Schema): [{"name": "compute", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> A training sessi...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"compute\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir...
nlprog_det
setting
original
null
deterministic
[]
[]
201
{"gold": "199", "printed": "199", "notation": null}
nlprog_det-setting-0067552
From 1999 to 2021, how many years is that? ```python start_year = 1999 end_year = 2021 print(end_year - start_year) ``` Running it prints 22. That is 22 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
64
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0067553
<|start|><|user|> At 40 miles per hour, how many minutes does a 240-mile trip take?<|eot|> <|assistant|> ```python distance = 240 speed = 40 minutes = distance / speed * 60 print(round(minutes)) ``` Running it prints 360, as expected. The trip takes 360 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 40 miles per hour, how many minutes does a 240-mile trip take?" }, { "role": "assistant", "content": "```python\ndistance = 240\nspeed = 40\nminutes = distance / speed * 60\nprint(round(minutes))\n```\nRunning it prints 360, as expected.\n\nThe trip takes 360 min...
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "360", "printed": "360", "notation": null}
nlprog_det-setting-0067554
Which is cheaper per unit: 10 for $8.77 (A) or 20 for $14.57 (B)? In code: ```python pack_a = 8.77 / 10 # 0.877 pack_b = 14.57 / 20 # 0.7285 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` This prints: B Pack B is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0067555
<|start|><|system|> Tool definitions: [{"name": "python_exec", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> A court charges $5 per req...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"python_exec\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"...
nlprog_det
setting
original
null
deterministic
[]
[]
256
{"gold": "6.50", "printed": "6.50", "notation": null}
nlprog_det-setting-0067556
Filing fees are $90 per document. What do 9 filings cost? Written as code: ```python fee = 90 filings = 9 total = fee * filings print(total) ``` Run result = 810 $810 in filing fees.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "810", "printed": "810", "notation": null}
nlprog_det-setting-0067557
With $4,000 in costs and $4,500 in revenue, what percent of revenue is profit? Round to one decimal. Computing it: ```python revenue = 4500 costs = 4000 profit = revenue - costs # 500 margin = profit / revenue * 100 # 11.11111111111111 print(round(margin, 1)) ``` Program output — 11.1 The margin is 11.1%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "11.1", "printed": "11.1", "notation": null}
nlprog_det-setting-0067558
A 30 lb package ships at $5 base plus $1.50/lb. What is the charge? ```python base = 5 per_pound = 1.5 weight = 30 cost = base + per_pound * weight # 50.0 print(f"{cost:.2f}") ``` Run result = 50.00 Shipping costs $50.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "50.00", "printed": "50.00", "notation": null}
nlprog_det-setting-0067559
<|start|><|user|> Sara lends $2,500 at 2% simple interest per year for 3 years. How much interest is earned?<|eot|> <|assistant|> ```python principal = 2500 rate = 2 / 100 # 0.02 years = 3 interest = principal * rate * years # 150.0 print(f"{interest:.2f}") ``` The printout reads: 150.00 It earns $150.00.<|eot|> <|e...
chat
[ { "role": "user", "content": "Sara lends $2,500 at 2% simple interest per year for 3 years. How much interest is earned?" }, { "role": "assistant", "content": "```python\nprincipal = 2500\nrate = 2 / 100 # 0.02\nyears = 3\ninterest = principal * rate * years # 150.0\nprint(f\"{interest:.2f}\")...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "150.00", "printed": "150.00", "notation": null}
nlprog_det-setting-0067560
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"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_uni...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\...
nlprog_det
setting
original
null
deterministic
[]
[]
312
{"gold": "233", "printed": "233", "notation": null}
nlprog_det-setting-0067561
What is the total rent on a 24-month lease at $3,250 a month? Programmatically: ```python monthly_rent = 3250 months = 24 total = monthly_rent * months # 78000 print(total) ``` Execution result: 78000 In total, $78,000 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "78000", "printed": "78000", "notation": null}
nlprog_det-setting-0067562
How many weekdays (Monday to Friday) fall after May 16, 2023 up to and including June 4, 2023? There are 13 business days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0067563
<|start|><|user|> What is a 25% tip on a $102.53 bill?<|eot|> <|assistant|> ```python bill = 102.53 tip_rate = 25 / 100 # 0.25 tip = bill * tip_rate # 25.6325 print(f"{tip:.2f}") ``` Output — 25.63 Leave $25.63.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is a 25% tip on a $102.53 bill?" }, { "role": "assistant", "content": "```python\nbill = 102.53\ntip_rate = 25 / 100 # 0.25\ntip = bill * tip_rate # 25.6325\nprint(f\"{tip:.2f}\")\n```\nOutput — 25.63\n\nLeave $25.63." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "25.63", "printed": "25.63", "notation": null}
nlprog_det-setting-0067564
Sales went from 2,000 to 1,000. What is the percent change? Here is the program. ```python old = 2000 new = 1000 change = (new - old) / old * 100 # -50.0 print(round(change)) ``` # printed: -50 The change is -50%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "-50", "printed": "-50", "notation": null}
nlprog_det-setting-0067565
Count the days between May 13, 2027 and February 22, 2028. Python code: ```python from datetime import date first = date(2027, 5, 13) # datetime.date(2027, 5, 13) second = date(2028, 2, 22) # datetime.date(2028, 2, 22) print((second - first).days) ``` What it prints: 285 There are 285 days between the two dates.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "285", "printed": "285", "notation": null}
nlprog_det-setting-0067566
Goods bought on October 22, 2019 carry a 18-month warranty. When does it expire? The Python version: ```python from datetime import date start = date(2019, 10, 22) months = 18 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ```...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "2021-04-22", "printed": "2021-04-22", "notation": null}
nlprog_det-setting-0067567
<|start|><|system|> You help people work with structured data.<|eot|> <|user|> How many of 169 votes make 75% (round up)?<|eot|> <|assistant|> ```python import math voters = 169 needed = math.ceil(voters * 75 / 100) # 127 print(needed) ``` Program output: 127 127 votes are needed.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help people work with structured data." }, { "role": "user", "content": "How many of 169 votes make 75% (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 169\nneeded = math.ceil(voters * 75 / 100) # 127\nprint(nee...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "127", "printed": "127", "notation": null}
nlprog_det-setting-0067568
What average speed covers 46 miles in 2 hours? We write it as a program: ```python distance = 46 hours = 2 speed = distance / hours # 23.0 print(round(speed)) ``` Executed, it shows 23. It averages 23 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0067569
<|start|><|user|> The rules require 3/5 of 30 members (round up) to be present. How many is that?<|eot|> <|assistant|> ```python import math members = 30 quorum = math.ceil(members * 3 / 5) # 18 print(quorum) ``` Run result — 18 18 members are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The rules require 3/5 of 30 members (round up) to be present. How many is that?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 30\nquorum = math.ceil(members * 3 / 5) # 18\nprint(quorum)\n```\nRun result — 18\n\n18 members are needed." }...
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0067571
What is a 10% tip on a $187.82 bill? Computing it: ```python bill = 187.82 tip_rate = 10 / 100 # 0.1 tip = bill * tip_rate # 18.782 print(f"{tip:.2f}") ``` Executed, it shows: 18.78 The tip is $18.78.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "18.78", "printed": "18.78", "notation": null}
nlprog_det-setting-0067573
<|start|><|user|> A board has 13 members. A majority is more than half. How many votes make a majority?<|eot|> <|assistant|> ```python members = 13 majority = members // 2 + 1 # 7 print(majority) ``` Output = 7 That is 7 members.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A board has 13 members. A majority is more than half. How many votes make a majority?" }, { "role": "assistant", "content": "```python\nmembers = 13\nmajority = members // 2 + 1 # 7\nprint(majority)\n```\nOutput = 7\n\nThat is 7 members." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "7", "printed": "7", "notation": null}