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-0061597
Parking is $3 per hour with a daily maximum of $24. What do 3 hours cost? A Python solution: rate = 3 hours = 3 daily_max = 24 cost = min(rate * hours, daily_max) # 9 print(cost) (Output: 9) The charge is $9.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0061598
<|start|><|user|> Tariq drove 231 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement?<|eot|> <|assistant|> ```python miles = 231 rate = 0.58 reimbursement = miles * rate # 133.98 print(f"{reimbursement:.2f}") ``` The run gives 133.98, as expected. The reimbursement is $133.98.<|eo...
chat
[ { "role": "user", "content": "Tariq drove 231 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement?" }, { "role": "assistant", "content": "```python\nmiles = 231\nrate = 0.58\nreimbursement = miles * rate # 133.98\nprint(f\"{reimbursement:.2f}\")\n```\nThe run...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "133.98", "printed": "133.98", "notation": null}
nlprog_det-setting-0061599
Buying 6 batteries at $29 each, 6 desk lamps at $17 each, someone hands over $300. What change comes back? A short script: ```python items = [(6, 29), (6, 17)] total = sum(q * p for q, p in items) # 276 paid = 300 change = paid - total # 24 print(change) ``` # printed result: 24 The change is $24.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0061600
<|start|><|user|> A car travels 144 miles in 0.5 hours. What is its average speed in miles per hour?<|eot|> <|assistant|> ```python distance = 144 hours = 0.5 speed = distance / hours # 288.0 print(round(speed)) ``` Output = 288 It averages 288 miles per hour.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A car travels 144 miles in 0.5 hours. What is its average speed in miles per hour?" }, { "role": "assistant", "content": "```python\ndistance = 144\nhours = 0.5\nspeed = distance / hours # 288.0\nprint(round(speed))\n```\nOutput = 288\n\nIt averages 288 miles per h...
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "288", "printed": "288", "notation": null}
nlprog_det-setting-0061601
<|start|><|system|> Functions: [{"name": "python_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "translate", "description": "Translate text into ano...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"python_exec\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\"]}}, {\"nam...
nlprog_det
setting
original
null
deterministic
[]
[]
388
{"gold": "1600", "printed": "1600", "notation": null}
nlprog_det-setting-0061602
A measure needs at least 67% of 106 votes. How many votes is that, rounded up? Written as code: ```python import math voters = 106 needed = math.ceil(voters * 67 / 100) # 72 print(needed) ``` Python prints 72. At least 72 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "72", "printed": "72", "notation": null}
nlprog_det-setting-0061603
Parking is $4 per hour with a daily maximum of $20. What do 2 hours cost? In Python: ```python rate = 4 hours = 2 daily_max = 20 cost = min(rate * hours, daily_max) # 8 print(cost) ``` Executing it gives: 8 Parking costs $8.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0061605
Split $704 between Lucia and Quinn in the ratio 3 to 5. What is Lucia's share? We write it as a program: ```python total = 704 parts_a = 3 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 264 print(share_a) ``` Run result = 264 Lucia's share is $264.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "264", "printed": "264", "notation": null}
nlprog_det-setting-0061606
<|start|><|user|> Filing fees are $50 per document. What do 17 filings cost?<|eot|> <|assistant|> fee = 50 filings = 17 total = fee * filings print(total) Run output: 850 The total fee is $850.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Filing fees are $50 per document. What do 17 filings cost?" }, { "role": "assistant", "content": " fee = 50\n filings = 17\n total = fee * filings\n print(total)\nRun output: 850\n\nThe total fee is $850." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
64
{"gold": "850", "printed": "850", "notation": null}
nlprog_det-setting-0061608
<|start|><|user|> A garage charges $2 an hour, never more than $15 a day. How much for 11 hours?<|eot|> <|assistant|> ```python rate = 2 hours = 11 daily_max = 15 cost = min(rate * hours, daily_max) # 15 print(cost) ``` (Run result: 15) The charge is $15.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A garage charges $2 an hour, never more than $15 a day. How much for 11 hours?" }, { "role": "assistant", "content": "```python\nrate = 2\nhours = 11\ndaily_max = 15\ncost = min(rate * hours, daily_max) # 15\nprint(cost)\n```\n(Run result: 15)\n\nThe charge is $15....
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0061609
Sales went from 1,200 to 960. What is the percent change? Python: ```python old = 1200 new = 960 change = (new - old) / old * 100 print(round(change)) ``` # stdout: -20 It changed by -20%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "-20", "printed": "-20", "notation": null}
nlprog_det-setting-0061610
Starting from $12,000, the team spends $411, $665, $476, $1,936. What remains? Let the code do the arithmetic: ```python budget = 12000 expenses = [411, 665, 476, 1936] left = budget - sum(expenses) print(left) ``` Run output: 8512 $8,512 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "8512", "printed": "8512", "notation": null}
nlprog_det-setting-0061612
<|start|><|user|> A lease runs for 18 months at $1,640 per month. How much rent is paid over the whole term?<|eot|> <|assistant|> monthly_rent = 1640 months = 18 total = monthly_rent * months # 29520 print(total) Run it and it prints: 29520 The rent over the term is $29,520.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lease runs for 18 months at $1,640 per month. How much rent is paid over the whole term?" }, { "role": "assistant", "content": " monthly_rent = 1640\n months = 18\n total = monthly_rent * months # 29520\n print(total)\nRun it and it prints: 29520\n\nT...
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "29520", "printed": "29520", "notation": null}
nlprog_det-setting-0061613
Each storage box holds 12 files. How many boxes are needed for 710 files? Computation in Python: ```python import math files = 710 per_box = 12 boxes = math.ceil(files / per_box) # 60 print(boxes) ``` Console output: 60 60 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0061615
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> How many units at $30 each (variable cost $24) cover $6,000 of fixed costs?<|eot|> <|assistant|> 1000 units are needed.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "How many units at $30 each (variable cost $24) cover $6,000 of fixed costs?" }, { "role": "assistant", "content": "1000 units are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
54
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0061616
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "interpreter", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> <|...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"interpreter\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python s...
nlprog_det
setting
original
null
deterministic
[]
[]
275
{"gold": "2024-12-17", "printed": "2024-12-17", "notation": null}
nlprog_det-setting-0061617
A recipe for 6 people uses 450 grams of oats. How many grams are needed for 8 people? Python: grams = 450 serves = 6 needed_for = 8 scaled = grams * needed_for // serves # 600 print(scaled) Execution prints 600. Use 600 g of oats.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0061618
A hall has 19 rows of 20 seats, and 18 seats are empty. How many people are seated? ```python rows = 19 per_row = 20 empty = 18 seated = rows * per_row - empty # 362 print(seated) ``` Output — 362 362 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "362", "printed": "362", "notation": null}
nlprog_det-setting-0061619
<|start|><|user|> Convert 7,546 USD to CAD at 1 USD = 1.35 CAD.<|eot|> <|assistant|> It converts to 10,187.10 CAD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 7,546 USD to CAD at 1 USD = 1.35 CAD." }, { "role": "assistant", "content": "It converts to 10,187.10 CAD." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "10187.10", "printed": "10187.10", "notation": null}
nlprog_det-setting-0061620
Buying 6 pens at $20 each, 2 lanyards at $17 each, 5 file boxes at $30 each, 1 badges at $9 each, someone hands over $350. What change comes back? Coded up: ```python items = [(6, 20), (2, 17), (5, 30), (1, 9)] total = sum(q * p for q, p in items) # 313 paid = 350 change = paid - total # 37 print(change) ``` Console...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "37", "printed": "37", "notation": null}
nlprog_det-setting-0061621
Papers were served by mail on December 1, 2022. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date? The computation: ```python from datetime import date, timedelta served = date(2022, 12, 1) # datetime.date(2022, 12, 1) response_days = 28 mail_days = 3 due = served + timedelt...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
173
{"gold": "2023-01-01", "printed": "2023-01-01", "notation": null}
nlprog_det-setting-0061622
A settlement of $2,640 is split equally among 4 parties. How much does each party receive? Each share is $660.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "660", "printed": "660", "notation": null}
nlprog_det-setting-0061623
<|start|><|user|> Scale 240 g of lentils from 6 servings to 8 servings.<|eot|> <|assistant|> ```python grams = 240 serves = 6 needed_for = 8 scaled = grams * needed_for // serves # 320 print(scaled) ``` Shell output: 320 320 grams of lentils are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Scale 240 g of lentils from 6 servings to 8 servings." }, { "role": "assistant", "content": "```python\ngrams = 240\nserves = 6\nneeded_for = 8\nscaled = grams * needed_for // serves # 320\nprint(scaled)\n```\nShell output: 320\n\n320 grams of lentils are needed." ...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "320", "printed": "320", "notation": null}
nlprog_det-setting-0061624
A penalty of $50 a day accrues, capped at $5,000. What is owed after 42 days? Here's the code. ```python per_day = 50 days = 42 cap = 5000 fine = min(per_day * days, cap) # 2100 print(fine) ``` Program output — 2100 $2,100 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "2100", "printed": "2100", "notation": null}
nlprog_det-setting-0061625
<|start|><|user|> A meeting lasted 4 hours and 38 minutes. How many minutes is that?<|eot|> <|assistant|> ```python hours = 4 minutes = 38 total_minutes = hours * 60 + minutes # 278 print(total_minutes) ``` The run gives 278, as expected. That is 278 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A meeting lasted 4 hours and 38 minutes. How many minutes is that?" }, { "role": "assistant", "content": "```python\nhours = 4\nminutes = 38\ntotal_minutes = hours * 60 + minutes # 278\nprint(total_minutes)\n```\nThe run gives 278, as expected.\n\nThat is 278 minut...
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "278", "printed": "278", "notation": null}
nlprog_det-setting-0061626
Convert 10 °C to Fahrenheit. Python: ```python celsius = 10 fahrenheit = celsius * 9 / 5 + 32 print(round(fahrenheit)) ``` # output: 50 That is 50 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0061627
A water bill is $12 plus $3.50 per thousand gallons beyond the first 2 thousand. What is the bill for 15 thousand gallons? Here's the code. ```python base = 12 rate = 3.5 used = 15 free = 2 bill = base + rate * max(0, used - free) print(f"{bill:.2f}") ``` Executing it gives: 57.50 $57.50 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "57.50", "printed": "57.50", "notation": null}
nlprog_det-setting-0061628
From a $2,500 retainer, 9 hours at $275/hour have been drawn. What remains? Set it up in Python: ```python retainer = 2500 hours = 9 rate = 275 left = retainer - hours * rate # 25 print(left) ``` The program prints 25. $25 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0061629
A lawyer's fee is 30% of a $12,000 recovery. How large is the fee? In Python: ```python recovery = 12000 rate = 30 / 100 # 0.3 fee = recovery * rate # 3600.0 print(f"{fee:.2f}") ``` Execution prints 3600.00, as expected. The fee is $3,600.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "3600.00", "printed": "3600.00", "notation": null}
nlprog_det-setting-0061630
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> The paralegal logged 10.5 hours at a rate of $300. How much is billed?<|eot|> <|assistant|> ```python hours = 10.5 rate = 300 bill = hours * rate # 3150.0 print(f"{bill:.2f}") ``` Executed, it shows: 3150.00 The bill is $3,150.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "The paralegal logged 10.5 hours at a rate of $300. How much is billed?" }, { "role": "assistant", "content": "```python\nhours = 10.5\nrate = 300\nbill = hours * rate # 3150.0\nprint(f\"{b...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "3150.00", "printed": "3150.00", "notation": null}
nlprog_det-setting-0061631
<|start|><|user|> A water bill is $15 plus $4.20 per thousand gallons beyond the first 3 thousand. What is the bill for 5 thousand gallons?<|eot|> <|assistant|> ```python base = 15 rate = 4.2 used = 5 free = 3 bill = base + rate * max(0, used - free) # 23.4 print(f"{bill:.2f}") ``` Interpreter output — 23.40 The bill...
chat
[ { "role": "user", "content": "A water bill is $15 plus $4.20 per thousand gallons beyond the first 3 thousand. What is the bill for 5 thousand gallons?" }, { "role": "assistant", "content": "```python\nbase = 15\nrate = 4.2\nused = 5\nfree = 3\nbill = base + rate * max(0, used - free) # 23.4\np...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "23.40", "printed": "23.40", "notation": null}
nlprog_det-setting-0061632
<|start|><|user|> The meal allowance is $69 per day. What is it for 9 days?<|eot|> <|assistant|> days = 9 meal_rate = 69 total = days * meal_rate # 621 print(total) Printed: 621 The allowance is $621.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The meal allowance is $69 per day. What is it for 9 days?" }, { "role": "assistant", "content": " days = 9\n meal_rate = 69\n total = days * meal_rate # 621\n print(total)\nPrinted: 621\n\nThe allowance is $621." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
68
{"gold": "621", "printed": "621", "notation": null}
nlprog_det-setting-0061633
Equal monthly payments repay $9,000 plus 6% simple yearly interest over 36 months. How large is a payment? ```python principal = 9000 annual_rate = 6 / 100 # 0.06 months = 36 interest = principal * annual_rate * months / 12 # 1620.0 payment = (principal + interest) / months # 295.0 print(f"{payment:.2f}") ``` Runni...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "295.00", "printed": "295.00", "notation": null}
nlprog_det-setting-0061634
A meal costs $222.71. How much is a 20% tip? The tip is $44.54.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "44.54", "printed": "44.54", "notation": null}
nlprog_det-setting-0061635
<|start|><|user|> At 1% a month (simple), what interest builds on $1,000 over 6 months?<|eot|> <|assistant|> ```python balance = 1000 monthly_rate = 1 / 100 # 0.01 months = 6 interest = balance * monthly_rate * months # 60.0 print(f"{interest:.2f}") ``` Python prints: 60.00 The interest is $60.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 1% a month (simple), what interest builds on $1,000 over 6 months?" }, { "role": "assistant", "content": "```python\nbalance = 1000\nmonthly_rate = 1 / 100 # 0.01\nmonths = 6\ninterest = balance * monthly_rate * months # 60.0\nprint(f\"{interest:.2f}\")\n```\nP...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "60.00", "printed": "60.00", "notation": null}
nlprog_det-setting-0061636
Pack A has 8 items for $10.24. Pack B has 30 items for $17.26. Which has the lower price per item? In code: ```python pack_a = 10.24 / 8 # 1.28 pack_b = 17.26 / 30 # 0.5753333333333334 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` When run, it prints: B Pack B is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0061637
$2,000 is invested at 4% compounded yearly. What is it worth after 4 years? Translated to Python: ```python principal = 2000 rate = 4 / 100 # 0.04 years = 4 value = principal * (1 + rate) ** years # 2339.7171200000003 print(f"{value:.2f}") ``` Run it and it prints: 2339.72 The balance is $2,339.72.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "2339.72", "printed": "2339.72", "notation": null}
nlprog_det-setting-0061638
Equal monthly payments repay $6,000 plus 5% simple yearly interest over 24 months. How large is a payment? In code: ```python principal = 6000 annual_rate = 5 / 100 # 0.05 months = 24 interest = principal * annual_rate * months / 12 # 600.0 payment = (principal + interest) / months # 275.0 print(f"{payment:.2f}") `...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "275.00", "printed": "275.00", "notation": null}
nlprog_det-setting-0061639
Copies cost $15 plus $0.10 for each page beyond 10. How much for 6 pages? ```python pages = 6 base = 15 per_page = 0.1 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 15.0 print(f"{cost:.2f}") ``` (Printed result: 15.00) The total is $15.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "15.00", "printed": "15.00", "notation": null}
nlprog_det-setting-0061640
Revenue is $17,500 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)? Computation in Python: revenue = 17500 costs = 12500 profit = revenue - costs # 5000 margin = profit / revenue * 100 # 28.57142857142857 print(round(margin, 1)) (Result: 28.6) Profit is 28....
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "28.6", "printed": "28.6", "notation": null}
nlprog_det-setting-0061641
<|start|><|user|> Equipment costs $30,000, has a salvage value of $0, and a useful life of 5 years. What is the straight-line depreciation per year?<|eot|> <|assistant|> ```python cost = 30000 salvage = 0 years = 5 per_year = (cost - salvage) / years # 6000.0 print(f"{per_year:.2f}") ``` The script prints 6000.00, as ...
chat
[ { "role": "user", "content": "Equipment costs $30,000, has a salvage value of $0, and a useful life of 5 years. What is the straight-line depreciation per year?" }, { "role": "assistant", "content": "```python\ncost = 30000\nsalvage = 0\nyears = 5\nper_year = (cost - salvage) / years # 6000.0\n...
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "6000.00", "printed": "6000.00", "notation": null}
nlprog_det-setting-0061642
<|start|><|user|> Monthly rent is $1,200. A tenant moves in with 12 days left in a 30-day month. What is the prorated rent?<|eot|> <|assistant|> rent = 1200 days_in_month = 30 days_occupied = 12 prorated = rent * days_occupied / days_in_month # 480.0 print(f"{prorated:.2f}") Output: 480.00 The pro...
chat
[ { "role": "user", "content": "Monthly rent is $1,200. A tenant moves in with 12 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 = 12\n prorated = rent * days_occupied / days_in_month # 4...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "480.00", "printed": "480.00", "notation": null}
nlprog_det-setting-0061643
<|start|><|system|> You have access to these functions: [{"name": "py_exec", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> Sales went...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"py_exec\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"...
nlprog_det
setting
original
null
deterministic
[]
[]
204
{"gold": "-40", "printed": "-40", "notation": null}
nlprog_det-setting-0061644
What is a 20% tip on a $159.83 bill? Coded up: ```python bill = 159.83 tip_rate = 20 / 100 # 0.2 tip = bill * tip_rate # 31.966000000000005 print(f"{tip:.2f}") ``` Output of the run: 31.97 The tip is $31.97.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "31.97", "printed": "31.97", "notation": null}
nlprog_det-setting-0061645
<|start|><|system|> You can call tools. Available tools: [{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "translate", "description": "Translate text into another language.", "parameter...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"translate\", \"descripti...
nlprog_det
setting
original
null
deterministic
[]
[]
405
{"gold": "2023-09-13", "printed": "2023-09-13", "notation": null}
nlprog_det-setting-0061646
<|start|><|system|> You are a precise assistant.<|eot|> <|user|> Convert 10 °C to Fahrenheit.<|eot|> <|assistant|> That is 50 °F.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a precise assistant." }, { "role": "user", "content": "Convert 10 °C to Fahrenheit." }, { "role": "assistant", "content": "That is 50 °F." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0061647
<|start|><|user|> Attendance was 10 out of 20. Express it as a percent.<|eot|> <|assistant|> ```python present = 10 total = 20 percent = present / total * 100 # 50.0 print(round(percent, 1)) ``` The program prints 50.0. 50.0% attended.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Attendance was 10 out of 20. Express it as a percent." }, { "role": "assistant", "content": "```python\npresent = 10\ntotal = 20\npercent = present / total * 100 # 50.0\nprint(round(percent, 1))\n```\nThe program prints 50.0.\n\n50.0% attended." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "50.0", "printed": "50.0", "notation": null}
nlprog_det-setting-0061648
Prorate $900 of monthly rent for 21 days of a 31-day month. As Python: rent = 900 days_in_month = 31 days_occupied = 21 prorated = rent * days_occupied / days_in_month # 609.6774193548387 print(f"{prorated:.2f}") Output: 609.68 The tenant owes $609.68.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "609.68", "printed": "609.68", "notation": null}
nlprog_det-setting-0061649
<|start|><|user|> Viktor's scores were 54, 99, 64 and 63. What is the average score?<|eot|> <|assistant|> ```python scores = [54, 99, 64, 63] average = sum(scores) // len(scores) # 70 print(average) ``` Result: 70 The mean is 70.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Viktor's scores were 54, 99, 64 and 63. What is the average score?" }, { "role": "assistant", "content": "```python\nscores = [54, 99, 64, 63]\naverage = sum(scores) // len(scores) # 70\nprint(average)\n```\nResult:\n70\n\nThe mean is 70." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "70", "printed": "70", "notation": null}
nlprog_det-setting-0061650
<|start|><|user|> What simple interest does $5,000 earn at 2% a year over 3 years?<|eot|> <|assistant|> principal = 5000 rate = 2 / 100 years = 3 interest = principal * rate * years print(f"{interest:.2f}") Execution prints 300.00. The interest is $300.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What simple interest does $5,000 earn at 2% a year over 3 years?" }, { "role": "assistant", "content": " principal = 5000\n rate = 2 / 100\n years = 3\n interest = principal * rate * years\n print(f\"{interest:.2f}\")\nExecution prints 300.00.\n\nThe ...
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "300.00", "printed": "300.00", "notation": null}
nlprog_det-setting-0061651
Fixed costs are $4,000. Each unit sells for $40 and costs $36 to make. How many units must be sold to break even? In code: ```python import math fixed = 4000 price = 40 variable = 36 units = math.ceil(fixed / (price - variable)) # 1000 print(units) ``` The printout reads 1000. 1000 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0061652
<|start|><|system|> You help paralegals with routine tasks.<|eot|> <|user|> A measure needs at least 67% of 57 votes. How many votes is that, rounded up?<|eot|> <|assistant|> ```python import math voters = 57 needed = math.ceil(voters * 67 / 100) # 39 print(needed) ``` Out = 39 At least 39 votes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help paralegals with routine tasks." }, { "role": "user", "content": "A measure needs at least 67% of 57 votes. How many votes is that, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 57\nneeded = math.ceil(voter...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "39", "printed": "39", "notation": null}
nlprog_det-setting-0061653
The paralegal logged 7 hours at a rate of $180. How much is billed? Computing it: ```python hours = 7 rate = 180 bill = hours * rate # 1260 print(f"{bill:.2f}") ``` (Printed result: 1260.00) The bill is $1,260.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "1260.00", "printed": "1260.00", "notation": null}
nlprog_det-setting-0061654
<|start|><|user|> The statute was enacted in 2008. How many years had passed by 2028?<|eot|> <|assistant|> 20 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The statute was enacted in 2008. How many years had passed by 2028?" }, { "role": "assistant", "content": "20 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0061656
A 4-day trip pays $64 a day for meals and $140 a night for lodging (3 nights). What is the total allowance? ```python days = 4 meal_rate = 64 lodging_rate = 140 nights = days - 1 # 3 total = days * meal_rate + nights * lodging_rate # 676 print(total) ``` What it prints: 676 The allowance is $676.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "676", "printed": "676", "notation": null}
nlprog_det-setting-0061657
Fiona's scores were 99, 60, 62 and 51. What is the average score? We write it as a program: ```python scores = [99, 60, 62, 51] average = sum(scores) // len(scores) # 68 print(average) ``` Executed, it shows: 68 The mean is 68.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "68", "printed": "68", "notation": null}
nlprog_det-setting-0061658
<|start|><|user|> From 2005 to 2022, how many years is that?<|eot|> <|assistant|> 17 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From 2005 to 2022, how many years is that?" }, { "role": "assistant", "content": "17 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
23
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0061659
<|start|><|user|> Someone works 16 hours at $25.82 per hour. What are the earnings?<|eot|> <|assistant|> ```python rate = 25.82 hours = 16 earnings = rate * hours # 413.12 print(f"{earnings:.2f}") ``` Program output: 413.12 The pay is $413.12.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Someone works 16 hours at $25.82 per hour. What are the earnings?" }, { "role": "assistant", "content": "```python\nrate = 25.82\nhours = 16\nearnings = rate * hours # 413.12\nprint(f\"{earnings:.2f}\")\n```\nProgram output: 413.12\n\nThe pay is $413.12." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "413.12", "printed": "413.12", "notation": null}
nlprog_det-setting-0061660
<|start|><|system|> Tools you may use: [{"name": "run_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> Split $1,428 between Han...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"run_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\...
nlprog_det
setting
original
null
deterministic
[]
[]
237
{"gold": "612", "printed": "612", "notation": null}
nlprog_det-setting-0061661
Idris earns $25.00 an hour and time and a half for hours over 40. What is the pay for a 54-hour week? Here is a short program for it. ```python rate = 25.0 hours = 54 regular = 40 * rate # 1000.0 overtime = (hours - 40) * rate * 1.5 # 525.0 pay = regular + overtime # 1525.0 print(f"{pay:.2f}") ``` The program outpu...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "1525.00", "printed": "1525.00", "notation": null}
nlprog_det-setting-0061662
<|start|><|user|> How many of 279 votes make 75% (round up)?<|eot|> <|assistant|> ```python import math voters = 279 needed = math.ceil(voters * 75 / 100) # 210 print(needed) ``` Run output — 210 At least 210 votes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 279 votes make 75% (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 279\nneeded = math.ceil(voters * 75 / 100) # 210\nprint(needed)\n```\nRun output — 210\n\nAt least 210 votes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "210", "printed": "210", "notation": null}
nlprog_det-setting-0061664
<|start|><|user|> A count moves from 2,500 to 2,250. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> ```python old = 2500 new = 2250 change = (new - old) / old * 100 # -10.0 print(round(change)) ``` Python prints -10, as expected. The change is -10%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A count moves from 2,500 to 2,250. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": "```python\nold = 2500\nnew = 2250\nchange = (new - old) / old * 100 # -10.0\nprint(round(change))\n```\nPython prints -10, as expe...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "-10", "printed": "-10", "notation": null}
nlprog_det-setting-0061665
Starting with 1062 hard drives and using 6 per day, how many remain after 16 days? A short script: ```python stock = 1062 per_day = 6 days = 16 left = stock - per_day * days # 966 print(left) ``` When run, it prints 966, as expected. 966 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "966", "printed": "966", "notation": null}
nlprog_det-setting-0061666
<|start|><|user|> The rules require 1/3 of 48 members (round up) to be present. How many is that?<|eot|> <|assistant|> That is 16 members.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The rules require 1/3 of 48 members (round up) to be present. How many is that?" }, { "role": "assistant", "content": "That is 16 members." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0061667
<|start|><|system|> You help people work with structured data.<|eot|> <|user|> Pack A has 12 items for $10.90. Pack B has 20 items for $8.46. Which has the lower price per item?<|eot|> <|assistant|> ```python pack_a = 10.9 / 12 # 0.9083333333333333 pack_b = 8.46 / 20 # 0.42300000000000004 cheaper = "A" if pack_a < pa...
chat
[ { "role": "system", "content": "You help people work with structured data." }, { "role": "user", "content": "Pack A has 12 items for $10.90. Pack B has 20 items for $8.46. Which has the lower price per item?" }, { "role": "assistant", "content": "```python\npack_a = 10.9 / 12 # 0.90...
nlprog_det
setting
original
null
deterministic
[]
[]
158
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0061668
Monthly rent is $1,800. A tenant moves in with 8 days left in a 30-day month. What is the prorated rent? Written as code: ```python rent = 1800 days_in_month = 30 days_occupied = 8 prorated = rent * days_occupied / days_in_month print(f"{prorated:.2f}") ``` # out: 480.00 The tenant owes $480.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "480.00", "printed": "480.00", "notation": null}
nlprog_det-setting-0061669
Counting only Monday through Friday, how many business days are there after June 7, 2023 through July 11, 2023? Here is a short program for it. from datetime import date, timedelta start = date(2023, 6, 7) end = date(2023, 7, 11) count = 0 for k in range(1, (end - start).days + 1): if (star...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0061670
The landlord deducts $60 from a $800 deposit. What is returned to the tenant? Let's compute it with Python. ```python deposit = 800 deductions = [60] refund = deposit - sum(deductions) # 740 print(refund) ``` Out — 740 $740 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "740", "printed": "740", "notation": null}
nlprog_det-setting-0061671
<|start|><|user|> Counting the first and last day, how many days are there from November 7, 2024 through November 29, 2024?<|eot|> <|assistant|> from datetime import date first = date(2024, 11, 7) # datetime.date(2024, 11, 7) last = date(2024, 11, 29) # datetime.date(2024, 11, 29) days = (last - first...
chat
[ { "role": "user", "content": "Counting the first and last day, how many days are there from November 7, 2024 through November 29, 2024?" }, { "role": "assistant", "content": " from datetime import date\n first = date(2024, 11, 7) # datetime.date(2024, 11, 7)\n last = date(2024, 11, 29)...
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0061672
How many meters are in 16.7 kilometers? Translated to Python: ```python km = 16.7 meters = km * 1000 # 16700.0 print(round(meters)) ``` Output: 16700 16,700 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "16700", "printed": "16700", "notation": null}
nlprog_det-setting-0061673
<|start|><|user|> With 30% off, what does a $90 printer cost?<|eot|> <|assistant|> ```python price = 90 discount = 30 / 100 # 0.3 sale_price = price * (1 - discount) # 62.99999999999999 print(f"{sale_price:.2f}") ``` The run gives: 63.00 It costs $63.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 30% off, what does a $90 printer cost?" }, { "role": "assistant", "content": "```python\nprice = 90\ndiscount = 30 / 100 # 0.3\nsale_price = price * (1 - discount) # 62.99999999999999\nprint(f\"{sale_price:.2f}\")\n```\nThe run gives: 63.00\n\nIt costs $63.00...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "63.00", "printed": "63.00", "notation": null}
nlprog_det-setting-0061674
Prorate $1,500 of monthly rent for 12 days of a 30-day month. Python makes this quick: ```python rent = 1500 days_in_month = 30 days_occupied = 12 prorated = rent * days_occupied / days_in_month # 600.0 print(f"{prorated:.2f}") ``` It prints: 600.00 The prorated rent is $600.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "600.00", "printed": "600.00", "notation": null}
nlprog_det-setting-0061675
<|start|><|user|> A recipe for 6 people uses 100 grams of rice. How many grams are needed for 3 people?<|eot|> <|assistant|> Use 50 g of rice.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A recipe for 6 people uses 100 grams of rice. How many grams are needed for 3 people?" }, { "role": "assistant", "content": "Use 50 g of rice." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0061676
6 claimants share a $84,000 settlement equally. What is each share? Coded up: ```python settlement = 84000 parties = 6 share = settlement // parties # 14000 print(share) ``` Python prints 14000. Each share is $14,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "14000", "printed": "14000", "notation": null}
nlprog_det-setting-0061677
Farah lends $20,000 at 8% simple interest per year for 2 years. How much interest is earned? It earns $3,200.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "3200.00", "printed": "3200.00", "notation": null}
nlprog_det-setting-0061678
<|start|><|user|> A storeroom has 512 paper reams. The office uses 32 a day. How many are left after 8 days?<|eot|> <|assistant|> ```python stock = 512 per_day = 32 days = 8 left = stock - per_day * days # 256 print(left) ``` # run result: 256 256 remain.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A storeroom has 512 paper reams. The office uses 32 a day. How many are left after 8 days?" }, { "role": "assistant", "content": "```python\nstock = 512\nper_day = 32\ndays = 8\nleft = stock - per_day * days # 256\nprint(left)\n```\n# run result: 256\n\n256 remain....
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "256", "printed": "256", "notation": null}
nlprog_det-setting-0061679
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "interpreter", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"interpreter\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Pytho...
nlprog_det
setting
original
null
deterministic
[]
[]
277
{"gold": "2022-07-21", "printed": "2022-07-21", "notation": null}
nlprog_det-setting-0061680
<|start|><|user|> With 18 rows of 18 chairs and 18 empty chairs, how many chairs are taken?<|eot|> <|assistant|> ```python rows = 18 per_row = 18 empty = 18 seated = rows * per_row - empty # 306 print(seated) ``` This prints: 306 306 people are seated.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 18 rows of 18 chairs and 18 empty chairs, how many chairs are taken?" }, { "role": "assistant", "content": "```python\nrows = 18\nper_row = 18\nempty = 18\nseated = rows * per_row - empty # 306\nprint(seated)\n```\nThis prints: 306\n\n306 people are seated." ...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "306", "printed": "306", "notation": null}
nlprog_det-setting-0061681
Equal monthly payments repay $9,000 plus 6% simple yearly interest over 36 months. How large is a payment? Computation in Python: ```python principal = 9000 annual_rate = 6 / 100 # 0.06 months = 36 interest = principal * annual_rate * months / 12 # 1620.0 payment = (principal + interest) / months # 295.0 print(f"{p...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "295.00", "printed": "295.00", "notation": null}
nlprog_det-setting-0061682
Straight-line depreciation: cost $12,000, salvage $0, 4 years. How much per year? Let's compute it with Python. ```python cost = 12000 salvage = 0 years = 4 per_year = (cost - salvage) / years # 3000.0 print(f"{per_year:.2f}") ``` Execution result — 3000.00 Depreciation is $3,000.00 per year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "3000.00", "printed": "3000.00", "notation": null}
nlprog_det-setting-0061683
Someone born May 18, 2001 turns how old by July 16, 2029? Give the age in whole years. ```python from datetime import date born = date(2001, 5, 18) # datetime.date(2001, 5, 18) on = date(2029, 7, 16) # datetime.date(2029, 7, 16) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 28 print(ag...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0061684
A film lasted 1 hours and 16 minutes. How many minutes is that? Here's the code. ```python hours = 1 minutes = 16 total_minutes = hours * 60 + minutes # 76 print(total_minutes) ``` What it prints: 76 The film lasted 76 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "76", "printed": "76", "notation": null}
nlprog_det-setting-0061685
Under a 33% contingency agreement, what fee is owed on a $12,000 award? In code: ```python recovery = 12000 rate = 33 / 100 # 0.33 fee = recovery * rate # 3960.0 print(f"{fee:.2f}") ``` Executing it gives 3960.00. The lawyer's fee comes to $3,960.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "3960.00", "printed": "3960.00", "notation": null}
nlprog_det-setting-0061686
A garage charges $5 an hour, never more than $18 a day. How much for 12 hours? As a program: ```python rate = 5 hours = 12 daily_max = 18 cost = min(rate * hours, daily_max) # 18 print(cost) ``` (Output: 18) Parking costs $18.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0061687
The bridge was finished in 2008. How many years had passed by 2030? Here's the code. ```python start_year = 2008 end_year = 2030 print(end_year - start_year) ``` Run it and it prints 22. That is 22 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0061688
A 6-day trip pays $69 a day for meals and $110 a night for lodging (5 nights). What is the total allowance? Translated to Python: ```python days = 6 meal_rate = 69 lodging_rate = 110 nights = days - 1 # 5 total = days * meal_rate + nights * lodging_rate # 964 print(total) ``` Console: 964 The allowance is $964.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "964", "printed": "964", "notation": null}
nlprog_det-setting-0061689
Goods bought on October 26, 2019 carry a 6-month warranty. When does it expire? The computation: ```python from datetime import date start = date(2019, 10, 26) months = 6 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` stdo...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "2020-04-26", "printed": "2020-04-26", "notation": null}
nlprog_det-setting-0061690
A 6 × 3 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up? Python makes this quick: ```python import math length = 6 width = 3 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 5 print(tiles) ``` The program outputs: 5 5 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0061691
<|start|><|user|> A 6-month warranty starts on October 4, 2020. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date start = date(2020, 10, 4) months = 6 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat...
chat
[ { "role": "user", "content": "A 6-month warranty starts on October 4, 2020. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2020, 10, 4)\nmonths = 6\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(start.ye...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "2021-04-04", "printed": "2021-04-04", "notation": null}
nlprog_det-setting-0061692
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "sandbox_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "loo...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"sandbox_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source...
nlprog_det
setting
original
null
deterministic
[]
[]
380
{"gold": "2.53", "printed": "2.53", "notation": null}
nlprog_det-setting-0061693
<|start|><|user|> A $800 security deposit has deductions of $45. How much is refunded?<|eot|> <|assistant|> ```python deposit = 800 deductions = [45] refund = deposit - sum(deductions) print(refund) ``` Run output — 755 The refund is $755.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $800 security deposit has deductions of $45. How much is refunded?" }, { "role": "assistant", "content": "```python\ndeposit = 800\ndeductions = [45]\nrefund = deposit - sum(deductions)\nprint(refund)\n```\nRun output — 755\n\nThe refund is $755." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "755", "printed": "755", "notation": null}
nlprog_det-setting-0061694
7 rulers cost $12 apiece. With 7% tax added, what is the total? Here is a short program for it. quantity = 7 unit_price = 12 subtotal = quantity * unit_price # 84 total = subtotal * (1 + 7 / 100) # 89.88000000000001 print(f"{total:.2f}") The program outputs 89.88. The total with tax is $89.88.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "89.88", "printed": "89.88", "notation": null}
nlprog_det-setting-0061695
The building opened in 2022. How many years had passed by 2049? The computation: start_year = 2022 end_year = 2049 print(end_year - start_year) The run gives: 27 27 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
58
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0061696
<|start|><|system|> You can call tools. Available tools: [{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "math_engine", "description": "Evaluates Python and returns the printed output....
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"math_engine\", \"descrip...
nlprog_det
setting
original
null
deterministic
[]
[]
329
{"gold": "10:15 AM", "printed": "10:15 AM", "notation": null}
nlprog_det-setting-0061697
A room is 14 feet by 6 feet. Flooring costs $5 per square foot. What does it cost to floor the room? The flooring costs $420.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "420", "printed": "420", "notation": null}
nlprog_det-setting-0061698
A 3-day trip pays $59 a day for meals and $175 a night for lodging (2 nights). What is the total allowance? Computing it: ```python days = 3 meal_rate = 59 lodging_rate = 175 nights = days - 1 # 2 total = days * meal_rate + nights * lodging_rate # 527 print(total) ``` Out: 527 That comes to $527.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "527", "printed": "527", "notation": null}
nlprog_det-setting-0061699
After a 30% fee is taken from a $96,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share? Python makes this quick: ```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}") ``` Printed ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "16800.00", "printed": "16800.00", "notation": null}
nlprog_det-setting-0061701
Equipment costs $24,000, has a salvage value of $2,000, and a useful life of 10 years. What is the straight-line depreciation per year? As a program: ```python cost = 24000 salvage = 2000 years = 10 per_year = (cost - salvage) / years # 2200.0 print(f"{per_year:.2f}") ``` (Printed: 2200.00) $2,200.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "2200.00", "printed": "2200.00", "notation": null}
nlprog_det-setting-0061703
<|start|><|user|> How many meters are in 84.4 kilometers?<|eot|> <|assistant|> 84,400 m.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many meters are in 84.4 kilometers?" }, { "role": "assistant", "content": "84,400 m." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "84400", "printed": "84400", "notation": null}
nlprog_det-setting-0061704
A recipe for 8 people uses 200 grams of oats. How many grams are needed for 3 people? Here is a short program for it. ```python grams = 200 serves = 8 needed_for = 3 scaled = grams * needed_for // serves # 75 print(scaled) ``` Result — 75 Use 75 g of oats.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "75", "printed": "75", "notation": null}