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-0082561
A service costs $9 a month or $84 a year. How much does the yearly plan save over 12 monthly payments? $24 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0082562
A $30,000 grant pays $6,000 up front and the rest in 6 equal installments. How large is each installment? Let the code do the arithmetic: ```python grant = 30000 up_front = 6000 installments = 6 each = (grant - up_front) / installments # 4000.0 print(f"{each:.2f}") ``` Output of the run: 4000.00 $4,000.00 per instal...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "4000.00", "printed": "4000.00", "notation": null}
nlprog_det-setting-0082563
A $210 dinner bill gets a 20% tip, and 4 people share the cost equally. What is each person's share? In Python: ```python bill = 210 tip_rate = 20 / 100 # 0.2 people = 4 each = bill * (1 + tip_rate) / people # 63.0 print(f"{each:.2f}") ``` # stdout: 63.00 Each person pays $63.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "63.00", "printed": "63.00", "notation": null}
nlprog_det-setting-0082564
<|start|><|user|> Scale 200 g of rice from 8 servings to 6 servings.<|eot|> <|assistant|> ```python grams = 200 serves = 8 needed_for = 6 scaled = grams * needed_for // serves # 150 print(scaled) ``` Execution result — 150 Use 150 g of rice.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Scale 200 g of rice from 8 servings to 6 servings." }, { "role": "assistant", "content": "```python\ngrams = 200\nserves = 8\nneeded_for = 6\nscaled = grams * needed_for // serves # 150\nprint(scaled)\n```\nExecution result — 150\n\nUse 150 g of rice." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0082565
How many whole days and leftover hours are in 185 hours? Let the code do the arithmetic: ```python hours = 185 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Console output: 7 days and 17 hours That is 7 days and 17 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "7 days and 17 hours", "printed": "7 days and 17 hours", "notation": null}
nlprog_det-setting-0082566
<|start|><|system|> Tools you may use: [{"name": "compute", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "define_word", "description...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"compute\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"...
nlprog_det
setting
original
null
deterministic
[]
[]
294
{"gold": "207.05", "printed": "207.05", "notation": null}
nlprog_det-setting-0082567
<|start|><|user|> A 120-day notice period begins on November 1, 2026. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2026, 11, 1) # datetime.date(2026, 11, 1) end = start + timedelta(days=120) # datetime.date(2027, 3, 1) print(end.isoformat()) ``` The run gi...
chat
[ { "role": "user", "content": "A 120-day notice period begins on November 1, 2026. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2026, 11, 1) # datetime.date(2026, 11, 1)\nend = start + timedelta(days=120) # dateti...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "2027-03-01", "printed": "2027-03-01", "notation": null}
nlprog_det-setting-0082568
<|start|><|user|> Divide 236 items among 4 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|> <|assistant|> ```python total = 236 groups = 4 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Program output — 59 each, 0 left ov...
chat
[ { "role": "user", "content": "Divide 236 items among 4 groups as evenly as possible with equal groups. How many per group, and how many remain?" }, { "role": "assistant", "content": "```python\ntotal = 236\ngroups = 4\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {rem...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "59 each, 0 left over", "printed": "59 each, 0 left over", "notation": null}
nlprog_det-setting-0082569
Someone born September 8, 2002 turns how old by February 19, 2030? Give the age in whole years. In Python: ```python from datetime import date born = date(2002, 9, 8) # datetime.date(2002, 9, 8) on = date(2030, 2, 19) # datetime.date(2030, 2, 19) age = on.year - born.year - ((on.month, on.day) < (born.month, born.da...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
158
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0082570
Hana's scores were 89, 51 and 67. What is the average score? ```python scores = [89, 51, 67] average = sum(scores) // len(scores) # 69 print(average) ``` The interpreter prints 69. The mean is 69.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "69", "printed": "69", "notation": null}
nlprog_det-setting-0082571
The paralegal logged 2.5 hours at a rate of $225. How much is billed? Python makes this quick: ```python hours = 2.5 rate = 225 bill = hours * rate # 562.5 print(f"{bill:.2f}") ``` It prints 562.50, as expected. The bill is $562.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "562.50", "printed": "562.50", "notation": null}
nlprog_det-setting-0082572
After an initial $6,000, the remainder of a $60,000 grant is paid in 6 equal parts. What is each part? Set it up in Python: ```python grant = 60000 up_front = 6000 installments = 6 each = (grant - up_front) / installments # 9000.0 print(f"{each:.2f}") ``` Execution prints 9000.00. $9,000.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "9000.00", "printed": "9000.00", "notation": null}
nlprog_det-setting-0082573
$5,000 is invested at 5% compounded yearly. What is it worth after 2 years? In code: principal = 5000 rate = 5 / 100 # 0.05 years = 2 value = principal * (1 + rate) ** years # 5512.5 print(f"{value:.2f}") When run, it prints 5512.50. It is worth $5,512.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "5512.50", "printed": "5512.50", "notation": null}
nlprog_det-setting-0082574
One can of paint covers 400 square feet. How many cans are needed for 1312 square feet of wall? Here is a short program for it. ```python import math area = 1312 coverage = 400 cans = math.ceil(area / coverage) # 4 print(cans) ``` Result: 4 Buy 4 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0082575
<|start|><|user|> A pack of 12 sticky pads sells for $144. What does each cost?<|eot|> <|assistant|> The unit price is $12.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A pack of 12 sticky pads sells for $144. What does each cost?" }, { "role": "assistant", "content": "The unit price is $12." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0082576
<|start|><|user|> An unpaid balance of $12,000 accrues 1% simple interest per month. How much interest accrues in 5 months?<|eot|> <|assistant|> ```python balance = 12000 monthly_rate = 1 / 100 # 0.01 months = 5 interest = balance * monthly_rate * months # 600.0 print(f"{interest:.2f}") ``` (Console output: 600.00) ...
chat
[ { "role": "user", "content": "An unpaid balance of $12,000 accrues 1% simple interest per month. How much interest accrues in 5 months?" }, { "role": "assistant", "content": "```python\nbalance = 12000\nmonthly_rate = 1 / 100 # 0.01\nmonths = 5\ninterest = balance * monthly_rate * months # 600...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "600.00", "printed": "600.00", "notation": null}
nlprog_det-setting-0082577
Tomas drove 399 miles for work. Mileage is reimbursed at 70 cents a mile. How much is the reimbursement? Coded up: ```python miles = 399 rate = 0.7 reimbursement = miles * rate # 279.29999999999995 print(f"{reimbursement:.2f}") ``` When run, it prints 279.30. Tomas is owed $279.30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "279.30", "printed": "279.30", "notation": null}
nlprog_det-setting-0082578
Filing fees are $125 per document. What do 3 filings cost? ```python fee = 125 filings = 3 total = fee * filings # 375 print(total) ``` The code prints: 375 The total fee is $375.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "375", "printed": "375", "notation": null}
nlprog_det-setting-0082579
<|start|><|system|> Tool definitions: [{"name": "calculator", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> What commission does Kofi make on $8...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"calculator\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}...
nlprog_det
setting
original
null
deterministic
[]
[]
216
{"gold": "4068.30", "printed": "4068.30", "notation": null}
nlprog_det-setting-0082580
Express 173 hours in days and hours. Written as code: ```python hours = 173 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` That prints: 7 days and 5 hours 173 hours is 7 days and 5 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "7 days and 5 hours", "printed": "7 days and 5 hours", "notation": null}
nlprog_det-setting-0082581
A count moves from 200 to 150. By what percent did it change (use a minus sign for a drop)? Let the code do the arithmetic: ```python old = 200 new = 150 change = (new - old) / old * 100 # -25.0 print(round(change)) ``` Running it prints -25, as expected. It changed by -25%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "-25", "printed": "-25", "notation": null}
nlprog_det-setting-0082582
<|start|><|user|> 9 boxes hold 8 hard drives each. After 3 are handed out, how many are left?<|eot|> <|assistant|> That leaves 69 hard drives.<|eot|> <|end|>
chat
[ { "role": "user", "content": "9 boxes hold 8 hard drives each. After 3 are handed out, how many are left?" }, { "role": "assistant", "content": "That leaves 69 hard drives." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "69", "printed": "69", "notation": null}
nlprog_det-setting-0082583
A meal costs $38.01. How much is a 18% tip? In Python: ```python bill = 38.01 tip_rate = 18 / 100 # 0.18 tip = bill * tip_rate # 6.841799999999999 print(f"{tip:.2f}") ``` The script prints: 6.84 The tip is $6.84.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "6.84", "printed": "6.84", "notation": null}
nlprog_det-setting-0082584
<|start|><|system|> Available functions (JSON Schema): [{"name": "calculator", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"calculator\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python so...
nlprog_det
setting
original
null
deterministic
[]
[]
232
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0082585
<|start|><|system|> You are a math tutor.<|eot|> <|user|> A 3 lb package ships at $12 base plus $0.75/lb. What is the charge?<|eot|> <|assistant|> Shipping costs $14.25.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a math tutor." }, { "role": "user", "content": "A 3 lb package ships at $12 base plus $0.75/lb. What is the charge?" }, { "role": "assistant", "content": "Shipping costs $14.25." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
53
{"gold": "14.25", "printed": "14.25", "notation": null}
nlprog_det-setting-0082586
Monthly rent is $1,800. A tenant moves in with 10 days left in a 31-day month. What is the prorated rent? The prorated rent is $580.65.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
48
{"gold": "580.65", "printed": "580.65", "notation": null}
nlprog_det-setting-0082587
<|start|><|user|> Split $3,240 between Zoe and Femi in the ratio 3 to 5. What is Zoe's share?<|eot|> <|assistant|> Zoe's share is $1,215.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Split $3,240 between Zoe and Femi in the ratio 3 to 5. What is Zoe's share?" }, { "role": "assistant", "content": "Zoe's share is $1,215." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
51
{"gold": "1215", "printed": "1215", "notation": null}
nlprog_det-setting-0082589
A client paid a $2,500 retainer. The firm has billed 7 hours at $200 per hour. How much of the retainer is left? A Python solution: retainer = 2500 hours = 7 rate = 200 left = retainer - hours * rate # 1100 print(left) Result — 1100 $1,100 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "1100", "printed": "1100", "notation": null}
nlprog_det-setting-0082590
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> Filing fees are $405 per document. What do 2 filings cost?<|eot|> <|assistant|> ```python fee = 405 filings = 2 total = fee * filings # 810 print(total) ``` # output: 810 The filings cost $810 in all.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "role": "user", "content": "Filing fees are $405 per document. What do 2 filings cost?" }, { "role": "assistant", "content": "```python\nfee = 405\nfilings = 2\ntotal = fee * filings # 810\nprint(total)\n```\n# out...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "810", "printed": "810", "notation": null}
nlprog_det-setting-0082592
A $30,000 grant pays $6,000 up front and the rest in 4 equal installments. How large is each installment? Programmatically: ```python grant = 30000 up_front = 6000 installments = 4 each = (grant - up_front) / installments # 6000.0 print(f"{each:.2f}") ``` What it prints: 6000.00 Each installment is $6,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "6000.00", "printed": "6000.00", "notation": null}
nlprog_det-setting-0082593
A garage charges $3 an hour, never more than $20 a day. How much for 5 hours? Here is a short program for it. ```python rate = 3 hours = 5 daily_max = 20 cost = min(rate * hours, daily_max) # 15 print(cost) ``` Shell output: 15 Parking costs $15.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0082595
Buying 4 file boxes at $18 each, 6 notebooks at $30 each, 4 clipboards at $7 each, 5 flash drives at $19 each, someone hands over $400. What change comes back? We write it as a program: items = [(4, 18), (6, 30), (4, 7), (5, 19)] total = sum(q * p for q, p in items) # 375 paid = 400 change = paid - to...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0082596
At $18.24 an hour, what does 36 hours of work pay? A few lines of Python do it: ```python rate = 18.24 hours = 36 earnings = rate * hours # 656.64 print(f"{earnings:.2f}") ``` (stdout: 656.64) That earns $656.64.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "656.64", "printed": "656.64", "notation": null}
nlprog_det-setting-0082598
With 20% off, what does a $80 filing cabinet cost? Python does the arithmetic: price = 80 discount = 20 / 100 # 0.2 sale_price = price * (1 - discount) # 64.0 print(f"{sale_price:.2f}") Result = 64.00 The sale price is $64.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "64.00", "printed": "64.00", "notation": null}
nlprog_det-setting-0082599
<|start|><|user|> Ivan buys 10 boxes of 12 toner kits each and gives away 11 toner kits. How many toner kits are left?<|eot|> <|assistant|> ```python boxes = 10 per_box = 12 given_away = 11 left = boxes * per_box - given_away # 109 print(left) ``` Printed = 109 109 toner kits are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Ivan buys 10 boxes of 12 toner kits each and gives away 11 toner kits. How many toner kits are left?" }, { "role": "assistant", "content": "```python\nboxes = 10\nper_box = 12\ngiven_away = 11\nleft = boxes * per_box - given_away # 109\nprint(left)\n```\nPrinted = ...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "109", "printed": "109", "notation": null}
nlprog_det-setting-0082600
<|start|><|system|> You check calculations for an accounting team.<|eot|> <|user|> Under a 25% contingency agreement, what fee is owed on a $40,000 award?<|eot|> <|assistant|> ```python recovery = 40000 rate = 25 / 100 # 0.25 fee = recovery * rate # 10000.0 print(f"{fee:.2f}") ``` Executed, it shows 10000.00. The fe...
chat
[ { "role": "system", "content": "You check calculations for an accounting team." }, { "role": "user", "content": "Under a 25% contingency agreement, what fee is owed on a $40,000 award?" }, { "role": "assistant", "content": "```python\nrecovery = 40000\nrate = 25 / 100 # 0.25\nfee = ...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "10000.00", "printed": "10000.00", "notation": null}
nlprog_det-setting-0082601
12 hours of work at $225 an hour: what is the total charge? Python version: ```python hours = 12 rate = 225 bill = hours * rate # 2700 print(f"{bill:.2f}") ``` # printed result: 2700.00 That comes to $2,700.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "2700.00", "printed": "2700.00", "notation": null}
nlprog_det-setting-0082602
How many days are there from July 8, 2025 to December 22, 2025? Python version: ```python from datetime import date first = date(2025, 7, 8) # datetime.date(2025, 7, 8) second = date(2025, 12, 22) # datetime.date(2025, 12, 22) print((second - first).days) ``` That prints: 167 It is 167 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "167", "printed": "167", "notation": null}
nlprog_det-setting-0082603
A car travels 180 miles in 1.5 hours. What is its average speed in miles per hour? The computation: ```python distance = 180 hours = 1.5 speed = distance / hours # 120.0 print(round(speed)) ``` Result: 120 It averages 120 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0082604
<|start|><|system|> You are a careful assistant.<|eot|> <|user|> Equal monthly payments repay $6,000 plus 6% simple yearly interest over 36 months. How large is a payment?<|eot|> <|assistant|> ```python principal = 6000 annual_rate = 6 / 100 # 0.06 months = 36 interest = principal * annual_rate * months / 12 # 1080.0...
chat
[ { "role": "system", "content": "You are a careful assistant." }, { "role": "user", "content": "Equal monthly payments repay $6,000 plus 6% simple yearly interest over 36 months. How large is a payment?" }, { "role": "assistant", "content": "```python\nprincipal = 6000\nannual_rate = ...
nlprog_det
setting
original
null
deterministic
[]
[]
160
{"gold": "196.67", "printed": "196.67", "notation": null}
nlprog_det-setting-0082605
<|start|><|user|> Counting the first and last day, how many days are there from September 23, 2019 through September 28, 2019?<|eot|> <|assistant|> ```python from datetime import date first = date(2019, 9, 23) # datetime.date(2019, 9, 23) last = date(2019, 9, 28) # datetime.date(2019, 9, 28) days = (last - first).day...
chat
[ { "role": "user", "content": "Counting the first and last day, how many days are there from September 23, 2019 through September 28, 2019?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2019, 9, 23) # datetime.date(2019, 9, 23)\nlast = date(2019, 9, 28...
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0082606
<|start|><|user|> Scale 240 g of rice from 2 servings to 12 servings.<|eot|> <|assistant|> Use 1440 g of rice.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Scale 240 g of rice from 2 servings to 12 servings." }, { "role": "assistant", "content": "Use 1440 g of rice." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "1440", "printed": "1440", "notation": null}
nlprog_det-setting-0082607
The landlord deducts $60, $60 and $120 from a $2,500 deposit. What is returned to the tenant? Computing it: ```python deposit = 2500 deductions = [60, 60, 120] refund = deposit - sum(deductions) # 2260 print(refund) ``` It prints 2260. The refund is $2,260.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "2260", "printed": "2260", "notation": null}
nlprog_det-setting-0082608
An attorney bills 4 hours at $180 per hour. What is the bill? That comes to $720.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "720.00", "printed": "720.00", "notation": null}
nlprog_det-setting-0082609
38 copies of a 24-page packet are printed at $0.08 per page. What is the cost? As a program: ```python pages = 24 copies = 38 cost_per_page = 0.08 cost = pages * copies * cost_per_page # 72.96000000000001 print(f"{cost:.2f}") ``` stdout: 72.96 The job costs $72.96.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "72.96", "printed": "72.96", "notation": null}
nlprog_det-setting-0082610
<|start|><|user|> A car travels 494 miles in 2 hours. What is its average speed in miles per hour?<|eot|> <|assistant|> ```python distance = 494 hours = 2 speed = distance / hours # 247.0 print(round(speed)) ``` The program outputs 247. It averages 247 miles per hour.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A car travels 494 miles in 2 hours. What is its average speed in miles per hour?" }, { "role": "assistant", "content": "```python\ndistance = 494\nhours = 2\nspeed = distance / hours # 247.0\nprint(round(speed))\n```\nThe program outputs 247.\n\nIt averages 247 mil...
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "247", "printed": "247", "notation": null}
nlprog_det-setting-0082611
<|start|><|system|> You are a study helper for students.<|eot|> <|user|> At an exchange rate of 1.27 USD per EUR, how many USD is 1,043 EUR?<|eot|> <|assistant|> It converts to 1,324.61 USD.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a study helper for students." }, { "role": "user", "content": "At an exchange rate of 1.27 USD per EUR, how many USD is 1,043 EUR?" }, { "role": "assistant", "content": "It converts to 1,324.61 USD." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
60
{"gold": "1324.61", "printed": "1324.61", "notation": null}
nlprog_det-setting-0082612
What commission does Idris make on $112,329 in sales at 6%? Written as code: ```python sales = 112329 rate = 6 / 100 # 0.06 commission = sales * rate # 6739.74 print(f"{commission:.2f}") ``` The run gives 6739.74. The commission is $6,739.74.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "6739.74", "printed": "6739.74", "notation": null}
nlprog_det-setting-0082613
Counting only Monday through Friday, how many business days are there after August 26, 2023 through September 26, 2023? ```python from datetime import date, timedelta start = date(2023, 8, 26) end = date(2023, 9, 26) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() < 5:...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0082614
4 friends split a $240 bill plus a 15% tip evenly. How much does each pay? Here's the code. ```python bill = 240 tip_rate = 15 / 100 people = 4 each = bill * (1 + tip_rate) / people print(f"{each:.2f}") ``` Output = 69.00 The share is $69.00 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "69.00", "printed": "69.00", "notation": null}
nlprog_det-setting-0082615
<|start|><|user|> A penalty of $25 a day accrues, capped at $1,000. What is owed after 27 days?<|eot|> <|assistant|> $675 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A penalty of $25 a day accrues, capped at $1,000. What is owed after 27 days?" }, { "role": "assistant", "content": "$675 is owed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "675", "printed": "675", "notation": null}
nlprog_det-setting-0082616
Walls total 564 sq ft and each can covers 300 sq ft. How many cans should be bought? Written as code: ```python import math area = 564 coverage = 300 cans = math.ceil(area / coverage) # 2 print(cans) ``` The program prints: 2 Buy 2 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0082617
Convert 2 h 5 min (the length of a hearing) to minutes. Programmatically: ```python hours = 2 minutes = 5 total_minutes = hours * 60 + minutes # 125 print(total_minutes) ``` Run it and it prints: 125 That is 125 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "125", "printed": "125", "notation": null}
nlprog_det-setting-0082618
Fixed costs are $6,000. Each unit sells for $25 and costs $17 to make. How many units must be sold to break even? Python code: import math fixed = 6000 price = 25 variable = 17 units = math.ceil(fixed / (price - variable)) # 750 print(units) # printed result: 750 750 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0082619
If a 2-year limitations period starts on April 12, 2022, when does it end? In Python: ```python from datetime import date accrued = date(2022, 4, 12) # datetime.date(2022, 4, 12) years = 2 expires = accrued.replace(year=accrued.year + years) # datetime.date(2024, 4, 12) print(expires.isoformat()) ``` The program pri...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "2024-04-12", "printed": "2024-04-12", "notation": null}
nlprog_det-setting-0082620
Beatriz was born on February 16, 1961. How old is Beatriz on August 7, 2023? Computing it: ```python from datetime import date born = date(1961, 2, 16) # datetime.date(1961, 2, 16) on = date(2023, 8, 7) # datetime.date(2023, 8, 7) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 62 print(...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
154
{"gold": "62", "printed": "62", "notation": null}
nlprog_det-setting-0082621
Marek earns $25.00 an hour and time and a half for hours over 40. What is the pay for a 52-hour week? Marek earns $1,450.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "1450.00", "printed": "1450.00", "notation": null}
nlprog_det-setting-0082622
Rent of $2,200 goes up 6%. What is the new rent? rent = 2200 increase = 6 / 100 # 0.06 new_rent = rent * (1 + increase) # 2332.0 print(f"{new_rent:.2f}") Run output — 2332.00 The new rent is $2,332.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "2332.00", "printed": "2332.00", "notation": null}
nlprog_det-setting-0082623
From 2009 to 2036, how many years is that? That is 27 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
18
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0082624
Copies cost $10 plus $0.10 for each page beyond 10. How much for 5 pages? As Python: ```python pages = 5 base = 10 per_page = 0.1 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 10.0 print(f"{cost:.2f}") ``` The run gives 10.00. The copy costs $10.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "10.00", "printed": "10.00", "notation": null}
nlprog_det-setting-0082625
<|start|><|user|> Monthly rent is $1,200. A tenant moves in with 8 days left in a 30-day month. What is the prorated rent?<|eot|> <|assistant|> rent = 1200 days_in_month = 30 days_occupied = 8 prorated = rent * days_occupied / days_in_month # 320.0 print(f"{prorated:.2f}") It prints: 320.00 The te...
chat
[ { "role": "user", "content": "Monthly rent is $1,200. A tenant moves in with 8 days left in a 30-day month. What is the prorated rent?" }, { "role": "assistant", "content": " rent = 1200\n days_in_month = 30\n days_occupied = 8\n prorated = rent * days_occupied / days_in_month # 320...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "320.00", "printed": "320.00", "notation": null}
nlprog_det-setting-0082626
What simple interest does $12,000 earn at 8% a year over 5 years? A Python solution: ```python principal = 12000 rate = 8 / 100 # 0.08 years = 5 interest = principal * rate * years # 4800.0 print(f"{interest:.2f}") ``` # printed result: 4800.00 The interest is $4,800.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "4800.00", "printed": "4800.00", "notation": null}
nlprog_det-setting-0082627
<|start|><|user|> Count 10 days forward from March 24, 2019. What date is that?<|eot|> <|assistant|> That date is April 3, 2019.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Count 10 days forward from March 24, 2019. What date is that?" }, { "role": "assistant", "content": "That date is April 3, 2019." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "2019-04-03", "printed": "2019-04-03", "notation": null}
nlprog_det-setting-0082628
<|start|><|system|> You help paralegals with routine tasks.<|eot|> <|user|> Liesel's scores were 73, 72, 64 and 87. What is the average score?<|eot|> <|assistant|> ```python scores = [73, 72, 64, 87] average = sum(scores) // len(scores) # 74 print(average) ``` It outputs 74. The mean is 74.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help paralegals with routine tasks." }, { "role": "user", "content": "Liesel's scores were 73, 72, 64 and 87. What is the average score?" }, { "role": "assistant", "content": "```python\nscores = [73, 72, 64, 87]\naverage = sum(scores) // len(score...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "74", "printed": "74", "notation": null}
nlprog_det-setting-0082629
Straight-line depreciation: cost $45,000, salvage $0, 6 years. How much per year? Let's compute it with Python. ```python cost = 45000 salvage = 0 years = 6 per_year = (cost - salvage) / years # 7500.0 print(f"{per_year:.2f}") ``` # run result: 7500.00 $7,500.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "7500.00", "printed": "7500.00", "notation": null}
nlprog_det-setting-0082630
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> 42 of 50 members attended. What percent attended?<|eot|> <|assistant|> ```python present = 42 total = 50 percent = present / total * 100 # 84.0 print(round(percent, 1)) ``` Python prints: 84.0 84.0% attended.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "42 of 50 members attended. What percent attended?" }, { "role": "assistant", "content": "```python\npresent = 42\ntotal = 50\npercent = present / total * 100 # 84.0\nprint(round(percent, 1))\n...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "84.0", "printed": "84.0", "notation": null}
nlprog_det-setting-0082631
<|start|><|system|> Functions: [{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properti...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"search_cases\", \"description\": \"Search case la...
nlprog_det
setting
original
null
deterministic
[]
[]
384
{"gold": "2017-03-13", "printed": "2017-03-13", "notation": null}
nlprog_det-setting-0082632
What commission does Idris make on $113,134 in sales at 4%? In code: ```python sales = 113134 rate = 4 / 100 # 0.04 commission = sales * rate # 4525.36 print(f"{commission:.2f}") ``` Run output: 4525.36 Idris earns $4,525.36.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "4525.36", "printed": "4525.36", "notation": null}
nlprog_det-setting-0082633
The firm was founded in 2025. How many years had passed by 2062? Computation in Python: start_year = 2025 end_year = 2062 print(end_year - start_year) Executing it gives: 37 That is 37 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
71
{"gold": "37", "printed": "37", "notation": null}
nlprog_det-setting-0082634
A hearing starts at 9:15 AM and lasts 50 minutes. When does it end? Computation in Python: ```python start = 9 * 60 + 15 end = start + 50 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` (Printed result: 10:05 AM) The hearing finishes at 10:05 AM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "10:05 AM", "printed": "10:05 AM", "notation": null}
nlprog_det-setting-0082635
<|start|><|user|> Under a 40% contingency agreement, what fee is owed on a $150,000 award?<|eot|> <|assistant|> ```python recovery = 150000 rate = 40 / 100 # 0.4 fee = recovery * rate # 60000.0 print(f"{fee:.2f}") ``` Printed result — 60000.00 The lawyer's fee comes to $60,000.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Under a 40% contingency agreement, what fee is owed on a $150,000 award?" }, { "role": "assistant", "content": "```python\nrecovery = 150000\nrate = 40 / 100 # 0.4\nfee = recovery * rate # 60000.0\nprint(f\"{fee:.2f}\")\n```\nPrinted result — 60000.00\n\nThe lawye...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "60000.00", "printed": "60000.00", "notation": null}
nlprog_det-setting-0082636
A party has 28 days to respond to a motion served on October 14, 2028, with 3 days added because service was by mail. When is the response due? Program: from datetime import date, timedelta served = date(2028, 10, 14) # datetime.date(2028, 10, 14) response_days = 28 mail_days = 3 due = served + ti...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
164
{"gold": "2028-11-14", "printed": "2028-11-14", "notation": null}
nlprog_det-setting-0082637
Each of Rafael's bike rides burns 200 calories. How many calories over 4 bike rides? Translated to Python: ```python per_session = 200 sessions = 4 total = per_session * sessions # 800 print(total) ``` On running, it outputs 800. That burns 800 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "800", "printed": "800", "notation": null}
nlprog_det-setting-0082638
12 tape rolls cost $6 apiece. With 5% tax added, what is the total? As Python: ```python quantity = 12 unit_price = 6 subtotal = quantity * unit_price # 72 total = subtotal * (1 + 5 / 100) # 75.60000000000001 print(f"{total:.2f}") ``` (Program output: 75.60) The invoice total is $75.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "75.60", "printed": "75.60", "notation": null}
nlprog_det-setting-0082639
<|start|><|user|> How many whole days and leftover hours are in 64 hours?<|eot|> <|assistant|> ```python hours = 64 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Console: 2 days and 16 hours 64 hours is 2 days and 16 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many whole days and leftover hours are in 64 hours?" }, { "role": "assistant", "content": "```python\nhours = 64\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nConsole:\n2 days and 16 hours\n\n64 hours is 2 days and 16 hours." ...
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "2 days and 16 hours", "printed": "2 days and 16 hours", "notation": null}
nlprog_det-setting-0082640
Parking is $5 per hour with a daily maximum of $24. What do 10 hours cost? Python: ```python rate = 5 hours = 10 daily_max = 24 cost = min(rate * hours, daily_max) # 24 print(cost) ``` Run result — 24 The charge is $24.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0082641
A car travels 171 miles in 1 hours. What is its average speed in miles per hour? One way, in code: distance = 171 hours = 1 speed = distance / hours # 171.0 print(round(speed)) This prints 171, as expected. It averages 171 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "171", "printed": "171", "notation": null}
nlprog_det-setting-0082642
Papers were served by mail on May 6, 2026. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date? One way, in code: from datetime import date, timedelta served = date(2026, 5, 6) # datetime.date(2026, 5, 6) response_days = 14 mail_days = 3 due = served + time...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
172
{"gold": "2026-05-23", "printed": "2026-05-23", "notation": null}
nlprog_det-setting-0082643
3 claimants share a $84,000 settlement equally. What is each share? ```python settlement = 84000 parties = 3 share = settlement // parties # 28000 print(share) ``` Run it and it prints 28000. Each share is $28,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "28000", "printed": "28000", "notation": null}
nlprog_det-setting-0082644
How many units at $20 each (variable cost $12) cover $6,000 of fixed costs? Written as code: ```python import math fixed = 6000 price = 20 variable = 12 units = math.ceil(fixed / (price - variable)) # 750 print(units) ``` Out: 750 Break-even is 750 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0082645
<|start|><|user|> What simple interest does $1,000 earn at 4% a year over 2 years?<|eot|> <|assistant|> principal = 1000 rate = 4 / 100 years = 2 interest = principal * rate * years print(f"{interest:.2f}") Output = 80.00 The interest is $80.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What simple interest does $1,000 earn at 4% a year over 2 years?" }, { "role": "assistant", "content": " principal = 1000\n rate = 4 / 100\n years = 2\n interest = principal * rate * years\n print(f\"{interest:.2f}\")\nOutput = 80.00\n\nThe interest i...
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "80.00", "printed": "80.00", "notation": null}
nlprog_det-setting-0082646
<|start|><|user|> If a 6-year limitations period starts on October 6, 2016, when does it end?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2016, 10, 6) # datetime.date(2016, 10, 6) years = 6 expires = accrued.replace(year=accrued.year + years) # datetime.date(2022, 10, 6) print(expires.isof...
chat
[ { "role": "user", "content": "If a 6-year limitations period starts on October 6, 2016, when does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2016, 10, 6) # datetime.date(2016, 10, 6)\nyears = 6\nexpires = accrued.replace(year=accrued.year...
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "2022-10-06", "printed": "2022-10-06", "notation": null}
nlprog_det-setting-0082647
<|start|><|system|> Give the answer first.<|eot|> <|user|> How long, in days, is it from March 7, 2021 until June 29, 2021?<|eot|> <|assistant|> ```python from datetime import date first = date(2021, 3, 7) second = date(2021, 6, 29) print((second - first).days) ``` Result = 114 It is 114 days.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Give the answer first." }, { "role": "user", "content": "How long, in days, is it from March 7, 2021 until June 29, 2021?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2021, 3, 7)\nsecond = date(2021, 6, 29)\...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "114", "printed": "114", "notation": null}
nlprog_det-setting-0082648
Water costs $12 a month plus $4.75 for each 1,000 gallons over 3,000. What is owed for 9,000 gallons? Here's the code. ```python base = 12 rate = 4.75 used = 9 free = 3 bill = base + rate * max(0, used - free) # 40.5 print(f"{bill:.2f}") ``` This prints 40.50. The bill is $40.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "40.50", "printed": "40.50", "notation": null}
nlprog_det-setting-0082650
<|start|><|user|> Shipping costs $12 plus $1.20 per pound. What does a 32-pound parcel cost to ship?<|eot|> <|assistant|> The charge is $50.40.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Shipping costs $12 plus $1.20 per pound. What does a 32-pound parcel cost to ship?" }, { "role": "assistant", "content": "The charge is $50.40." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "50.40", "printed": "50.40", "notation": null}
nlprog_det-setting-0082651
<|start|><|system|> You can call tools. Available tools: {"name": "sandbox_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}} {"name": "lookup_statute", "descript...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"sandbox_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required...
nlprog_det
setting
original
null
deterministic
[]
[]
378
{"gold": "107", "printed": "107", "notation": null}
nlprog_det-setting-0082652
With 25% off, what does a $40 kettle cost? Python code: price = 40 discount = 25 / 100 # 0.25 sale_price = price * (1 - discount) # 30.0 print(f"{sale_price:.2f}") Running this gives 30.00. It costs $30.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "30.00", "printed": "30.00", "notation": null}
nlprog_det-setting-0082653
One can of paint covers 300 square feet. How many cans are needed for 985 square feet of wall? Python: ```python import math area = 985 coverage = 300 cans = math.ceil(area / coverage) # 4 print(cans) ``` The run gives: 4 Buy 4 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0082654
<|start|><|user|> Meals are $79 per day and lodging $175 per night. What is the allowance for 4 days and 3 nights?<|eot|> <|assistant|> days = 4 meal_rate = 79 lodging_rate = 175 nights = days - 1 # 3 total = days * meal_rate + nights * lodging_rate # 841 print(total) # console output: 841 Th...
chat
[ { "role": "user", "content": "Meals are $79 per day and lodging $175 per night. What is the allowance for 4 days and 3 nights?" }, { "role": "assistant", "content": " days = 4\n meal_rate = 79\n lodging_rate = 175\n nights = days - 1 # 3\n total = days * meal_rate + nights * lodg...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "841", "printed": "841", "notation": null}
nlprog_det-setting-0082655
<|start|><|user|> What percentage of $4,000 is $3,000?<|eot|> <|assistant|> budget = 4000 spent = 3000 percent = spent / budget * 100 # 75.0 print(round(percent, 1)) Printed — 75.0 That is 75.0% of the budget.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What percentage of $4,000 is $3,000?" }, { "role": "assistant", "content": " budget = 4000\n spent = 3000\n percent = spent / budget * 100 # 75.0\n print(round(percent, 1))\nPrinted — 75.0\n\nThat is 75.0% of the budget." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "75.0", "printed": "75.0", "notation": null}
nlprog_det-setting-0082656
At 40 miles per hour, how many minutes does a 70-mile trip take? A short script: ```python distance = 70 speed = 40 minutes = distance / speed * 60 # 105.0 print(round(minutes)) ``` The program outputs: 105 105 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "105", "printed": "105", "notation": null}
nlprog_det-setting-0082657
A count moves from 200 to 300. By what percent did it change (use a minus sign for a drop)? As a program: ```python old = 200 new = 300 change = (new - old) / old * 100 # 50.0 print(round(change)) ``` Running it prints: 50 It changed by 50%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0082658
<|start|><|user|> Convert 1,447 EUR to USD at 1 EUR = 1.31 USD.<|eot|> <|assistant|> ```python amount = 1447 rate = 1.31 converted = amount * rate # 1895.5700000000002 print(f"{converted:.2f}") ``` Executing it gives 1895.57, as expected. It converts to 1,895.57 USD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 1,447 EUR to USD at 1 EUR = 1.31 USD." }, { "role": "assistant", "content": "```python\namount = 1447\nrate = 1.31\nconverted = amount * rate # 1895.5700000000002\nprint(f\"{converted:.2f}\")\n```\nExecuting it gives 1895.57, as expected.\n\nIt converts to ...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "1895.57", "printed": "1895.57", "notation": null}
nlprog_det-setting-0082659
A chair costs $75. It is 15% off. What is the sale price? We write it as a program: ```python price = 75 discount = 15 / 100 # 0.15 sale_price = price * (1 - discount) # 63.75 print(f"{sale_price:.2f}") ``` This prints: 63.75 It costs $63.75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "63.75", "printed": "63.75", "notation": null}
nlprog_det-setting-0082660
28 of 40 members attended. What percent attended? Programmatically: ```python present = 28 total = 40 percent = present / total * 100 # 70.0 print(round(percent, 1)) ``` Executed, it shows 70.0. 70.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "70.0", "printed": "70.0", "notation": null}
nlprog_det-setting-0082661
A $3,600 loan carries 6% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment? Code: ```python principal = 3600 annual_rate = 6 / 100 months = 24 interest = principal * annual_rate * months / 12 payment = (principal + interest) / months print(f"{payme...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "168.00", "printed": "168.00", "notation": null}
nlprog_det-setting-0082662
4 clients win $96,000. The lawyer takes 30%, and the rest is split equally. How much does each client get? The Python version: ```python award = 96000 fee = award * 30 / 100 # 28800.0 remaining = award - fee # 67200.0 per_client = remaining / 4 # 16800.0 print(f"{per_client:.2f}") ``` Execution prints 16800.00, as ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "16800.00", "printed": "16800.00", "notation": null}
nlprog_det-setting-0082663
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> The firm was founded in 1996. How many years had passed by 2019?<|eot|> <|assistant|> start_year = 1996 end_year = 2019 print(end_year - start_year) Executed, it shows: 23 23 years.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "The firm was founded in 1996. How many years had passed by 2019?" }, { "role": "assistant", "content": " start_year = 1996\n end_year = 2019\n print(end_year - start_year)\nExecuted, i...
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0082664
<|start|><|user|> At 2% a month (simple), what interest builds on $2,500 over 3 months?<|eot|> <|assistant|> ```python balance = 2500 monthly_rate = 2 / 100 months = 3 interest = balance * monthly_rate * months print(f"{interest:.2f}") ``` # run result: 150.00 The interest is $150.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 2% a month (simple), what interest builds on $2,500 over 3 months?" }, { "role": "assistant", "content": "```python\nbalance = 2500\nmonthly_rate = 2 / 100\nmonths = 3\ninterest = balance * monthly_rate * months\nprint(f\"{interest:.2f}\")\n```\n# run result: 150...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "150.00", "printed": "150.00", "notation": null}
nlprog_det-setting-0082665
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "interpreter", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> Whic...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"interpreter\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\...
nlprog_det
setting
original
null
deterministic
[]
[]
235
{"gold": "A", "printed": "A", "notation": null}