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-0044877
<|start|><|user|> 8 claimants share a $84,000 settlement equally. What is each share?<|eot|> <|assistant|> Each party receives $10,500.<|eot|> <|end|>
chat
[ { "role": "user", "content": "8 claimants share a $84,000 settlement equally. What is each share?" }, { "role": "assistant", "content": "Each party receives $10,500." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "10500", "printed": "10500", "notation": null}
nlprog_det-setting-0044878
A settlement of $2,640 is split equally among 5 parties. How much does each party receive? Here is a short program for it. ```python settlement = 2640 parties = 5 share = settlement // parties # 528 print(share) ``` (Out: 528) Each share is $528.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "528", "printed": "528", "notation": null}
nlprog_det-setting-0044879
A 400-page report must be reviewed in 20 days. How many pages a day is that, evenly? Let the code do the arithmetic: ```python pages = 400 days = 20 per_day = pages // days # 20 print(per_day) ``` # printed: 20 That is 20 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0044880
A court charges $15 per request plus $0.10 per page after the first 20 pages. What does a 33-page copy cost? Here is the program. ```python pages = 33 base = 15 per_page = 0.1 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 16.3 print(f"{cost:.2f}") ``` Executing it gives 16.30, as expected. Th...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "16.30", "printed": "16.30", "notation": null}
nlprog_det-setting-0044881
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}} {"name": "lookup_statute", "descr...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\...
nlprog_det
setting
original
null
deterministic
[]
[]
413
{"gold": "141", "printed": "141", "notation": null}
nlprog_det-setting-0044882
Someone born October 21, 1978 turns how old by May 28, 2020? Give the age in whole years. Python: ```python from datetime import date born = date(1978, 10, 21) # datetime.date(1978, 10, 21) on = date(2020, 5, 28) # datetime.date(2020, 5, 28) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
153
{"gold": "41", "printed": "41", "notation": null}
nlprog_det-setting-0044883
Convert 3 h 8 min (the length of a training session) to minutes. Here is the program. hours = 3 minutes = 8 total_minutes = hours * 60 + minutes # 188 print(total_minutes) The interpreter prints 188. That is 188 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "188", "printed": "188", "notation": null}
nlprog_det-setting-0044884
At 1.5% a month (simple), what interest builds on $12,000 over 3 months? $540.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "540.00", "printed": "540.00", "notation": null}
nlprog_det-setting-0044885
One can of paint covers 350 square feet. How many cans are needed for 1243 square feet of wall? In code: ```python import math area = 1243 coverage = 350 cans = math.ceil(area / coverage) # 4 print(cans) ``` The code prints: 4 4 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0044886
How many of 235 votes make 67% (round up)? Python version: ```python import math voters = 235 needed = math.ceil(voters * 67 / 100) # 158 print(needed) ``` # printed result: 158 At least 158 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "158", "printed": "158", "notation": null}
nlprog_det-setting-0044888
<|start|><|system|> You have access to these functions: {"name": "calculator", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> 92 files go into ...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"calculator\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requi...
nlprog_det
setting
original
null
deterministic
[]
[]
206
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0044889
4 bike rides at 150 calories each burn how many calories in total? Python, step by step: ```python per_session = 150 sessions = 4 total = per_session * sessions # 600 print(total) ``` On running, it outputs 600. 600 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0044890
<|start|><|system|> Functions: [{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "business_days", "description": "Count business days between...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"target\"]}}, {\"name\":...
nlprog_det
setting
original
null
deterministic
[]
[]
396
{"gold": "7500.00", "printed": "7500.00", "notation": null}
nlprog_det-setting-0044891
Equal monthly payments repay $6,000 plus 6% simple yearly interest over 36 months. How large is a payment? In Python: ```python principal = 6000 annual_rate = 6 / 100 # 0.06 months = 36 interest = principal * annual_rate * months / 12 # 1080.0 payment = (principal + interest) / months # 196.66666666666666 print(f"{...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "196.67", "printed": "196.67", "notation": null}
nlprog_det-setting-0044892
A water bill is $12 plus $4.20 per thousand gallons beyond the first 0 thousand. What is the bill for 20 thousand gallons? Computation in Python: ```python base = 12 rate = 4.2 used = 20 free = 0 bill = base + rate * max(0, used - free) # 96.0 print(f"{bill:.2f}") ``` Program output: 96.00 $96.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "96.00", "printed": "96.00", "notation": null}
nlprog_det-setting-0044894
Express 313 hours in days and hours. Let's compute it with Python. ```python hours = 313 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` The printout reads: 13 days and 1 hours 313 hours is 13 days and 1 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "13 days and 1 hours", "printed": "13 days and 1 hours", "notation": null}
nlprog_det-setting-0044896
If a 5-year limitations period starts on May 17, 2013, when does it end? The period expires on May 17, 2018.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "2018-05-17", "printed": "2018-05-17", "notation": null}
nlprog_det-setting-0044897
Revenue is $22,500 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)? The computation: ```python revenue = 22500 costs = 20000 profit = revenue - costs # 2500 margin = profit / revenue * 100 # 11.11111111111111 print(round(margin, 1)) ``` The printout reads 11.1. The margin is 1...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "11.1", "printed": "11.1", "notation": null}
nlprog_det-setting-0044898
<|start|><|user|> Straight-line depreciation: cost $18,000, salvage $6,000, 10 years. How much per year?<|eot|> <|assistant|> ```python cost = 18000 salvage = 6000 years = 10 per_year = (cost - salvage) / years # 1200.0 print(f"{per_year:.2f}") ``` (Result: 1200.00) Depreciation is $1,200.00 per year.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Straight-line depreciation: cost $18,000, salvage $6,000, 10 years. How much per year?" }, { "role": "assistant", "content": "```python\ncost = 18000\nsalvage = 6000\nyears = 10\nper_year = (cost - salvage) / years # 1200.0\nprint(f\"{per_year:.2f}\")\n```\n(Result...
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "1200.00", "printed": "1200.00", "notation": null}
nlprog_det-setting-0044899
Monthly rent is $1,500. A tenant moves in with 25 days left in a 30-day month. What is the prorated rent? Python does the arithmetic: ```python rent = 1500 days_in_month = 30 days_occupied = 25 prorated = rent * days_occupied / days_in_month # 1250.0 print(f"{prorated:.2f}") ``` Program output — 1250.00 The prorated...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "1250.00", "printed": "1250.00", "notation": null}
nlprog_det-setting-0044900
If a 25-minute appointment begins at 4:10 PM, what time does it finish? Written as code: ```python start = 16 * 60 + 10 end = start + 25 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Run it and it prints 4:35 PM. The appointment finishes at 4:35 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "4:35 PM", "printed": "4:35 PM", "notation": null}
nlprog_det-setting-0044901
Priya was born on April 1, 1956. How old is Priya on July 26, 2029? We write it as a program: ```python from datetime import date born = date(1956, 4, 1) # datetime.date(1956, 4, 1) on = date(2029, 7, 26) # datetime.date(2029, 7, 26) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 73 pri...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
156
{"gold": "73", "printed": "73", "notation": null}
nlprog_det-setting-0044902
What simple interest does $20,000 earn at 2% a year over 5 years? One way, in code: ```python principal = 20000 rate = 2 / 100 # 0.02 years = 5 interest = principal * rate * years # 2000.0 print(f"{interest:.2f}") ``` (Result: 2000.00) The interest is $2,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0044903
<|start|><|user|> At a 6% tax rate, what is the tax on $785.21?<|eot|> <|assistant|> ```python price = 785.21 tax_rate = 6 / 100 # 0.06 tax = price * tax_rate # 47.1126 print(f"{tax:.2f}") ``` Out: 47.11 $47.11 in tax.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At a 6% tax rate, what is the tax on $785.21?" }, { "role": "assistant", "content": "```python\nprice = 785.21\ntax_rate = 6 / 100 # 0.06\ntax = price * tax_rate # 47.1126\nprint(f\"{tax:.2f}\")\n```\nOut:\n47.11\n\n$47.11 in tax." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "47.11", "printed": "47.11", "notation": null}
nlprog_det-setting-0044904
At a 7% tax rate, what is the tax on $751.26? Let's compute it with Python. ```python price = 751.26 tax_rate = 7 / 100 tax = price * tax_rate print(f"{tax:.2f}") ``` Python prints: 52.59 $52.59 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "52.59", "printed": "52.59", "notation": null}
nlprog_det-setting-0044905
Goran earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 42-hour week? Here is the program. ```python rate = 18.5 hours = 42 regular = 40 * rate # 740.0 overtime = (hours - 40) * rate * 1.5 # 55.5 pay = regular + overtime # 795.5 print(f"{pay:.2f}") ``` Result = 795.50 The weekly pay...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "795.50", "printed": "795.50", "notation": null}
nlprog_det-setting-0044906
If a 2-year limitations period starts on June 24, 2020, when does it end? Programmatically: ```python from datetime import date accrued = date(2020, 6, 24) # datetime.date(2020, 6, 24) years = 2 expires = accrued.replace(year=accrued.year + years) # datetime.date(2022, 6, 24) print(expires.isoformat()) ``` The run g...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "2022-06-24", "printed": "2022-06-24", "notation": null}
nlprog_det-setting-0044907
A library charges $0.10 per book per day late. What is the fine for 3 books that are 13 days late? ```python per_day = 0.1 days_late = 13 books = 3 fine = per_day * days_late * books # 3.9000000000000004 print(f"{fine:.2f}") ``` Printed result: 3.90 $3.90 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "3.90", "printed": "3.90", "notation": null}
nlprog_det-setting-0044908
Each storage box holds 40 files. How many boxes are needed for 353 files? It takes 9 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
26
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0044909
<|start|><|system|> Answer in plain English.<|eot|> <|user|> Rent of $2,200 goes up 8%. What is the new rent?<|eot|> <|assistant|> ```python rent = 2200 increase = 8 / 100 # 0.08 new_rent = rent * (1 + increase) # 2376.0 print(f"{new_rent:.2f}") ``` Execution prints: 2376.00 It rises to $2,376.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer in plain English." }, { "role": "user", "content": "Rent of $2,200 goes up 8%. What is the new rent?" }, { "role": "assistant", "content": "```python\nrent = 2200\nincrease = 8 / 100 # 0.08\nnew_rent = rent * (1 + increase) # 2376.0\nprint(f\"...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "2376.00", "printed": "2376.00", "notation": null}
nlprog_det-setting-0044910
A clerk's office charges $150 for each filing. Jamal submits 10 filings. What is the total fee? Python does the arithmetic: ```python fee = 150 filings = 10 total = fee * filings # 1500 print(total) ``` When run, it prints: 1500 The filings cost $1,500 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0044911
<|start|><|user|> A count moves from 2,500 to 1,875. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> ```python old = 2500 new = 1875 change = (new - old) / old * 100 # -25.0 print(round(change)) ``` # out: -25 It changed by -25%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A count moves from 2,500 to 1,875. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": "```python\nold = 2500\nnew = 1875\nchange = (new - old) / old * 100 # -25.0\nprint(round(change))\n```\n# out: -25\n\nIt changed b...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "-25", "printed": "-25", "notation": null}
nlprog_det-setting-0044912
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> 3 books come back 30 days late, at $0.50 a day each. What is the fine?<|eot|> <|assistant|> per_day = 0.5 days_late = 30 books = 3 fine = per_day * days_late * books # 45.0 print(f"{fine:.2f}") stdout: 45.00 The fine is $...
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "3 books come back 30 days late, at $0.50 a day each. What is the fine?" }, { "role": "assistant", "content": " per_day = 0.5\n days_late = 30\n books = 3\n fine = pe...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "45.00", "printed": "45.00", "notation": null}
nlprog_det-setting-0044913
After a 30% fee is taken from a $72,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share? The Python version: ```python award = 72000 fee = award * 30 / 100 # 21600.0 remaining = award - fee # 50400.0 per_client = remaining / 2 # 25200.0 print(f"{per_client:.2f}") ``` Python prints...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "25200.00", "printed": "25200.00", "notation": null}
nlprog_det-setting-0044914
A storeroom has 1226 rulers. The office uses 21 a day. How many are left after 7 days? Script: stock = 1226 per_day = 21 days = 7 left = stock - per_day * days print(left) The program prints 1079. 1079 rulers are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "1079", "printed": "1079", "notation": null}
nlprog_det-setting-0044915
<|start|><|user|> 28 of 50 members attended. What percent attended?<|eot|> <|assistant|> ```python present = 28 total = 50 percent = present / total * 100 print(round(percent, 1)) ``` When run, it prints: 56.0 56.0% attended.<|eot|> <|end|>
chat
[ { "role": "user", "content": "28 of 50 members attended. What percent attended?" }, { "role": "assistant", "content": "```python\npresent = 28\ntotal = 50\npercent = present / total * 100\nprint(round(percent, 1))\n```\nWhen run, it prints: 56.0\n\n56.0% attended." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "56.0", "printed": "56.0", "notation": null}
nlprog_det-setting-0044916
A customer buys 3 rulers at $26 each, 6 envelopes at $21 each, 4 keyboards at $15 each, 4 folders at $16 each and pays with $350. How much change is due? Python makes this quick: ```python items = [(3, 26), (6, 21), (4, 15), (4, 16)] total = sum(q * p for q, p in items) paid = 350 change = paid - total print(change) `...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0044917
<|start|><|system|> Tools you may use: [{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_unit", "to_unit"]}}, {"name": "p...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\": \"string\"}}, \...
nlprog_det
setting
original
null
deterministic
[]
[]
343
{"gold": "10492", "printed": "10492", "notation": null}
nlprog_det-setting-0044918
<|start|><|user|> Equal monthly payments repay $1,200 plus 5% simple yearly interest over 36 months. How large is a payment?<|eot|> <|assistant|> principal = 1200 annual_rate = 5 / 100 # 0.05 months = 36 interest = principal * annual_rate * months / 12 # 180.0 payment = (principal + interest) / mo...
chat
[ { "role": "user", "content": "Equal monthly payments repay $1,200 plus 5% simple yearly interest over 36 months. How large is a payment?" }, { "role": "assistant", "content": " principal = 1200\n annual_rate = 5 / 100 # 0.05\n months = 36\n interest = principal * annual_rate * month...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "38.33", "printed": "38.33", "notation": null}
nlprog_det-setting-0044919
Fixed costs are $2,500. Each unit sells for $25 and costs $17 to make. How many units must be sold to break even? Let the code do the arithmetic: import math fixed = 2500 price = 25 variable = 17 units = math.ceil(fixed / (price - variable)) # 313 print(units) Program output: 313 313 units ar...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "313", "printed": "313", "notation": null}
nlprog_det-setting-0044920
Under a 25% contingency agreement, what fee is owed on a $150,000 award? The lawyer's fee comes to $37,500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "37500.00", "printed": "37500.00", "notation": null}
nlprog_det-setting-0044921
<|start|><|user|> A storeroom has 1406 tape rolls. The office uses 34 a day. How many are left after 9 days?<|eot|> <|assistant|> ```python stock = 1406 per_day = 34 days = 9 left = stock - per_day * days # 1100 print(left) ``` # printed: 1100 1100 remain.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A storeroom has 1406 tape rolls. The office uses 34 a day. How many are left after 9 days?" }, { "role": "assistant", "content": "```python\nstock = 1406\nper_day = 34\ndays = 9\nleft = stock - per_day * days # 1100\nprint(left)\n```\n# printed: 1100\n\n1100 remain...
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "1100", "printed": "1100", "notation": null}
nlprog_det-setting-0044922
<|start|><|user|> At a 9% tax rate, what is the tax on $493.63?<|eot|> <|assistant|> The tax is $44.43.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At a 9% tax rate, what is the tax on $493.63?" }, { "role": "assistant", "content": "The tax is $44.43." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "44.43", "printed": "44.43", "notation": null}
nlprog_det-setting-0044923
A measure needs at least 75% of 288 votes. How many votes is that, rounded up? Python, step by step: ```python import math voters = 288 needed = math.ceil(voters * 75 / 100) # 216 print(needed) ``` Executing it gives: 216 At least 216 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "216", "printed": "216", "notation": null}
nlprog_det-setting-0044924
A settlement of $7,350 is split equally among 6 parties. How much does each party receive? One way, in code: settlement = 7350 parties = 6 share = settlement // parties # 1225 print(share) It prints: 1225 Each party receives $1,225.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "1225", "printed": "1225", "notation": null}
nlprog_det-setting-0044925
<|start|><|user|> An invoice lists 16 scissors at $2 each, plus 7% sales tax. What is the invoice total?<|eot|> <|assistant|> The total with tax is $34.24.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An invoice lists 16 scissors at $2 each, plus 7% sales tax. What is the invoice total?" }, { "role": "assistant", "content": "The total with tax is $34.24." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "34.24", "printed": "34.24", "notation": null}
nlprog_det-setting-0044926
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> A 360-mile drive at a steady 60 mph takes how many minutes?<|eot|> <|assistant|> ```python distance = 360 speed = 60 minutes = distance / speed * 60 # 360.0 print(round(minutes)) ``` (Execution result: 360) The trip takes 360 minutes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "A 360-mile drive at a steady 60 mph takes how many minutes?" }, { "role": "assistant", "content": "```python\ndistance = 360\nspeed = 60\nminutes = distance / speed * 60 # 360.0\nprint(rou...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "360", "printed": "360", "notation": null}
nlprog_det-setting-0044927
From 2012 to 2027, how many years is that? Python version: ```python start_year = 2012 end_year = 2027 print(end_year - start_year) ``` Execution prints 15. That is 15 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0044928
A quorum is 2/3 of the 45 members, rounded up. How many members make a quorum? Let's compute it with Python. ```python import math members = 45 quorum = math.ceil(members * 2 / 3) # 30 print(quorum) ``` What it prints: 30 30 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0044929
<|start|><|user|> Notice was given on January 10, 2025. The notice period is 45 days. When does it run out?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2025, 1, 10) # datetime.date(2025, 1, 10) end = start + timedelta(days=45) # datetime.date(2025, 2, 24) print(end.isoformat()) ``...
chat
[ { "role": "user", "content": "Notice was given on January 10, 2025. The notice period is 45 days. When does it run out?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2025, 1, 10) # datetime.date(2025, 1, 10)\nend = start + timedelta(days=45...
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "2025-02-24", "printed": "2025-02-24", "notation": null}
nlprog_det-setting-0044930
With 10% off, what does a $40 jacket cost? We can compute it in Python. ```python price = 40 discount = 10 / 100 # 0.1 sale_price = price * (1 - discount) # 36.0 print(f"{sale_price:.2f}") ``` Output of the run: 36.00 The sale price is $36.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "36.00", "printed": "36.00", "notation": null}
nlprog_det-setting-0044931
A water bill is $15 plus $3.50 per thousand gallons beyond the first 3 thousand. What is the bill for 7 thousand gallons? The bill is $29.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "29.00", "printed": "29.00", "notation": null}
nlprog_det-setting-0044932
<|start|><|user|> A $2,400 loan carries 10% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|> <|assistant|> Each payment is $220.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $2,400 loan carries 10% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?" }, { "role": "assistant", "content": "Each payment is $220.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
51
{"gold": "220.00", "printed": "220.00", "notation": null}
nlprog_det-setting-0044933
A $3,600 loan carries 8% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment? Here is the program. principal = 3600 annual_rate = 8 / 100 # 0.08 months = 36 interest = principal * annual_rate * months / 12 # 864.0 payment = (pri...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "124.00", "printed": "124.00", "notation": null}
nlprog_det-setting-0044935
A meeting lasted 5 hours and 10 minutes. How many minutes is that? ```python hours = 5 minutes = 10 total_minutes = hours * 60 + minutes # 310 print(total_minutes) ``` The script prints 310. That is 310 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "310", "printed": "310", "notation": null}
nlprog_det-setting-0044936
Chen buys 8 boxes of 12 file boxes each and gives away 18 file boxes. How many file boxes are left? Written as code: ```python boxes = 8 per_box = 12 given_away = 18 left = boxes * per_box - given_away # 78 print(left) ``` Printed result — 78 78 file boxes are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "78", "printed": "78", "notation": null}
nlprog_det-setting-0044937
<|start|><|user|> A settlement of $18,000 is split equally among 6 parties. How much does each party receive?<|eot|> <|assistant|> Each share is $3,000.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A settlement of $18,000 is split equally among 6 parties. How much does each party receive?" }, { "role": "assistant", "content": "Each share is $3,000." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "3000", "printed": "3000", "notation": null}
nlprog_det-setting-0044938
A meal costs $24.45. How much is a 25% tip? ```python bill = 24.45 tip_rate = 25 / 100 # 0.25 tip = bill * tip_rate # 6.1125 print(f"{tip:.2f}") ``` What it prints: 6.11 The tip is $6.11.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "6.11", "printed": "6.11", "notation": null}
nlprog_det-setting-0044939
<|start|><|system|> You help with homework problems.<|eot|> <|user|> What is a 22% tip on a $146.62 bill?<|eot|> <|assistant|> ```python bill = 146.62 tip_rate = 22 / 100 # 0.22 tip = bill * tip_rate # 32.2564 print(f"{tip:.2f}") ``` Python prints 32.26, as expected. Leave $32.26.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "What is a 22% tip on a $146.62 bill?" }, { "role": "assistant", "content": "```python\nbill = 146.62\ntip_rate = 22 / 100 # 0.22\ntip = bill * tip_rate # 32.2564\nprint(f\"{tip:.2f}\"...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "32.26", "printed": "32.26", "notation": null}
nlprog_det-setting-0044940
<|start|><|system|> You are a math tutor.<|eot|> <|user|> The landlord deducts $150, $60 and $60 from a $1,000 deposit. What is returned to the tenant?<|eot|> <|assistant|> ```python deposit = 1000 deductions = [150, 60, 60] refund = deposit - sum(deductions) # 730 print(refund) ``` The printout reads 730. $730 is re...
chat
[ { "role": "system", "content": "You are a math tutor." }, { "role": "user", "content": "The landlord deducts $150, $60 and $60 from a $1,000 deposit. What is returned to the tenant?" }, { "role": "assistant", "content": "```python\ndeposit = 1000\ndeductions = [150, 60, 60]\nrefund =...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "730", "printed": "730", "notation": null}
nlprog_det-setting-0044941
<|start|><|user|> A $210 dinner bill gets a 18% tip, and 3 people share the cost equally. What is each person's share?<|eot|> <|assistant|> Each person pays $82.60.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $210 dinner bill gets a 18% tip, and 3 people share the cost equally. What is each person's share?" }, { "role": "assistant", "content": "Each person pays $82.60." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "82.60", "printed": "82.60", "notation": null}
nlprog_det-setting-0044942
A hall has 19 rows of 12 seats, and 24 seats are empty. How many people are seated? Program: ```python rows = 19 per_row = 12 empty = 24 seated = rows * per_row - empty # 204 print(seated) ``` Run it and it prints 204. 204 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "204", "printed": "204", "notation": null}
nlprog_det-setting-0044943
<|start|><|user|> 25 of 40 members attended. What percent attended?<|eot|> <|assistant|> present = 25 total = 40 percent = present / total * 100 # 62.5 print(round(percent, 1)) Output: 62.5 Attendance was 62.5%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "25 of 40 members attended. What percent attended?" }, { "role": "assistant", "content": " present = 25\n total = 40\n percent = present / total * 100 # 62.5\n print(round(percent, 1))\nOutput:\n62.5\n\nAttendance was 62.5%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
71
{"gold": "62.5", "printed": "62.5", "notation": null}
nlprog_det-setting-0044944
With 25% off, what does a $75 filing cabinet cost? Let the code do the arithmetic: ```python price = 75 discount = 25 / 100 # 0.25 sale_price = price * (1 - discount) # 56.25 print(f"{sale_price:.2f}") ``` Executing it gives 56.25, as expected. The sale price is $56.25.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "56.25", "printed": "56.25", "notation": null}
nlprog_det-setting-0044945
<|start|><|user|> A library charges $0.50 per book per day late. What is the fine for 4 books that are 2 days late?<|eot|> <|assistant|> ```python per_day = 0.5 days_late = 2 books = 4 fine = per_day * days_late * books # 4.0 print(f"{fine:.2f}") ``` Executed, it shows: 4.00 The fine is $4.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A library charges $0.50 per book per day late. What is the fine for 4 books that are 2 days late?" }, { "role": "assistant", "content": "```python\nper_day = 0.5\ndays_late = 2\nbooks = 4\nfine = per_day * days_late * books # 4.0\nprint(f\"{fine:.2f}\")\n```\nExecu...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "4.00", "printed": "4.00", "notation": null}
nlprog_det-setting-0044946
<|start|><|user|> 71 copies of a 20-page packet are printed at $0.10 per page. What is the cost?<|eot|> <|assistant|> ```python pages = 20 copies = 71 cost_per_page = 0.1 cost = pages * copies * cost_per_page # 142.0 print(f"{cost:.2f}") ``` (Result: 142.00) Printing costs $142.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "71 copies of a 20-page packet are printed at $0.10 per page. What is the cost?" }, { "role": "assistant", "content": "```python\npages = 20\ncopies = 71\ncost_per_page = 0.1\ncost = pages * copies * cost_per_page # 142.0\nprint(f\"{cost:.2f}\")\n```\n(Result: 142.0...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "142.00", "printed": "142.00", "notation": null}
nlprog_det-setting-0044947
<|start|><|user|> Counting the first and last day, how many days are there from August 17, 2026 through September 9, 2026?<|eot|> <|assistant|> 24 calendar days.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Counting the first and last day, how many days are there from August 17, 2026 through September 9, 2026?" }, { "role": "assistant", "content": "24 calendar days." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0044948
4 claimants share a $2,640 settlement equally. What is each share? ```python settlement = 2640 parties = 4 share = settlement // parties # 660 print(share) ``` Program output: 660 Each party receives $660.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "660", "printed": "660", "notation": null}
nlprog_det-setting-0044949
Goods bought on August 23, 2024 carry a 24-month warranty. When does it expire? As a program: from datetime import date start = date(2024, 8, 23) months = 24 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat(...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "2026-08-23", "printed": "2026-08-23", "notation": null}
nlprog_det-setting-0044950
A trial runs from February 26, 2025 to March 20, 2025, counting both days. How many calendar days is that? A short script: ```python from datetime import date first = date(2025, 2, 26) # datetime.date(2025, 2, 26) last = date(2025, 3, 20) # datetime.date(2025, 3, 20) days = (last - first).days + 1 # 23 print(days) ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0044951
An office budget of $12,000 has expenses of $3,059, $3,926. How much of the budget is left? ```python budget = 12000 expenses = [3059, 3926] left = budget - sum(expenses) # 5015 print(left) ``` (Output: 5015) The remaining budget is $5,015.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "5015", "printed": "5015", "notation": null}
nlprog_det-setting-0044952
<|start|><|user|> Starting from $25,000, the team spends $3,785, $1,572, $1,803. What remains?<|eot|> <|assistant|> ```python budget = 25000 expenses = [3785, 1572, 1803] left = budget - sum(expenses) # 17840 print(left) ``` The script prints 17840, as expected. $17,840 is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting from $25,000, the team spends $3,785, $1,572, $1,803. What remains?" }, { "role": "assistant", "content": "```python\nbudget = 25000\nexpenses = [3785, 1572, 1803]\nleft = budget - sum(expenses) # 17840\nprint(left)\n```\nThe script prints 17840, as expect...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "17840", "printed": "17840", "notation": null}
nlprog_det-setting-0044953
<|start|><|user|> A $3,600 loan carries 6% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|> <|assistant|> Each payment is $118.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $3,600 loan carries 6% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?" }, { "role": "assistant", "content": "Each payment is $118.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
51
{"gold": "118.00", "printed": "118.00", "notation": null}
nlprog_det-setting-0044954
<|start|><|user|> At 1% a month (simple), what interest builds on $7,500 over 3 months?<|eot|> <|assistant|> ```python balance = 7500 monthly_rate = 1 / 100 # 0.01 months = 3 interest = balance * monthly_rate * months # 225.0 print(f"{interest:.2f}") ``` Output of the run — 225.00 $225.00 accrues.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 1% a month (simple), what interest builds on $7,500 over 3 months?" }, { "role": "assistant", "content": "```python\nbalance = 7500\nmonthly_rate = 1 / 100 # 0.01\nmonths = 3\ninterest = balance * monthly_rate * months # 225.0\nprint(f\"{interest:.2f}\")\n```\n...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "225.00", "printed": "225.00", "notation": null}
nlprog_det-setting-0044955
Fines run at $50 per day up to a maximum of $5,000. How much after 58 days? We write it as a program: ```python per_day = 50 days = 58 cap = 5000 fine = min(per_day * days, cap) # 2900 print(fine) ``` The interpreter prints: 2900 $2,900 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "2900", "printed": "2900", "notation": null}
nlprog_det-setting-0044956
What is a 25% tip on a $131.72 bill? ```python bill = 131.72 tip_rate = 25 / 100 # 0.25 tip = bill * tip_rate # 32.93 print(f"{tip:.2f}") ``` Execution prints: 32.93 Leave $32.93.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "32.93", "printed": "32.93", "notation": null}
nlprog_det-setting-0044957
After a 25% fee is taken from a $48,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share? Written as code: ```python award = 48000 fee = award * 25 / 100 # 12000.0 remaining = award - fee # 36000.0 per_client = remaining / 2 # 18000.0 print(f"{per_client:.2f}") ``` Console output —...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "18000.00", "printed": "18000.00", "notation": null}
nlprog_det-setting-0044959
<|start|><|user|> Straight-line depreciation: cost $30,000, salvage $0, 8 years. How much per year?<|eot|> <|assistant|> ```python cost = 30000 salvage = 0 years = 8 per_year = (cost - salvage) / years print(f"{per_year:.2f}") ``` Executed, it shows 3750.00. Depreciation is $3,750.00 per year.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Straight-line depreciation: cost $30,000, salvage $0, 8 years. How much per year?" }, { "role": "assistant", "content": "```python\ncost = 30000\nsalvage = 0\nyears = 8\nper_year = (cost - salvage) / years\nprint(f\"{per_year:.2f}\")\n```\nExecuted, it shows 3750.00...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "3750.00", "printed": "3750.00", "notation": null}
nlprog_det-setting-0044960
<|start|><|user|> How many meters are in 49 kilometers?<|eot|> <|assistant|> ```python km = 49 meters = km * 1000 # 49000 print(round(meters)) ``` Executing it gives: 49000 That is 49,000 meters.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many meters are in 49 kilometers?" }, { "role": "assistant", "content": "```python\nkm = 49\nmeters = km * 1000 # 49000\nprint(round(meters))\n```\nExecuting it gives: 49000\n\nThat is 49,000 meters." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "49000", "printed": "49000", "notation": null}
nlprog_det-setting-0044962
<|start|><|user|> Starting with 1403 pens and using 39 per day, how many remain after 17 days?<|eot|> <|assistant|> ```python stock = 1403 per_day = 39 days = 17 left = stock - per_day * days # 740 print(left) ``` Executing it gives: 740 740 pens are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting with 1403 pens and using 39 per day, how many remain after 17 days?" }, { "role": "assistant", "content": "```python\nstock = 1403\nper_day = 39\ndays = 17\nleft = stock - per_day * days # 740\nprint(left)\n```\nExecuting it gives: 740\n\n740 pens are left...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "740", "printed": "740", "notation": null}
nlprog_det-setting-0044964
<|start|><|system|> You have access to these functions: {"name": "interpreter", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> Monthly rent is $1...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"interpreter\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir...
nlprog_det
setting
original
null
deterministic
[]
[]
247
{"gold": "677.42", "printed": "677.42", "notation": null}
nlprog_det-setting-0044965
A count moves from 500 to 250. By what percent did it change (use a minus sign for a drop)? Let the code do the arithmetic: ```python old = 500 new = 250 change = (new - old) / old * 100 # -50.0 print(round(change)) ``` stdout — -50 It changed by -50%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "-50", "printed": "-50", "notation": null}
nlprog_det-setting-0044966
90 volunteers are split into 5 equal teams. How many are on each team, and how many are left over? In Python: total = 90 groups = 5 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") That prints: 18 each, 0 left over 18 each, 0 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "18 each, 0 left over", "printed": "18 each, 0 left over", "notation": null}
nlprog_det-setting-0044967
<|start|><|system|> You are a patient tutor.<|eot|> <|user|> Malik and Vera share $2,989 in the ratio 3:4. How much does Malik get?<|eot|> <|assistant|> ```python total = 2989 parts_a = 3 parts_b = 4 share_a = total * parts_a // (parts_a + parts_b) # 1281 print(share_a) ``` The script prints 1281. Malik's share is $1...
chat
[ { "role": "system", "content": "You are a patient tutor." }, { "role": "user", "content": "Malik and Vera share $2,989 in the ratio 3:4. How much does Malik get?" }, { "role": "assistant", "content": "```python\ntotal = 2989\nparts_a = 3\nparts_b = 4\nshare_a = total * parts_a // (pa...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "1281", "printed": "1281", "notation": null}
nlprog_det-setting-0044968
<|start|><|system|> Tool definitions: [{"name": "math_engine", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> The firm was founded in...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"math_engine\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [...
nlprog_det
setting
original
null
deterministic
[]
[]
203
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0044969
After a 25% fee is taken from a $48,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share? Computation in Python: ```python award = 48000 fee = award * 25 / 100 # 12000.0 remaining = award - fee # 36000.0 per_client = remaining / 2 # 18000.0 print(f"{per_client:.2f}") ``` Execution ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "18000.00", "printed": "18000.00", "notation": null}
nlprog_det-setting-0044970
<|start|><|user|> What is a 25% tip on a $180.39 bill?<|eot|> <|assistant|> bill = 180.39 tip_rate = 25 / 100 # 0.25 tip = bill * tip_rate # 45.0975 print(f"{tip:.2f}") Running this gives: 45.10 The tip is $45.10.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is a 25% tip on a $180.39 bill?" }, { "role": "assistant", "content": " bill = 180.39\n tip_rate = 25 / 100 # 0.25\n tip = bill * tip_rate # 45.0975\n print(f\"{tip:.2f}\")\nRunning this gives: 45.10\n\nThe tip is $45.10." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "45.10", "printed": "45.10", "notation": null}
nlprog_det-setting-0044971
To read 510 pages in 17 days, how many pages per day are needed? Set it up in Python: ```python pages = 510 days = 17 per_day = pages // days # 30 print(per_day) ``` Running this gives 30. 30 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0044972
Marek earns a 6% commission on $92,560 of sales. What is the commission? We write it as a program: sales = 92560 rate = 6 / 100 # 0.06 commission = sales * rate # 5553.599999999999 print(f"{commission:.2f}") What it prints — 5553.60 The commission is $5,553.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "5553.60", "printed": "5553.60", "notation": null}
nlprog_det-setting-0044973
A penalty of $100 a day accrues, capped at $5,000. What is owed after 16 days? The computation: ```python per_day = 100 days = 16 cap = 5000 fine = min(per_day * days, cap) # 1600 print(fine) ``` Run output — 1600 The fine is $1,600.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "1600", "printed": "1600", "notation": null}
nlprog_det-setting-0044974
746 files go into boxes of 50. How many boxes does that take? A Python solution: ```python import math files = 746 per_box = 50 boxes = math.ceil(files / per_box) # 15 print(boxes) ``` Output of the run — 15 15 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0044977
A count moves from 500 to 700. By what percent did it change (use a minus sign for a drop)? ```python old = 500 new = 700 change = (new - old) / old * 100 # 40.0 print(round(change)) ``` Out — 40 It changed by 40%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0044978
<|start|><|user|> Count the days between September 4, 2027 and December 6, 2027.<|eot|> <|assistant|> ```python from datetime import date first = date(2027, 9, 4) # datetime.date(2027, 9, 4) second = date(2027, 12, 6) # datetime.date(2027, 12, 6) print((second - first).days) ``` The code prints 93. It is 93 days.<|e...
chat
[ { "role": "user", "content": "Count the days between September 4, 2027 and December 6, 2027." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2027, 9, 4) # datetime.date(2027, 9, 4)\nsecond = date(2027, 12, 6) # datetime.date(2027, 12, 6)\nprint((second...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "93", "printed": "93", "notation": null}
nlprog_det-setting-0044979
<|start|><|user|> With 25 rows of 14 chairs and 36 empty chairs, how many chairs are taken?<|eot|> <|assistant|> rows = 25 per_row = 14 empty = 36 seated = rows * per_row - empty # 314 print(seated) The code prints 314. 314 people are seated.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 25 rows of 14 chairs and 36 empty chairs, how many chairs are taken?" }, { "role": "assistant", "content": " rows = 25\n per_row = 14\n empty = 36\n seated = rows * per_row - empty # 314\n print(seated)\nThe code prints 314.\n\n314 people are se...
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "314", "printed": "314", "notation": null}
nlprog_det-setting-0044980
<|start|><|user|> A penalty of $250 a day accrues, capped at $1,000. What is owed after 17 days?<|eot|> <|assistant|> ```python per_day = 250 days = 17 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` When run, it prints 1000. $1,000 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A penalty of $250 a day accrues, capped at $1,000. What is owed after 17 days?" }, { "role": "assistant", "content": "```python\nper_day = 250\ndays = 17\ncap = 1000\nfine = min(per_day * days, cap) # 1000\nprint(fine)\n```\nWhen run, it prints 1000.\n\n$1,000 is o...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0044981
The paralegal logged 12 hours at a rate of $225. How much is billed? Python version: ```python hours = 12 rate = 225 bill = hours * rate # 2700 print(f"{bill:.2f}") ``` When run, it prints 2700.00, as expected. That comes to $2,700.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "2700.00", "printed": "2700.00", "notation": null}
nlprog_det-setting-0044982
One can of paint covers 300 square feet. How many cans are needed for 285 square feet of wall? The computation: ```python import math area = 285 coverage = 300 cans = math.ceil(area / coverage) # 1 print(cans) ``` Execution prints: 1 1 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "1", "printed": "1", "notation": null}
nlprog_det-setting-0044983
A car travels 458 miles in 2 hours. What is its average speed in miles per hour? Let's compute it with Python. ```python distance = 458 hours = 2 speed = distance / hours # 229.0 print(round(speed)) ``` (Execution result: 229) It averages 229 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "229", "printed": "229", "notation": null}
nlprog_det-setting-0044984
<|start|><|system|> Functions: [{"name": "sandbox_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> A storeroom has 1262 toner k...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"sandbox_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"sni...
nlprog_det
setting
original
null
deterministic
[]
[]
227
{"gold": "1178", "printed": "1178", "notation": null}
nlprog_det-setting-0044985
<|start|><|user|> A court charges $10 per request plus $0.25 per page after the first 20 pages. What does a 23-page copy cost?<|eot|> <|assistant|> ```python pages = 23 base = 10 per_page = 0.25 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 10.75 print(f"{cost:.2f}") ``` Running this gives: 10....
chat
[ { "role": "user", "content": "A court charges $10 per request plus $0.25 per page after the first 20 pages. What does a 23-page copy cost?" }, { "role": "assistant", "content": "```python\npages = 23\nbase = 10\nper_page = 0.25\nfree_pages = 20\ncost = base + max(0, pages - free_pages) * per_pag...
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "10.75", "printed": "10.75", "notation": null}