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-0049365
What does $10,000 grow to in 3 years at 2% annual compounding? ```python principal = 10000 rate = 2 / 100 # 0.02 years = 3 value = principal * (1 + rate) ** years # 10612.080000000002 print(f"{value:.2f}") ``` Running it prints: 10612.08 The balance is $10,612.08.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "10612.08", "printed": "10612.08", "notation": null}
nlprog_det-setting-0049367
Equal monthly payments repay $9,000 plus 5% simple yearly interest over 36 months. How large is a payment? The program: ```python principal = 9000 annual_rate = 5 / 100 # 0.05 months = 36 interest = principal * annual_rate * months / 12 # 1350.0 payment = (principal + interest) / months # 287.5 print(f"{payment:.2f...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "287.50", "printed": "287.50", "notation": null}
nlprog_det-setting-0049368
<|start|><|user|> How many whole days and leftover hours are in 82 hours?<|eot|> <|assistant|> hours = 82 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") Run it and it prints 3 days and 10 hours. That is 3 days and 10 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many whole days and leftover hours are in 82 hours?" }, { "role": "assistant", "content": " hours = 82\n days, rest = divmod(hours, 24)\n print(f\"{days} days and {rest} hours\")\nRun it and it prints 3 days and 10 hours.\n\nThat is 3 days and 10 hours....
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "3 days and 10 hours", "printed": "3 days and 10 hours", "notation": null}
nlprog_det-setting-0049369
Starting with 1103 rulers and using 11 per day, how many remain after 13 days? Script: ```python stock = 1103 per_day = 11 days = 13 left = stock - per_day * days # 960 print(left) ``` The program outputs: 960 960 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "960", "printed": "960", "notation": null}
nlprog_det-setting-0049370
A 12-month warranty starts on July 24, 2021. On what date does it end? ```python from datetime import date start = date(2021, 7, 24) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Execution result — 2022-07-24 ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "2022-07-24", "printed": "2022-07-24", "notation": null}
nlprog_det-setting-0049371
<|start|><|user|> Counting the first and last day, how many days are there from June 14, 2021 through July 4, 2021?<|eot|> <|assistant|> ```python from datetime import date first = date(2021, 6, 14) # datetime.date(2021, 6, 14) last = date(2021, 7, 4) # datetime.date(2021, 7, 4) days = (last - first).days + 1 # 21 p...
chat
[ { "role": "user", "content": "Counting the first and last day, how many days are there from June 14, 2021 through July 4, 2021?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2021, 6, 14) # datetime.date(2021, 6, 14)\nlast = date(2021, 7, 4) # datetim...
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0049372
A 14 lb package ships at $12 base plus $1.50/lb. What is the charge? In Python: ```python base = 12 per_pound = 1.5 weight = 14 cost = base + per_pound * weight # 33.0 print(f"{cost:.2f}") ``` Running it prints: 33.00 Shipping costs $33.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "33.00", "printed": "33.00", "notation": null}
nlprog_det-setting-0049373
<|start|><|user|> What is the total rent on a 6-month lease at $975 a month?<|eot|> <|assistant|> ```python monthly_rent = 975 months = 6 total = monthly_rent * months # 5850 print(total) ``` Interpreter output — 5850 The rent over the term is $5,850.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is the total rent on a 6-month lease at $975 a month?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 975\nmonths = 6\ntotal = monthly_rent * months # 5850\nprint(total)\n```\nInterpreter output — 5850\n\nThe rent over the term is $5,850." }...
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "5850", "printed": "5850", "notation": null}
nlprog_det-setting-0049374
A court charges $5 per request plus $0.25 per page after the first 20 pages. What does a 69-page copy cost? A Python solution: ```python pages = 69 base = 5 per_page = 0.25 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 17.25 print(f"{cost:.2f}") ``` The code prints 17.25. The copy costs $17.2...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "17.25", "printed": "17.25", "notation": null}
nlprog_det-setting-0049375
A meal costs $58.51. How much is a 25% tip? ```python bill = 58.51 tip_rate = 25 / 100 # 0.25 tip = bill * tip_rate # 14.6275 print(f"{tip:.2f}") ``` Printed = 14.63 The tip is $14.63.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "14.63", "printed": "14.63", "notation": null}
nlprog_det-setting-0049376
An office budget of $20,000 has expenses of $2,101, $3,748. How much of the budget is left? The program: ```python budget = 20000 expenses = [2101, 3748] left = budget - sum(expenses) # 14151 print(left) ``` Executing it gives 14151, as expected. $14,151 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "14151", "printed": "14151", "notation": null}
nlprog_det-setting-0049377
From a $2,500 retainer, 8 hours at $150/hour have been drawn. What remains? Here is the program. ```python retainer = 2500 hours = 8 rate = 150 left = retainer - hours * rate # 1300 print(left) ``` # printed result: 1300 The remaining balance is $1,300.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "1300", "printed": "1300", "notation": null}
nlprog_det-setting-0049378
An unpaid balance of $12,000 accrues 1.5% simple interest per month. How much interest accrues in 6 months? Python: balance = 12000 monthly_rate = 1.5 / 100 months = 6 interest = balance * monthly_rate * months print(f"{interest:.2f}") Execution prints 1080.00. $1,080.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "1080.00", "printed": "1080.00", "notation": null}
nlprog_det-setting-0049379
<|start|><|user|> Monthly: $9. Annual: $84. What is saved per year by paying annually?<|eot|> <|assistant|> monthly = 9 yearly = 84 savings = monthly * 12 - yearly # 24 print(savings) What it prints — 24 $24 is saved.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Monthly: $9. Annual: $84. What is saved per year by paying annually?" }, { "role": "assistant", "content": " monthly = 9\n yearly = 84\n savings = monthly * 12 - yearly # 24\n print(savings)\nWhat it prints — 24\n\n$24 is saved." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0049380
Convert -15 °C to Fahrenheit. Translated to Python: ```python celsius = -15 fahrenheit = celsius * 9 / 5 + 32 print(round(fahrenheit)) ``` stdout — 5 That is 5 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0049381
Copies cost $5 plus $0.10 for each page beyond 20. How much for 80 pages? The computation: pages = 80 base = 5 per_page = 0.1 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 11.0 print(f"{cost:.2f}") (stdout: 11.00) The total is $11.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "11.00", "printed": "11.00", "notation": null}
nlprog_det-setting-0049382
A lawyer's fee is 40% of a $40,000 recovery. How large is the fee? Program: ```python recovery = 40000 rate = 40 / 100 # 0.4 fee = recovery * rate # 16000.0 print(f"{fee:.2f}") ``` The program prints: 16000.00 The fee is $16,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "16000.00", "printed": "16000.00", "notation": null}
nlprog_det-setting-0049383
Count the days between February 27, 2023 and June 22, 2023. We write it as a program: ```python from datetime import date first = date(2023, 2, 27) # datetime.date(2023, 2, 27) second = date(2023, 6, 22) # datetime.date(2023, 6, 22) print((second - first).days) ``` Run it and it prints 115. There are 115 days betwe...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "115", "printed": "115", "notation": null}
nlprog_det-setting-0049384
4 hours of work at $410 an hour: what is the total charge? A short script: ```python hours = 4 rate = 410 bill = hours * rate # 1640 print(f"{bill:.2f}") ``` # printed: 1640.00 That comes to $1,640.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "1640.00", "printed": "1640.00", "notation": null}
nlprog_det-setting-0049385
After a 40% fee is taken from a $48,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share? Set it up in Python: ```python award = 48000 fee = award * 40 / 100 # 19200.0 remaining = award - fee # 28800.0 per_client = remaining / 4 # 7200.0 print(f"{per_client:.2f}") ``` On running, i...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "7200.00", "printed": "7200.00", "notation": null}
nlprog_det-setting-0049386
<|start|><|user|> What percentage of $8,000 is $6,000?<|eot|> <|assistant|> budget = 8000 spent = 6000 percent = spent / budget * 100 # 75.0 print(round(percent, 1)) Printed: 75.0 75.0% has been spent.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What percentage of $8,000 is $6,000?" }, { "role": "assistant", "content": " budget = 8000\n spent = 6000\n percent = spent / budget * 100 # 75.0\n print(round(percent, 1))\nPrinted: 75.0\n\n75.0% has been spent." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
71
{"gold": "75.0", "printed": "75.0", "notation": null}
nlprog_det-setting-0049387
Maren drove 249 miles for work. Mileage is reimbursed at 62 cents a mile. How much is the reimbursement? Written as code: miles = 249 rate = 0.62 reimbursement = miles * rate # 154.38 print(f"{reimbursement:.2f}") The run gives 154.38, as expected. The reimbursement is $154.38.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "154.38", "printed": "154.38", "notation": null}
nlprog_det-setting-0049388
One can of paint covers 350 square feet. How many cans are needed for 1307 square feet of wall? ```python import math area = 1307 coverage = 350 cans = math.ceil(area / coverage) # 4 print(cans) ``` Printed = 4 Buy 4 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0049389
<|start|><|system|> You may call the tools below. {"name": "sandbox_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}} {"name": "lookup_statute", "description": "...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"sandbox_python\", \"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
[]
[]
325
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0049390
<|start|><|user|> How many minutes pass from 9:36 AM to 4:23 PM on the same day?<|eot|> <|assistant|> ```python start = 9 * 60 + 36 # 576 end = 16 * 60 + 23 # 983 print(end - start) ``` It prints 407, as expected. 407 minutes pass.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many minutes pass from 9:36 AM to 4:23 PM on the same day?" }, { "role": "assistant", "content": "```python\nstart = 9 * 60 + 36 # 576\nend = 16 * 60 + 23 # 983\nprint(end - start)\n```\nIt prints 407, as expected.\n\n407 minutes pass." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "407", "printed": "407", "notation": null}
nlprog_det-setting-0049391
How many meters are in 17.5 kilometers? Python does the arithmetic: ```python km = 17.5 meters = km * 1000 # 17500.0 print(round(meters)) ``` It outputs: 17500 17,500 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "17500", "printed": "17500", "notation": null}
nlprog_det-setting-0049392
Farah was born on May 17, 1993. How old is Farah on March 20, 2027? Farah is 33.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "33", "printed": "33", "notation": null}
nlprog_det-setting-0049393
<|start|><|user|> 6 friends split a $96 bill plus a 18% tip evenly. How much does each pay?<|eot|> <|assistant|> The share is $18.88 each.<|eot|> <|end|>
chat
[ { "role": "user", "content": "6 friends split a $96 bill plus a 18% tip evenly. How much does each pay?" }, { "role": "assistant", "content": "The share is $18.88 each." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "18.88", "printed": "18.88", "notation": null}
nlprog_det-setting-0049394
Count 120 days forward from September 8, 2025. What date is that? Program: ```python from datetime import date, timedelta start = date(2025, 9, 8) end = start + timedelta(days=120) print(end.isoformat()) ``` The printout reads: 2026-01-06 It ends on January 6, 2026.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "2026-01-06", "printed": "2026-01-06", "notation": null}
nlprog_det-setting-0049395
An office budget of $8,000 has expenses of $2,473, $2,048, $3,648. How much of the budget is left? As a program: ```python budget = 8000 expenses = [2473, 2048, 3648] left = budget - sum(expenses) # -169 print(left) ``` Printed = -169 -$169 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "-169", "printed": "-169", "notation": null}
nlprog_det-setting-0049396
With 23 rows of 17 chairs and 20 empty chairs, how many chairs are taken? ```python rows = 23 per_row = 17 empty = 20 seated = rows * per_row - empty print(seated) ``` Output: 371 371 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "371", "printed": "371", "notation": null}
nlprog_det-setting-0049397
With $4,000 in costs and $9,000 in revenue, what percent of revenue is profit? Round to one decimal. A short script: ```python revenue = 9000 costs = 4000 profit = revenue - costs margin = profit / revenue * 100 print(round(margin, 1)) ``` # output: 55.6 Profit is 55.6% of revenue.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "55.6", "printed": "55.6", "notation": null}
nlprog_det-setting-0049398
How many of 67 votes make 67% (round up)? Written as code: ```python import math voters = 67 needed = math.ceil(voters * 67 / 100) # 45 print(needed) ``` Run result — 45 At least 45 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "45", "printed": "45", "notation": null}
nlprog_det-setting-0049399
<|start|><|user|> Copies cost $15 plus $0.25 for each page beyond 0. How much for 101 pages?<|eot|> <|assistant|> ```python pages = 101 base = 15 per_page = 0.25 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 40.25 print(f"{cost:.2f}") ``` Run output: 40.25 The total is $40.25.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Copies cost $15 plus $0.25 for each page beyond 0. How much for 101 pages?" }, { "role": "assistant", "content": "```python\npages = 101\nbase = 15\nper_page = 0.25\nfree_pages = 0\ncost = base + max(0, pages - free_pages) * per_page # 40.25\nprint(f\"{cost:.2f}\")...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "40.25", "printed": "40.25", "notation": null}
nlprog_det-setting-0049401
<|start|><|system|> Avoid unnecessary detail.<|eot|> <|user|> A 6% increase is applied to $1,500 monthly rent. What is the new amount?<|eot|> <|assistant|> ```python rent = 1500 increase = 6 / 100 # 0.06 new_rent = rent * (1 + increase) # 1590.0 print(f"{new_rent:.2f}") ``` Execution prints 1590.00, as expected. It ...
chat
[ { "role": "system", "content": "Avoid unnecessary detail." }, { "role": "user", "content": "A 6% increase is applied to $1,500 monthly rent. What is the new amount?" }, { "role": "assistant", "content": "```python\nrent = 1500\nincrease = 6 / 100 # 0.06\nnew_rent = rent * (1 + incre...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "1590.00", "printed": "1590.00", "notation": null}
nlprog_det-setting-0049402
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> A garage charges $5 an hour, never more than $18 a day. How much for 6 hours?<|eot|> <|assistant|> ```python rate = 5 hours = 6 daily_max = 18 cost = min(rate * hours, daily_max) # 18 print(cost) ``` Executing it gives 18. The charge is $18....
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "A garage charges $5 an hour, never more than $18 a day. How much for 6 hours?" }, { "role": "assistant", "content": "```python\nrate = 5\nhours = 6\ndaily_max = 18\ncost = min(r...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0049404
<|start|><|user|> Rent of $900 goes up 5%. What is the new rent?<|eot|> <|assistant|> It rises to $945.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rent of $900 goes up 5%. What is the new rent?" }, { "role": "assistant", "content": "It rises to $945.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "945.00", "printed": "945.00", "notation": null}
nlprog_det-setting-0049405
A court charges $10 per request plus $0.25 per page after the first 20 pages. What does a 113-page copy cost? Coded up: ```python pages = 113 base = 10 per_page = 0.25 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 33.25 print(f"{cost:.2f}") ``` The printout reads 33.25. The total is $33.25.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "33.25", "printed": "33.25", "notation": null}
nlprog_det-setting-0049406
Dara earns $22.40 an hour and time and a half for hours over 40. What is the pay for a 49-hour week? Written as code: ```python rate = 22.4 hours = 49 regular = 40 * rate # 896.0 overtime = (hours - 40) * rate * 1.5 # 302.4 pay = regular + overtime # 1198.4 print(f"{pay:.2f}") ``` Execution prints 1198.40, as expec...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "1198.40", "printed": "1198.40", "notation": null}
nlprog_det-setting-0049407
After a 30% fee is taken from a $96,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share? Each client gets $33,600.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "33600.00", "printed": "33600.00", "notation": null}
nlprog_det-setting-0049408
<|start|><|user|> The paralegal logged 12 hours at a rate of $410. How much is billed?<|eot|> <|assistant|> hours = 12 rate = 410 bill = hours * rate # 4920 print(f"{bill:.2f}") # output: 4920.00 The bill is $4,920.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The paralegal logged 12 hours at a rate of $410. How much is billed?" }, { "role": "assistant", "content": " hours = 12\n rate = 410\n bill = hours * rate # 4920\n print(f\"{bill:.2f}\")\n# output: 4920.00\n\nThe bill is $4,920.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "4920.00", "printed": "4920.00", "notation": null}
nlprog_det-setting-0049409
A shift runs from 7:12 AM to 7:58 AM. How long is it in minutes? Set it up in Python: ```python start = 7 * 60 + 12 # 432 end = 7 * 60 + 58 # 478 print(end - start) ``` The program prints 46. It is 46 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "46", "printed": "46", "notation": null}
nlprog_det-setting-0049410
<|start|><|system|> You are a study helper for students.<|eot|> <|user|> How many minutes pass from 11:38 AM to 6:02 PM on the same day?<|eot|> <|assistant|> ```python start = 11 * 60 + 38 # 698 end = 18 * 60 + 2 # 1082 print(end - start) ``` # printed: 384 It is 384 minutes long.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a study helper for students." }, { "role": "user", "content": "How many minutes pass from 11:38 AM to 6:02 PM on the same day?" }, { "role": "assistant", "content": "```python\nstart = 11 * 60 + 38 # 698\nend = 18 * 60 + 2 # 1082\nprint(end -...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "384", "printed": "384", "notation": null}
nlprog_det-setting-0049411
<|start|><|user|> A 14-day notice period begins on June 5, 2025. On what date does it end?<|eot|> <|assistant|> The period ends on June 19, 2025.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 14-day notice period begins on June 5, 2025. On what date does it end?" }, { "role": "assistant", "content": "The period ends on June 19, 2025." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "2025-06-19", "printed": "2025-06-19", "notation": null}
nlprog_det-setting-0049412
64 volunteers are split into 4 equal teams. How many are on each team, and how many are left over? Translated to Python: ```python total = 64 groups = 4 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Interpreter output: 16 each, 0 left over The answer: 16 each, 0 le...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "16 each, 0 left over", "printed": "16 each, 0 left over", "notation": null}
nlprog_det-setting-0049413
Water costs $18 a month plus $4.75 for each 1,000 gallons over 2,000. What is owed for 20,000 gallons? The bill is $103.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "103.50", "printed": "103.50", "notation": null}
nlprog_det-setting-0049414
Papers were served by mail on September 17, 2024. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date? A few lines of Python do it: ```python from datetime import date, timedelta served = date(2024, 9, 17) # datetime.date(2024, 9, 17) response_days = 28 mail_days = 3 due = ser...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
186
{"gold": "2024-10-18", "printed": "2024-10-18", "notation": null}
nlprog_det-setting-0049415
Monthly rent is $2,400. A tenant moves in with 10 days left in a 31-day month. What is the prorated rent? ```python rent = 2400 days_in_month = 31 days_occupied = 10 prorated = rent * days_occupied / days_in_month # 774.1935483870968 print(f"{prorated:.2f}") ``` Executing it gives 774.19, as expected. The prorated r...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "774.19", "printed": "774.19", "notation": null}
nlprog_det-setting-0049416
Attendance was 21 out of 25. Express it as a percent. A short script: ```python present = 21 total = 25 percent = present / total * 100 # 84.0 print(round(percent, 1)) ``` (Program output: 84.0) Attendance was 84.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "84.0", "printed": "84.0", "notation": null}
nlprog_det-setting-0049417
A 84-page report must be reviewed in 3 days. How many pages a day is that, evenly? A Python solution: ```python pages = 84 days = 3 per_day = pages // days # 28 print(per_day) ``` stdout = 28 That is 28 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0049418
Carmen lends $8,000 at 3% simple interest per year for 3 years. How much interest is earned? The interest is $720.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "720.00", "printed": "720.00", "notation": null}
nlprog_det-setting-0049419
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "py_exec", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "busi...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"py_exec\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source ...
nlprog_det
setting
original
null
deterministic
[]
[]
444
{"gold": "33600.00", "printed": "33600.00", "notation": null}
nlprog_det-setting-0049420
Revenue is $24,000 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)? Script: ```python revenue = 24000 costs = 20000 profit = revenue - costs # 4000 margin = profit / revenue * 100 # 16.666666666666664 print(round(margin, 1)) ``` # output: 16.7 The margin is 16.7%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "16.7", "printed": "16.7", "notation": null}
nlprog_det-setting-0049422
After an initial $6,000, the remainder of a $48,000 grant is paid in 6 equal parts. What is each part? As a program: ```python grant = 48000 up_front = 6000 installments = 6 each = (grant - up_front) / installments # 7000.0 print(f"{each:.2f}") ``` Python prints 7000.00, as expected. Each installment is $7,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "7000.00", "printed": "7000.00", "notation": null}
nlprog_det-setting-0049423
<|start|><|user|> A 2% increase is applied to $900 monthly rent. What is the new amount?<|eot|> <|assistant|> ```python rent = 900 increase = 2 / 100 # 0.02 new_rent = rent * (1 + increase) # 918.0 print(f"{new_rent:.2f}") ``` When run, it prints 918.00. The new rent is $918.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 2% increase is applied to $900 monthly rent. What is the new amount?" }, { "role": "assistant", "content": "```python\nrent = 900\nincrease = 2 / 100 # 0.02\nnew_rent = rent * (1 + increase) # 918.0\nprint(f\"{new_rent:.2f}\")\n```\nWhen run, it prints 918.00.\n...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "918.00", "printed": "918.00", "notation": null}
nlprog_det-setting-0049424
12 hours of work at $150 an hour: what is the total charge? A few lines of Python do it: ```python hours = 12 rate = 150 bill = hours * rate # 1800 print(f"{bill:.2f}") ``` (Output: 1800.00) That comes to $1,800.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "1800.00", "printed": "1800.00", "notation": null}
nlprog_det-setting-0049425
<|start|><|system|> You help people work with structured data.<|eot|> <|user|> How many whole days and leftover hours are in 69 hours?<|eot|> <|assistant|> hours = 69 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") Interpreter output: 2 days and 21 hours That is 2 days and 21 hours.<|...
chat
[ { "role": "system", "content": "You help people work with structured data." }, { "role": "user", "content": "How many whole days and leftover hours are in 69 hours?" }, { "role": "assistant", "content": " hours = 69\n days, rest = divmod(hours, 24)\n print(f\"{days} days and...
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "2 days and 21 hours", "printed": "2 days and 21 hours", "notation": null}
nlprog_det-setting-0049426
Water costs $12 a month plus $3.50 for each 1,000 gallons over 3,000. What is owed for 15,000 gallons? The computation: ```python base = 12 rate = 3.5 used = 15 free = 3 bill = base + rate * max(0, used - free) # 54.0 print(f"{bill:.2f}") ``` The script prints 54.00, as expected. The bill is $54.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "54.00", "printed": "54.00", "notation": null}
nlprog_det-setting-0049427
A meal costs $102.41. How much is a 25% tip? The Python version: ```python bill = 102.41 tip_rate = 25 / 100 # 0.25 tip = bill * tip_rate # 25.6025 print(f"{tip:.2f}") ``` It prints: 25.60 Leave $25.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "25.60", "printed": "25.60", "notation": null}
nlprog_det-setting-0049428
<|start|><|user|> Parking is $3 per hour with a daily maximum of $24. What do 7 hours cost?<|eot|> <|assistant|> ```python rate = 3 hours = 7 daily_max = 24 cost = min(rate * hours, daily_max) # 21 print(cost) ``` That prints: 21 Parking costs $21.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Parking is $3 per hour with a daily maximum of $24. What do 7 hours cost?" }, { "role": "assistant", "content": "```python\nrate = 3\nhours = 7\ndaily_max = 24\ncost = min(rate * hours, daily_max) # 21\nprint(cost)\n```\nThat prints: 21\n\nParking costs $21." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0049430
A customer buys 2 staplers at $22 each, 5 pens at $6 each, 3 envelopes at $26 each and pays with $200. How much change is due? Let's compute it with Python. ```python items = [(2, 22), (5, 6), (3, 26)] total = sum(q * p for q, p in items) paid = 200 change = paid - total print(change) ``` This prints 48. The change i...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0049431
Equal monthly payments repay $9,000 plus 10% simple yearly interest over 24 months. How large is a payment? Coded up: ```python principal = 9000 annual_rate = 10 / 100 # 0.1 months = 24 interest = principal * annual_rate * months / 12 # 1800.0 payment = (principal + interest) / months # 450.0 print(f"{payment:.2f}"...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "450.00", "printed": "450.00", "notation": null}
nlprog_det-setting-0049433
<|start|><|user|> A 5-day trip pays $64 a day for meals and $175 a night for lodging (4 nights). What is the total allowance?<|eot|> <|assistant|> ```python days = 5 meal_rate = 64 lodging_rate = 175 nights = days - 1 # 4 total = days * meal_rate + nights * lodging_rate # 1020 print(total) ``` The interpreter prints:...
chat
[ { "role": "user", "content": "A 5-day trip pays $64 a day for meals and $175 a night for lodging (4 nights). What is the total allowance?" }, { "role": "assistant", "content": "```python\ndays = 5\nmeal_rate = 64\nlodging_rate = 175\nnights = days - 1 # 4\ntotal = days * meal_rate + nights * lo...
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "1020", "printed": "1020", "notation": null}
nlprog_det-setting-0049434
<|start|><|system|> You are a data assistant.<|eot|> <|user|> What is -15 degrees Celsius in Fahrenheit?<|eot|> <|assistant|> ```python celsius = -15 fahrenheit = celsius * 9 / 5 + 32 print(round(fahrenheit)) ``` (Console output: 5) It equals 5 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a data assistant." }, { "role": "user", "content": "What is -15 degrees Celsius in Fahrenheit?" }, { "role": "assistant", "content": "```python\ncelsius = -15\nfahrenheit = celsius * 9 / 5 + 32\nprint(round(fahrenheit))\n```\n(Console output: 5...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0049435
<|start|><|user|> Express 277 hours in days and hours.<|eot|> <|assistant|> ```python hours = 277 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` The code prints 11 days and 13 hours. 277 hours is 11 days and 13 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Express 277 hours in days and hours." }, { "role": "assistant", "content": "```python\nhours = 277\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nThe code prints 11 days and 13 hours.\n\n277 hours is 11 days and 13 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "11 days and 13 hours", "printed": "11 days and 13 hours", "notation": null}
nlprog_det-setting-0049436
Monthly rent is $2,400. A tenant moves in with 21 days left in a 30-day month. What is the prorated rent? ```python rent = 2400 days_in_month = 30 days_occupied = 21 prorated = rent * days_occupied / days_in_month # 1680.0 print(f"{prorated:.2f}") ``` The run gives 1680.00, as expected. The prorated rent is $1,680.0...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "1680.00", "printed": "1680.00", "notation": null}
nlprog_det-setting-0049437
A 18-month warranty starts on April 4, 2025. On what date does it end? It expires on October 4, 2026.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "2026-10-04", "printed": "2026-10-04", "notation": null}
nlprog_det-setting-0049438
How many of 188 votes make 60% (round up)? In Python: import math voters = 188 needed = math.ceil(voters * 60 / 100) print(needed) The code prints: 113 At least 113 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "113", "printed": "113", "notation": null}
nlprog_det-setting-0049439
Printing costs 5 cents a page. What does it cost to print 113 copies of a 53-page handout? The job costs $299.45.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "299.45", "printed": "299.45", "notation": null}
nlprog_det-setting-0049440
<|start|><|user|> One can of paint covers 400 square feet. How many cans are needed for 845 square feet of wall?<|eot|> <|assistant|> ```python import math area = 845 coverage = 400 cans = math.ceil(area / coverage) # 3 print(cans) ``` Console output — 3 3 cans are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "One can of paint covers 400 square feet. How many cans are needed for 845 square feet of wall?" }, { "role": "assistant", "content": "```python\nimport math\narea = 845\ncoverage = 400\ncans = math.ceil(area / coverage) # 3\nprint(cans)\n```\nConsole output — 3\n\n...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0049441
Split $3,380 between Quinn and Yoko in the ratio 1 to 3. What is Quinn's share? Let the code do the arithmetic: ```python total = 3380 parts_a = 1 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 845 print(share_a) ``` Output of the run: 845 Quinn gets $845.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "845", "printed": "845", "notation": null}
nlprog_det-setting-0049442
<|start|><|system|> Answer in plain English.<|eot|> <|user|> Starting with 231 scissors and using 38 per day, how many remain after 6 days?<|eot|> <|assistant|> stock = 231 per_day = 38 days = 6 left = stock - per_day * days # 3 print(left) Run result — 3 3 scissors are left.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer in plain English." }, { "role": "user", "content": "Starting with 231 scissors and using 38 per day, how many remain after 6 days?" }, { "role": "assistant", "content": " stock = 231\n per_day = 38\n days = 6\n left = stock - per_day...
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0049443
Starting with 1299 rulers and using 32 per day, how many remain after 19 days? 691 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "691", "printed": "691", "notation": null}
nlprog_det-setting-0049444
What is a 20% tip on a $172.69 bill? Code: ```python bill = 172.69 tip_rate = 20 / 100 # 0.2 tip = bill * tip_rate # 34.538000000000004 print(f"{tip:.2f}") ``` This prints 34.54, as expected. Leave $34.54.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "34.54", "printed": "34.54", "notation": null}
nlprog_det-setting-0049445
Counting only Monday through Friday, how many business days are there after January 10, 2019 through January 21, 2019? One way, in code: ```python from datetime import date, timedelta start = date(2019, 1, 10) end = date(2019, 1, 21) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
157
{"gold": "7", "printed": "7", "notation": null}
nlprog_det-setting-0049446
What commission does Jamal make on $115,711 in sales at 4%? ```python sales = 115711 rate = 4 / 100 # 0.04 commission = sales * rate # 4628.4400000000005 print(f"{commission:.2f}") ``` # out: 4628.44 Jamal earns $4,628.44.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "4628.44", "printed": "4628.44", "notation": null}
nlprog_det-setting-0049447
What is -10 degrees Celsius in Fahrenheit? One way, in code: ```python celsius = -10 fahrenheit = celsius * 9 / 5 + 32 # 14.0 print(round(fahrenheit)) ``` Result = 14 It equals 14 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0049448
<|start|><|system|> You have access to these functions: {"name": "py_exec", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> After an initial $3,000, t...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"py_exec\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": ...
nlprog_det
setting
original
null
deterministic
[]
[]
240
{"gold": "9500.00", "printed": "9500.00", "notation": null}
nlprog_det-setting-0049449
<|start|><|system|> You can call tools. Available tools: {"name": "calc", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> Parking is $3 per ho...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"calc\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\...
nlprog_det
setting
original
null
deterministic
[]
[]
210
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0049451
How many units at $15 each (variable cost $10) cover $1,200 of fixed costs? A few lines of Python do it: ```python import math fixed = 1200 price = 15 variable = 10 units = math.ceil(fixed / (price - variable)) # 240 print(units) ``` Output of the run: 240 Break-even is 240 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "240", "printed": "240", "notation": null}
nlprog_det-setting-0049452
<|start|><|user|> How many minutes pass from 8:55 AM to 12:50 PM on the same day?<|eot|> <|assistant|> ```python start = 8 * 60 + 55 # 535 end = 12 * 60 + 50 # 770 print(end - start) ``` # execution result: 235 235 minutes pass.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many minutes pass from 8:55 AM to 12:50 PM on the same day?" }, { "role": "assistant", "content": "```python\nstart = 8 * 60 + 55 # 535\nend = 12 * 60 + 50 # 770\nprint(end - start)\n```\n# execution result: 235\n\n235 minutes pass." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "235", "printed": "235", "notation": null}
nlprog_det-setting-0049453
A hearing is set for April 9, 2007. What day of the week is that? Python, step by step: ```python from datetime import date hearing = date(2007, 4, 9) # datetime.date(2007, 4, 9) print(hearing.strftime("%A")) ``` Out = Monday It is a Monday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "Monday", "printed": "Monday", "notation": null}
nlprog_det-setting-0049455
Convert 6,471 GBP to USD at 1 GBP = 1.12 USD. Python code: ```python amount = 6471 rate = 1.12 converted = amount * rate # 7247.52 print(f"{converted:.2f}") ``` It prints 7247.52. It converts to 7,247.52 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "7247.52", "printed": "7247.52", "notation": null}
nlprog_det-setting-0049456
Convert 55.1 km to meters. The program: ```python km = 55.1 meters = km * 1000 # 55100.0 print(round(meters)) ``` Shell output — 55100 55,100 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "55100", "printed": "55100", "notation": null}
nlprog_det-setting-0049457
Wanjiru earns $22.40 an hour and time and a half for hours over 40. What is the pay for a 54-hour week? ```python rate = 22.4 hours = 54 regular = 40 * rate # 896.0 overtime = (hours - 40) * rate * 1.5 # 470.4 pay = regular + overtime # 1366.4 print(f"{pay:.2f}") ``` The script prints 1366.40. Wanjiru earns $1,366...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "1366.40", "printed": "1366.40", "notation": null}
nlprog_det-setting-0049458
<|start|><|user|> A settlement of $36,000 is split equally among 2 parties. How much does each party receive?<|eot|> <|assistant|> ```python settlement = 36000 parties = 2 share = settlement // parties # 18000 print(share) ``` This prints 18000. Each party receives $18,000.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A settlement of $36,000 is split equally among 2 parties. How much does each party receive?" }, { "role": "assistant", "content": "```python\nsettlement = 36000\nparties = 2\nshare = settlement // parties # 18000\nprint(share)\n```\nThis prints 18000.\n\nEach party...
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "18000", "printed": "18000", "notation": null}
nlprog_det-setting-0049459
<|start|><|user|> What day of the week is September 7, 2028?<|eot|> <|assistant|> from datetime import date hearing = date(2028, 9, 7) # datetime.date(2028, 9, 7) print(hearing.strftime("%A")) Python prints: Thursday September 7, 2028 is a Thursday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What day of the week is September 7, 2028?" }, { "role": "assistant", "content": " from datetime import date\n hearing = date(2028, 9, 7) # datetime.date(2028, 9, 7)\n print(hearing.strftime(\"%A\"))\nPython prints: Thursday\n\nSeptember 7, 2028 is a Thurs...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "Thursday", "printed": "Thursday", "notation": null}
nlprog_det-setting-0049461
Ines earns a 3% commission on $104,733 of sales. What is the commission? The commission is $3,141.99.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "3141.99", "printed": "3141.99", "notation": null}
nlprog_det-setting-0049462
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "code_runner", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}} {"name": "convert_u...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"code_runner\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source cod...
nlprog_det
setting
original
null
deterministic
[]
[]
403
{"gold": "250", "printed": "250", "notation": null}
nlprog_det-setting-0049463
The building opened in 1994. How many years had passed by 2017? Python does the arithmetic: ```python start_year = 1994 end_year = 2017 print(end_year - start_year) ``` Running it prints: 23 That is 23 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0049464
79 copies of a 40-page packet are printed at $0.10 per page. What is the cost? Python: ```python pages = 40 copies = 79 cost_per_page = 0.1 cost = pages * copies * cost_per_page print(f"{cost:.2f}") ``` The run gives 316.00. Printing costs $316.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "316.00", "printed": "316.00", "notation": null}
nlprog_det-setting-0049465
<|start|><|system|> Give the answer first.<|eot|> <|user|> With $36,000 in costs and $41,000 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|> <|assistant|> The margin is 12.2%.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Give the answer first." }, { "role": "user", "content": "With $36,000 in costs and $41,000 in revenue, what percent of revenue is profit? Round to one decimal." }, { "role": "assistant", "content": "The margin is 12.2%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
54
{"gold": "12.2", "printed": "12.2", "notation": null}
nlprog_det-setting-0049466
What simple interest does $1,000 earn at 6% a year over 2 years? Let the code do the arithmetic: ```python principal = 1000 rate = 6 / 100 # 0.06 years = 2 interest = principal * rate * years # 120.0 print(f"{interest:.2f}") ``` Run result — 120.00 The interest is $120.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "120.00", "printed": "120.00", "notation": null}
nlprog_det-setting-0049467
Prorate $2,400 of monthly rent for 16 days of a 31-day month. A short script: ```python rent = 2400 days_in_month = 31 days_occupied = 16 prorated = rent * days_occupied / days_in_month # 1238.7096774193549 print(f"{prorated:.2f}") ``` The script prints 1238.71. The prorated rent is $1,238.71.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "1238.71", "printed": "1238.71", "notation": null}
nlprog_det-setting-0049468
Find the mean of these test scores: 61, 56, 64 and 63. Coded up: ```python scores = [61, 56, 64, 63] average = sum(scores) // len(scores) # 61 print(average) ``` Executing it gives 61. The mean is 61.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "61", "printed": "61", "notation": null}
nlprog_det-setting-0049469
Omar lends $5,000 at 5% simple interest per year for 2 years. How much interest is earned? Program: ```python principal = 5000 rate = 5 / 100 years = 2 interest = principal * rate * years print(f"{interest:.2f}") ``` # run result: 500.00 It earns $500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "500.00", "printed": "500.00", "notation": null}
nlprog_det-setting-0049470
What does $2,000 grow to in 2 years at 3% annual compounding? We can compute it in Python. principal = 2000 rate = 3 / 100 # 0.03 years = 2 value = principal * (1 + rate) ** years # 2121.7999999999997 print(f"{value:.2f}") Output: 2121.80 It is worth $2,121.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "2121.80", "printed": "2121.80", "notation": null}
nlprog_det-setting-0049471
The paralegal logged 2.5 hours at a rate of $225. How much is billed? The computation: hours = 2.5 rate = 225 bill = hours * rate print(f"{bill:.2f}") Python prints 562.50. The bill is $562.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "562.50", "printed": "562.50", "notation": null}
nlprog_det-setting-0049472
4 clients win $30,000. The lawyer takes 25%, and the rest is split equally. How much does each client get? A short script: ```python award = 30000 fee = award * 25 / 100 # 7500.0 remaining = award - fee # 22500.0 per_client = remaining / 4 # 5625.0 print(f"{per_client:.2f}") ``` What it prints: 5625.00 Each share ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "5625.00", "printed": "5625.00", "notation": null}
nlprog_det-setting-0049473
Starting from $8,000, the team spends $2,687, $2,912. What remains? Let's compute it with Python. ```python budget = 8000 expenses = [2687, 2912] left = budget - sum(expenses) # 2401 print(left) ``` stdout: 2401 $2,401 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "2401", "printed": "2401", "notation": null}