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-0077956
<|start|><|user|> 267 volunteers are split into 3 equal teams. How many are on each team, and how many are left over?<|eot|> <|assistant|> ```python total = 267 groups = 3 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Interpreter output: 89 each, 0 left over 89 each...
chat
[ { "role": "user", "content": "267 volunteers are split into 3 equal teams. How many are on each team, and how many are left over?" }, { "role": "assistant", "content": "```python\ntotal = 267\ngroups = 3\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remainder} left o...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "89 each, 0 left over", "printed": "89 each, 0 left over", "notation": null}
nlprog_det-setting-0077957
Of a $2,000 budget, $100 has been spent. What percent is that? A few lines of Python do it: ```python budget = 2000 spent = 100 percent = spent / budget * 100 # 5.0 print(round(percent, 1)) ``` The program outputs 5.0. 5.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "5.0", "printed": "5.0", "notation": null}
nlprog_det-setting-0077958
A 33 lb package ships at $5 base plus $1.20/lb. What is the charge? Here is the program. base = 5 per_pound = 1.2 weight = 33 cost = base + per_pound * weight # 44.6 print(f"{cost:.2f}") Running it prints 44.60, as expected. Shipping costs $44.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "44.60", "printed": "44.60", "notation": null}
nlprog_det-setting-0077960
<|start|><|user|> On which weekday does May 11, 2009 fall?<|eot|> <|assistant|> ```python from datetime import date hearing = date(2009, 5, 11) # datetime.date(2009, 5, 11) print(hearing.strftime("%A")) ``` Run output: Monday May 11, 2009 is a Monday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "On which weekday does May 11, 2009 fall?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(2009, 5, 11) # datetime.date(2009, 5, 11)\nprint(hearing.strftime(\"%A\"))\n```\nRun output: Monday\n\nMay 11, 2009 is a Monday." ...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "Monday", "printed": "Monday", "notation": null}
nlprog_det-setting-0077961
An office budget of $25,000 has expenses of $437, $780, $3,517, $3,740. How much of the budget is left? Translated to Python: ```python budget = 25000 expenses = [437, 780, 3517, 3740] left = budget - sum(expenses) # 16526 print(left) ``` Program output: 16526 $16,526 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "16526", "printed": "16526", "notation": null}
nlprog_det-setting-0077962
<|start|><|user|> What day of the week is May 7, 2014?<|eot|> <|assistant|> ```python from datetime import date hearing = date(2014, 5, 7) # datetime.date(2014, 5, 7) print(hearing.strftime("%A")) ``` Running it prints: Wednesday May 7, 2014 is a Wednesday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What day of the week is May 7, 2014?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(2014, 5, 7) # datetime.date(2014, 5, 7)\nprint(hearing.strftime(\"%A\"))\n```\nRunning it prints: Wednesday\n\nMay 7, 2014 is a Wednesda...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "Wednesday", "printed": "Wednesday", "notation": null}
nlprog_det-setting-0077963
What does $1,000 grow to in 3 years at 5% annual compounding? Script: ```python principal = 1000 rate = 5 / 100 # 0.05 years = 3 value = principal * (1 + rate) ** years # 1157.6250000000002 print(f"{value:.2f}") ``` Out — 1157.63 It is worth $1,157.63.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "1157.63", "printed": "1157.63", "notation": null}
nlprog_det-setting-0077964
How many days are there from March 9, 2019 to April 23, 2019? The Python version: from datetime import date first = date(2019, 3, 9) # datetime.date(2019, 3, 9) second = date(2019, 4, 23) # datetime.date(2019, 4, 23) print((second - first).days) Printed = 45 There are 45 days between the two dates.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "45", "printed": "45", "notation": null}
nlprog_det-setting-0077965
Convert 1,561 USD to CAD at 1 USD = 0.92 CAD. Here's the code. ```python amount = 1561 rate = 0.92 converted = amount * rate # 1436.1200000000001 print(f"{converted:.2f}") ``` Output: 1436.12 It converts to 1,436.12 CAD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "1436.12", "printed": "1436.12", "notation": null}
nlprog_det-setting-0077966
Count the days between July 2, 2028 and November 15, 2028. A few lines of Python do it: ```python from datetime import date first = date(2028, 7, 2) # datetime.date(2028, 7, 2) second = date(2028, 11, 15) # datetime.date(2028, 11, 15) print((second - first).days) ``` (Console output: 136) It is 136 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "136", "printed": "136", "notation": null}
nlprog_det-setting-0077967
Someone born September 28, 2004 turns how old by March 21, 2022? Give the age in whole years. In code: ```python from datetime import date born = date(2004, 9, 28) # datetime.date(2004, 9, 28) on = date(2022, 3, 21) # datetime.date(2022, 3, 21) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0077968
<|start|><|system|> You are a data assistant.<|eot|> <|user|> Sales went from 2,000 to 2,300. What is the percent change?<|eot|> <|assistant|> ```python old = 2000 new = 2300 change = (new - old) / old * 100 # 15.0 print(round(change)) ``` Execution result — 15 It changed by 15%.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a data assistant." }, { "role": "user", "content": "Sales went from 2,000 to 2,300. What is the percent change?" }, { "role": "assistant", "content": "```python\nold = 2000\nnew = 2300\nchange = (new - old) / old * 100 # 15.0\nprint(round(chan...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0077969
Revenue is $10,500 and costs are $8,000. What is the profit margin as a percent of revenue (one decimal)? Profit is 23.8% of revenue.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "23.8", "printed": "23.8", "notation": null}
nlprog_det-setting-0077970
What average speed covers 322 miles in 2 hours? We can compute it in Python. ```python distance = 322 hours = 2 speed = distance / hours # 161.0 print(round(speed)) ``` Interpreter output: 161 The average speed is 161 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "161", "printed": "161", "notation": null}
nlprog_det-setting-0077971
Fuel for 240 miles at 30 mpg, with gas at $3.89/gallon: what is the cost? Fuel costs $31.12.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "31.12", "printed": "31.12", "notation": null}
nlprog_det-setting-0077972
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> 10 boxes hold 12 labels each. After 6 are handed out, how many are left?<|eot|> <|assistant|> 114 labels are left.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "10 boxes hold 12 labels each. After 6 are handed out, how many are left?" }, { "role": "assistant", "content": "114 labels are left." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "114", "printed": "114", "notation": null}
nlprog_det-setting-0077973
<|start|><|user|> 52 copies of a 60-page packet are printed at $0.10 per page. What is the cost?<|eot|> <|assistant|> ```python pages = 60 copies = 52 cost_per_page = 0.1 cost = pages * copies * cost_per_page # 312.0 print(f"{cost:.2f}") ``` Running this gives: 312.00 The job costs $312.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "52 copies of a 60-page packet are printed at $0.10 per page. What is the cost?" }, { "role": "assistant", "content": "```python\npages = 60\ncopies = 52\ncost_per_page = 0.1\ncost = pages * copies * cost_per_page # 312.0\nprint(f\"{cost:.2f}\")\n```\nRunning this g...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "312.00", "printed": "312.00", "notation": null}
nlprog_det-setting-0077975
<|start|><|system|> Avoid unnecessary detail.<|eot|> <|user|> Uma was born on July 24, 1990. How old is Uma on May 14, 2030?<|eot|> <|assistant|> from datetime import date born = date(1990, 7, 24) # datetime.date(1990, 7, 24) on = date(2030, 5, 14) # datetime.date(2030, 5, 14) age = on.year - born.yea...
chat
[ { "role": "system", "content": "Avoid unnecessary detail." }, { "role": "user", "content": "Uma was born on July 24, 1990. How old is Uma on May 14, 2030?" }, { "role": "assistant", "content": " from datetime import date\n born = date(1990, 7, 24) # datetime.date(1990, 7, 24)\...
nlprog_det
setting
original
null
deterministic
[]
[]
154
{"gold": "39", "printed": "39", "notation": null}
nlprog_det-setting-0077976
What does $2,000 grow to in 4 years at 4% annual compounding? Translated to Python: ```python principal = 2000 rate = 4 / 100 # 0.04 years = 4 value = principal * (1 + rate) ** years # 2339.7171200000003 print(f"{value:.2f}") ``` Output = 2339.72 The balance is $2,339.72.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "2339.72", "printed": "2339.72", "notation": null}
nlprog_det-setting-0077977
A pack of 10 cables sells for $280. What does each cost? Python does the arithmetic: ```python total = 280 count = 10 per_item = total // count # 28 print(per_item) ``` # run result: 28 The unit price is $28.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0077978
<|start|><|user|> Counting the first and last day, how many days are there from December 1, 2024 through December 19, 2024?<|eot|> <|assistant|> ```python from datetime import date first = date(2024, 12, 1) # datetime.date(2024, 12, 1) last = date(2024, 12, 19) # datetime.date(2024, 12, 19) days = (last - first).days...
chat
[ { "role": "user", "content": "Counting the first and last day, how many days are there from December 1, 2024 through December 19, 2024?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2024, 12, 1) # datetime.date(2024, 12, 1)\nlast = date(2024, 12, 19) ...
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0077979
<|start|><|user|> Split $292 between Yara and Ivan in the ratio 1 to 3. What is Yara's share?<|eot|> <|assistant|> Yara's share is $73.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Split $292 between Yara and Ivan in the ratio 1 to 3. What is Yara's share?" }, { "role": "assistant", "content": "Yara's share is $73." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "73", "printed": "73", "notation": null}
nlprog_det-setting-0077980
A 20 × 9 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up? A Python solution: import math length = 20 width = 9 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 180 print(tiles) Printed — 180 180 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "180", "printed": "180", "notation": null}
nlprog_det-setting-0077981
Each of Arjun's swims burns 150 calories. How many calories over 3 swims? Python, step by step: per_session = 150 sessions = 3 total = per_session * sessions # 450 print(total) It outputs: 450 That burns 450 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "450", "printed": "450", "notation": null}
nlprog_det-setting-0077982
<|start|><|user|> With $8,000 in costs and $12,000 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|> <|assistant|> ```python revenue = 12000 costs = 8000 profit = revenue - costs # 4000 margin = profit / revenue * 100 # 33.33333333333333 print(round(margin, 1)) ``` The run gives 33.3, as exp...
chat
[ { "role": "user", "content": "With $8,000 in costs and $12,000 in revenue, what percent of revenue is profit? Round to one decimal." }, { "role": "assistant", "content": "```python\nrevenue = 12000\ncosts = 8000\nprofit = revenue - costs # 4000\nmargin = profit / revenue * 100 # 33.33333333333...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "33.3", "printed": "33.3", "notation": null}
nlprog_det-setting-0077983
Someone works 20 hours at $22.74 per hour. What are the earnings? Python, step by step: ```python rate = 22.74 hours = 20 earnings = rate * hours # 454.79999999999995 print(f"{earnings:.2f}") ``` This prints: 454.80 The pay is $454.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "454.80", "printed": "454.80", "notation": null}
nlprog_det-setting-0077984
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> What commission does Diego make on $103,170 in sales at 3%?<|eot|> <|assistant|> sales = 103170 rate = 3 / 100 # 0.03 commission = sales * rate # 3095.1 print(f"{commission:.2f}") Python prints: 3095.10 The commission is $3,095.10.<|eot|> <|e...
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "What commission does Diego make on $103,170 in sales at 3%?" }, { "role": "assistant", "content": " sales = 103170\n rate = 3 / 100 # 0.03\n commission = sales * rate # 3095.1\n pri...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "3095.10", "printed": "3095.10", "notation": null}
nlprog_det-setting-0077986
Kofi buys 5 boxes of 25 sticky pads each and gives away 1 sticky pads. How many sticky pads are left? Script: ```python boxes = 5 per_box = 25 given_away = 1 left = boxes * per_box - given_away print(left) ``` Output: 124 124 sticky pads are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "124", "printed": "124", "notation": null}
nlprog_det-setting-0077987
<|start|><|user|> A car travels 291 miles in 1.5 hours. What is its average speed in miles per hour?<|eot|> <|assistant|> The average speed is 194 mph.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A car travels 291 miles in 1.5 hours. What is its average speed in miles per hour?" }, { "role": "assistant", "content": "The average speed is 194 mph." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "194", "printed": "194", "notation": null}
nlprog_det-setting-0077988
Someone born July 16, 1954 turns how old by April 10, 2022? Give the age in whole years. Here's the code. ```python from datetime import date born = date(1954, 7, 16) # datetime.date(1954, 7, 16) on = date(2022, 4, 10) # datetime.date(2022, 4, 10) age = on.year - born.year - ((on.month, on.day) < (born.month, born.d...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
156
{"gold": "67", "printed": "67", "notation": null}
nlprog_det-setting-0077989
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> Straight-line depreciation: cost $12,000, salvage $2,000, 3 years. How much per year?<|eot|> <|assistant|> Depreciation is $3,333.33 per year.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "Straight-line depreciation: cost $12,000, salvage $2,000, 3 years. How much per year?" }, { "role": "assistant", "content": "Depreciation is $3,333.33 per year." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
68
{"gold": "3333.33", "printed": "3333.33", "notation": null}
nlprog_det-setting-0077990
2 clients win $60,000. The lawyer takes 30%, and the rest is split equally. How much does each client get? ```python award = 60000 fee = award * 30 / 100 # 18000.0 remaining = award - fee # 42000.0 per_client = remaining / 2 # 21000.0 print(f"{per_client:.2f}") ``` Output: 21000.00 Each client gets $21,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "21000.00", "printed": "21000.00", "notation": null}
nlprog_det-setting-0077991
Fines run at $50 per day up to a maximum of $1,000. How much after 45 days? As Python: ```python per_day = 50 days = 45 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` Result: 1000 $1,000 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0077992
A measure needs at least 60% of 154 votes. How many votes is that, rounded up? The Python version: ```python import math voters = 154 needed = math.ceil(voters * 60 / 100) # 93 print(needed) ``` Console output: 93 93 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "93", "printed": "93", "notation": null}
nlprog_det-setting-0077993
<|start|><|user|> A trial runs from April 22, 2022 to May 12, 2022, counting both days. How many calendar days is that?<|eot|> <|assistant|> ```python from datetime import date first = date(2022, 4, 22) # datetime.date(2022, 4, 22) last = date(2022, 5, 12) # datetime.date(2022, 5, 12) days = (last - first).days + 1 ...
chat
[ { "role": "user", "content": "A trial runs from April 22, 2022 to May 12, 2022, counting both days. How many calendar days is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2022, 4, 22) # datetime.date(2022, 4, 22)\nlast = date(2022, 5, 12) # da...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0077994
A storeroom has 1060 water bottles. The office uses 33 a day. How many are left after 13 days? In code: ```python stock = 1060 per_day = 33 days = 13 left = stock - per_day * days # 631 print(left) ``` Executed, it shows: 631 631 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "631", "printed": "631", "notation": null}
nlprog_det-setting-0077995
What is a 15% tip on a $198.01 bill? Set it up in Python: ```python bill = 198.01 tip_rate = 15 / 100 # 0.15 tip = bill * tip_rate # 29.701499999999996 print(f"{tip:.2f}") ``` Running it prints: 29.70 Leave $29.70.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "29.70", "printed": "29.70", "notation": null}
nlprog_det-setting-0077996
Rosa lends $1,000 at 8% simple interest per year for 4 years. How much interest is earned? Programmatically: ```python principal = 1000 rate = 8 / 100 # 0.08 years = 4 interest = principal * rate * years # 320.0 print(f"{interest:.2f}") ``` The run gives 320.00. It earns $320.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "320.00", "printed": "320.00", "notation": null}
nlprog_det-setting-0077997
<|start|><|system|> Double-check numbers before answering.<|eot|> <|user|> Notice was given on October 15, 2023. The notice period is 45 days. When does it run out?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2023, 10, 15) # datetime.date(2023, 10, 15) end = start + timedelta(days=...
chat
[ { "role": "system", "content": "Double-check numbers before answering." }, { "role": "user", "content": "Notice was given on October 15, 2023. The notice period is 45 days. When does it run out?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\ns...
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "2023-11-29", "printed": "2023-11-29", "notation": null}
nlprog_det-setting-0077998
Straight-line depreciation: cost $30,000, salvage $6,000, 8 years. How much per year? Let's compute it with Python. ```python cost = 30000 salvage = 6000 years = 8 per_year = (cost - salvage) / years # 3000.0 print(f"{per_year:.2f}") ``` # result: 3000.00 $3,000.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "3000.00", "printed": "3000.00", "notation": null}
nlprog_det-setting-0077999
Monthly rent is $1,500. A tenant moves in with 21 days left in a 31-day month. What is the prorated rent? The tenant owes $1,016.13.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "1016.13", "printed": "1016.13", "notation": null}
nlprog_det-setting-0078000
<|start|><|user|> A $48,000 grant pays $3,000 up front and the rest in 4 equal installments. How large is each installment?<|eot|> <|assistant|> ```python grant = 48000 up_front = 3000 installments = 4 each = (grant - up_front) / installments # 11250.0 print(f"{each:.2f}") ``` (Program output: 11250.00) $11,250.00 pe...
chat
[ { "role": "user", "content": "A $48,000 grant pays $3,000 up front and the rest in 4 equal installments. How large is each installment?" }, { "role": "assistant", "content": "```python\ngrant = 48000\nup_front = 3000\ninstallments = 4\neach = (grant - up_front) / installments # 11250.0\nprint(f...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "11250.00", "printed": "11250.00", "notation": null}
nlprog_det-setting-0078001
<|start|><|user|> Counting the first and last day, how many days are there from May 22, 2025 through June 14, 2025?<|eot|> <|assistant|> ```python from datetime import date first = date(2025, 5, 22) # datetime.date(2025, 5, 22) last = date(2025, 6, 14) # datetime.date(2025, 6, 14) days = (last - first).days + 1 # 24...
chat
[ { "role": "user", "content": "Counting the first and last day, how many days are there from May 22, 2025 through June 14, 2025?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2025, 5, 22) # datetime.date(2025, 5, 22)\nlast = date(2025, 6, 14) # dateti...
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0078003
A service costs $19 a month or $216 a year. How much does the yearly plan save over 12 monthly payments? Python does the arithmetic: ```python monthly = 19 yearly = 216 savings = monthly * 12 - yearly print(savings) ``` stdout: 12 $12 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0078005
<|start|><|user|> What commission does Rania make on $36,519 in sales at 6%?<|eot|> <|assistant|> Rania earns $2,191.14.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What commission does Rania make on $36,519 in sales at 6%?" }, { "role": "assistant", "content": "Rania earns $2,191.14." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "2191.14", "printed": "2191.14", "notation": null}
nlprog_det-setting-0078006
At an exchange rate of 0.92 CAD per USD, how many CAD is 6,053 USD? Written as code: ```python amount = 6053 rate = 0.92 converted = amount * rate # 5568.76 print(f"{converted:.2f}") ``` Out: 5568.76 That is 5,568.76 CAD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "5568.76", "printed": "5568.76", "notation": null}
nlprog_det-setting-0078007
A water bill is $18 plus $4.75 per thousand gallons beyond the first 3 thousand. What is the bill for 20 thousand gallons? Programmatically: ```python base = 18 rate = 4.75 used = 20 free = 3 bill = base + rate * max(0, used - free) # 98.75 print(f"{bill:.2f}") ``` # program output: 98.75 $98.75 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "98.75", "printed": "98.75", "notation": null}
nlprog_det-setting-0078008
A 308-page report must be reviewed in 11 days. How many pages a day is that, evenly? In code: ```python pages = 308 days = 11 per_day = pages // days # 28 print(per_day) ``` Executed, it shows: 28 That is 28 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0078009
Filing fees are $125 per document. What do 11 filings cost? One way, in code: fee = 125 filings = 11 total = fee * filings # 1375 print(total) # stdout: 1375 The total fee is $1,375.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "1375", "printed": "1375", "notation": null}
nlprog_det-setting-0078010
Zainab lends $2,500 at 4% simple interest per year for 4 years. How much interest is earned? The interest is $400.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "400.00", "printed": "400.00", "notation": null}
nlprog_det-setting-0078011
Water costs $15 a month plus $5.10 for each 1,000 gallons over 3,000. What is owed for 9,000 gallons? Translated to Python: ```python base = 15 rate = 5.1 used = 9 free = 3 bill = base + rate * max(0, used - free) # 45.599999999999994 print(f"{bill:.2f}") ``` Python prints: 45.60 The bill is $45.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "45.60", "printed": "45.60", "notation": null}
nlprog_det-setting-0078012
Split $1,148 between Bruna and Diego in the ratio 3 to 4. What is Bruna's share? Python code: ```python total = 1148 parts_a = 3 parts_b = 4 share_a = total * parts_a // (parts_a + parts_b) # 492 print(share_a) ``` Interpreter output — 492 Bruna's share is $492.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "492", "printed": "492", "notation": null}
nlprog_det-setting-0078013
Kemal earns a 6% commission on $52,597 of sales. What is the commission? The commission is $3,155.82.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "3155.82", "printed": "3155.82", "notation": null}
nlprog_det-setting-0078014
<|start|><|user|> Notice was given on May 4, 2027. The notice period is 90 days. When does it run out?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2027, 5, 4) # datetime.date(2027, 5, 4) end = start + timedelta(days=90) # datetime.date(2027, 8, 2) print(end.isoformat()) ``` Consol...
chat
[ { "role": "user", "content": "Notice was given on May 4, 2027. The notice period is 90 days. When does it run out?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2027, 5, 4) # datetime.date(2027, 5, 4)\nend = start + timedelta(days=90) # da...
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "2027-08-02", "printed": "2027-08-02", "notation": null}
nlprog_det-setting-0078015
Eamon earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 49-hour week? Written as code: rate = 16.0 hours = 49 regular = 40 * rate # 640.0 overtime = (hours - 40) * rate * 1.5 # 216.0 pay = regular + overtime # 856.0 print(f"{pay:.2f}") stdout = 856.00 The wee...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "856.00", "printed": "856.00", "notation": null}
nlprog_det-setting-0078016
<|start|><|user|> A count moves from 2,000 to 3,000. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> ```python old = 2000 new = 3000 change = (new - old) / old * 100 # 50.0 print(round(change)) ``` # out: 50 The change is 50%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A count moves from 2,000 to 3,000. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": "```python\nold = 2000\nnew = 3000\nchange = (new - old) / old * 100 # 50.0\nprint(round(change))\n```\n# out: 50\n\nThe change is ...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0078017
If a 50-minute class begins at 8:10 AM, what time does it finish? Code: start = 8 * 60 + 10 end = start + 50 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") (Printed: 9:00 AM) The class finishes at 9:00 AM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "9:00 AM", "printed": "9:00 AM", "notation": null}
nlprog_det-setting-0078018
<|start|><|user|> Counting only Monday through Friday, how many business days are there after April 18, 2028 through May 20, 2028?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2028, 4, 18) end = date(2028, 5, 20) count = 0 for k in range(1, (end - start).days + 1): if (start + ti...
chat
[ { "role": "user", "content": "Counting only Monday through Friday, how many business days are there after April 18, 2028 through May 20, 2028?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2028, 4, 18)\nend = date(2028, 5, 20)\ncount = 0\nfo...
nlprog_det
setting
original
null
deterministic
[]
[]
158
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0078019
A hearing is set for August 23, 2019. What day of the week is that? One way, in code: ```python from datetime import date hearing = date(2019, 8, 23) # datetime.date(2019, 8, 23) print(hearing.strftime("%A")) ``` Python prints: Friday It is a Friday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "Friday", "printed": "Friday", "notation": null}
nlprog_det-setting-0078020
If a 50-minute hearing begins at 8:40 AM, what time does it finish? The computation: start = 8 * 60 + 40 end = start + 50 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") Executing it gives 9:30 AM, as expected. It ends at 9:30 AM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "9:30 AM", "printed": "9:30 AM", "notation": null}
nlprog_det-setting-0078021
<|start|><|system|> You are a logic tutor.<|eot|> <|user|> A meeting lasted 2 hours and 25 minutes. How many minutes is that?<|eot|> <|assistant|> ```python hours = 2 minutes = 25 total_minutes = hours * 60 + minutes # 145 print(total_minutes) ``` Output of the run — 145 That is 145 minutes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a logic tutor." }, { "role": "user", "content": "A meeting lasted 2 hours and 25 minutes. How many minutes is that?" }, { "role": "assistant", "content": "```python\nhours = 2\nminutes = 25\ntotal_minutes = hours * 60 + minutes # 145\nprint(to...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "145", "printed": "145", "notation": null}
nlprog_det-setting-0078022
<|start|><|user|> A 45-day notice period begins on November 4, 2027. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2027, 11, 4) # datetime.date(2027, 11, 4) end = start + timedelta(days=45) # datetime.date(2027, 12, 19) print(end.isoformat()) ``` Output of ...
chat
[ { "role": "user", "content": "A 45-day notice period begins on November 4, 2027. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2027, 11, 4) # datetime.date(2027, 11, 4)\nend = start + timedelta(days=45) # datetime...
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "2027-12-19", "printed": "2027-12-19", "notation": null}
nlprog_det-setting-0078023
<|start|><|user|> How many days are there from January 17, 2027 to February 4, 2027?<|eot|> <|assistant|> ```python from datetime import date first = date(2027, 1, 17) # datetime.date(2027, 1, 17) second = date(2027, 2, 4) # datetime.date(2027, 2, 4) print((second - first).days) ``` Output — 18 It is 18 days.<|eot|>...
chat
[ { "role": "user", "content": "How many days are there from January 17, 2027 to February 4, 2027?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2027, 1, 17) # datetime.date(2027, 1, 17)\nsecond = date(2027, 2, 4) # datetime.date(2027, 2, 4)\nprint((se...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0078024
A pack of 10 lanyards sells for $120. What does each cost? ```python total = 120 count = 10 per_item = total // count # 12 print(per_item) ``` Result = 12 The unit price is $12.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0078025
<|start|><|user|> 3 friends split a $180 bill plus a 20% tip evenly. How much does each pay?<|eot|> <|assistant|> ```python bill = 180 tip_rate = 20 / 100 # 0.2 people = 3 each = bill * (1 + tip_rate) / people # 72.0 print(f"{each:.2f}") ``` It prints 72.00. The share is $72.00 each.<|eot|> <|end|>
chat
[ { "role": "user", "content": "3 friends split a $180 bill plus a 20% tip evenly. How much does each pay?" }, { "role": "assistant", "content": "```python\nbill = 180\ntip_rate = 20 / 100 # 0.2\npeople = 3\neach = bill * (1 + tip_rate) / people # 72.0\nprint(f\"{each:.2f}\")\n```\nIt prints 72....
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "72.00", "printed": "72.00", "notation": null}
nlprog_det-setting-0078026
<|start|><|user|> A library charges $0.15 per book per day late. What is the fine for 2 books that are 2 days late?<|eot|> <|assistant|> ```python per_day = 0.15 days_late = 2 books = 2 fine = per_day * days_late * books # 0.6 print(f"{fine:.2f}") ``` Executing it gives: 0.60 The fine is $0.60.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A library charges $0.15 per book per day late. What is the fine for 2 books that are 2 days late?" }, { "role": "assistant", "content": "```python\nper_day = 0.15\ndays_late = 2\nbooks = 2\nfine = per_day * days_late * books # 0.6\nprint(f\"{fine:.2f}\")\n```\nExec...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "0.60", "printed": "0.60", "notation": null}
nlprog_det-setting-0078027
<|start|><|user|> Starting with 1001 folders and using 17 per day, how many remain after 11 days?<|eot|> <|assistant|> stock = 1001 per_day = 17 days = 11 left = stock - per_day * days # 814 print(left) Interpreter output — 814 814 folders are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting with 1001 folders and using 17 per day, how many remain after 11 days?" }, { "role": "assistant", "content": " stock = 1001\n per_day = 17\n days = 11\n left = stock - per_day * days # 814\n print(left)\nInterpreter output — 814\n\n814 folde...
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "814", "printed": "814", "notation": null}
nlprog_det-setting-0078028
<|start|><|user|> Parking is $4 per hour with a daily maximum of $18. What do 9 hours cost?<|eot|> <|assistant|> ```python rate = 4 hours = 9 daily_max = 18 cost = min(rate * hours, daily_max) # 18 print(cost) ``` Python prints: 18 The charge is $18.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Parking is $4 per hour with a daily maximum of $18. What do 9 hours cost?" }, { "role": "assistant", "content": "```python\nrate = 4\nhours = 9\ndaily_max = 18\ncost = min(rate * hours, daily_max) # 18\nprint(cost)\n```\nPython prints: 18\n\nThe charge is $18." }...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0078029
<|start|><|user|> Someone works 40 hours at $30.15 per hour. What are the earnings?<|eot|> <|assistant|> ```python rate = 30.15 hours = 40 earnings = rate * hours # 1206.0 print(f"{earnings:.2f}") ``` (Execution result: 1206.00) The pay is $1,206.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Someone works 40 hours at $30.15 per hour. What are the earnings?" }, { "role": "assistant", "content": "```python\nrate = 30.15\nhours = 40\nearnings = rate * hours # 1206.0\nprint(f\"{earnings:.2f}\")\n```\n(Execution result: 1206.00)\n\nThe pay is $1,206.00." ...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "1206.00", "printed": "1206.00", "notation": null}
nlprog_det-setting-0078030
Someone works 16 hours at $29.75 per hour. What are the earnings? The pay is $476.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "476.00", "printed": "476.00", "notation": null}
nlprog_det-setting-0078031
<|start|><|system|> Answer in plain English.<|eot|> <|user|> How many weekdays (Monday to Friday) fall after October 12, 2022 up to and including November 17, 2022?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2022, 10, 12) end = date(2022, 11, 17) count = 0 for k in range(1, (end - ...
chat
[ { "role": "system", "content": "Answer in plain English." }, { "role": "user", "content": "How many weekdays (Monday to Friday) fall after October 12, 2022 up to and including November 17, 2022?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\ns...
nlprog_det
setting
original
null
deterministic
[]
[]
163
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0078032
<|start|><|user|> A claim accrued on December 3, 2012. The limitations period is 5 years. On what date does it expire?<|eot|> <|assistant|> from datetime import date accrued = date(2012, 12, 3) # datetime.date(2012, 12, 3) years = 5 expires = accrued.replace(year=accrued.year + years) # datetime.date(...
chat
[ { "role": "user", "content": "A claim accrued on December 3, 2012. The limitations period is 5 years. On what date does it expire?" }, { "role": "assistant", "content": " from datetime import date\n accrued = date(2012, 12, 3) # datetime.date(2012, 12, 3)\n years = 5\n expires = acc...
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "2017-12-03", "printed": "2017-12-03", "notation": null}
nlprog_det-setting-0078033
Equipment costs $18,000, has a salvage value of $3,000, and a useful life of 6 years. What is the straight-line depreciation per year? In Python: ```python cost = 18000 salvage = 3000 years = 6 per_year = (cost - salvage) / years # 2500.0 print(f"{per_year:.2f}") ``` stdout: 2500.00 $2,500.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "2500.00", "printed": "2500.00", "notation": null}
nlprog_det-setting-0078034
What does $1,000 grow to in 5 years at 4% annual compounding? Let the code do the arithmetic: ```python principal = 1000 rate = 4 / 100 # 0.04 years = 5 value = principal * (1 + rate) ** years # 1216.6529024000001 print(f"{value:.2f}") ``` Running this gives: 1216.65 The balance is $1,216.65.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "1216.65", "printed": "1216.65", "notation": null}
nlprog_det-setting-0078035
<|start|><|system|> You are a careful reviewer of figures.<|eot|> <|user|> Meals are $69 per day and lodging $110 per night. What is the allowance for 7 days and 6 nights?<|eot|> <|assistant|> ```python days = 7 meal_rate = 69 lodging_rate = 110 nights = days - 1 # 6 total = days * meal_rate + nights * lodging_rate #...
chat
[ { "role": "system", "content": "You are a careful reviewer of figures." }, { "role": "user", "content": "Meals are $69 per day and lodging $110 per night. What is the allowance for 7 days and 6 nights?" }, { "role": "assistant", "content": "```python\ndays = 7\nmeal_rate = 69\nlodgin...
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "1143", "printed": "1143", "notation": null}
nlprog_det-setting-0078036
<|start|><|system|> You may call the tools below. {"name": "code_runner", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> A garage charges $2 an ho...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"code_runner\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\":...
nlprog_det
setting
original
null
deterministic
[]
[]
216
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0078037
688 files go into boxes of 12. How many boxes does that take? 58 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "58", "printed": "58", "notation": null}
nlprog_det-setting-0078038
Fines run at $25 per day up to a maximum of $1,000. How much after 13 days? Let's compute it with Python. ```python per_day = 25 days = 13 cap = 1000 fine = min(per_day * days, cap) # 325 print(fine) ``` Python prints: 325 $325 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "325", "printed": "325", "notation": null}
nlprog_det-setting-0078039
<|start|><|user|> A 220-mile drive at a steady 40 mph takes how many minutes?<|eot|> <|assistant|> 330 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 220-mile drive at a steady 40 mph takes how many minutes?" }, { "role": "assistant", "content": "330 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "330", "printed": "330", "notation": null}
nlprog_det-setting-0078040
<|start|><|user|> An invoice lists 6 clipboards at $4 each, plus 10% sales tax. What is the invoice total?<|eot|> <|assistant|> The invoice total is $26.40.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An invoice lists 6 clipboards at $4 each, plus 10% sales tax. What is the invoice total?" }, { "role": "assistant", "content": "The invoice total is $26.40." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
49
{"gold": "26.40", "printed": "26.40", "notation": null}
nlprog_det-setting-0078041
How many minutes pass from 9:59 AM to 1:52 PM on the same day? Python code: ```python start = 9 * 60 + 59 # 599 end = 13 * 60 + 52 # 832 print(end - start) ``` Run result = 233 It is 233 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "233", "printed": "233", "notation": null}
nlprog_det-setting-0078042
Monthly rent is $2,400. A tenant moves in with 15 days left in a 30-day month. What is the prorated rent? rent = 2400 days_in_month = 30 days_occupied = 15 prorated = rent * days_occupied / days_in_month # 1200.0 print(f"{prorated:.2f}") Output = 1200.00 The tenant owes $1,200.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "1200.00", "printed": "1200.00", "notation": null}
nlprog_det-setting-0078043
What is a 20% tip on a $136.83 bill? Program: ```python bill = 136.83 tip_rate = 20 / 100 # 0.2 tip = bill * tip_rate # 27.366000000000003 print(f"{tip:.2f}") ``` On running, it outputs: 27.37 The tip is $27.37.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "27.37", "printed": "27.37", "notation": null}
nlprog_det-setting-0078044
Someone works 36 hours at $27.55 per hour. What are the earnings? Program: rate = 27.55 hours = 36 earnings = rate * hours # 991.8000000000001 print(f"{earnings:.2f}") The run gives 991.80. That earns $991.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "991.80", "printed": "991.80", "notation": null}
nlprog_det-setting-0078045
A 6 × 5 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up? It takes 8 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0078046
Counting the first and last day, how many days are there from October 6, 2026 through October 25, 2026? Script: from datetime import date first = date(2026, 10, 6) # datetime.date(2026, 10, 6) last = date(2026, 10, 25) # datetime.date(2026, 10, 25) days = (last - first).days + 1 # 20 print(days)...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0078048
What commission does Hugo make on $109,888 in sales at 6%? Written as code: ```python sales = 109888 rate = 6 / 100 commission = sales * rate print(f"{commission:.2f}") ``` (Execution result: 6593.28) Hugo earns $6,593.28.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "6593.28", "printed": "6593.28", "notation": null}
nlprog_det-setting-0078049
What average speed covers 280 miles in 5 hours? Computation in Python: ```python distance = 280 hours = 5 speed = distance / hours print(round(speed)) ``` Printed: 56 It averages 56 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "56", "printed": "56", "notation": null}
nlprog_det-setting-0078050
A 288-page report must be reviewed in 16 days. How many pages a day is that, evenly? Set it up in Python: ```python pages = 288 days = 16 per_day = pages // days # 18 print(per_day) ``` The run gives: 18 That is 18 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0078051
<|start|><|system|> You are a math tutor.<|eot|> <|user|> Paula's scores were 103, 70, 80, 97, 61 and 99. What is the average score?<|eot|> <|assistant|> ```python scores = [103, 70, 80, 97, 61, 99] average = sum(scores) // len(scores) # 85 print(average) ``` Executing it gives 85. The average score is 85.<|eot|> <|e...
chat
[ { "role": "system", "content": "You are a math tutor." }, { "role": "user", "content": "Paula's scores were 103, 70, 80, 97, 61 and 99. What is the average score?" }, { "role": "assistant", "content": "```python\nscores = [103, 70, 80, 97, 61, 99]\naverage = sum(scores) // len(scores...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "85", "printed": "85", "notation": null}
nlprog_det-setting-0078052
What is a 10% tip on a $202.90 bill? Leave $20.29.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
23
{"gold": "20.29", "printed": "20.29", "notation": null}
nlprog_det-setting-0078053
A settlement of $18,000 is split equally among 5 parties. How much does each party receive? Here is a short program for it. ```python settlement = 18000 parties = 5 share = settlement // parties # 3600 print(share) ``` Out: 3600 Each share is $3,600.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "3600", "printed": "3600", "notation": null}
nlprog_det-setting-0078054
<|start|><|system|> Functions: [{"name": "python_exec", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> Water costs $18 a month plus $4.20 for ea...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"python_exec\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}]" ...
nlprog_det
setting
original
null
deterministic
[]
[]
248
{"gold": "93.60", "printed": "93.60", "notation": null}
nlprog_det-setting-0078055
Water costs $20 a month plus $4.75 for each 1,000 gallons over 0,000. What is owed for 16,000 gallons? In code: ```python base = 20 rate = 4.75 used = 16 free = 0 bill = base + rate * max(0, used - free) print(f"{bill:.2f}") ``` The printout reads 96.00. $96.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "96.00", "printed": "96.00", "notation": null}
nlprog_det-setting-0078056
<|start|><|user|> A penalty of $25 a day accrues, capped at $2,500. What is owed after 6 days?<|eot|> <|assistant|> ```python per_day = 25 days = 6 cap = 2500 fine = min(per_day * days, cap) # 150 print(fine) ``` # printed: 150 The fine is $150.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A penalty of $25 a day accrues, capped at $2,500. What is owed after 6 days?" }, { "role": "assistant", "content": "```python\nper_day = 25\ndays = 6\ncap = 2500\nfine = min(per_day * days, cap) # 150\nprint(fine)\n```\n# printed: 150\n\nThe fine is $150." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0078057
A 75-mile drive at a steady 30 mph takes how many minutes? As a program: ```python distance = 75 speed = 30 minutes = distance / speed * 60 # 150.0 print(round(minutes)) ``` Output of the run — 150 150 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0078058
How many minutes pass from 9:14 AM to 10:17 AM on the same day? Computing it: ```python start = 9 * 60 + 14 # 554 end = 10 * 60 + 17 # 617 print(end - start) ``` When run, it prints 63, as expected. It is 63 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "63", "printed": "63", "notation": null}
nlprog_det-setting-0078059
A claim accrued on February 4, 2018. The limitations period is 4 years. On what date does it expire? As a program: ```python from datetime import date accrued = date(2018, 2, 4) # datetime.date(2018, 2, 4) years = 4 expires = accrued.replace(year=accrued.year + years) # datetime.date(2022, 2, 4) print(expires.isofor...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "2022-02-04", "printed": "2022-02-04", "notation": null}
nlprog_det-setting-0078060
<|start|><|system|> Be brief and correct.<|eot|> <|user|> Walls total 1348 sq ft and each can covers 250 sq ft. How many cans should be bought?<|eot|> <|assistant|> 6 cans are needed.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be brief and correct." }, { "role": "user", "content": "Walls total 1348 sq ft and each can covers 250 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "6 cans are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
50
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0078061
A room is 13 feet by 17 feet. Flooring costs $12 per square foot. What does it cost to floor the room? The flooring costs $2,652.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "2652", "printed": "2652", "notation": null}