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-0070138
A training session lasted 1 hours and 39 minutes. How many minutes is that? Here's the code. ```python hours = 1 minutes = 39 total_minutes = hours * 60 + minutes # 99 print(total_minutes) ``` Python prints 99, as expected. The training session lasted 99 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "99", "printed": "99", "notation": null}
nlprog_det-setting-0070139
<|start|><|user|> What is 10 degrees Celsius in Fahrenheit?<|eot|> <|assistant|> ```python celsius = 10 fahrenheit = celsius * 9 / 5 + 32 # 50.0 print(round(fahrenheit)) ``` It prints 50, as expected. That is 50 °F.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is 10 degrees Celsius in Fahrenheit?" }, { "role": "assistant", "content": "```python\ncelsius = 10\nfahrenheit = celsius * 9 / 5 + 32 # 50.0\nprint(round(fahrenheit))\n```\nIt prints 50, as expected.\n\nThat is 50 °F." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0070140
A pack of 12 envelopes sells for $648. What does each cost? One way, in code: ```python total = 648 count = 12 per_item = total // count # 54 print(per_item) ``` When run, it prints: 54 Each one costs $54.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "54", "printed": "54", "notation": null}
nlprog_det-setting-0070141
A measure needs at least 75% of 78 votes. How many votes is that, rounded up? Translated to Python: ```python import math voters = 78 needed = math.ceil(voters * 75 / 100) # 59 print(needed) ``` The script prints: 59 59 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "59", "printed": "59", "notation": null}
nlprog_det-setting-0070142
<|start|><|user|> Under a 33% contingency agreement, what fee is owed on a $25,000 award?<|eot|> <|assistant|> ```python recovery = 25000 rate = 33 / 100 # 0.33 fee = recovery * rate # 8250.0 print(f"{fee:.2f}") ``` The run gives 8250.00. The fee is $8,250.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Under a 33% contingency agreement, what fee is owed on a $25,000 award?" }, { "role": "assistant", "content": "```python\nrecovery = 25000\nrate = 33 / 100 # 0.33\nfee = recovery * rate # 8250.0\nprint(f\"{fee:.2f}\")\n```\nThe run gives 8250.00.\n\nThe fee is $8,...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "8250.00", "printed": "8250.00", "notation": null}
nlprog_det-setting-0070143
<|start|><|user|> At $20.44 an hour, what does 24 hours of work pay?<|eot|> <|assistant|> ```python rate = 20.44 hours = 24 earnings = rate * hours # 490.56000000000006 print(f"{earnings:.2f}") ``` (Printed: 490.56) The pay is $490.56.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $20.44 an hour, what does 24 hours of work pay?" }, { "role": "assistant", "content": "```python\nrate = 20.44\nhours = 24\nearnings = rate * hours # 490.56000000000006\nprint(f\"{earnings:.2f}\")\n```\n(Printed: 490.56)\n\nThe pay is $490.56." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "490.56", "printed": "490.56", "notation": null}
nlprog_det-setting-0070144
Printing costs 15 cents a page. What does it cost to print 12 copies of a 46-page handout? The job costs $82.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "82.80", "printed": "82.80", "notation": null}
nlprog_det-setting-0070145
15 clipboards cost $5 apiece. With 5% tax added, what is the total? As a program: ```python quantity = 15 unit_price = 5 subtotal = quantity * unit_price # 75 total = subtotal * (1 + 5 / 100) # 78.75 print(f"{total:.2f}") ``` Running this gives: 78.75 The invoice total is $78.75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "78.75", "printed": "78.75", "notation": null}
nlprog_det-setting-0070146
Yara was born on October 16, 2005. How old is Yara on December 14, 2027? A few lines of Python do it: ```python from datetime import date born = date(2005, 10, 16) # datetime.date(2005, 10, 16) on = date(2027, 12, 14) # datetime.date(2027, 12, 14) age = on.year - born.year - ((on.month, on.day) < (born.month, born.d...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
156
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0070147
<|start|><|user|> What day of the week is July 8, 2025?<|eot|> <|assistant|> ```python from datetime import date hearing = date(2025, 7, 8) # datetime.date(2025, 7, 8) print(hearing.strftime("%A")) ``` Out = Tuesday July 8, 2025 is a Tuesday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What day of the week is July 8, 2025?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(2025, 7, 8) # datetime.date(2025, 7, 8)\nprint(hearing.strftime(\"%A\"))\n```\nOut = Tuesday\n\nJuly 8, 2025 is a Tuesday." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "Tuesday", "printed": "Tuesday", "notation": null}
nlprog_det-setting-0070148
Express 140 hours in days and hours. Code: ```python hours = 140 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Python prints 5 days and 20 hours. 140 hours is 5 days and 20 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "5 days and 20 hours", "printed": "5 days and 20 hours", "notation": null}
nlprog_det-setting-0070149
3 books come back 13 days late, at $0.25 a day each. What is the fine? ```python per_day = 0.25 days_late = 13 books = 3 fine = per_day * days_late * books # 9.75 print(f"{fine:.2f}") ``` Running this gives: 9.75 The fine is $9.75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "9.75", "printed": "9.75", "notation": null}
nlprog_det-setting-0070150
Revenue is $22,000 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)? Written as code: ```python revenue = 22000 costs = 20000 profit = revenue - costs # 2000 margin = profit / revenue * 100 # 9.090909090909092 print(round(margin, 1)) ``` Execution prints 9.1, as expected. The m...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "9.1", "printed": "9.1", "notation": null}
nlprog_det-setting-0070151
Starting with 666 desk lamps and using 33 per day, how many remain after 17 days? Python makes this quick: ```python stock = 666 per_day = 33 days = 17 left = stock - per_day * days print(left) ``` Program output: 105 105 desk lamps are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "105", "printed": "105", "notation": null}
nlprog_det-setting-0070152
5 swims at 150 calories each burn how many calories in total? Written as code: ```python per_session = 150 sessions = 5 total = per_session * sessions # 750 print(total) ``` The program prints 750, as expected. That burns 750 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0070153
<|start|><|user|> A storeroom has 1787 toner kits. The office uses 22 a day. How many are left after 9 days?<|eot|> <|assistant|> ```python stock = 1787 per_day = 22 days = 9 left = stock - per_day * days # 1589 print(left) ``` Printed: 1589 1589 remain.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A storeroom has 1787 toner kits. The office uses 22 a day. How many are left after 9 days?" }, { "role": "assistant", "content": "```python\nstock = 1787\nper_day = 22\ndays = 9\nleft = stock - per_day * days # 1589\nprint(left)\n```\nPrinted:\n1589\n\n1589 remain....
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "1589", "printed": "1589", "notation": null}
nlprog_det-setting-0070154
<|start|><|user|> An attorney bills 2 hours at $150 per hour. What is the bill?<|eot|> <|assistant|> ```python hours = 2 rate = 150 bill = hours * rate # 300 print(f"{bill:.2f}") ``` On running, it outputs 300.00. The bill is $300.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An attorney bills 2 hours at $150 per hour. What is the bill?" }, { "role": "assistant", "content": "```python\nhours = 2\nrate = 150\nbill = hours * rate # 300\nprint(f\"{bill:.2f}\")\n```\nOn running, it outputs 300.00.\n\nThe bill is $300.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "300.00", "printed": "300.00", "notation": null}
nlprog_det-setting-0070155
<|start|><|user|> A trial runs from December 22, 2021 to January 15, 2022, counting both days. How many calendar days is that?<|eot|> <|assistant|> ```python from datetime import date first = date(2021, 12, 22) # datetime.date(2021, 12, 22) last = date(2022, 1, 15) # datetime.date(2022, 1, 15) days = (last - first).d...
chat
[ { "role": "user", "content": "A trial runs from December 22, 2021 to January 15, 2022, counting both days. How many calendar days is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2021, 12, 22) # datetime.date(2021, 12, 22)\nlast = date(2022, 1, ...
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0070156
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> A clerk's office charges $45 for each filing. Noor submits 7 filings. What is the total fee?<|eot|> <|assistant|> The filings cost $315 in all.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "role": "user", "content": "A clerk's office charges $45 for each filing. Noor submits 7 filings. What is the total fee?" }, { "role": "assistant", "content": "The filings cost $315 in all." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
55
{"gold": "315", "printed": "315", "notation": null}
nlprog_det-setting-0070157
Beatriz buys 12 boxes of 24 lanyards each and gives away 2 lanyards. How many lanyards are left? That leaves 286 lanyards.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "286", "printed": "286", "notation": null}
nlprog_det-setting-0070158
3 books come back 10 days late, at $0.10 a day each. What is the fine? Computation in Python: per_day = 0.1 days_late = 10 books = 3 fine = per_day * days_late * books # 3.0 print(f"{fine:.2f}") (Printed: 3.00) The fine is $3.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "3.00", "printed": "3.00", "notation": null}
nlprog_det-setting-0070159
A settlement of $4,500 is split equally among 3 parties. How much does each party receive? A few lines of Python do it: ```python settlement = 4500 parties = 3 share = settlement // parties # 1500 print(share) ``` The printout reads 1500. Each share is $1,500.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0070160
A $800 security deposit has deductions of $85. How much is refunded? ```python deposit = 800 deductions = [85] refund = deposit - sum(deductions) # 715 print(refund) ``` Running this gives 715. The refund is $715.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "715", "printed": "715", "notation": null}
nlprog_det-setting-0070161
<|start|><|user|> How many 2-foot square tiles cover a 14 ft by 12 ft floor (round up)?<|eot|> <|assistant|> It takes 42 tiles.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many 2-foot square tiles cover a 14 ft by 12 ft floor (round up)?" }, { "role": "assistant", "content": "It takes 42 tiles." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "42", "printed": "42", "notation": null}
nlprog_det-setting-0070162
<|start|><|user|> Divide 139 items among 8 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|> <|assistant|> ```python total = 139 groups = 8 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` When run, it prints 17 each, 3 left...
chat
[ { "role": "user", "content": "Divide 139 items among 8 groups as evenly as possible with equal groups. How many per group, and how many remain?" }, { "role": "assistant", "content": "```python\ntotal = 139\ngroups = 8\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {rem...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "17 each, 3 left over", "printed": "17 each, 3 left over", "notation": null}
nlprog_det-setting-0070163
873 files go into boxes of 12. How many boxes does that take? One way, in code: ```python import math files = 873 per_box = 12 boxes = math.ceil(files / per_box) # 73 print(boxes) ``` It prints: 73 73 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "73", "printed": "73", "notation": null}
nlprog_det-setting-0070164
<|start|><|user|> What is the total rent on a 6-month lease at $1,475 a month?<|eot|> <|assistant|> ```python monthly_rent = 1475 months = 6 total = monthly_rent * months # 8850 print(total) ``` Python prints 8850, as expected. In total, $8,850 is paid.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is the total rent on a 6-month lease at $1,475 a month?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 1475\nmonths = 6\ntotal = monthly_rent * months # 8850\nprint(total)\n```\nPython prints 8850, as expected.\n\nIn total, $8,850 is paid." ...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "8850", "printed": "8850", "notation": null}
nlprog_det-setting-0070165
Papers were served by mail on August 26, 2019. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date? The computation: ```python from datetime import date, timedelta served = date(2019, 8, 26) # datetime.date(2019, 8, 26) response_days = 21 mail_days = 3 due = served + timedelta...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
179
{"gold": "2019-09-19", "printed": "2019-09-19", "notation": null}
nlprog_det-setting-0070166
<|start|><|user|> If a 2-year limitations period starts on March 2, 2018, when does it end?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2018, 3, 2) # datetime.date(2018, 3, 2) years = 2 expires = accrued.replace(year=accrued.year + years) # datetime.date(2020, 3, 2) print(expires.isoformat...
chat
[ { "role": "user", "content": "If a 2-year limitations period starts on March 2, 2018, when does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2018, 3, 2) # datetime.date(2018, 3, 2)\nyears = 2\nexpires = accrued.replace(year=accrued.year + y...
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "2020-03-02", "printed": "2020-03-02", "notation": null}
nlprog_det-setting-0070167
Equal monthly payments repay $3,600 plus 8% simple yearly interest over 24 months. How large is a payment? A few lines of Python do it: ```python principal = 3600 annual_rate = 8 / 100 # 0.08 months = 24 interest = principal * annual_rate * months / 12 # 576.0 payment = (principal + interest) / months # 174.0 print...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "174.00", "printed": "174.00", "notation": null}
nlprog_det-setting-0070168
A customer buys 1 water bottles at $15 each, 2 labels at $12 each, 4 paper reams at $29 each and pays with $200. How much change is due? Python code: items = [(1, 15), (2, 12), (4, 29)] total = sum(q * p for q, p in items) # 155 paid = 200 change = paid - total # 45 print(change) The script print...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "45", "printed": "45", "notation": null}
nlprog_det-setting-0070169
A penalty of $50 a day accrues, capped at $5,000. What is owed after 10 days? We can compute it in Python. ```python per_day = 50 days = 10 cap = 5000 fine = min(per_day * days, cap) # 500 print(fine) ``` # program output: 500 The fine is $500.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "500", "printed": "500", "notation": null}
nlprog_det-setting-0070170
<|start|><|user|> How many units at $30 each (variable cost $20) cover $4,000 of fixed costs?<|eot|> <|assistant|> ```python import math fixed = 4000 price = 30 variable = 20 units = math.ceil(fixed / (price - variable)) print(units) ``` (Result: 400) Break-even is 400 units.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many units at $30 each (variable cost $20) cover $4,000 of fixed costs?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 4000\nprice = 30\nvariable = 20\nunits = math.ceil(fixed / (price - variable))\nprint(units)\n```\n(Result: 400)\n\nBre...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "400", "printed": "400", "notation": null}
nlprog_det-setting-0070171
Flooring at $5/sq ft for a 22 ft × 18 ft room costs how much? The flooring costs $1,980.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "1980", "printed": "1980", "notation": null}
nlprog_det-setting-0070172
<|start|><|user|> What percentage of $2,000 is $500?<|eot|> <|assistant|> ```python budget = 2000 spent = 500 percent = spent / budget * 100 print(round(percent, 1)) ``` (Out: 25.0) That is 25.0% of the budget.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What percentage of $2,000 is $500?" }, { "role": "assistant", "content": "```python\nbudget = 2000\nspent = 500\npercent = spent / budget * 100\nprint(round(percent, 1))\n```\n(Out: 25.0)\n\nThat is 25.0% of the budget." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "25.0", "printed": "25.0", "notation": null}
nlprog_det-setting-0070174
Printing costs 15 cents a page. What does it cost to print 168 copies of a 13-page handout? pages = 13 copies = 168 cost_per_page = 0.15 cost = pages * copies * cost_per_page # 327.59999999999997 print(f"{cost:.2f}") It prints: 327.60 Printing costs $327.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "327.60", "printed": "327.60", "notation": null}
nlprog_det-setting-0070175
<|start|><|system|> You are a careful reviewer of figures.<|eot|> <|user|> 3 friends split a $120 bill plus a 15% tip evenly. How much does each pay?<|eot|> <|assistant|> ```python bill = 120 tip_rate = 15 / 100 # 0.15 people = 3 each = bill * (1 + tip_rate) / people # 46.0 print(f"{each:.2f}") ``` On running, it out...
chat
[ { "role": "system", "content": "You are a careful reviewer of figures." }, { "role": "user", "content": "3 friends split a $120 bill plus a 15% tip evenly. How much does each pay?" }, { "role": "assistant", "content": "```python\nbill = 120\ntip_rate = 15 / 100 # 0.15\npeople = 3\ne...
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "46.00", "printed": "46.00", "notation": null}
nlprog_det-setting-0070176
Someone born October 4, 1993 turns how old by January 4, 2028? Give the age in whole years. Code: ```python from datetime import date born = date(1993, 10, 4) # datetime.date(1993, 10, 4) on = date(2028, 1, 4) # datetime.date(2028, 1, 4) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 34...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
156
{"gold": "34", "printed": "34", "notation": null}
nlprog_det-setting-0070177
Buying 5 lanyards at $12 each, 5 calendars at $27 each, 1 sticky pads at $7 each, someone hands over $250. What change comes back? Program: ```python items = [(5, 12), (5, 27), (1, 7)] total = sum(q * p for q, p in items) # 202 paid = 250 change = paid - total # 48 print(change) ``` Output: 48 The change is $48.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0070178
<|start|><|user|> 36 of 50 members attended. What percent attended?<|eot|> <|assistant|> 72.0% attended.<|eot|> <|end|>
chat
[ { "role": "user", "content": "36 of 50 members attended. What percent attended?" }, { "role": "assistant", "content": "72.0% attended." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "72.0", "printed": "72.0", "notation": null}
nlprog_det-setting-0070179
<|start|><|system|> You are a teaching assistant.<|eot|> <|user|> What percentage of $8,000 is $7,200?<|eot|> <|assistant|> 90.0% has been spent.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a teaching assistant." }, { "role": "user", "content": "What percentage of $8,000 is $7,200?" }, { "role": "assistant", "content": "90.0% has been spent." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "90.0", "printed": "90.0", "notation": null}
nlprog_det-setting-0070180
<|start|><|user|> With 40% off, what does a $180 jacket cost?<|eot|> <|assistant|> ```python price = 180 discount = 40 / 100 # 0.4 sale_price = price * (1 - discount) # 108.0 print(f"{sale_price:.2f}") ``` Out: 108.00 It costs $108.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 40% off, what does a $180 jacket cost?" }, { "role": "assistant", "content": "```python\nprice = 180\ndiscount = 40 / 100 # 0.4\nsale_price = price * (1 - discount) # 108.0\nprint(f\"{sale_price:.2f}\")\n```\nOut: 108.00\n\nIt costs $108.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "108.00", "printed": "108.00", "notation": null}
nlprog_det-setting-0070181
<|start|><|system|> Available functions (JSON Schema): {"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}} {"name": "interpreter", "description": "Use fo...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\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
[]
[]
293
{"gold": "89.5", "printed": "89.5", "notation": null}
nlprog_det-setting-0070182
Equal monthly payments repay $6,000 plus 6% simple yearly interest over 12 months. How large is a payment? A Python solution: principal = 6000 annual_rate = 6 / 100 # 0.06 months = 12 interest = principal * annual_rate * months / 12 # 360.0 payment = (principal + interest) / months # 530.0 p...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "530.00", "printed": "530.00", "notation": null}
nlprog_det-setting-0070183
With 10% off, what does a $180 chair cost? ```python price = 180 discount = 10 / 100 # 0.1 sale_price = price * (1 - discount) # 162.0 print(f"{sale_price:.2f}") ``` Result: 162.00 It costs $162.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "162.00", "printed": "162.00", "notation": null}
nlprog_det-setting-0070184
If a 4-year limitations period starts on November 14, 2024, when does it end? Script: from datetime import date accrued = date(2024, 11, 14) # datetime.date(2024, 11, 14) years = 4 expires = accrued.replace(year=accrued.year + years) # datetime.date(2028, 11, 14) print(expires.isoformat()) The sc...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "2028-11-14", "printed": "2028-11-14", "notation": null}
nlprog_det-setting-0070185
If a 6-year limitations period starts on March 16, 2018, when does it end? Computing it: ```python from datetime import date accrued = date(2018, 3, 16) # datetime.date(2018, 3, 16) years = 6 expires = accrued.replace(year=accrued.year + years) # datetime.date(2024, 3, 16) print(expires.isoformat()) ``` (Printed res...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "2024-03-16", "printed": "2024-03-16", "notation": null}
nlprog_det-setting-0070186
Convert 15.8 km to meters. Computing it: ```python km = 15.8 meters = km * 1000 # 15800.0 print(round(meters)) ``` That prints: 15800 That is 15,800 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "15800", "printed": "15800", "notation": null}
nlprog_det-setting-0070187
5 walks at 350 calories each burn how many calories in total? ```python per_session = 350 sessions = 5 total = per_session * sessions # 1750 print(total) ``` It prints: 1750 1750 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "1750", "printed": "1750", "notation": null}
nlprog_det-setting-0070188
<|start|><|system|> Give the answer first.<|eot|> <|user|> Divide 113 items among 6 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|> <|assistant|> ```python total = 113 groups = 6 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over"...
chat
[ { "role": "system", "content": "Give the answer first." }, { "role": "user", "content": "Divide 113 items among 6 groups as evenly as possible with equal groups. How many per group, and how many remain?" }, { "role": "assistant", "content": "```python\ntotal = 113\ngroups = 6\nper_gr...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "18 each, 5 left over", "printed": "18 each, 5 left over", "notation": null}
nlprog_det-setting-0070189
Shipping costs $12 plus $1.50 per pound. What does a 35-pound parcel cost to ship? In code: ```python base = 12 per_pound = 1.5 weight = 35 cost = base + per_pound * weight # 64.5 print(f"{cost:.2f}") ``` Execution prints 64.50. Shipping costs $64.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "64.50", "printed": "64.50", "notation": null}
nlprog_det-setting-0070190
Grace's scores were 71, 95, 69, 97, 97 and 51. What is the average score? The mean is 80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "80", "printed": "80", "notation": null}
nlprog_det-setting-0070191
<|start|><|user|> Goran earns a 2% commission on $54,925 of sales. What is the commission?<|eot|> <|assistant|> The commission is $1,098.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Goran earns a 2% commission on $54,925 of sales. What is the commission?" }, { "role": "assistant", "content": "The commission is $1,098.50." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "1098.50", "printed": "1098.50", "notation": null}
nlprog_det-setting-0070192
Attendance was 68 out of 80. Express it as a percent. The computation: present = 68 total = 80 percent = present / total * 100 # 85.0 print(round(percent, 1)) Running it prints 85.0, as expected. Attendance was 85.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "85.0", "printed": "85.0", "notation": null}
nlprog_det-setting-0070193
<|start|><|user|> A jacket costs $180. It is 25% off. What is the sale price?<|eot|> <|assistant|> ```python price = 180 discount = 25 / 100 # 0.25 sale_price = price * (1 - discount) # 135.0 print(f"{sale_price:.2f}") ``` Executing it gives 135.00, as expected. The sale price is $135.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A jacket costs $180. It is 25% off. What is the sale price?" }, { "role": "assistant", "content": "```python\nprice = 180\ndiscount = 25 / 100 # 0.25\nsale_price = price * (1 - discount) # 135.0\nprint(f\"{sale_price:.2f}\")\n```\nExecuting it gives 135.00, as exp...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "135.00", "printed": "135.00", "notation": null}
nlprog_det-setting-0070194
At 1% a month (simple), what interest builds on $7,500 over 6 months? ```python balance = 7500 monthly_rate = 1 / 100 # 0.01 months = 6 interest = balance * monthly_rate * months # 450.0 print(f"{interest:.2f}") ``` (Result: 450.00) $450.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "450.00", "printed": "450.00", "notation": null}
nlprog_det-setting-0070195
<|start|><|user|> Fines run at $250 per day up to a maximum of $2,500. How much after 38 days?<|eot|> <|assistant|> ```python per_day = 250 days = 38 cap = 2500 fine = min(per_day * days, cap) print(fine) ``` That prints 2500. $2,500 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Fines run at $250 per day up to a maximum of $2,500. How much after 38 days?" }, { "role": "assistant", "content": "```python\nper_day = 250\ndays = 38\ncap = 2500\nfine = min(per_day * days, cap)\nprint(fine)\n```\nThat prints 2500.\n\n$2,500 is owed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0070196
2 hours of work at $150 an hour: what is the total charge? In Python: ```python hours = 2 rate = 150 bill = hours * rate # 300 print(f"{bill:.2f}") ``` Executing it gives 300.00. That comes to $300.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "300.00", "printed": "300.00", "notation": null}
nlprog_det-setting-0070197
<|start|><|user|> How many weekdays (Monday to Friday) fall after September 2, 2024 up to and including September 24, 2024?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2024, 9, 2) end = date(2024, 9, 24) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(...
chat
[ { "role": "user", "content": "How many weekdays (Monday to Friday) fall after September 2, 2024 up to and including September 24, 2024?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2024, 9, 2)\nend = date(2024, 9, 24)\ncount = 0\nfor k in r...
nlprog_det
setting
original
null
deterministic
[]
[]
159
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0070198
A party has 30 days to respond to a motion served on February 9, 2025, with 3 days added because service was by mail. When is the response due? A few lines of Python do it: ```python from datetime import date, timedelta served = date(2025, 2, 9) # datetime.date(2025, 2, 9) response_days = 30 mail_days = 3 due = serve...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
186
{"gold": "2025-03-14", "printed": "2025-03-14", "notation": null}
nlprog_det-setting-0070199
36 cables cost $8 apiece. With 7% tax added, what is the total? Programmatically: ```python quantity = 36 unit_price = 8 subtotal = quantity * unit_price # 288 total = subtotal * (1 + 7 / 100) # 308.16 print(f"{total:.2f}") ``` The code prints 308.16. The invoice total is $308.16.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "308.16", "printed": "308.16", "notation": null}
nlprog_det-setting-0070200
<|start|><|user|> 11 boxes hold 6 rulers each. After 12 are handed out, how many are left?<|eot|> <|assistant|> boxes = 11 per_box = 6 given_away = 12 left = boxes * per_box - given_away # 54 print(left) (Output: 54) That leaves 54 rulers.<|eot|> <|end|>
chat
[ { "role": "user", "content": "11 boxes hold 6 rulers each. After 12 are handed out, how many are left?" }, { "role": "assistant", "content": " boxes = 11\n per_box = 6\n given_away = 12\n left = boxes * per_box - given_away # 54\n print(left)\n(Output: 54)\n\nThat leaves 54 ruler...
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "54", "printed": "54", "notation": null}
nlprog_det-setting-0070201
Split $590 between Rafael and Wen in the ratio 2 to 3. What is Rafael's share? Rafael gets $236.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "236", "printed": "236", "notation": null}
nlprog_det-setting-0070202
<|start|><|user|> Fixed costs are $1,200. Each unit sells for $25 and costs $20 to make. How many units must be sold to break even?<|eot|> <|assistant|> 240 units are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Fixed costs are $1,200. Each unit sells for $25 and costs $20 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "240 units are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "240", "printed": "240", "notation": null}
nlprog_det-setting-0070203
The meal allowance is $59 per day. What is it for 9 days? Python version: ```python days = 9 meal_rate = 59 total = days * meal_rate # 531 print(total) ``` Console: 531 The allowance is $531.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "531", "printed": "531", "notation": null}
nlprog_det-setting-0070204
Starting with 1958 cables and using 26 per day, how many remain after 11 days? Set it up in Python: ```python stock = 1958 per_day = 26 days = 11 left = stock - per_day * days # 1672 print(left) ``` Out: 1672 1672 cables are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "1672", "printed": "1672", "notation": null}
nlprog_det-setting-0070205
A 165-mile drive at a steady 60 mph takes how many minutes? ```python distance = 165 speed = 60 minutes = distance / speed * 60 print(round(minutes)) ``` # printed result: 165 The trip takes 165 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "165", "printed": "165", "notation": null}
nlprog_det-setting-0070206
At 30 miles per hour, how many minutes does a 45-mile trip take? ```python distance = 45 speed = 30 minutes = distance / speed * 60 # 90.0 print(round(minutes)) ``` It prints 90, as expected. The trip takes 90 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "90", "printed": "90", "notation": null}
nlprog_det-setting-0070207
<|start|><|user|> A settlement of $7,344 is split equally among 8 parties. How much does each party receive?<|eot|> <|assistant|> ```python settlement = 7344 parties = 8 share = settlement // parties # 918 print(share) ``` Run output — 918 Each party receives $918.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A settlement of $7,344 is split equally among 8 parties. How much does each party receive?" }, { "role": "assistant", "content": "```python\nsettlement = 7344\nparties = 8\nshare = settlement // parties # 918\nprint(share)\n```\nRun output — 918\n\nEach party recei...
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "918", "printed": "918", "notation": null}
nlprog_det-setting-0070208
A meeting lasted 3 hours and 38 minutes. How many minutes is that? The program: ```python hours = 3 minutes = 38 total_minutes = hours * 60 + minutes # 218 print(total_minutes) ``` Output — 218 That is 218 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "218", "printed": "218", "notation": null}
nlprog_det-setting-0070209
Buying 5 markers at $16 each, 1 lanyards at $29 each, someone hands over $150. What change comes back? Python: ```python items = [(5, 16), (1, 29)] total = sum(q * p for q, p in items) # 109 paid = 150 change = paid - total # 41 print(change) ``` Executing it gives 41. $41 comes back.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "41", "printed": "41", "notation": null}
nlprog_det-setting-0070210
<|start|><|system|> Tools you may use: [{"name": "py_exec", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> How many uni...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"py_exec\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"re...
nlprog_det
setting
original
null
deterministic
[]
[]
239
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0070211
<|start|><|system|> You can call tools. Available tools: [{"name": "python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> An unpaid ba...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"r...
nlprog_det
setting
original
null
deterministic
[]
[]
238
{"gold": "150.00", "printed": "150.00", "notation": null}
nlprog_det-setting-0070213
<|start|><|user|> Convert 8,062 USD to CAD at 1 USD = 1.31 CAD.<|eot|> <|assistant|> ```python amount = 8062 rate = 1.31 converted = amount * rate # 10561.220000000001 print(f"{converted:.2f}") ``` # run result: 10561.22 That is 10,561.22 CAD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 8,062 USD to CAD at 1 USD = 1.31 CAD." }, { "role": "assistant", "content": "```python\namount = 8062\nrate = 1.31\nconverted = amount * rate # 10561.220000000001\nprint(f\"{converted:.2f}\")\n```\n# run result: 10561.22\n\nThat is 10,561.22 CAD." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "10561.22", "printed": "10561.22", "notation": null}
nlprog_det-setting-0070214
An unpaid balance of $7,500 accrues 2% simple interest per month. How much interest accrues in 4 months? Script: ```python balance = 7500 monthly_rate = 2 / 100 # 0.02 months = 4 interest = balance * monthly_rate * months # 600.0 print(f"{interest:.2f}") ``` Printed result — 600.00 The interest is $600.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "600.00", "printed": "600.00", "notation": null}
nlprog_det-setting-0070215
A garage charges $4 an hour, never more than $18 a day. How much for 2 hours? The charge is $8.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0070216
<|start|><|system|> Be concise.<|eot|> <|user|> Count the days between October 2, 2028 and March 11, 2029.<|eot|> <|assistant|> from datetime import date first = date(2028, 10, 2) # datetime.date(2028, 10, 2) second = date(2029, 3, 11) # datetime.date(2029, 3, 11) print((second - first).days) (Console...
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "Count the days between October 2, 2028 and March 11, 2029." }, { "role": "assistant", "content": " from datetime import date\n first = date(2028, 10, 2) # datetime.date(2028, 10, 2)\n second = dat...
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "160", "printed": "160", "notation": null}
nlprog_det-setting-0070217
A trial runs from April 1, 2023 to April 15, 2023, counting both days. How many calendar days is that? The program: ```python from datetime import date first = date(2023, 4, 1) # datetime.date(2023, 4, 1) last = date(2023, 4, 15) # datetime.date(2023, 4, 15) days = (last - first).days + 1 # 15 print(days) ``` When ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0070218
<|start|><|user|> Idris's scores were 69, 92, 87, 82, 98 and 94. What is the average score?<|eot|> <|assistant|> ```python scores = [69, 92, 87, 82, 98, 94] average = sum(scores) // len(scores) # 87 print(average) ``` Running it prints 87, as expected. The average score is 87.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Idris's scores were 69, 92, 87, 82, 98 and 94. What is the average score?" }, { "role": "assistant", "content": "```python\nscores = [69, 92, 87, 82, 98, 94]\naverage = sum(scores) // len(scores) # 87\nprint(average)\n```\nRunning it prints 87, as expected.\n\nThe ...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "87", "printed": "87", "notation": null}
nlprog_det-setting-0070219
3 swims at 300 calories each burn how many calories in total? As Python: ```python per_session = 300 sessions = 3 total = per_session * sessions # 900 print(total) ``` Running it prints 900. 900 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0070220
<|start|><|system|> You have access to these functions: [{"name": "eval_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "lookup_statute", "descript...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"eval_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"...
nlprog_det
setting
original
null
deterministic
[]
[]
303
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0070221
Rent of $1,800 goes up 4%. What is the new rent? ```python rent = 1800 increase = 4 / 100 # 0.04 new_rent = rent * (1 + increase) # 1872.0 print(f"{new_rent:.2f}") ``` # printed result: 1872.00 The new rent is $1,872.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "1872.00", "printed": "1872.00", "notation": null}
nlprog_det-setting-0070222
With 40% off, what does a $180 jacket cost? A short script: price = 180 discount = 40 / 100 # 0.4 sale_price = price * (1 - discount) # 108.0 print(f"{sale_price:.2f}") Executing it gives: 108.00 The sale price is $108.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "108.00", "printed": "108.00", "notation": null}
nlprog_det-setting-0070223
<|start|><|user|> What average speed covers 96 miles in 2 hours?<|eot|> <|assistant|> ```python distance = 96 hours = 2 speed = distance / hours # 48.0 print(round(speed)) ``` This prints: 48 The average speed is 48 mph.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What average speed covers 96 miles in 2 hours?" }, { "role": "assistant", "content": "```python\ndistance = 96\nhours = 2\nspeed = distance / hours # 48.0\nprint(round(speed))\n```\nThis prints: 48\n\nThe average speed is 48 mph." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0070224
<|start|><|user|> Mateo has 5 documents to file, and each filing costs $150. How much are the filing fees in total?<|eot|> <|assistant|> The total fee is $750.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Mateo has 5 documents to file, and each filing costs $150. How much are the filing fees in total?" }, { "role": "assistant", "content": "The total fee is $750." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0070225
<|start|><|system|> Give the answer first.<|eot|> <|user|> A printer costs $40. It is 25% off. What is the sale price?<|eot|> <|assistant|> ```python price = 40 discount = 25 / 100 # 0.25 sale_price = price * (1 - discount) # 30.0 print(f"{sale_price:.2f}") ``` Running it prints 30.00. The sale price is $30.00.<|eot...
chat
[ { "role": "system", "content": "Give the answer first." }, { "role": "user", "content": "A printer costs $40. It is 25% off. What is the sale price?" }, { "role": "assistant", "content": "```python\nprice = 40\ndiscount = 25 / 100 # 0.25\nsale_price = price * (1 - discount) # 30.0\...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "30.00", "printed": "30.00", "notation": null}
nlprog_det-setting-0070227
<|start|><|user|> Kemal's scores were 99, 75, 87, 57 and 82. What is the average score?<|eot|> <|assistant|> ```python scores = [99, 75, 87, 57, 82] average = sum(scores) // len(scores) # 80 print(average) ``` (Printed: 80) The mean is 80.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Kemal's scores were 99, 75, 87, 57 and 82. What is the average score?" }, { "role": "assistant", "content": "```python\nscores = [99, 75, 87, 57, 82]\naverage = sum(scores) // len(scores) # 80\nprint(average)\n```\n(Printed: 80)\n\nThe mean is 80." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "80", "printed": "80", "notation": null}
nlprog_det-setting-0070228
A lawyer's fee is 30% of a $60,000 recovery. How large is the fee? Python: ```python recovery = 60000 rate = 30 / 100 # 0.3 fee = recovery * rate # 18000.0 print(f"{fee:.2f}") ``` Executing it gives: 18000.00 The lawyer's fee comes to $18,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "18000.00", "printed": "18000.00", "notation": null}
nlprog_det-setting-0070229
<|start|><|user|> Count 90 days forward from December 25, 2024. What date is that?<|eot|> <|assistant|> That date is March 25, 2025.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Count 90 days forward from December 25, 2024. What date is that?" }, { "role": "assistant", "content": "That date is March 25, 2025." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "2025-03-25", "printed": "2025-03-25", "notation": null}
nlprog_det-setting-0070230
<|start|><|system|> You are a careful reviewer of figures.<|eot|> <|user|> How many days are there from January 26, 2022 to February 27, 2023?<|eot|> <|assistant|> ```python from datetime import date first = date(2022, 1, 26) # datetime.date(2022, 1, 26) second = date(2023, 2, 27) # datetime.date(2023, 2, 27) print((...
chat
[ { "role": "system", "content": "You are a careful reviewer of figures." }, { "role": "user", "content": "How many days are there from January 26, 2022 to February 27, 2023?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2022, 1, 26) # datet...
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "397", "printed": "397", "notation": null}
nlprog_det-setting-0070231
Monthly: $9. Annual: $60. What is saved per year by paying annually? Let the code do the arithmetic: ```python monthly = 9 yearly = 60 savings = monthly * 12 - yearly # 48 print(savings) ``` Printed — 48 The annual plan saves $48.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0070232
A measure needs at least 75% of 153 votes. How many votes is that, rounded up? In code: ```python import math voters = 153 needed = math.ceil(voters * 75 / 100) # 115 print(needed) ``` Printed: 115 115 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "115", "printed": "115", "notation": null}
nlprog_det-setting-0070233
<|start|><|user|> Fixed costs are $4,000. Each unit sells for $40 and costs $30 to make. How many units must be sold to break even?<|eot|> <|assistant|> import math fixed = 4000 price = 40 variable = 30 units = math.ceil(fixed / (price - variable)) # 400 print(units) Run result = 400 Break-eve...
chat
[ { "role": "user", "content": "Fixed costs are $4,000. Each unit sells for $40 and costs $30 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": " import math\n fixed = 4000\n price = 40\n variable = 30\n units = math.ceil(fixed / (price - vari...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "400", "printed": "400", "notation": null}
nlprog_det-setting-0070234
<|start|><|user|> Fixed costs are $2,500. Each unit sells for $15 and costs $5 to make. How many units must be sold to break even?<|eot|> <|assistant|> ```python import math fixed = 2500 price = 15 variable = 5 units = math.ceil(fixed / (price - variable)) # 250 print(units) ``` The program outputs: 250 Break-even is...
chat
[ { "role": "user", "content": "Fixed costs are $2,500. Each unit sells for $15 and costs $5 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 2500\nprice = 15\nvariable = 5\nunits = math.ceil(fixed / (price - variable)) # 2...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "250", "printed": "250", "notation": null}
nlprog_det-setting-0070235
A recipe for 6 people uses 450 grams of flour. How many grams are needed for 2 people? The computation: ```python grams = 450 serves = 6 needed_for = 2 scaled = grams * needed_for // serves # 150 print(scaled) ``` # execution result: 150 150 grams of flour are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0070236
<|start|><|user|> How many minutes pass from 9:38 AM to 10:00 AM on the same day?<|eot|> <|assistant|> ```python start = 9 * 60 + 38 # 578 end = 10 * 60 + 0 # 600 print(end - start) ``` Executed, it shows 22. 22 minutes pass.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many minutes pass from 9:38 AM to 10:00 AM on the same day?" }, { "role": "assistant", "content": "```python\nstart = 9 * 60 + 38 # 578\nend = 10 * 60 + 0 # 600\nprint(end - start)\n```\nExecuted, it shows 22.\n\n22 minutes pass." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0070238
How many meters are in 64.3 kilometers? A few lines of Python do it: ```python km = 64.3 meters = km * 1000 # 64300.0 print(round(meters)) ``` (Printed: 64300) That is 64,300 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "64300", "printed": "64300", "notation": null}
nlprog_det-setting-0070239
<|start|><|system|> Answer the user's question directly.<|eot|> <|user|> 762 files go into boxes of 15. How many boxes does that take?<|eot|> <|assistant|> ```python import math files = 762 per_box = 15 boxes = math.ceil(files / per_box) # 51 print(boxes) ``` Printed result: 51 51 boxes are needed.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer the user's question directly." }, { "role": "user", "content": "762 files go into boxes of 15. How many boxes does that take?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 762\nper_box = 15\nboxes = math.ceil(files / per...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "51", "printed": "51", "notation": null}
nlprog_det-setting-0070240
Of a $8,000 budget, $4,800 has been spent. What percent is that? Here is the program. ```python budget = 8000 spent = 4800 percent = spent / budget * 100 # 60.0 print(round(percent, 1)) ``` When run, it prints 60.0, as expected. That is 60.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "60.0", "printed": "60.0", "notation": null}
nlprog_det-setting-0070241
<|start|><|user|> With 25% off, what does a $75 jacket cost?<|eot|> <|assistant|> ```python price = 75 discount = 25 / 100 # 0.25 sale_price = price * (1 - discount) # 56.25 print(f"{sale_price:.2f}") ``` Executing it gives 56.25. It costs $56.25.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 25% off, what does a $75 jacket cost?" }, { "role": "assistant", "content": "```python\nprice = 75\ndiscount = 25 / 100 # 0.25\nsale_price = price * (1 - discount) # 56.25\nprint(f\"{sale_price:.2f}\")\n```\nExecuting it gives 56.25.\n\nIt costs $56.25." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "56.25", "printed": "56.25", "notation": null}