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-0054103
At 45 miles per hour, how many minutes does a 180-mile trip take? Computing it: ```python distance = 180 speed = 45 minutes = distance / speed * 60 # 240.0 print(round(minutes)) ``` Interpreter output: 240 240 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "240", "printed": "240", "notation": null}
nlprog_det-setting-0054105
A court charges $10 per request plus $0.25 per page after the first 0 pages. What does a 9-page copy cost? A Python solution: ```python pages = 9 base = 10 per_page = 0.25 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 12.25 print(f"{cost:.2f}") ``` Run output: 12.25 The total is $12.25.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "12.25", "printed": "12.25", "notation": null}
nlprog_det-setting-0054106
With 40% off, what does a $250 jacket cost? A short script: ```python price = 250 discount = 40 / 100 # 0.4 sale_price = price * (1 - discount) # 150.0 print(f"{sale_price:.2f}") ``` stdout: 150.00 It costs $150.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "150.00", "printed": "150.00", "notation": null}
nlprog_det-setting-0054107
How many weekdays (Monday to Friday) fall after May 22, 2025 up to and including June 3, 2025? Code: ```python from datetime import date, timedelta start = date(2025, 5, 22) end = date(2025, 6, 3) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() < 5: count += 1 ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
154
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0054109
At 1.5% a month (simple), what interest builds on $4,000 over 2 months? A short script: ```python balance = 4000 monthly_rate = 1.5 / 100 # 0.015 months = 2 interest = balance * monthly_rate * months # 120.0 print(f"{interest:.2f}") ``` Executed, it shows 120.00. The interest is $120.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "120.00", "printed": "120.00", "notation": null}
nlprog_det-setting-0054110
<|start|><|user|> If a 3-year limitations period starts on October 10, 2015, when does it end?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2015, 10, 10) years = 3 expires = accrued.replace(year=accrued.year + years) print(expires.isoformat()) ``` The program prints 2018-10-10, as expected. ...
chat
[ { "role": "user", "content": "If a 3-year limitations period starts on October 10, 2015, when does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2015, 10, 10)\nyears = 3\nexpires = accrued.replace(year=accrued.year + years)\nprint(expires.iso...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "2018-10-10", "printed": "2018-10-10", "notation": null}
nlprog_det-setting-0054111
<|start|><|user|> What commission does Ana make on $119,861 in sales at 6%?<|eot|> <|assistant|> ```python sales = 119861 rate = 6 / 100 # 0.06 commission = sales * rate # 7191.66 print(f"{commission:.2f}") ``` Console output: 7191.66 Ana earns $7,191.66.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What commission does Ana make on $119,861 in sales at 6%?" }, { "role": "assistant", "content": "```python\nsales = 119861\nrate = 6 / 100 # 0.06\ncommission = sales * rate # 7191.66\nprint(f\"{commission:.2f}\")\n```\nConsole output: 7191.66\n\nAna earns $7,191.6...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "7191.66", "printed": "7191.66", "notation": null}
nlprog_det-setting-0054112
<|start|><|user|> Filing fees are $350 per document. What do 19 filings cost?<|eot|> <|assistant|> ```python fee = 350 filings = 19 total = fee * filings # 6650 print(total) ``` Shell output: 6650 $6,650 in filing fees.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Filing fees are $350 per document. What do 19 filings cost?" }, { "role": "assistant", "content": "```python\nfee = 350\nfilings = 19\ntotal = fee * filings # 6650\nprint(total)\n```\nShell output: 6650\n\n$6,650 in filing fees." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "6650", "printed": "6650", "notation": null}
nlprog_det-setting-0054113
One can of paint covers 350 square feet. How many cans are needed for 1289 square feet of wall? Python, step by step: ```python import math area = 1289 coverage = 350 cans = math.ceil(area / coverage) # 4 print(cans) ``` The code prints: 4 Buy 4 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0054114
A lawyer's fee is 35% of a $90,000 recovery. How large is the fee? A few lines of Python do it: ```python recovery = 90000 rate = 35 / 100 # 0.35 fee = recovery * rate # 31499.999999999996 print(f"{fee:.2f}") ``` # out: 31500.00 The lawyer's fee comes to $31,500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "31500.00", "printed": "31500.00", "notation": null}
nlprog_det-setting-0054115
<|start|><|user|> How many weekdays (Monday to Friday) fall after February 15, 2022 up to and including March 13, 2022?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2022, 2, 15) end = date(2022, 3, 13) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(day...
chat
[ { "role": "user", "content": "How many weekdays (Monday to Friday) fall after February 15, 2022 up to and including March 13, 2022?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2022, 2, 15)\nend = date(2022, 3, 13)\ncount = 0\nfor k in rang...
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0054116
<|start|><|user|> A car travels 58 miles in 2 hours. What is its average speed in miles per hour?<|eot|> <|assistant|> distance = 58 hours = 2 speed = distance / hours # 29.0 print(round(speed)) (Run result: 29) It averages 29 miles per hour.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A car travels 58 miles in 2 hours. What is its average speed in miles per hour?" }, { "role": "assistant", "content": " distance = 58\n hours = 2\n speed = distance / hours # 29.0\n print(round(speed))\n(Run result: 29)\n\nIt averages 29 miles per hour....
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0054117
<|start|><|system|> Available functions (JSON Schema): {"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}} {"name": "math_engine", "description": "Evaluates Python and returns th...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}\n{\"name\": \"math_e...
nlprog_det
setting
original
null
deterministic
[]
[]
363
{"gold": "5000", "printed": "5000", "notation": null}
nlprog_det-setting-0054118
A party has 21 days to respond to a motion served on April 3, 2019, with 3 days added because service was by mail. When is the response due? Python makes this quick: ```python from datetime import date, timedelta served = date(2019, 4, 3) # datetime.date(2019, 4, 3) response_days = 21 mail_days = 3 due = served + tim...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
177
{"gold": "2019-04-27", "printed": "2019-04-27", "notation": null}
nlprog_det-setting-0054119
<|start|><|user|> Cyrus has 14 documents to file, and each filing costs $405. How much are the filing fees in total?<|eot|> <|assistant|> $5,670 in filing fees.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Cyrus has 14 documents to file, and each filing costs $405. How much are the filing fees in total?" }, { "role": "assistant", "content": "$5,670 in filing fees." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "5670", "printed": "5670", "notation": null}
nlprog_det-setting-0054120
Equipment costs $12,000, has a salvage value of $6,000, and a useful life of 3 years. What is the straight-line depreciation per year? As a program: ```python cost = 12000 salvage = 6000 years = 3 per_year = (cost - salvage) / years # 2000.0 print(f"{per_year:.2f}") ``` Run it and it prints: 2000.00 Depreciation is ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0054121
<|start|><|user|> Starting from $5,000, the team spends $1,560, $3,089, $2,350, $2,593. What remains?<|eot|> <|assistant|> ```python budget = 5000 expenses = [1560, 3089, 2350, 2593] left = budget - sum(expenses) # -4592 print(left) ``` Program output: -4592 The remaining budget is -$4,592.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting from $5,000, the team spends $1,560, $3,089, $2,350, $2,593. What remains?" }, { "role": "assistant", "content": "```python\nbudget = 5000\nexpenses = [1560, 3089, 2350, 2593]\nleft = budget - sum(expenses) # -4592\nprint(left)\n```\nProgram output: -4592\...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "-4592", "printed": "-4592", "notation": null}
nlprog_det-setting-0054122
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "code_runner", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}} {"name"...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"code_runner\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python...
nlprog_det
setting
original
null
deterministic
[]
[]
376
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0054123
How many weekdays (Monday to Friday) fall after April 5, 2027 up to and including April 29, 2027? Code: ```python from datetime import date, timedelta start = date(2027, 4, 5) end = date(2027, 4, 29) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() < 5: count +=...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
153
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0054124
<|start|><|system|> You are a study helper for students.<|eot|> <|user|> 2 clients win $48,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> ```python award = 48000 fee = award * 40 / 100 # 19200.0 remaining = award - fee # 28800.0 per_client = remaining / 2...
chat
[ { "role": "system", "content": "You are a study helper for students." }, { "role": "user", "content": "2 clients win $48,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": "```python\naward = 48000\nfee = awa...
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "14400.00", "printed": "14400.00", "notation": null}
nlprog_det-setting-0054125
<|start|><|user|> Walls total 785 sq ft and each can covers 300 sq ft. How many cans should be bought?<|eot|> <|assistant|> import math area = 785 coverage = 300 cans = math.ceil(area / coverage) # 3 print(cans) It prints 3. 3 cans are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Walls total 785 sq ft and each can covers 300 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": " import math\n area = 785\n coverage = 300\n cans = math.ceil(area / coverage) # 3\n print(cans)\nIt prints 3.\n\n3 cans are n...
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0054126
With 8 rows of 22 chairs and 1 empty chairs, how many chairs are taken? Python: ```python rows = 8 per_row = 22 empty = 1 seated = rows * per_row - empty # 175 print(seated) ``` # output: 175 175 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "175", "printed": "175", "notation": null}
nlprog_det-setting-0054127
Revenue is $40,000 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)? Program: ```python revenue = 40000 costs = 36000 profit = revenue - costs # 4000 margin = profit / revenue * 100 # 10.0 print(round(margin, 1)) ``` Run it and it prints: 10.0 Profit is 10.0% of revenue.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "10.0", "printed": "10.0", "notation": null}
nlprog_det-setting-0054128
36 copies of a 54-page packet are printed at $0.12 per page. What is the cost? Computation in Python: ```python pages = 54 copies = 36 cost_per_page = 0.12 cost = pages * copies * cost_per_page # 233.28 print(f"{cost:.2f}") ``` # console output: 233.28 The job costs $233.28.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "233.28", "printed": "233.28", "notation": null}
nlprog_det-setting-0054129
<|start|><|user|> A penalty of $250 a day accrues, capped at $5,000. What is owed after 6 days?<|eot|> <|assistant|> ```python per_day = 250 days = 6 cap = 5000 fine = min(per_day * days, cap) # 1500 print(fine) ``` Interpreter output — 1500 $1,500 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A penalty of $250 a day accrues, capped at $5,000. What is owed after 6 days?" }, { "role": "assistant", "content": "```python\nper_day = 250\ndays = 6\ncap = 5000\nfine = min(per_day * days, cap) # 1500\nprint(fine)\n```\nInterpreter output — 1500\n\n$1,500 is owe...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0054130
Which is cheaper per unit: 8 for $13.46 (A) or 18 for $14.19 (B)? One way, in code: pack_a = 13.46 / 8 # 1.6825 pack_b = 14.19 / 18 # 0.7883333333333333 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) Output: B Pack B is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0054131
Noor and Jamal share $4,080 in the ratio 3:5. How much does Noor get? Python makes this quick: ```python total = 4080 parts_a = 3 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 1530 print(share_a) ``` Run output — 1530 Noor's share is $1,530.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "1530", "printed": "1530", "notation": null}
nlprog_det-setting-0054132
<|start|><|user|> Filing fees are $150 per document. What do 8 filings cost?<|eot|> <|assistant|> fee = 150 filings = 8 total = fee * filings # 1200 print(total) Execution result — 1200 $1,200 in filing fees.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Filing fees are $150 per document. What do 8 filings cost?" }, { "role": "assistant", "content": " fee = 150\n filings = 8\n total = fee * filings # 1200\n print(total)\nExecution result — 1200\n\n$1,200 in filing fees." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
69
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0054133
<|start|><|system|> You are a study helper for students.<|eot|> <|user|> At 1.5% a month (simple), what interest builds on $7,500 over 3 months?<|eot|> <|assistant|> balance = 7500 monthly_rate = 1.5 / 100 # 0.015 months = 3 interest = balance * monthly_rate * months # 337.5 print(f"{interest:.2f}...
chat
[ { "role": "system", "content": "You are a study helper for students." }, { "role": "user", "content": "At 1.5% a month (simple), what interest builds on $7,500 over 3 months?" }, { "role": "assistant", "content": " balance = 7500\n monthly_rate = 1.5 / 100 # 0.015\n months ...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "337.50", "printed": "337.50", "notation": null}
nlprog_det-setting-0054134
A 150-mile drive at a steady 50 mph takes how many minutes? We write it as a program: ```python distance = 150 speed = 50 minutes = distance / speed * 60 print(round(minutes)) ``` # printed result: 180 The trip takes 180 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "180", "printed": "180", "notation": null}
nlprog_det-setting-0054135
A penalty of $250 a day accrues, capped at $1,000. What is owed after 48 days? Programmatically: per_day = 250 days = 48 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) Python prints 1000, as expected. $1,000 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0054136
<|start|><|user|> A meal costs $60.41. How much is a 20% tip?<|eot|> <|assistant|> ```python bill = 60.41 tip_rate = 20 / 100 # 0.2 tip = bill * tip_rate # 12.082 print(f"{tip:.2f}") ``` Run result: 12.08 The tip is $12.08.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A meal costs $60.41. How much is a 20% tip?" }, { "role": "assistant", "content": "```python\nbill = 60.41\ntip_rate = 20 / 100 # 0.2\ntip = bill * tip_rate # 12.082\nprint(f\"{tip:.2f}\")\n```\nRun result: 12.08\n\nThe tip is $12.08." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "12.08", "printed": "12.08", "notation": null}
nlprog_det-setting-0054137
A measure needs at least 60% of 54 votes. How many votes is that, rounded up? The program: ```python import math voters = 54 needed = math.ceil(voters * 60 / 100) # 33 print(needed) ``` Printed — 33 At least 33 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "33", "printed": "33", "notation": null}
nlprog_det-setting-0054138
Meals are $74 per day and lodging $175 per night. What is the allowance for 7 days and 6 nights? As Python: ```python days = 7 meal_rate = 74 lodging_rate = 175 nights = days - 1 # 6 total = days * meal_rate + nights * lodging_rate # 1568 print(total) ``` Running it prints: 1568 That comes to $1,568.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "1568", "printed": "1568", "notation": null}
nlprog_det-setting-0054140
Find the mean of these test scores: 99, 82, 100, 79, 58, 74 and 68. The computation: ```python scores = [99, 82, 100, 79, 58, 74, 68] average = sum(scores) // len(scores) # 80 print(average) ``` Execution result: 80 The average score is 80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "80", "printed": "80", "notation": null}
nlprog_det-setting-0054141
3 boxes hold 12 toner kits each. After 8 are handed out, how many are left? A few lines of Python do it: ```python boxes = 3 per_box = 12 given_away = 8 left = boxes * per_box - given_away # 28 print(left) ``` Run result — 28 That leaves 28 toner kits.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0054143
Counting the first and last day, how many days are there from April 13, 2020 through May 8, 2020? One way, in code: ```python from datetime import date first = date(2020, 4, 13) # datetime.date(2020, 4, 13) last = date(2020, 5, 8) # datetime.date(2020, 5, 8) days = (last - first).days + 1 # 26 print(days) ``` What ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0054144
An invoice lists 19 staplers at $2 each, plus 6% sales tax. What is the invoice total? As a program: ```python quantity = 19 unit_price = 2 subtotal = quantity * unit_price # 38 total = subtotal * (1 + 6 / 100) # 40.28 print(f"{total:.2f}") ``` Shell output — 40.28 The invoice total is $40.28.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "40.28", "printed": "40.28", "notation": null}
nlprog_det-setting-0054145
A recipe for 8 people uses 200 grams of pasta. How many grams are needed for 3 people? Computing it: ```python grams = 200 serves = 8 needed_for = 3 scaled = grams * needed_for // serves # 75 print(scaled) ``` Out = 75 Use 75 g of pasta.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "75", "printed": "75", "notation": null}
nlprog_det-setting-0054146
<|start|><|user|> Rent of $900 goes up 8%. What is the new rent?<|eot|> <|assistant|> ```python rent = 900 increase = 8 / 100 # 0.08 new_rent = rent * (1 + increase) # 972.0000000000001 print(f"{new_rent:.2f}") ``` Execution prints 972.00. It rises to $972.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rent of $900 goes up 8%. What is the new rent?" }, { "role": "assistant", "content": "```python\nrent = 900\nincrease = 8 / 100 # 0.08\nnew_rent = rent * (1 + increase) # 972.0000000000001\nprint(f\"{new_rent:.2f}\")\n```\nExecution prints 972.00.\n\nIt rises to $...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "972.00", "printed": "972.00", "notation": null}
nlprog_det-setting-0054147
A 8-day trip pays $64 a day for meals and $140 a night for lodging (7 nights). What is the total allowance? Program: ```python days = 8 meal_rate = 64 lodging_rate = 140 nights = days - 1 # 7 total = days * meal_rate + nights * lodging_rate # 1492 print(total) ``` The code prints 1492. The allowance is $1,492.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "1492", "printed": "1492", "notation": null}
nlprog_det-setting-0054148
At an exchange rate of 0.92 USD per GBP, how many USD is 1,223 GBP? We write it as a program: ```python amount = 1223 rate = 0.92 converted = amount * rate # 1125.16 print(f"{converted:.2f}") ``` Shell output: 1125.16 It converts to 1,125.16 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "1125.16", "printed": "1125.16", "notation": null}
nlprog_det-setting-0054149
How many 1-foot square tiles cover a 20 ft by 11 ft floor (round up)? The Python version: ```python import math length = 20 width = 11 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 220 print(tiles) ``` Run result = 220 It takes 220 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "220", "printed": "220", "notation": null}
nlprog_det-setting-0054150
<|start|><|user|> 92 copies of a 37-page packet are printed at $0.15 per page. What is the cost?<|eot|> <|assistant|> ```python pages = 37 copies = 92 cost_per_page = 0.15 cost = pages * copies * cost_per_page # 510.59999999999997 print(f"{cost:.2f}") ``` Execution result — 510.60 Printing costs $510.60.<|eot|> <|end...
chat
[ { "role": "user", "content": "92 copies of a 37-page packet are printed at $0.15 per page. What is the cost?" }, { "role": "assistant", "content": "```python\npages = 37\ncopies = 92\ncost_per_page = 0.15\ncost = pages * copies * cost_per_page # 510.59999999999997\nprint(f\"{cost:.2f}\")\n```\n...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "510.60", "printed": "510.60", "notation": null}
nlprog_det-setting-0054151
<|start|><|user|> Buying 5 tape rolls at $3 each, 1 file boxes at $6 each, someone hands over $50. What change comes back?<|eot|> <|assistant|> ```python items = [(5, 3), (1, 6)] total = sum(q * p for q, p in items) # 21 paid = 50 change = paid - total # 29 print(change) ``` Execution result — 29 The change is $29.<...
chat
[ { "role": "user", "content": "Buying 5 tape rolls at $3 each, 1 file boxes at $6 each, someone hands over $50. What change comes back?" }, { "role": "assistant", "content": "```python\nitems = [(5, 3), (1, 6)]\ntotal = sum(q * p for q, p in items) # 21\npaid = 50\nchange = paid - total # 29\np...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0054152
<|start|><|user|> A measure needs at least 75% of 175 votes. How many votes is that, rounded up?<|eot|> <|assistant|> 132 votes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A measure needs at least 75% of 175 votes. How many votes is that, rounded up?" }, { "role": "assistant", "content": "132 votes are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "132", "printed": "132", "notation": null}
nlprog_det-setting-0054153
The rules require 2/3 of 39 members (round up) to be present. How many is that? Here is a short program for it. ```python import math members = 39 quorum = math.ceil(members * 2 / 3) # 26 print(quorum) ``` # result: 26 That is 26 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0054154
<|start|><|user|> Sofia and Nadia share $4,270 in the ratio 2:3. How much does Sofia get?<|eot|> <|assistant|> Sofia's share is $1,708.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Sofia and Nadia share $4,270 in the ratio 2:3. How much does Sofia get?" }, { "role": "assistant", "content": "Sofia's share is $1,708." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
50
{"gold": "1708", "printed": "1708", "notation": null}
nlprog_det-setting-0054155
A lawyer's fee is 30% of a $60,000 recovery. How large is the fee? The computation: ```python recovery = 60000 rate = 30 / 100 # 0.3 fee = recovery * rate # 18000.0 print(f"{fee:.2f}") ``` What it prints — 18000.00 The lawyer's fee comes to $18,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "18000.00", "printed": "18000.00", "notation": null}
nlprog_det-setting-0054156
<|start|><|system|> Tool definitions: [{"name": "interpreter", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> A water bill is $18 plus $3.50...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"interpreter\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snipp...
nlprog_det
setting
original
null
deterministic
[]
[]
240
{"gold": "49.50", "printed": "49.50", "notation": null}
nlprog_det-setting-0054157
With 20% off, what does a $250 kettle cost? A short script: price = 250 discount = 20 / 100 # 0.2 sale_price = price * (1 - discount) # 200.0 print(f"{sale_price:.2f}") This prints 200.00, as expected. It costs $200.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "200.00", "printed": "200.00", "notation": null}
nlprog_det-setting-0054158
<|start|><|user|> A printer costs $300. It is 20% off. What is the sale price?<|eot|> <|assistant|> ```python price = 300 discount = 20 / 100 # 0.2 sale_price = price * (1 - discount) # 240.0 print(f"{sale_price:.2f}") ``` (Console output: 240.00) It costs $240.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A printer costs $300. It is 20% off. What is the sale price?" }, { "role": "assistant", "content": "```python\nprice = 300\ndiscount = 20 / 100 # 0.2\nsale_price = price * (1 - discount) # 240.0\nprint(f\"{sale_price:.2f}\")\n```\n(Console output: 240.00)\n\nIt co...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "240.00", "printed": "240.00", "notation": null}
nlprog_det-setting-0054160
<|start|><|user|> 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?<|eot|> <|assistant|> $2,200.00 a year.<|eot|> <|end|>
chat
[ { "role": "user", "content": "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?" }, { "role": "assistant", "content": "$2,200.00 a year." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
55
{"gold": "2200.00", "printed": "2200.00", "notation": null}
nlprog_det-setting-0054161
How many minutes pass from 10:55 AM to 12:38 PM on the same day? Here is a short program for it. ```python start = 10 * 60 + 55 end = 12 * 60 + 38 print(end - start) ``` Printed — 103 103 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "103", "printed": "103", "notation": null}
nlprog_det-setting-0054162
<|start|><|user|> A 18-month warranty starts on April 22, 2027. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date start = date(2027, 4, 22) months = 18 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoforma...
chat
[ { "role": "user", "content": "A 18-month warranty starts on April 22, 2027. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2027, 4, 22)\nmonths = 18\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(start.y...
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "2028-10-22", "printed": "2028-10-22", "notation": null}
nlprog_det-setting-0054163
<|start|><|system|> Tool definitions: [{"name": "compute", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> 3 friends split a $120 bill plus a...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"compute\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\"...
nlprog_det
setting
original
null
deterministic
[]
[]
228
{"gold": "47.20", "printed": "47.20", "notation": null}
nlprog_det-setting-0054164
Someone works 40 hours at $21.17 per hour. What are the earnings? Computation in Python: ```python rate = 21.17 hours = 40 earnings = rate * hours # 846.8000000000001 print(f"{earnings:.2f}") ``` The printout reads: 846.80 The pay is $846.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "846.80", "printed": "846.80", "notation": null}
nlprog_det-setting-0054165
At $0.67 per mile, what is the reimbursement for 244 miles? In code: ```python miles = 244 rate = 0.67 reimbursement = miles * rate # 163.48000000000002 print(f"{reimbursement:.2f}") ``` Execution prints 163.48, as expected. Amir is owed $163.48.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "163.48", "printed": "163.48", "notation": null}
nlprog_det-setting-0054166
If a 2-year limitations period starts on January 19, 2013, when does it end? Code: ```python from datetime import date accrued = date(2013, 1, 19) # datetime.date(2013, 1, 19) years = 2 expires = accrued.replace(year=accrued.year + years) # datetime.date(2015, 1, 19) print(expires.isoformat()) ``` Python prints: 201...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "2015-01-19", "printed": "2015-01-19", "notation": null}
nlprog_det-setting-0054167
A hearing is set for April 2, 2003. What day of the week is that? The computation: ```python from datetime import date hearing = date(2003, 4, 2) # datetime.date(2003, 4, 2) print(hearing.strftime("%A")) ``` Output — Wednesday It is a Wednesday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "Wednesday", "printed": "Wednesday", "notation": null}
nlprog_det-setting-0054168
3 friends split a $210 bill plus a 20% tip evenly. How much does each pay? Script: ```python bill = 210 tip_rate = 20 / 100 # 0.2 people = 3 each = bill * (1 + tip_rate) / people # 84.0 print(f"{each:.2f}") ``` Run result — 84.00 Each person pays $84.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "84.00", "printed": "84.00", "notation": null}
nlprog_det-setting-0054169
Convert 79.7 km to meters. Python version: km = 79.7 meters = km * 1000 # 79700.0 print(round(meters)) Program output: 79700 That is 79,700 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "79700", "printed": "79700", "notation": null}
nlprog_det-setting-0054170
<|start|><|user|> What percentage of $4,000 is $3,600?<|eot|> <|assistant|> budget = 4000 spent = 3600 percent = spent / budget * 100 # 90.0 print(round(percent, 1)) Executed, it shows 90.0. 90.0% has been spent.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What percentage of $4,000 is $3,600?" }, { "role": "assistant", "content": " budget = 4000\n spent = 3600\n percent = spent / budget * 100 # 90.0\n print(round(percent, 1))\nExecuted, it shows 90.0.\n\n90.0% has been spent." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "90.0", "printed": "90.0", "notation": null}
nlprog_det-setting-0054171
<|start|><|user|> Under a 30% contingency agreement, what fee is owed on a $90,000 award?<|eot|> <|assistant|> ```python recovery = 90000 rate = 30 / 100 # 0.3 fee = recovery * rate # 27000.0 print(f"{fee:.2f}") ``` Executed, it shows: 27000.00 The fee is $27,000.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Under a 30% contingency agreement, what fee is owed on a $90,000 award?" }, { "role": "assistant", "content": "```python\nrecovery = 90000\nrate = 30 / 100 # 0.3\nfee = recovery * rate # 27000.0\nprint(f\"{fee:.2f}\")\n```\nExecuted, it shows: 27000.00\n\nThe fee ...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "27000.00", "printed": "27000.00", "notation": null}
nlprog_det-setting-0054172
If a 105-minute appointment begins at 1:40 PM, what time does it finish? In code: ```python start = 13 * 60 + 40 end = start + 105 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Executing it gives 3:25 PM. It ends at 3:25 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "3:25 PM", "printed": "3:25 PM", "notation": null}
nlprog_det-setting-0054173
A car travels 328 miles in 2 hours. What is its average speed in miles per hour? As a program: ```python distance = 328 hours = 2 speed = distance / hours # 164.0 print(round(speed)) ``` That prints: 164 It averages 164 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "164", "printed": "164", "notation": null}
nlprog_det-setting-0054174
<|start|><|user|> What is the total rent on a 24-month lease at $850 a month?<|eot|> <|assistant|> ```python monthly_rent = 850 months = 24 total = monthly_rent * months # 20400 print(total) ``` On running, it outputs 20400. The rent over the term is $20,400.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is the total rent on a 24-month lease at $850 a month?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 850\nmonths = 24\ntotal = monthly_rent * months # 20400\nprint(total)\n```\nOn running, it outputs 20400.\n\nThe rent over the term is $20,4...
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "20400", "printed": "20400", "notation": null}
nlprog_det-setting-0054175
If a 3-year limitations period starts on July 15, 2023, when does it end? ```python from datetime import date accrued = date(2023, 7, 15) # datetime.date(2023, 7, 15) years = 3 expires = accrued.replace(year=accrued.year + years) # datetime.date(2026, 7, 15) print(expires.isoformat()) ``` The program outputs: 2026-0...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "2026-07-15", "printed": "2026-07-15", "notation": null}
nlprog_det-setting-0054178
Notice was given on August 20, 2028. The notice period is 10 days. When does it run out? The program: ```python from datetime import date, timedelta start = date(2028, 8, 20) # datetime.date(2028, 8, 20) end = start + timedelta(days=10) # datetime.date(2028, 8, 30) print(end.isoformat()) ``` The interpreter prints: ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "2028-08-30", "printed": "2028-08-30", "notation": null}
nlprog_det-setting-0054179
<|start|><|user|> A car travels 301 miles in 0.5 hours. What is its average speed in miles per hour?<|eot|> <|assistant|> ```python distance = 301 hours = 0.5 speed = distance / hours # 602.0 print(round(speed)) ``` When run, it prints 602, as expected. The average speed is 602 mph.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A car travels 301 miles in 0.5 hours. What is its average speed in miles per hour?" }, { "role": "assistant", "content": "```python\ndistance = 301\nhours = 0.5\nspeed = distance / hours # 602.0\nprint(round(speed))\n```\nWhen run, it prints 602, as expected.\n\nTh...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "602", "printed": "602", "notation": null}
nlprog_det-setting-0054180
Divide 225 items among 9 groups as evenly as possible with equal groups. How many per group, and how many remain? A few lines of Python do it: ```python total = 225 groups = 9 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` The code prints 25 each, 0 left over. 25 ea...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "25 each, 0 left over", "printed": "25 each, 0 left over", "notation": null}
nlprog_det-setting-0054181
<|start|><|user|> A pack of 20 labels sells for $420. What does each cost?<|eot|> <|assistant|> ```python total = 420 count = 20 per_item = total // count # 21 print(per_item) ``` Run output — 21 Each one costs $21.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A pack of 20 labels sells for $420. What does each cost?" }, { "role": "assistant", "content": "```python\ntotal = 420\ncount = 20\nper_item = total // count # 21\nprint(per_item)\n```\nRun output — 21\n\nEach one costs $21." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0054183
<|start|><|user|> If a 4-year limitations period starts on October 7, 2021, when does it end?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2021, 10, 7) # datetime.date(2021, 10, 7) years = 4 expires = accrued.replace(year=accrued.year + years) # datetime.date(2025, 10, 7) print(expires.isof...
chat
[ { "role": "user", "content": "If a 4-year limitations period starts on October 7, 2021, when does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2021, 10, 7) # datetime.date(2021, 10, 7)\nyears = 4\nexpires = accrued.replace(year=accrued.year...
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "2025-10-07", "printed": "2025-10-07", "notation": null}
nlprog_det-setting-0054184
A trial runs from March 20, 2019 to March 23, 2019, counting both days. How many calendar days is that? Code: ```python from datetime import date first = date(2019, 3, 20) # datetime.date(2019, 3, 20) last = date(2019, 3, 23) # datetime.date(2019, 3, 23) days = (last - first).days + 1 # 4 print(days) ``` Python pri...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0054185
A lawyer's fee is 25% of a $150,000 recovery. How large is the fee? As Python: ```python recovery = 150000 rate = 25 / 100 # 0.25 fee = recovery * rate # 37500.0 print(f"{fee:.2f}") ``` # console output: 37500.00 The lawyer's fee comes to $37,500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "37500.00", "printed": "37500.00", "notation": null}
nlprog_det-setting-0054186
Jonas's scores were 61, 56, 53, 59, 78 and 65. What is the average score? The mean is 62.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "62", "printed": "62", "notation": null}
nlprog_det-setting-0054187
<|start|><|system|> Available functions (JSON Schema): [{"name": "code_runner", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> Fines run at ...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"code_runner\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"req...
nlprog_det
setting
original
null
deterministic
[]
[]
223
{"gold": "1175", "printed": "1175", "notation": null}
nlprog_det-setting-0054188
Buying 2 tape rolls at $23 each, 1 rulers at $6 each, 2 notebooks at $11 each, 4 ink cartridges at $3 each, someone hands over $100. What change comes back? A few lines of Python do it: ```python items = [(2, 23), (1, 6), (2, 11), (4, 3)] total = sum(q * p for q, p in items) paid = 100 change = paid - total print(chan...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0054189
<|start|><|system|> Available functions (JSON Schema): {"name": "compute", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> Monthly rent is $2...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"compute\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requ...
nlprog_det
setting
original
null
deterministic
[]
[]
252
{"gold": "560.00", "printed": "560.00", "notation": null}
nlprog_det-setting-0054190
What commission does Rosa make on $116,785 in sales at 4%? Python, step by step: ```python sales = 116785 rate = 4 / 100 # 0.04 commission = sales * rate # 4671.400000000001 print(f"{commission:.2f}") ``` Executed, it shows: 4671.40 Rosa earns $4,671.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "4671.40", "printed": "4671.40", "notation": null}
nlprog_det-setting-0054191
Buying 3 badges at $18 each, 1 labels at $3 each, 3 toner kits at $10 each, someone hands over $100. What change comes back? Program: ```python items = [(3, 18), (1, 3), (3, 10)] total = sum(q * p for q, p in items) # 87 paid = 100 change = paid - total # 13 print(change) ``` Running it prints: 13 $13 comes back.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0054192
<|start|><|user|> Pack A has 12 items for $4.61. Pack B has 18 items for $29.00. Which has the lower price per item?<|eot|> <|assistant|> ```python pack_a = 4.61 / 12 # 0.3841666666666667 pack_b = 29.0 / 18 # 1.6111111111111112 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` Running this gives A. ...
chat
[ { "role": "user", "content": "Pack A has 12 items for $4.61. Pack B has 18 items for $29.00. Which has the lower price per item?" }, { "role": "assistant", "content": "```python\npack_a = 4.61 / 12 # 0.3841666666666667\npack_b = 29.0 / 18 # 1.6111111111111112\ncheaper = \"A\" if pack_a < pack_...
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0054193
Filing fees are $90 per document. What do 19 filings cost? Computing it: ```python fee = 90 filings = 19 total = fee * filings # 1710 print(total) ``` When run, it prints 1710. $1,710 in filing fees.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "1710", "printed": "1710", "notation": null}
nlprog_det-setting-0054194
Convert 6,605 GBP to USD at 1 GBP = 1.27 USD. As a program: ```python amount = 6605 rate = 1.27 converted = amount * rate # 8388.35 print(f"{converted:.2f}") ``` stdout: 8388.35 It converts to 8,388.35 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "8388.35", "printed": "8388.35", "notation": null}
nlprog_det-setting-0054195
Leon and Mateo share $5,278 in the ratio 2:5. How much does Leon get? Leon's share is $1,508.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "1508", "printed": "1508", "notation": null}
nlprog_det-setting-0054196
<|start|><|user|> 6 walks at 300 calories each burn how many calories in total?<|eot|> <|assistant|> ```python per_session = 300 sessions = 6 total = per_session * sessions # 1800 print(total) ``` Execution prints 1800. That burns 1800 calories.<|eot|> <|end|>
chat
[ { "role": "user", "content": "6 walks at 300 calories each burn how many calories in total?" }, { "role": "assistant", "content": "```python\nper_session = 300\nsessions = 6\ntotal = per_session * sessions # 1800\nprint(total)\n```\nExecution prints 1800.\n\nThat burns 1800 calories." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "1800", "printed": "1800", "notation": null}
nlprog_det-setting-0054197
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "calc", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> A custome...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"calc\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}...
nlprog_det
setting
original
null
deterministic
[]
[]
250
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0054198
Buying 6 water bottles at $11 each, 6 folders at $5 each, 6 file boxes at $21 each, someone hands over $250. What change comes back? ```python items = [(6, 11), (6, 5), (6, 21)] total = sum(q * p for q, p in items) # 222 paid = 250 change = paid - total # 28 print(change) ``` Executing it gives 28, as expected. $28...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0054199
A shift runs from 9:10 AM to 2:17 PM. How long is it in minutes? Here is a short program for it. ```python start = 9 * 60 + 10 # 550 end = 14 * 60 + 17 # 857 print(end - start) ``` Result: 307 307 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "307", "printed": "307", "notation": null}
nlprog_det-setting-0054201
A pack of 25 lanyards sells for $1450. What does each cost? The unit price is $58.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "58", "printed": "58", "notation": null}
nlprog_det-setting-0054202
A meal costs $64.34. How much is a 10% tip? Here is a short program for it. ```python bill = 64.34 tip_rate = 10 / 100 # 0.1 tip = bill * tip_rate # 6.434000000000001 print(f"{tip:.2f}") ``` This prints 6.43. Leave $6.43.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "6.43", "printed": "6.43", "notation": null}
nlprog_det-setting-0054203
Convert 72.1 km to meters. Code: km = 72.1 meters = km * 1000 print(round(meters)) stdout = 72100 72,100 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
56
{"gold": "72100", "printed": "72100", "notation": null}
nlprog_det-setting-0054204
<|start|><|user|> An invoice lists 4 markers at $2 each, plus 10% sales tax. What is the invoice total?<|eot|> <|assistant|> ```python quantity = 4 unit_price = 2 subtotal = quantity * unit_price # 8 total = subtotal * (1 + 10 / 100) # 8.8 print(f"{total:.2f}") ``` (Printed: 8.80) The total with tax is $8.80.<|eot|>...
chat
[ { "role": "user", "content": "An invoice lists 4 markers at $2 each, plus 10% sales tax. What is the invoice total?" }, { "role": "assistant", "content": "```python\nquantity = 4\nunit_price = 2\nsubtotal = quantity * unit_price # 8\ntotal = subtotal * (1 + 10 / 100) # 8.8\nprint(f\"{total:.2f...
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "8.80", "printed": "8.80", "notation": null}
nlprog_det-setting-0054205
A party has 28 days to respond to a motion served on February 27, 2019, with 3 days added because service was by mail. When is the response due? Program: ```python from datetime import date, timedelta served = date(2019, 2, 27) # datetime.date(2019, 2, 27) response_days = 28 mail_days = 3 due = served + timedelta(day...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
175
{"gold": "2019-03-30", "printed": "2019-03-30", "notation": null}
nlprog_det-setting-0054206
<|start|><|user|> Prorate $1,800 of monthly rent for 25 days of a 31-day month.<|eot|> <|assistant|> ```python rent = 1800 days_in_month = 31 days_occupied = 25 prorated = rent * days_occupied / days_in_month # 1451.6129032258063 print(f"{prorated:.2f}") ``` The printout reads 1451.61. The tenant owes $1,451.61.<|eot...
chat
[ { "role": "user", "content": "Prorate $1,800 of monthly rent for 25 days of a 31-day month." }, { "role": "assistant", "content": "```python\nrent = 1800\ndays_in_month = 31\ndays_occupied = 25\nprorated = rent * days_occupied / days_in_month # 1451.6129032258063\nprint(f\"{prorated:.2f}\")\n``...
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "1451.61", "printed": "1451.61", "notation": null}
nlprog_det-setting-0054207
<|start|><|user|> Convert 20 °C to Fahrenheit.<|eot|> <|assistant|> celsius = 20 fahrenheit = celsius * 9 / 5 + 32 # 68.0 print(round(fahrenheit)) Execution prints 68. It equals 68 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 20 °C to Fahrenheit." }, { "role": "assistant", "content": " celsius = 20\n fahrenheit = celsius * 9 / 5 + 32 # 68.0\n print(round(fahrenheit))\nExecution prints 68.\n\nIt equals 68 degrees Fahrenheit." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "68", "printed": "68", "notation": null}
nlprog_det-setting-0054208
What is the total rent on a 6-month lease at $3,250 a month? The computation: ```python monthly_rent = 3250 months = 6 total = monthly_rent * months # 19500 print(total) ``` Running this gives 19500. In total, $19,500 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "19500", "printed": "19500", "notation": null}
nlprog_det-setting-0054209
<|start|><|user|> Water costs $18 a month plus $3.50 for each 1,000 gallons over 0,000. What is owed for 22,000 gallons?<|eot|> <|assistant|> base = 18 rate = 3.5 used = 22 free = 0 bill = base + rate * max(0, used - free) # 95.0 print(f"{bill:.2f}") Executing it gives: 95.00 The bill is $95.0...
chat
[ { "role": "user", "content": "Water costs $18 a month plus $3.50 for each 1,000 gallons over 0,000. What is owed for 22,000 gallons?" }, { "role": "assistant", "content": " base = 18\n rate = 3.5\n used = 22\n free = 0\n bill = base + rate * max(0, used - free) # 95.0\n print(...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "95.00", "printed": "95.00", "notation": null}
nlprog_det-setting-0054210
<|start|><|user|> Goods bought on December 8, 2023 carry a 36-month warranty. When does it expire?<|eot|> <|assistant|> ```python from datetime import date start = date(2023, 12, 8) months = 36 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end...
chat
[ { "role": "user", "content": "Goods bought on December 8, 2023 carry a 36-month warranty. When does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2023, 12, 8)\nmonths = 36\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = dat...
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "2026-12-08", "printed": "2026-12-08", "notation": null}
nlprog_det-setting-0054211
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "code_runner", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> A meal costs $...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"code_runner\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"r...
nlprog_det
setting
original
null
deterministic
[]
[]
221
{"gold": "6.09", "printed": "6.09", "notation": null}