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-0060651
At an exchange rate of 0.74 CAD per USD, how many CAD is 1,577 USD? Computation in Python: amount = 1577 rate = 0.74 converted = amount * rate # 1166.98 print(f"{converted:.2f}") Running this gives: 1166.98 It converts to 1,166.98 CAD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "1166.98", "printed": "1166.98", "notation": null}
nlprog_det-setting-0060652
An invoice lists 37 headsets at $6 each, plus 6% sales tax. What is the invoice total? Computing it: ```python quantity = 37 unit_price = 6 subtotal = quantity * unit_price # 222 total = subtotal * (1 + 6 / 100) # 235.32000000000002 print(f"{total:.2f}") ``` Output — 235.32 The total with tax is $235.32.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "235.32", "printed": "235.32", "notation": null}
nlprog_det-setting-0060653
Equipment costs $12,000, has a salvage value of $6,000, and a useful life of 10 years. What is the straight-line depreciation per year? ```python cost = 12000 salvage = 6000 years = 10 per_year = (cost - salvage) / years # 600.0 print(f"{per_year:.2f}") ``` On running, it outputs: 600.00 Depreciation is $600.00 per ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "600.00", "printed": "600.00", "notation": null}
nlprog_det-setting-0060654
What is the total rent on a 24-month lease at $1,475 a month? Python code: ```python monthly_rent = 1475 months = 24 total = monthly_rent * months # 35400 print(total) ``` Run result: 35400 The rent over the term is $35,400.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "35400", "printed": "35400", "notation": null}
nlprog_det-setting-0060655
A recipe for 6 people uses 100 grams of pasta. How many grams are needed for 3 people? 50 grams of pasta are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0060656
How much sales tax is charged on a $235.32 purchase at 9%? Python code: ```python price = 235.32 tax_rate = 9 / 100 # 0.09 tax = price * tax_rate # 21.1788 print(f"{tax:.2f}") ``` On running, it outputs 21.18. $21.18 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "21.18", "printed": "21.18", "notation": null}
nlprog_det-setting-0060657
A 3% increase is applied to $1,800 monthly rent. What is the new amount? In Python: ```python rent = 1800 increase = 3 / 100 # 0.03 new_rent = rent * (1 + increase) # 1854.0 print(f"{new_rent:.2f}") ``` Console output — 1854.00 It rises to $1,854.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "1854.00", "printed": "1854.00", "notation": null}
nlprog_det-setting-0060658
Revenue is $8,500 and costs are $8,000. What is the profit margin as a percent of revenue (one decimal)? A Python solution: ```python revenue = 8500 costs = 8000 profit = revenue - costs # 500 margin = profit / revenue * 100 # 5.88235294117647 print(round(margin, 1)) ``` Result = 5.9 Profit is 5.9% of revenue.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "5.9", "printed": "5.9", "notation": null}
nlprog_det-setting-0060659
<|start|><|user|> An invoice lists 9 water bottles at $7 each, plus 6% sales tax. What is the invoice total?<|eot|> <|assistant|> ```python quantity = 9 unit_price = 7 subtotal = quantity * unit_price # 63 total = subtotal * (1 + 6 / 100) # 66.78 print(f"{total:.2f}") ``` # out: 66.78 The invoice total is $66.78.<|e...
chat
[ { "role": "user", "content": "An invoice lists 9 water bottles at $7 each, plus 6% sales tax. What is the invoice total?" }, { "role": "assistant", "content": "```python\nquantity = 9\nunit_price = 7\nsubtotal = quantity * unit_price # 63\ntotal = subtotal * (1 + 6 / 100) # 66.78\nprint(f\"{to...
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "66.78", "printed": "66.78", "notation": null}
nlprog_det-setting-0060661
Fines run at $100 per day up to a maximum of $2,500. How much after 25 days? The fine is $2,500.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0060662
Parking is $3 per hour with a daily maximum of $20. What do 10 hours cost? We write it as a program: ```python rate = 3 hours = 10 daily_max = 20 cost = min(rate * hours, daily_max) # 20 print(cost) ``` The program prints 20. The charge is $20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0060663
<|start|><|system|> You help paralegals with routine tasks.<|eot|> <|user|> After an initial $3,000, the remainder of a $48,000 grant is paid in 6 equal parts. What is each part?<|eot|> <|assistant|> ```python grant = 48000 up_front = 3000 installments = 6 each = (grant - up_front) / installments # 7500.0 print(f"{eac...
chat
[ { "role": "system", "content": "You help paralegals with routine tasks." }, { "role": "user", "content": "After an initial $3,000, the remainder of a $48,000 grant is paid in 6 equal parts. What is each part?" }, { "role": "assistant", "content": "```python\ngrant = 48000\nup_front =...
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "7500.00", "printed": "7500.00", "notation": null}
nlprog_det-setting-0060664
<|start|><|user|> Printing costs 5 cents a page. What does it cost to print 92 copies of a 38-page handout?<|eot|> <|assistant|> Printing costs $174.80.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Printing costs 5 cents a page. What does it cost to print 92 copies of a 38-page handout?" }, { "role": "assistant", "content": "Printing costs $174.80." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "174.80", "printed": "174.80", "notation": null}
nlprog_det-setting-0060665
<|start|><|user|> A client paid a $5,000 retainer. The firm has billed 6 hours at $200 per hour. How much of the retainer is left?<|eot|> <|assistant|> ```python retainer = 5000 hours = 6 rate = 200 left = retainer - hours * rate # 3800 print(left) ``` It prints 3800. $3,800 of the retainer is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A client paid a $5,000 retainer. The firm has billed 6 hours at $200 per hour. How much of the retainer is left?" }, { "role": "assistant", "content": "```python\nretainer = 5000\nhours = 6\nrate = 200\nleft = retainer - hours * rate # 3800\nprint(left)\n```\nIt pr...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "3800", "printed": "3800", "notation": null}
nlprog_det-setting-0060666
A claim accrued on May 21, 2018. The limitations period is 3 years. On what date does it expire? Here is the program. ```python from datetime import date accrued = date(2018, 5, 21) # datetime.date(2018, 5, 21) years = 3 expires = accrued.replace(year=accrued.year + years) # datetime.date(2021, 5, 21) print(expires....
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "2021-05-21", "printed": "2021-05-21", "notation": null}
nlprog_det-setting-0060667
A 306-page report must be reviewed in 6 days. How many pages a day is that, evenly? Coded up: ```python pages = 306 days = 6 per_day = pages // days # 51 print(per_day) ``` Run result: 51 That is 51 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "51", "printed": "51", "notation": null}
nlprog_det-setting-0060668
Nilufar and Wen share $4,844 in the ratio 3:4. How much does Nilufar get? ```python total = 4844 parts_a = 3 parts_b = 4 share_a = total * parts_a // (parts_a + parts_b) # 2076 print(share_a) ``` (Program output: 2076) Nilufar's share is $2,076.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "2076", "printed": "2076", "notation": null}
nlprog_det-setting-0060669
<|start|><|user|> Counting only Monday through Friday, how many business days are there after February 16, 2027 through February 22, 2027?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2027, 2, 16) end = date(2027, 2, 22) count = 0 for k in range(1, (end - start).days + 1): if (st...
chat
[ { "role": "user", "content": "Counting only Monday through Friday, how many business days are there after February 16, 2027 through February 22, 2027?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2027, 2, 16)\nend = date(2027, 2, 22)\ncount...
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0060670
<|start|><|system|> You can call tools. Available tools: [{"name": "compute", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> A shift runs fro...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"compute\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requi...
nlprog_det
setting
original
null
deterministic
[]
[]
196
{"gold": "71", "printed": "71", "notation": null}
nlprog_det-setting-0060671
<|start|><|system|> Be concise.<|eot|> <|user|> Fixed costs are $6,000. Each unit sells for $25 and costs $20 to make. How many units must be sold to break even?<|eot|> <|assistant|> Break-even is 1200 units.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "Fixed costs are $6,000. Each unit sells for $25 and costs $20 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "Break-even is 1200 units." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
58
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0060672
A 19 × 14 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up? In code: import math length = 19 width = 14 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 266 print(tiles) Executing it gives 266, as expected. 266 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "266", "printed": "266", "notation": null}
nlprog_det-setting-0060674
511 files go into boxes of 12. How many boxes does that take? It takes 43 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "43", "printed": "43", "notation": null}
nlprog_det-setting-0060676
Nadia has 10 documents to file, and each filing costs $405. How much are the filing fees in total? Computation in Python: fee = 405 filings = 10 total = fee * filings # 4050 print(total) Running this gives 4050. The total fee is $4,050.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "4050", "printed": "4050", "notation": null}
nlprog_det-setting-0060678
How many units at $40 each (variable cost $32) cover $2,500 of fixed costs? Python: ```python import math fixed = 2500 price = 40 variable = 32 units = math.ceil(fixed / (price - variable)) # 313 print(units) ``` (Program output: 313) 313 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "313", "printed": "313", "notation": null}
nlprog_det-setting-0060679
<|start|><|system|> Functions: [{"name": "python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> After a 25% fee is taken from a $96,000 j...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}]" ...
nlprog_det
setting
original
null
deterministic
[]
[]
242
{"gold": "36000.00", "printed": "36000.00", "notation": null}
nlprog_det-setting-0060680
<|start|><|user|> What commission does Quinn make on $31,734 in sales at 4%?<|eot|> <|assistant|> ```python sales = 31734 rate = 4 / 100 # 0.04 commission = sales * rate # 1269.3600000000001 print(f"{commission:.2f}") ``` The program prints: 1269.36 The commission is $1,269.36.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What commission does Quinn make on $31,734 in sales at 4%?" }, { "role": "assistant", "content": "```python\nsales = 31734\nrate = 4 / 100 # 0.04\ncommission = sales * rate # 1269.3600000000001\nprint(f\"{commission:.2f}\")\n```\nThe program prints: 1269.36\n\nThe...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "1269.36", "printed": "1269.36", "notation": null}
nlprog_det-setting-0060681
<|start|><|system|> You help paralegals with routine tasks.<|eot|> <|user|> Attendance was 170 out of 200. Express it as a percent.<|eot|> <|assistant|> ```python present = 170 total = 200 percent = present / total * 100 # 85.0 print(round(percent, 1)) ``` Executing it gives 85.0. Attendance was 85.0%.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help paralegals with routine tasks." }, { "role": "user", "content": "Attendance was 170 out of 200. Express it as a percent." }, { "role": "assistant", "content": "```python\npresent = 170\ntotal = 200\npercent = present / total * 100 # 85.0\npri...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "85.0", "printed": "85.0", "notation": null}
nlprog_det-setting-0060682
Starting with 1480 hard drives and using 6 per day, how many remain after 10 days? ```python stock = 1480 per_day = 6 days = 10 left = stock - per_day * days # 1420 print(left) ``` Output: 1420 1420 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "1420", "printed": "1420", "notation": null}
nlprog_det-setting-0060683
<|start|><|system|> Keep explanations short.<|eot|> <|user|> A storeroom has 1537 water bottles. The office uses 11 a day. How many are left after 4 days?<|eot|> <|assistant|> ```python stock = 1537 per_day = 11 days = 4 left = stock - per_day * days # 1493 print(left) ``` Run result = 1493 1493 remain.<|eot|> <|end|...
chat
[ { "role": "system", "content": "Keep explanations short." }, { "role": "user", "content": "A storeroom has 1537 water bottles. The office uses 11 a day. How many are left after 4 days?" }, { "role": "assistant", "content": "```python\nstock = 1537\nper_day = 11\ndays = 4\nleft = stoc...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "1493", "printed": "1493", "notation": null}
nlprog_det-setting-0060684
After an initial $3,000, the remainder of a $60,000 grant is paid in 3 equal parts. What is each part? $19,000.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "19000.00", "printed": "19000.00", "notation": null}
nlprog_det-setting-0060685
Water costs $15 a month plus $4.75 for each 1,000 gallons over 2,000. What is owed for 14,000 gallons? Python does the arithmetic: ```python base = 15 rate = 4.75 used = 14 free = 2 bill = base + rate * max(0, used - free) print(f"{bill:.2f}") ``` The code prints 72.00. $72.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "72.00", "printed": "72.00", "notation": null}
nlprog_det-setting-0060687
An office budget of $20,000 has expenses of $1,808, $2,597, $3,353, $748. How much of the budget is left? ```python budget = 20000 expenses = [1808, 2597, 3353, 748] left = budget - sum(expenses) # 11494 print(left) ``` Executing it gives: 11494 $11,494 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "11494", "printed": "11494", "notation": null}
nlprog_det-setting-0060688
<|start|><|system|> You have access to these functions: {"name": "math_engine", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|>...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"math_engine\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python sour...
nlprog_det
setting
original
null
deterministic
[]
[]
235
{"gold": "48.30", "printed": "48.30", "notation": null}
nlprog_det-setting-0060689
Buying 2 notebooks at $24 each, 5 paper reams at $15 each, 5 pens at $17 each, 1 badges at $29 each, someone hands over $250. What change comes back? The computation: items = [(2, 24), (5, 15), (5, 17), (1, 29)] total = sum(q * p for q, p in items) # 237 paid = 250 change = paid - total # 13 prin...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0060690
Scale 100 g of flour from 6 servings to 3 servings. Written as code: ```python grams = 100 serves = 6 needed_for = 3 scaled = grams * needed_for // serves # 50 print(scaled) ``` The program outputs: 50 50 grams of flour are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0060691
Prorate $1,800 of monthly rent for 17 days of a 31-day month. The prorated rent is $987.10.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "987.10", "printed": "987.10", "notation": null}
nlprog_det-setting-0060692
58 files go into boxes of 12. How many boxes does that take? Let's compute it with Python. ```python import math files = 58 per_box = 12 boxes = math.ceil(files / per_box) # 5 print(boxes) ``` Python prints: 5 It takes 5 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0060693
<|start|><|user|> What average speed covers 100 miles in 0.5 hours?<|eot|> <|assistant|> ```python distance = 100 hours = 0.5 speed = distance / hours # 200.0 print(round(speed)) ``` Executed, it shows 200. The average speed is 200 mph.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What average speed covers 100 miles in 0.5 hours?" }, { "role": "assistant", "content": "```python\ndistance = 100\nhours = 0.5\nspeed = distance / hours # 200.0\nprint(round(speed))\n```\nExecuted, it shows 200.\n\nThe average speed is 200 mph." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "200", "printed": "200", "notation": null}
nlprog_det-setting-0060694
After an initial $6,000, the remainder of a $24,000 grant is paid in 3 equal parts. What is each part? Let's compute it with Python. ```python grant = 24000 up_front = 6000 installments = 3 each = (grant - up_front) / installments # 6000.0 print(f"{each:.2f}") ``` stdout: 6000.00 Each installment is $6,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "6000.00", "printed": "6000.00", "notation": null}
nlprog_det-setting-0060695
A water bill is $15 plus $5.10 per thousand gallons beyond the first 3 thousand. What is the bill for 5 thousand gallons? One way, in code: ```python base = 15 rate = 5.1 used = 5 free = 3 bill = base + rate * max(0, used - free) # 25.2 print(f"{bill:.2f}") ``` Console output: 25.20 The bill is $25.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "25.20", "printed": "25.20", "notation": null}
nlprog_det-setting-0060696
<|start|><|user|> A car gets 40 miles per gallon. Gas is $3.19 a gallon. What does fuel cost for a 300-mile trip?<|eot|> <|assistant|> The trip uses $23.93 of gas.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A car gets 40 miles per gallon. Gas is $3.19 a gallon. What does fuel cost for a 300-mile trip?" }, { "role": "assistant", "content": "The trip uses $23.93 of gas." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
50
{"gold": "23.93", "printed": "23.93", "notation": null}
nlprog_det-setting-0060697
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> Of a $5,000 budget, $1,000 has been spent. What percent is that?<|eot|> <|assistant|> ```python budget = 5000 spent = 1000 percent = spent / budget * 100 # 20.0 print(round(percent, 1)) ``` It prints 20.0, as expected. That is 20.0% of the budget.<|eot|> <|en...
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "Of a $5,000 budget, $1,000 has been spent. What percent is that?" }, { "role": "assistant", "content": "```python\nbudget = 5000\nspent = 1000\npercent = spent / budget * 100 # 20.0\nprint(round...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "20.0", "printed": "20.0", "notation": null}
nlprog_det-setting-0060698
<|start|><|system|> Tools you may use: {"name": "code_runner", "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|> Under a 35% contin...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"code_runner\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require...
nlprog_det
setting
original
null
deterministic
[]
[]
217
{"gold": "21000.00", "printed": "21000.00", "notation": null}
nlprog_det-setting-0060699
Papers were served by mail on March 10, 2022. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date? Set it up in Python: ```python from datetime import date, timedelta served = date(2022, 3, 10) # datetime.date(2022, 3, 10) response_days = 21 mail_days = 3 due = served + timede...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
180
{"gold": "2022-04-03", "printed": "2022-04-03", "notation": null}
nlprog_det-setting-0060700
A client paid a $5,000 retainer. The firm has billed 11 hours at $250 per hour. How much of the retainer is left? A Python solution: ```python retainer = 5000 hours = 11 rate = 250 left = retainer - hours * rate # 2250 print(left) ``` Printed: 2250 The remaining balance is $2,250.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "2250", "printed": "2250", "notation": null}
nlprog_det-setting-0060701
Ulla and Dara share $1,561 in the ratio 2:5. How much does Ulla get? Script: ```python total = 1561 parts_a = 2 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 446 print(share_a) ``` Output of the run — 446 Ulla gets $446.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "446", "printed": "446", "notation": null}
nlprog_det-setting-0060702
A pack of 24 desk lamps sells for $408. What does each cost? Set it up in Python: ```python total = 408 count = 24 per_item = total // count # 17 print(per_item) ``` Program output — 17 The unit price is $17.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0060703
<|start|><|user|> Fixed costs are $9,000. Each unit sells for $15 and costs $10 to make. How many units must be sold to break even?<|eot|> <|assistant|> ```python import math fixed = 9000 price = 15 variable = 10 units = math.ceil(fixed / (price - variable)) # 1800 print(units) ``` # printed result: 1800 Break-even i...
chat
[ { "role": "user", "content": "Fixed costs are $9,000. Each unit sells for $15 and costs $10 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 9000\nprice = 15\nvariable = 10\nunits = math.ceil(fixed / (price - variable)) #...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "1800", "printed": "1800", "notation": null}
nlprog_det-setting-0060704
A car travels 121 miles in 1 hours. What is its average speed in miles per hour? Python makes this quick: ```python distance = 121 hours = 1 speed = distance / hours # 121.0 print(round(speed)) ``` That prints 121. It averages 121 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "121", "printed": "121", "notation": null}
nlprog_det-setting-0060705
Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 55 hours? As a program: ```python rate = 18.5 hours = 55 regular = 40 * rate # 740.0 overtime = (hours - 40) * rate * 1.5 # 416.25 pay = regular + overtime # 1156.25 print(f"{pay:.2f}") ``` # out: 1156.25 Hana earns $1,156.25.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "1156.25", "printed": "1156.25", "notation": null}
nlprog_det-setting-0060706
If a 6-year limitations period starts on August 1, 2015, when does it end? ```python from datetime import date accrued = date(2015, 8, 1) # datetime.date(2015, 8, 1) years = 6 expires = accrued.replace(year=accrued.year + years) # datetime.date(2021, 8, 1) print(expires.isoformat()) ``` Run output — 2021-08-01 It r...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "2021-08-01", "printed": "2021-08-01", "notation": null}
nlprog_det-setting-0060707
Fixed costs are $1,200. Each unit sells for $30 and costs $22 to make. How many units must be sold to break even? Here's the code. ```python import math fixed = 1200 price = 30 variable = 22 units = math.ceil(fixed / (price - variable)) # 150 print(units) ``` (Console output: 150) 150 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0060708
<|start|><|system|> You have access to these functions: [{"name": "sandbox_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|> <|use...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"sandbox_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python sourc...
nlprog_det
setting
original
null
deterministic
[]
[]
206
{"gold": "76", "printed": "76", "notation": null}
nlprog_det-setting-0060709
<|start|><|system|> You may call the tools below. [{"name": "python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> Pay is $...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}...
nlprog_det
setting
original
null
deterministic
[]
[]
256
{"gold": "929.60", "printed": "929.60", "notation": null}
nlprog_det-setting-0060710
<|start|><|user|> How many of 9 members form a majority (more than half)?<|eot|> <|assistant|> members = 9 majority = members // 2 + 1 # 5 print(majority) Result: 5 5 members are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 9 members form a majority (more than half)?" }, { "role": "assistant", "content": " members = 9\n majority = members // 2 + 1 # 5\n print(majority)\nResult: 5\n\n5 members are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
57
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0060711
<|start|><|system|> Functions: {"name": "run_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> What percentage of $5,000 is $3,500?<|eo...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"run_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}" ...
nlprog_det
setting
original
null
deterministic
[]
[]
202
{"gold": "70.0", "printed": "70.0", "notation": null}
nlprog_det-setting-0060712
Each storage box holds 25 files. How many boxes are needed for 668 files? Python, step by step: ```python import math files = 668 per_box = 25 boxes = math.ceil(files / per_box) # 27 print(boxes) ``` The program prints 27. It takes 27 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0060713
Parking is $2 per hour with a daily maximum of $15. What do 3 hours cost? As Python: ```python rate = 2 hours = 3 daily_max = 15 cost = min(rate * hours, daily_max) # 6 print(cost) ``` # output: 6 Parking costs $6.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0060714
<|start|><|user|> One can of paint covers 300 square feet. How many cans are needed for 484 square feet of wall?<|eot|> <|assistant|> ```python import math area = 484 coverage = 300 cans = math.ceil(area / coverage) # 2 print(cans) ``` It prints 2, as expected. 2 cans are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "One can of paint covers 300 square feet. How many cans are needed for 484 square feet of wall?" }, { "role": "assistant", "content": "```python\nimport math\narea = 484\ncoverage = 300\ncans = math.ceil(area / coverage) # 2\nprint(cans)\n```\nIt prints 2, as expect...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0060715
<|start|><|user|> Dara and Ana share $2,090 in the ratio 2:3. How much does Dara get?<|eot|> <|assistant|> Dara gets $836.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Dara and Ana share $2,090 in the ratio 2:3. How much does Dara get?" }, { "role": "assistant", "content": "Dara gets $836." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "836", "printed": "836", "notation": null}
nlprog_det-setting-0060716
A customer buys 1 toner kits at $17 each, 5 envelopes at $11 each, 4 labels at $21 each and pays with $200. How much change is due? A short script: ```python items = [(1, 17), (5, 11), (4, 21)] total = sum(q * p for q, p in items) paid = 200 change = paid - total print(change) ``` Running it prints 44, as expected. T...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "44", "printed": "44", "notation": null}
nlprog_det-setting-0060717
<|start|><|system|> Give the answer first.<|eot|> <|user|> From 2022 to 2027, how many years is that?<|eot|> <|assistant|> ```python start_year = 2022 end_year = 2027 print(end_year - start_year) ``` When run, it prints 5. That is 5 years.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Give the answer first." }, { "role": "user", "content": "From 2022 to 2027, how many years is that?" }, { "role": "assistant", "content": "```python\nstart_year = 2022\nend_year = 2027\nprint(end_year - start_year)\n```\nWhen run, it prints 5.\n\nThat ...
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0060718
At 40 miles per hour, how many minutes does a 260-mile trip take? Program: distance = 260 speed = 40 minutes = distance / speed * 60 # 390.0 print(round(minutes)) (Printed result: 390) 390 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "390", "printed": "390", "notation": null}
nlprog_det-setting-0060719
<|start|><|system|> You are a data assistant.<|eot|> <|user|> A lease runs for 36 months at $850 per month. How much rent is paid over the whole term?<|eot|> <|assistant|> The rent over the term is $30,600.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a data assistant." }, { "role": "user", "content": "A lease runs for 36 months at $850 per month. How much rent is paid over the whole term?" }, { "role": "assistant", "content": "The rent over the term is $30,600." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
53
{"gold": "30600", "printed": "30600", "notation": null}
nlprog_det-setting-0060720
<|start|><|user|> At 45 miles per hour, how many minutes does a 90-mile trip take?<|eot|> <|assistant|> ```python distance = 90 speed = 45 minutes = distance / speed * 60 # 120.0 print(round(minutes)) ``` The script prints 120. The trip takes 120 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 45 miles per hour, how many minutes does a 90-mile trip take?" }, { "role": "assistant", "content": "```python\ndistance = 90\nspeed = 45\nminutes = distance / speed * 60 # 120.0\nprint(round(minutes))\n```\nThe script prints 120.\n\nThe trip takes 120 minutes."...
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0060721
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> A 7-day trip pays $79 a day for meals and $140 a night for lodging (6 nights). What is the total allowance?<|eot|> <|assistant|> That comes to $1,393.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "A 7-day trip pays $79 a day for meals and $140 a night for lodging (6 nights). What is the total allowance?" }, { "role": "assistant", "content": "That comes to $1,393." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
66
{"gold": "1393", "printed": "1393", "notation": null}
nlprog_det-setting-0060722
Fines run at $100 per day up to a maximum of $1,000. How much after 21 days? As Python: ```python per_day = 100 days = 21 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` Executing it gives 1000, as expected. $1,000 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0060723
A $6,000 loan carries 6% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment? The monthly payment is $530.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "530.00", "printed": "530.00", "notation": null}
nlprog_det-setting-0060724
<|start|><|user|> What is 25 degrees Celsius in Fahrenheit?<|eot|> <|assistant|> ```python celsius = 25 fahrenheit = celsius * 9 / 5 + 32 print(round(fahrenheit)) ``` Program output: 77 That is 77 °F.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is 25 degrees Celsius in Fahrenheit?" }, { "role": "assistant", "content": "```python\ncelsius = 25\nfahrenheit = celsius * 9 / 5 + 32\nprint(round(fahrenheit))\n```\nProgram output: 77\n\nThat is 77 °F." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0060725
The rules require 3/5 of 50 members (round up) to be present. How many is that? 30 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0060726
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "calc", "description": "Run Python code in a sandbox; the result is ...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"calc\", \"des...
nlprog_det
setting
original
null
deterministic
[]
[]
379
{"gold": "1188.00", "printed": "1188.00", "notation": null}
nlprog_det-setting-0060727
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "py_exec", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"py_exec\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\"...
nlprog_det
setting
original
null
deterministic
[]
[]
268
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0060728
Revenue is $25,000 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)? The computation: ```python revenue = 25000 costs = 20000 profit = revenue - costs # 5000 margin = profit / revenue * 100 # 20.0 print(round(margin, 1)) ``` (Run result: 20.0) The margin is 20.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "20.0", "printed": "20.0", "notation": null}
nlprog_det-setting-0060729
<|start|><|user|> Convert 5 °C to Fahrenheit.<|eot|> <|assistant|> ```python celsius = 5 fahrenheit = celsius * 9 / 5 + 32 # 41.0 print(round(fahrenheit)) ``` Out — 41 It equals 41 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 5 °C to Fahrenheit." }, { "role": "assistant", "content": "```python\ncelsius = 5\nfahrenheit = celsius * 9 / 5 + 32 # 41.0\nprint(round(fahrenheit))\n```\nOut — 41\n\nIt equals 41 degrees Fahrenheit." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "41", "printed": "41", "notation": null}
nlprog_det-setting-0060730
<|start|><|system|> You have access to these functions: [{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "define_word", "description": "Retu...
chat
[ { "role": "system", "content": "You have access to these functions:\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
[]
[]
350
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0060731
With $8,000 in costs and $13,000 in revenue, what percent of revenue is profit? Round to one decimal. Program: ```python revenue = 13000 costs = 8000 profit = revenue - costs # 5000 margin = profit / revenue * 100 # 38.46153846153847 print(round(margin, 1)) ``` Executing it gives 38.5. The margin is 38.5%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "38.5", "printed": "38.5", "notation": null}
nlprog_det-setting-0060732
<|start|><|user|> What commission does Tomas make on $16,037 in sales at 2%?<|eot|> <|assistant|> ```python sales = 16037 rate = 2 / 100 commission = sales * rate print(f"{commission:.2f}") ``` # printed result: 320.74 The commission is $320.74.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What commission does Tomas make on $16,037 in sales at 2%?" }, { "role": "assistant", "content": "```python\nsales = 16037\nrate = 2 / 100\ncommission = sales * rate\nprint(f\"{commission:.2f}\")\n```\n# printed result: 320.74\n\nThe commission is $320.74." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "320.74", "printed": "320.74", "notation": null}
nlprog_det-setting-0060733
How long, in days, is it from November 13, 2019 until May 27, 2020? Python, step by step: ```python from datetime import date first = date(2019, 11, 13) # datetime.date(2019, 11, 13) second = date(2020, 5, 27) # datetime.date(2020, 5, 27) print((second - first).days) ``` Out = 196 There are 196 days between the two...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "196", "printed": "196", "notation": null}
nlprog_det-setting-0060734
At $29.35 an hour, what does 24 hours of work pay? Written as code: ```python rate = 29.35 hours = 24 earnings = rate * hours # 704.4000000000001 print(f"{earnings:.2f}") ``` The code prints: 704.40 That earns $704.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "704.40", "printed": "704.40", "notation": null}
nlprog_det-setting-0060735
<|start|><|user|> The statute was enacted in 2021. How many years had passed by 2044?<|eot|> <|assistant|> ```python start_year = 2021 end_year = 2044 print(end_year - start_year) ``` It outputs 23. That is 23 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The statute was enacted in 2021. How many years had passed by 2044?" }, { "role": "assistant", "content": "```python\nstart_year = 2021\nend_year = 2044\nprint(end_year - start_year)\n```\nIt outputs 23.\n\nThat is 23 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0060736
<|start|><|user|> Paula drove 572 miles for work. Mileage is reimbursed at 67 cents a mile. How much is the reimbursement?<|eot|> <|assistant|> The reimbursement is $383.24.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Paula drove 572 miles for work. Mileage is reimbursed at 67 cents a mile. How much is the reimbursement?" }, { "role": "assistant", "content": "The reimbursement is $383.24." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
50
{"gold": "383.24", "printed": "383.24", "notation": null}
nlprog_det-setting-0060737
<|start|><|user|> 1.5 hours of work at $350 an hour: what is the total charge?<|eot|> <|assistant|> hours = 1.5 rate = 350 bill = hours * rate # 525.0 print(f"{bill:.2f}") stdout: 525.00 The bill is $525.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "1.5 hours of work at $350 an hour: what is the total charge?" }, { "role": "assistant", "content": " hours = 1.5\n rate = 350\n bill = hours * rate # 525.0\n print(f\"{bill:.2f}\")\nstdout: 525.00\n\nThe bill is $525.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "525.00", "printed": "525.00", "notation": null}
nlprog_det-setting-0060738
<|start|><|system|> You have access to these functions: [{"name": "py_exec", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "search_cases", ...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"py_exec\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \...
nlprog_det
setting
original
null
deterministic
[]
[]
280
{"gold": "1800", "printed": "1800", "notation": null}
nlprog_det-setting-0060739
<|start|><|user|> How many whole days and leftover hours are in 259 hours?<|eot|> <|assistant|> That is 10 days and 19 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many whole days and leftover hours are in 259 hours?" }, { "role": "assistant", "content": "That is 10 days and 19 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "10 days and 19 hours", "printed": "10 days and 19 hours", "notation": null}
nlprog_det-setting-0060740
<|start|><|user|> How many meters are in 69.6 kilometers?<|eot|> <|assistant|> ```python km = 69.6 meters = km * 1000 # 69600.0 print(round(meters)) ``` The script prints 69600. 69,600 m.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many meters are in 69.6 kilometers?" }, { "role": "assistant", "content": "```python\nkm = 69.6\nmeters = km * 1000 # 69600.0\nprint(round(meters))\n```\nThe script prints 69600.\n\n69,600 m." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "69600", "printed": "69600", "notation": null}
nlprog_det-setting-0060741
<|start|><|user|> Count the days between January 16, 2018 and January 30, 2018.<|eot|> <|assistant|> from datetime import date first = date(2018, 1, 16) # datetime.date(2018, 1, 16) second = date(2018, 1, 30) # datetime.date(2018, 1, 30) print((second - first).days) Program output: 14 There are 14 da...
chat
[ { "role": "user", "content": "Count the days between January 16, 2018 and January 30, 2018." }, { "role": "assistant", "content": " from datetime import date\n first = date(2018, 1, 16) # datetime.date(2018, 1, 16)\n second = date(2018, 1, 30) # datetime.date(2018, 1, 30)\n print((...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0060742
A $30,000 grant pays $3,000 up front and the rest in 12 equal installments. How large is each installment? As Python: ```python grant = 30000 up_front = 3000 installments = 12 each = (grant - up_front) / installments # 2250.0 print(f"{each:.2f}") ``` Program output: 2250.00 Each installment is $2,250.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "2250.00", "printed": "2250.00", "notation": null}
nlprog_det-setting-0060743
Revenue is $37,000 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)? Programmatically: revenue = 37000 costs = 36000 profit = revenue - costs # 1000 margin = profit / revenue * 100 # 2.7027027027027026 print(round(margin, 1)) # console output: 2.7 The margin...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "2.7", "printed": "2.7", "notation": null}
nlprog_det-setting-0060744
Straight-line depreciation: cost $18,000, salvage $2,000, 4 years. How much per year? Computing it: ```python cost = 18000 salvage = 2000 years = 4 per_year = (cost - salvage) / years # 4000.0 print(f"{per_year:.2f}") ``` # stdout: 4000.00 $4,000.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "4000.00", "printed": "4000.00", "notation": null}
nlprog_det-setting-0060747
What does $1,000 grow to in 3 years at 3% annual compounding? We can compute it in Python. ```python principal = 1000 rate = 3 / 100 # 0.03 years = 3 value = principal * (1 + rate) ** years # 1092.727 print(f"{value:.2f}") ``` Run result: 1092.73 The balance is $1,092.73.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "1092.73", "printed": "1092.73", "notation": null}
nlprog_det-setting-0060748
<|start|><|system|> Tools (call with JSON): {"name": "eval_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> Divide 33 items among 9 grou...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"eval_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"s...
nlprog_det
setting
original
null
deterministic
[]
[]
241
{"gold": "3 each, 6 left over", "printed": "3 each, 6 left over", "notation": null}
nlprog_det-setting-0060749
<|start|><|user|> The landlord deducts $45 and $60 from a $2,500 deposit. What is returned to the tenant?<|eot|> <|assistant|> ```python deposit = 2500 deductions = [45, 60] refund = deposit - sum(deductions) # 2395 print(refund) ``` Execution result: 2395 The refund is $2,395.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The landlord deducts $45 and $60 from a $2,500 deposit. What is returned to the tenant?" }, { "role": "assistant", "content": "```python\ndeposit = 2500\ndeductions = [45, 60]\nrefund = deposit - sum(deductions) # 2395\nprint(refund)\n```\nExecution result: 2395\n\...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "2395", "printed": "2395", "notation": null}
nlprog_det-setting-0060750
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> If a 2-year limitations period starts on October 19, 2024, when does it end?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2024, 10, 19) # datetime.date(2024, 10, 19) years = 2 expires = accrued.replace(year=accrued.year + years...
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "If a 2-year limitations period starts on October 19, 2024, when does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2024, 10, 19) # dat...
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "2026-10-19", "printed": "2026-10-19", "notation": null}
nlprog_det-setting-0060751
<|start|><|user|> Which is cheaper per unit: 10 for $14.54 (A) or 15 for $7.85 (B)?<|eot|> <|assistant|> ```python pack_a = 14.54 / 10 # 1.454 pack_b = 7.85 / 15 # 0.5233333333333333 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` (Printed: B) B has the lower unit price.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Which is cheaper per unit: 10 for $14.54 (A) or 15 for $7.85 (B)?" }, { "role": "assistant", "content": "```python\npack_a = 14.54 / 10 # 1.454\npack_b = 7.85 / 15 # 0.5233333333333333\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'B'\nprint(cheaper)\n```\n(Pr...
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0060752
A recipe for 4 people uses 240 grams of oats. How many grams are needed for 3 people? One way, in code: ```python grams = 240 serves = 4 needed_for = 3 scaled = grams * needed_for // serves # 180 print(scaled) ``` The code prints: 180 Use 180 g of oats.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "180", "printed": "180", "notation": null}
nlprog_det-setting-0060753
<|start|><|system|> Answer in plain English.<|eot|> <|user|> Count 21 days forward from February 23, 2018. What date is that?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2018, 2, 23) # datetime.date(2018, 2, 23) end = start + timedelta(days=21) # datetime.date(2018, 3, 16) print(e...
chat
[ { "role": "system", "content": "Answer in plain English." }, { "role": "user", "content": "Count 21 days forward from February 23, 2018. What date is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2018, 2, 23) # datetime.da...
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "2018-03-16", "printed": "2018-03-16", "notation": null}
nlprog_det-setting-0060754
<|start|><|system|> Tools (call with JSON): [{"name": "sandbox_python", "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": "translat...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"sandbox_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source cod...
nlprog_det
setting
original
null
deterministic
[]
[]
308
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0060755
A training session lasted 3 hours and 53 minutes. How many minutes is that? Python does the arithmetic: ```python hours = 3 minutes = 53 total_minutes = hours * 60 + minutes # 233 print(total_minutes) ``` (Run result: 233) The training session lasted 233 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "233", "printed": "233", "notation": null}
nlprog_det-setting-0060756
22 batteries cost $2 apiece. With 6% tax added, what is the total? The total with tax is $46.64.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "46.64", "printed": "46.64", "notation": null}
nlprog_det-setting-0060757
<|start|><|user|> A customer buys 1 labels at $8 each, 2 water bottles at $21 each, 2 mugs at $13 each and pays with $100. How much change is due?<|eot|> <|assistant|> $24 comes back.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A customer buys 1 labels at $8 each, 2 water bottles at $21 each, 2 mugs at $13 each and pays with $100. How much change is due?" }, { "role": "assistant", "content": "$24 comes back." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
56
{"gold": "24", "printed": "24", "notation": null}