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-0072808
A car travels 360 miles in 4 hours. What is its average speed in miles per hour? As Python: ```python distance = 360 hours = 4 speed = distance / hours # 90.0 print(round(speed)) ``` Run output — 90 The average speed is 90 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "90", "printed": "90", "notation": null}
nlprog_det-setting-0072809
4 books come back 19 days late, at $0.25 a day each. What is the fine? We write it as a program: ```python per_day = 0.25 days_late = 19 books = 4 fine = per_day * days_late * books print(f"{fine:.2f}") ``` The code prints 19.00. $19.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "19.00", "printed": "19.00", "notation": null}
nlprog_det-setting-0072810
<|start|><|system|> You may call the tools below. [{"name": "eval_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> How m...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"eval_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}...
nlprog_det
setting
original
null
deterministic
[]
[]
235
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0072811
Ivan lends $2,500 at 5% simple interest per year for 5 years. How much interest is earned? Computation in Python: ```python principal = 2500 rate = 5 / 100 # 0.05 years = 5 interest = principal * rate * years # 625.0 print(f"{interest:.2f}") ``` stdout: 625.00 The interest is $625.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "625.00", "printed": "625.00", "notation": null}
nlprog_det-setting-0072812
Rosa was born on March 20, 1964. How old is Rosa on January 23, 2026? Here is a short program for it. ```python from datetime import date born = date(1964, 3, 20) # datetime.date(1964, 3, 20) on = date(2026, 1, 23) # datetime.date(2026, 1, 23) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day))...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "61", "printed": "61", "notation": null}
nlprog_det-setting-0072813
<|start|><|user|> Each storage box holds 25 files. How many boxes are needed for 820 files?<|eot|> <|assistant|> ```python import math files = 820 per_box = 25 boxes = math.ceil(files / per_box) print(boxes) ``` Execution result — 33 It takes 33 boxes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each storage box holds 25 files. How many boxes are needed for 820 files?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 820\nper_box = 25\nboxes = math.ceil(files / per_box)\nprint(boxes)\n```\nExecution result — 33\n\nIt takes 33 boxes." ...
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "33", "printed": "33", "notation": null}
nlprog_det-setting-0072814
<|start|><|user|> Leon earns a 3% commission on $59,647 of sales. What is the commission?<|eot|> <|assistant|> ```python sales = 59647 rate = 3 / 100 # 0.03 commission = sales * rate # 1789.4099999999999 print(f"{commission:.2f}") ``` The program outputs: 1789.41 Leon earns $1,789.41.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Leon earns a 3% commission on $59,647 of sales. What is the commission?" }, { "role": "assistant", "content": "```python\nsales = 59647\nrate = 3 / 100 # 0.03\ncommission = sales * rate # 1789.4099999999999\nprint(f\"{commission:.2f}\")\n```\nThe program outputs: ...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "1789.41", "printed": "1789.41", "notation": null}
nlprog_det-setting-0072815
<|start|><|user|> To read 176 pages in 16 days, how many pages per day are needed?<|eot|> <|assistant|> ```python pages = 176 days = 16 per_day = pages // days print(per_day) ``` Interpreter output — 11 11 pages a day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "To read 176 pages in 16 days, how many pages per day are needed?" }, { "role": "assistant", "content": "```python\npages = 176\ndays = 16\nper_day = pages // days\nprint(per_day)\n```\nInterpreter output — 11\n\n11 pages a day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0072816
<|start|><|system|> Tools you may use: {"name": "compute", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> From 1995 to 2021, how many years is that?<...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"compute\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}" }...
nlprog_det
setting
original
null
deterministic
[]
[]
179
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0072817
One can of paint covers 300 square feet. How many cans are needed for 146 square feet of wall? Here is the program. ```python import math area = 146 coverage = 300 cans = math.ceil(area / coverage) # 1 print(cans) ``` Execution result: 1 1 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "1", "printed": "1", "notation": null}
nlprog_det-setting-0072818
<|start|><|user|> A penalty of $25 a day accrues, capped at $1,000. What is owed after 46 days?<|eot|> <|assistant|> The fine is $1,000.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A penalty of $25 a day accrues, capped at $1,000. What is owed after 46 days?" }, { "role": "assistant", "content": "The fine is $1,000." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0072820
Fines run at $50 per day up to a maximum of $2,500. How much after 26 days? Written as code: ```python per_day = 50 days = 26 cap = 2500 fine = min(per_day * days, cap) # 1300 print(fine) ``` The program outputs: 1300 The fine is $1,300.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "1300", "printed": "1300", "notation": null}
nlprog_det-setting-0072821
Monthly rent is $1,200. A tenant moves in with 24 days left in a 30-day month. What is the prorated rent? Coded up: ```python rent = 1200 days_in_month = 30 days_occupied = 24 prorated = rent * days_occupied / days_in_month # 960.0 print(f"{prorated:.2f}") ``` When run, it prints: 960.00 The tenant owes $960.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "960.00", "printed": "960.00", "notation": null}
nlprog_det-setting-0072822
<|start|><|system|> You are a math tutor.<|eot|> <|user|> Counting the first and last day, how many days are there from February 16, 2018 through March 5, 2018?<|eot|> <|assistant|> ```python from datetime import date first = date(2018, 2, 16) # datetime.date(2018, 2, 16) last = date(2018, 3, 5) # datetime.date(2018,...
chat
[ { "role": "system", "content": "You are a math tutor." }, { "role": "user", "content": "Counting the first and last day, how many days are there from February 16, 2018 through March 5, 2018?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(201...
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0072823
With 40% off, what does a $40 printer cost? We write it as a program: ```python price = 40 discount = 40 / 100 # 0.4 sale_price = price * (1 - discount) # 24.0 print(f"{sale_price:.2f}") ``` # execution result: 24.00 It costs $24.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "24.00", "printed": "24.00", "notation": null}
nlprog_det-setting-0072824
5 friends split a $150 bill plus a 20% tip evenly. How much does each pay? Written as code: ```python bill = 150 tip_rate = 20 / 100 # 0.2 people = 5 each = bill * (1 + tip_rate) / people # 36.0 print(f"{each:.2f}") ``` (Program output: 36.00) The share is $36.00 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "36.00", "printed": "36.00", "notation": null}
nlprog_det-setting-0072826
<|start|><|system|> Answer the user's question directly.<|eot|> <|user|> Monthly rent is $1,500. A tenant moves in with 23 days left in a 31-day month. What is the prorated rent?<|eot|> <|assistant|> ```python rent = 1500 days_in_month = 31 days_occupied = 23 prorated = rent * days_occupied / days_in_month # 1112.9032...
chat
[ { "role": "system", "content": "Answer the user's question directly." }, { "role": "user", "content": "Monthly rent is $1,500. A tenant moves in with 23 days left in a 31-day month. What is the prorated rent?" }, { "role": "assistant", "content": "```python\nrent = 1500\ndays_in_mont...
nlprog_det
setting
original
null
deterministic
[]
[]
160
{"gold": "1112.90", "printed": "1112.90", "notation": null}
nlprog_det-setting-0072827
Counting only Monday through Friday, how many business days are there after July 27, 2022 through August 14, 2022? We can compute it in Python. ```python from datetime import date, timedelta start = date(2022, 7, 27) end = date(2022, 8, 14) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
158
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0072828
9 boxes hold 8 paper reams each. After 19 are handed out, how many are left? ```python boxes = 9 per_box = 8 given_away = 19 left = boxes * per_box - given_away # 53 print(left) ``` The program prints: 53 53 paper reams are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "53", "printed": "53", "notation": null}
nlprog_det-setting-0072829
A hall has 13 rows of 21 seats, and 19 seats are empty. How many people are seated? Python: rows = 13 per_row = 21 empty = 19 seated = rows * per_row - empty # 254 print(seated) Interpreter output — 254 254 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "254", "printed": "254", "notation": null}
nlprog_det-setting-0072830
Equal monthly payments repay $3,600 plus 8% simple yearly interest over 12 months. How large is a payment? Python code: ```python principal = 3600 annual_rate = 8 / 100 # 0.08 months = 12 interest = principal * annual_rate * months / 12 # 288.0 payment = (principal + interest) / months # 324.0 print(f"{payment:.2f}...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "324.00", "printed": "324.00", "notation": null}
nlprog_det-setting-0072831
<|start|><|user|> What is 20 degrees Celsius in Fahrenheit?<|eot|> <|assistant|> ```python celsius = 20 fahrenheit = celsius * 9 / 5 + 32 # 68.0 print(round(fahrenheit)) ``` The run gives 68. It equals 68 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is 20 degrees Celsius in Fahrenheit?" }, { "role": "assistant", "content": "```python\ncelsius = 20\nfahrenheit = celsius * 9 / 5 + 32 # 68.0\nprint(round(fahrenheit))\n```\nThe run gives 68.\n\nIt equals 68 degrees Fahrenheit." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "68", "printed": "68", "notation": null}
nlprog_det-setting-0072832
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> How many units at $20 each (variable cost $12) cover $9,000 of fixed costs?<|eot|> <|assistant|> import math fixed = 9000 price = 20 variable = 12 units = math.ceil(fixed / (price - variable)) # 1125 print(units) When run, it pri...
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "role": "user", "content": "How many units at $20 each (variable cost $12) cover $9,000 of fixed costs?" }, { "role": "assistant", "content": " import math\n fixed = 9000\n price = 20\n variable = 12\n ...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "1125", "printed": "1125", "notation": null}
nlprog_det-setting-0072833
How many 2-foot square tiles cover a 18 ft by 5 ft floor (round up)? Program: ```python import math length = 18 width = 5 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 23 print(tiles) ``` Run result: 23 It takes 23 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0072834
<|start|><|system|> Tool definitions: {"name": "eval_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}} {"name": "convert_units", "description": "Convert ...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"eval_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program\...
nlprog_det
setting
original
null
deterministic
[]
[]
385
{"gold": "44", "printed": "44", "notation": null}
nlprog_det-setting-0072835
<|start|><|user|> A count moves from 400 to 480. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> old = 400 new = 480 change = (new - old) / old * 100 # 20.0 print(round(change)) Shell output — 20 The change is 20%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A count moves from 400 to 480. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": " old = 400\n new = 480\n change = (new - old) / old * 100 # 20.0\n print(round(change))\nShell output — 20\n\nThe change i...
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0072836
Helga lends $2,500 at 4% simple interest per year for 2 years. How much interest is earned? Let the code do the arithmetic: ```python principal = 2500 rate = 4 / 100 # 0.04 years = 2 interest = principal * rate * years # 200.0 print(f"{interest:.2f}") ``` Shell output: 200.00 It earns $200.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "200.00", "printed": "200.00", "notation": null}
nlprog_det-setting-0072837
How many whole days and leftover hours are in 36 hours? Set it up in Python: ```python hours = 36 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Run result — 1 days and 12 hours 36 hours is 1 days and 12 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "1 days and 12 hours", "printed": "1 days and 12 hours", "notation": null}
nlprog_det-setting-0072838
Buying 2 tape rolls at $25 each, 2 chairs at $16 each, 6 envelopes at $22 each, someone hands over $250. What change comes back? In code: ```python items = [(2, 25), (2, 16), (6, 22)] total = sum(q * p for q, p in items) # 214 paid = 250 change = paid - total # 36 print(change) ``` The interpreter prints 36. $36 co...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0072839
A lease runs for 6 months at $975 per month. How much rent is paid over the whole term? As Python: ```python monthly_rent = 975 months = 6 total = monthly_rent * months # 5850 print(total) ``` Run it and it prints 5850. The rent over the term is $5,850.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "5850", "printed": "5850", "notation": null}
nlprog_det-setting-0072840
Mei earns a 4% commission on $67,029 of sales. What is the commission? We write it as a program: ```python sales = 67029 rate = 4 / 100 # 0.04 commission = sales * rate # 2681.16 print(f"{commission:.2f}") ``` It prints 2681.16, as expected. Mei earns $2,681.16.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "2681.16", "printed": "2681.16", "notation": null}
nlprog_det-setting-0072841
<|start|><|user|> Papers were served by mail on January 2, 2022. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date?<|eot|> <|assistant|> It is due February 4, 2022.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Papers were served by mail on January 2, 2022. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date?" }, { "role": "assistant", "content": "It is due February 4, 2022." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
50
{"gold": "2022-02-04", "printed": "2022-02-04", "notation": null}
nlprog_det-setting-0072842
<|start|><|user|> 14 binders cost $6 apiece. With 8% tax added, what is the total?<|eot|> <|assistant|> quantity = 14 unit_price = 6 subtotal = quantity * unit_price # 84 total = subtotal * (1 + 8 / 100) # 90.72 print(f"{total:.2f}") When run, it prints: 90.72 The total with tax is $90.72.<|eot|>...
chat
[ { "role": "user", "content": "14 binders cost $6 apiece. With 8% tax added, what is the total?" }, { "role": "assistant", "content": " quantity = 14\n unit_price = 6\n subtotal = quantity * unit_price # 84\n total = subtotal * (1 + 8 / 100) # 90.72\n print(f\"{total:.2f}\")\nWhe...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "90.72", "printed": "90.72", "notation": null}
nlprog_det-setting-0072843
What is the total rent on a 12-month lease at $1,475 a month? Python: ```python monthly_rent = 1475 months = 12 total = monthly_rent * months # 17700 print(total) ``` stdout: 17700 The rent over the term is $17,700.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "17700", "printed": "17700", "notation": null}
nlprog_det-setting-0072844
Goods bought on May 11, 2022 carry a 12-month warranty. When does it expire? The Python version: ```python from datetime import date start = date(2022, 5, 11) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` It o...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "2023-05-11", "printed": "2023-05-11", "notation": null}
nlprog_det-setting-0072845
Tariq buys 5 boxes of 6 sticky pads each and gives away 12 sticky pads. How many sticky pads are left? Python: ```python boxes = 5 per_box = 6 given_away = 12 left = boxes * per_box - given_away # 18 print(left) ``` Output — 18 18 sticky pads are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0072846
A 130-page report must be reviewed in 5 days. How many pages a day is that, evenly? Set it up in Python: ```python pages = 130 days = 5 per_day = pages // days print(per_day) ``` Program output: 26 That is 26 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0072847
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> 22 batteries cost $3 apiece. With 7% tax added, what is the total?<|eot|> <|assistant|> ```python quantity = 22 unit_price = 3 subtotal = quantity * unit_price # 66 total = subtotal * (1 + 7 / 100) # 70.62 print(f"{total:.2f}") ``` The program outputs...
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "role": "user", "content": "22 batteries cost $3 apiece. With 7% tax added, what is the total?" }, { "role": "assistant", "content": "```python\nquantity = 22\nunit_price = 3\nsubtotal = quantity * unit_price # 66\...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "70.62", "printed": "70.62", "notation": null}
nlprog_det-setting-0072848
<|start|><|system|> You have access to these functions: {"name": "eval_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}} {"name": "translate...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"eval_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source cod...
nlprog_det
setting
original
null
deterministic
[]
[]
396
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0072849
A 2 lb package ships at $12 base plus $0.75/lb. What is the charge? Let the code do the arithmetic: ```python base = 12 per_pound = 0.75 weight = 2 cost = base + per_pound * weight # 13.5 print(f"{cost:.2f}") ``` Console: 13.50 Shipping costs $13.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "13.50", "printed": "13.50", "notation": null}
nlprog_det-setting-0072850
<|start|><|user|> 7 walks at 150 calories each burn how many calories in total?<|eot|> <|assistant|> ```python per_session = 150 sessions = 7 total = per_session * sessions # 1050 print(total) ``` Run result = 1050 1050 calories in total.<|eot|> <|end|>
chat
[ { "role": "user", "content": "7 walks at 150 calories each burn how many calories in total?" }, { "role": "assistant", "content": "```python\nper_session = 150\nsessions = 7\ntotal = per_session * sessions # 1050\nprint(total)\n```\nRun result = 1050\n\n1050 calories in total." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "1050", "printed": "1050", "notation": null}
nlprog_det-setting-0072851
<|start|><|system|> Give the answer first.<|eot|> <|user|> An invoice lists 37 chairs at $6 each, plus 8% sales tax. What is the invoice total?<|eot|> <|assistant|> ```python quantity = 37 unit_price = 6 subtotal = quantity * unit_price # 222 total = subtotal * (1 + 8 / 100) # 239.76000000000002 print(f"{total:.2f}")...
chat
[ { "role": "system", "content": "Give the answer first." }, { "role": "user", "content": "An invoice lists 37 chairs at $6 each, plus 8% sales tax. What is the invoice total?" }, { "role": "assistant", "content": "```python\nquantity = 37\nunit_price = 6\nsubtotal = quantity * unit_pr...
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "239.76", "printed": "239.76", "notation": null}
nlprog_det-setting-0072853
10.5 hours of work at $150 an hour: what is the total charge? The program: ```python hours = 10.5 rate = 150 bill = hours * rate # 1575.0 print(f"{bill:.2f}") ``` stdout: 1575.00 The bill is $1,575.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "1575.00", "printed": "1575.00", "notation": null}
nlprog_det-setting-0072854
Counting the first and last day, how many days are there from December 14, 2021 through December 28, 2021? Set it up in Python: ```python from datetime import date first = date(2021, 12, 14) # datetime.date(2021, 12, 14) last = date(2021, 12, 28) # datetime.date(2021, 12, 28) days = (last - first).days + 1 # 15 pri...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0072855
<|start|><|user|> A lawyer's fee is 40% of a $150,000 recovery. How large is the fee?<|eot|> <|assistant|> The lawyer's fee comes to $60,000.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lawyer's fee is 40% of a $150,000 recovery. How large is the fee?" }, { "role": "assistant", "content": "The lawyer's fee comes to $60,000.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "60000.00", "printed": "60000.00", "notation": null}
nlprog_det-setting-0072856
Meals are $79 per day and lodging $110 per night. What is the allowance for 8 days and 7 nights? ```python days = 8 meal_rate = 79 lodging_rate = 110 nights = days - 1 # 7 total = days * meal_rate + nights * lodging_rate # 1402 print(total) ``` Execution result — 1402 The allowance is $1,402.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "1402", "printed": "1402", "notation": null}
nlprog_det-setting-0072857
How many weekdays (Monday to Friday) fall after April 14, 2019 up to and including May 7, 2019? There are 17 business days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0072858
What is the total rent on a 6-month lease at $975 a month? Python code: ```python monthly_rent = 975 months = 6 total = monthly_rent * months # 5850 print(total) ``` Result: 5850 The rent over the term is $5,850.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "5850", "printed": "5850", "notation": null}
nlprog_det-setting-0072859
Meals are $59 per day and lodging $175 per night. What is the allowance for 3 days and 2 nights? Program: ```python days = 3 meal_rate = 59 lodging_rate = 175 nights = days - 1 # 2 total = days * meal_rate + nights * lodging_rate # 527 print(total) ``` stdout = 527 That comes to $527.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "527", "printed": "527", "notation": null}
nlprog_det-setting-0072860
What average speed covers 138 miles in 0.5 hours? The average speed is 276 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
26
{"gold": "276", "printed": "276", "notation": null}
nlprog_det-setting-0072861
2 friends split a $210 bill plus a 20% tip evenly. How much does each pay? One way, in code: ```python bill = 210 tip_rate = 20 / 100 people = 2 each = bill * (1 + tip_rate) / people print(f"{each:.2f}") ``` Output: 126.00 Each person pays $126.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "126.00", "printed": "126.00", "notation": null}
nlprog_det-setting-0072862
After a 40% fee is taken from a $72,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share? In Python: award = 72000 fee = award * 40 / 100 # 28800.0 remaining = award - fee # 43200.0 per_client = remaining / 2 # 21600.0 print(f"{per_client:.2f}") The script print...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "21600.00", "printed": "21600.00", "notation": null}
nlprog_det-setting-0072864
Of a $10,000 budget, $2,300 has been spent. What percent is that? Here is a short program for it. ```python budget = 10000 spent = 2300 percent = spent / budget * 100 # 23.0 print(round(percent, 1)) ``` Python prints: 23.0 23.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "23.0", "printed": "23.0", "notation": null}
nlprog_det-setting-0072865
Yoko buys 6 boxes of 10 markers each and gives away 5 markers. How many markers are left? ```python boxes = 6 per_box = 10 given_away = 5 left = boxes * per_box - given_away # 55 print(left) ``` # printed: 55 55 markers are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "55", "printed": "55", "notation": null}
nlprog_det-setting-0072866
<|start|><|user|> At 30 miles per hour, how many minutes does a 130-mile trip take?<|eot|> <|assistant|> The trip takes 260 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 30 miles per hour, how many minutes does a 130-mile trip take?" }, { "role": "assistant", "content": "The trip takes 260 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "260", "printed": "260", "notation": null}
nlprog_det-setting-0072867
<|start|><|user|> Convert 0 °C to Fahrenheit.<|eot|> <|assistant|> ```python celsius = 0 fahrenheit = celsius * 9 / 5 + 32 # 32.0 print(round(fahrenheit)) ``` Output of the run: 32 It equals 32 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 0 °C to Fahrenheit." }, { "role": "assistant", "content": "```python\ncelsius = 0\nfahrenheit = celsius * 9 / 5 + 32 # 32.0\nprint(round(fahrenheit))\n```\nOutput of the run: 32\n\nIt equals 32 degrees Fahrenheit." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0072868
Starting from $20,000, the team spends $1,367, $2,062. What remains? $16,571 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "16571", "printed": "16571", "notation": null}
nlprog_det-setting-0072869
<|start|><|user|> A party has 28 days to respond to a motion served on September 2, 2023, with 3 days added because service was by mail. When is the response due?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2023, 9, 2) # datetime.date(2023, 9, 2) response_days = 28 mail_days = 3 d...
chat
[ { "role": "user", "content": "A party has 28 days to respond to a motion served on September 2, 2023, with 3 days added because service was by mail. When is the response due?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nserved = date(2023, 9, 2) # date...
nlprog_det
setting
original
null
deterministic
[]
[]
171
{"gold": "2023-10-03", "printed": "2023-10-03", "notation": null}
nlprog_det-setting-0072870
To read 252 pages in 14 days, how many pages per day are needed? A few lines of Python do it: ```python pages = 252 days = 14 per_day = pages // days # 18 print(per_day) ``` The printout reads 18. 18 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0072871
<|start|><|user|> Each storage box holds 15 files. How many boxes are needed for 862 files?<|eot|> <|assistant|> ```python import math files = 862 per_box = 15 boxes = math.ceil(files / per_box) # 58 print(boxes) ``` This prints 58. It takes 58 boxes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each storage box holds 15 files. How many boxes are needed for 862 files?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 862\nper_box = 15\nboxes = math.ceil(files / per_box) # 58\nprint(boxes)\n```\nThis prints 58.\n\nIt takes 58 boxes." ...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "58", "printed": "58", "notation": null}
nlprog_det-setting-0072872
<|start|><|user|> Zoe buys 4 boxes of 6 labels each and gives away 4 labels. How many labels are left?<|eot|> <|assistant|> ```python boxes = 4 per_box = 6 given_away = 4 left = boxes * per_box - given_away # 20 print(left) ``` The program prints 20. That leaves 20 labels.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Zoe buys 4 boxes of 6 labels each and gives away 4 labels. How many labels are left?" }, { "role": "assistant", "content": "```python\nboxes = 4\nper_box = 6\ngiven_away = 4\nleft = boxes * per_box - given_away # 20\nprint(left)\n```\nThe program prints 20.\n\nThat...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0072873
<|start|><|system|> Available functions (JSON Schema): {"name": "interpreter", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> A measure needs at least ...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"interpreter\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [...
nlprog_det
setting
original
null
deterministic
[]
[]
211
{"gold": "55", "printed": "55", "notation": null}
nlprog_det-setting-0072874
Revenue is $6,500 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)? A short script: ```python revenue = 6500 costs = 4000 profit = revenue - costs # 2500 margin = profit / revenue * 100 # 38.46153846153847 print(round(margin, 1)) ``` stdout = 38.5 Profit is 38.5% of revenue.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "38.5", "printed": "38.5", "notation": null}
nlprog_det-setting-0072875
What simple interest does $20,000 earn at 4% a year over 3 years? As a program: ```python principal = 20000 rate = 4 / 100 # 0.04 years = 3 interest = principal * rate * years # 2400.0 print(f"{interest:.2f}") ``` # out: 2400.00 It earns $2,400.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "2400.00", "printed": "2400.00", "notation": null}
nlprog_det-setting-0072876
Equipment costs $45,000, has a salvage value of $2,000, and a useful life of 5 years. What is the straight-line depreciation per year? Script: ```python cost = 45000 salvage = 2000 years = 5 per_year = (cost - salvage) / years # 8600.0 print(f"{per_year:.2f}") ``` That prints: 8600.00 $8,600.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "8600.00", "printed": "8600.00", "notation": null}
nlprog_det-setting-0072877
<|start|><|user|> Counting only Monday through Friday, how many business days are there after June 27, 2020 through July 17, 2020?<|eot|> <|assistant|> There are 15 business days.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Counting only Monday through Friday, how many business days are there after June 27, 2020 through July 17, 2020?" }, { "role": "assistant", "content": "There are 15 business days." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0072880
<|start|><|user|> If a 75-minute appointment begins at 2:30 PM, what time does it finish?<|eot|> <|assistant|> The appointment finishes at 3:45 PM.<|eot|> <|end|>
chat
[ { "role": "user", "content": "If a 75-minute appointment begins at 2:30 PM, what time does it finish?" }, { "role": "assistant", "content": "The appointment finishes at 3:45 PM." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "3:45 PM", "printed": "3:45 PM", "notation": null}
nlprog_det-setting-0072881
<|start|><|system|> Tools you may use: [{"name": "math_engine", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> Sara was born on August 26, 1968....
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"math_engine\", \"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
[]
[]
244
{"gold": "59", "printed": "59", "notation": null}
nlprog_det-setting-0072882
<|start|><|user|> How many meters are in 59.5 kilometers?<|eot|> <|assistant|> ```python km = 59.5 meters = km * 1000 # 59500.0 print(round(meters)) ``` Python prints: 59500 59,500 m.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many meters are in 59.5 kilometers?" }, { "role": "assistant", "content": "```python\nkm = 59.5\nmeters = km * 1000 # 59500.0\nprint(round(meters))\n```\nPython prints: 59500\n\n59,500 m." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "59500", "printed": "59500", "notation": null}
nlprog_det-setting-0072883
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}} {"name": "run_python", "descriptio...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": ...
nlprog_det
setting
original
null
deterministic
[]
[]
309
{"gold": "53.98", "printed": "53.98", "notation": null}
nlprog_det-setting-0072885
A 600-page report must be reviewed in 12 days. How many pages a day is that, evenly? That is 50 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0072886
How many 2-foot square tiles cover a 5 ft by 10 ft floor (round up)? Coded up: ```python import math length = 5 width = 10 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 13 print(tiles) ``` # execution result: 13 13 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0072887
A court charges $15 per request plus $0.50 per page after the first 20 pages. What does a 29-page copy cost? The copy costs $19.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "19.50", "printed": "19.50", "notation": null}
nlprog_det-setting-0072888
With 5 rows of 21 chairs and 39 empty chairs, how many chairs are taken? Python version: ```python rows = 5 per_row = 21 empty = 39 seated = rows * per_row - empty # 66 print(seated) ``` Program output — 66 66 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "66", "printed": "66", "notation": null}
nlprog_det-setting-0072889
<|start|><|user|> With $20,000 in costs and $22,500 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|> <|assistant|> revenue = 22500 costs = 20000 profit = revenue - costs # 2500 margin = profit / revenue * 100 # 11.11111111111111 print(round(margin, 1)) On running, it out...
chat
[ { "role": "user", "content": "With $20,000 in costs and $22,500 in revenue, what percent of revenue is profit? Round to one decimal." }, { "role": "assistant", "content": " revenue = 22500\n costs = 20000\n profit = revenue - costs # 2500\n margin = profit / revenue * 100 # 11.1111...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "11.1", "printed": "11.1", "notation": null}
nlprog_det-setting-0072890
<|start|><|user|> 3 clients win $30,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> ```python award = 30000 fee = award * 25 / 100 # 7500.0 remaining = award - fee # 22500.0 per_client = remaining / 3 # 7500.0 print(f"{per_client:.2f}") ``` # printed resu...
chat
[ { "role": "user", "content": "3 clients win $30,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": "```python\naward = 30000\nfee = award * 25 / 100 # 7500.0\nremaining = award - fee # 22500.0\nper_client = remaining /...
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "7500.00", "printed": "7500.00", "notation": null}
nlprog_det-setting-0072891
<|start|><|user|> A $150 dinner bill gets a 20% tip, and 2 people share the cost equally. What is each person's share?<|eot|> <|assistant|> ```python bill = 150 tip_rate = 20 / 100 # 0.2 people = 2 each = bill * (1 + tip_rate) / people # 90.0 print(f"{each:.2f}") ``` Program output: 90.00 Each person pays $90.00.<|e...
chat
[ { "role": "user", "content": "A $150 dinner bill gets a 20% tip, and 2 people share the cost equally. What is each person's share?" }, { "role": "assistant", "content": "```python\nbill = 150\ntip_rate = 20 / 100 # 0.2\npeople = 2\neach = bill * (1 + tip_rate) / people # 90.0\nprint(f\"{each:....
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "90.00", "printed": "90.00", "notation": null}
nlprog_det-setting-0072892
Equal monthly payments repay $2,400 plus 10% simple yearly interest over 36 months. How large is a payment? Here's the code. ```python principal = 2400 annual_rate = 10 / 100 # 0.1 months = 36 interest = principal * annual_rate * months / 12 # 720.0 payment = (principal + interest) / months # 86.66666666666667 prin...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "86.67", "printed": "86.67", "notation": null}
nlprog_det-setting-0072894
<|start|><|user|> A car travels 415 miles in 5 hours. What is its average speed in miles per hour?<|eot|> <|assistant|> distance = 415 hours = 5 speed = distance / hours # 83.0 print(round(speed)) It prints: 83 It averages 83 miles per hour.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A car travels 415 miles in 5 hours. What is its average speed in miles per hour?" }, { "role": "assistant", "content": " distance = 415\n hours = 5\n speed = distance / hours # 83.0\n print(round(speed))\nIt prints: 83\n\nIt averages 83 miles per hour."...
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "83", "printed": "83", "notation": null}
nlprog_det-setting-0072895
The landlord deducts $120 and $45 from a $1,000 deposit. What is returned to the tenant? In code: ```python deposit = 1000 deductions = [120, 45] refund = deposit - sum(deductions) # 835 print(refund) ``` The run gives 835, as expected. $835 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "835", "printed": "835", "notation": null}
nlprog_det-setting-0072896
<|start|><|user|> Prorate $900 of monthly rent for 17 days of a 31-day month.<|eot|> <|assistant|> ```python rent = 900 days_in_month = 31 days_occupied = 17 prorated = rent * days_occupied / days_in_month # 493.5483870967742 print(f"{prorated:.2f}") ``` (Output: 493.55) The prorated rent is $493.55.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Prorate $900 of monthly rent for 17 days of a 31-day month." }, { "role": "assistant", "content": "```python\nrent = 900\ndays_in_month = 31\ndays_occupied = 17\nprorated = rent * days_occupied / days_in_month # 493.5483870967742\nprint(f\"{prorated:.2f}\")\n```\n(...
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "493.55", "printed": "493.55", "notation": null}
nlprog_det-setting-0072897
Rent of $1,800 goes up 2%. What is the new rent? Python makes this quick: ```python rent = 1800 increase = 2 / 100 # 0.02 new_rent = rent * (1 + increase) # 1836.0 print(f"{new_rent:.2f}") ``` Running it prints: 1836.00 The new rent is $1,836.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "1836.00", "printed": "1836.00", "notation": null}
nlprog_det-setting-0072899
What simple interest does $12,000 earn at 8% a year over 4 years? Here is the program. principal = 12000 rate = 8 / 100 # 0.08 years = 4 interest = principal * rate * years # 3840.0 print(f"{interest:.2f}") On running, it outputs 3840.00. It earns $3,840.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "3840.00", "printed": "3840.00", "notation": null}
nlprog_det-setting-0072900
<|start|><|user|> To read 588 pages in 14 days, how many pages per day are needed?<|eot|> <|assistant|> pages = 588 days = 14 per_day = pages // days # 42 print(per_day) Run it and it prints: 42 That is 42 pages per day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "To read 588 pages in 14 days, how many pages per day are needed?" }, { "role": "assistant", "content": " pages = 588\n days = 14\n per_day = pages // days # 42\n print(per_day)\nRun it and it prints: 42\n\nThat is 42 pages per day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "42", "printed": "42", "notation": null}
nlprog_det-setting-0072901
Which is cheaper per unit: 12 for $7.16 (A) or 30 for $11.68 (B)? Here is a short program for it. ```python pack_a = 7.16 / 12 # 0.5966666666666667 pack_b = 11.68 / 30 # 0.3893333333333333 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` (Program output: B) Pack B is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0072902
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "compute", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> Find t...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"compute\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}...
nlprog_det
setting
original
null
deterministic
[]
[]
209
{"gold": "82", "printed": "82", "notation": null}
nlprog_det-setting-0072903
<|start|><|user|> Each of Pilar's runs burns 200 calories. How many calories over 3 runs?<|eot|> <|assistant|> ```python per_session = 200 sessions = 3 total = per_session * sessions # 600 print(total) ``` Execution result — 600 That burns 600 calories.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each of Pilar's runs burns 200 calories. How many calories over 3 runs?" }, { "role": "assistant", "content": "```python\nper_session = 200\nsessions = 3\ntotal = per_session * sessions # 600\nprint(total)\n```\nExecution result — 600\n\nThat burns 600 calories." ...
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0072904
A shift runs from 8:55 AM to 10:43 AM. How long is it in minutes? In code: ```python start = 8 * 60 + 55 # 535 end = 10 * 60 + 43 # 643 print(end - start) ``` The interpreter prints 108. 108 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "108", "printed": "108", "notation": null}
nlprog_det-setting-0072905
To read 240 pages in 20 days, how many pages per day are needed? Program: ```python pages = 240 days = 20 per_day = pages // days # 12 print(per_day) ``` Executing it gives: 12 That is 12 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0072906
<|start|><|system|> You are a careful reviewer of figures.<|eot|> <|user|> Helga lends $8,000 at 6% simple interest per year for 2 years. How much interest is earned?<|eot|> <|assistant|> ```python principal = 8000 rate = 6 / 100 # 0.06 years = 2 interest = principal * rate * years # 960.0 print(f"{interest:.2f}") ``...
chat
[ { "role": "system", "content": "You are a careful reviewer of figures." }, { "role": "user", "content": "Helga lends $8,000 at 6% simple interest per year for 2 years. How much interest is earned?" }, { "role": "assistant", "content": "```python\nprincipal = 8000\nrate = 6 / 100 # 0...
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "960.00", "printed": "960.00", "notation": null}
nlprog_det-setting-0072908
On which weekday does June 15, 1995 fall? The computation: ```python from datetime import date hearing = date(1995, 6, 15) # datetime.date(1995, 6, 15) print(hearing.strftime("%A")) ``` The code prints: Thursday June 15, 1995 is a Thursday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "Thursday", "printed": "Thursday", "notation": null}
nlprog_det-setting-0072909
<|start|><|user|> Yoko's scores were 60, 50 and 70. What is the average score?<|eot|> <|assistant|> The average score is 60.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Yoko's scores were 60, 50 and 70. What is the average score?" }, { "role": "assistant", "content": "The average score is 60." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0072910
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> How many whole days and leftover hours are in 348 hours?<|eot|> <|assistant|> That is 14 days and 12 hours.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "How many whole days and leftover hours are in 348 hours?" }, { "role": "assistant", "content": "That is 14 days and 12 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "14 days and 12 hours", "printed": "14 days and 12 hours", "notation": null}
nlprog_det-setting-0072911
How long, in days, is it from February 23, 2018 until March 5, 2019? Translated to Python: ```python from datetime import date first = date(2018, 2, 23) # datetime.date(2018, 2, 23) second = date(2019, 3, 5) # datetime.date(2019, 3, 5) print((second - first).days) ``` Out — 375 There are 375 days between the two da...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "375", "printed": "375", "notation": null}
nlprog_det-setting-0072912
<|start|><|user|> A quorum is 2/3 of the 31 members, rounded up. How many members make a quorum?<|eot|> <|assistant|> ```python import math members = 31 quorum = math.ceil(members * 2 / 3) # 21 print(quorum) ``` Execution result: 21 That is 21 members.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A quorum is 2/3 of the 31 members, rounded up. How many members make a quorum?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 31\nquorum = math.ceil(members * 2 / 3) # 21\nprint(quorum)\n```\nExecution result: 21\n\nThat is 21 members." ...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0072913
Papers were served by mail on February 11, 2021. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date? In code: from datetime import date, timedelta served = date(2021, 2, 11) # datetime.date(2021, 2, 11) response_days = 28 mail_days = 3 due = served + timed...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
167
{"gold": "2021-03-14", "printed": "2021-03-14", "notation": null}
nlprog_det-setting-0072914
<|start|><|user|> What commission does Bruna make on $96,540 in sales at 2%?<|eot|> <|assistant|> The commission is $1,930.80.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What commission does Bruna make on $96,540 in sales at 2%?" }, { "role": "assistant", "content": "The commission is $1,930.80." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "1930.80", "printed": "1930.80", "notation": null}
nlprog_det-setting-0072915
<|start|><|system|> Answer in plain English.<|eot|> <|user|> 206 volunteers are split into 4 equal teams. How many are on each team, and how many are left over?<|eot|> <|assistant|> total = 206 groups = 4 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") The ...
chat
[ { "role": "system", "content": "Answer in plain English." }, { "role": "user", "content": "206 volunteers are split into 4 equal teams. How many are on each team, and how many are left over?" }, { "role": "assistant", "content": " total = 206\n groups = 4\n per_group, remain...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "51 each, 2 left over", "printed": "51 each, 2 left over", "notation": null}
nlprog_det-setting-0072916
At an exchange rate of 1.31 EUR per USD, how many EUR is 5,064 USD? In Python: amount = 5064 rate = 1.31 converted = amount * rate print(f"{converted:.2f}") Running it prints 6633.84. It converts to 6,633.84 EUR.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "6633.84", "printed": "6633.84", "notation": null}
nlprog_det-setting-0072917
Someone born July 1, 1950 turns how old by January 5, 2022? Give the age in whole years. We can compute it in Python. ```python from datetime import date born = date(1950, 7, 1) # datetime.date(1950, 7, 1) on = date(2022, 1, 5) # datetime.date(2022, 1, 5) age = on.year - born.year - ((on.month, on.day) < (born.month...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
159
{"gold": "71", "printed": "71", "notation": null}