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-0047327
Copies cost $10 plus $0.10 for each page beyond 10. How much for 93 pages? In Python: ```python pages = 93 base = 10 per_page = 0.1 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 18.3 print(f"{cost:.2f}") ``` Printed: 18.30 The total is $18.30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "18.30", "printed": "18.30", "notation": null}
nlprog_det-setting-0047328
Water costs $12 a month plus $4.75 for each 1,000 gallons over 0,000. What is owed for 22,000 gallons? Here is a short program for it. ```python base = 12 rate = 4.75 used = 22 free = 0 bill = base + rate * max(0, used - free) # 116.5 print(f"{bill:.2f}") ``` That prints: 116.50 $116.50 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "116.50", "printed": "116.50", "notation": null}
nlprog_det-setting-0047329
<|start|><|user|> A storeroom has 1753 envelopes. The office uses 28 a day. How many are left after 12 days?<|eot|> <|assistant|> stock = 1753 per_day = 28 days = 12 left = stock - per_day * days # 1417 print(left) This prints 1417, as expected. 1417 envelopes are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A storeroom has 1753 envelopes. The office uses 28 a day. How many are left after 12 days?" }, { "role": "assistant", "content": " stock = 1753\n per_day = 28\n days = 12\n left = stock - per_day * days # 1417\n print(left)\nThis prints 1417, as expe...
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "1417", "printed": "1417", "notation": null}
nlprog_det-setting-0047330
<|start|><|system|> You have access to these functions: {"name": "code_runner", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> Wha...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"code_runner\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source cod...
nlprog_det
setting
original
null
deterministic
[]
[]
201
{"gold": "44.0", "printed": "44.0", "notation": null}
nlprog_det-setting-0047331
<|start|><|user|> A pack of 24 sticky pads sells for $456. What does each cost?<|eot|> <|assistant|> ```python total = 456 count = 24 per_item = total // count # 19 print(per_item) ``` (Console output: 19) The unit price is $19.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A pack of 24 sticky pads sells for $456. What does each cost?" }, { "role": "assistant", "content": "```python\ntotal = 456\ncount = 24\nper_item = total // count # 19\nprint(per_item)\n```\n(Console output: 19)\n\nThe unit price is $19." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0047332
<|start|><|user|> A 390-mile drive at a steady 65 mph takes how many minutes?<|eot|> <|assistant|> The trip takes 360 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 390-mile drive at a steady 65 mph takes how many minutes?" }, { "role": "assistant", "content": "The trip takes 360 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "360", "printed": "360", "notation": null}
nlprog_det-setting-0047333
From a $2,500 retainer, 6 hours at $250/hour have been drawn. What remains? The program: ```python retainer = 2500 hours = 6 rate = 250 left = retainer - hours * rate # 1000 print(left) ``` Out: 1000 $1,000 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0047334
What is the total rent on a 6-month lease at $850 a month? The rent over the term is $5,100.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "5100", "printed": "5100", "notation": null}
nlprog_det-setting-0047335
<|start|><|system|> Give the answer first.<|eot|> <|user|> A client paid a $2,500 retainer. The firm has billed 11 hours at $200 per hour. How much of the retainer is left?<|eot|> <|assistant|> The remaining balance is $300.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Give the answer first." }, { "role": "user", "content": "A client paid a $2,500 retainer. The firm has billed 11 hours at $200 per hour. How much of the retainer is left?" }, { "role": "assistant", "content": "The remaining balance is $300." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
58
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0047336
<|start|><|system|> You are a teaching assistant.<|eot|> <|user|> What commission does Yoko make on $12,822 in sales at 10%?<|eot|> <|assistant|> ```python sales = 12822 rate = 10 / 100 # 0.1 commission = sales * rate # 1282.2 print(f"{commission:.2f}") ``` (Printed result: 1282.20) The commission is $1,282.20.<|eot...
chat
[ { "role": "system", "content": "You are a teaching assistant." }, { "role": "user", "content": "What commission does Yoko make on $12,822 in sales at 10%?" }, { "role": "assistant", "content": "```python\nsales = 12822\nrate = 10 / 100 # 0.1\ncommission = sales * rate # 1282.2\npri...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "1282.20", "printed": "1282.20", "notation": null}
nlprog_det-setting-0047337
Fixed costs are $9,000. Each unit sells for $40 and costs $36 to make. How many units must be sold to break even? Let the code do the arithmetic: ```python import math fixed = 9000 price = 40 variable = 36 units = math.ceil(fixed / (price - variable)) # 2250 print(units) ``` (Run result: 2250) 2250 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "2250", "printed": "2250", "notation": null}
nlprog_det-setting-0047338
$5,000 is invested at 5% compounded yearly. What is it worth after 3 years? Python version: principal = 5000 rate = 5 / 100 # 0.05 years = 3 value = principal * (1 + rate) ** years # 5788.125000000001 print(f"{value:.2f}") The script prints: 5788.13 The balance is $5,788.13.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "5788.13", "printed": "5788.13", "notation": null}
nlprog_det-setting-0047339
A $150 dinner bill gets a 18% tip, and 6 people share the cost equally. What is each person's share? The share is $29.50 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "29.50", "printed": "29.50", "notation": null}
nlprog_det-setting-0047340
<|start|><|system|> Tool definitions: [{"name": "python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "convert_units", "description": "Convert a qua...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\"]}}, ...
nlprog_det
setting
original
null
deterministic
[]
[]
308
{"gold": "166", "printed": "166", "notation": null}
nlprog_det-setting-0047341
<|start|><|user|> How many weekdays (Monday to Friday) fall after October 7, 2027 up to and including November 7, 2027?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2027, 10, 7) end = date(2027, 11, 7) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(day...
chat
[ { "role": "user", "content": "How many weekdays (Monday to Friday) fall after October 7, 2027 up to and including November 7, 2027?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2027, 10, 7)\nend = date(2027, 11, 7)\ncount = 0\nfor k in rang...
nlprog_det
setting
original
null
deterministic
[]
[]
156
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0047342
After an initial $6,000, the remainder of a $48,000 grant is paid in 3 equal parts. What is each part? Coded up: ```python grant = 48000 up_front = 6000 installments = 3 each = (grant - up_front) / installments # 14000.0 print(f"{each:.2f}") ``` Result: 14000.00 Each installment is $14,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "14000.00", "printed": "14000.00", "notation": null}
nlprog_det-setting-0047343
<|start|><|system|> You are a careful assistant.<|eot|> <|user|> Beatriz earns a 8% commission on $45,126 of sales. What is the commission?<|eot|> <|assistant|> ```python sales = 45126 rate = 8 / 100 # 0.08 commission = sales * rate # 3610.08 print(f"{commission:.2f}") ``` Result — 3610.08 Beatriz earns $3,610.08.<|...
chat
[ { "role": "system", "content": "You are a careful assistant." }, { "role": "user", "content": "Beatriz earns a 8% commission on $45,126 of sales. What is the commission?" }, { "role": "assistant", "content": "```python\nsales = 45126\nrate = 8 / 100 # 0.08\ncommission = sales * rate...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "3610.08", "printed": "3610.08", "notation": null}
nlprog_det-setting-0047344
A $96 dinner bill gets a 15% tip, and 2 people share the cost equally. What is each person's share? Coded up: ```python bill = 96 tip_rate = 15 / 100 people = 2 each = bill * (1 + tip_rate) / people print(f"{each:.2f}") ``` The program outputs 55.20. Each person pays $55.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "55.20", "printed": "55.20", "notation": null}
nlprog_det-setting-0047346
How long, in days, is it from May 12, 2028 until December 13, 2028? Let's compute it with Python. ```python from datetime import date first = date(2028, 5, 12) # datetime.date(2028, 5, 12) second = date(2028, 12, 13) # datetime.date(2028, 12, 13) print((second - first).days) ``` (Program output: 215) It is 215 days...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "215", "printed": "215", "notation": null}
nlprog_det-setting-0047347
How many meters are in 1.3 kilometers? Let the code do the arithmetic: km = 1.3 meters = km * 1000 # 1300.0 print(round(meters)) Execution result — 1300 That is 1,300 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "1300", "printed": "1300", "notation": null}
nlprog_det-setting-0047348
Counting the first and last day, how many days are there from November 18, 2018 through November 22, 2018? Computation in Python: ```python from datetime import date first = date(2018, 11, 18) # datetime.date(2018, 11, 18) last = date(2018, 11, 22) # datetime.date(2018, 11, 22) days = (last - first).days + 1 # 5 pr...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0047349
A 882-page report must be reviewed in 18 days. How many pages a day is that, evenly? Program: ```python pages = 882 days = 18 per_day = pages // days # 49 print(per_day) ``` The program outputs: 49 49 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "49", "printed": "49", "notation": null}
nlprog_det-setting-0047350
How many units at $30 each (variable cost $26) cover $6,000 of fixed costs? We can compute it in Python. ```python import math fixed = 6000 price = 30 variable = 26 units = math.ceil(fixed / (price - variable)) # 1500 print(units) ``` This prints: 1500 Break-even is 1500 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0047351
A count moves from 400 to 440. By what percent did it change (use a minus sign for a drop)? Written as code: ```python old = 400 new = 440 change = (new - old) / old * 100 print(round(change)) ``` Run output — 10 The change is 10%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0047352
<|start|><|user|> Bruna and Marek share $1,161 in the ratio 1:2. How much does Bruna get?<|eot|> <|assistant|> ```python total = 1161 parts_a = 1 parts_b = 2 share_a = total * parts_a // (parts_a + parts_b) # 387 print(share_a) ``` When run, it prints 387, as expected. Bruna's share is $387.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Bruna and Marek share $1,161 in the ratio 1:2. How much does Bruna get?" }, { "role": "assistant", "content": "```python\ntotal = 1161\nparts_a = 1\nparts_b = 2\nshare_a = total * parts_a // (parts_a + parts_b) # 387\nprint(share_a)\n```\nWhen run, it prints 387, a...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "387", "printed": "387", "notation": null}
nlprog_det-setting-0047353
<|start|><|user|> How many meters are in 83 kilometers?<|eot|> <|assistant|> ```python km = 83 meters = km * 1000 # 83000 print(round(meters)) ``` Program output — 83000 83,000 m.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many meters are in 83 kilometers?" }, { "role": "assistant", "content": "```python\nkm = 83\nmeters = km * 1000 # 83000\nprint(round(meters))\n```\nProgram output — 83000\n\n83,000 m." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "83000", "printed": "83000", "notation": null}
nlprog_det-setting-0047354
<|start|><|system|> Tool definitions: {"name": "eval_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> The rules require 3/5...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"eval_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\...
nlprog_det
setting
original
null
deterministic
[]
[]
211
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0047355
On which weekday does October 22, 2016 fall? Python code: ```python from datetime import date hearing = date(2016, 10, 22) # datetime.date(2016, 10, 22) print(hearing.strftime("%A")) ``` Interpreter output — Saturday It is a Saturday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "Saturday", "printed": "Saturday", "notation": null}
nlprog_det-setting-0047356
At $17.48 an hour, what does 40 hours of work pay? The program: rate = 17.48 hours = 40 earnings = rate * hours # 699.2 print(f"{earnings:.2f}") Result: 699.20 That earns $699.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "699.20", "printed": "699.20", "notation": null}
nlprog_det-setting-0047357
How much sales tax is charged on a $310.80 purchase at 6%? Let the code do the arithmetic: ```python price = 310.8 tax_rate = 6 / 100 # 0.06 tax = price * tax_rate # 18.648 print(f"{tax:.2f}") ``` Run it and it prints 18.65. $18.65 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "18.65", "printed": "18.65", "notation": null}
nlprog_det-setting-0047358
Starting from $25,000, the team spends $1,764, $1,784, $1,067. What remains? Python, step by step: ```python budget = 25000 expenses = [1764, 1784, 1067] left = budget - sum(expenses) # 20385 print(left) ``` (Printed result: 20385) $20,385 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "20385", "printed": "20385", "notation": null}
nlprog_det-setting-0047360
Shipping costs $8 plus $1.20 per pound. What does a 24-pound parcel cost to ship? In Python: ```python base = 8 per_pound = 1.2 weight = 24 cost = base + per_pound * weight # 36.8 print(f"{cost:.2f}") ``` This prints 36.80, as expected. The charge is $36.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "36.80", "printed": "36.80", "notation": null}
nlprog_det-setting-0047361
<|start|><|user|> A bicycle helmet costs $45. It is 25% off. What is the sale price?<|eot|> <|assistant|> price = 45 discount = 25 / 100 # 0.25 sale_price = price * (1 - discount) # 33.75 print(f"{sale_price:.2f}") Execution prints 33.75, as expected. The sale price is $33.75.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A bicycle helmet costs $45. It is 25% off. What is the sale price?" }, { "role": "assistant", "content": " price = 45\n discount = 25 / 100 # 0.25\n sale_price = price * (1 - discount) # 33.75\n print(f\"{sale_price:.2f}\")\nExecution prints 33.75, as ...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "33.75", "printed": "33.75", "notation": null}
nlprog_det-setting-0047362
<|start|><|system|> Keep answers short and correct.<|eot|> <|user|> A appointment starts at 4:20 PM and lasts 90 minutes. When does it end?<|eot|> <|assistant|> ```python start = 16 * 60 + 20 end = start + 90 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` R...
chat
[ { "role": "system", "content": "Keep answers short and correct." }, { "role": "user", "content": "A appointment starts at 4:20 PM and lasts 90 minutes. When does it end?" }, { "role": "assistant", "content": "```python\nstart = 16 * 60 + 20\nend = start + 90\nhour, minute = divmod(en...
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "5:50 PM", "printed": "5:50 PM", "notation": null}
nlprog_det-setting-0047363
<|start|><|system|> Show working only when it helps.<|eot|> <|user|> After an initial $3,000, the remainder of a $60,000 grant is paid in 4 equal parts. What is each part?<|eot|> <|assistant|> $14,250.00 per installment.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Show working only when it helps." }, { "role": "user", "content": "After an initial $3,000, the remainder of a $60,000 grant is paid in 4 equal parts. What is each part?" }, { "role": "assistant", "content": "$14,250.00 per installment." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
59
{"gold": "14250.00", "printed": "14250.00", "notation": null}
nlprog_det-setting-0047364
<|start|><|user|> What simple interest does $1,000 earn at 8% a year over 4 years?<|eot|> <|assistant|> ```python principal = 1000 rate = 8 / 100 # 0.08 years = 4 interest = principal * rate * years # 320.0 print(f"{interest:.2f}") ``` Executing it gives 320.00. It earns $320.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What simple interest does $1,000 earn at 8% a year over 4 years?" }, { "role": "assistant", "content": "```python\nprincipal = 1000\nrate = 8 / 100 # 0.08\nyears = 4\ninterest = principal * rate * years # 320.0\nprint(f\"{interest:.2f}\")\n```\nExecuting it gives ...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "320.00", "printed": "320.00", "notation": null}
nlprog_det-setting-0047365
A shift runs from 7:47 AM to 10:23 AM. How long is it in minutes? Code: ```python start = 7 * 60 + 47 # 467 end = 10 * 60 + 23 # 623 print(end - start) ``` (Printed result: 156) It is 156 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "156", "printed": "156", "notation": null}
nlprog_det-setting-0047367
<|start|><|user|> An unpaid balance of $2,500 accrues 1% simple interest per month. How much interest accrues in 4 months?<|eot|> <|assistant|> ```python balance = 2500 monthly_rate = 1 / 100 # 0.01 months = 4 interest = balance * monthly_rate * months # 100.0 print(f"{interest:.2f}") ``` Printed: 100.00 The interes...
chat
[ { "role": "user", "content": "An unpaid balance of $2,500 accrues 1% simple interest per month. How much interest accrues in 4 months?" }, { "role": "assistant", "content": "```python\nbalance = 2500\nmonthly_rate = 1 / 100 # 0.01\nmonths = 4\ninterest = balance * monthly_rate * months # 100.0...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "100.00", "printed": "100.00", "notation": null}
nlprog_det-setting-0047368
After a 40% fee is taken from a $30,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share? Python: ```python award = 30000 fee = award * 40 / 100 # 12000.0 remaining = award - fee # 18000.0 per_client = remaining / 4 # 4500.0 print(f"{per_client:.2f}") ``` Python prints 4500.00, as ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "4500.00", "printed": "4500.00", "notation": null}
nlprog_det-setting-0047369
<|start|><|user|> At 50 miles per hour, how many minutes does a 150-mile trip take?<|eot|> <|assistant|> ```python distance = 150 speed = 50 minutes = distance / speed * 60 # 180.0 print(round(minutes)) ``` This prints: 180 The trip takes 180 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 50 miles per hour, how many minutes does a 150-mile trip take?" }, { "role": "assistant", "content": "```python\ndistance = 150\nspeed = 50\nminutes = distance / speed * 60 # 180.0\nprint(round(minutes))\n```\nThis prints: 180\n\nThe trip takes 180 minutes." }...
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "180", "printed": "180", "notation": null}
nlprog_det-setting-0047370
<|start|><|user|> With $20,000 in costs and $22,000 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|> <|assistant|> ```python revenue = 22000 costs = 20000 profit = revenue - costs # 2000 margin = profit / revenue * 100 # 9.090909090909092 print(round(margin, 1)) ``` The run gives 9.1. Prof...
chat
[ { "role": "user", "content": "With $20,000 in costs and $22,000 in revenue, what percent of revenue is profit? Round to one decimal." }, { "role": "assistant", "content": "```python\nrevenue = 22000\ncosts = 20000\nprofit = revenue - costs # 2000\nmargin = profit / revenue * 100 # 9.0909090909...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "9.1", "printed": "9.1", "notation": null}
nlprog_det-setting-0047371
A car travels 430 miles in 2 hours. What is its average speed in miles per hour? A few lines of Python do it: ```python distance = 430 hours = 2 speed = distance / hours # 215.0 print(round(speed)) ``` Execution prints: 215 It averages 215 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "215", "printed": "215", "notation": null}
nlprog_det-setting-0047372
A library charges $0.10 per book per day late. What is the fine for 4 books that are 6 days late? Script: ```python per_day = 0.1 days_late = 6 books = 4 fine = per_day * days_late * books # 2.4000000000000004 print(f"{fine:.2f}") ``` Run result = 2.40 The fine is $2.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "2.40", "printed": "2.40", "notation": null}
nlprog_det-setting-0047373
A shift runs from 8:37 AM to 2:18 PM. How long is it in minutes? Python code: ```python start = 8 * 60 + 37 # 517 end = 14 * 60 + 18 # 858 print(end - start) ``` The script prints 341. 341 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "341", "printed": "341", "notation": null}
nlprog_det-setting-0047374
<|start|><|user|> Convert 5,060 EUR to USD at 1 EUR = 1.31 USD.<|eot|> <|assistant|> ```python amount = 5060 rate = 1.31 converted = amount * rate # 6628.6 print(f"{converted:.2f}") ``` # out: 6628.60 It converts to 6,628.60 USD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 5,060 EUR to USD at 1 EUR = 1.31 USD." }, { "role": "assistant", "content": "```python\namount = 5060\nrate = 1.31\nconverted = amount * rate # 6628.6\nprint(f\"{converted:.2f}\")\n```\n# out: 6628.60\n\nIt converts to 6,628.60 USD." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "6628.60", "printed": "6628.60", "notation": null}
nlprog_det-setting-0047375
31 of 40 members attended. What percent attended? Set it up in Python: ```python present = 31 total = 40 percent = present / total * 100 # 77.5 print(round(percent, 1)) ``` # result: 77.5 Attendance was 77.5%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "77.5", "printed": "77.5", "notation": null}
nlprog_det-setting-0047376
A $1,200 loan carries 6% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment? Let the code do the arithmetic: ```python principal = 1200 annual_rate = 6 / 100 # 0.06 months = 36 interest = principal * annual_rate * months / 12 # 216.0 payment = (pr...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
154
{"gold": "39.33", "printed": "39.33", "notation": null}
nlprog_det-setting-0047377
<|start|><|user|> How many days are there from March 13, 2028 to September 7, 2028?<|eot|> <|assistant|> ```python from datetime import date first = date(2028, 3, 13) # datetime.date(2028, 3, 13) second = date(2028, 9, 7) # datetime.date(2028, 9, 7) print((second - first).days) ``` The code prints 178. There are 178...
chat
[ { "role": "user", "content": "How many days are there from March 13, 2028 to September 7, 2028?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2028, 3, 13) # datetime.date(2028, 3, 13)\nsecond = date(2028, 9, 7) # datetime.date(2028, 9, 7)\nprint((sec...
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "178", "printed": "178", "notation": null}
nlprog_det-setting-0047378
<|start|><|system|> You have access to these functions: [{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "calc", "description": "A Python i...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start...
nlprog_det
setting
original
null
deterministic
[]
[]
319
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0047379
Starting from $8,000, the team spends $2,210, $849, $549. What remains? Python: ```python budget = 8000 expenses = [2210, 849, 549] left = budget - sum(expenses) # 4392 print(left) ``` Run result: 4392 The remaining budget is $4,392.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "4392", "printed": "4392", "notation": null}
nlprog_det-setting-0047380
<|start|><|user|> What day of the week is April 7, 2011?<|eot|> <|assistant|> ```python from datetime import date hearing = date(2011, 4, 7) # datetime.date(2011, 4, 7) print(hearing.strftime("%A")) ``` Executing it gives: Thursday It is a Thursday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What day of the week is April 7, 2011?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(2011, 4, 7) # datetime.date(2011, 4, 7)\nprint(hearing.strftime(\"%A\"))\n```\nExecuting it gives: Thursday\n\nIt is a Thursday." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "Thursday", "printed": "Thursday", "notation": null}
nlprog_det-setting-0047381
A measure needs at least 75% of 103 votes. How many votes is that, rounded up? Code: ```python import math voters = 103 needed = math.ceil(voters * 75 / 100) # 78 print(needed) ``` What it prints: 78 At least 78 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "78", "printed": "78", "notation": null}
nlprog_det-setting-0047382
<|start|><|user|> Each of Fiona's walks burns 250 calories. How many calories over 5 walks?<|eot|> <|assistant|> ```python per_session = 250 sessions = 5 total = per_session * sessions # 1250 print(total) ``` (Console output: 1250) 1250 calories in total.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each of Fiona's walks burns 250 calories. How many calories over 5 walks?" }, { "role": "assistant", "content": "```python\nper_session = 250\nsessions = 5\ntotal = per_session * sessions # 1250\nprint(total)\n```\n(Console output: 1250)\n\n1250 calories in total."...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "1250", "printed": "1250", "notation": null}
nlprog_det-setting-0047383
<|start|><|user|> An office budget of $20,000 has expenses of $2,110, $3,275, $3,372. How much of the budget is left?<|eot|> <|assistant|> ```python budget = 20000 expenses = [2110, 3275, 3372] left = budget - sum(expenses) # 11243 print(left) ``` The script prints 11243, as expected. The remaining budget is $11,243....
chat
[ { "role": "user", "content": "An office budget of $20,000 has expenses of $2,110, $3,275, $3,372. How much of the budget is left?" }, { "role": "assistant", "content": "```python\nbudget = 20000\nexpenses = [2110, 3275, 3372]\nleft = budget - sum(expenses) # 11243\nprint(left)\n```\nThe script ...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "11243", "printed": "11243", "notation": null}
nlprog_det-setting-0047384
Noor buys 4 boxes of 6 envelopes each and gives away 15 envelopes. How many envelopes are left? Programmatically: ```python boxes = 4 per_box = 6 given_away = 15 left = boxes * per_box - given_away # 9 print(left) ``` Result = 9 That leaves 9 envelopes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0047386
What simple interest does $20,000 earn at 5% a year over 3 years? Computing it: principal = 20000 rate = 5 / 100 # 0.05 years = 3 interest = principal * rate * years # 3000.0 print(f"{interest:.2f}") stdout — 3000.00 The interest is $3,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "3000.00", "printed": "3000.00", "notation": null}
nlprog_det-setting-0047387
What is 40 degrees Celsius in Fahrenheit? Python does the arithmetic: ```python celsius = 40 fahrenheit = celsius * 9 / 5 + 32 print(round(fahrenheit)) ``` Printed: 104 That is 104 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "104", "printed": "104", "notation": null}
nlprog_det-setting-0047389
Convert 20.5 km to meters. Program: ```python km = 20.5 meters = km * 1000 # 20500.0 print(round(meters)) ``` # output: 20500 20,500 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "20500", "printed": "20500", "notation": null}
nlprog_det-setting-0047390
<|start|><|user|> A count moves from 1,000 to 500. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> It changed by -50%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A count moves from 1,000 to 500. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": "It changed by -50%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "-50", "printed": "-50", "notation": null}
nlprog_det-setting-0047391
<|start|><|user|> Find the mean of these test scores: 58, 93 and 89.<|eot|> <|assistant|> ```python scores = [58, 93, 89] average = sum(scores) // len(scores) # 80 print(average) ``` Output = 80 The average score is 80.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Find the mean of these test scores: 58, 93 and 89." }, { "role": "assistant", "content": "```python\nscores = [58, 93, 89]\naverage = sum(scores) // len(scores) # 80\nprint(average)\n```\nOutput = 80\n\nThe average score is 80." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "80", "printed": "80", "notation": null}
nlprog_det-setting-0047392
A pack of 4 paper reams sells for $112. What does each cost? One way, in code: ```python total = 112 count = 4 per_item = total // count # 28 print(per_item) ``` # printed result: 28 Each one costs $28.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0047393
A water bill is $15 plus $3.50 per thousand gallons beyond the first 0 thousand. What is the bill for 14 thousand gallons? Code: ```python base = 15 rate = 3.5 used = 14 free = 0 bill = base + rate * max(0, used - free) # 64.0 print(f"{bill:.2f}") ``` The script prints 64.00. $64.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "64.00", "printed": "64.00", "notation": null}
nlprog_det-setting-0047394
<|start|><|system|> Available functions (JSON Schema): [{"name": "interpreter", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> Split $900 between Hugo...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"interpreter\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": ...
nlprog_det
setting
original
null
deterministic
[]
[]
241
{"gold": "225", "printed": "225", "notation": null}
nlprog_det-setting-0047395
<|start|><|system|> You are a patient tutor.<|eot|> <|user|> A water bill is $12 plus $5.10 per thousand gallons beyond the first 3 thousand. What is the bill for 22 thousand gallons?<|eot|> <|assistant|> The bill is $108.90.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a patient tutor." }, { "role": "user", "content": "A water bill is $12 plus $5.10 per thousand gallons beyond the first 3 thousand. What is the bill for 22 thousand gallons?" }, { "role": "assistant", "content": "The bill is $108.90." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
60
{"gold": "108.90", "printed": "108.90", "notation": null}
nlprog_det-setting-0047396
A 24-month warranty starts on September 15, 2026. On what date does it end? In Python: ```python from datetime import date start = date(2026, 9, 15) months = 24 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Python prints ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "2028-09-15", "printed": "2028-09-15", "notation": null}
nlprog_det-setting-0047397
<|start|><|system|> You help paralegals with routine tasks.<|eot|> <|user|> 93 volunteers are split into 3 equal teams. How many are on each team, and how many are left over?<|eot|> <|assistant|> ```python total = 93 groups = 3 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over...
chat
[ { "role": "system", "content": "You help paralegals with routine tasks." }, { "role": "user", "content": "93 volunteers are split into 3 equal teams. How many are on each team, and how many are left over?" }, { "role": "assistant", "content": "```python\ntotal = 93\ngroups = 3\nper_g...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "31 each, 0 left over", "printed": "31 each, 0 left over", "notation": null}
nlprog_det-setting-0047398
4 friends split a $180 bill plus a 15% tip evenly. How much does each pay? A Python solution: ```python bill = 180 tip_rate = 15 / 100 # 0.15 people = 4 each = bill * (1 + tip_rate) / people # 51.74999999999999 print(f"{each:.2f}") ``` Python prints 51.75, as expected. The share is $51.75 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "51.75", "printed": "51.75", "notation": null}
nlprog_det-setting-0047399
<|start|><|system|> Tool definitions: [{"name": "calculator", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "lookup_statute", "description":...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"calculator\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"...
nlprog_det
setting
original
null
deterministic
[]
[]
397
{"gold": "4500", "printed": "4500", "notation": null}
nlprog_det-setting-0047400
<|start|><|system|> Tools (call with JSON): [{"name": "eval_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> Which is cheaper per...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"eval_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\...
nlprog_det
setting
original
null
deterministic
[]
[]
243
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0047401
At an exchange rate of 1.08 CAD per USD, how many CAD is 2,751 USD? ```python amount = 2751 rate = 1.08 converted = amount * rate print(f"{converted:.2f}") ``` stdout = 2971.08 That is 2,971.08 CAD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "2971.08", "printed": "2971.08", "notation": null}
nlprog_det-setting-0047402
<|start|><|system|> Available functions (JSON Schema): [{"name": "math_engine", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> Shipping costs ...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"math_engine\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requ...
nlprog_det
setting
original
null
deterministic
[]
[]
235
{"gold": "14.50", "printed": "14.50", "notation": null}
nlprog_det-setting-0047403
Shipping costs $12 plus $2.00 per pound. What does a 34-pound parcel cost to ship? Python version: ```python base = 12 per_pound = 2.0 weight = 34 cost = base + per_pound * weight print(f"{cost:.2f}") ``` The interpreter prints 80.00. The charge is $80.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "80.00", "printed": "80.00", "notation": null}
nlprog_det-setting-0047404
Convert 19.9 km to meters. We write it as a program: ```python km = 19.9 meters = km * 1000 # 19900.0 print(round(meters)) ``` The script prints: 19900 19,900 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "19900", "printed": "19900", "notation": null}
nlprog_det-setting-0047405
<|start|><|system|> You are a patient tutor.<|eot|> <|user|> On which weekday does November 24, 2018 fall?<|eot|> <|assistant|> ```python from datetime import date hearing = date(2018, 11, 24) # datetime.date(2018, 11, 24) print(hearing.strftime("%A")) ``` # result: Saturday It is a Saturday.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a patient tutor." }, { "role": "user", "content": "On which weekday does November 24, 2018 fall?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(2018, 11, 24) # datetime.date(2018, 11, 24)\nprint(hea...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "Saturday", "printed": "Saturday", "notation": null}
nlprog_det-setting-0047406
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "python_exec", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "co...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"python_exec\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python sour...
nlprog_det
setting
original
null
deterministic
[]
[]
431
{"gold": "1350.00", "printed": "1350.00", "notation": null}
nlprog_det-setting-0047407
<|start|><|user|> A trial runs from June 13, 2019 to June 29, 2019, counting both days. How many calendar days is that?<|eot|> <|assistant|> ```python from datetime import date first = date(2019, 6, 13) # datetime.date(2019, 6, 13) last = date(2019, 6, 29) # datetime.date(2019, 6, 29) days = (last - first).days + 1 ...
chat
[ { "role": "user", "content": "A trial runs from June 13, 2019 to June 29, 2019, counting both days. How many calendar days is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2019, 6, 13) # datetime.date(2019, 6, 13)\nlast = date(2019, 6, 29) # da...
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0047409
A settlement of $4,500 is split equally among 3 parties. How much does each party receive? The Python version: ```python settlement = 4500 parties = 3 share = settlement // parties print(share) ``` Run result: 1500 Each share is $1,500.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0047410
<|start|><|user|> Pack A has 6 items for $4.41. Pack B has 18 items for $15.32. Which has the lower price per item?<|eot|> <|assistant|> Pack A is cheaper per item.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Pack A has 6 items for $4.41. Pack B has 18 items for $15.32. Which has the lower price per item?" }, { "role": "assistant", "content": "Pack A is cheaper per item." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
52
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0047411
Pack A has 12 items for $10.79. Pack B has 20 items for $6.21. Which has the lower price per item? ```python pack_a = 10.79 / 12 # 0.8991666666666666 pack_b = 6.21 / 20 # 0.3105 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` Out: B B has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0047412
<|start|><|user|> Prorate $1,800 of monthly rent for 20 days of a 31-day month.<|eot|> <|assistant|> ```python rent = 1800 days_in_month = 31 days_occupied = 20 prorated = rent * days_occupied / days_in_month # 1161.2903225806451 print(f"{prorated:.2f}") ``` stdout: 1161.29 The prorated rent is $1,161.29.<|eot|> <|en...
chat
[ { "role": "user", "content": "Prorate $1,800 of monthly rent for 20 days of a 31-day month." }, { "role": "assistant", "content": "```python\nrent = 1800\ndays_in_month = 31\ndays_occupied = 20\nprorated = rent * days_occupied / days_in_month # 1161.2903225806451\nprint(f\"{prorated:.2f}\")\n``...
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "1161.29", "printed": "1161.29", "notation": null}
nlprog_det-setting-0047413
A 10-day notice period begins on March 23, 2020. On what date does it end? Written as code: ```python from datetime import date, timedelta start = date(2020, 3, 23) # datetime.date(2020, 3, 23) end = start + timedelta(days=10) # datetime.date(2020, 4, 2) print(end.isoformat()) ``` It prints 2020-04-02. That date is...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "2020-04-02", "printed": "2020-04-02", "notation": null}
nlprog_det-setting-0047414
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> A customer buys 2 water bottles at $6 each, 1 markers at $30 each, 2 batteries at $2 each and pays with $50. How much change is due?<|eot|> <|assistant|> $4 comes back.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "A customer buys 2 water bottles at $6 each, 1 markers at $30 each, 2 batteries at $2 each and pays with $50. How much change is due?" }, { "role": "assistant", "content": "$4 co...
nlprog_det
setting
original
null
deterministic
[]
[]
70
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0047415
Convert 884 GBP to USD at 1 GBP = 1.35 USD. amount = 884 rate = 1.35 converted = amount * rate # 1193.4 print(f"{converted:.2f}") Run result: 1193.40 That is 1,193.40 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "1193.40", "printed": "1193.40", "notation": null}
nlprog_det-setting-0047416
<|start|><|user|> Someone born December 25, 1954 turns how old by August 8, 2027? Give the age in whole years.<|eot|> <|assistant|> ```python from datetime import date born = date(1954, 12, 25) # datetime.date(1954, 12, 25) on = date(2027, 8, 8) # datetime.date(2027, 8, 8) age = on.year - born.year - ((on.month, on.d...
chat
[ { "role": "user", "content": "Someone born December 25, 1954 turns how old by August 8, 2027? Give the age in whole years." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1954, 12, 25) # datetime.date(1954, 12, 25)\non = date(2027, 8, 8) # datetime.date...
nlprog_det
setting
original
null
deterministic
[]
[]
159
{"gold": "72", "printed": "72", "notation": null}
nlprog_det-setting-0047417
<|start|><|user|> What does $2,000 grow to in 3 years at 5% annual compounding?<|eot|> <|assistant|> ```python principal = 2000 rate = 5 / 100 years = 3 value = principal * (1 + rate) ** years print(f"{value:.2f}") ``` (Printed result: 2315.25) The balance is $2,315.25.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What does $2,000 grow to in 3 years at 5% annual compounding?" }, { "role": "assistant", "content": "```python\nprincipal = 2000\nrate = 5 / 100\nyears = 3\nvalue = principal * (1 + rate) ** years\nprint(f\"{value:.2f}\")\n```\n(Printed result: 2315.25)\n\nThe balan...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "2315.25", "printed": "2315.25", "notation": null}
nlprog_det-setting-0047418
A $120 dinner bill gets a 20% tip, and 5 people share the cost equally. What is each person's share? We can compute it in Python. bill = 120 tip_rate = 20 / 100 # 0.2 people = 5 each = bill * (1 + tip_rate) / people # 28.8 print(f"{each:.2f}") The script prints: 28.80 Each person pays $28.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "28.80", "printed": "28.80", "notation": null}
nlprog_det-setting-0047420
11 boxes hold 10 file boxes each. After 6 are handed out, how many are left? 104 file boxes are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "104", "printed": "104", "notation": null}
nlprog_det-setting-0047421
The statute was enacted in 2014. How many years had passed by 2019? Set it up in Python: ```python start_year = 2014 end_year = 2019 print(end_year - start_year) ``` Run output: 5 That is 5 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0047422
A claim accrued on January 26, 2017. The limitations period is 6 years. On what date does it expire? It runs out on January 26, 2023.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "2023-01-26", "printed": "2023-01-26", "notation": null}
nlprog_det-setting-0047423
Convert 37 km to meters. That is 37,000 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
22
{"gold": "37000", "printed": "37000", "notation": null}
nlprog_det-setting-0047424
<|start|><|user|> Goods bought on March 16, 2028 carry a 18-month warranty. When does it expire?<|eot|> <|assistant|> ```python from datetime import date start = date(2028, 3, 16) months = 18 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.i...
chat
[ { "role": "user", "content": "Goods bought on March 16, 2028 carry a 18-month warranty. When does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2028, 3, 16)\nmonths = 18\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(...
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "2029-09-16", "printed": "2029-09-16", "notation": null}
nlprog_det-setting-0047425
How many weekdays (Monday to Friday) fall after September 27, 2023 up to and including October 3, 2023? There are 4 business days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0047426
34 labels cost $6 apiece. With 6% tax added, what is the total? Computing it: ```python quantity = 34 unit_price = 6 subtotal = quantity * unit_price # 204 total = subtotal * (1 + 6 / 100) # 216.24 print(f"{total:.2f}") ``` The script prints 216.24, as expected. The invoice total is $216.24.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "216.24", "printed": "216.24", "notation": null}
nlprog_det-setting-0047428
What average speed covers 268 miles in 2 hours? Python code: ```python distance = 268 hours = 2 speed = distance / hours # 134.0 print(round(speed)) ``` Interpreter output: 134 The average speed is 134 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "134", "printed": "134", "notation": null}
nlprog_det-setting-0047429
<|start|><|user|> Convert 3,736 USD to CAD at 1 USD = 1.12 CAD.<|eot|> <|assistant|> ```python amount = 3736 rate = 1.12 converted = amount * rate # 4184.320000000001 print(f"{converted:.2f}") ``` It outputs: 4184.32 That is 4,184.32 CAD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 3,736 USD to CAD at 1 USD = 1.12 CAD." }, { "role": "assistant", "content": "```python\namount = 3736\nrate = 1.12\nconverted = amount * rate # 4184.320000000001\nprint(f\"{converted:.2f}\")\n```\nIt outputs: 4184.32\n\nThat is 4,184.32 CAD." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "4184.32", "printed": "4184.32", "notation": null}
nlprog_det-setting-0047430
Convert 43.4 km to meters. Computation in Python: ```python km = 43.4 meters = km * 1000 # 43400.0 print(round(meters)) ``` Out: 43400 43,400 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "43400", "printed": "43400", "notation": null}
nlprog_det-setting-0047431
<|start|><|system|> You may call the tools below. {"name": "run_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> A 627-page...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"run_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, ...
nlprog_det
setting
original
null
deterministic
[]
[]
209
{"gold": "57", "printed": "57", "notation": null}
nlprog_det-setting-0047432
What is a 25% tip on a $107.40 bill? One way, in code: ```python bill = 107.4 tip_rate = 25 / 100 # 0.25 tip = bill * tip_rate # 26.85 print(f"{tip:.2f}") ``` # execution result: 26.85 The tip is $26.85.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "26.85", "printed": "26.85", "notation": null}
nlprog_det-setting-0047433
What percentage of $4,000 is $800? ```python budget = 4000 spent = 800 percent = spent / budget * 100 # 20.0 print(round(percent, 1)) ``` (stdout: 20.0) 20.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "20.0", "printed": "20.0", "notation": null}
nlprog_det-setting-0047434
An attorney bills 6.5 hours at $350 per hour. What is the bill? Python code: ```python hours = 6.5 rate = 350 bill = hours * rate # 2275.0 print(f"{bill:.2f}") ``` (Console output: 2275.00) The bill is $2,275.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "2275.00", "printed": "2275.00", "notation": null}