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-0056894
<|start|><|user|> How many days are there from April 12, 2021 to October 1, 2021?<|eot|> <|assistant|> ```python from datetime import date first = date(2021, 4, 12) # datetime.date(2021, 4, 12) second = date(2021, 10, 1) # datetime.date(2021, 10, 1) print((second - first).days) ``` Shell output — 172 There are 172 d...
chat
[ { "role": "user", "content": "How many days are there from April 12, 2021 to October 1, 2021?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2021, 4, 12) # datetime.date(2021, 4, 12)\nsecond = date(2021, 10, 1) # datetime.date(2021, 10, 1)\nprint((sec...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "172", "printed": "172", "notation": null}
nlprog_det-setting-0056895
Revenue is $6,500 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)? A Python solution: ```python revenue = 6500 costs = 4000 profit = revenue - costs # 2500 margin = profit / revenue * 100 # 38.46153846153847 print(round(margin, 1)) ``` Executed, it shows: 38.5 Profit is 38.5% o...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "38.5", "printed": "38.5", "notation": null}
nlprog_det-setting-0056896
<|start|><|user|> At 45 miles per hour, how many minutes does a 45-mile trip take?<|eot|> <|assistant|> The trip takes 60 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 45 miles per hour, how many minutes does a 45-mile trip take?" }, { "role": "assistant", "content": "The trip takes 60 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0056897
<|start|><|user|> 97 copies of a 54-page packet are printed at $0.08 per page. What is the cost?<|eot|> <|assistant|> ```python pages = 54 copies = 97 cost_per_page = 0.08 cost = pages * copies * cost_per_page # 419.04 print(f"{cost:.2f}") ``` stdout: 419.04 The job costs $419.04.<|eot|> <|end|>
chat
[ { "role": "user", "content": "97 copies of a 54-page packet are printed at $0.08 per page. What is the cost?" }, { "role": "assistant", "content": "```python\npages = 54\ncopies = 97\ncost_per_page = 0.08\ncost = pages * copies * cost_per_page # 419.04\nprint(f\"{cost:.2f}\")\n```\nstdout: 419....
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "419.04", "printed": "419.04", "notation": null}
nlprog_det-setting-0056898
<|start|><|user|> A hall has 20 rows of 19 seats, and 39 seats are empty. How many people are seated?<|eot|> <|assistant|> ```python rows = 20 per_row = 19 empty = 39 seated = rows * per_row - empty # 341 print(seated) ``` Executed, it shows 341. 341 seats are taken.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hall has 20 rows of 19 seats, and 39 seats are empty. How many people are seated?" }, { "role": "assistant", "content": "```python\nrows = 20\nper_row = 19\nempty = 39\nseated = rows * per_row - empty # 341\nprint(seated)\n```\nExecuted, it shows 341.\n\n341 seat...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "341", "printed": "341", "notation": null}
nlprog_det-setting-0056899
Parking is $5 per hour with a daily maximum of $20. What do 11 hours cost? The program: ```python rate = 5 hours = 11 daily_max = 20 cost = min(rate * hours, daily_max) # 20 print(cost) ``` Output of the run — 20 The charge is $20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0056900
<|start|><|user|> The landlord deducts $150, $75 and $200 from a $2,500 deposit. What is returned to the tenant?<|eot|> <|assistant|> The refund is $2,075.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The landlord deducts $150, $75 and $200 from a $2,500 deposit. What is returned to the tenant?" }, { "role": "assistant", "content": "The refund is $2,075." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "2075", "printed": "2075", "notation": null}
nlprog_det-setting-0056901
What is the total rent on a 24-month lease at $975 a month? A short script: ```python monthly_rent = 975 months = 24 total = monthly_rent * months # 23400 print(total) ``` Result — 23400 In total, $23,400 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "23400", "printed": "23400", "notation": null}
nlprog_det-setting-0056902
$1,000 is invested at 2% compounded yearly. What is it worth after 3 years? ```python principal = 1000 rate = 2 / 100 # 0.02 years = 3 value = principal * (1 + rate) ** years # 1061.208 print(f"{value:.2f}") ``` # printed result: 1061.21 The balance is $1,061.21.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "1061.21", "printed": "1061.21", "notation": null}
nlprog_det-setting-0056903
<|start|><|system|> Keep explanations short.<|eot|> <|user|> A client paid a $10,000 retainer. The firm has billed 5 hours at $150 per hour. How much of the retainer is left?<|eot|> <|assistant|> $9,250 of the retainer is left.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Keep explanations short." }, { "role": "user", "content": "A client paid a $10,000 retainer. The firm has billed 5 hours at $150 per hour. How much of the retainer is left?" }, { "role": "assistant", "content": "$9,250 of the retainer is left." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
60
{"gold": "9250", "printed": "9250", "notation": null}
nlprog_det-setting-0056904
A count moves from 500 to 575. By what percent did it change (use a minus sign for a drop)? Program: ```python old = 500 new = 575 change = (new - old) / old * 100 print(round(change)) ``` The script prints 15, as expected. It changed by 15%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0056905
How much sales tax is charged on a $392.82 purchase at 9%? Python code: ```python price = 392.82 tax_rate = 9 / 100 # 0.09 tax = price * tax_rate # 35.3538 print(f"{tax:.2f}") ``` Program output — 35.35 $35.35 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "35.35", "printed": "35.35", "notation": null}
nlprog_det-setting-0056906
Find the mean of these test scores: 65, 75 and 61. The mean is 67.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
21
{"gold": "67", "printed": "67", "notation": null}
nlprog_det-setting-0056907
<|start|><|system|> Functions: {"name": "calculator", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> <|user|> Goods bought on September 2...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"calculator\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"s...
nlprog_det
setting
original
null
deterministic
[]
[]
271
{"gold": "2025-09-24", "printed": "2025-09-24", "notation": null}
nlprog_det-setting-0056908
How many weekdays (Monday to Friday) fall after September 1, 2021 up to and including September 12, 2021? Let's compute it with Python. ```python from datetime import date, timedelta start = date(2021, 9, 1) end = date(2021, 9, 12) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k))...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
159
{"gold": "7", "printed": "7", "notation": null}
nlprog_det-setting-0056909
<|start|><|user|> 6 friends split a $240 bill plus a 18% tip evenly. How much does each pay?<|eot|> <|assistant|> ```python bill = 240 tip_rate = 18 / 100 # 0.18 people = 6 each = bill * (1 + tip_rate) / people # 47.199999999999996 print(f"{each:.2f}") ``` Interpreter output — 47.20 The share is $47.20 each.<|eot|> ...
chat
[ { "role": "user", "content": "6 friends split a $240 bill plus a 18% tip evenly. How much does each pay?" }, { "role": "assistant", "content": "```python\nbill = 240\ntip_rate = 18 / 100 # 0.18\npeople = 6\neach = bill * (1 + tip_rate) / people # 47.199999999999996\nprint(f\"{each:.2f}\")\n```...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "47.20", "printed": "47.20", "notation": null}
nlprog_det-setting-0056910
<|start|><|user|> A service costs $12 a month or $120 a year. How much does the yearly plan save over 12 monthly payments?<|eot|> <|assistant|> The annual plan saves $24.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A service costs $12 a month or $120 a year. How much does the yearly plan save over 12 monthly payments?" }, { "role": "assistant", "content": "The annual plan saves $24." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0056911
Fixed costs are $2,500. Each unit sells for $15 and costs $9 to make. How many units must be sold to break even? 417 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "417", "printed": "417", "notation": null}
nlprog_det-setting-0056912
A appointment starts at 12:10 PM and lasts 50 minutes. When does it end? Translated to Python: ```python start = 12 * 60 + 10 end = start + 50 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Printed: 1:00 PM The appointment finishes at 1:00 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "1:00 PM", "printed": "1:00 PM", "notation": null}
nlprog_det-setting-0056914
Of a $4,000 budget, $600 has been spent. What percent is that? One way, in code: ```python budget = 4000 spent = 600 percent = spent / budget * 100 # 15.0 print(round(percent, 1)) ``` Output of the run — 15.0 That is 15.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "15.0", "printed": "15.0", "notation": null}
nlprog_det-setting-0056916
Starting with 949 chairs and using 20 per day, how many remain after 13 days? Computation in Python: ```python stock = 949 per_day = 20 days = 13 left = stock - per_day * days # 689 print(left) ``` stdout = 689 689 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "689", "printed": "689", "notation": null}
nlprog_det-setting-0056917
From 2006 to 2028, how many years is that? 22 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
17
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0056918
<|start|><|user|> Idris's scores were 54, 60 and 60. What is the average score?<|eot|> <|assistant|> ```python scores = [54, 60, 60] average = sum(scores) // len(scores) print(average) ``` The program outputs 58. The average score is 58.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Idris's scores were 54, 60 and 60. What is the average score?" }, { "role": "assistant", "content": "```python\nscores = [54, 60, 60]\naverage = sum(scores) // len(scores)\nprint(average)\n```\nThe program outputs 58.\n\nThe average score is 58." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "58", "printed": "58", "notation": null}
nlprog_det-setting-0056919
Shipping costs $8 plus $2.00 per pound. What does a 8-pound parcel cost to ship? The charge is $24.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "24.00", "printed": "24.00", "notation": null}
nlprog_det-setting-0056920
Tariq's scores were 80, 68, 75, 55, 93, 71 and 69. What is the average score? Set it up in Python: ```python scores = [80, 68, 75, 55, 93, 71, 69] average = sum(scores) // len(scores) # 73 print(average) ``` Printed — 73 The mean is 73.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "73", "printed": "73", "notation": null}
nlprog_det-setting-0056921
<|start|><|user|> Parking is $5 per hour with a daily maximum of $15. What do 3 hours cost?<|eot|> <|assistant|> ```python rate = 5 hours = 3 daily_max = 15 cost = min(rate * hours, daily_max) # 15 print(cost) ``` stdout — 15 Parking costs $15.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Parking is $5 per hour with a daily maximum of $15. What do 3 hours cost?" }, { "role": "assistant", "content": "```python\nrate = 5\nhours = 3\ndaily_max = 15\ncost = min(rate * hours, daily_max) # 15\nprint(cost)\n```\nstdout — 15\n\nParking costs $15." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0056922
A 7 lb package ships at $8 base plus $2.50/lb. What is the charge? As Python: base = 8 per_pound = 2.5 weight = 7 cost = base + per_pound * weight # 25.5 print(f"{cost:.2f}") Result — 25.50 The charge is $25.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "25.50", "printed": "25.50", "notation": null}
nlprog_det-setting-0056923
<|start|><|user|> Monthly rent is $2,400. A tenant moves in with 15 days left in a 30-day month. What is the prorated rent?<|eot|> <|assistant|> rent = 2400 days_in_month = 30 days_occupied = 15 prorated = rent * days_occupied / days_in_month # 1200.0 print(f"{prorated:.2f}") Running it prints 1200...
chat
[ { "role": "user", "content": "Monthly rent is $2,400. A tenant moves in with 15 days left in a 30-day month. What is the prorated rent?" }, { "role": "assistant", "content": " rent = 2400\n days_in_month = 30\n days_occupied = 15\n prorated = rent * days_occupied / days_in_month # 1...
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "1200.00", "printed": "1200.00", "notation": null}
nlprog_det-setting-0056924
With $12,500 in costs and $17,500 in revenue, what percent of revenue is profit? Round to one decimal. Program: revenue = 17500 costs = 12500 profit = revenue - costs # 5000 margin = profit / revenue * 100 # 28.57142857142857 print(round(margin, 1)) It outputs 28.6. Profit is 28.6% of revenue.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "28.6", "printed": "28.6", "notation": null}
nlprog_det-setting-0056925
<|start|><|user|> After a 40% fee is taken from a $48,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|> <|assistant|> ```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}") ...
chat
[ { "role": "user", "content": "After a 40% fee is taken from a $48,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?" }, { "role": "assistant", "content": "```python\naward = 48000\nfee = award * 40 / 100 # 19200.0\nremaining = award - fee # 28800.0\nper_cl...
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "7200.00", "printed": "7200.00", "notation": null}
nlprog_det-setting-0056926
Printing costs 12 cents a page. What does it cost to print 77 copies of a 47-page handout? Written as code: ```python pages = 47 copies = 77 cost_per_page = 0.12 cost = pages * copies * cost_per_page # 434.28 print(f"{cost:.2f}") ``` Result = 434.28 Printing costs $434.28.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "434.28", "printed": "434.28", "notation": null}
nlprog_det-setting-0056927
At 60 miles per hour, how many minutes does a 255-mile trip take? We write it as a program: ```python distance = 255 speed = 60 minutes = distance / speed * 60 # 255.0 print(round(minutes)) ``` Run result — 255 The trip takes 255 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "255", "printed": "255", "notation": null}
nlprog_det-setting-0056928
<|start|><|user|> A water bill is $18 plus $4.20 per thousand gallons beyond the first 2 thousand. What is the bill for 19 thousand gallons?<|eot|> <|assistant|> $89.40 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A water bill is $18 plus $4.20 per thousand gallons beyond the first 2 thousand. What is the bill for 19 thousand gallons?" }, { "role": "assistant", "content": "$89.40 is owed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "89.40", "printed": "89.40", "notation": null}
nlprog_det-setting-0056931
What percentage of $5,000 is $3,100? A short script: ```python budget = 5000 spent = 3100 percent = spent / budget * 100 # 62.0 print(round(percent, 1)) ``` This prints: 62.0 That is 62.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "62.0", "printed": "62.0", "notation": null}
nlprog_det-setting-0056932
<|start|><|user|> A quorum is 1/3 of the 40 members, rounded up. How many members make a quorum?<|eot|> <|assistant|> ```python import math members = 40 quorum = math.ceil(members * 1 / 3) # 14 print(quorum) ``` The code prints: 14 That is 14 members.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A quorum is 1/3 of the 40 members, rounded up. How many members make a quorum?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 40\nquorum = math.ceil(members * 1 / 3) # 14\nprint(quorum)\n```\nThe code prints: 14\n\nThat is 14 members." }...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0056933
<|start|><|user|> A quorum is 1/3 of the 19 members, rounded up. How many members make a quorum?<|eot|> <|assistant|> ```python import math members = 19 quorum = math.ceil(members * 1 / 3) # 7 print(quorum) ``` Output: 7 That is 7 members.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A quorum is 1/3 of the 19 members, rounded up. How many members make a quorum?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 19\nquorum = math.ceil(members * 1 / 3) # 7\nprint(quorum)\n```\nOutput: 7\n\nThat is 7 members." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "7", "printed": "7", "notation": null}
nlprog_det-setting-0056935
How many meters are in 38.4 kilometers? Let the code do the arithmetic: ```python km = 38.4 meters = km * 1000 # 38400.0 print(round(meters)) ``` (Console output: 38400) 38,400 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "38400", "printed": "38400", "notation": null}
nlprog_det-setting-0056936
<|start|><|user|> Shipping costs $12 plus $1.20 per pound. What does a 40-pound parcel cost to ship?<|eot|> <|assistant|> ```python base = 12 per_pound = 1.2 weight = 40 cost = base + per_pound * weight print(f"{cost:.2f}") ``` # result: 60.00 The charge is $60.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Shipping costs $12 plus $1.20 per pound. What does a 40-pound parcel cost to ship?" }, { "role": "assistant", "content": "```python\nbase = 12\nper_pound = 1.2\nweight = 40\ncost = base + per_pound * weight\nprint(f\"{cost:.2f}\")\n```\n# result: 60.00\n\nThe charge...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "60.00", "printed": "60.00", "notation": null}
nlprog_det-setting-0056937
<|start|><|user|> How many 1-foot square tiles cover a 9 ft by 7 ft floor (round up)?<|eot|> <|assistant|> ```python import math length = 9 width = 7 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 63 print(tiles) ``` This prints 63. It takes 63 tiles.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many 1-foot square tiles cover a 9 ft by 7 ft floor (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 9\nwidth = 7\ntile = 1\ntiles = math.ceil(length * width / (tile * tile)) # 63\nprint(tiles)\n```\nThis prints 63.\n\nIt take...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "63", "printed": "63", "notation": null}
nlprog_det-setting-0056938
<|start|><|user|> To read 228 pages in 4 days, how many pages per day are needed?<|eot|> <|assistant|> That is 57 pages per day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "To read 228 pages in 4 days, how many pages per day are needed?" }, { "role": "assistant", "content": "That is 57 pages per day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "57", "printed": "57", "notation": null}
nlprog_det-setting-0056939
<|start|><|user|> A $96 dinner bill gets a 18% tip, and 3 people share the cost equally. What is each person's share?<|eot|> <|assistant|> bill = 96 tip_rate = 18 / 100 # 0.18 people = 3 each = bill * (1 + tip_rate) / people # 37.76 print(f"{each:.2f}") Output of the run: 37.76 The share is $37.7...
chat
[ { "role": "user", "content": "A $96 dinner bill gets a 18% tip, and 3 people share the cost equally. What is each person's share?" }, { "role": "assistant", "content": " bill = 96\n tip_rate = 18 / 100 # 0.18\n people = 3\n each = bill * (1 + tip_rate) / people # 37.76\n print(f...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "37.76", "printed": "37.76", "notation": null}
nlprog_det-setting-0056940
<|start|><|user|> Shipping costs $5 plus $2.50 per pound. What does a 4-pound parcel cost to ship?<|eot|> <|assistant|> The charge is $15.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Shipping costs $5 plus $2.50 per pound. What does a 4-pound parcel cost to ship?" }, { "role": "assistant", "content": "The charge is $15.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "15.00", "printed": "15.00", "notation": null}
nlprog_det-setting-0056941
Papers were served by mail on December 22, 2026. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date? Translated to Python: ```python from datetime import date, timedelta served = date(2026, 12, 22) # datetime.date(2026, 12, 22) response_days = 28 mail_days = 3 due = served + ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
187
{"gold": "2027-01-22", "printed": "2027-01-22", "notation": null}
nlprog_det-setting-0056942
Pack A has 8 items for $12.49. Pack B has 15 items for $16.04. Which has the lower price per item? Programmatically: ```python pack_a = 12.49 / 8 pack_b = 16.04 / 15 cheaper = "A" if pack_a < pack_b else "B" print(cheaper) ``` (Program output: B) B has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0056943
Counting the first and last day, how many days are there from July 12, 2018 through July 22, 2018? A short script: ```python from datetime import date first = date(2018, 7, 12) # datetime.date(2018, 7, 12) last = date(2018, 7, 22) # datetime.date(2018, 7, 22) days = (last - first).days + 1 # 11 print(days) ``` Runn...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0056944
How long, in days, is it from February 18, 2026 until January 8, 2027? Script: ```python from datetime import date first = date(2026, 2, 18) # datetime.date(2026, 2, 18) second = date(2027, 1, 8) # datetime.date(2027, 1, 8) print((second - first).days) ``` Interpreter output — 324 There are 324 days between the two...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "324", "printed": "324", "notation": null}
nlprog_det-setting-0056945
A clerk's office charges $75 for each filing. Hana submits 3 filings. What is the total fee? A short script: ```python fee = 75 filings = 3 total = fee * filings # 225 print(total) ``` Running this gives 225. The total fee is $225.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "225", "printed": "225", "notation": null}
nlprog_det-setting-0056946
<|start|><|system|> You help with homework problems.<|eot|> <|user|> What is -15 degrees Celsius in Fahrenheit?<|eot|> <|assistant|> ```python celsius = -15 fahrenheit = celsius * 9 / 5 + 32 # 5.0 print(round(fahrenheit)) ``` The program prints 5, as expected. That is 5 °F.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "What is -15 degrees Celsius in Fahrenheit?" }, { "role": "assistant", "content": "```python\ncelsius = -15\nfahrenheit = celsius * 9 / 5 + 32 # 5.0\nprint(round(fahrenheit))\n```\nThe ...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0056948
<|start|><|user|> A meeting starts at 8:20 AM and lasts 105 minutes. When does it end?<|eot|> <|assistant|> ```python start = 8 * 60 + 20 end = start + 105 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` # console output: 10:05 AM It ends at 10:05 AM.<|eot|...
chat
[ { "role": "user", "content": "A meeting starts at 8:20 AM and lasts 105 minutes. When does it end?" }, { "role": "assistant", "content": "```python\nstart = 8 * 60 + 20\nend = start + 105\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": "10:05 AM", "printed": "10:05 AM", "notation": null}
nlprog_det-setting-0056949
A settlement of $1,200 is split equally among 2 parties. How much does each party receive? Each share is $600.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0056950
Straight-line depreciation: cost $30,000, salvage $2,000, 6 years. How much per year? Python makes this quick: cost = 30000 salvage = 2000 years = 6 per_year = (cost - salvage) / years # 4666.666666666667 print(f"{per_year:.2f}") The script prints 4666.67. $4,666.67 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "4666.67", "printed": "4666.67", "notation": null}
nlprog_det-setting-0056951
A $210 dinner bill gets a 18% tip, and 4 people share the cost equally. What is each person's share? The computation: ```python bill = 210 tip_rate = 18 / 100 # 0.18 people = 4 each = bill * (1 + tip_rate) / people # 61.949999999999996 print(f"{each:.2f}") ``` Executing it gives: 61.95 Each person pays $61.95.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "61.95", "printed": "61.95", "notation": null}
nlprog_det-setting-0056952
A $1,000 security deposit has deductions of $45, $200 and $45. How much is refunded? Let the code do the arithmetic: ```python deposit = 1000 deductions = [45, 200, 45] refund = deposit - sum(deductions) # 710 print(refund) ``` # console output: 710 $710 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "710", "printed": "710", "notation": null}
nlprog_det-setting-0056953
A desk lamp costs $80. It is 40% off. What is the sale price? ```python price = 80 discount = 40 / 100 sale_price = price * (1 - discount) print(f"{sale_price:.2f}") ``` Interpreter output — 48.00 The sale price is $48.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "48.00", "printed": "48.00", "notation": null}
nlprog_det-setting-0056954
<|start|><|user|> 6 claimants share a $84,000 settlement equally. What is each share?<|eot|> <|assistant|> Each share is $14,000.<|eot|> <|end|>
chat
[ { "role": "user", "content": "6 claimants share a $84,000 settlement equally. What is each share?" }, { "role": "assistant", "content": "Each share is $14,000." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "14000", "printed": "14000", "notation": null}
nlprog_det-setting-0056955
From a $10,000 retainer, 14 hours at $150/hour have been drawn. What remains? Code: ```python retainer = 10000 hours = 14 rate = 150 left = retainer - hours * rate # 7900 print(left) ``` The program prints 7900. $7,900 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "7900", "printed": "7900", "notation": null}
nlprog_det-setting-0056956
A 6-month warranty starts on February 4, 2025. On what date does it end? from datetime import date start = date(2025, 2, 4) months = 6 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) Shell output: 2025-0...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "2025-08-04", "printed": "2025-08-04", "notation": null}
nlprog_det-setting-0056957
A 5% increase is applied to $900 monthly rent. What is the new amount? Computation in Python: ```python rent = 900 increase = 5 / 100 # 0.05 new_rent = rent * (1 + increase) # 945.0 print(f"{new_rent:.2f}") ``` Executing it gives 945.00, as expected. The new rent is $945.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "945.00", "printed": "945.00", "notation": null}
nlprog_det-setting-0056958
<|start|><|user|> 5 boxes hold 8 water bottles each. After 6 are handed out, how many are left?<|eot|> <|assistant|> ```python boxes = 5 per_box = 8 given_away = 6 left = boxes * per_box - given_away # 34 print(left) ``` # execution result: 34 That leaves 34 water bottles.<|eot|> <|end|>
chat
[ { "role": "user", "content": "5 boxes hold 8 water bottles each. After 6 are handed out, how many are left?" }, { "role": "assistant", "content": "```python\nboxes = 5\nper_box = 8\ngiven_away = 6\nleft = boxes * per_box - given_away # 34\nprint(left)\n```\n# execution result: 34\n\nThat leaves...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "34", "printed": "34", "notation": null}
nlprog_det-setting-0056959
<|start|><|user|> Starting from $12,000, the team spends $2,620, $376, $2,379. What remains?<|eot|> <|assistant|> ```python budget = 12000 expenses = [2620, 376, 2379] left = budget - sum(expenses) # 6625 print(left) ``` Run output — 6625 $6,625 is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting from $12,000, the team spends $2,620, $376, $2,379. What remains?" }, { "role": "assistant", "content": "```python\nbudget = 12000\nexpenses = [2620, 376, 2379]\nleft = budget - sum(expenses) # 6625\nprint(left)\n```\nRun output — 6625\n\n$6,625 is left." ...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "6625", "printed": "6625", "notation": null}
nlprog_det-setting-0056960
Rent of $1,250 goes up 8%. What is the new rent? Python makes this quick: ```python rent = 1250 increase = 8 / 100 # 0.08 new_rent = rent * (1 + increase) # 1350.0 print(f"{new_rent:.2f}") ``` Executing it gives: 1350.00 The new rent is $1,350.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "1350.00", "printed": "1350.00", "notation": null}
nlprog_det-setting-0056961
<|start|><|user|> Scale 150 g of rice from 6 servings to 12 servings.<|eot|> <|assistant|> ```python grams = 150 serves = 6 needed_for = 12 scaled = grams * needed_for // serves # 300 print(scaled) ``` # execution result: 300 300 grams of rice are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Scale 150 g of rice from 6 servings to 12 servings." }, { "role": "assistant", "content": "```python\ngrams = 150\nserves = 6\nneeded_for = 12\nscaled = grams * needed_for // serves # 300\nprint(scaled)\n```\n# execution result: 300\n\n300 grams of rice are needed....
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0056962
<|start|><|user|> A workshop lasted 4 hours and 36 minutes. How many minutes is that?<|eot|> <|assistant|> That is 276 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A workshop lasted 4 hours and 36 minutes. How many minutes is that?" }, { "role": "assistant", "content": "That is 276 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "276", "printed": "276", "notation": null}
nlprog_det-setting-0056963
An unpaid balance of $12,000 accrues 2% simple interest per month. How much interest accrues in 5 months? Python, step by step: ```python balance = 12000 monthly_rate = 2 / 100 # 0.02 months = 5 interest = balance * monthly_rate * months # 1200.0 print(f"{interest:.2f}") ``` # program output: 1200.00 The interest i...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "1200.00", "printed": "1200.00", "notation": null}
nlprog_det-setting-0056964
<|start|><|user|> 4 bike rides at 250 calories each burn how many calories in total?<|eot|> <|assistant|> ```python per_session = 250 sessions = 4 total = per_session * sessions # 1000 print(total) ``` The program outputs: 1000 That burns 1000 calories.<|eot|> <|end|>
chat
[ { "role": "user", "content": "4 bike rides at 250 calories each burn how many calories in total?" }, { "role": "assistant", "content": "```python\nper_session = 250\nsessions = 4\ntotal = per_session * sessions # 1000\nprint(total)\n```\nThe program outputs: 1000\n\nThat burns 1000 calories." ...
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0056965
<|start|><|user|> What is -20 degrees Celsius in Fahrenheit?<|eot|> <|assistant|> ```python celsius = -20 fahrenheit = celsius * 9 / 5 + 32 # -4.0 print(round(fahrenheit)) ``` Printed — -4 It equals -4 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is -20 degrees Celsius in Fahrenheit?" }, { "role": "assistant", "content": "```python\ncelsius = -20\nfahrenheit = celsius * 9 / 5 + 32 # -4.0\nprint(round(fahrenheit))\n```\nPrinted — -4\n\nIt equals -4 degrees Fahrenheit." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "-4", "printed": "-4", "notation": null}
nlprog_det-setting-0056966
How many of 255 votes make 60% (round up)? At least 153 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
25
{"gold": "153", "printed": "153", "notation": null}
nlprog_det-setting-0056967
<|start|><|system|> Tools (call with JSON): {"name": "python_exec", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> If a 75...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"python_exec\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}...
nlprog_det
setting
original
null
deterministic
[]
[]
265
{"gold": "4:00 PM", "printed": "4:00 PM", "notation": null}
nlprog_det-setting-0056968
<|start|><|system|> You may call the tools below. {"name": "python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> How many of 101 votes make 75% (round u...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}"...
nlprog_det
setting
original
null
deterministic
[]
[]
203
{"gold": "76", "printed": "76", "notation": null}
nlprog_det-setting-0056969
A $2,000 security deposit has deductions of $45 and $45. How much is refunded? Python makes this quick: ```python deposit = 2000 deductions = [45, 45] refund = deposit - sum(deductions) # 1910 print(refund) ``` Running this gives: 1910 The refund is $1,910.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "1910", "printed": "1910", "notation": null}
nlprog_det-setting-0056970
<|start|><|user|> To read 270 pages in 15 days, how many pages per day are needed?<|eot|> <|assistant|> ```python pages = 270 days = 15 per_day = pages // days # 18 print(per_day) ``` The printout reads: 18 18 pages a day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "To read 270 pages in 15 days, how many pages per day are needed?" }, { "role": "assistant", "content": "```python\npages = 270\ndays = 15\nper_day = pages // days # 18\nprint(per_day)\n```\nThe printout reads: 18\n\n18 pages a day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0056971
Convert 8,218 USD to CAD at 1 USD = 1.31 CAD. Computing it: ```python amount = 8218 rate = 1.31 converted = amount * rate print(f"{converted:.2f}") ``` Python prints: 10765.58 It converts to 10,765.58 CAD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "10765.58", "printed": "10765.58", "notation": null}
nlprog_det-setting-0056972
<|start|><|user|> A 120-day notice period begins on December 13, 2018. On what date does it end?<|eot|> <|assistant|> The period ends on April 12, 2019.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 120-day notice period begins on December 13, 2018. On what date does it end?" }, { "role": "assistant", "content": "The period ends on April 12, 2019." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "2019-04-12", "printed": "2019-04-12", "notation": null}
nlprog_det-setting-0056973
<|start|><|user|> A service costs $9 a month or $96 a year. How much does the yearly plan save over 12 monthly payments?<|eot|> <|assistant|> ```python monthly = 9 yearly = 96 savings = monthly * 12 - yearly # 12 print(savings) ``` stdout: 12 The annual plan saves $12.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A service costs $9 a month or $96 a year. How much does the yearly plan save over 12 monthly payments?" }, { "role": "assistant", "content": "```python\nmonthly = 9\nyearly = 96\nsavings = monthly * 12 - yearly # 12\nprint(savings)\n```\nstdout:\n12\n\nThe annual p...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0056974
<|start|><|user|> A 2% increase is applied to $2,200 monthly rent. What is the new amount?<|eot|> <|assistant|> ```python rent = 2200 increase = 2 / 100 # 0.02 new_rent = rent * (1 + increase) # 2244.0 print(f"{new_rent:.2f}") ``` Run result — 2244.00 The new rent is $2,244.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 2% increase is applied to $2,200 monthly rent. What is the new amount?" }, { "role": "assistant", "content": "```python\nrent = 2200\nincrease = 2 / 100 # 0.02\nnew_rent = rent * (1 + increase) # 2244.0\nprint(f\"{new_rent:.2f}\")\n```\nRun result — 2244.00\n\nT...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "2244.00", "printed": "2244.00", "notation": null}
nlprog_det-setting-0056975
<|start|><|user|> Someone works 12 hours at $20.77 per hour. What are the earnings?<|eot|> <|assistant|> The pay is $249.24.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Someone works 12 hours at $20.77 per hour. What are the earnings?" }, { "role": "assistant", "content": "The pay is $249.24." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "249.24", "printed": "249.24", "notation": null}
nlprog_det-setting-0056976
<|start|><|user|> Convert 3 h 7 min (the length of a deposition) to minutes.<|eot|> <|assistant|> hours = 3 minutes = 7 total_minutes = hours * 60 + minutes # 187 print(total_minutes) Interpreter output: 187 The deposition lasted 187 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 3 h 7 min (the length of a deposition) to minutes." }, { "role": "assistant", "content": " hours = 3\n minutes = 7\n total_minutes = hours * 60 + minutes # 187\n print(total_minutes)\nInterpreter output: 187\n\nThe deposition lasted 187 minutes....
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "187", "printed": "187", "notation": null}
nlprog_det-setting-0056977
What average speed covers 170 miles in 2 hours? The Python version: ```python distance = 170 hours = 2 speed = distance / hours # 85.0 print(round(speed)) ``` Running this gives 85. The average speed is 85 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "85", "printed": "85", "notation": null}
nlprog_det-setting-0056978
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> $10,000 is invested at 3% compounded yearly. What is it worth after 4 years?<|eot|> <|assistant|> ```python principal = 10000 rate = 3 / 100 # 0.03 years = 4 value = principal * (1 + rate) ** years # 11255.0881 print(f"{value:.2f}") ``` Output: 11255.09...
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "$10,000 is invested at 3% compounded yearly. What is it worth after 4 years?" }, { "role": "assistant", "content": "```python\nprincipal = 10000\nrate = 3 / 100 # 0.03\nyears = 4\nvalue = ...
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "11255.09", "printed": "11255.09", "notation": null}
nlprog_det-setting-0056979
Counting only Monday through Friday, how many business days are there after November 14, 2023 through December 19, 2023? In Python: ```python from datetime import date, timedelta start = date(2023, 11, 14) end = date(2023, 12, 19) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k))....
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
153
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0056980
<|start|><|user|> A 6% increase is applied to $900 monthly rent. What is the new amount?<|eot|> <|assistant|> ```python rent = 900 increase = 6 / 100 new_rent = rent * (1 + increase) print(f"{new_rent:.2f}") ``` It prints: 954.00 The new rent is $954.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 6% increase is applied to $900 monthly rent. What is the new amount?" }, { "role": "assistant", "content": "```python\nrent = 900\nincrease = 6 / 100\nnew_rent = rent * (1 + increase)\nprint(f\"{new_rent:.2f}\")\n```\nIt prints: 954.00\n\nThe new rent is $954.00."...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "954.00", "printed": "954.00", "notation": null}
nlprog_det-setting-0056981
<|start|><|system|> Show working only when it helps.<|eot|> <|user|> Fixed costs are $1,200. Each unit sells for $30 and costs $20 to make. How many units must be sold to break even?<|eot|> <|assistant|> ```python import math fixed = 1200 price = 30 variable = 20 units = math.ceil(fixed / (price - variable)) # 120 pri...
chat
[ { "role": "system", "content": "Show working only when it helps." }, { "role": "user", "content": "Fixed costs are $1,200. Each unit sells for $30 and costs $20 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = ...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0056982
Convert 3 h 44 min (the length of a workshop) to minutes. We can compute it in Python. ```python hours = 3 minutes = 44 total_minutes = hours * 60 + minutes # 224 print(total_minutes) ``` Executing it gives 224, as expected. That is 224 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "224", "printed": "224", "notation": null}
nlprog_det-setting-0056983
Scale 450 g of pasta from 6 servings to 12 servings. We write it as a program: ```python grams = 450 serves = 6 needed_for = 12 scaled = grams * needed_for // serves # 900 print(scaled) ``` Shell output: 900 Use 900 g of pasta.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0056985
<|start|><|user|> Hana was born on November 14, 2009. How old is Hana on November 20, 2029?<|eot|> <|assistant|> from datetime import date born = date(2009, 11, 14) # datetime.date(2009, 11, 14) on = date(2029, 11, 20) # datetime.date(2029, 11, 20) age = on.year - born.year - ((on.month, on.day) < (bo...
chat
[ { "role": "user", "content": "Hana was born on November 14, 2009. How old is Hana on November 20, 2029?" }, { "role": "assistant", "content": " from datetime import date\n born = date(2009, 11, 14) # datetime.date(2009, 11, 14)\n on = date(2029, 11, 20) # datetime.date(2029, 11, 20)\n...
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0056986
<|start|><|user|> What does $5,000 grow to in 4 years at 2% annual compounding?<|eot|> <|assistant|> ```python principal = 5000 rate = 2 / 100 # 0.02 years = 4 value = principal * (1 + rate) ** years # 5412.1608 print(f"{value:.2f}") ``` Execution prints: 5412.16 It is worth $5,412.16.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What does $5,000 grow to in 4 years at 2% annual compounding?" }, { "role": "assistant", "content": "```python\nprincipal = 5000\nrate = 2 / 100 # 0.02\nyears = 4\nvalue = principal * (1 + rate) ** years # 5412.1608\nprint(f\"{value:.2f}\")\n```\nExecution prints:...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "5412.16", "printed": "5412.16", "notation": null}
nlprog_det-setting-0056987
Water costs $12 a month plus $5.10 for each 1,000 gallons over 0,000. What is owed for 25,000 gallons? Translated to Python: ```python base = 12 rate = 5.1 used = 25 free = 0 bill = base + rate * max(0, used - free) print(f"{bill:.2f}") ``` What it prints — 139.50 The bill is $139.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "139.50", "printed": "139.50", "notation": null}
nlprog_det-setting-0056988
<|start|><|user|> Meals are $64 per day and lodging $110 per night. What is the allowance for 7 days and 6 nights?<|eot|> <|assistant|> ```python days = 7 meal_rate = 64 lodging_rate = 110 nights = days - 1 # 6 total = days * meal_rate + nights * lodging_rate # 1108 print(total) ``` Execution prints 1108, as expected...
chat
[ { "role": "user", "content": "Meals are $64 per day and lodging $110 per night. What is the allowance for 7 days and 6 nights?" }, { "role": "assistant", "content": "```python\ndays = 7\nmeal_rate = 64\nlodging_rate = 110\nnights = days - 1 # 6\ntotal = days * meal_rate + nights * lodging_rate ...
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "1108", "printed": "1108", "notation": null}
nlprog_det-setting-0056989
<|start|><|user|> Revenue is $20,500 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|> <|assistant|> The margin is 2.4%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Revenue is $20,500 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?" }, { "role": "assistant", "content": "The margin is 2.4%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "2.4", "printed": "2.4", "notation": null}
nlprog_det-setting-0056990
<|start|><|system|> You are a patient tutor.<|eot|> <|user|> Split $4,152 between Wanjiru and Wen in the ratio 3 to 5. What is Wanjiru's share?<|eot|> <|assistant|> ```python total = 4152 parts_a = 3 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 1557 print(share_a) ``` Execution prints 1557, as expect...
chat
[ { "role": "system", "content": "You are a patient tutor." }, { "role": "user", "content": "Split $4,152 between Wanjiru and Wen in the ratio 3 to 5. What is Wanjiru's share?" }, { "role": "assistant", "content": "```python\ntotal = 4152\nparts_a = 3\nparts_b = 5\nshare_a = total * pa...
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "1557", "printed": "1557", "notation": null}
nlprog_det-setting-0056991
<|start|><|system|> You are a logic tutor.<|eot|> <|user|> 4 clients win $96,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> ```python award = 96000 fee = award * 40 / 100 # 38400.0 remaining = award - fee # 57600.0 per_client = remaining / 4 # 14400.0 pr...
chat
[ { "role": "system", "content": "You are a logic tutor." }, { "role": "user", "content": "4 clients win $96,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": "```python\naward = 96000\nfee = award * 40 / 100 ...
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "14400.00", "printed": "14400.00", "notation": null}
nlprog_det-setting-0056992
3 clients win $96,000. The lawyer takes 30%, and the rest is split equally. How much does each client get? Programmatically: ```python award = 96000 fee = award * 30 / 100 # 28800.0 remaining = award - fee # 67200.0 per_client = remaining / 3 # 22400.0 print(f"{per_client:.2f}") ``` On running, it outputs: 22400.00...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "22400.00", "printed": "22400.00", "notation": null}
nlprog_det-setting-0056993
<|start|><|user|> 4 bike rides at 300 calories each burn how many calories in total?<|eot|> <|assistant|> 1200 calories in total.<|eot|> <|end|>
chat
[ { "role": "user", "content": "4 bike rides at 300 calories each burn how many calories in total?" }, { "role": "assistant", "content": "1200 calories in total." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0056994
A meal costs $149.82. How much is a 22% tip? Computation in Python: ```python bill = 149.82 tip_rate = 22 / 100 # 0.22 tip = bill * tip_rate # 32.9604 print(f"{tip:.2f}") ``` # out: 32.96 Leave $32.96.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "32.96", "printed": "32.96", "notation": null}
nlprog_det-setting-0056995
Parking is $5 per hour with a daily maximum of $18. What do 10 hours cost? The computation: ```python rate = 5 hours = 10 daily_max = 18 cost = min(rate * hours, daily_max) # 18 print(cost) ``` This prints: 18 The charge is $18.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0056996
<|start|><|system|> Answer in plain English.<|eot|> <|user|> Starting from $5,000, the team spends $2,600, $2,349, $1,663. What remains?<|eot|> <|assistant|> ```python budget = 5000 expenses = [2600, 2349, 1663] left = budget - sum(expenses) # -1612 print(left) ``` # output: -1612 The remaining budget is -$1,612.<|eo...
chat
[ { "role": "system", "content": "Answer in plain English." }, { "role": "user", "content": "Starting from $5,000, the team spends $2,600, $2,349, $1,663. What remains?" }, { "role": "assistant", "content": "```python\nbudget = 5000\nexpenses = [2600, 2349, 1663]\nleft = budget - sum(e...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "-1612", "printed": "-1612", "notation": null}
nlprog_det-setting-0056997
<|start|><|user|> A meal costs $59.00. How much is a 20% tip?<|eot|> <|assistant|> ```python bill = 59.0 tip_rate = 20 / 100 # 0.2 tip = bill * tip_rate # 11.8 print(f"{tip:.2f}") ``` (Out: 11.80) Leave $11.80.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A meal costs $59.00. How much is a 20% tip?" }, { "role": "assistant", "content": "```python\nbill = 59.0\ntip_rate = 20 / 100 # 0.2\ntip = bill * tip_rate # 11.8\nprint(f\"{tip:.2f}\")\n```\n(Out: 11.80)\n\nLeave $11.80." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "11.80", "printed": "11.80", "notation": null}
nlprog_det-setting-0056998
From a $5,000 retainer, 2 hours at $275/hour have been drawn. What remains? We can compute it in Python. ```python retainer = 5000 hours = 2 rate = 275 left = retainer - hours * rate # 4450 print(left) ``` Execution result: 4450 $4,450 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "4450", "printed": "4450", "notation": null}
nlprog_det-setting-0057000
<|start|><|user|> A $30,000 grant pays $0 up front and the rest in 4 equal installments. How large is each installment?<|eot|> <|assistant|> ```python grant = 30000 up_front = 0 installments = 4 each = (grant - up_front) / installments # 7500.0 print(f"{each:.2f}") ``` Run result = 7500.00 Each installment is $7,500....
chat
[ { "role": "user", "content": "A $30,000 grant pays $0 up front and the rest in 4 equal installments. How large is each installment?" }, { "role": "assistant", "content": "```python\ngrant = 30000\nup_front = 0\ninstallments = 4\neach = (grant - up_front) / installments # 7500.0\nprint(f\"{each:...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "7500.00", "printed": "7500.00", "notation": null}
nlprog_det-setting-0057001
Jonas earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 47-hour week? We write it as a program: rate = 16.0 hours = 47 regular = 40 * rate # 640.0 overtime = (hours - 40) * rate * 1.5 # 168.0 pay = regular + overtime # 808.0 print(f"{pay:.2f}") Out — 808.00 T...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "808.00", "printed": "808.00", "notation": null}