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-0059792
Fixed costs are $9,000. Each unit sells for $30 and costs $24 to make. How many units must be sold to break even? Here is a short program for it. ```python import math fixed = 9000 price = 30 variable = 24 units = math.ceil(fixed / (price - variable)) # 1500 print(units) ``` On running, it outputs 1500. Break-even i...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0059794
How many of 144 votes make 60% (round up)? The program: import math voters = 144 needed = math.ceil(voters * 60 / 100) # 87 print(needed) # program output: 87 87 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
69
{"gold": "87", "printed": "87", "notation": null}
nlprog_det-setting-0059795
<|start|><|user|> A $2,000 security deposit has deductions of $85. How much is refunded?<|eot|> <|assistant|> ```python deposit = 2000 deductions = [85] refund = deposit - sum(deductions) # 1915 print(refund) ``` # execution result: 1915 The refund is $1,915.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $2,000 security deposit has deductions of $85. How much is refunded?" }, { "role": "assistant", "content": "```python\ndeposit = 2000\ndeductions = [85]\nrefund = deposit - sum(deductions) # 1915\nprint(refund)\n```\n# execution result: 1915\n\nThe refund is $1,9...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "1915", "printed": "1915", "notation": null}
nlprog_det-setting-0059796
A recipe for 2 people uses 300 grams of lentils. How many grams are needed for 4 people? Here is a short program for it. ```python grams = 300 serves = 2 needed_for = 4 scaled = grams * needed_for // serves # 600 print(scaled) ``` Result: 600 600 grams of lentils are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0059797
<|start|><|user|> A garage charges $4 an hour, never more than $24 a day. How much for 3 hours?<|eot|> <|assistant|> ```python rate = 4 hours = 3 daily_max = 24 cost = min(rate * hours, daily_max) print(cost) ``` The script prints 12. Parking costs $12.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A garage charges $4 an hour, never more than $24 a day. How much for 3 hours?" }, { "role": "assistant", "content": "```python\nrate = 4\nhours = 3\ndaily_max = 24\ncost = min(rate * hours, daily_max)\nprint(cost)\n```\nThe script prints 12.\n\nParking costs $12." ...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0059798
What is 30 degrees Celsius in Fahrenheit? It equals 86 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "86", "printed": "86", "notation": null}
nlprog_det-setting-0059799
Express 289 hours in days and hours. Programmatically: hours = 289 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") It outputs: 12 days and 1 hours That is 12 days and 1 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "12 days and 1 hours", "printed": "12 days and 1 hours", "notation": null}
nlprog_det-setting-0059801
At 2% a month (simple), what interest builds on $7,500 over 2 months? ```python balance = 7500 monthly_rate = 2 / 100 # 0.02 months = 2 interest = balance * monthly_rate * months # 300.0 print(f"{interest:.2f}") ``` Output: 300.00 $300.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "300.00", "printed": "300.00", "notation": null}
nlprog_det-setting-0059802
A 4% increase is applied to $1,800 monthly rent. What is the new amount? Script: ```python rent = 1800 increase = 4 / 100 # 0.04 new_rent = rent * (1 + increase) # 1872.0 print(f"{new_rent:.2f}") ``` Out: 1872.00 The new rent is $1,872.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "1872.00", "printed": "1872.00", "notation": null}
nlprog_det-setting-0059804
At $31.24 an hour, what does 16 hours of work pay? Programmatically: ```python rate = 31.24 hours = 16 earnings = rate * hours # 499.84 print(f"{earnings:.2f}") ``` Output: 499.84 That earns $499.84.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "499.84", "printed": "499.84", "notation": null}
nlprog_det-setting-0059805
A party has 30 days to respond to a motion served on March 25, 2021, with 3 days added because service was by mail. When is the response due? The computation: ```python from datetime import date, timedelta served = date(2021, 3, 25) # datetime.date(2021, 3, 25) response_days = 30 mail_days = 3 due = served + timedelt...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
173
{"gold": "2021-04-27", "printed": "2021-04-27", "notation": null}
nlprog_det-setting-0059806
After an initial $3,000, the remainder of a $24,000 grant is paid in 6 equal parts. What is each part? In code: ```python grant = 24000 up_front = 3000 installments = 6 each = (grant - up_front) / installments # 3500.0 print(f"{each:.2f}") ``` Executing it gives 3500.00. Each installment is $3,500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "3500.00", "printed": "3500.00", "notation": null}
nlprog_det-setting-0059807
A 21-day notice period begins on February 4, 2025. On what date does it end? Here is a short program for it. ```python from datetime import date, timedelta start = date(2025, 2, 4) # datetime.date(2025, 2, 4) end = start + timedelta(days=21) # datetime.date(2025, 2, 25) print(end.isoformat()) ``` Console output — 20...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "2025-02-25", "printed": "2025-02-25", "notation": null}
nlprog_det-setting-0059808
A 18-month warranty starts on October 19, 2023. On what date does it end? Code: ```python from datetime import date start = date(2023, 10, 19) months = 18 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` It prints: 2025-04-1...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "2025-04-19", "printed": "2025-04-19", "notation": null}
nlprog_det-setting-0059809
<|start|><|system|> Double-check numbers before answering.<|eot|> <|user|> The landlord deducts $150 and $45 from a $1,000 deposit. What is returned to the tenant?<|eot|> <|assistant|> ```python deposit = 1000 deductions = [150, 45] refund = deposit - sum(deductions) # 805 print(refund) ``` Running it prints 805, as e...
chat
[ { "role": "system", "content": "Double-check numbers before answering." }, { "role": "user", "content": "The landlord deducts $150 and $45 from a $1,000 deposit. What is returned to the tenant?" }, { "role": "assistant", "content": "```python\ndeposit = 1000\ndeductions = [150, 45]\n...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "805", "printed": "805", "notation": null}
nlprog_det-setting-0059810
197 volunteers are split into 6 equal teams. How many are on each team, and how many are left over? ```python total = 197 groups = 6 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` When run, it prints 32 each, 5 left over, as expected. 32 each, 5 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "32 each, 5 left over", "printed": "32 each, 5 left over", "notation": null}
nlprog_det-setting-0059811
<|start|><|system|> You may call the tools below. [{"name": "interpreter", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> Tobias earn...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"interpreter\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"r...
nlprog_det
setting
original
null
deterministic
[]
[]
247
{"gold": "736.00", "printed": "736.00", "notation": null}
nlprog_det-setting-0059812
<|start|><|system|> You are a careful assistant.<|eot|> <|user|> Xavier buys 11 boxes of 8 badges each and gives away 17 badges. How many badges are left?<|eot|> <|assistant|> ```python boxes = 11 per_box = 8 given_away = 17 left = boxes * per_box - given_away print(left) ``` Console: 71 71 badges are left.<|eot|> <|e...
chat
[ { "role": "system", "content": "You are a careful assistant." }, { "role": "user", "content": "Xavier buys 11 boxes of 8 badges each and gives away 17 badges. How many badges are left?" }, { "role": "assistant", "content": "```python\nboxes = 11\nper_box = 8\ngiven_away = 17\nleft = ...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "71", "printed": "71", "notation": null}
nlprog_det-setting-0059814
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "py_exec", "...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"...
nlprog_det
setting
original
null
deterministic
[]
[]
339
{"gold": "137.15", "printed": "137.15", "notation": null}
nlprog_det-setting-0059815
A count moves from 2,500 to 2,000. By what percent did it change (use a minus sign for a drop)? The computation: ```python old = 2500 new = 2000 change = (new - old) / old * 100 # -20.0 print(round(change)) ``` The program outputs: -20 The change is -20%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "-20", "printed": "-20", "notation": null}
nlprog_det-setting-0059816
<|start|><|system|> You have access to these functions: {"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}} {"name": "business_days", "description": "Count business days between ...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}\n{\"name\": \"busin...
nlprog_det
setting
original
null
deterministic
[]
[]
394
{"gold": "1147", "printed": "1147", "notation": null}
nlprog_det-setting-0059817
A clerk's office charges $45 for each filing. Tomas submits 4 filings. What is the total fee? Let the code do the arithmetic: ```python fee = 45 filings = 4 total = fee * filings # 180 print(total) ``` Out: 180 The filings cost $180 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "180", "printed": "180", "notation": null}
nlprog_det-setting-0059818
<|start|><|user|> Count the days between November 6, 2020 and March 18, 2021.<|eot|> <|assistant|> ```python from datetime import date first = date(2020, 11, 6) # datetime.date(2020, 11, 6) second = date(2021, 3, 18) # datetime.date(2021, 3, 18) print((second - first).days) ``` # stdout: 132 It is 132 days.<|eot|> <...
chat
[ { "role": "user", "content": "Count the days between November 6, 2020 and March 18, 2021." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2020, 11, 6) # datetime.date(2020, 11, 6)\nsecond = date(2021, 3, 18) # datetime.date(2021, 3, 18)\nprint((second ...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "132", "printed": "132", "notation": null}
nlprog_det-setting-0059819
Rent of $1,800 goes up 6%. What is the new rent? Here is a short program for it. ```python rent = 1800 increase = 6 / 100 # 0.06 new_rent = rent * (1 + increase) # 1908.0 print(f"{new_rent:.2f}") ``` The program prints 1908.00. The new rent is $1,908.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "1908.00", "printed": "1908.00", "notation": null}
nlprog_det-setting-0059820
<|start|><|user|> Water costs $15 a month plus $4.20 for each 1,000 gallons over 0,000. What is owed for 13,000 gallons?<|eot|> <|assistant|> base = 15 rate = 4.2 used = 13 free = 0 bill = base + rate * max(0, used - free) # 69.6 print(f"{bill:.2f}") Out — 69.60 $69.60 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Water costs $15 a month plus $4.20 for each 1,000 gallons over 0,000. What is owed for 13,000 gallons?" }, { "role": "assistant", "content": " base = 15\n rate = 4.2\n used = 13\n free = 0\n bill = base + rate * max(0, used - free) # 69.6\n print(...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "69.60", "printed": "69.60", "notation": null}
nlprog_det-setting-0059821
Monthly rent is $900. A tenant moves in with 20 days left in a 30-day month. What is the prorated rent? Coded up: ```python rent = 900 days_in_month = 30 days_occupied = 20 prorated = rent * days_occupied / days_in_month # 600.0 print(f"{prorated:.2f}") ``` # printed: 600.00 The prorated rent is $600.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "600.00", "printed": "600.00", "notation": null}
nlprog_det-setting-0059822
<|start|><|user|> A $9,000 loan carries 8% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|> <|assistant|> The monthly payment is $810.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $9,000 loan carries 8% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?" }, { "role": "assistant", "content": "The monthly payment is $810.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
52
{"gold": "810.00", "printed": "810.00", "notation": null}
nlprog_det-setting-0059823
<|start|><|user|> Equal monthly payments repay $3,600 plus 6% simple yearly interest over 24 months. How large is a payment?<|eot|> <|assistant|> ```python principal = 3600 annual_rate = 6 / 100 # 0.06 months = 24 interest = principal * annual_rate * months / 12 # 432.0 payment = (principal + interest) / months # 16...
chat
[ { "role": "user", "content": "Equal monthly payments repay $3,600 plus 6% simple yearly interest over 24 months. How large is a payment?" }, { "role": "assistant", "content": "```python\nprincipal = 3600\nannual_rate = 6 / 100 # 0.06\nmonths = 24\ninterest = principal * annual_rate * months / 1...
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "168.00", "printed": "168.00", "notation": null}
nlprog_det-setting-0059824
<|start|><|user|> Convert 20 °C to Fahrenheit.<|eot|> <|assistant|> It equals 68 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 20 °C to Fahrenheit." }, { "role": "assistant", "content": "It equals 68 degrees Fahrenheit." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "68", "printed": "68", "notation": null}
nlprog_det-setting-0059825
What commission does Bruna make on $32,891 in sales at 6%? Python does the arithmetic: sales = 32891 rate = 6 / 100 # 0.06 commission = sales * rate # 1973.46 print(f"{commission:.2f}") Running this gives: 1973.46 Bruna earns $1,973.46.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "1973.46", "printed": "1973.46", "notation": null}
nlprog_det-setting-0059826
A $6,000 loan carries 6% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment? Here is the program. ```python principal = 6000 annual_rate = 6 / 100 # 0.06 months = 24 interest = principal * annual_rate * months / 12 # 720.0 payment = (principal + i...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "280.00", "printed": "280.00", "notation": null}
nlprog_det-setting-0059827
<|start|><|user|> 2 clients win $30,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> ```python award = 30000 fee = award * 30 / 100 remaining = award - fee per_client = remaining / 2 print(f"{per_client:.2f}") ``` Python prints 10500.00. Each client gets $10...
chat
[ { "role": "user", "content": "2 clients win $30,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": "```python\naward = 30000\nfee = award * 30 / 100\nremaining = award - fee\nper_client = remaining / 2\nprint(f\"{per_cli...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "10500.00", "printed": "10500.00", "notation": null}
nlprog_det-setting-0059829
Mei has 3 documents to file, and each filing costs $90. How much are the filing fees in total? As Python: fee = 90 filings = 3 total = fee * filings # 270 print(total) Out: 270 The filings cost $270 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "270", "printed": "270", "notation": null}
nlprog_det-setting-0059831
<|start|><|user|> If a 135-minute seminar begins at 2:30 PM, what time does it finish?<|eot|> <|assistant|> ```python start = 14 * 60 + 30 end = start + 135 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Output = 4:45 PM It ends at 4:45 PM.<|eot|> <|end|>
chat
[ { "role": "user", "content": "If a 135-minute seminar begins at 2:30 PM, what time does it finish?" }, { "role": "assistant", "content": "```python\nstart = 14 * 60 + 30\nend = start + 135\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}\...
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "4:45 PM", "printed": "4:45 PM", "notation": null}
nlprog_det-setting-0059832
Buying 5 toner kits at $27 each, 2 envelopes at $8 each, 4 markers at $7 each, 5 pens at $14 each, someone hands over $250. What change comes back? We can compute it in Python. ```python items = [(5, 27), (2, 8), (4, 7), (5, 14)] total = sum(q * p for q, p in items) # 249 paid = 250 change = paid - total # 1 print(c...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "1", "printed": "1", "notation": null}
nlprog_det-setting-0059833
How many weekdays (Monday to Friday) fall after January 20, 2028 up to and including January 27, 2028? Python code: from datetime import date, timedelta start = date(2028, 1, 20) end = date(2028, 1, 27) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).week...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0059834
Divide 179 items among 9 groups as evenly as possible with equal groups. How many per group, and how many remain? Computing it: ```python total = 179 groups = 9 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` It prints: 19 each, 8 left over 19 each, 8 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "19 each, 8 left over", "printed": "19 each, 8 left over", "notation": null}
nlprog_det-setting-0059835
<|start|><|user|> A $2,000 security deposit has deductions of $85 and $75. How much is refunded?<|eot|> <|assistant|> The refund is $1,840.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $2,000 security deposit has deductions of $85 and $75. How much is refunded?" }, { "role": "assistant", "content": "The refund is $1,840." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "1840", "printed": "1840", "notation": null}
nlprog_det-setting-0059836
<|start|><|system|> You can call tools. Available tools: [{"name": "interpreter", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "convert_uni...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"interpreter\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}...
nlprog_det
setting
original
null
deterministic
[]
[]
356
{"gold": "47.20", "printed": "47.20", "notation": null}
nlprog_det-setting-0059837
<|start|><|user|> With 20% off, what does a $180 backpack cost?<|eot|> <|assistant|> price = 180 discount = 20 / 100 # 0.2 sale_price = price * (1 - discount) # 144.0 print(f"{sale_price:.2f}") # stdout: 144.00 It costs $144.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 20% off, what does a $180 backpack cost?" }, { "role": "assistant", "content": " price = 180\n discount = 20 / 100 # 0.2\n sale_price = price * (1 - discount) # 144.0\n print(f\"{sale_price:.2f}\")\n# stdout: 144.00\n\nIt costs $144.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "144.00", "printed": "144.00", "notation": null}
nlprog_det-setting-0059838
<|start|><|user|> At an exchange rate of 0.92 USD per CHF, how many USD is 435 CHF?<|eot|> <|assistant|> ```python amount = 435 rate = 0.92 converted = amount * rate # 400.20000000000005 print(f"{converted:.2f}") ``` (stdout: 400.20) That is 400.20 USD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At an exchange rate of 0.92 USD per CHF, how many USD is 435 CHF?" }, { "role": "assistant", "content": "```python\namount = 435\nrate = 0.92\nconverted = amount * rate # 400.20000000000005\nprint(f\"{converted:.2f}\")\n```\n(stdout: 400.20)\n\nThat is 400.20 USD."...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "400.20", "printed": "400.20", "notation": null}
nlprog_det-setting-0059839
<|start|><|system|> Answer in plain English.<|eot|> <|user|> 55 copies of a 35-page packet are printed at $0.08 per page. What is the cost?<|eot|> <|assistant|> ```python pages = 35 copies = 55 cost_per_page = 0.08 cost = pages * copies * cost_per_page # 154.0 print(f"{cost:.2f}") ``` Python prints: 154.00 The job co...
chat
[ { "role": "system", "content": "Answer in plain English." }, { "role": "user", "content": "55 copies of a 35-page packet are printed at $0.08 per page. What is the cost?" }, { "role": "assistant", "content": "```python\npages = 35\ncopies = 55\ncost_per_page = 0.08\ncost = pages * co...
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "154.00", "printed": "154.00", "notation": null}
nlprog_det-setting-0059840
<|start|><|system|> Tools you may use: [{"name": "run_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "convert_units", "description": "...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"run_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"...
nlprog_det
setting
original
null
deterministic
[]
[]
388
{"gold": "2023-06-04", "printed": "2023-06-04", "notation": null}
nlprog_det-setting-0059841
Goods bought on October 16, 2023 carry a 24-month warranty. When does it expire? ```python from datetime import date start = date(2023, 10, 16) months = 24 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Execution prints: 2...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "2025-10-16", "printed": "2025-10-16", "notation": null}
nlprog_det-setting-0059842
<|start|><|user|> 2 clients win $30,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> ```python award = 30000 fee = award * 30 / 100 remaining = award - fee per_client = remaining / 2 print(f"{per_client:.2f}") ``` The program outputs: 10500.00 Each client ge...
chat
[ { "role": "user", "content": "2 clients win $30,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": "```python\naward = 30000\nfee = award * 30 / 100\nremaining = award - fee\nper_client = remaining / 2\nprint(f\"{per_cli...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "10500.00", "printed": "10500.00", "notation": null}
nlprog_det-setting-0059843
A $150 dinner bill gets a 18% tip, and 2 people share the cost equally. What is each person's share? bill = 150 tip_rate = 18 / 100 # 0.18 people = 2 each = bill * (1 + tip_rate) / people # 88.5 print(f"{each:.2f}") It prints 88.50. Each person pays $88.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "88.50", "printed": "88.50", "notation": null}
nlprog_det-setting-0059844
How many meters are in 65.9 kilometers? Python code: km = 65.9 meters = km * 1000 # 65900.0 print(round(meters)) # out: 65900 65,900 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
69
{"gold": "65900", "printed": "65900", "notation": null}
nlprog_det-setting-0059845
Convert 39.5 km to meters. That is 39,500 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
23
{"gold": "39500", "printed": "39500", "notation": null}
nlprog_det-setting-0059846
<|start|><|user|> A recipe for 2 people uses 200 grams of sugar. How many grams are needed for 6 people?<|eot|> <|assistant|> ```python grams = 200 serves = 2 needed_for = 6 scaled = grams * needed_for // serves # 600 print(scaled) ``` Out — 600 Use 600 g of sugar.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A recipe for 2 people uses 200 grams of sugar. How many grams are needed for 6 people?" }, { "role": "assistant", "content": "```python\ngrams = 200\nserves = 2\nneeded_for = 6\nscaled = grams * needed_for // serves # 600\nprint(scaled)\n```\nOut — 600\n\nUse 600 g...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0059848
<|start|><|user|> A 12-month warranty starts on July 24, 2027. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date start = date(2027, 7, 24) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat...
chat
[ { "role": "user", "content": "A 12-month warranty starts on July 24, 2027. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2027, 7, 24)\nmonths = 12\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(start.ye...
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "2028-07-24", "printed": "2028-07-24", "notation": null}
nlprog_det-setting-0059849
<|start|><|user|> A lease runs for 36 months at $1,640 per month. How much rent is paid over the whole term?<|eot|> <|assistant|> ```python monthly_rent = 1640 months = 36 total = monthly_rent * months # 59040 print(total) ``` (stdout: 59040) In total, $59,040 is paid.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lease runs for 36 months at $1,640 per month. How much rent is paid over the whole term?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 1640\nmonths = 36\ntotal = monthly_rent * months # 59040\nprint(total)\n```\n(stdout: 59040)\n\nIn total, $59...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "59040", "printed": "59040", "notation": null}
nlprog_det-setting-0059850
<|start|><|user|> A garage charges $5 an hour, never more than $24 a day. How much for 10 hours?<|eot|> <|assistant|> ```python rate = 5 hours = 10 daily_max = 24 cost = min(rate * hours, daily_max) # 24 print(cost) ``` Executed, it shows 24. Parking costs $24.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A garage charges $5 an hour, never more than $24 a day. How much for 10 hours?" }, { "role": "assistant", "content": "```python\nrate = 5\nhours = 10\ndaily_max = 24\ncost = min(rate * hours, daily_max) # 24\nprint(cost)\n```\nExecuted, it shows 24.\n\nParking cost...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0059851
Monthly: $15. Annual: $132. What is saved per year by paying annually? Program: monthly = 15 yearly = 132 savings = monthly * 12 - yearly # 48 print(savings) That prints 48. $48 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0059852
What is a 15% tip on a $52.65 bill? In Python: ```python bill = 52.65 tip_rate = 15 / 100 # 0.15 tip = bill * tip_rate # 7.897499999999999 print(f"{tip:.2f}") ``` # out: 7.90 The tip is $7.90.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "7.90", "printed": "7.90", "notation": null}
nlprog_det-setting-0059853
Prorate $900 of monthly rent for 24 days of a 31-day month. Written as code: ```python rent = 900 days_in_month = 31 days_occupied = 24 prorated = rent * days_occupied / days_in_month # 696.7741935483871 print(f"{prorated:.2f}") ``` On running, it outputs 696.77. The prorated rent is $696.77.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "696.77", "printed": "696.77", "notation": null}
nlprog_det-setting-0059854
Buying 6 clipboards at $29 each, 1 rulers at $22 each, 5 clipboards at $28 each, someone hands over $350. What change comes back? The Python version: ```python items = [(6, 29), (1, 22), (5, 28)] total = sum(q * p for q, p in items) # 336 paid = 350 change = paid - total # 14 print(change) ``` # stdout: 14 The chan...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0059855
<|start|><|system|> Tool definitions: [{"name": "py_exec", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> Shipping costs $10 plus $0.7...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"py_exec\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"pro...
nlprog_det
setting
original
null
deterministic
[]
[]
226
{"gold": "22.00", "printed": "22.00", "notation": null}
nlprog_det-setting-0059856
<|start|><|system|> Tool definitions: {"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}} {"name": "business_days", "description": "Count business days between two dates.", "para...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}\n{\"name\": \"business_days\", \"desc...
nlprog_det
setting
original
null
deterministic
[]
[]
377
{"gold": "31500.00", "printed": "31500.00", "notation": null}
nlprog_det-setting-0059857
A customer buys 3 flash drives at $26 each, 5 staplers at $5 each, 1 markers at $15 each and pays with $150. How much change is due? Python version: ```python items = [(3, 26), (5, 5), (1, 15)] total = sum(q * p for q, p in items) # 118 paid = 150 change = paid - total # 32 print(change) ``` Out: 32 The change is $...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0059858
<|start|><|system|> You have access to these functions: {"name": "python_exec", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}} {"name": "business_days", "de...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"python_exec\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \...
nlprog_det
setting
original
null
deterministic
[]
[]
442
{"gold": "15333.33", "printed": "15333.33", "notation": null}
nlprog_det-setting-0059859
A water bill is $12 plus $4.75 per thousand gallons beyond the first 2 thousand. What is the bill for 14 thousand gallons? A Python solution: base = 12 rate = 4.75 used = 14 free = 2 bill = base + rate * max(0, used - free) # 69.0 print(f"{bill:.2f}") When run, it prints 69.00, as expected. T...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "69.00", "printed": "69.00", "notation": null}
nlprog_det-setting-0059861
A $180 dinner bill gets a 15% tip, and 3 people share the cost equally. What is each person's share? One way, in code: ```python bill = 180 tip_rate = 15 / 100 # 0.15 people = 3 each = bill * (1 + tip_rate) / people # 68.99999999999999 print(f"{each:.2f}") ``` stdout: 69.00 The share is $69.00 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "69.00", "printed": "69.00", "notation": null}
nlprog_det-setting-0059862
A pack of 6 ink cartridges sells for $342. What does each cost? Let the code do the arithmetic: ```python total = 342 count = 6 per_item = total // count # 57 print(per_item) ``` Running it prints 57. The unit price is $57.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "57", "printed": "57", "notation": null}
nlprog_det-setting-0059863
Shipping costs $10 plus $1.50 per pound. What does a 17-pound parcel cost to ship? Python, step by step: base = 10 per_pound = 1.5 weight = 17 cost = base + per_pound * weight # 35.5 print(f"{cost:.2f}") The code prints: 35.50 The charge is $35.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "35.50", "printed": "35.50", "notation": null}
nlprog_det-setting-0059864
<|start|><|system|> Answer the user's question directly.<|eot|> <|user|> A 5 lb package ships at $12 base plus $0.75/lb. What is the charge?<|eot|> <|assistant|> ```python base = 12 per_pound = 0.75 weight = 5 cost = base + per_pound * weight # 15.75 print(f"{cost:.2f}") ``` Run output — 15.75 Shipping costs $15.75.<...
chat
[ { "role": "system", "content": "Answer the user's question directly." }, { "role": "user", "content": "A 5 lb package ships at $12 base plus $0.75/lb. What is the charge?" }, { "role": "assistant", "content": "```python\nbase = 12\nper_pound = 0.75\nweight = 5\ncost = base + per_poun...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "15.75", "printed": "15.75", "notation": null}
nlprog_det-setting-0059865
<|start|><|system|> You are a math tutor.<|eot|> <|user|> A car travels 489 miles in 1 hours. What is its average speed in miles per hour?<|eot|> <|assistant|> ```python distance = 489 hours = 1 speed = distance / hours # 489.0 print(round(speed)) ``` The program prints 489. The average speed is 489 mph.<|eot|> <|end...
chat
[ { "role": "system", "content": "You are a math tutor." }, { "role": "user", "content": "A car travels 489 miles in 1 hours. What is its average speed in miles per hour?" }, { "role": "assistant", "content": "```python\ndistance = 489\nhours = 1\nspeed = distance / hours # 489.0\npri...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "489", "printed": "489", "notation": null}
nlprog_det-setting-0059866
Pack A has 6 items for $13.46. Pack B has 24 items for $8.75. Which has the lower price per item? Here is a short program for it. pack_a = 13.46 / 6 # 2.2433333333333336 pack_b = 8.75 / 24 # 0.3645833333333333 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) Output of the run — B B ha...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0059867
<|start|><|user|> What is -20 degrees Celsius in Fahrenheit?<|eot|> <|assistant|> It equals -4 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is -20 degrees Celsius in Fahrenheit?" }, { "role": "assistant", "content": "It equals -4 degrees Fahrenheit." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "-4", "printed": "-4", "notation": null}
nlprog_det-setting-0059868
A 8% increase is applied to $2,200 monthly rent. What is the new amount? The computation: ```python rent = 2200 increase = 8 / 100 # 0.08 new_rent = rent * (1 + increase) # 2376.0 print(f"{new_rent:.2f}") ``` The script prints: 2376.00 The new rent is $2,376.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "2376.00", "printed": "2376.00", "notation": null}
nlprog_det-setting-0059869
<|start|><|user|> 7 boxes hold 6 envelopes each. After 17 are handed out, how many are left?<|eot|> <|assistant|> ```python boxes = 7 per_box = 6 given_away = 17 left = boxes * per_box - given_away # 25 print(left) ``` (stdout: 25) 25 envelopes are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "7 boxes hold 6 envelopes each. After 17 are handed out, how many are left?" }, { "role": "assistant", "content": "```python\nboxes = 7\nper_box = 6\ngiven_away = 17\nleft = boxes * per_box - given_away # 25\nprint(left)\n```\n(stdout: 25)\n\n25 envelopes are left."...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0059871
<|start|><|user|> An unpaid balance of $1,000 accrues 1.5% simple interest per month. How much interest accrues in 6 months?<|eot|> <|assistant|> ```python balance = 1000 monthly_rate = 1.5 / 100 # 0.015 months = 6 interest = balance * monthly_rate * months # 90.0 print(f"{interest:.2f}") ``` Execution prints 90.00. ...
chat
[ { "role": "user", "content": "An unpaid balance of $1,000 accrues 1.5% simple interest per month. How much interest accrues in 6 months?" }, { "role": "assistant", "content": "```python\nbalance = 1000\nmonthly_rate = 1.5 / 100 # 0.015\nmonths = 6\ninterest = balance * monthly_rate * months # ...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "90.00", "printed": "90.00", "notation": null}
nlprog_det-setting-0059872
Convert 2 h 10 min (the length of a meeting) to minutes. Programmatically: ```python hours = 2 minutes = 10 total_minutes = hours * 60 + minutes # 130 print(total_minutes) ``` Python prints 130. The meeting lasted 130 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "130", "printed": "130", "notation": null}
nlprog_det-setting-0059873
What average speed covers 110 miles in 2 hours? Computation in Python: distance = 110 hours = 2 speed = distance / hours # 55.0 print(round(speed)) The run gives 55. It averages 55 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
68
{"gold": "55", "printed": "55", "notation": null}
nlprog_det-setting-0059874
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> Fines run at $100 per day up to a maximum of $5,000. How much after 16 days?<|eot|> <|assistant|> $1,600 is owed.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "Fines run at $100 per day up to a maximum of $5,000. How much after 16 days?" }, { "role": "assistant", "content": "$1,600 is owed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
53
{"gold": "1600", "printed": "1600", "notation": null}
nlprog_det-setting-0059875
An invoice lists 31 tape rolls at $6 each, plus 7% sales tax. What is the invoice total? Here's the code. ```python quantity = 31 unit_price = 6 subtotal = quantity * unit_price # 186 total = subtotal * (1 + 7 / 100) # 199.02 print(f"{total:.2f}") ``` It prints: 199.02 The invoice total is $199.02.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "199.02", "printed": "199.02", "notation": null}
nlprog_det-setting-0059876
<|start|><|user|> How many 1-foot square tiles cover a 14 ft by 7 ft floor (round up)?<|eot|> <|assistant|> ```python import math length = 14 width = 7 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 98 print(tiles) ``` (Out: 98) 98 tiles are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many 1-foot square tiles cover a 14 ft by 7 ft floor (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 14\nwidth = 7\ntile = 1\ntiles = math.ceil(length * width / (tile * tile)) # 98\nprint(tiles)\n```\n(Out: 98)\n\n98 tiles ar...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "98", "printed": "98", "notation": null}
nlprog_det-setting-0059878
<|start|><|user|> With 12 rows of 12 chairs and 34 empty chairs, how many chairs are taken?<|eot|> <|assistant|> ```python rows = 12 per_row = 12 empty = 34 seated = rows * per_row - empty # 110 print(seated) ``` The interpreter prints: 110 110 seats are taken.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 12 rows of 12 chairs and 34 empty chairs, how many chairs are taken?" }, { "role": "assistant", "content": "```python\nrows = 12\nper_row = 12\nempty = 34\nseated = rows * per_row - empty # 110\nprint(seated)\n```\nThe interpreter prints: 110\n\n110 seats are ...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "110", "printed": "110", "notation": null}
nlprog_det-setting-0059879
<|start|><|system|> Double-check numbers before answering.<|eot|> <|user|> The bridge was finished in 2016. How many years had passed by 2027?<|eot|> <|assistant|> ```python start_year = 2016 end_year = 2027 print(end_year - start_year) ``` (Printed: 11) 11 years.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Double-check numbers before answering." }, { "role": "user", "content": "The bridge was finished in 2016. How many years had passed by 2027?" }, { "role": "assistant", "content": "```python\nstart_year = 2016\nend_year = 2027\nprint(end_year - start_ye...
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0059880
At a 5% tax rate, what is the tax on $556.41? ```python price = 556.41 tax_rate = 5 / 100 # 0.05 tax = price * tax_rate # 27.8205 print(f"{tax:.2f}") ``` Running it prints: 27.82 $27.82 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "27.82", "printed": "27.82", "notation": null}
nlprog_det-setting-0059881
Express 180 hours in days and hours. The Python version: hours = 180 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") Output of the run — 7 days and 12 hours That is 7 days and 12 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "7 days and 12 hours", "printed": "7 days and 12 hours", "notation": null}
nlprog_det-setting-0059882
Monthly: $29. Annual: $324. What is saved per year by paying annually? ```python monthly = 29 yearly = 324 savings = monthly * 12 - yearly print(savings) ``` It outputs: 24 $24 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0059883
Filing fees are $35 per document. What do 11 filings cost? The filings cost $385 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "385", "printed": "385", "notation": null}
nlprog_det-setting-0059884
8 boxes hold 8 water bottles each. After 11 are handed out, how many are left? Let's compute it with Python. ```python boxes = 8 per_box = 8 given_away = 11 left = boxes * per_box - given_away # 53 print(left) ``` Running this gives: 53 53 water bottles are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "53", "printed": "53", "notation": null}
nlprog_det-setting-0059885
<|start|><|system|> You are a logic tutor.<|eot|> <|user|> How many 2-foot square tiles cover a 13 ft by 5 ft floor (round up)?<|eot|> <|assistant|> ```python import math length = 13 width = 5 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 17 print(tiles) ``` The program prints 17, as expected. It takes...
chat
[ { "role": "system", "content": "You are a logic tutor." }, { "role": "user", "content": "How many 2-foot square tiles cover a 13 ft by 5 ft floor (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 13\nwidth = 5\ntile = 2\ntiles = math.ceil(length * wi...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0059886
Meals are $59 per day and lodging $175 per night. What is the allowance for 6 days and 5 nights? The allowance is $1,229.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "1229", "printed": "1229", "notation": null}
nlprog_det-setting-0059888
Counting the first and last day, how many days are there from September 26, 2028 through October 5, 2028? Here is the program. ```python from datetime import date first = date(2028, 9, 26) # datetime.date(2028, 9, 26) last = date(2028, 10, 5) # datetime.date(2028, 10, 5) days = (last - first).days + 1 # 10 print(da...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0059889
<|start|><|user|> 4 friends split a $84 bill plus a 15% tip evenly. How much does each pay?<|eot|> <|assistant|> ```python bill = 84 tip_rate = 15 / 100 # 0.15 people = 4 each = bill * (1 + tip_rate) / people # 24.15 print(f"{each:.2f}") ``` Console output — 24.15 Each person pays $24.15.<|eot|> <|end|>
chat
[ { "role": "user", "content": "4 friends split a $84 bill plus a 15% tip evenly. How much does each pay?" }, { "role": "assistant", "content": "```python\nbill = 84\ntip_rate = 15 / 100 # 0.15\npeople = 4\neach = bill * (1 + tip_rate) / people # 24.15\nprint(f\"{each:.2f}\")\n```\nConsole outpu...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "24.15", "printed": "24.15", "notation": null}
nlprog_det-setting-0059890
<|start|><|system|> Tool definitions: {"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": "code...
chat
[ { "role": "system", "content": "Tool definitions:\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\"}}, \"r...
nlprog_det
setting
original
null
deterministic
[]
[]
315
{"gold": "820.00", "printed": "820.00", "notation": null}
nlprog_det-setting-0059891
Of a $10,000 budget, $2,900 has been spent. What percent is that? Written as code: ```python budget = 10000 spent = 2900 percent = spent / budget * 100 # 28.999999999999996 print(round(percent, 1)) ``` Printed: 29.0 That is 29.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "29.0", "printed": "29.0", "notation": null}
nlprog_det-setting-0059892
A client paid a $7,500 retainer. The firm has billed 9 hours at $150 per hour. How much of the retainer is left? The remaining balance is $6,150.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "6150", "printed": "6150", "notation": null}
nlprog_det-setting-0059893
<|start|><|user|> A 36-month warranty starts on August 16, 2027. On what date does it end?<|eot|> <|assistant|> It expires on August 16, 2030.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 36-month warranty starts on August 16, 2027. On what date does it end?" }, { "role": "assistant", "content": "It expires on August 16, 2030." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "2030-08-16", "printed": "2030-08-16", "notation": null}
nlprog_det-setting-0059894
Sales went from 2,000 to 1,500. What is the percent change? Computing it: ```python old = 2000 new = 1500 change = (new - old) / old * 100 # -25.0 print(round(change)) ``` The program prints -25. The change is -25%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "-25", "printed": "-25", "notation": null}
nlprog_det-setting-0059895
A hearing starts at 8:20 AM and lasts 105 minutes. When does it end? One way, in code: ```python start = 8 * 60 + 20 end = start + 105 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Shell output — 10:05 AM It ends at 10:05 AM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "10:05 AM", "printed": "10:05 AM", "notation": null}
nlprog_det-setting-0059896
4 runs at 350 calories each burn how many calories in total? In Python: ```python per_session = 350 sessions = 4 total = per_session * sessions # 1400 print(total) ``` Result — 1400 1400 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "1400", "printed": "1400", "notation": null}
nlprog_det-setting-0059897
What is a 20% tip on a $36.43 bill? Programmatically: ```python bill = 36.43 tip_rate = 20 / 100 # 0.2 tip = bill * tip_rate # 7.2860000000000005 print(f"{tip:.2f}") ``` The program outputs: 7.29 Leave $7.29.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "7.29", "printed": "7.29", "notation": null}
nlprog_det-setting-0059898
A count moves from 2,000 to 1,700. By what percent did it change (use a minus sign for a drop)? It changed by -15%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "-15", "printed": "-15", "notation": null}
nlprog_det-setting-0059899
From 2014 to 2034, how many years is that? The Python version: ```python start_year = 2014 end_year = 2034 print(end_year - start_year) ``` Shell output: 20 20 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
68
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0059900
How much sales tax is charged on a $212.21 purchase at 5%? In Python: ```python price = 212.21 tax_rate = 5 / 100 # 0.05 tax = price * tax_rate # 10.610500000000002 print(f"{tax:.2f}") ``` Output of the run: 10.61 The tax is $10.61.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "10.61", "printed": "10.61", "notation": null}
nlprog_det-setting-0059902
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> On which weekday does December 28, 2007 fall?<|eot|> <|assistant|> ```python from datetime import date hearing = date(2007, 12, 28) # datetime.date(2007, 12, 28) print(hearing.strftime("%A")) ``` It prints: Friday It is a Friday.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "On which weekday does December 28, 2007 fall?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(2007, 12, 28) # datetime.date(2007, 12, 28)\nprint(heari...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "Friday", "printed": "Friday", "notation": null}
nlprog_det-setting-0059903
<|start|><|user|> A garage charges $4 an hour, never more than $15 a day. How much for 6 hours?<|eot|> <|assistant|> Parking costs $15.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A garage charges $4 an hour, never more than $15 a day. How much for 6 hours?" }, { "role": "assistant", "content": "Parking costs $15." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "15", "printed": "15", "notation": null}