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-0055390
<|start|><|user|> Equal monthly payments repay $9,000 plus 6% simple yearly interest over 12 months. How large is a payment?<|eot|> <|assistant|> principal = 9000 annual_rate = 6 / 100 # 0.06 months = 12 interest = principal * annual_rate * months / 12 # 540.0 payment = (principal + interest) / mo...
chat
[ { "role": "user", "content": "Equal monthly payments repay $9,000 plus 6% simple yearly interest over 12 months. How large is a payment?" }, { "role": "assistant", "content": " principal = 9000\n annual_rate = 6 / 100 # 0.06\n months = 12\n interest = principal * annual_rate * month...
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "795.00", "printed": "795.00", "notation": null}
nlprog_det-setting-0055391
<|start|><|user|> Monthly: $25. Annual: $264. What is saved per year by paying annually?<|eot|> <|assistant|> ```python monthly = 25 yearly = 264 savings = monthly * 12 - yearly print(savings) ``` # stdout: 36 $36 is saved.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Monthly: $25. Annual: $264. What is saved per year by paying annually?" }, { "role": "assistant", "content": "```python\nmonthly = 25\nyearly = 264\nsavings = monthly * 12 - yearly\nprint(savings)\n```\n# stdout: 36\n\n$36 is saved." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0055392
<|start|><|user|> A backpack costs $60. It is 25% off. What is the sale price?<|eot|> <|assistant|> The sale price is $45.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A backpack costs $60. It is 25% off. What is the sale price?" }, { "role": "assistant", "content": "The sale price is $45.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "45.00", "printed": "45.00", "notation": null}
nlprog_det-setting-0055393
Rent of $1,800 goes up 5%. What is the new rent? Computing it: ```python rent = 1800 increase = 5 / 100 # 0.05 new_rent = rent * (1 + increase) # 1890.0 print(f"{new_rent:.2f}") ``` Interpreter output: 1890.00 It rises to $1,890.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "1890.00", "printed": "1890.00", "notation": null}
nlprog_det-setting-0055394
A 80-mile drive at a steady 40 mph takes how many minutes? Translated to Python: ```python distance = 80 speed = 40 minutes = distance / speed * 60 # 120.0 print(round(minutes)) ``` (Run result: 120) 120 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0055395
<|start|><|system|> You are a precise assistant.<|eot|> <|user|> What is the total rent on a 12-month lease at $850 a month?<|eot|> <|assistant|> ```python monthly_rent = 850 months = 12 total = monthly_rent * months # 10200 print(total) ``` # result: 10200 In total, $10,200 is paid.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a precise assistant." }, { "role": "user", "content": "What is the total rent on a 12-month lease at $850 a month?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 850\nmonths = 12\ntotal = monthly_rent * months # 10200\nprint(...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "10200", "printed": "10200", "notation": null}
nlprog_det-setting-0055396
A measure needs at least 75% of 35 votes. How many votes is that, rounded up? Python version: ```python import math voters = 35 needed = math.ceil(voters * 75 / 100) # 27 print(needed) ``` When run, it prints 27, as expected. 27 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0055397
4 friends split a $210 bill plus a 18% tip evenly. How much does each pay? Python makes this quick: bill = 210 tip_rate = 18 / 100 # 0.18 people = 4 each = bill * (1 + tip_rate) / people # 61.949999999999996 print(f"{each:.2f}") Output of the run: 61.95 Each person pays $61.95.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "61.95", "printed": "61.95", "notation": null}
nlprog_det-setting-0055398
One can of paint covers 400 square feet. How many cans are needed for 835 square feet of wall? Python: ```python import math area = 835 coverage = 400 cans = math.ceil(area / coverage) # 3 print(cans) ``` This prints 3. 3 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0055399
Ulla was born on October 22, 2002. How old is Ulla on March 23, 2020? Python does the arithmetic: ```python from datetime import date born = date(2002, 10, 22) on = date(2020, 3, 23) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) print(age) ``` Out: 17 Ulla is 17.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0055400
At $0.62 per mile, what is the reimbursement for 628 miles? Script: ```python miles = 628 rate = 0.62 reimbursement = miles * rate # 389.36 print(f"{reimbursement:.2f}") ``` On running, it outputs 389.36. The reimbursement is $389.36.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "389.36", "printed": "389.36", "notation": null}
nlprog_det-setting-0055401
<|start|><|user|> A training session lasted 5 hours and 16 minutes. How many minutes is that?<|eot|> <|assistant|> ```python hours = 5 minutes = 16 total_minutes = hours * 60 + minutes print(total_minutes) ``` (stdout: 316) That is 316 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A training session lasted 5 hours and 16 minutes. How many minutes is that?" }, { "role": "assistant", "content": "```python\nhours = 5\nminutes = 16\ntotal_minutes = hours * 60 + minutes\nprint(total_minutes)\n```\n(stdout: 316)\n\nThat is 316 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "316", "printed": "316", "notation": null}
nlprog_det-setting-0055402
What average speed covers 193 miles in 1 hours? As Python: ```python distance = 193 hours = 1 speed = distance / hours # 193.0 print(round(speed)) ``` Shell output — 193 The average speed is 193 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "193", "printed": "193", "notation": null}
nlprog_det-setting-0055403
If a 3-year limitations period starts on October 1, 2023, when does it end? Here is the program. ```python from datetime import date accrued = date(2023, 10, 1) # datetime.date(2023, 10, 1) years = 3 expires = accrued.replace(year=accrued.year + years) # datetime.date(2026, 10, 1) print(expires.isoformat()) ``` stdo...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "2026-10-01", "printed": "2026-10-01", "notation": null}
nlprog_det-setting-0055405
Nilufar earns a 5% commission on $59,152 of sales. What is the commission? A Python solution: ```python sales = 59152 rate = 5 / 100 # 0.05 commission = sales * rate # 2957.6000000000004 print(f"{commission:.2f}") ``` What it prints — 2957.60 Nilufar earns $2,957.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "2957.60", "printed": "2957.60", "notation": null}
nlprog_det-setting-0055407
Equipment costs $12,000, has a salvage value of $2,000, and a useful life of 10 years. What is the straight-line depreciation per year? Let the code do the arithmetic: ```python cost = 12000 salvage = 2000 years = 10 per_year = (cost - salvage) / years # 1000.0 print(f"{per_year:.2f}") ``` Run result = 1000.00 Depre...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "1000.00", "printed": "1000.00", "notation": null}
nlprog_det-setting-0055408
A court charges $10 per request plus $0.25 per page after the first 20 pages. What does a 47-page copy cost? Here is a short program for it. ```python pages = 47 base = 10 per_page = 0.25 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 16.75 print(f"{cost:.2f}") ``` Run result — 16.75 The copy ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "16.75", "printed": "16.75", "notation": null}
nlprog_det-setting-0055409
<|start|><|user|> A settlement of $4,500 is split equally among 6 parties. How much does each party receive?<|eot|> <|assistant|> ```python settlement = 4500 parties = 6 share = settlement // parties print(share) ``` Execution prints 750. Each share is $750.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A settlement of $4,500 is split equally among 6 parties. How much does each party receive?" }, { "role": "assistant", "content": "```python\nsettlement = 4500\nparties = 6\nshare = settlement // parties\nprint(share)\n```\nExecution prints 750.\n\nEach share is $750...
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0055410
<|start|><|user|> 3 claimants share a $36,000 settlement equally. What is each share?<|eot|> <|assistant|> ```python settlement = 36000 parties = 3 share = settlement // parties # 12000 print(share) ``` (Program output: 12000) Each party receives $12,000.<|eot|> <|end|>
chat
[ { "role": "user", "content": "3 claimants share a $36,000 settlement equally. What is each share?" }, { "role": "assistant", "content": "```python\nsettlement = 36000\nparties = 3\nshare = settlement // parties # 12000\nprint(share)\n```\n(Program output: 12000)\n\nEach party receives $12,000."...
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "12000", "printed": "12000", "notation": null}
nlprog_det-setting-0055411
With 15% off, what does a $90 printer cost? ```python price = 90 discount = 15 / 100 # 0.15 sale_price = price * (1 - discount) # 76.5 print(f"{sale_price:.2f}") ``` Interpreter output — 76.50 It costs $76.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "76.50", "printed": "76.50", "notation": null}
nlprog_det-setting-0055412
<|start|><|user|> A shift starts at 9:15 AM and lasts 90 minutes. When does it end?<|eot|> <|assistant|> ```python start = 9 * 60 + 15 end = start + 90 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` The interpreter prints: 10:45 AM The shift finishes at 10...
chat
[ { "role": "user", "content": "A shift starts at 9:15 AM and lasts 90 minutes. When does it end?" }, { "role": "assistant", "content": "```python\nstart = 9 * 60 + 15\nend = start + 90\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}\")\n`...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "10:45 AM", "printed": "10:45 AM", "notation": null}
nlprog_det-setting-0055413
Xavier earns a 5% commission on $113,389 of sales. What is the commission? The commission is $5,669.45.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "5669.45", "printed": "5669.45", "notation": null}
nlprog_det-setting-0055414
3 friends split a $84 bill plus a 20% tip evenly. How much does each pay? Code: ```python bill = 84 tip_rate = 20 / 100 # 0.2 people = 3 each = bill * (1 + tip_rate) / people # 33.6 print(f"{each:.2f}") ``` Run output — 33.60 Each person pays $33.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "33.60", "printed": "33.60", "notation": null}
nlprog_det-setting-0055415
An invoice lists 12 scissors at $3 each, plus 5% sales tax. What is the invoice total? The total with tax is $37.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "37.80", "printed": "37.80", "notation": null}
nlprog_det-setting-0055416
5 bike rides at 250 calories each burn how many calories in total? ```python per_session = 250 sessions = 5 total = per_session * sessions # 1250 print(total) ``` That prints 1250. 1250 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "1250", "printed": "1250", "notation": null}
nlprog_det-setting-0055417
<|start|><|user|> A car travels 180 miles in 3 hours. What is its average speed in miles per hour?<|eot|> <|assistant|> ```python distance = 180 hours = 3 speed = distance / hours # 60.0 print(round(speed)) ``` Execution prints 60. The average speed is 60 mph.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A car travels 180 miles in 3 hours. What is its average speed in miles per hour?" }, { "role": "assistant", "content": "```python\ndistance = 180\nhours = 3\nspeed = distance / hours # 60.0\nprint(round(speed))\n```\nExecution prints 60.\n\nThe average speed is 60 ...
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0055418
Which is cheaper per unit: 8 for $7.20 (A) or 15 for $12.56 (B)? Translated to Python: pack_a = 7.2 / 8 pack_b = 12.56 / 15 cheaper = "A" if pack_a < pack_b else "B" print(cheaper) The program prints B. B has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0055419
Chen was born on February 24, 1979. How old is Chen on January 24, 2028? We write it as a program: ```python from datetime import date born = date(1979, 2, 24) # datetime.date(1979, 2, 24) on = date(2028, 1, 24) # datetime.date(2028, 1, 24) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) #...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0055420
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "eval_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}} {"name": "define_word...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"eval_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source cod...
nlprog_det
setting
original
null
deterministic
[]
[]
307
{"gold": "1104.08", "printed": "1104.08", "notation": null}
nlprog_det-setting-0055421
4 hours of work at $250 an hour: what is the total charge? In code: hours = 4 rate = 250 bill = hours * rate # 1000 print(f"{bill:.2f}") The script prints: 1000.00 That comes to $1,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "1000.00", "printed": "1000.00", "notation": null}
nlprog_det-setting-0055422
<|start|><|user|> Divide 146 items among 8 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|> <|assistant|> ```python total = 146 groups = 8 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` The script prints 18 each, 2 left o...
chat
[ { "role": "user", "content": "Divide 146 items among 8 groups as evenly as possible with equal groups. How many per group, and how many remain?" }, { "role": "assistant", "content": "```python\ntotal = 146\ngroups = 8\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {rem...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "18 each, 2 left over", "printed": "18 each, 2 left over", "notation": null}
nlprog_det-setting-0055423
<|start|><|user|> One can of paint covers 250 square feet. How many cans are needed for 1365 square feet of wall?<|eot|> <|assistant|> Buy 6 cans.<|eot|> <|end|>
chat
[ { "role": "user", "content": "One can of paint covers 250 square feet. How many cans are needed for 1365 square feet of wall?" }, { "role": "assistant", "content": "Buy 6 cans." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0055424
<|start|><|system|> Functions: [{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}, {"name": "interpreter", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "para...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}, {\"name\": \"interpreter\", \"description\": \"Run Python code in ...
nlprog_det
setting
original
null
deterministic
[]
[]
282
{"gold": "37.08", "printed": "37.08", "notation": null}
nlprog_det-setting-0055425
How many of 42 votes make 67% (round up)? Python does the arithmetic: import math voters = 42 needed = math.ceil(voters * 67 / 100) # 29 print(needed) Python prints: 29 At least 29 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0055426
A $2,500 security deposit has deductions of $45, $45 and $200. How much is refunded? A short script: deposit = 2500 deductions = [45, 45, 200] refund = deposit - sum(deductions) # 2210 print(refund) # program output: 2210 $2,210 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "2210", "printed": "2210", "notation": null}
nlprog_det-setting-0055427
Fines run at $25 per day up to a maximum of $5,000. How much after 40 days? A few lines of Python do it: ```python per_day = 25 days = 40 cap = 5000 fine = min(per_day * days, cap) # 1000 print(fine) ``` Interpreter output — 1000 $1,000 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0055428
<|start|><|user|> How many days are there from September 3, 2018 to September 11, 2019?<|eot|> <|assistant|> ```python from datetime import date first = date(2018, 9, 3) # datetime.date(2018, 9, 3) second = date(2019, 9, 11) # datetime.date(2019, 9, 11) print((second - first).days) ``` # printed result: 373 There ar...
chat
[ { "role": "user", "content": "How many days are there from September 3, 2018 to September 11, 2019?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2018, 9, 3) # datetime.date(2018, 9, 3)\nsecond = date(2019, 9, 11) # datetime.date(2019, 9, 11)\nprint(...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "373", "printed": "373", "notation": null}
nlprog_det-setting-0055429
A 5 × 13 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up? Let's compute it with Python. ```python import math length = 5 width = 13 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 17 print(tiles) ``` Shell output — 17 It takes 17 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0055430
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "interpreter", "description": "Executes Python code and r...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"in...
nlprog_det
setting
original
null
deterministic
[]
[]
382
{"gold": "49.40", "printed": "49.40", "notation": null}
nlprog_det-setting-0055431
<|start|><|user|> How many minutes pass from 8:15 AM to 9:32 AM on the same day?<|eot|> <|assistant|> ```python start = 8 * 60 + 15 end = 9 * 60 + 32 print(end - start) ``` (stdout: 77) 77 minutes pass.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many minutes pass from 8:15 AM to 9:32 AM on the same day?" }, { "role": "assistant", "content": "```python\nstart = 8 * 60 + 15\nend = 9 * 60 + 32\nprint(end - start)\n```\n(stdout: 77)\n\n77 minutes pass." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0055432
Revenue is $37,000 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)? The program: ```python revenue = 37000 costs = 36000 profit = revenue - costs # 1000 margin = profit / revenue * 100 # 2.7027027027027026 print(round(margin, 1)) ``` Printed: 2.7 Profit is 2.7% of revenue.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "2.7", "printed": "2.7", "notation": null}
nlprog_det-setting-0055433
The paralegal logged 2.5 hours at a rate of $150. How much is billed? The bill is $375.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "375.00", "printed": "375.00", "notation": null}
nlprog_det-setting-0055434
Someone works 38 hours at $28.10 per hour. What are the earnings? A Python solution: ```python rate = 28.1 hours = 38 earnings = rate * hours # 1067.8 print(f"{earnings:.2f}") ``` Execution result — 1067.80 That earns $1,067.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "1067.80", "printed": "1067.80", "notation": null}
nlprog_det-setting-0055435
<|start|><|user|> Nadia and Olga share $416 in the ratio 1:3. How much does Nadia get?<|eot|> <|assistant|> ```python total = 416 parts_a = 1 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 104 print(share_a) ``` Run it and it prints: 104 Nadia gets $104.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Nadia and Olga share $416 in the ratio 1:3. How much does Nadia get?" }, { "role": "assistant", "content": "```python\ntotal = 416\nparts_a = 1\nparts_b = 3\nshare_a = total * parts_a // (parts_a + parts_b) # 104\nprint(share_a)\n```\nRun it and it prints: 104\n\nN...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "104", "printed": "104", "notation": null}
nlprog_det-setting-0055436
A claim accrued on July 8, 2020. The limitations period is 2 years. On what date does it expire? It runs out on July 8, 2022.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "2022-07-08", "printed": "2022-07-08", "notation": null}
nlprog_det-setting-0055437
An office budget of $12,000 has expenses of $3,390, $482, $1,426, $1,724. How much of the budget is left? Here's the code. ```python budget = 12000 expenses = [3390, 482, 1426, 1724] left = budget - sum(expenses) # 4978 print(left) ``` The script prints 4978, as expected. $4,978 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "4978", "printed": "4978", "notation": null}
nlprog_det-setting-0055438
One can of paint covers 250 square feet. How many cans are needed for 947 square feet of wall? In code: ```python import math area = 947 coverage = 250 cans = math.ceil(area / coverage) # 4 print(cans) ``` Run it and it prints: 4 4 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0055439
Shipping costs $12 plus $2.50 per pound. What does a 17-pound parcel cost to ship? Python: ```python base = 12 per_pound = 2.5 weight = 17 cost = base + per_pound * weight # 54.5 print(f"{cost:.2f}") ``` When run, it prints 54.50. The charge is $54.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "54.50", "printed": "54.50", "notation": null}
nlprog_det-setting-0055440
A storeroom has 1835 file boxes. The office uses 19 a day. How many are left after 5 days? A short script: ```python stock = 1835 per_day = 19 days = 5 left = stock - per_day * days # 1740 print(left) ``` (Out: 1740) 1740 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "1740", "printed": "1740", "notation": null}
nlprog_det-setting-0055441
<|start|><|user|> After a 25% fee is taken from a $72,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|> <|assistant|> Each share is $13,500.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "After a 25% fee is taken from a $72,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?" }, { "role": "assistant", "content": "Each share is $13,500.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
49
{"gold": "13500.00", "printed": "13500.00", "notation": null}
nlprog_det-setting-0055442
Fixed costs are $2,500. Each unit sells for $30 and costs $24 to make. How many units must be sold to break even? Computing it: import math fixed = 2500 price = 30 variable = 24 units = math.ceil(fixed / (price - variable)) # 417 print(units) The program prints 417. 417 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "417", "printed": "417", "notation": null}
nlprog_det-setting-0055443
<|start|><|system|> Tool definitions: [{"name": "sandbox_python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> With 17 rows of 11 cha...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"sandbox_python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\":...
nlprog_det
setting
original
null
deterministic
[]
[]
221
{"gold": "163", "printed": "163", "notation": null}
nlprog_det-setting-0055444
<|start|><|user|> Divide 111 items among 6 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|> <|assistant|> ```python total = 111 groups = 6 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` It prints: 18 each, 3 left over Th...
chat
[ { "role": "user", "content": "Divide 111 items among 6 groups as evenly as possible with equal groups. How many per group, and how many remain?" }, { "role": "assistant", "content": "```python\ntotal = 111\ngroups = 6\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {rem...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "18 each, 3 left over", "printed": "18 each, 3 left over", "notation": null}
nlprog_det-setting-0055445
A 2% increase is applied to $1,250 monthly rent. What is the new amount? Python: ```python rent = 1250 increase = 2 / 100 # 0.02 new_rent = rent * (1 + increase) # 1275.0 print(f"{new_rent:.2f}") ``` Running it prints: 1275.00 The new rent is $1,275.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "1275.00", "printed": "1275.00", "notation": null}
nlprog_det-setting-0055446
A meal costs $93.34. How much is a 10% tip? Set it up in Python: bill = 93.34 tip_rate = 10 / 100 # 0.1 tip = bill * tip_rate # 9.334000000000001 print(f"{tip:.2f}") Console output: 9.33 The tip is $9.33.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "9.33", "printed": "9.33", "notation": null}
nlprog_det-setting-0055447
A $2,500 security deposit has deductions of $45 and $150. How much is refunded? The Python version: ```python deposit = 2500 deductions = [45, 150] refund = deposit - sum(deductions) # 2305 print(refund) ``` # stdout: 2305 The refund is $2,305.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "2305", "printed": "2305", "notation": null}
nlprog_det-setting-0055448
<|start|><|user|> From a $2,500 retainer, 5 hours at $150/hour have been drawn. What remains?<|eot|> <|assistant|> ```python retainer = 2500 hours = 5 rate = 150 left = retainer - hours * rate # 1750 print(left) ``` Running this gives 1750. $1,750 of the retainer is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From a $2,500 retainer, 5 hours at $150/hour have been drawn. What remains?" }, { "role": "assistant", "content": "```python\nretainer = 2500\nhours = 5\nrate = 150\nleft = retainer - hours * rate # 1750\nprint(left)\n```\nRunning this gives 1750.\n\n$1,750 of the ...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "1750", "printed": "1750", "notation": null}
nlprog_det-setting-0055449
<|start|><|system|> Tool definitions: [{"name": "py_exec", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "lookup_statute", "description": "Look u...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"py_exec\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program\...
nlprog_det
setting
original
null
deterministic
[]
[]
388
{"gold": "76", "printed": "76", "notation": null}
nlprog_det-setting-0055450
<|start|><|user|> What is the total rent on a 18-month lease at $2,100 a month?<|eot|> <|assistant|> ```python monthly_rent = 2100 months = 18 total = monthly_rent * months # 37800 print(total) ``` Running it prints: 37800 In total, $37,800 is paid.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is the total rent on a 18-month lease at $2,100 a month?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 2100\nmonths = 18\ntotal = monthly_rent * months # 37800\nprint(total)\n```\nRunning it prints: 37800\n\nIn total, $37,800 is paid." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "37800", "printed": "37800", "notation": null}
nlprog_det-setting-0055451
A claim accrued on June 24, 2019. The limitations period is 2 years. On what date does it expire? In Python: ```python from datetime import date accrued = date(2019, 6, 24) # datetime.date(2019, 6, 24) years = 2 expires = accrued.replace(year=accrued.year + years) # datetime.date(2021, 6, 24) print(expires.isoformat...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "2021-06-24", "printed": "2021-06-24", "notation": null}
nlprog_det-setting-0055452
<|start|><|user|> A filing cabinet costs $40. It is 30% off. What is the sale price?<|eot|> <|assistant|> It costs $28.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A filing cabinet costs $40. It is 30% off. What is the sale price?" }, { "role": "assistant", "content": "It costs $28.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "28.00", "printed": "28.00", "notation": null}
nlprog_det-setting-0055453
A $120 dinner bill gets a 15% tip, and 6 people share the cost equally. What is each person's share? Here is a short program for it. ```python bill = 120 tip_rate = 15 / 100 # 0.15 people = 6 each = bill * (1 + tip_rate) / people # 23.0 print(f"{each:.2f}") ``` Out: 23.00 The share is $23.00 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "23.00", "printed": "23.00", "notation": null}
nlprog_det-setting-0055454
On which weekday does April 16, 2030 fall? Coded up: ```python from datetime import date hearing = date(2030, 4, 16) # datetime.date(2030, 4, 16) print(hearing.strftime("%A")) ``` The program outputs: Tuesday It is a Tuesday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "Tuesday", "printed": "Tuesday", "notation": null}
nlprog_det-setting-0055455
<|start|><|user|> A client paid a $7,500 retainer. The firm has billed 9 hours at $150 per hour. How much of the retainer is left?<|eot|> <|assistant|> ```python retainer = 7500 hours = 9 rate = 150 left = retainer - hours * rate # 6150 print(left) ``` Run it and it prints: 6150 The remaining balance is $6,150.<|eot|...
chat
[ { "role": "user", "content": "A client paid a $7,500 retainer. The firm has billed 9 hours at $150 per hour. How much of the retainer is left?" }, { "role": "assistant", "content": "```python\nretainer = 7500\nhours = 9\nrate = 150\nleft = retainer - hours * rate # 6150\nprint(left)\n```\nRun i...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "6150", "printed": "6150", "notation": null}
nlprog_det-setting-0055456
Water costs $12 a month plus $4.75 for each 1,000 gallons over 0,000. What is owed for 5,000 gallons? A few lines of Python do it: ```python base = 12 rate = 4.75 used = 5 free = 0 bill = base + rate * max(0, used - free) # 35.75 print(f"{bill:.2f}") ``` The printout reads 35.75. The bill is $35.75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "35.75", "printed": "35.75", "notation": null}
nlprog_det-setting-0055457
<|start|><|user|> Goods bought on July 7, 2018 carry a 24-month warranty. When does it expire?<|eot|> <|assistant|> ```python from datetime import date start = date(2018, 7, 7) months = 24 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, 2018 carry a 24-month warranty. When does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2018, 7, 7)\nmonths = 24\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(sta...
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "2020-07-07", "printed": "2020-07-07", "notation": null}
nlprog_det-setting-0055458
What commission does Malik make on $90,664 in sales at 3%? We write it as a program: ```python sales = 90664 rate = 3 / 100 commission = sales * rate print(f"{commission:.2f}") ``` Execution prints 2719.92. Malik earns $2,719.92.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "2719.92", "printed": "2719.92", "notation": null}
nlprog_det-setting-0055459
<|start|><|user|> Monthly rent is $1,800. A tenant moves in with 12 days left in a 30-day month. What is the prorated rent?<|eot|> <|assistant|> rent = 1800 days_in_month = 30 days_occupied = 12 prorated = rent * days_occupied / days_in_month # 720.0 print(f"{prorated:.2f}") stdout — 720.00 The te...
chat
[ { "role": "user", "content": "Monthly rent is $1,800. A tenant moves in with 12 days left in a 30-day month. What is the prorated rent?" }, { "role": "assistant", "content": " rent = 1800\n days_in_month = 30\n days_occupied = 12\n prorated = rent * days_occupied / days_in_month # 7...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "720.00", "printed": "720.00", "notation": null}
nlprog_det-setting-0055461
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "sandbox_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|u...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"sandbox_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python sou...
nlprog_det
setting
original
null
deterministic
[]
[]
273
{"gold": "216.00", "printed": "216.00", "notation": null}
nlprog_det-setting-0055462
An unpaid balance of $7,500 accrues 1.5% simple interest per month. How much interest accrues in 3 months? ```python balance = 7500 monthly_rate = 1.5 / 100 # 0.015 months = 3 interest = balance * monthly_rate * months # 337.5 print(f"{interest:.2f}") ``` (Out: 337.50) The interest is $337.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "337.50", "printed": "337.50", "notation": null}
nlprog_det-setting-0055463
One can of paint covers 250 square feet. How many cans are needed for 603 square feet of wall? Python: ```python import math area = 603 coverage = 250 cans = math.ceil(area / coverage) # 3 print(cans) ``` (Console output: 3) 3 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0055464
If a 6-year limitations period starts on July 26, 2016, when does it end? The program: ```python from datetime import date accrued = date(2016, 7, 26) # datetime.date(2016, 7, 26) years = 6 expires = accrued.replace(year=accrued.year + years) # datetime.date(2022, 7, 26) print(expires.isoformat()) ``` stdout: 2022-0...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "2022-07-26", "printed": "2022-07-26", "notation": null}
nlprog_det-setting-0055465
12 boxes hold 6 tape rolls each. After 17 are handed out, how many are left? 55 tape rolls are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "55", "printed": "55", "notation": null}
nlprog_det-setting-0055466
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> Starting with 1566 hard drives and using 23 per day, how many remain after 18 days?<|eot|> <|assistant|> 1152 hard drives are left.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "Starting with 1566 hard drives and using 23 per day, how many remain after 18 days?" }, { "role": "assistant", "content": "1152 hard drives are left." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
53
{"gold": "1152", "printed": "1152", "notation": null}
nlprog_det-setting-0055467
Copies cost $5 plus $0.25 for each page beyond 10. How much for 13 pages? A short script: ```python pages = 13 base = 5 per_page = 0.25 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 5.75 print(f"{cost:.2f}") ``` Output = 5.75 The copy costs $5.75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "5.75", "printed": "5.75", "notation": null}
nlprog_det-setting-0055468
Equipment costs $18,000, has a salvage value of $2,000, and a useful life of 5 years. What is the straight-line depreciation per year? ```python cost = 18000 salvage = 2000 years = 5 per_year = (cost - salvage) / years # 3200.0 print(f"{per_year:.2f}") ``` Printed — 3200.00 $3,200.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "3200.00", "printed": "3200.00", "notation": null}
nlprog_det-setting-0055469
A clerk's office charges $50 for each filing. Sara submits 15 filings. What is the total fee? A few lines of Python do it: ```python fee = 50 filings = 15 total = fee * filings # 750 print(total) ``` Execution prints: 750 The total fee is $750.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0055470
A penalty of $50 a day accrues, capped at $2,500. What is owed after 12 days? $600 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0055471
<|start|><|user|> Carmen lends $8,000 at 4% simple interest per year for 4 years. How much interest is earned?<|eot|> <|assistant|> ```python principal = 8000 rate = 4 / 100 # 0.04 years = 4 interest = principal * rate * years # 1280.0 print(f"{interest:.2f}") ``` Shell output — 1280.00 It earns $1,280.00.<|eot|> <|...
chat
[ { "role": "user", "content": "Carmen lends $8,000 at 4% simple interest per year for 4 years. How much interest is earned?" }, { "role": "assistant", "content": "```python\nprincipal = 8000\nrate = 4 / 100 # 0.04\nyears = 4\ninterest = principal * rate * years # 1280.0\nprint(f\"{interest:.2f}...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "1280.00", "printed": "1280.00", "notation": null}
nlprog_det-setting-0055472
From 2005 to 2033, how many years is that? Programmatically: ```python start_year = 2005 end_year = 2033 print(end_year - start_year) ``` Program output — 28 28 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
66
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0055474
8 boxes hold 10 ink cartridges each. After 18 are handed out, how many are left? ```python boxes = 8 per_box = 10 given_away = 18 left = boxes * per_box - given_away # 62 print(left) ``` The program prints 62. That leaves 62 ink cartridges.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "62", "printed": "62", "notation": null}
nlprog_det-setting-0055475
How many of 111 votes make 67% (round up)? One way, in code: ```python import math voters = 111 needed = math.ceil(voters * 67 / 100) # 75 print(needed) ``` Running this gives 75. At least 75 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "75", "printed": "75", "notation": null}
nlprog_det-setting-0055476
Convert 0 °C to Fahrenheit. Python: ```python celsius = 0 fahrenheit = celsius * 9 / 5 + 32 # 32.0 print(round(fahrenheit)) ``` When run, it prints 32. It equals 32 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0055478
<|start|><|user|> A shift starts at 9:20 AM and lasts 135 minutes. When does it end?<|eot|> <|assistant|> ```python start = 9 * 60 + 20 end = start + 135 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` The program outputs 11:35 AM. It ends at 11:35 AM.<|eot...
chat
[ { "role": "user", "content": "A shift starts at 9:20 AM and lasts 135 minutes. When does it end?" }, { "role": "assistant", "content": "```python\nstart = 9 * 60 + 20\nend = start + 135\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}\")\...
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "11:35 AM", "printed": "11:35 AM", "notation": null}
nlprog_det-setting-0055479
On which weekday does November 4, 1993 fall? Computing it: ```python from datetime import date hearing = date(1993, 11, 4) # datetime.date(1993, 11, 4) print(hearing.strftime("%A")) ``` Printed: Thursday It is a Thursday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "Thursday", "printed": "Thursday", "notation": null}
nlprog_det-setting-0055480
Starting with 862 toner kits and using 19 per day, how many remain after 10 days? Python code: ```python stock = 862 per_day = 19 days = 10 left = stock - per_day * days # 672 print(left) ``` Console: 672 672 toner kits are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "672", "printed": "672", "notation": null}
nlprog_det-setting-0055481
79 of 100 members attended. What percent attended? ```python present = 79 total = 100 percent = present / total * 100 # 79.0 print(round(percent, 1)) ``` It prints 79.0. 79.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "79.0", "printed": "79.0", "notation": null}
nlprog_det-setting-0055482
2 clients win $60,000. The lawyer takes 30%, and the rest is split equally. How much does each client get? Python version: ```python award = 60000 fee = award * 30 / 100 # 18000.0 remaining = award - fee # 42000.0 per_client = remaining / 2 # 21000.0 print(f"{per_client:.2f}") ``` Executed, it shows: 21000.00 Each...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "21000.00", "printed": "21000.00", "notation": null}
nlprog_det-setting-0055483
<|start|><|user|> A customer buys 2 ink cartridges at $17 each, 1 pens at $29 each, 3 lanyards at $21 each and pays with $150. How much change is due?<|eot|> <|assistant|> The change is $24.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A customer buys 2 ink cartridges at $17 each, 1 pens at $29 each, 3 lanyards at $21 each and pays with $150. How much change is due?" }, { "role": "assistant", "content": "The change is $24." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
59
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0055484
At an exchange rate of 1.12 USD per CHF, how many USD is 5,015 CHF? As a program: ```python amount = 5015 rate = 1.12 converted = amount * rate # 5616.8 print(f"{converted:.2f}") ``` Execution result — 5616.80 That is 5,616.80 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "5616.80", "printed": "5616.80", "notation": null}
nlprog_det-setting-0055485
<|start|><|system|> You check calculations for an accounting team.<|eot|> <|user|> At a 4% tax rate, what is the tax on $296.62?<|eot|> <|assistant|> ```python price = 296.62 tax_rate = 4 / 100 tax = price * tax_rate print(f"{tax:.2f}") ``` Console output — 11.86 $11.86 in tax.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You check calculations for an accounting team." }, { "role": "user", "content": "At a 4% tax rate, what is the tax on $296.62?" }, { "role": "assistant", "content": "```python\nprice = 296.62\ntax_rate = 4 / 100\ntax = price * tax_rate\nprint(f\"{tax:....
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "11.86", "printed": "11.86", "notation": null}
nlprog_det-setting-0055486
What day of the week is April 24, 2000? Let the code do the arithmetic: ```python from datetime import date hearing = date(2000, 4, 24) # datetime.date(2000, 4, 24) print(hearing.strftime("%A")) ``` The program outputs: Monday April 24, 2000 is a Monday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "Monday", "printed": "Monday", "notation": null}
nlprog_det-setting-0055487
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> What average speed covers 280 miles in 2 hours?<|eot|> <|assistant|> ```python distance = 280 hours = 2 speed = distance / hours # 140.0 print(round(speed)) ``` # stdout: 140 The average speed is 140 mph.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "What average speed covers 280 miles in 2 hours?" }, { "role": "assistant", "content": "```python\ndistance = 280\nhours = 2\nspeed = distance / hours # 140.0\nprint(round(speed))\n```\n# s...
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "140", "printed": "140", "notation": null}
nlprog_det-setting-0055488
<|start|><|system|> You are a logic tutor.<|eot|> <|user|> Which is cheaper per unit: 6 for $3.37 (A) or 18 for $14.56 (B)?<|eot|> <|assistant|> ```python pack_a = 3.37 / 6 pack_b = 14.56 / 18 cheaper = "A" if pack_a < pack_b else "B" print(cheaper) ``` The code prints: A A has the lower unit price.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a logic tutor." }, { "role": "user", "content": "Which is cheaper per unit: 6 for $3.37 (A) or 18 for $14.56 (B)?" }, { "role": "assistant", "content": "```python\npack_a = 3.37 / 6\npack_b = 14.56 / 18\ncheaper = \"A\" if pack_a < pack_b else ...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0055489
$2,000 is invested at 4% compounded yearly. What is it worth after 3 years? Coded up: principal = 2000 rate = 4 / 100 # 0.04 years = 3 value = principal * (1 + rate) ** years # 2249.728 print(f"{value:.2f}") The run gives: 2249.73 It is worth $2,249.73.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "2249.73", "printed": "2249.73", "notation": null}
nlprog_det-setting-0055490
6 friends split a $120 bill plus a 20% tip evenly. How much does each pay? The share is $24.00 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "24.00", "printed": "24.00", "notation": null}
nlprog_det-setting-0055491
<|start|><|user|> How many of 257 votes make 60% (round up)?<|eot|> <|assistant|> ```python import math voters = 257 needed = math.ceil(voters * 60 / 100) # 155 print(needed) ``` It prints 155, as expected. At least 155 votes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 257 votes make 60% (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 257\nneeded = math.ceil(voters * 60 / 100) # 155\nprint(needed)\n```\nIt prints 155, as expected.\n\nAt least 155 votes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "155", "printed": "155", "notation": null}
nlprog_det-setting-0055492
Counting only Monday through Friday, how many business days are there after January 3, 2021 through February 6, 2021? Computation in Python: ```python from datetime import date, timedelta start = date(2021, 1, 3) end = date(2021, 2, 6) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
161
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0055493
Sales went from 1,000 to 1,500. What is the percent change? Python makes this quick: ```python old = 1000 new = 1500 change = (new - old) / old * 100 # 50.0 print(round(change)) ``` Out = 50 The change is 50%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0055494
22 staplers cost $9 apiece. With 7% tax added, what is the total? Python makes this quick: quantity = 22 unit_price = 9 subtotal = quantity * unit_price # 198 total = subtotal * (1 + 7 / 100) # 211.86 print(f"{total:.2f}") Python prints 211.86, as expected. The total with tax is $211.86.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "211.86", "printed": "211.86", "notation": null}