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-0060866
Which is cheaper per unit: 10 for $12.33 (A) or 18 for $23.89 (B)? A has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0060867
Convert 25 °C to Fahrenheit. We write it as a program: ```python celsius = 25 fahrenheit = celsius * 9 / 5 + 32 # 77.0 print(round(fahrenheit)) ``` Running it prints: 77 That is 77 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0060868
<|start|><|user|> Papers were served by mail on February 6, 2021. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?<|eot|> <|assistant|> The response is due on February 23, 2021.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Papers were served by mail on February 6, 2021. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?" }, { "role": "assistant", "content": "The response is due on February 23, 2021." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
53
{"gold": "2021-02-23", "printed": "2021-02-23", "notation": null}
nlprog_det-setting-0060869
Equal monthly payments repay $2,400 plus 10% simple yearly interest over 24 months. How large is a payment? As Python: ```python principal = 2400 annual_rate = 10 / 100 months = 24 interest = principal * annual_rate * months / 12 payment = (principal + interest) / months print(f"{payment:.2f}") ``` The script prints 1...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "120.00", "printed": "120.00", "notation": null}
nlprog_det-setting-0060870
<|start|><|user|> What percentage of $10,000 is $2,400?<|eot|> <|assistant|> budget = 10000 spent = 2400 percent = spent / budget * 100 # 24.0 print(round(percent, 1)) Console output — 24.0 24.0% has been spent.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What percentage of $10,000 is $2,400?" }, { "role": "assistant", "content": " budget = 10000\n spent = 2400\n percent = spent / budget * 100 # 24.0\n print(round(percent, 1))\nConsole output — 24.0\n\n24.0% has been spent." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "24.0", "printed": "24.0", "notation": null}
nlprog_det-setting-0060871
<|start|><|user|> Starting from $5,000, the team spends $3,939, $2,347, $3,573, $2,086. What remains?<|eot|> <|assistant|> ```python budget = 5000 expenses = [3939, 2347, 3573, 2086] left = budget - sum(expenses) # -6945 print(left) ``` # out: -6945 The remaining budget is -$6,945.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting from $5,000, the team spends $3,939, $2,347, $3,573, $2,086. What remains?" }, { "role": "assistant", "content": "```python\nbudget = 5000\nexpenses = [3939, 2347, 3573, 2086]\nleft = budget - sum(expenses) # -6945\nprint(left)\n```\n# out: -6945\n\nThe re...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "-6945", "printed": "-6945", "notation": null}
nlprog_det-setting-0060872
<|start|><|user|> A penalty of $100 a day accrues, capped at $5,000. What is owed after 11 days?<|eot|> <|assistant|> The fine is $1,100.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A penalty of $100 a day accrues, capped at $5,000. What is owed after 11 days?" }, { "role": "assistant", "content": "The fine is $1,100." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "1100", "printed": "1100", "notation": null}
nlprog_det-setting-0060873
<|start|><|system|> You are a precise assistant.<|eot|> <|user|> Of a $5,000 budget, $1,300 has been spent. What percent is that?<|eot|> <|assistant|> ```python budget = 5000 spent = 1300 percent = spent / budget * 100 # 26.0 print(round(percent, 1)) ``` (Output: 26.0) 26.0% has been spent.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a precise assistant." }, { "role": "user", "content": "Of a $5,000 budget, $1,300 has been spent. What percent is that?" }, { "role": "assistant", "content": "```python\nbudget = 5000\nspent = 1300\npercent = spent / budget * 100 # 26.0\nprint...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "26.0", "printed": "26.0", "notation": null}
nlprog_det-setting-0060874
A clerk's office charges $125 for each filing. Pilar submits 16 filings. What is the total fee? Code: ```python fee = 125 filings = 16 total = fee * filings # 2000 print(total) ``` This prints 2000. $2,000 in filing fees.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "2000", "printed": "2000", "notation": null}
nlprog_det-setting-0060875
Split $1,616 between Tomas and Signe in the ratio 3 to 5. What is Tomas's share? As Python: ```python total = 1616 parts_a = 3 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 606 print(share_a) ``` Result: 606 Tomas's share is $606.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "606", "printed": "606", "notation": null}
nlprog_det-setting-0060876
<|start|><|system|> Answer in plain English.<|eot|> <|user|> If a 25-minute meeting begins at 8:45 AM, what time does it finish?<|eot|> <|assistant|> ```python start = 8 * 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 run gives...
chat
[ { "role": "system", "content": "Answer in plain English." }, { "role": "user", "content": "If a 25-minute meeting begins at 8:45 AM, what time does it finish?" }, { "role": "assistant", "content": "```python\nstart = 8 * 60 + 45\nend = start + 25\nhour, minute = divmod(end, 60)\nprin...
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "9:10 AM", "printed": "9:10 AM", "notation": null}
nlprog_det-setting-0060877
A court charges $15 per request plus $0.10 per page after the first 10 pages. What does a 84-page copy cost? In code: pages = 84 base = 15 per_page = 0.1 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 22.4 print(f"{cost:.2f}") stdout: 22.40 The copy costs $22.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "22.40", "printed": "22.40", "notation": null}
nlprog_det-setting-0060878
A 5% increase is applied to $900 monthly rent. What is the new amount? A short script: ```python rent = 900 increase = 5 / 100 # 0.05 new_rent = rent * (1 + increase) # 945.0 print(f"{new_rent:.2f}") ``` It outputs: 945.00 The new rent is $945.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "945.00", "printed": "945.00", "notation": null}
nlprog_det-setting-0060879
<|start|><|user|> Starting with 478 staplers and using 7 per day, how many remain after 6 days?<|eot|> <|assistant|> ```python stock = 478 per_day = 7 days = 6 left = stock - per_day * days # 436 print(left) ``` The script prints 436. 436 staplers are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting with 478 staplers and using 7 per day, how many remain after 6 days?" }, { "role": "assistant", "content": "```python\nstock = 478\nper_day = 7\ndays = 6\nleft = stock - per_day * days # 436\nprint(left)\n```\nThe script prints 436.\n\n436 staplers are lef...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "436", "printed": "436", "notation": null}
nlprog_det-setting-0060881
<|start|><|user|> Buying 3 chairs at $29 each, 4 desk lamps at $29 each, 5 envelopes at $10 each, someone hands over $300. What change comes back?<|eot|> <|assistant|> ```python items = [(3, 29), (4, 29), (5, 10)] total = sum(q * p for q, p in items) # 253 paid = 300 change = paid - total # 47 print(change) ``` Execu...
chat
[ { "role": "user", "content": "Buying 3 chairs at $29 each, 4 desk lamps at $29 each, 5 envelopes at $10 each, someone hands over $300. What change comes back?" }, { "role": "assistant", "content": "```python\nitems = [(3, 29), (4, 29), (5, 10)]\ntotal = sum(q * p for q, p in items) # 253\npaid ...
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "47", "printed": "47", "notation": null}
nlprog_det-setting-0060882
<|start|><|user|> A $240 dinner bill gets a 20% tip, and 2 people share the cost equally. What is each person's share?<|eot|> <|assistant|> ```python bill = 240 tip_rate = 20 / 100 # 0.2 people = 2 each = bill * (1 + tip_rate) / people # 144.0 print(f"{each:.2f}") ``` Execution result: 144.00 The share is $144.00 ea...
chat
[ { "role": "user", "content": "A $240 dinner bill gets a 20% tip, and 2 people share the cost equally. What is each person's share?" }, { "role": "assistant", "content": "```python\nbill = 240\ntip_rate = 20 / 100 # 0.2\npeople = 2\neach = bill * (1 + tip_rate) / people # 144.0\nprint(f\"{each:...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "144.00", "printed": "144.00", "notation": null}
nlprog_det-setting-0060883
A party has 28 days to respond to a motion served on August 24, 2019, with 3 days added because service was by mail. When is the response due? Translated to Python: ```python from datetime import date, timedelta served = date(2019, 8, 24) # datetime.date(2019, 8, 24) response_days = 28 mail_days = 3 due = served + ti...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
179
{"gold": "2019-09-24", "printed": "2019-09-24", "notation": null}
nlprog_det-setting-0060884
How many days are there from August 16, 2028 to March 21, 2029? Programmatically: ```python from datetime import date first = date(2028, 8, 16) # datetime.date(2028, 8, 16) second = date(2029, 3, 21) # datetime.date(2029, 3, 21) print((second - first).days) ``` (Console output: 217) There are 217 days between the t...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "217", "printed": "217", "notation": null}
nlprog_det-setting-0060885
A pack of 6 cables sells for $270. What does each cost? The computation: ```python total = 270 count = 6 per_item = total // count # 45 print(per_item) ``` Printed result — 45 The unit price is $45.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "45", "printed": "45", "notation": null}
nlprog_det-setting-0060886
$2,000 is invested at 3% compounded yearly. What is it worth after 5 years? Python, step by step: ```python principal = 2000 rate = 3 / 100 # 0.03 years = 5 value = principal * (1 + rate) ** years # 2318.5481486000003 print(f"{value:.2f}") ``` Python prints 2318.55. It is worth $2,318.55.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "2318.55", "printed": "2318.55", "notation": null}
nlprog_det-setting-0060887
A lawyer's fee is 35% of a $90,000 recovery. How large is the fee? The computation: recovery = 90000 rate = 35 / 100 # 0.35 fee = recovery * rate # 31499.999999999996 print(f"{fee:.2f}") Printed — 31500.00 The lawyer's fee comes to $31,500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "31500.00", "printed": "31500.00", "notation": null}
nlprog_det-setting-0060888
A count moves from 200 to 250. By what percent did it change (use a minus sign for a drop)? ```python old = 200 new = 250 change = (new - old) / old * 100 # 25.0 print(round(change)) ``` The printout reads: 25 The change is 25%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "25", "printed": "25", "notation": null}
nlprog_det-setting-0060889
<|start|><|system|> You help people work with structured data.<|eot|> <|user|> A trial runs from June 4, 2027 to June 18, 2027, counting both days. How many calendar days is that?<|eot|> <|assistant|> ```python from datetime import date first = date(2027, 6, 4) last = date(2027, 6, 18) days = (last - first).days + 1 pr...
chat
[ { "role": "system", "content": "You help people work with structured data." }, { "role": "user", "content": "A trial runs from June 4, 2027 to June 18, 2027, counting both days. How many calendar days is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import dat...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0060890
<|start|><|user|> A $30,000 grant pays $6,000 up front and the rest in 12 equal installments. How large is each installment?<|eot|> <|assistant|> ```python grant = 30000 up_front = 6000 installments = 12 each = (grant - up_front) / installments print(f"{each:.2f}") ``` On running, it outputs: 2000.00 $2,000.00 per ins...
chat
[ { "role": "user", "content": "A $30,000 grant pays $6,000 up front and the rest in 12 equal installments. How large is each installment?" }, { "role": "assistant", "content": "```python\ngrant = 30000\nup_front = 6000\ninstallments = 12\neach = (grant - up_front) / installments\nprint(f\"{each:....
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0060891
<|start|><|user|> Someone born November 23, 1967 turns how old by July 21, 2030? Give the age in whole years.<|eot|> <|assistant|> The age is 62 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Someone born November 23, 1967 turns how old by July 21, 2030? Give the age in whole years." }, { "role": "assistant", "content": "The age is 62 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "62", "printed": "62", "notation": null}
nlprog_det-setting-0060892
<|start|><|system|> Tools you may use: [{"name": "interpreter", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> Each of Bilal's walks burns 350 calor...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"interpreter\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\"]}}...
nlprog_det
setting
original
null
deterministic
[]
[]
214
{"gold": "2100", "printed": "2100", "notation": null}
nlprog_det-setting-0060893
<|start|><|user|> A 18-month warranty starts on May 25, 2020. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date start = date(2020, 5, 25) months = 18 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat(...
chat
[ { "role": "user", "content": "A 18-month warranty starts on May 25, 2020. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2020, 5, 25)\nmonths = 18\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(start.yea...
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "2021-11-25", "printed": "2021-11-25", "notation": null}
nlprog_det-setting-0060894
<|start|><|user|> What is a 25% tip on a $170.87 bill?<|eot|> <|assistant|> ```python bill = 170.87 tip_rate = 25 / 100 # 0.25 tip = bill * tip_rate # 42.7175 print(f"{tip:.2f}") ``` Printed: 42.72 The tip is $42.72.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is a 25% tip on a $170.87 bill?" }, { "role": "assistant", "content": "```python\nbill = 170.87\ntip_rate = 25 / 100 # 0.25\ntip = bill * tip_rate # 42.7175\nprint(f\"{tip:.2f}\")\n```\nPrinted:\n42.72\n\nThe tip is $42.72." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "42.72", "printed": "42.72", "notation": null}
nlprog_det-setting-0060896
<|start|><|user|> Yusuf buys 3 boxes of 25 water bottles each and gives away 10 water bottles. How many water bottles are left?<|eot|> <|assistant|> ```python boxes = 3 per_box = 25 given_away = 10 left = boxes * per_box - given_away print(left) ``` # printed result: 65 65 water bottles are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Yusuf buys 3 boxes of 25 water bottles each and gives away 10 water bottles. How many water bottles are left?" }, { "role": "assistant", "content": "```python\nboxes = 3\nper_box = 25\ngiven_away = 10\nleft = boxes * per_box - given_away\nprint(left)\n```\n# printed...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "65", "printed": "65", "notation": null}
nlprog_det-setting-0060897
<|start|><|system|> Double-check numbers before answering.<|eot|> <|user|> Express 278 hours in days and hours.<|eot|> <|assistant|> ```python hours = 278 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` It prints 11 days and 14 hours. That is 11 days and 14 hours.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Double-check numbers before answering." }, { "role": "user", "content": "Express 278 hours in days and hours." }, { "role": "assistant", "content": "```python\nhours = 278\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\n...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "11 days and 14 hours", "printed": "11 days and 14 hours", "notation": null}
nlprog_det-setting-0060898
<|start|><|user|> Convert 91 km to meters.<|eot|> <|assistant|> ```python km = 91 meters = km * 1000 # 91000 print(round(meters)) ``` Running it prints: 91000 91,000 m.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 91 km to meters." }, { "role": "assistant", "content": "```python\nkm = 91\nmeters = km * 1000 # 91000\nprint(round(meters))\n```\nRunning it prints: 91000\n\n91,000 m." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "91000", "printed": "91000", "notation": null}
nlprog_det-setting-0060899
<|start|><|user|> A 20 × 9 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?<|eot|> <|assistant|> ```python import math length = 20 width = 9 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 180 print(tiles) ``` stdout: 180 It takes 180 tiles.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 20 × 9 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 20\nwidth = 9\ntile = 1\ntiles = math.ceil(length * width / (tile * tile)) # 180\nprint(tiles)\n```\nstdout: 180...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "180", "printed": "180", "notation": null}
nlprog_det-setting-0060900
A library charges $0.15 per book per day late. What is the fine for 4 books that are 18 days late? Computing it: ```python per_day = 0.15 days_late = 18 books = 4 fine = per_day * days_late * books # 10.799999999999999 print(f"{fine:.2f}") ``` Shell output: 10.80 The fine is $10.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "10.80", "printed": "10.80", "notation": null}
nlprog_det-setting-0060901
How many meters are in 0.8 kilometers? Here is a short program for it. ```python km = 0.8 meters = km * 1000 # 800.0 print(round(meters)) ``` # run result: 800 800 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "800", "printed": "800", "notation": null}
nlprog_det-setting-0060904
<|start|><|system|> You help with homework problems.<|eot|> <|user|> After a 40% fee is taken from a $72,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|> <|assistant|> ```python award = 72000 fee = award * 40 / 100 # 28800.0 remaining = award - fee # 43200.0 per_client = ...
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "After a 40% fee is taken from a $72,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?" }, { "role": "assistant", "content": "```python\naward = 720...
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "10800.00", "printed": "10800.00", "notation": null}
nlprog_det-setting-0060905
What day of the week is June 27, 1998? As a program: ```python from datetime import date hearing = date(1998, 6, 27) # datetime.date(1998, 6, 27) print(hearing.strftime("%A")) ``` The script prints: Saturday It is a Saturday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "Saturday", "printed": "Saturday", "notation": null}
nlprog_det-setting-0060906
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> Someone works 32 hours at $26.31 per hour. What are the earnings?<|eot|> <|assistant|> ```python rate = 26.31 hours = 32 earnings = rate * hours # 841.92 print(f"{earnings:.2f}") ``` # execution result: 841.92 That earns $841.92.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "Someone works 32 hours at $26.31 per hour. What are the earnings?" }, { "role": "assistant", "content": "```python\nrate = 26.31\nhours = 32\nearnings = rate * hours # 841.92\nprint(f...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "841.92", "printed": "841.92", "notation": null}
nlprog_det-setting-0060907
<|start|><|user|> A settlement of $84,000 is split equally among 6 parties. How much does each party receive?<|eot|> <|assistant|> settlement = 84000 parties = 6 share = settlement // parties # 14000 print(share) The printout reads 14000. Each party receives $14,000.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A settlement of $84,000 is split equally among 6 parties. How much does each party receive?" }, { "role": "assistant", "content": " settlement = 84000\n parties = 6\n share = settlement // parties # 14000\n print(share)\nThe printout reads 14000.\n\nEac...
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "14000", "printed": "14000", "notation": null}
nlprog_det-setting-0060908
A lease runs for 12 months at $3,250 per month. How much rent is paid over the whole term? Written as code: ```python monthly_rent = 3250 months = 12 total = monthly_rent * months # 39000 print(total) ``` Shell output — 39000 In total, $39,000 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "39000", "printed": "39000", "notation": null}
nlprog_det-setting-0060909
Zoe earns a 10% commission on $13,102 of sales. What is the commission? As Python: ```python sales = 13102 rate = 10 / 100 # 0.1 commission = sales * rate # 1310.2 print(f"{commission:.2f}") ``` # printed result: 1310.20 The commission is $1,310.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "1310.20", "printed": "1310.20", "notation": null}
nlprog_det-setting-0060911
<|start|><|user|> Goods bought on August 16, 2027 carry a 36-month warranty. When does it expire?<|eot|> <|assistant|> ```python from datetime import date start = date(2027, 8, 16) months = 36 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end....
chat
[ { "role": "user", "content": "Goods bought on August 16, 2027 carry a 36-month warranty. When does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2027, 8, 16)\nmonths = 36\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date...
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "2030-08-16", "printed": "2030-08-16", "notation": null}
nlprog_det-setting-0060912
<|start|><|user|> A car travels 453 miles in 0.5 hours. What is its average speed in miles per hour?<|eot|> <|assistant|> It averages 906 miles per hour.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A car travels 453 miles in 0.5 hours. What is its average speed in miles per hour?" }, { "role": "assistant", "content": "It averages 906 miles per hour." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "906", "printed": "906", "notation": null}
nlprog_det-setting-0060913
Count 60 days forward from November 16, 2023. What date is that? Here is the program. from datetime import date, timedelta start = date(2023, 11, 16) # datetime.date(2023, 11, 16) end = start + timedelta(days=60) # datetime.date(2024, 1, 15) print(end.isoformat()) Running this gives 2024-01-15. That...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "2024-01-15", "printed": "2024-01-15", "notation": null}
nlprog_det-setting-0060914
Monthly: $29. Annual: $300. What is saved per year by paying annually? We can compute it in Python. ```python monthly = 29 yearly = 300 savings = monthly * 12 - yearly # 48 print(savings) ``` When run, it prints 48, as expected. The annual plan saves $48.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0060915
4 books come back 9 days late, at $0.25 a day each. What is the fine? The Python version: ```python per_day = 0.25 days_late = 9 books = 4 fine = per_day * days_late * books # 9.0 print(f"{fine:.2f}") ``` The script prints: 9.00 $9.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "9.00", "printed": "9.00", "notation": null}
nlprog_det-setting-0060916
A lawyer's fee is 30% of a $90,000 recovery. How large is the fee? Computation in Python: ```python recovery = 90000 rate = 30 / 100 fee = recovery * rate print(f"{fee:.2f}") ``` Running it prints: 27000.00 The lawyer's fee comes to $27,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "27000.00", "printed": "27000.00", "notation": null}
nlprog_det-setting-0060917
How many 1-foot square tiles cover a 14 ft by 6 ft floor (round up)? 84 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "84", "printed": "84", "notation": null}
nlprog_det-setting-0060918
Under a 30% contingency agreement, what fee is owed on a $40,000 award? The lawyer's fee comes to $12,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "12000.00", "printed": "12000.00", "notation": null}
nlprog_det-setting-0060919
<|start|><|user|> At $21.15 an hour, what does 38 hours of work pay?<|eot|> <|assistant|> rate = 21.15 hours = 38 earnings = rate * hours # 803.6999999999999 print(f"{earnings:.2f}") The interpreter prints: 803.70 That earns $803.70.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $21.15 an hour, what does 38 hours of work pay?" }, { "role": "assistant", "content": " rate = 21.15\n hours = 38\n earnings = rate * hours # 803.6999999999999\n print(f\"{earnings:.2f}\")\nThe interpreter prints: 803.70\n\nThat earns $803.70." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "803.70", "printed": "803.70", "notation": null}
nlprog_det-setting-0060920
A claim accrued on June 11, 2015. The limitations period is 6 years. On what date does it expire? Python, step by step: ```python from datetime import date accrued = date(2015, 6, 11) # datetime.date(2015, 6, 11) years = 6 expires = accrued.replace(year=accrued.year + years) # datetime.date(2021, 6, 11) print(expire...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "2021-06-11", "printed": "2021-06-11", "notation": null}
nlprog_det-setting-0060921
Convert -15 °C to Fahrenheit. Here is the program. celsius = -15 fahrenheit = celsius * 9 / 5 + 32 # 5.0 print(round(fahrenheit)) Out: 5 That is 5 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0060922
A service costs $19 a month or $204 a year. How much does the yearly plan save over 12 monthly payments? A short script: ```python monthly = 19 yearly = 204 savings = monthly * 12 - yearly # 24 print(savings) ``` Interpreter output — 24 The annual plan saves $24.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0060923
<|start|><|user|> A lawyer's fee is 35% of a $150,000 recovery. How large is the fee?<|eot|> <|assistant|> ```python recovery = 150000 rate = 35 / 100 fee = recovery * rate print(f"{fee:.2f}") ``` # console output: 52500.00 The lawyer's fee comes to $52,500.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lawyer's fee is 35% of a $150,000 recovery. How large is the fee?" }, { "role": "assistant", "content": "```python\nrecovery = 150000\nrate = 35 / 100\nfee = recovery * rate\nprint(f\"{fee:.2f}\")\n```\n# console output: 52500.00\n\nThe lawyer's fee comes to $52,5...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "52500.00", "printed": "52500.00", "notation": null}
nlprog_det-setting-0060924
<|start|><|user|> A 75-mile drive at a steady 30 mph takes how many minutes?<|eot|> <|assistant|> ```python distance = 75 speed = 30 minutes = distance / speed * 60 # 150.0 print(round(minutes)) ``` Execution result — 150 The trip takes 150 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 75-mile drive at a steady 30 mph takes how many minutes?" }, { "role": "assistant", "content": "```python\ndistance = 75\nspeed = 30\nminutes = distance / speed * 60 # 150.0\nprint(round(minutes))\n```\nExecution result — 150\n\nThe trip takes 150 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0060925
Omar earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 42-hour week? Here's the code. rate = 18.5 hours = 42 regular = 40 * rate # 740.0 overtime = (hours - 40) * rate * 1.5 # 55.5 pay = regular + overtime # 795.5 print(f"{pay:.2f}") The program prints: 795.50...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "795.50", "printed": "795.50", "notation": null}
nlprog_det-setting-0060926
A meal costs $243.96. How much is a 15% tip? One way, in code: ```python bill = 243.96 tip_rate = 15 / 100 # 0.15 tip = bill * tip_rate # 36.594 print(f"{tip:.2f}") ``` Program output: 36.59 The tip is $36.59.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "36.59", "printed": "36.59", "notation": null}
nlprog_det-setting-0060927
<|start|><|user|> A car gets 20 miles per gallon. Gas is $4.12 a gallon. What does fuel cost for a 300-mile trip?<|eot|> <|assistant|> The trip uses $61.80 of gas.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A car gets 20 miles per gallon. Gas is $4.12 a gallon. What does fuel cost for a 300-mile trip?" }, { "role": "assistant", "content": "The trip uses $61.80 of gas." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
50
{"gold": "61.80", "printed": "61.80", "notation": null}
nlprog_det-setting-0060928
<|start|><|user|> Xavier lends $12,000 at 2% simple interest per year for 2 years. How much interest is earned?<|eot|> <|assistant|> principal = 12000 rate = 2 / 100 # 0.02 years = 2 interest = principal * rate * years # 480.0 print(f"{interest:.2f}") The program outputs: 480.00 The interest is $...
chat
[ { "role": "user", "content": "Xavier lends $12,000 at 2% simple interest per year for 2 years. How much interest is earned?" }, { "role": "assistant", "content": " principal = 12000\n rate = 2 / 100 # 0.02\n years = 2\n interest = principal * rate * years # 480.0\n print(f\"{int...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "480.00", "printed": "480.00", "notation": null}
nlprog_det-setting-0060929
<|start|><|system|> You are a logic tutor.<|eot|> <|user|> A 7-day trip pays $59 a day for meals and $175 a night for lodging (6 nights). What is the total allowance?<|eot|> <|assistant|> ```python days = 7 meal_rate = 59 lodging_rate = 175 nights = days - 1 # 6 total = days * meal_rate + nights * lodging_rate # 1463...
chat
[ { "role": "system", "content": "You are a logic tutor." }, { "role": "user", "content": "A 7-day trip pays $59 a day for meals and $175 a night for lodging (6 nights). What is the total allowance?" }, { "role": "assistant", "content": "```python\ndays = 7\nmeal_rate = 59\nlodging_rat...
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "1463", "printed": "1463", "notation": null}
nlprog_det-setting-0060930
Water costs $20 a month plus $4.20 for each 1,000 gallons over 3,000. What is owed for 25,000 gallons? Here is a short program for it. ```python base = 20 rate = 4.2 used = 25 free = 3 bill = base + rate * max(0, used - free) # 112.4 print(f"{bill:.2f}") ``` Result: 112.40 $112.40 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "112.40", "printed": "112.40", "notation": null}
nlprog_det-setting-0060931
Goods bought on October 1, 2021 carry a 36-month warranty. When does it expire? Set it up in Python: ```python from datetime import date start = date(2021, 10, 1) months = 36 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "2024-10-01", "printed": "2024-10-01", "notation": null}
nlprog_det-setting-0060932
How many whole days and leftover hours are in 144 hours? As Python: ```python hours = 144 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Result — 6 days and 0 hours 144 hours is 6 days and 0 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "6 days and 0 hours", "printed": "6 days and 0 hours", "notation": null}
nlprog_det-setting-0060933
What commission does Bilal make on $55,185 in sales at 3%? ```python sales = 55185 rate = 3 / 100 # 0.03 commission = sales * rate # 1655.55 print(f"{commission:.2f}") ``` Running it prints 1655.55, as expected. The commission is $1,655.55.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "1655.55", "printed": "1655.55", "notation": null}
nlprog_det-setting-0060934
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> An attorney bills 6.5 hours at $350 per hour. What is the bill?<|eot|> <|assistant|> The bill is $2,275.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "An attorney bills 6.5 hours at $350 per hour. What is the bill?" }, { "role": "assistant", "content": "The bill is $2,275.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
49
{"gold": "2275.00", "printed": "2275.00", "notation": null}
nlprog_det-setting-0060935
A 6% increase is applied to $1,100 monthly rent. What is the new amount? As Python: ```python rent = 1100 increase = 6 / 100 # 0.06 new_rent = rent * (1 + increase) # 1166.0 print(f"{new_rent:.2f}") ``` The printout reads: 1166.00 It rises to $1,166.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "1166.00", "printed": "1166.00", "notation": null}
nlprog_det-setting-0060936
<|start|><|system|> Tools you may use: [{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "compute", "description": "Python sandbox for calculations. Returns printed ...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"name\": \"compute\", \"descript...
nlprog_det
setting
original
null
deterministic
[]
[]
322
{"gold": "1375.00", "printed": "1375.00", "notation": null}
nlprog_det-setting-0060937
<|start|><|user|> Carmen has 9 documents to file, and each filing costs $150. How much are the filing fees in total?<|eot|> <|assistant|> ```python fee = 150 filings = 9 total = fee * filings # 1350 print(total) ``` The script prints 1350. The total fee is $1,350.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Carmen has 9 documents to file, and each filing costs $150. How much are the filing fees in total?" }, { "role": "assistant", "content": "```python\nfee = 150\nfilings = 9\ntotal = fee * filings # 1350\nprint(total)\n```\nThe script prints 1350.\n\nThe total fee is...
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "1350", "printed": "1350", "notation": null}
nlprog_det-setting-0060938
<|start|><|user|> One can of paint covers 300 square feet. How many cans are needed for 285 square feet of wall?<|eot|> <|assistant|> ```python import math area = 285 coverage = 300 cans = math.ceil(area / coverage) # 1 print(cans) ``` Shell output: 1 Buy 1 cans.<|eot|> <|end|>
chat
[ { "role": "user", "content": "One can of paint covers 300 square feet. How many cans are needed for 285 square feet of wall?" }, { "role": "assistant", "content": "```python\nimport math\narea = 285\ncoverage = 300\ncans = math.ceil(area / coverage) # 1\nprint(cans)\n```\nShell output: 1\n\nBuy...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "1", "printed": "1", "notation": null}
nlprog_det-setting-0060939
Each of Reza's walks burns 350 calories. How many calories over 5 walks? Let the code do the arithmetic: ```python per_session = 350 sessions = 5 total = per_session * sessions # 1750 print(total) ``` When run, it prints 1750. That burns 1750 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "1750", "printed": "1750", "notation": null}
nlprog_det-setting-0060940
Prorate $900 of monthly rent for 18 days of a 31-day month. ```python rent = 900 days_in_month = 31 days_occupied = 18 prorated = rent * days_occupied / days_in_month # 522.5806451612904 print(f"{prorated:.2f}") ``` Running this gives: 522.58 The tenant owes $522.58.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "522.58", "printed": "522.58", "notation": null}
nlprog_det-setting-0060941
What is the total rent on a 6-month lease at $3,250 a month? The Python version: ```python monthly_rent = 3250 months = 6 total = monthly_rent * months # 19500 print(total) ``` Out — 19500 In total, $19,500 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "19500", "printed": "19500", "notation": null}
nlprog_det-setting-0060942
<|start|><|user|> How much sales tax is charged on a $664.70 purchase at 9%?<|eot|> <|assistant|> ```python price = 664.7 tax_rate = 9 / 100 # 0.09 tax = price * tax_rate # 59.823 print(f"{tax:.2f}") ``` Execution prints: 59.82 The tax is $59.82.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How much sales tax is charged on a $664.70 purchase at 9%?" }, { "role": "assistant", "content": "```python\nprice = 664.7\ntax_rate = 9 / 100 # 0.09\ntax = price * tax_rate # 59.823\nprint(f\"{tax:.2f}\")\n```\nExecution prints: 59.82\n\nThe tax is $59.82." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "59.82", "printed": "59.82", "notation": null}
nlprog_det-setting-0060943
<|start|><|system|> You have access to these functions: {"name": "calculator", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> Counting only Monday thro...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"calculator\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [...
nlprog_det
setting
original
null
deterministic
[]
[]
278
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0060944
If a 50-minute shift begins at 12:10 PM, what time does it finish? We write it as a program: ```python start = 12 * 60 + 10 end = start + 50 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` The script prints: 1:00 PM The shift finishes at 1:00 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "1:00 PM", "printed": "1:00 PM", "notation": null}
nlprog_det-setting-0060945
Papers were served by mail on March 8, 2025. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date? Python does the arithmetic: ```python from datetime import date, timedelta served = date(2025, 3, 8) # datetime.date(2025, 3, 8) response_days = 14 mail_days = 3 due = served + ti...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
185
{"gold": "2025-03-25", "printed": "2025-03-25", "notation": null}
nlprog_det-setting-0060946
Convert 54.3 km to meters. ```python km = 54.3 meters = km * 1000 # 54300.0 print(round(meters)) ``` (Run result: 54300) That is 54,300 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "54300", "printed": "54300", "notation": null}
nlprog_det-setting-0060947
<|start|><|user|> A customer buys 1 badges at $19 each, 1 desk lamps at $20 each and pays with $50. How much change is due?<|eot|> <|assistant|> ```python items = [(1, 19), (1, 20)] total = sum(q * p for q, p in items) # 39 paid = 50 change = paid - total # 11 print(change) ``` Executing it gives 11, as expected. Th...
chat
[ { "role": "user", "content": "A customer buys 1 badges at $19 each, 1 desk lamps at $20 each and pays with $50. How much change is due?" }, { "role": "assistant", "content": "```python\nitems = [(1, 19), (1, 20)]\ntotal = sum(q * p for q, p in items) # 39\npaid = 50\nchange = paid - total # 11...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0060948
Copies cost $15 plus $0.50 for each page beyond 20. How much for 86 pages? A few lines of Python do it: ```python pages = 86 base = 15 per_page = 0.5 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 48.0 print(f"{cost:.2f}") ``` Out — 48.00 The copy costs $48.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "48.00", "printed": "48.00", "notation": null}
nlprog_det-setting-0060949
What day of the week is May 14, 2015? Set it up in Python: ```python from datetime import date hearing = date(2015, 5, 14) # datetime.date(2015, 5, 14) print(hearing.strftime("%A")) ``` # stdout: Thursday May 14, 2015 is a Thursday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "Thursday", "printed": "Thursday", "notation": null}
nlprog_det-setting-0060950
A water bill is $18 plus $3.50 per thousand gallons beyond the first 3 thousand. What is the bill for 25 thousand gallons? Let the code do the arithmetic: ```python base = 18 rate = 3.5 used = 25 free = 3 bill = base + rate * max(0, used - free) # 95.0 print(f"{bill:.2f}") ``` Printed: 95.00 The bill is $95.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "95.00", "printed": "95.00", "notation": null}
nlprog_det-setting-0060951
A settlement of $7,350 is split equally among 3 parties. How much does each party receive? Programmatically: ```python settlement = 7350 parties = 3 share = settlement // parties # 2450 print(share) ``` This prints: 2450 Each party receives $2,450.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "2450", "printed": "2450", "notation": null}
nlprog_det-setting-0060952
The paralegal logged 12 hours at a rate of $250. How much is billed? Script: ```python hours = 12 rate = 250 bill = hours * rate # 3000 print(f"{bill:.2f}") ``` Printed result: 3000.00 The bill is $3,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "3000.00", "printed": "3000.00", "notation": null}
nlprog_det-setting-0060953
Convert 8,188 USD to CAD at 1 USD = 0.92 CAD. Set it up in Python: ```python amount = 8188 rate = 0.92 converted = amount * rate # 7532.96 print(f"{converted:.2f}") ``` When run, it prints 7532.96. It converts to 7,532.96 CAD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "7532.96", "printed": "7532.96", "notation": null}
nlprog_det-setting-0060954
<|start|><|system|> You help people work with structured data.<|eot|> <|user|> Under a 33% contingency agreement, what fee is owed on a $40,000 award?<|eot|> <|assistant|> ```python recovery = 40000 rate = 33 / 100 # 0.33 fee = recovery * rate # 13200.0 print(f"{fee:.2f}") ``` Program output: 13200.00 The fee is $13...
chat
[ { "role": "system", "content": "You help people work with structured data." }, { "role": "user", "content": "Under a 33% contingency agreement, what fee is owed on a $40,000 award?" }, { "role": "assistant", "content": "```python\nrecovery = 40000\nrate = 33 / 100 # 0.33\nfee = reco...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "13200.00", "printed": "13200.00", "notation": null}
nlprog_det-setting-0060955
<|start|><|user|> A customer buys 5 calendars at $24 each, 6 scissors at $2 each, 1 paper reams at $3 each and pays with $150. How much change is due?<|eot|> <|assistant|> items = [(5, 24), (6, 2), (1, 3)] total = sum(q * p for q, p in items) # 135 paid = 150 change = paid - total # 15 print(chang...
chat
[ { "role": "user", "content": "A customer buys 5 calendars at $24 each, 6 scissors at $2 each, 1 paper reams at $3 each and pays with $150. How much change is due?" }, { "role": "assistant", "content": " items = [(5, 24), (6, 2), (1, 3)]\n total = sum(q * p for q, p in items) # 135\n pa...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0060956
68 volunteers are split into 4 equal teams. How many are on each team, and how many are left over? Code: total = 68 groups = 4 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") What it prints: 17 each, 0 left over The answer: 17 each, 0 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "17 each, 0 left over", "printed": "17 each, 0 left over", "notation": null}
nlprog_det-setting-0060957
<|start|><|user|> Parking is $2 per hour with a daily maximum of $15. What do 8 hours cost?<|eot|> <|assistant|> rate = 2 hours = 8 daily_max = 15 cost = min(rate * hours, daily_max) # 15 print(cost) Python prints: 15 Parking costs $15.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Parking is $2 per hour with a daily maximum of $15. What do 8 hours cost?" }, { "role": "assistant", "content": " rate = 2\n hours = 8\n daily_max = 15\n cost = min(rate * hours, daily_max) # 15\n print(cost)\nPython prints: 15\n\nParking costs $15."...
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0060958
A court charges $10 per request plus $0.25 per page after the first 10 pages. What does a 95-page copy cost? The program: pages = 95 base = 10 per_page = 0.25 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 31.25 print(f"{cost:.2f}") stdout: 31.25 The total is $31.25.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "31.25", "printed": "31.25", "notation": null}
nlprog_det-setting-0060959
The landlord deducts $75 and $45 from a $2,000 deposit. What is returned to the tenant? The refund is $1,880.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "1880", "printed": "1880", "notation": null}
nlprog_det-setting-0060960
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> Yara earns a 4% commission on $65,365 of sales. What is the commission?<|eot|> <|assistant|> Yara earns $2,614.60.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "Yara earns a 4% commission on $65,365 of sales. What is the commission?" }, { "role": "assistant", "content": "Yara earns $2,614.60." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
52
{"gold": "2614.60", "printed": "2614.60", "notation": null}
nlprog_det-setting-0060961
An office budget of $25,000 has expenses of $646, $497, $2,432, $2,770. How much of the budget is left? The program: ```python budget = 25000 expenses = [646, 497, 2432, 2770] left = budget - sum(expenses) # 18655 print(left) ``` Run result — 18655 $18,655 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "18655", "printed": "18655", "notation": null}
nlprog_det-setting-0060962
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> Fixed costs are $9,000. Each unit sells for $25 and costs $19 to make. How many units must be sold to break even?<|eot|> <|assistant|> ```python import math fixed = 9000 price = 25 variable = 19 units = math.ceil(fixed / (price - variable)) # 1500 prin...
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "role": "user", "content": "Fixed costs are $9,000. Each unit sells for $25 and costs $19 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 90...
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0060963
A recipe for 8 people uses 450 grams of rice. How many grams are needed for 4 people? Code: ```python grams = 450 serves = 8 needed_for = 4 scaled = grams * needed_for // serves # 225 print(scaled) ``` (Printed: 225) 225 grams of rice are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "225", "printed": "225", "notation": null}
nlprog_det-setting-0060964
A library charges $0.20 per book per day late. What is the fine for 1 books that are 23 days late? ```python per_day = 0.2 days_late = 23 books = 1 fine = per_day * days_late * books # 4.6000000000000005 print(f"{fine:.2f}") ``` (Printed result: 4.60) The fine is $4.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "4.60", "printed": "4.60", "notation": null}
nlprog_det-setting-0060965
<|start|><|user|> What commission does Quinn make on $93,523 in sales at 4%?<|eot|> <|assistant|> ```python sales = 93523 rate = 4 / 100 # 0.04 commission = sales * rate # 3740.92 print(f"{commission:.2f}") ``` Execution prints 3740.92. The commission is $3,740.92.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What commission does Quinn make on $93,523 in sales at 4%?" }, { "role": "assistant", "content": "```python\nsales = 93523\nrate = 4 / 100 # 0.04\ncommission = sales * rate # 3740.92\nprint(f\"{commission:.2f}\")\n```\nExecution prints 3740.92.\n\nThe commission i...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "3740.92", "printed": "3740.92", "notation": null}
nlprog_det-setting-0060966
<|start|><|system|> Tool definitions: {"name": "python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> The rules require 1/3 of 30 members (r...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}...
nlprog_det
setting
original
null
deterministic
[]
[]
205
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0060967
Mei and Elena share $2,016 in the ratio 1:3. How much does Mei get? Python code: ```python total = 2016 parts_a = 1 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 504 print(share_a) ``` Output: 504 Mei gets $504.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "504", "printed": "504", "notation": null}
nlprog_det-setting-0060969
Papers were served by mail on January 5, 2024. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date? Computing it: ```python from datetime import date, timedelta served = date(2024, 1, 5) # datetime.date(2024, 1, 5) response_days = 30 mail_days = 3 due = served + timedelta(days...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
178
{"gold": "2024-02-07", "printed": "2024-02-07", "notation": null}
nlprog_det-setting-0060970
<|start|><|user|> A settlement of $1,200 is split equally among 4 parties. How much does each party receive?<|eot|> <|assistant|> ```python settlement = 1200 parties = 4 share = settlement // parties # 300 print(share) ``` (Run result: 300) Each share is $300.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A settlement of $1,200 is split equally among 4 parties. How much does each party receive?" }, { "role": "assistant", "content": "```python\nsettlement = 1200\nparties = 4\nshare = settlement // parties # 300\nprint(share)\n```\n(Run result: 300)\n\nEach share is $...
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0060971
How many weekdays (Monday to Friday) fall after May 14, 2022 up to and including May 31, 2022? Computation in Python: ```python from datetime import date, timedelta start = date(2022, 5, 14) end = date(2022, 5, 31) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() < 5: ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
158
{"gold": "12", "printed": "12", "notation": null}