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-0070682
<|start|><|user|> How many meters are in 9.1 kilometers?<|eot|> <|assistant|> km = 9.1 meters = km * 1000 # 9100.0 print(round(meters)) The script prints 9100, as expected. 9,100 m.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many meters are in 9.1 kilometers?" }, { "role": "assistant", "content": " km = 9.1\n meters = km * 1000 # 9100.0\n print(round(meters))\nThe script prints 9100, as expected.\n\n9,100 m." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
70
{"gold": "9100", "printed": "9100", "notation": null}
nlprog_det-setting-0070683
How many days are there from August 12, 2018 to September 26, 2018? Here is a short program for it. ```python from datetime import date first = date(2018, 8, 12) second = date(2018, 9, 26) print((second - first).days) ``` That prints 45. It is 45 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "45", "printed": "45", "notation": null}
nlprog_det-setting-0070684
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> Meals are $64 per day and lodging $110 per night. What is the allowance for 5 days and 4 nights?<|eot|> <|assistant|> ```python days = 5 meal_rate = 64 lodging_rate = 110 nights = days - 1 # 4 total = days * meal_rate + nights * lodging_rate # 760 ...
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "Meals are $64 per day and lodging $110 per night. What is the allowance for 5 days and 4 nights?" }, { "role": "assistant", "content": "```python\ndays = 5\nmeal_rate = 64\nlodging_rat...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "760", "printed": "760", "notation": null}
nlprog_det-setting-0070685
After an initial $3,000, the remainder of a $60,000 grant is paid in 3 equal parts. What is each part? Script: grant = 60000 up_front = 3000 installments = 3 each = (grant - up_front) / installments # 19000.0 print(f"{each:.2f}") Run output — 19000.00 $19,000.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "19000.00", "printed": "19000.00", "notation": null}
nlprog_det-setting-0070686
Revenue is $25,000 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)? The program: revenue = 25000 costs = 20000 profit = revenue - costs # 5000 margin = profit / revenue * 100 # 20.0 print(round(margin, 1)) The script prints 20.0, as expected. Profit is 20.0...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "20.0", "printed": "20.0", "notation": null}
nlprog_det-setting-0070687
<|start|><|user|> 128 of 200 members attended. What percent attended?<|eot|> <|assistant|> 64.0% attended.<|eot|> <|end|>
chat
[ { "role": "user", "content": "128 of 200 members attended. What percent attended?" }, { "role": "assistant", "content": "64.0% attended." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "64.0", "printed": "64.0", "notation": null}
nlprog_det-setting-0070688
Someone born June 2, 1976 turns how old by February 14, 2021? Give the age in whole years. One way, in code: ```python from datetime import date born = date(1976, 6, 2) # datetime.date(1976, 6, 2) on = date(2021, 2, 14) # datetime.date(2021, 2, 14) age = on.year - born.year - ((on.month, on.day) < (born.month, born....
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
159
{"gold": "44", "printed": "44", "notation": null}
nlprog_det-setting-0070689
<|start|><|user|> Count 90 days forward from December 26, 2020. What date is that?<|eot|> <|assistant|> That date is March 26, 2021.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Count 90 days forward from December 26, 2020. What date is that?" }, { "role": "assistant", "content": "That date is March 26, 2021." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "2021-03-26", "printed": "2021-03-26", "notation": null}
nlprog_det-setting-0070690
A customer buys 3 markers at $24 each, 6 desk lamps at $3 each and pays with $100. How much change is due? $10 comes back.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0070691
Monthly rent is $2,400. A tenant moves in with 13 days left in a 31-day month. What is the prorated rent? Coded up: ```python rent = 2400 days_in_month = 31 days_occupied = 13 prorated = rent * days_occupied / days_in_month # 1006.4516129032259 print(f"{prorated:.2f}") ``` (Program output: 1006.45) The prorated rent...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "1006.45", "printed": "1006.45", "notation": null}
nlprog_det-setting-0070692
Sami and Mateo share $2,933 in the ratio 2:5. How much does Sami get? total = 2933 parts_a = 2 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 838 print(share_a) Interpreter output — 838 Sami gets $838.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "838", "printed": "838", "notation": null}
nlprog_det-setting-0070693
With 25 rows of 16 chairs and 15 empty chairs, how many chairs are taken? Code: ```python rows = 25 per_row = 16 empty = 15 seated = rows * per_row - empty # 385 print(seated) ``` # printed: 385 385 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "385", "printed": "385", "notation": null}
nlprog_det-setting-0070694
<|start|><|system|> You are a data assistant.<|eot|> <|user|> Beatriz earns a 8% commission on $111,498 of sales. What is the commission?<|eot|> <|assistant|> The commission is $8,919.84.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a data assistant." }, { "role": "user", "content": "Beatriz earns a 8% commission on $111,498 of sales. What is the commission?" }, { "role": "assistant", "content": "The commission is $8,919.84." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
55
{"gold": "8919.84", "printed": "8919.84", "notation": null}
nlprog_det-setting-0070695
A car travels 410 miles in 2 hours. What is its average speed in miles per hour? ```python distance = 410 hours = 2 speed = distance / hours # 205.0 print(round(speed)) ``` Output of the run: 205 The average speed is 205 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "205", "printed": "205", "notation": null}
nlprog_det-setting-0070696
<|start|><|system|> You can call tools. Available tools: [{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "interpreter", "description": "Exe...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\",...
nlprog_det
setting
original
null
deterministic
[]
[]
404
{"gold": "Monday", "printed": "Monday", "notation": null}
nlprog_det-setting-0070697
A trial runs from February 3, 2026 to February 16, 2026, counting both days. How many calendar days is that? Python does the arithmetic: ```python from datetime import date first = date(2026, 2, 3) last = date(2026, 2, 16) days = (last - first).days + 1 print(days) ``` On running, it outputs: 14 That is 14 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0070698
<|start|><|user|> What does $10,000 grow to in 3 years at 5% annual compounding?<|eot|> <|assistant|> ```python principal = 10000 rate = 5 / 100 # 0.05 years = 3 value = principal * (1 + rate) ** years # 11576.250000000002 print(f"{value:.2f}") ``` Out: 11576.25 It is worth $11,576.25.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What does $10,000 grow to in 3 years at 5% annual compounding?" }, { "role": "assistant", "content": "```python\nprincipal = 10000\nrate = 5 / 100 # 0.05\nyears = 3\nvalue = principal * (1 + rate) ** years # 11576.250000000002\nprint(f\"{value:.2f}\")\n```\nOut:\n...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "11576.25", "printed": "11576.25", "notation": null}
nlprog_det-setting-0070699
<|start|><|user|> What does $2,000 grow to in 5 years at 3% annual compounding?<|eot|> <|assistant|> principal = 2000 rate = 3 / 100 years = 5 value = principal * (1 + rate) ** years print(f"{value:.2f}") (Program output: 2318.55) The balance is $2,318.55.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What does $2,000 grow to in 5 years at 3% annual compounding?" }, { "role": "assistant", "content": " principal = 2000\n rate = 3 / 100\n years = 5\n value = principal * (1 + rate) ** years\n print(f\"{value:.2f}\")\n(Program output: 2318.55)\n\nThe b...
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "2318.55", "printed": "2318.55", "notation": null}
nlprog_det-setting-0070700
A recipe for 4 people uses 200 grams of sugar. How many grams are needed for 2 people? Use 100 g of sugar.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "100", "printed": "100", "notation": null}
nlprog_det-setting-0070701
A filing cabinet costs $60. It is 30% off. What is the sale price? Python code: ```python price = 60 discount = 30 / 100 # 0.3 sale_price = price * (1 - discount) # 42.0 print(f"{sale_price:.2f}") ``` (Output: 42.00) It costs $42.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "42.00", "printed": "42.00", "notation": null}
nlprog_det-setting-0070702
Equal monthly payments repay $9,000 plus 8% simple yearly interest over 36 months. How large is a payment? Here is the program. ```python principal = 9000 annual_rate = 8 / 100 # 0.08 months = 36 interest = principal * annual_rate * months / 12 # 2160.0 payment = (principal + interest) / months # 310.0 print(f"{pay...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "310.00", "printed": "310.00", "notation": null}
nlprog_det-setting-0070703
<|start|><|system|> Tools (call with JSON): [{"name": "calculator", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> A cl...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"calculator\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"...
nlprog_det
setting
original
null
deterministic
[]
[]
214
{"gold": "325", "printed": "325", "notation": null}
nlprog_det-setting-0070704
How many minutes pass from 11:56 AM to 1:43 PM on the same day? ```python start = 11 * 60 + 56 # 716 end = 13 * 60 + 43 # 823 print(end - start) ``` (Printed: 107) 107 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "107", "printed": "107", "notation": null}
nlprog_det-setting-0070705
With 10% off, what does a $300 printer cost? The computation: ```python price = 300 discount = 10 / 100 # 0.1 sale_price = price * (1 - discount) # 270.0 print(f"{sale_price:.2f}") ``` Run output — 270.00 It costs $270.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "270.00", "printed": "270.00", "notation": null}
nlprog_det-setting-0070706
<|start|><|user|> Which is cheaper per unit: 12 for $7.89 (A) or 30 for $26.16 (B)?<|eot|> <|assistant|> A has the lower unit price.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Which is cheaper per unit: 12 for $7.89 (A) or 30 for $26.16 (B)?" }, { "role": "assistant", "content": "A has the lower unit price." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0070707
<|start|><|user|> Filing fees are $150 per document. What do 2 filings cost?<|eot|> <|assistant|> ```python fee = 150 filings = 2 total = fee * filings # 300 print(total) ``` (Execution result: 300) The filings cost $300 in all.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Filing fees are $150 per document. What do 2 filings cost?" }, { "role": "assistant", "content": "```python\nfee = 150\nfilings = 2\ntotal = fee * filings # 300\nprint(total)\n```\n(Execution result: 300)\n\nThe filings cost $300 in all." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0070708
<|start|><|user|> A party has 28 days to respond to a motion served on July 14, 2021, with 3 days added because service was by mail. When is the response due?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2021, 7, 14) # datetime.date(2021, 7, 14) response_days = 28 mail_days = 3 due...
chat
[ { "role": "user", "content": "A party has 28 days to respond to a motion served on July 14, 2021, 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(2021, 7, 14) # datetim...
nlprog_det
setting
original
null
deterministic
[]
[]
176
{"gold": "2021-08-14", "printed": "2021-08-14", "notation": null}
nlprog_det-setting-0070709
Each storage box holds 15 files. How many boxes are needed for 227 files? In code: ```python import math files = 227 per_box = 15 boxes = math.ceil(files / per_box) # 16 print(boxes) ``` Console output: 16 16 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0070710
Nikhil earns a 8% commission on $91,044 of sales. What is the commission? Here's the code. ```python sales = 91044 rate = 8 / 100 # 0.08 commission = sales * rate # 7283.52 print(f"{commission:.2f}") ``` Running it prints 7283.52. The commission is $7,283.52.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "7283.52", "printed": "7283.52", "notation": null}
nlprog_det-setting-0070711
<|start|><|system|> You can call tools. Available tools: [{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_unit", "to_uni...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\...
nlprog_det
setting
original
null
deterministic
[]
[]
322
{"gold": "95", "printed": "95", "notation": null}
nlprog_det-setting-0070712
Meals are $79 per day and lodging $175 per night. What is the allowance for 6 days and 5 nights? Here's the code. ```python days = 6 meal_rate = 79 lodging_rate = 175 nights = days - 1 # 5 total = days * meal_rate + nights * lodging_rate # 1349 print(total) ``` Console output: 1349 That comes to $1,349.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "1349", "printed": "1349", "notation": null}
nlprog_det-setting-0070713
<|start|><|user|> 3 friends split a $240 bill plus a 18% tip evenly. How much does each pay?<|eot|> <|assistant|> Each person pays $94.40.<|eot|> <|end|>
chat
[ { "role": "user", "content": "3 friends split a $240 bill plus a 18% tip evenly. How much does each pay?" }, { "role": "assistant", "content": "Each person pays $94.40." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "94.40", "printed": "94.40", "notation": null}
nlprog_det-setting-0070714
<|start|><|user|> What simple interest does $20,000 earn at 4% a year over 5 years?<|eot|> <|assistant|> ```python principal = 20000 rate = 4 / 100 # 0.04 years = 5 interest = principal * rate * years # 4000.0 print(f"{interest:.2f}") ``` # program output: 4000.00 The interest is $4,000.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What simple interest does $20,000 earn at 4% a year over 5 years?" }, { "role": "assistant", "content": "```python\nprincipal = 20000\nrate = 4 / 100 # 0.04\nyears = 5\ninterest = principal * rate * years # 4000.0\nprint(f\"{interest:.2f}\")\n```\n# program output...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "4000.00", "printed": "4000.00", "notation": null}
nlprog_det-setting-0070715
Convert 37 km to meters. In Python: ```python km = 37 meters = km * 1000 # 37000 print(round(meters)) ``` Program output: 37000 That is 37,000 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "37000", "printed": "37000", "notation": null}
nlprog_det-setting-0070716
<|start|><|user|> A class starts at 1:45 PM and lasts 25 minutes. When does it end?<|eot|> <|assistant|> ```python start = 13 * 60 + 45 end = start + 25 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` The program prints 2:10 PM. It ends at 2:10 PM.<|eot|> <...
chat
[ { "role": "user", "content": "A class starts at 1:45 PM and lasts 25 minutes. When does it end?" }, { "role": "assistant", "content": "```python\nstart = 13 * 60 + 45\nend = start + 25\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}\")\n...
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "2:10 PM", "printed": "2:10 PM", "notation": null}
nlprog_det-setting-0070717
Fixed costs are $9,000. Each unit sells for $15 and costs $10 to make. How many units must be sold to break even? Script: ```python import math fixed = 9000 price = 15 variable = 10 units = math.ceil(fixed / (price - variable)) # 1800 print(units) ``` Executed, it shows 1800. 1800 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "1800", "printed": "1800", "notation": null}
nlprog_det-setting-0070718
A client paid a $10,000 retainer. The firm has billed 6 hours at $150 per hour. How much of the retainer is left? Coded up: ```python retainer = 10000 hours = 6 rate = 150 left = retainer - hours * rate print(left) ``` Python prints 9100. $9,100 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "9100", "printed": "9100", "notation": null}
nlprog_det-setting-0070719
Femi buys 10 boxes of 12 scissors each and gives away 10 scissors. How many scissors are left? A few lines of Python do it: ```python boxes = 10 per_box = 12 given_away = 10 left = boxes * per_box - given_away # 110 print(left) ``` Output = 110 That leaves 110 scissors.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "110", "printed": "110", "notation": null}
nlprog_det-setting-0070720
<|start|><|user|> With 24 rows of 10 chairs and 35 empty chairs, how many chairs are taken?<|eot|> <|assistant|> 205 seats are taken.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 24 rows of 10 chairs and 35 empty chairs, how many chairs are taken?" }, { "role": "assistant", "content": "205 seats are taken." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "205", "printed": "205", "notation": null}
nlprog_det-setting-0070721
<|start|><|system|> Be brief and correct.<|eot|> <|user|> At 50 miles per hour, how many minutes does a 50-mile trip take?<|eot|> <|assistant|> ```python distance = 50 speed = 50 minutes = distance / speed * 60 # 60.0 print(round(minutes)) ``` Interpreter output: 60 60 minutes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be brief and correct." }, { "role": "user", "content": "At 50 miles per hour, how many minutes does a 50-mile trip take?" }, { "role": "assistant", "content": "```python\ndistance = 50\nspeed = 50\nminutes = distance / speed * 60 # 60.0\nprint(round(m...
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0070722
How many weekdays (Monday to Friday) fall after August 12, 2027 up to and including September 6, 2027? Python: ```python from datetime import date, timedelta start = date(2027, 8, 12) end = date(2027, 9, 6) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() < 5: c...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
159
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0070723
Under a 40% contingency agreement, what fee is owed on a $12,000 award? Here is a short program for it. recovery = 12000 rate = 40 / 100 # 0.4 fee = recovery * rate # 4800.0 print(f"{fee:.2f}") The interpreter prints: 4800.00 The fee is $4,800.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "4800.00", "printed": "4800.00", "notation": null}
nlprog_det-setting-0070724
What is a 10% tip on a $120.70 bill? We can compute it in Python. ```python bill = 120.7 tip_rate = 10 / 100 # 0.1 tip = bill * tip_rate # 12.07 print(f"{tip:.2f}") ``` On running, it outputs 12.07. Leave $12.07.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "12.07", "printed": "12.07", "notation": null}
nlprog_det-setting-0070725
How much is a $79 daily meal allowance over 9 days? ```python days = 9 meal_rate = 79 total = days * meal_rate # 711 print(total) ``` The program prints 711. The allowance is $711.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "711", "printed": "711", "notation": null}
nlprog_det-setting-0070726
<|start|><|user|> Convert 32.3 km to meters.<|eot|> <|assistant|> km = 32.3 meters = km * 1000 # 32299.999999999996 print(round(meters)) Output of the run: 32300 32,300 m.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 32.3 km to meters." }, { "role": "assistant", "content": " km = 32.3\n meters = km * 1000 # 32299.999999999996\n print(round(meters))\nOutput of the run: 32300\n\n32,300 m." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "32300", "printed": "32300", "notation": null}
nlprog_det-setting-0070727
A party has 14 days to respond to a motion served on September 16, 2022, with 3 days added because service was by mail. When is the response due? We write it as a program: ```python from datetime import date, timedelta served = date(2022, 9, 16) # datetime.date(2022, 9, 16) response_days = 14 mail_days = 3 due = serv...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
174
{"gold": "2022-10-03", "printed": "2022-10-03", "notation": null}
nlprog_det-setting-0070728
From 2014 to 2043, how many years is that? That is 29 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
18
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0070729
<|start|><|system|> Be concise.<|eot|> <|user|> How many units at $30 each (variable cost $22) cover $6,000 of fixed costs?<|eot|> <|assistant|> ```python import math fixed = 6000 price = 30 variable = 22 units = math.ceil(fixed / (price - variable)) # 750 print(units) ``` Output = 750 Break-even is 750 units.<|eot|>...
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "How many units at $30 each (variable cost $22) cover $6,000 of fixed costs?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 6000\nprice = 30\nvariable = 22\nunits = math.ceil(fixed / ...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0070730
<|start|><|user|> Equal monthly payments repay $6,000 plus 5% simple yearly interest over 12 months. How large is a payment?<|eot|> <|assistant|> principal = 6000 annual_rate = 5 / 100 # 0.05 months = 12 interest = principal * annual_rate * months / 12 # 300.0 payment = (principal + interest) / mo...
chat
[ { "role": "user", "content": "Equal monthly payments repay $6,000 plus 5% simple yearly interest over 12 months. How large is a payment?" }, { "role": "assistant", "content": " principal = 6000\n annual_rate = 5 / 100 # 0.05\n months = 12\n interest = principal * annual_rate * month...
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "525.00", "printed": "525.00", "notation": null}
nlprog_det-setting-0070731
<|start|><|user|> Papers were served by mail on July 26, 2021. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2021, 7, 26) # datetime.date(2021, 7, 26) response_days = 21 mail_days = 3 due =...
chat
[ { "role": "user", "content": "Papers were served by mail on July 26, 2021. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nserved = date(2021, 7, 26) # datetime....
nlprog_det
setting
original
null
deterministic
[]
[]
178
{"gold": "2021-08-19", "printed": "2021-08-19", "notation": null}
nlprog_det-setting-0070732
A meal costs $43.62. How much is a 18% tip? Leave $7.85.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
25
{"gold": "7.85", "printed": "7.85", "notation": null}
nlprog_det-setting-0070733
<|start|><|user|> A client paid a $2,500 retainer. The firm has billed 10 hours at $250 per hour. How much of the retainer is left?<|eot|> <|assistant|> ```python retainer = 2500 hours = 10 rate = 250 left = retainer - hours * rate # 0 print(left) ``` # run result: 0 The remaining balance is $0.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A client paid a $2,500 retainer. The firm has billed 10 hours at $250 per hour. How much of the retainer is left?" }, { "role": "assistant", "content": "```python\nretainer = 2500\nhours = 10\nrate = 250\nleft = retainer - hours * rate # 0\nprint(left)\n```\n# run ...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "0", "printed": "0", "notation": null}
nlprog_det-setting-0070734
Papers were served by mail on June 12, 2026. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date? Python makes this quick: ```python from datetime import date, timedelta served = date(2026, 6, 12) # datetime.date(2026, 6, 12) response_days = 14 mail_days = 3 due = served + tim...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
183
{"gold": "2026-06-29", "printed": "2026-06-29", "notation": null}
nlprog_det-setting-0070735
What is the total rent on a 24-month lease at $1,475 a month? Code: ```python monthly_rent = 1475 months = 24 total = monthly_rent * months # 35400 print(total) ``` Output: 35400 In total, $35,400 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "35400", "printed": "35400", "notation": null}
nlprog_det-setting-0070736
A hearing is set for January 21, 2026. What day of the week is that? Programmatically: from datetime import date hearing = date(2026, 1, 21) # datetime.date(2026, 1, 21) print(hearing.strftime("%A")) Run it and it prints: Wednesday It is a Wednesday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "Wednesday", "printed": "Wednesday", "notation": null}
nlprog_det-setting-0070737
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "calc", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}} {"name": "business_day...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"calc\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code...
nlprog_det
setting
original
null
deterministic
[]
[]
297
{"gold": "489", "printed": "489", "notation": null}
nlprog_det-setting-0070738
<|start|><|user|> 4 claimants share a $15,000 settlement equally. What is each share?<|eot|> <|assistant|> ```python settlement = 15000 parties = 4 share = settlement // parties # 3750 print(share) ``` Shell output — 3750 Each share is $3,750.<|eot|> <|end|>
chat
[ { "role": "user", "content": "4 claimants share a $15,000 settlement equally. What is each share?" }, { "role": "assistant", "content": "```python\nsettlement = 15000\nparties = 4\nshare = settlement // parties # 3750\nprint(share)\n```\nShell output — 3750\n\nEach share is $3,750." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "3750", "printed": "3750", "notation": null}
nlprog_det-setting-0070739
What percentage of $4,000 is $3,100? Let's compute it with Python. budget = 4000 spent = 3100 percent = spent / budget * 100 # 77.5 print(round(percent, 1)) The program prints 77.5, as expected. That is 77.5% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "77.5", "printed": "77.5", "notation": null}
nlprog_det-setting-0070740
<|start|><|user|> Someone born July 4, 1971 turns how old by May 17, 2022? Give the age in whole years.<|eot|> <|assistant|> ```python from datetime import date born = date(1971, 7, 4) # datetime.date(1971, 7, 4) on = date(2022, 5, 17) # datetime.date(2022, 5, 17) age = on.year - born.year - ((on.month, on.day) < (bo...
chat
[ { "role": "user", "content": "Someone born July 4, 1971 turns how old by May 17, 2022? Give the age in whole years." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1971, 7, 4) # datetime.date(1971, 7, 4)\non = date(2022, 5, 17) # datetime.date(2022, 5, ...
nlprog_det
setting
original
null
deterministic
[]
[]
156
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0070741
Counting only Monday through Friday, how many business days are there after May 13, 2023 through June 10, 2023? Let's compute it with Python. ```python from datetime import date, timedelta start = date(2023, 5, 13) end = date(2023, 6, 10) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(d...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
159
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0070742
<|start|><|user|> What percentage of $10,000 is $3,900?<|eot|> <|assistant|> ```python budget = 10000 spent = 3900 percent = spent / budget * 100 # 39.0 print(round(percent, 1)) ``` (Result: 39.0) 39.0% has been spent.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What percentage of $10,000 is $3,900?" }, { "role": "assistant", "content": "```python\nbudget = 10000\nspent = 3900\npercent = spent / budget * 100 # 39.0\nprint(round(percent, 1))\n```\n(Result: 39.0)\n\n39.0% has been spent." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "39.0", "printed": "39.0", "notation": null}
nlprog_det-setting-0070743
A $3,600 loan carries 5% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment? Here is the program. ```python principal = 3600 annual_rate = 5 / 100 months = 24 interest = principal * annual_rate * months / 12 payment = (principal + interest) / months...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "165.00", "printed": "165.00", "notation": null}
nlprog_det-setting-0070744
Under a 30% contingency agreement, what fee is owed on a $150,000 award? Python version: ```python recovery = 150000 rate = 30 / 100 # 0.3 fee = recovery * rate # 45000.0 print(f"{fee:.2f}") ``` Executed, it shows: 45000.00 The lawyer's fee comes to $45,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "45000.00", "printed": "45000.00", "notation": null}
nlprog_det-setting-0070745
What average speed covers 456 miles in 2 hours? Computing it: ```python distance = 456 hours = 2 speed = distance / hours # 228.0 print(round(speed)) ``` Execution prints 228. The average speed is 228 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "228", "printed": "228", "notation": null}
nlprog_det-setting-0070747
$2,000 is invested at 3% compounded yearly. What is it worth after 3 years? Python, step by step: ```python principal = 2000 rate = 3 / 100 # 0.03 years = 3 value = principal * (1 + rate) ** years # 2185.454 print(f"{value:.2f}") ``` Running it prints 2185.45, as expected. It is worth $2,185.45.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "2185.45", "printed": "2185.45", "notation": null}
nlprog_det-setting-0070748
Convert 28.5 km to meters. Programmatically: ```python km = 28.5 meters = km * 1000 # 28500.0 print(round(meters)) ``` stdout — 28500 That is 28,500 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "28500", "printed": "28500", "notation": null}
nlprog_det-setting-0070749
Counting the first and last day, how many days are there from April 4, 2028 through April 9, 2028? As a program: ```python from datetime import date first = date(2028, 4, 4) # datetime.date(2028, 4, 4) last = date(2028, 4, 9) # datetime.date(2028, 4, 9) days = (last - first).days + 1 # 6 print(days) ``` Interpreter...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0070751
<|start|><|user|> $5,000 is invested at 3% compounded yearly. What is it worth after 3 years?<|eot|> <|assistant|> It is worth $5,463.64.<|eot|> <|end|>
chat
[ { "role": "user", "content": "$5,000 is invested at 3% compounded yearly. What is it worth after 3 years?" }, { "role": "assistant", "content": "It is worth $5,463.64." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "5463.64", "printed": "5463.64", "notation": null}
nlprog_det-setting-0070752
<|start|><|user|> Parking is $4 per hour with a daily maximum of $15. What do 2 hours cost?<|eot|> <|assistant|> ```python rate = 4 hours = 2 daily_max = 15 cost = min(rate * hours, daily_max) # 8 print(cost) ``` Execution prints 8. The charge is $8.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Parking is $4 per hour with a daily maximum of $15. What do 2 hours cost?" }, { "role": "assistant", "content": "```python\nrate = 4\nhours = 2\ndaily_max = 15\ncost = min(rate * hours, daily_max) # 8\nprint(cost)\n```\nExecution prints 8.\n\nThe charge is $8." }...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0070753
<|start|><|user|> Starting from $8,000, the team spends $1,461, $701, $3,715, $1,459. What remains?<|eot|> <|assistant|> ```python budget = 8000 expenses = [1461, 701, 3715, 1459] left = budget - sum(expenses) # 664 print(left) ``` It prints 664. $664 is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting from $8,000, the team spends $1,461, $701, $3,715, $1,459. What remains?" }, { "role": "assistant", "content": "```python\nbudget = 8000\nexpenses = [1461, 701, 3715, 1459]\nleft = budget - sum(expenses) # 664\nprint(left)\n```\nIt prints 664.\n\n$664 is l...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "664", "printed": "664", "notation": null}
nlprog_det-setting-0070754
A 10 × 14 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up? Program: ```python import math length = 10 width = 14 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 35 print(tiles) ``` # result: 35 It takes 35 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "35", "printed": "35", "notation": null}
nlprog_det-setting-0070755
Sales went from 200 to 170. What is the percent change? Translated to Python: ```python old = 200 new = 170 change = (new - old) / old * 100 # -15.0 print(round(change)) ``` stdout — -15 It changed by -15%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "-15", "printed": "-15", "notation": null}
nlprog_det-setting-0070756
<|start|><|user|> Someone born June 10, 1992 turns how old by August 26, 2026? Give the age in whole years.<|eot|> <|assistant|> ```python from datetime import date born = date(1992, 6, 10) # datetime.date(1992, 6, 10) on = date(2026, 8, 26) # datetime.date(2026, 8, 26) age = on.year - born.year - ((on.month, on.day)...
chat
[ { "role": "user", "content": "Someone born June 10, 1992 turns how old by August 26, 2026? Give the age in whole years." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1992, 6, 10) # datetime.date(1992, 6, 10)\non = date(2026, 8, 26) # datetime.date(202...
nlprog_det
setting
original
null
deterministic
[]
[]
156
{"gold": "34", "printed": "34", "notation": null}
nlprog_det-setting-0070757
<|start|><|system|> You are a study helper for students.<|eot|> <|user|> Convert -20 °C to Fahrenheit.<|eot|> <|assistant|> ```python celsius = -20 fahrenheit = celsius * 9 / 5 + 32 # -4.0 print(round(fahrenheit)) ``` Python prints -4, as expected. It equals -4 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a study helper for students." }, { "role": "user", "content": "Convert -20 °C to Fahrenheit." }, { "role": "assistant", "content": "```python\ncelsius = -20\nfahrenheit = celsius * 9 / 5 + 32 # -4.0\nprint(round(fahrenheit))\n```\nPython print...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "-4", "printed": "-4", "notation": null}
nlprog_det-setting-0070758
<|start|><|system|> You are a logic tutor.<|eot|> <|user|> Which is cheaper per unit: 10 for $5.85 (A) or 20 for $19.33 (B)?<|eot|> <|assistant|> ```python pack_a = 5.85 / 10 # 0.585 pack_b = 19.33 / 20 # 0.9664999999999999 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` Result — A Pack A is chea...
chat
[ { "role": "system", "content": "You are a logic tutor." }, { "role": "user", "content": "Which is cheaper per unit: 10 for $5.85 (A) or 20 for $19.33 (B)?" }, { "role": "assistant", "content": "```python\npack_a = 5.85 / 10 # 0.585\npack_b = 19.33 / 20 # 0.9664999999999999\ncheaper...
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0070760
How much sales tax is charged on a $731.44 purchase at 7%? We can compute it in Python. ```python price = 731.44 tax_rate = 7 / 100 # 0.07 tax = price * tax_rate # 51.20080000000001 print(f"{tax:.2f}") ``` (stdout: 51.20) The tax is $51.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "51.20", "printed": "51.20", "notation": null}
nlprog_det-setting-0070761
Water costs $20 a month plus $5.10 for each 1,000 gallons over 0,000. What is owed for 6,000 gallons? Let the code do the arithmetic: ```python base = 20 rate = 5.1 used = 6 free = 0 bill = base + rate * max(0, used - free) # 50.599999999999994 print(f"{bill:.2f}") ``` Output: 50.60 The bill is $50.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "50.60", "printed": "50.60", "notation": null}
nlprog_det-setting-0070762
From 2020 to 2029, how many years is that? Here is a short program for it. ```python start_year = 2020 end_year = 2029 print(end_year - start_year) ``` When run, it prints 9, as expected. That is 9 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0070763
$10,000 is invested at 5% compounded yearly. What is it worth after 5 years? A Python solution: ```python principal = 10000 rate = 5 / 100 # 0.05 years = 5 value = principal * (1 + rate) ** years # 12762.815625000003 print(f"{value:.2f}") ``` (Execution result: 12762.82) The balance is $12,762.82.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "12762.82", "printed": "12762.82", "notation": null}
nlprog_det-setting-0070764
<|start|><|user|> Prorate $1,200 of monthly rent for 11 days of a 31-day month.<|eot|> <|assistant|> ```python rent = 1200 days_in_month = 31 days_occupied = 11 prorated = rent * days_occupied / days_in_month # 425.80645161290323 print(f"{prorated:.2f}") ``` Shell output — 425.81 The prorated rent is $425.81.<|eot|> ...
chat
[ { "role": "user", "content": "Prorate $1,200 of monthly rent for 11 days of a 31-day month." }, { "role": "assistant", "content": "```python\nrent = 1200\ndays_in_month = 31\ndays_occupied = 11\nprorated = rent * days_occupied / days_in_month # 425.80645161290323\nprint(f\"{prorated:.2f}\")\n``...
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "425.81", "printed": "425.81", "notation": null}
nlprog_det-setting-0070766
<|start|><|user|> Fiona buys 12 boxes of 25 ink cartridges each and gives away 1 ink cartridges. How many ink cartridges are left?<|eot|> <|assistant|> 299 ink cartridges are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Fiona buys 12 boxes of 25 ink cartridges each and gives away 1 ink cartridges. How many ink cartridges are left?" }, { "role": "assistant", "content": "299 ink cartridges are left." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
52
{"gold": "299", "printed": "299", "notation": null}
nlprog_det-setting-0070767
<|start|><|user|> From 1990 to 2007, how many years is that?<|eot|> <|assistant|> ```python start_year = 1990 end_year = 2007 print(end_year - start_year) ``` Output = 17 17 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From 1990 to 2007, how many years is that?" }, { "role": "assistant", "content": "```python\nstart_year = 1990\nend_year = 2007\nprint(end_year - start_year)\n```\nOutput = 17\n\n17 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
64
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0070769
A party has 30 days to respond to a motion served on September 18, 2018, with 3 days added because service was by mail. When is the response due? In Python: ```python from datetime import date, timedelta served = date(2018, 9, 18) # datetime.date(2018, 9, 18) response_days = 30 mail_days = 3 due = served + timedelta(...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
176
{"gold": "2018-10-21", "printed": "2018-10-21", "notation": null}
nlprog_det-setting-0070770
Attendance was 17 out of 20. Express it as a percent. Here is the program. ```python present = 17 total = 20 percent = present / total * 100 # 85.0 print(round(percent, 1)) ``` Out: 85.0 Attendance was 85.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "85.0", "printed": "85.0", "notation": null}
nlprog_det-setting-0070772
<|start|><|system|> You have access to these functions: [{"name": "compute", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> A count moves from 2,000...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"compute\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\...
nlprog_det
setting
original
null
deterministic
[]
[]
207
{"gold": "-40", "printed": "-40", "notation": null}
nlprog_det-setting-0070773
<|start|><|user|> Fixed costs are $2,500. Each unit sells for $40 and costs $35 to make. How many units must be sold to break even?<|eot|> <|assistant|> ```python import math fixed = 2500 price = 40 variable = 35 units = math.ceil(fixed / (price - variable)) # 500 print(units) ``` It outputs: 500 500 units are needed...
chat
[ { "role": "user", "content": "Fixed costs are $2,500. Each unit sells for $40 and costs $35 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 2500\nprice = 40\nvariable = 35\nunits = math.ceil(fixed / (price - variable)) #...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "500", "printed": "500", "notation": null}
nlprog_det-setting-0070774
What average speed covers 580 miles in 5 hours? One way, in code: distance = 580 hours = 5 speed = distance / hours # 116.0 print(round(speed)) What it prints — 116 The average speed is 116 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
69
{"gold": "116", "printed": "116", "notation": null}
nlprog_det-setting-0070775
What day of the week is January 11, 2019? Here is the program. ```python from datetime import date hearing = date(2019, 1, 11) # datetime.date(2019, 1, 11) print(hearing.strftime("%A")) ``` On running, it outputs: Friday It is a Friday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "Friday", "printed": "Friday", "notation": null}
nlprog_det-setting-0070776
<|start|><|user|> A count moves from 400 to 500. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> ```python old = 400 new = 500 change = (new - old) / old * 100 # 25.0 print(round(change)) ``` The printout reads 25. The change is 25%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A count moves from 400 to 500. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": "```python\nold = 400\nnew = 500\nchange = (new - old) / old * 100 # 25.0\nprint(round(change))\n```\nThe printout reads 25.\n\nThe cha...
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0070777
5 ink cartridges cost $7 apiece. With 6% tax added, what is the total? Here is the program. ```python quantity = 5 unit_price = 7 subtotal = quantity * unit_price # 35 total = subtotal * (1 + 6 / 100) # 37.1 print(f"{total:.2f}") ``` Run result — 37.10 The invoice total is $37.10.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "37.10", "printed": "37.10", "notation": null}
nlprog_det-setting-0070778
A hall has 17 rows of 12 seats, and 2 seats are empty. How many people are seated? Script: rows = 17 per_row = 12 empty = 2 seated = rows * per_row - empty # 202 print(seated) Out — 202 202 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "202", "printed": "202", "notation": null}
nlprog_det-setting-0070779
Jonas's scores were 97, 84, 87, 86, 92, 92 and 85. What is the average score? Here's the code. ```python scores = [97, 84, 87, 86, 92, 92, 85] average = sum(scores) // len(scores) # 89 print(average) ``` The script prints 89. The average score is 89.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "89", "printed": "89", "notation": null}
nlprog_det-setting-0070780
Walls total 1078 sq ft and each can covers 250 sq ft. How many cans should be bought? Buy 5 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0070781
<|start|><|system|> Tool definitions: [{"name": "math_engine", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "get_weather", "de...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"math_engine\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"...
nlprog_det
setting
original
null
deterministic
[]
[]
285
{"gold": "14400", "printed": "14400", "notation": null}
nlprog_det-setting-0070782
Pay is $22.40/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 46 hours? Script: ```python rate = 22.4 hours = 46 regular = 40 * rate # 896.0 overtime = (hours - 40) * rate * 1.5 # 201.59999999999997 pay = regular + overtime # 1097.6 print(f"{pay:.2f}") ``` This prints: 1097.60 The weekly p...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "1097.60", "printed": "1097.60", "notation": null}
nlprog_det-setting-0070783
Straight-line depreciation: cost $30,000, salvage $3,000, 3 years. How much per year? ```python cost = 30000 salvage = 3000 years = 3 per_year = (cost - salvage) / years # 9000.0 print(f"{per_year:.2f}") ``` Console: 9000.00 Depreciation is $9,000.00 per year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "9000.00", "printed": "9000.00", "notation": null}
nlprog_det-setting-0070784
Meals are $64 per day and lodging $140 per night. What is the allowance for 3 days and 2 nights? Programmatically: ```python days = 3 meal_rate = 64 lodging_rate = 140 nights = days - 1 # 2 total = days * meal_rate + nights * lodging_rate # 472 print(total) ``` Execution result: 472 The allowance is $472.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "472", "printed": "472", "notation": null}
nlprog_det-setting-0070785
How many 1-foot square tiles cover a 13 ft by 6 ft floor (round up)? Python does the arithmetic: ```python import math length = 13 width = 6 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 78 print(tiles) ``` Output of the run: 78 It takes 78 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "78", "printed": "78", "notation": null}
nlprog_det-setting-0070786
A hearing is set for February 7, 1994. What day of the week is that? ```python from datetime import date hearing = date(1994, 2, 7) # datetime.date(1994, 2, 7) print(hearing.strftime("%A")) ``` Run it and it prints: Monday February 7, 1994 is a Monday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "Monday", "printed": "Monday", "notation": null}
nlprog_det-setting-0070787
A shift runs from 8:47 AM to 12:01 PM. How long is it in minutes? As a program: ```python start = 8 * 60 + 47 # 527 end = 12 * 60 + 1 # 721 print(end - start) ``` Console output: 194 It is 194 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "194", "printed": "194", "notation": null}