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-0051518
<|start|><|user|> At an exchange rate of 0.92 USD per GBP, how many USD is 6,480 GBP?<|eot|> <|assistant|> ```python amount = 6480 rate = 0.92 converted = amount * rate # 5961.6 print(f"{converted:.2f}") ``` The program outputs 5961.60. It converts to 5,961.60 USD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At an exchange rate of 0.92 USD per GBP, how many USD is 6,480 GBP?" }, { "role": "assistant", "content": "```python\namount = 6480\nrate = 0.92\nconverted = amount * rate # 5961.6\nprint(f\"{converted:.2f}\")\n```\nThe program outputs 5961.60.\n\nIt converts to 5,...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "5961.60", "printed": "5961.60", "notation": null}
nlprog_det-setting-0051519
<|start|><|user|> Convert 4 h 16 min (the length of a film) to minutes.<|eot|> <|assistant|> ```python hours = 4 minutes = 16 total_minutes = hours * 60 + minutes # 256 print(total_minutes) ``` Output = 256 The film lasted 256 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 4 h 16 min (the length of a film) to minutes." }, { "role": "assistant", "content": "```python\nhours = 4\nminutes = 16\ntotal_minutes = hours * 60 + minutes # 256\nprint(total_minutes)\n```\nOutput = 256\n\nThe film lasted 256 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "256", "printed": "256", "notation": null}
nlprog_det-setting-0051520
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> Flooring at $6/sq ft for a 18 ft × 7 ft room costs how much?<|eot|> <|assistant|> It costs $756.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "Flooring at $6/sq ft for a 18 ft × 7 ft room costs how much?" }, { "role": "assistant", "content": "It costs $756." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
50
{"gold": "756", "printed": "756", "notation": null}
nlprog_det-setting-0051521
A 6% increase is applied to $2,200 monthly rent. What is the new amount? Python, step by step: rent = 2200 increase = 6 / 100 # 0.06 new_rent = rent * (1 + increase) # 2332.0 print(f"{new_rent:.2f}") Executed, it shows 2332.00. The new rent is $2,332.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "2332.00", "printed": "2332.00", "notation": null}
nlprog_det-setting-0051522
<|start|><|system|> Avoid unnecessary detail.<|eot|> <|user|> Monthly: $29. Annual: $318. What is saved per year by paying annually?<|eot|> <|assistant|> ```python monthly = 29 yearly = 318 savings = monthly * 12 - yearly # 30 print(savings) ``` On running, it outputs 30. $30 is saved.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Avoid unnecessary detail." }, { "role": "user", "content": "Monthly: $29. Annual: $318. What is saved per year by paying annually?" }, { "role": "assistant", "content": "```python\nmonthly = 29\nyearly = 318\nsavings = monthly * 12 - yearly # 30\nprin...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0051523
Helga has 16 documents to file, and each filing costs $75. How much are the filing fees in total? Let's compute it with Python. ```python fee = 75 filings = 16 total = fee * filings # 1200 print(total) ``` Program output: 1200 $1,200 in filing fees.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0051524
4 clients win $48,000. The lawyer takes 25%, and the rest is split equally. How much does each client get? Python does the arithmetic: ```python award = 48000 fee = award * 25 / 100 # 12000.0 remaining = award - fee # 36000.0 per_client = remaining / 4 # 9000.0 print(f"{per_client:.2f}") ``` That prints: 9000.00 E...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "9000.00", "printed": "9000.00", "notation": null}
nlprog_det-setting-0051525
<|start|><|system|> You are a patient tutor.<|eot|> <|user|> The building opened in 2018. How many years had passed by 2023?<|eot|> <|assistant|> ```python start_year = 2018 end_year = 2023 print(end_year - start_year) ``` stdout = 5 That is 5 years.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a patient tutor." }, { "role": "user", "content": "The building opened in 2018. How many years had passed by 2023?" }, { "role": "assistant", "content": "```python\nstart_year = 2018\nend_year = 2023\nprint(end_year - start_year)\n```\nstdout =...
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0051526
<|start|><|user|> Shipping costs $12 plus $2.50 per pound. What does a 21-pound parcel cost to ship?<|eot|> <|assistant|> base = 12 per_pound = 2.5 weight = 21 cost = base + per_pound * weight # 64.5 print(f"{cost:.2f}") Out — 64.50 Shipping costs $64.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Shipping costs $12 plus $2.50 per pound. What does a 21-pound parcel cost to ship?" }, { "role": "assistant", "content": " base = 12\n per_pound = 2.5\n weight = 21\n cost = base + per_pound * weight # 64.5\n print(f\"{cost:.2f}\")\nOut — 64.50\n\nSh...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "64.50", "printed": "64.50", "notation": null}
nlprog_det-setting-0051527
At 1% a month (simple), what interest builds on $12,000 over 4 months? The interest is $480.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "480.00", "printed": "480.00", "notation": null}
nlprog_det-setting-0051528
<|start|><|system|> You are a careful reviewer of figures.<|eot|> <|user|> Monthly: $29. Annual: $300. What is saved per year by paying annually?<|eot|> <|assistant|> ```python monthly = 29 yearly = 300 savings = monthly * 12 - yearly # 48 print(savings) ``` Program output — 48 $48 is saved.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a careful reviewer of figures." }, { "role": "user", "content": "Monthly: $29. Annual: $300. What is saved per year by paying annually?" }, { "role": "assistant", "content": "```python\nmonthly = 29\nyearly = 300\nsavings = monthly * 12 - yearl...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0051530
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> Convert 5 h 35 min (the length of a meeting) to minutes.<|eot|> <|assistant|> ```python hours = 5 minutes = 35 total_minutes = hours * 60 + minutes print(total_minutes) ``` Out: 335 That is 335 minutes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "Convert 5 h 35 min (the length of a meeting) to minutes." }, { "role": "assistant", "content": "```python\nhours = 5\nminutes = 35\ntotal_minutes = hours * 60 + minutes\nprint(t...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "335", "printed": "335", "notation": null}
nlprog_det-setting-0051531
A hall has 24 rows of 18 seats, and 29 seats are empty. How many people are seated? ```python rows = 24 per_row = 18 empty = 29 seated = rows * per_row - empty # 403 print(seated) ``` It outputs 403. 403 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "403", "printed": "403", "notation": null}
nlprog_det-setting-0051532
With $12,500 in costs and $17,500 in revenue, what percent of revenue is profit? Round to one decimal. Here is a short program for it. ```python revenue = 17500 costs = 12500 profit = revenue - costs # 5000 margin = profit / revenue * 100 # 28.57142857142857 print(round(margin, 1)) ``` The program prints 28.6. Prof...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "28.6", "printed": "28.6", "notation": null}
nlprog_det-setting-0051533
<|start|><|user|> Water costs $18 a month plus $3.50 for each 1,000 gallons over 0,000. What is owed for 25,000 gallons?<|eot|> <|assistant|> The bill is $105.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Water costs $18 a month plus $3.50 for each 1,000 gallons over 0,000. What is owed for 25,000 gallons?" }, { "role": "assistant", "content": "The bill is $105.50." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
52
{"gold": "105.50", "printed": "105.50", "notation": null}
nlprog_det-setting-0051534
3 claimants share a $525 settlement equally. What is each share? A Python solution: ```python settlement = 525 parties = 3 share = settlement // parties # 175 print(share) ``` (stdout: 175) Each party receives $175.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "175", "printed": "175", "notation": null}
nlprog_det-setting-0051535
Divide 93 items among 8 groups as evenly as possible with equal groups. How many per group, and how many remain? Computation in Python: ```python total = 93 groups = 8 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` This prints: 11 each, 5 left over The answer: 11 ea...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "11 each, 5 left over", "printed": "11 each, 5 left over", "notation": null}
nlprog_det-setting-0051536
A water bill is $12 plus $3.50 per thousand gallons beyond the first 3 thousand. What is the bill for 15 thousand gallons? Program: ```python base = 12 rate = 3.5 used = 15 free = 3 bill = base + rate * max(0, used - free) # 54.0 print(f"{bill:.2f}") ``` (Console output: 54.00) $54.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "54.00", "printed": "54.00", "notation": null}
nlprog_det-setting-0051537
A $1,200 loan carries 5% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment? We can compute it in Python. ```python principal = 1200 annual_rate = 5 / 100 # 0.05 months = 36 interest = principal * annual_rate * months / 12 # 180.0 payment = (princ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
157
{"gold": "38.33", "printed": "38.33", "notation": null}
nlprog_det-setting-0051538
An invoice lists 32 scissors at $2 each, plus 5% sales tax. What is the invoice total? We write it as a program: ```python quantity = 32 unit_price = 2 subtotal = quantity * unit_price # 64 total = subtotal * (1 + 5 / 100) # 67.2 print(f"{total:.2f}") ``` Executing it gives 67.20, as expected. The total with tax is...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "67.20", "printed": "67.20", "notation": null}
nlprog_det-setting-0051539
With $20,000 in costs and $22,500 in revenue, what percent of revenue is profit? Round to one decimal. ```python revenue = 22500 costs = 20000 profit = revenue - costs # 2500 margin = profit / revenue * 100 # 11.11111111111111 print(round(margin, 1)) ``` Console: 11.1 The margin is 11.1%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "11.1", "printed": "11.1", "notation": null}
nlprog_det-setting-0051540
<|start|><|user|> Fixed costs are $1,200. Each unit sells for $15 and costs $9 to make. How many units must be sold to break even?<|eot|> <|assistant|> ```python import math fixed = 1200 price = 15 variable = 9 units = math.ceil(fixed / (price - variable)) # 200 print(units) ``` Running it prints 200. Break-even is 2...
chat
[ { "role": "user", "content": "Fixed costs are $1,200. Each unit sells for $15 and costs $9 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 1200\nprice = 15\nvariable = 9\nunits = math.ceil(fixed / (price - variable)) # 2...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "200", "printed": "200", "notation": null}
nlprog_det-setting-0051541
1.5 hours of work at $250 an hour: what is the total charge? Let the code do the arithmetic: ```python hours = 1.5 rate = 250 bill = hours * rate # 375.0 print(f"{bill:.2f}") ``` When run, it prints 375.00, as expected. That comes to $375.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "375.00", "printed": "375.00", "notation": null}
nlprog_det-setting-0051542
Fixed costs are $2,500. Each unit sells for $25 and costs $20 to make. How many units must be sold to break even? Python does the arithmetic: ```python import math fixed = 2500 price = 25 variable = 20 units = math.ceil(fixed / (price - variable)) # 500 print(units) ``` The run gives 500. 500 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "500", "printed": "500", "notation": null}
nlprog_det-setting-0051543
Mateo drove 269 miles for work. Mileage is reimbursed at 67 cents a mile. How much is the reimbursement? Python: ```python miles = 269 rate = 0.67 reimbursement = miles * rate # 180.23000000000002 print(f"{reimbursement:.2f}") ``` Run it and it prints: 180.23 Mateo is owed $180.23.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "180.23", "printed": "180.23", "notation": null}
nlprog_det-setting-0051544
<|start|><|user|> A $210 dinner bill gets a 20% tip, and 6 people share the cost equally. What is each person's share?<|eot|> <|assistant|> ```python bill = 210 tip_rate = 20 / 100 # 0.2 people = 6 each = bill * (1 + tip_rate) / people # 42.0 print(f"{each:.2f}") ``` Running it prints 42.00. Each person pays $42.00....
chat
[ { "role": "user", "content": "A $210 dinner bill gets a 20% tip, and 6 people share the cost equally. What is each person's share?" }, { "role": "assistant", "content": "```python\nbill = 210\ntip_rate = 20 / 100 # 0.2\npeople = 6\neach = bill * (1 + tip_rate) / people # 42.0\nprint(f\"{each:....
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "42.00", "printed": "42.00", "notation": null}
nlprog_det-setting-0051545
<|start|><|user|> 779 files go into boxes of 12. How many boxes does that take?<|eot|> <|assistant|> ```python import math files = 779 per_box = 12 boxes = math.ceil(files / per_box) print(boxes) ``` # out: 65 It takes 65 boxes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "779 files go into boxes of 12. How many boxes does that take?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 779\nper_box = 12\nboxes = math.ceil(files / per_box)\nprint(boxes)\n```\n# out: 65\n\nIt takes 65 boxes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "65", "printed": "65", "notation": null}
nlprog_det-setting-0051546
Monthly: $12. Annual: $108. What is saved per year by paying annually? Program: ```python monthly = 12 yearly = 108 savings = monthly * 12 - yearly print(savings) ``` What it prints — 36 The annual plan saves $36.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0051548
At $29.58 an hour, what does 38 hours of work pay? A short script: rate = 29.58 hours = 38 earnings = rate * hours print(f"{earnings:.2f}") Printed = 1124.04 That earns $1,124.04.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "1124.04", "printed": "1124.04", "notation": null}
nlprog_det-setting-0051549
<|start|><|system|> Keep answers short and correct.<|eot|> <|user|> A library charges $0.10 per book per day late. What is the fine for 1 books that are 2 days late?<|eot|> <|assistant|> ```python per_day = 0.1 days_late = 2 books = 1 fine = per_day * days_late * books # 0.2 print(f"{fine:.2f}") ``` Running it prints:...
chat
[ { "role": "system", "content": "Keep answers short and correct." }, { "role": "user", "content": "A library charges $0.10 per book per day late. What is the fine for 1 books that are 2 days late?" }, { "role": "assistant", "content": "```python\nper_day = 0.1\ndays_late = 2\nbooks = ...
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "0.20", "printed": "0.20", "notation": null}
nlprog_det-setting-0051550
<|start|><|system|> You are a teaching assistant.<|eot|> <|user|> Filing fees are $35 per document. What do 14 filings cost?<|eot|> <|assistant|> ```python fee = 35 filings = 14 total = fee * filings # 490 print(total) ``` (Result: 490) The total fee is $490.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a teaching assistant." }, { "role": "user", "content": "Filing fees are $35 per document. What do 14 filings cost?" }, { "role": "assistant", "content": "```python\nfee = 35\nfilings = 14\ntotal = fee * filings # 490\nprint(total)\n```\n(Resul...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "490", "printed": "490", "notation": null}
nlprog_det-setting-0051551
<|start|><|system|> Functions: {"name": "interpreter", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> After an initial $0, the remainder of a $30,000...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"interpreter\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program\"]}}" }, ...
nlprog_det
setting
original
null
deterministic
[]
[]
225
{"gold": "2500.00", "printed": "2500.00", "notation": null}
nlprog_det-setting-0051552
4 clients win $96,000. The lawyer takes 40%, and the rest is split equally. How much does each client get? Let's compute it with Python. ```python award = 96000 fee = award * 40 / 100 remaining = award - fee per_client = remaining / 4 print(f"{per_client:.2f}") ``` Out: 14400.00 Each share is $14,400.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "14400.00", "printed": "14400.00", "notation": null}
nlprog_det-setting-0051553
A recipe for 6 people uses 150 grams of pasta. How many grams are needed for 3 people? In Python: ```python grams = 150 serves = 6 needed_for = 3 scaled = grams * needed_for // serves # 75 print(scaled) ``` The program outputs 75. Use 75 g of pasta.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "75", "printed": "75", "notation": null}
nlprog_det-setting-0051554
<|start|><|user|> Ulla earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 44-hour week?<|eot|> <|assistant|> rate = 18.5 hours = 44 regular = 40 * rate overtime = (hours - 40) * rate * 1.5 pay = regular + overtime print(f"{pay:.2f}") Printed result: 851.00 Ulla ea...
chat
[ { "role": "user", "content": "Ulla earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 44-hour week?" }, { "role": "assistant", "content": " rate = 18.5\n hours = 44\n regular = 40 * rate\n overtime = (hours - 40) * rate * 1.5\n pay = regular + overti...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "851.00", "printed": "851.00", "notation": null}
nlprog_det-setting-0051555
<|start|><|system|> You check calculations for an accounting team.<|eot|> <|user|> What average speed covers 35 miles in 1 hours?<|eot|> <|assistant|> ```python distance = 35 hours = 1 speed = distance / hours # 35.0 print(round(speed)) ``` # execution result: 35 The average speed is 35 mph.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You check calculations for an accounting team." }, { "role": "user", "content": "What average speed covers 35 miles in 1 hours?" }, { "role": "assistant", "content": "```python\ndistance = 35\nhours = 1\nspeed = distance / hours # 35.0\nprint(round(sp...
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "35", "printed": "35", "notation": null}
nlprog_det-setting-0051556
<|start|><|user|> Dara earns a 6% commission on $107,155 of sales. What is the commission?<|eot|> <|assistant|> ```python sales = 107155 rate = 6 / 100 commission = sales * rate print(f"{commission:.2f}") ``` Out: 6429.30 Dara earns $6,429.30.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Dara earns a 6% commission on $107,155 of sales. What is the commission?" }, { "role": "assistant", "content": "```python\nsales = 107155\nrate = 6 / 100\ncommission = sales * rate\nprint(f\"{commission:.2f}\")\n```\nOut:\n6429.30\n\nDara earns $6,429.30." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "6429.30", "printed": "6429.30", "notation": null}
nlprog_det-setting-0051557
To read 570 pages in 10 days, how many pages per day are needed? As Python: ```python pages = 570 days = 10 per_day = pages // days # 57 print(per_day) ``` This prints 57. 57 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "57", "printed": "57", "notation": null}
nlprog_det-setting-0051559
<|start|><|system|> You help paralegals with routine tasks.<|eot|> <|user|> 4 clients win $72,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> Each share is $10,800.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help paralegals with routine tasks." }, { "role": "user", "content": "4 clients win $72,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": "Each share is $10,800.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
61
{"gold": "10800.00", "printed": "10800.00", "notation": null}
nlprog_det-setting-0051560
<|start|><|system|> Functions: {"name": "code_runner", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}} {"name": "fetch_filing", "description": "Fetch a...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"code_runner\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippe...
nlprog_det
setting
original
null
deterministic
[]
[]
293
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0051561
An office budget of $25,000 has expenses of $3,800, $1,056, $1,511. How much of the budget is left? $18,633 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "18633", "printed": "18633", "notation": null}
nlprog_det-setting-0051562
How long, in days, is it from December 13, 2024 until December 4, 2025? Code: from datetime import date first = date(2024, 12, 13) # datetime.date(2024, 12, 13) second = date(2025, 12, 4) # datetime.date(2025, 12, 4) print((second - first).days) (Printed: 356) It is 356 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "356", "printed": "356", "notation": null}
nlprog_det-setting-0051564
<|start|><|user|> An office budget of $25,000 has expenses of $2,099, $857, $3,856. How much of the budget is left?<|eot|> <|assistant|> ```python budget = 25000 expenses = [2099, 857, 3856] left = budget - sum(expenses) # 18188 print(left) ``` Output — 18188 $18,188 is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An office budget of $25,000 has expenses of $2,099, $857, $3,856. How much of the budget is left?" }, { "role": "assistant", "content": "```python\nbudget = 25000\nexpenses = [2099, 857, 3856]\nleft = budget - sum(expenses) # 18188\nprint(left)\n```\nOutput — 18188...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "18188", "printed": "18188", "notation": null}
nlprog_det-setting-0051565
At 2% a month (simple), what interest builds on $2,500 over 4 months? The interest is $200.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "200.00", "printed": "200.00", "notation": null}
nlprog_det-setting-0051567
<|start|><|user|> How many days are there from August 2, 2023 to November 10, 2023?<|eot|> <|assistant|> ```python from datetime import date first = date(2023, 8, 2) # datetime.date(2023, 8, 2) second = date(2023, 11, 10) # datetime.date(2023, 11, 10) print((second - first).days) ``` Program output: 100 It is 100 da...
chat
[ { "role": "user", "content": "How many days are there from August 2, 2023 to November 10, 2023?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2023, 8, 2) # datetime.date(2023, 8, 2)\nsecond = date(2023, 11, 10) # datetime.date(2023, 11, 10)\nprint((s...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "100", "printed": "100", "notation": null}
nlprog_det-setting-0051568
The landlord deducts $60 from a $2,500 deposit. What is returned to the tenant? Program: ```python deposit = 2500 deductions = [60] refund = deposit - sum(deductions) # 2440 print(refund) ``` Output = 2440 $2,440 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "2440", "printed": "2440", "notation": null}
nlprog_det-setting-0051569
An invoice lists 37 paper reams at $15 each, plus 5% sales tax. What is the invoice total? We can compute it in Python. ```python quantity = 37 unit_price = 15 subtotal = quantity * unit_price # 555 total = subtotal * (1 + 5 / 100) # 582.75 print(f"{total:.2f}") ``` stdout = 582.75 The total with tax is $582.75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "582.75", "printed": "582.75", "notation": null}
nlprog_det-setting-0051570
<|start|><|user|> Rania earns a 3% commission on $76,832 of sales. What is the commission?<|eot|> <|assistant|> ```python sales = 76832 rate = 3 / 100 commission = sales * rate print(f"{commission:.2f}") ``` (Out: 2304.96) Rania earns $2,304.96.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rania earns a 3% commission on $76,832 of sales. What is the commission?" }, { "role": "assistant", "content": "```python\nsales = 76832\nrate = 3 / 100\ncommission = sales * rate\nprint(f\"{commission:.2f}\")\n```\n(Out: 2304.96)\n\nRania earns $2,304.96." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "2304.96", "printed": "2304.96", "notation": null}
nlprog_det-setting-0051571
<|start|><|system|> Double-check numbers before answering.<|eot|> <|user|> How many minutes pass from 9:19 AM to 12:40 PM on the same day?<|eot|> <|assistant|> ```python start = 9 * 60 + 19 end = 12 * 60 + 40 print(end - start) ``` stdout — 201 201 minutes pass.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Double-check numbers before answering." }, { "role": "user", "content": "How many minutes pass from 9:19 AM to 12:40 PM on the same day?" }, { "role": "assistant", "content": "```python\nstart = 9 * 60 + 19\nend = 12 * 60 + 40\nprint(end - start)\n```\...
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "201", "printed": "201", "notation": null}
nlprog_det-setting-0051572
<|start|><|user|> Copies cost $15 plus $0.50 for each page beyond 10. How much for 31 pages?<|eot|> <|assistant|> pages = 31 base = 15 per_page = 0.5 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 25.5 print(f"{cost:.2f}") stdout: 25.50 The total is $25.50.<|eot|> <|end|...
chat
[ { "role": "user", "content": "Copies cost $15 plus $0.50 for each page beyond 10. How much for 31 pages?" }, { "role": "assistant", "content": " pages = 31\n base = 15\n per_page = 0.5\n free_pages = 10\n cost = base + max(0, pages - free_pages) * per_page # 25.5\n print(f\"{c...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "25.50", "printed": "25.50", "notation": null}
nlprog_det-setting-0051573
<|start|><|user|> Express 71 hours in days and hours.<|eot|> <|assistant|> ```python hours = 71 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Result = 2 days and 23 hours 71 hours is 2 days and 23 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Express 71 hours in days and hours." }, { "role": "assistant", "content": "```python\nhours = 71\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nResult = 2 days and 23 hours\n\n71 hours is 2 days and 23 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "2 days and 23 hours", "printed": "2 days and 23 hours", "notation": null}
nlprog_det-setting-0051574
<|start|><|system|> Keep explanations short.<|eot|> <|user|> A 6-day trip pays $69 a day for meals and $110 a night for lodging (5 nights). What is the total allowance?<|eot|> <|assistant|> ```python days = 6 meal_rate = 69 lodging_rate = 110 nights = days - 1 # 5 total = days * meal_rate + nights * lodging_rate # 96...
chat
[ { "role": "system", "content": "Keep explanations short." }, { "role": "user", "content": "A 6-day trip pays $69 a day for meals and $110 a night for lodging (5 nights). What is the total allowance?" }, { "role": "assistant", "content": "```python\ndays = 6\nmeal_rate = 69\nlodging_r...
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "964", "printed": "964", "notation": null}
nlprog_det-setting-0051575
A court charges $10 per request plus $0.25 per page after the first 0 pages. What does a 30-page copy cost? Code: ```python pages = 30 base = 10 per_page = 0.25 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 17.5 print(f"{cost:.2f}") ``` Running this gives 17.50. The copy costs $17.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "17.50", "printed": "17.50", "notation": null}
nlprog_det-setting-0051576
<|start|><|user|> Sales went from 200 to 280. What is the percent change?<|eot|> <|assistant|> old = 200 new = 280 change = (new - old) / old * 100 # 40.0 print(round(change)) Executed, it shows: 40 It changed by 40%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Sales went from 200 to 280. What is the percent change?" }, { "role": "assistant", "content": " old = 200\n new = 280\n change = (new - old) / old * 100 # 40.0\n print(round(change))\nExecuted, it shows: 40\n\nIt changed by 40%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0051577
<|start|><|user|> A measure needs at least 67% of 77 votes. How many votes is that, rounded up?<|eot|> <|assistant|> ```python import math voters = 77 needed = math.ceil(voters * 67 / 100) # 52 print(needed) ``` Console: 52 At least 52 votes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A measure needs at least 67% of 77 votes. How many votes is that, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 77\nneeded = math.ceil(voters * 67 / 100) # 52\nprint(needed)\n```\nConsole:\n52\n\nAt least 52 votes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "52", "printed": "52", "notation": null}
nlprog_det-setting-0051578
What does $5,000 grow to in 3 years at 5% annual compounding? Translated to Python: ```python principal = 5000 rate = 5 / 100 # 0.05 years = 3 value = principal * (1 + rate) ** years # 5788.125000000001 print(f"{value:.2f}") ``` Output: 5788.13 The balance is $5,788.13.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "5788.13", "printed": "5788.13", "notation": null}
nlprog_det-setting-0051579
<|start|><|user|> How long, in days, is it from February 20, 2026 until December 19, 2026?<|eot|> <|assistant|> ```python from datetime import date first = date(2026, 2, 20) # datetime.date(2026, 2, 20) second = date(2026, 12, 19) # datetime.date(2026, 12, 19) print((second - first).days) ``` The run gives: 302 Ther...
chat
[ { "role": "user", "content": "How long, in days, is it from February 20, 2026 until December 19, 2026?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2026, 2, 20) # datetime.date(2026, 2, 20)\nsecond = date(2026, 12, 19) # datetime.date(2026, 12, 19)\...
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "302", "printed": "302", "notation": null}
nlprog_det-setting-0051580
Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 41 hours? ```python rate = 25.0 hours = 41 regular = 40 * rate # 1000.0 overtime = (hours - 40) * rate * 1.5 # 37.5 pay = regular + overtime # 1037.5 print(f"{pay:.2f}") ``` Run result = 1037.50 The weekly pay is $1,037.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "1037.50", "printed": "1037.50", "notation": null}
nlprog_det-setting-0051581
How many days are there from August 9, 2018 to September 28, 2018? Set it up in Python: ```python from datetime import date first = date(2018, 8, 9) # datetime.date(2018, 8, 9) second = date(2018, 9, 28) # datetime.date(2018, 9, 28) print((second - first).days) ``` This prints 50, as expected. There are 50 days bet...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0051582
Parking is $5 per hour with a daily maximum of $20. What do 8 hours cost? Computation in Python: ```python rate = 5 hours = 8 daily_max = 20 cost = min(rate * hours, daily_max) # 20 print(cost) ``` The run gives 20, as expected. Parking costs $20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0051583
<|start|><|system|> You help paralegals with routine tasks.<|eot|> <|user|> 11 boxes hold 6 staplers each. After 10 are handed out, how many are left?<|eot|> <|assistant|> ```python boxes = 11 per_box = 6 given_away = 10 left = boxes * per_box - given_away # 56 print(left) ``` The program prints 56, as expected. That...
chat
[ { "role": "system", "content": "You help paralegals with routine tasks." }, { "role": "user", "content": "11 boxes hold 6 staplers each. After 10 are handed out, how many are left?" }, { "role": "assistant", "content": "```python\nboxes = 11\nper_box = 6\ngiven_away = 10\nleft = boxe...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "56", "printed": "56", "notation": null}
nlprog_det-setting-0051584
At 1.5% a month (simple), what interest builds on $4,000 over 6 months? Python does the arithmetic: ```python balance = 4000 monthly_rate = 1.5 / 100 # 0.015 months = 6 interest = balance * monthly_rate * months # 360.0 print(f"{interest:.2f}") ``` # program output: 360.00 The interest is $360.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "360.00", "printed": "360.00", "notation": null}
nlprog_det-setting-0051585
<|start|><|user|> Pay is $22.40/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 44 hours?<|eot|> <|assistant|> The weekly pay is $1,030.40.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Pay is $22.40/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 44 hours?" }, { "role": "assistant", "content": "The weekly pay is $1,030.40." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
54
{"gold": "1030.40", "printed": "1030.40", "notation": null}
nlprog_det-setting-0051586
<|start|><|system|> You may call the tools below. [{"name": "eval_python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> A party has...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"eval_python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"r...
nlprog_det
setting
original
null
deterministic
[]
[]
280
{"gold": "2025-09-21", "printed": "2025-09-21", "notation": null}
nlprog_det-setting-0051587
Convert 7,536 USD to CAD at 1 USD = 1.31 CAD. ```python amount = 7536 rate = 1.31 converted = amount * rate # 9872.16 print(f"{converted:.2f}") ``` The script prints 9872.16. That is 9,872.16 CAD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "9872.16", "printed": "9872.16", "notation": null}
nlprog_det-setting-0051588
A 33 lb package ships at $5 base plus $1.50/lb. What is the charge? Translated to Python: ```python base = 5 per_pound = 1.5 weight = 33 cost = base + per_pound * weight # 54.5 print(f"{cost:.2f}") ``` This prints 54.50, as expected. Shipping costs $54.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "54.50", "printed": "54.50", "notation": null}
nlprog_det-setting-0051589
<|start|><|system|> Tools you may use: [{"name": "math_engine", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "business_days", "description": "Cou...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"math_engine\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"prog...
nlprog_det
setting
original
null
deterministic
[]
[]
301
{"gold": "250", "printed": "250", "notation": null}
nlprog_det-setting-0051590
How many minutes pass from 10:21 AM to 2:39 PM on the same day? A Python solution: ```python start = 10 * 60 + 21 # 621 end = 14 * 60 + 39 # 879 print(end - start) ``` Executing it gives: 258 258 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "258", "printed": "258", "notation": null}
nlprog_det-setting-0051591
<|start|><|system|> Avoid unnecessary detail.<|eot|> <|user|> An invoice lists 22 calendars at $9 each, plus 10% sales tax. What is the invoice total?<|eot|> <|assistant|> The invoice total is $217.80.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Avoid unnecessary detail." }, { "role": "user", "content": "An invoice lists 22 calendars at $9 each, plus 10% sales tax. What is the invoice total?" }, { "role": "assistant", "content": "The invoice total is $217.80." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
58
{"gold": "217.80", "printed": "217.80", "notation": null}
nlprog_det-setting-0051593
At $0.62 per mile, what is the reimbursement for 471 miles? The program: ```python miles = 471 rate = 0.62 reimbursement = miles * rate # 292.02 print(f"{reimbursement:.2f}") ``` Executing it gives 292.02. The reimbursement is $292.02.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "292.02", "printed": "292.02", "notation": null}
nlprog_det-setting-0051594
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> An unpaid balance of $12,000 accrues 1% simple interest per month. How much interest accrues in 6 months?<|eot|> <|assistant|> balance = 12000 monthly_rate = 1 / 100 months = 6 interest = balance * monthly_rate * months print(f"{inter...
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "role": "user", "content": "An unpaid balance of $12,000 accrues 1% simple interest per month. How much interest accrues in 6 months?" }, { "role": "assistant", "content": " balance = 12000\n monthly_rate = 1 /...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "720.00", "printed": "720.00", "notation": null}
nlprog_det-setting-0051595
The meal allowance is $79 per day. What is it for 7 days? Python code: ```python days = 7 meal_rate = 79 total = days * meal_rate # 553 print(total) ``` The code prints 553. That comes to $553.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "553", "printed": "553", "notation": null}
nlprog_det-setting-0051596
Marek has 5 documents to file, and each filing costs $75. How much are the filing fees in total? Python code: ```python fee = 75 filings = 5 total = fee * filings # 375 print(total) ``` Run result — 375 The total fee is $375.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "375", "printed": "375", "notation": null}
nlprog_det-setting-0051597
A lawyer's fee is 25% of a $25,000 recovery. How large is the fee? Script: ```python recovery = 25000 rate = 25 / 100 # 0.25 fee = recovery * rate # 6250.0 print(f"{fee:.2f}") ``` Run it and it prints 6250.00. The fee is $6,250.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "6250.00", "printed": "6250.00", "notation": null}
nlprog_det-setting-0051598
<|start|><|user|> Parking is $3 per hour with a daily maximum of $15. What do 10 hours cost?<|eot|> <|assistant|> ```python rate = 3 hours = 10 daily_max = 15 cost = min(rate * hours, daily_max) # 15 print(cost) ``` Running it prints 15. The charge is $15.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Parking is $3 per hour with a daily maximum of $15. What do 10 hours cost?" }, { "role": "assistant", "content": "```python\nrate = 3\nhours = 10\ndaily_max = 15\ncost = min(rate * hours, daily_max) # 15\nprint(cost)\n```\nRunning it prints 15.\n\nThe charge is $15...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0051599
<|start|><|system|> Double-check numbers before answering.<|eot|> <|user|> 3 books come back 9 days late, at $0.10 a day each. What is the fine?<|eot|> <|assistant|> per_day = 0.1 days_late = 9 books = 3 fine = per_day * days_late * books # 2.7 print(f"{fine:.2f}") (Printed: 2.70) The fine is $2.7...
chat
[ { "role": "system", "content": "Double-check numbers before answering." }, { "role": "user", "content": "3 books come back 9 days late, at $0.10 a day each. What is the fine?" }, { "role": "assistant", "content": " per_day = 0.1\n days_late = 9\n books = 3\n fine = per_da...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "2.70", "printed": "2.70", "notation": null}
nlprog_det-setting-0051600
Walls total 915 sq ft and each can covers 250 sq ft. How many cans should be bought? As Python: ```python import math area = 915 coverage = 250 cans = math.ceil(area / coverage) print(cans) ``` # program output: 4 Buy 4 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0051601
<|start|><|user|> The rules require 1/3 of 21 members (round up) to be present. How many is that?<|eot|> <|assistant|> ```python import math members = 21 quorum = math.ceil(members * 1 / 3) # 7 print(quorum) ``` This prints: 7 That is 7 members.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The rules require 1/3 of 21 members (round up) to be present. How many is that?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 21\nquorum = math.ceil(members * 1 / 3) # 7\nprint(quorum)\n```\nThis prints: 7\n\nThat is 7 members." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "7", "printed": "7", "notation": null}
nlprog_det-setting-0051602
Counting only Monday through Friday, how many business days are there after October 6, 2021 through October 18, 2021? 8 weekdays.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0051604
Parking is $5 per hour with a daily maximum of $18. What do 2 hours cost? Script: ```python rate = 5 hours = 2 daily_max = 18 cost = min(rate * hours, daily_max) # 10 print(cost) ``` Out = 10 The charge is $10.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0051605
Starting with 581 headsets and using 17 per day, how many remain after 17 days? As Python: stock = 581 per_day = 17 days = 17 left = stock - per_day * days # 292 print(left) The run gives 292, as expected. 292 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "292", "printed": "292", "notation": null}
nlprog_det-setting-0051606
<|start|><|system|> Answer in plain English.<|eot|> <|user|> Marek buys 4 boxes of 25 mugs each and gives away 14 mugs. How many mugs are left?<|eot|> <|assistant|> ```python boxes = 4 per_box = 25 given_away = 14 left = boxes * per_box - given_away # 86 print(left) ``` The interpreter prints 86. That leaves 86 mugs....
chat
[ { "role": "system", "content": "Answer in plain English." }, { "role": "user", "content": "Marek buys 4 boxes of 25 mugs each and gives away 14 mugs. How many mugs are left?" }, { "role": "assistant", "content": "```python\nboxes = 4\nper_box = 25\ngiven_away = 14\nleft = boxes * per...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "86", "printed": "86", "notation": null}
nlprog_det-setting-0051607
<|start|><|user|> A jacket costs $45. It is 40% off. What is the sale price?<|eot|> <|assistant|> ```python price = 45 discount = 40 / 100 # 0.4 sale_price = price * (1 - discount) # 27.0 print(f"{sale_price:.2f}") ``` Out: 27.00 It costs $27.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A jacket costs $45. It is 40% off. What is the sale price?" }, { "role": "assistant", "content": "```python\nprice = 45\ndiscount = 40 / 100 # 0.4\nsale_price = price * (1 - discount) # 27.0\nprint(f\"{sale_price:.2f}\")\n```\nOut: 27.00\n\nIt costs $27.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "27.00", "printed": "27.00", "notation": null}
nlprog_det-setting-0051608
A $60,000 grant pays $0 up front and the rest in 12 equal installments. How large is each installment? One way, in code: ```python grant = 60000 up_front = 0 installments = 12 each = (grant - up_front) / installments # 5000.0 print(f"{each:.2f}") ``` Output — 5000.00 Each installment is $5,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "5000.00", "printed": "5000.00", "notation": null}
nlprog_det-setting-0051609
<|start|><|user|> Shipping costs $12 plus $1.50 per pound. What does a 30-pound parcel cost to ship?<|eot|> <|assistant|> base = 12 per_pound = 1.5 weight = 30 cost = base + per_pound * weight # 57.0 print(f"{cost:.2f}") Python prints 57.00, as expected. The charge is $57.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Shipping costs $12 plus $1.50 per pound. What does a 30-pound parcel cost to ship?" }, { "role": "assistant", "content": " base = 12\n per_pound = 1.5\n weight = 30\n cost = base + per_pound * weight # 57.0\n print(f\"{cost:.2f}\")\nPython prints 57....
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "57.00", "printed": "57.00", "notation": null}
nlprog_det-setting-0051610
<|start|><|user|> Fuel for 450 miles at 24 mpg, with gas at $3.45/gallon: what is the cost?<|eot|> <|assistant|> Fuel costs $64.69.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Fuel for 450 miles at 24 mpg, with gas at $3.45/gallon: what is the cost?" }, { "role": "assistant", "content": "Fuel costs $64.69." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "64.69", "printed": "64.69", "notation": null}
nlprog_det-setting-0051611
<|start|><|system|> You may call the tools below. [{"name": "interpreter", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> Ana earns $...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"interpreter\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"r...
nlprog_det
setting
original
null
deterministic
[]
[]
248
{"gold": "1450.00", "printed": "1450.00", "notation": null}
nlprog_det-setting-0051612
Monthly: $25. Annual: $264. What is saved per year by paying annually? Here is the program. ```python monthly = 25 yearly = 264 savings = monthly * 12 - yearly # 36 print(savings) ``` Console output — 36 $36 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0051613
A claim accrued on January 26, 2024. The limitations period is 6 years. On what date does it expire? Written as code: from datetime import date accrued = date(2024, 1, 26) # datetime.date(2024, 1, 26) years = 6 expires = accrued.replace(year=accrued.year + years) # datetime.date(2030, 1, 26) prin...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "2030-01-26", "printed": "2030-01-26", "notation": null}
nlprog_det-setting-0051614
<|start|><|user|> An office budget of $8,000 has expenses of $2,843, $723, $2,663. How much of the budget is left?<|eot|> <|assistant|> ```python budget = 8000 expenses = [2843, 723, 2663] left = budget - sum(expenses) # 1771 print(left) ``` Console: 1771 The remaining budget is $1,771.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An office budget of $8,000 has expenses of $2,843, $723, $2,663. How much of the budget is left?" }, { "role": "assistant", "content": "```python\nbudget = 8000\nexpenses = [2843, 723, 2663]\nleft = budget - sum(expenses) # 1771\nprint(left)\n```\nConsole:\n1771\n\...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "1771", "printed": "1771", "notation": null}
nlprog_det-setting-0051615
<|start|><|user|> A 12-month warranty starts on April 27, 2024. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date start = date(2024, 4, 27) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoforma...
chat
[ { "role": "user", "content": "A 12-month warranty starts on April 27, 2024. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2024, 4, 27)\nmonths = 12\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(start.y...
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "2025-04-27", "printed": "2025-04-27", "notation": null}
nlprog_det-setting-0051616
<|start|><|user|> How many of 45 members form a majority (more than half)?<|eot|> <|assistant|> ```python members = 45 majority = members // 2 + 1 # 23 print(majority) ``` The program prints: 23 23 members are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 45 members form a majority (more than half)?" }, { "role": "assistant", "content": "```python\nmembers = 45\nmajority = members // 2 + 1 # 23\nprint(majority)\n```\nThe program prints: 23\n\n23 members are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0051617
<|start|><|system|> Tool definitions: {"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}} {"name": "py_exec", "description": "Python sandbox for calculati...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"target\"]}}\n{\"n...
nlprog_det
setting
original
null
deterministic
[]
[]
288
{"gold": "99", "printed": "99", "notation": null}
nlprog_det-setting-0051619
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> A $1,500 security deposit has deductions of $120. How much is refunded?<|eot|> <|assistant|> The refund is $1,380.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "role": "user", "content": "A $1,500 security deposit has deductions of $120. How much is refunded?" }, { "role": "assistant", "content": "The refund is $1,380." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
51
{"gold": "1380", "printed": "1380", "notation": null}
nlprog_det-setting-0051620
What percentage of $8,000 is $4,800? Set it up in Python: ```python budget = 8000 spent = 4800 percent = spent / budget * 100 # 60.0 print(round(percent, 1)) ``` (Printed result: 60.0) 60.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "60.0", "printed": "60.0", "notation": null}
nlprog_det-setting-0051621
Maren's scores were 96, 84, 83 and 69. What is the average score? ```python scores = [96, 84, 83, 69] average = sum(scores) // len(scores) # 83 print(average) ``` Result — 83 The mean is 83.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "83", "printed": "83", "notation": null}
nlprog_det-setting-0051622
<|start|><|user|> Each of Viktor's swims burns 150 calories. How many calories over 5 swims?<|eot|> <|assistant|> ```python per_session = 150 sessions = 5 total = per_session * sessions # 750 print(total) ``` Running this gives 750. That burns 750 calories.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each of Viktor's swims burns 150 calories. How many calories over 5 swims?" }, { "role": "assistant", "content": "```python\nper_session = 150\nsessions = 5\ntotal = per_session * sessions # 750\nprint(total)\n```\nRunning this gives 750.\n\nThat burns 750 calories...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0051623
A 18-month warranty starts on March 8, 2019. On what date does it end? A short script: ```python from datetime import date start = date(2019, 3, 8) months = 18 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` What it prints:...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "2020-09-08", "printed": "2020-09-08", "notation": null}
nlprog_det-setting-0051624
Counting only Monday through Friday, how many business days are there after January 18, 2020 through February 19, 2020? Let's compute it with Python. ```python from datetime import date, timedelta start = date(2020, 1, 18) end = date(2020, 2, 19) count = 0 for k in range(1, (end - start).days + 1): if (start + tim...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
164
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0051625
<|start|><|user|> An unpaid balance of $7,500 accrues 2% simple interest per month. How much interest accrues in 3 months?<|eot|> <|assistant|> ```python balance = 7500 monthly_rate = 2 / 100 # 0.02 months = 3 interest = balance * monthly_rate * months # 450.0 print(f"{interest:.2f}") ``` Interpreter output — 450.00 ...
chat
[ { "role": "user", "content": "An unpaid balance of $7,500 accrues 2% simple interest per month. How much interest accrues in 3 months?" }, { "role": "assistant", "content": "```python\nbalance = 7500\nmonthly_rate = 2 / 100 # 0.02\nmonths = 3\ninterest = balance * monthly_rate * months # 450.0...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "450.00", "printed": "450.00", "notation": null}