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-0065756
A 36-month warranty starts on August 28, 2026. On what date does it end? One way, in code: ```python from datetime import date start = date(2026, 8, 28) months = 36 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Result: 20...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "2029-08-28", "printed": "2029-08-28", "notation": null}
nlprog_det-setting-0065757
<|start|><|user|> A count moves from 1,200 to 960. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> The change is -20%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A count moves from 1,200 to 960. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": "The change is -20%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "-20", "printed": "-20", "notation": null}
nlprog_det-setting-0065758
<|start|><|user|> A 686-page report must be reviewed in 14 days. How many pages a day is that, evenly?<|eot|> <|assistant|> ```python pages = 686 days = 14 per_day = pages // days # 49 print(per_day) ``` The program outputs: 49 That is 49 pages per day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 686-page report must be reviewed in 14 days. How many pages a day is that, evenly?" }, { "role": "assistant", "content": "```python\npages = 686\ndays = 14\nper_day = pages // days # 49\nprint(per_day)\n```\nThe program outputs: 49\n\nThat is 49 pages per day." ...
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "49", "printed": "49", "notation": null}
nlprog_det-setting-0065759
<|start|><|user|> $5,000 is invested at 2% compounded yearly. What is it worth after 4 years?<|eot|> <|assistant|> ```python principal = 5000 rate = 2 / 100 # 0.02 years = 4 value = principal * (1 + rate) ** years # 5412.1608 print(f"{value:.2f}") ``` On running, it outputs 5412.16. The balance is $5,412.16.<|eot|> ...
chat
[ { "role": "user", "content": "$5,000 is invested at 2% compounded yearly. What is it worth after 4 years?" }, { "role": "assistant", "content": "```python\nprincipal = 5000\nrate = 2 / 100 # 0.02\nyears = 4\nvalue = principal * (1 + rate) ** years # 5412.1608\nprint(f\"{value:.2f}\")\n```\nOn ...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "5412.16", "printed": "5412.16", "notation": null}
nlprog_det-setting-0065760
<|start|><|system|> You are a data assistant.<|eot|> <|user|> Pack A has 10 items for $8.30. Pack B has 24 items for $25.10. Which has the lower price per item?<|eot|> <|assistant|> Pack A is cheaper per item.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a data assistant." }, { "role": "user", "content": "Pack A has 10 items for $8.30. Pack B has 24 items for $25.10. Which has the lower price per item?" }, { "role": "assistant", "content": "Pack A is cheaper per item." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
63
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0065761
A pack of 5 sticky pads sells for $170. What does each cost? Coded up: ```python total = 170 count = 5 per_item = total // count # 34 print(per_item) ``` Running it prints 34, as expected. Each one costs $34.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "34", "printed": "34", "notation": null}
nlprog_det-setting-0065762
<|start|><|user|> At a 6% tax rate, what is the tax on $462.71?<|eot|> <|assistant|> ```python price = 462.71 tax_rate = 6 / 100 tax = price * tax_rate print(f"{tax:.2f}") ``` Execution result — 27.76 The tax is $27.76.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At a 6% tax rate, what is the tax on $462.71?" }, { "role": "assistant", "content": "```python\nprice = 462.71\ntax_rate = 6 / 100\ntax = price * tax_rate\nprint(f\"{tax:.2f}\")\n```\nExecution result — 27.76\n\nThe tax is $27.76." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "27.76", "printed": "27.76", "notation": null}
nlprog_det-setting-0065763
Equal monthly payments repay $9,000 plus 5% simple yearly interest over 36 months. How large is a payment? In Python: ```python principal = 9000 annual_rate = 5 / 100 # 0.05 months = 36 interest = principal * annual_rate * months / 12 # 1350.0 payment = (principal + interest) / months # 287.5 print(f"{payment:.2f}"...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "287.50", "printed": "287.50", "notation": null}
nlprog_det-setting-0065764
A shift starts at 8:15 AM and lasts 90 minutes. When does it end? The shift finishes at 9:45 AM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "9:45 AM", "printed": "9:45 AM", "notation": null}
nlprog_det-setting-0065765
<|start|><|user|> A service costs $9 a month or $90 a year. How much does the yearly plan save over 12 monthly payments?<|eot|> <|assistant|> ```python monthly = 9 yearly = 90 savings = monthly * 12 - yearly # 18 print(savings) ``` (stdout: 18) $18 is saved.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A service costs $9 a month or $90 a year. How much does the yearly plan save over 12 monthly payments?" }, { "role": "assistant", "content": "```python\nmonthly = 9\nyearly = 90\nsavings = monthly * 12 - yearly # 18\nprint(savings)\n```\n(stdout: 18)\n\n$18 is save...
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0065766
The landlord deducts $120 from a $2,000 deposit. What is returned to the tenant? ```python deposit = 2000 deductions = [120] refund = deposit - sum(deductions) print(refund) ``` Printed: 1880 The refund is $1,880.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "1880", "printed": "1880", "notation": null}
nlprog_det-setting-0065767
Liesel earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 54-hour week? Python code: ```python rate = 20.0 hours = 54 regular = 40 * rate # 800.0 overtime = (hours - 40) * rate * 1.5 # 420.0 pay = regular + overtime # 1220.0 print(f"{pay:.2f}") ``` The program prints 1220.00, as expec...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "1220.00", "printed": "1220.00", "notation": null}
nlprog_det-setting-0065768
<|start|><|system|> Answer in plain English.<|eot|> <|user|> Fines run at $50 per day up to a maximum of $5,000. How much after 50 days?<|eot|> <|assistant|> ```python per_day = 50 days = 50 cap = 5000 fine = min(per_day * days, cap) # 2500 print(fine) ``` Shell output — 2500 The fine is $2,500.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Answer in plain English." }, { "role": "user", "content": "Fines run at $50 per day up to a maximum of $5,000. How much after 50 days?" }, { "role": "assistant", "content": "```python\nper_day = 50\ndays = 50\ncap = 5000\nfine = min(per_day * days, cap...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0065770
Water costs $15 a month plus $5.10 for each 1,000 gallons over 0,000. What is owed for 11,000 gallons? Code: ```python base = 15 rate = 5.1 used = 11 free = 0 bill = base + rate * max(0, used - free) # 71.1 print(f"{bill:.2f}") ``` # stdout: 71.10 $71.10 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "71.10", "printed": "71.10", "notation": null}
nlprog_det-setting-0065771
The firm was founded in 1995. How many years had passed by 2015? Translated to Python: start_year = 1995 end_year = 2015 print(end_year - start_year) stdout: 20 20 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
63
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0065772
What does $2,000 grow to in 3 years at 4% annual compounding? The balance is $2,249.73.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "2249.73", "printed": "2249.73", "notation": null}
nlprog_det-setting-0065773
<|start|><|user|> Maren and Paula share $882 in the ratio 1:2. How much does Maren get?<|eot|> <|assistant|> ```python total = 882 parts_a = 1 parts_b = 2 share_a = total * parts_a // (parts_a + parts_b) # 294 print(share_a) ``` # output: 294 Maren gets $294.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Maren and Paula share $882 in the ratio 1:2. How much does Maren get?" }, { "role": "assistant", "content": "```python\ntotal = 882\nparts_a = 1\nparts_b = 2\nshare_a = total * parts_a // (parts_a + parts_b) # 294\nprint(share_a)\n```\n# output: 294\n\nMaren gets $...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "294", "printed": "294", "notation": null}
nlprog_det-setting-0065774
A count moves from 1,000 to 850. By what percent did it change (use a minus sign for a drop)? ```python old = 1000 new = 850 change = (new - old) / old * 100 # -15.0 print(round(change)) ``` Interpreter output: -15 It changed by -15%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "-15", "printed": "-15", "notation": null}
nlprog_det-setting-0065775
<|start|><|system|> Answer the user's question directly.<|eot|> <|user|> An office budget of $25,000 has expenses of $2,590, $3,805. How much of the budget is left?<|eot|> <|assistant|> ```python budget = 25000 expenses = [2590, 3805] left = budget - sum(expenses) # 18605 print(left) ``` Out: 18605 The remaining budg...
chat
[ { "role": "system", "content": "Answer the user's question directly." }, { "role": "user", "content": "An office budget of $25,000 has expenses of $2,590, $3,805. How much of the budget is left?" }, { "role": "assistant", "content": "```python\nbudget = 25000\nexpenses = [2590, 3805]...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "18605", "printed": "18605", "notation": null}
nlprog_det-setting-0065776
<|start|><|user|> A meal costs $76.61. How much is a 18% tip?<|eot|> <|assistant|> bill = 76.61 tip_rate = 18 / 100 # 0.18 tip = bill * tip_rate # 13.7898 print(f"{tip:.2f}") (Run result: 13.79) The tip is $13.79.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A meal costs $76.61. How much is a 18% tip?" }, { "role": "assistant", "content": " bill = 76.61\n tip_rate = 18 / 100 # 0.18\n tip = bill * tip_rate # 13.7898\n print(f\"{tip:.2f}\")\n(Run result: 13.79)\n\nThe tip is $13.79." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "13.79", "printed": "13.79", "notation": null}
nlprog_det-setting-0065777
Parking is $2 per hour with a daily maximum of $24. What do 9 hours cost? ```python rate = 2 hours = 9 daily_max = 24 cost = min(rate * hours, daily_max) # 18 print(cost) ``` What it prints: 18 Parking costs $18.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0065778
Convert 135 USD to EUR at 1 USD = 1.35 EUR. Python code: ```python amount = 135 rate = 1.35 converted = amount * rate # 182.25 print(f"{converted:.2f}") ``` # printed: 182.25 That is 182.25 EUR.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "182.25", "printed": "182.25", "notation": null}
nlprog_det-setting-0065779
<|start|><|user|> Equipment costs $24,000, has a salvage value of $3,000, and a useful life of 3 years. What is the straight-line depreciation per year?<|eot|> <|assistant|> ```python cost = 24000 salvage = 3000 years = 3 per_year = (cost - salvage) / years # 7000.0 print(f"{per_year:.2f}") ``` On running, it outputs:...
chat
[ { "role": "user", "content": "Equipment costs $24,000, has a salvage value of $3,000, and a useful life of 3 years. What is the straight-line depreciation per year?" }, { "role": "assistant", "content": "```python\ncost = 24000\nsalvage = 3000\nyears = 3\nper_year = (cost - salvage) / years # 7...
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "7000.00", "printed": "7000.00", "notation": null}
nlprog_det-setting-0065780
How many units at $25 each (variable cost $21) cover $6,000 of fixed costs? import math fixed = 6000 price = 25 variable = 21 units = math.ceil(fixed / (price - variable)) # 1500 print(units) The printout reads: 1500 1500 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0065781
<|start|><|system|> You check calculations for an accounting team.<|eot|> <|user|> Convert 1 h 49 min (the length of a meeting) to minutes.<|eot|> <|assistant|> That is 109 minutes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You check calculations for an accounting team." }, { "role": "user", "content": "Convert 1 h 49 min (the length of a meeting) to minutes." }, { "role": "assistant", "content": "That is 109 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "109", "printed": "109", "notation": null}
nlprog_det-setting-0065782
Convert 30 °C to Fahrenheit. One way, in code: ```python celsius = 30 fahrenheit = celsius * 9 / 5 + 32 # 86.0 print(round(fahrenheit)) ``` Running it prints 86, as expected. That is 86 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "86", "printed": "86", "notation": null}
nlprog_det-setting-0065783
An office budget of $20,000 has expenses of $2,076, $2,770, $3,258, $3,134. How much of the budget is left? Here is a short program for it. ```python budget = 20000 expenses = [2076, 2770, 3258, 3134] left = budget - sum(expenses) # 8762 print(left) ``` Execution prints 8762. The remaining budget is $8,762.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "8762", "printed": "8762", "notation": null}
nlprog_det-setting-0065784
<|start|><|user|> A penalty of $25 a day accrues, capped at $1,000. What is owed after 29 days?<|eot|> <|assistant|> per_day = 25 days = 29 cap = 1000 fine = min(per_day * days, cap) print(fine) Printed — 725 The fine is $725.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A penalty of $25 a day accrues, capped at $1,000. What is owed after 29 days?" }, { "role": "assistant", "content": " per_day = 25\n days = 29\n cap = 1000\n fine = min(per_day * days, cap)\n print(fine)\nPrinted — 725\n\nThe fine is $725." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "725", "printed": "725", "notation": null}
nlprog_det-setting-0065785
<|start|><|system|> Tools (call with JSON): {"name": "calculator", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}} {"name": "translate", "description": "Translate tex...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"calculator\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program\"...
nlprog_det
setting
original
null
deterministic
[]
[]
299
{"gold": "711", "printed": "711", "notation": null}
nlprog_det-setting-0065787
A 4-day trip pays $59 a day for meals and $140 a night for lodging (3 nights). What is the total allowance? The allowance is $656.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "656", "printed": "656", "notation": null}
nlprog_det-setting-0065788
<|start|><|system|> Keep explanations short.<|eot|> <|user|> Papers were served by mail on July 21, 2023. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2023, 7, 21) # datetime.date(2023, 7,...
chat
[ { "role": "system", "content": "Keep explanations short." }, { "role": "user", "content": "Papers were served by mail on July 21, 2023. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date?" }, { "role": "assistant", "content": "```python\nfrom...
nlprog_det
setting
original
null
deterministic
[]
[]
186
{"gold": "2023-08-14", "printed": "2023-08-14", "notation": null}
nlprog_det-setting-0065789
With $4,000 in costs and $9,000 in revenue, what percent of revenue is profit? Round to one decimal. The computation: ```python revenue = 9000 costs = 4000 profit = revenue - costs # 5000 margin = profit / revenue * 100 # 55.55555555555556 print(round(margin, 1)) ``` The interpreter prints: 55.6 Profit is 55.6% of ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "55.6", "printed": "55.6", "notation": null}
nlprog_det-setting-0065790
Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 45 hours? We can compute it in Python. ```python rate = 20.0 hours = 45 regular = 40 * rate # 800.0 overtime = (hours - 40) * rate * 1.5 # 150.0 pay = regular + overtime # 950.0 print(f"{pay:.2f}") ``` Printed result — 950.00 Yo...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "950.00", "printed": "950.00", "notation": null}
nlprog_det-setting-0065791
What average speed covers 522 miles in 2 hours? Set it up in Python: ```python distance = 522 hours = 2 speed = distance / hours # 261.0 print(round(speed)) ``` Out = 261 It averages 261 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "261", "printed": "261", "notation": null}
nlprog_det-setting-0065792
<|start|><|user|> 3 claimants share a $7,350 settlement equally. What is each share?<|eot|> <|assistant|> Each share is $2,450.<|eot|> <|end|>
chat
[ { "role": "user", "content": "3 claimants share a $7,350 settlement equally. What is each share?" }, { "role": "assistant", "content": "Each share is $2,450." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "2450", "printed": "2450", "notation": null}
nlprog_det-setting-0065793
What average speed covers 318 miles in 2 hours? Computation in Python: ```python distance = 318 hours = 2 speed = distance / hours # 159.0 print(round(speed)) ``` (stdout: 159) It averages 159 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "159", "printed": "159", "notation": null}
nlprog_det-setting-0065794
Counting the first and last day, how many days are there from March 13, 2026 through March 22, 2026? As Python: ```python from datetime import date first = date(2026, 3, 13) # datetime.date(2026, 3, 13) last = date(2026, 3, 22) # datetime.date(2026, 3, 22) days = (last - first).days + 1 # 10 print(days) ``` Printed...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0065795
<|start|><|user|> A court charges $15 per request plus $0.25 per page after the first 20 pages. What does a 98-page copy cost?<|eot|> <|assistant|> ```python pages = 98 base = 15 per_page = 0.25 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page print(f"{cost:.2f}") ``` The code prints: 34.50 The copy...
chat
[ { "role": "user", "content": "A court charges $15 per request plus $0.25 per page after the first 20 pages. What does a 98-page copy cost?" }, { "role": "assistant", "content": "```python\npages = 98\nbase = 15\nper_page = 0.25\nfree_pages = 20\ncost = base + max(0, pages - free_pages) * per_pag...
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "34.50", "printed": "34.50", "notation": null}
nlprog_det-setting-0065796
<|start|><|system|> You are a patient tutor.<|eot|> <|user|> A shift runs from 8:36 AM to 2:03 PM. How long is it in minutes?<|eot|> <|assistant|> 327 minutes pass.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a patient tutor." }, { "role": "user", "content": "A shift runs from 8:36 AM to 2:03 PM. How long is it in minutes?" }, { "role": "assistant", "content": "327 minutes pass." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "327", "printed": "327", "notation": null}
nlprog_det-setting-0065797
<|start|><|user|> Parking is $2 per hour with a daily maximum of $18. What do 7 hours cost?<|eot|> <|assistant|> ```python rate = 2 hours = 7 daily_max = 18 cost = min(rate * hours, daily_max) # 14 print(cost) ``` The program outputs 14. The charge is $14.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Parking is $2 per hour with a daily maximum of $18. What do 7 hours cost?" }, { "role": "assistant", "content": "```python\nrate = 2\nhours = 7\ndaily_max = 18\ncost = min(rate * hours, daily_max) # 14\nprint(cost)\n```\nThe program outputs 14.\n\nThe charge is $14...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0065798
A car travels 93 miles in 3 hours. What is its average speed in miles per hour? A few lines of Python do it: ```python distance = 93 hours = 3 speed = distance / hours # 31.0 print(round(speed)) ``` Output = 31 It averages 31 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "31", "printed": "31", "notation": null}
nlprog_det-setting-0065799
<|start|><|user|> Convert 2,174 EUR to USD at 1 EUR = 0.74 USD.<|eot|> <|assistant|> amount = 2174 rate = 0.74 converted = amount * rate # 1608.76 print(f"{converted:.2f}") Execution prints: 1608.76 That is 1,608.76 USD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 2,174 EUR to USD at 1 EUR = 0.74 USD." }, { "role": "assistant", "content": " amount = 2174\n rate = 0.74\n converted = amount * rate # 1608.76\n print(f\"{converted:.2f}\")\nExecution prints: 1608.76\n\nThat is 1,608.76 USD." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "1608.76", "printed": "1608.76", "notation": null}
nlprog_det-setting-0065800
<|start|><|user|> Walls total 1325 sq ft and each can covers 300 sq ft. How many cans should be bought?<|eot|> <|assistant|> Buy 5 cans.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Walls total 1325 sq ft and each can covers 300 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "Buy 5 cans." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0065801
Meals are $59 per day and lodging $140 per night. What is the allowance for 9 days and 8 nights? We write it as a program: ```python days = 9 meal_rate = 59 lodging_rate = 140 nights = days - 1 # 8 total = days * meal_rate + nights * lodging_rate # 1651 print(total) ``` Program output — 1651 That comes to $1,651.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "1651", "printed": "1651", "notation": null}
nlprog_det-setting-0065802
How many weekdays (Monday to Friday) fall after January 16, 2025 up to and including January 24, 2025? Python version: ```python from datetime import date, timedelta start = date(2025, 1, 16) end = date(2025, 1, 24) 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
[]
[]
155
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0065803
A lawyer's fee is 25% of a $25,000 recovery. How large is the fee? Program: ```python recovery = 25000 rate = 25 / 100 # 0.25 fee = recovery * rate # 6250.0 print(f"{fee:.2f}") ``` # console output: 6250.00 The lawyer's fee comes to $6,250.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "6250.00", "printed": "6250.00", "notation": null}
nlprog_det-setting-0065805
Express 34 hours in days and hours. Python does the arithmetic: hours = 34 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") Out = 1 days and 10 hours That is 1 days and 10 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "1 days and 10 hours", "printed": "1 days and 10 hours", "notation": null}
nlprog_det-setting-0065806
<|start|><|system|> You may call the tools below. {"name": "compute", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> <|user|> A service costs $1...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"compute\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require...
nlprog_det
setting
original
null
deterministic
[]
[]
214
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0065807
<|start|><|user|> Divide 284 items among 7 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|> <|assistant|> The answer: 40 each, 4 left over.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Divide 284 items among 7 groups as evenly as possible with equal groups. How many per group, and how many remain?" }, { "role": "assistant", "content": "The answer: 40 each, 4 left over." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "40 each, 4 left over", "printed": "40 each, 4 left over", "notation": null}
nlprog_det-setting-0065808
Sales went from 200 to 120. What is the percent change? Python version: old = 200 new = 120 change = (new - old) / old * 100 # -40.0 print(round(change)) It prints -40, as expected. It changed by -40%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "-40", "printed": "-40", "notation": null}
nlprog_det-setting-0065809
Starting with 1949 ink cartridges and using 21 per day, how many remain after 14 days? Python does the arithmetic: ```python stock = 1949 per_day = 21 days = 14 left = stock - per_day * days # 1655 print(left) ``` Execution prints 1655. 1655 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "1655", "printed": "1655", "notation": null}
nlprog_det-setting-0065810
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}} {"name": "translate", "description": "Translate text into another language.", ...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}\n{\"name\": \"translate\", ...
nlprog_det
setting
original
null
deterministic
[]
[]
351
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0065811
From a $7,500 retainer, 8 hours at $275/hour have been drawn. What remains? Python version: ```python retainer = 7500 hours = 8 rate = 275 left = retainer - hours * rate # 5300 print(left) ``` Result — 5300 The remaining balance is $5,300.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "5300", "printed": "5300", "notation": null}
nlprog_det-setting-0065812
3 runs at 400 calories each burn how many calories in total? Translated to Python: ```python per_session = 400 sessions = 3 total = per_session * sessions # 1200 print(total) ``` Run output: 1200 That burns 1200 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0065813
105 volunteers are split into 6 equal teams. How many are on each team, and how many are left over? 17 each, 3 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "17 each, 3 left over", "printed": "17 each, 3 left over", "notation": null}
nlprog_det-setting-0065814
<|start|><|system|> Tool definitions: [{"name": "code_runner", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> Tariq has 19 documents to file, ...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"code_runner\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program...
nlprog_det
setting
original
null
deterministic
[]
[]
206
{"gold": "2375", "printed": "2375", "notation": null}
nlprog_det-setting-0065815
<|start|><|user|> A quorum is 3/5 of the 16 members, rounded up. How many members make a quorum?<|eot|> <|assistant|> ```python import math members = 16 quorum = math.ceil(members * 3 / 5) # 10 print(quorum) ``` On running, it outputs: 10 That is 10 members.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A quorum is 3/5 of the 16 members, rounded up. How many members make a quorum?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 16\nquorum = math.ceil(members * 3 / 5) # 10\nprint(quorum)\n```\nOn running, it outputs: 10\n\nThat is 10 member...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0065816
<|start|><|user|> Filing fees are $405 per document. What do 7 filings cost?<|eot|> <|assistant|> ```python fee = 405 filings = 7 total = fee * filings # 2835 print(total) ``` The program prints 2835, as expected. The total fee is $2,835.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Filing fees are $405 per document. What do 7 filings cost?" }, { "role": "assistant", "content": "```python\nfee = 405\nfilings = 7\ntotal = fee * filings # 2835\nprint(total)\n```\nThe program prints 2835, as expected.\n\nThe total fee is $2,835." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "2835", "printed": "2835", "notation": null}
nlprog_det-setting-0065817
Tomas earns a 3% commission on $34,511 of sales. What is the commission? Let's compute it with Python. sales = 34511 rate = 3 / 100 # 0.03 commission = sales * rate # 1035.33 print(f"{commission:.2f}") Result: 1035.33 Tomas earns $1,035.33.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "1035.33", "printed": "1035.33", "notation": null}
nlprog_det-setting-0065818
<|start|><|user|> Split $1,240 between Ulla and Omar in the ratio 2 to 3. What is Ulla's share?<|eot|> <|assistant|> ```python total = 1240 parts_a = 2 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 496 print(share_a) ``` Running it prints 496. Ulla gets $496.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Split $1,240 between Ulla and Omar in the ratio 2 to 3. What is Ulla's share?" }, { "role": "assistant", "content": "```python\ntotal = 1240\nparts_a = 2\nparts_b = 3\nshare_a = total * parts_a // (parts_a + parts_b) # 496\nprint(share_a)\n```\nRunning it prints 49...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "496", "printed": "496", "notation": null}
nlprog_det-setting-0065819
<|start|><|user|> The paralegal logged 1.5 hours at a rate of $350. How much is billed?<|eot|> <|assistant|> ```python hours = 1.5 rate = 350 bill = hours * rate # 525.0 print(f"{bill:.2f}") ``` When run, it prints 525.00, as expected. The bill is $525.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The paralegal logged 1.5 hours at a rate of $350. How much is billed?" }, { "role": "assistant", "content": "```python\nhours = 1.5\nrate = 350\nbill = hours * rate # 525.0\nprint(f\"{bill:.2f}\")\n```\nWhen run, it prints 525.00, as expected.\n\nThe bill is $525.0...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "525.00", "printed": "525.00", "notation": null}
nlprog_det-setting-0065820
What day of the week is June 18, 2016? We write it as a program: from datetime import date hearing = date(2016, 6, 18) # datetime.date(2016, 6, 18) print(hearing.strftime("%A")) The interpreter prints Saturday. June 18, 2016 is a Saturday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "Saturday", "printed": "Saturday", "notation": null}
nlprog_det-setting-0065821
<|start|><|user|> Each storage box holds 24 files. How many boxes are needed for 205 files?<|eot|> <|assistant|> It takes 9 boxes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Each storage box holds 24 files. How many boxes are needed for 205 files?" }, { "role": "assistant", "content": "It takes 9 boxes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0065822
<|start|><|user|> Prorate $2,400 of monthly rent for 7 days of a 30-day month.<|eot|> <|assistant|> ```python rent = 2400 days_in_month = 30 days_occupied = 7 prorated = rent * days_occupied / days_in_month # 560.0 print(f"{prorated:.2f}") ``` Interpreter output — 560.00 The tenant owes $560.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Prorate $2,400 of monthly rent for 7 days of a 30-day month." }, { "role": "assistant", "content": "```python\nrent = 2400\ndays_in_month = 30\ndays_occupied = 7\nprorated = rent * days_occupied / days_in_month # 560.0\nprint(f\"{prorated:.2f}\")\n```\nInterpreter ...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "560.00", "printed": "560.00", "notation": null}
nlprog_det-setting-0065823
At 2% a month (simple), what interest builds on $12,000 over 5 months? $1,200.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "1200.00", "printed": "1200.00", "notation": null}
nlprog_det-setting-0065824
<|start|><|user|> Printing costs 15 cents a page. What does it cost to print 34 copies of a 27-page handout?<|eot|> <|assistant|> pages = 27 copies = 34 cost_per_page = 0.15 cost = pages * copies * cost_per_page # 137.7 print(f"{cost:.2f}") # execution result: 137.70 Printing costs $137.70.<|eot|>...
chat
[ { "role": "user", "content": "Printing costs 15 cents a page. What does it cost to print 34 copies of a 27-page handout?" }, { "role": "assistant", "content": " pages = 27\n copies = 34\n cost_per_page = 0.15\n cost = pages * copies * cost_per_page # 137.7\n print(f\"{cost:.2f}\"...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "137.70", "printed": "137.70", "notation": null}
nlprog_det-setting-0065825
Convert 5 h 55 min (the length of a hearing) to minutes. A Python solution: ```python hours = 5 minutes = 55 total_minutes = hours * 60 + minutes # 355 print(total_minutes) ``` On running, it outputs: 355 The hearing lasted 355 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "355", "printed": "355", "notation": null}
nlprog_det-setting-0065827
With 10% off, what does a $60 printer cost? Let's compute it with Python. ```python price = 60 discount = 10 / 100 # 0.1 sale_price = price * (1 - discount) # 54.0 print(f"{sale_price:.2f}") ``` Result: 54.00 It costs $54.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "54.00", "printed": "54.00", "notation": null}
nlprog_det-setting-0065828
<|start|><|system|> You have access to these functions: {"name": "python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}} {"name": "get_weather", "description": "Get...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"p...
nlprog_det
setting
original
null
deterministic
[]
[]
281
{"gold": "31500.00", "printed": "31500.00", "notation": null}
nlprog_det-setting-0065829
Hugo's scores were 78, 77, 65, 80 and 60. What is the average score? Python: ```python scores = [78, 77, 65, 80, 60] average = sum(scores) // len(scores) # 72 print(average) ``` stdout = 72 The average score is 72.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "72", "printed": "72", "notation": null}
nlprog_det-setting-0065830
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> A $2,400 loan carries 8% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|> <|assistant|> ```python principal = 2400 annual_rate = 8 / 100 # 0.08 months = 12 intere...
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "A $2,400 loan carries 8% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?" }, { "role": "assistant", "co...
nlprog_det
setting
original
null
deterministic
[]
[]
161
{"gold": "216.00", "printed": "216.00", "notation": null}
nlprog_det-setting-0065832
At $0.62 per mile, what is the reimbursement for 538 miles? One way, in code: ```python miles = 538 rate = 0.62 reimbursement = miles * rate print(f"{reimbursement:.2f}") ``` (Program output: 333.56) The reimbursement is $333.56.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "333.56", "printed": "333.56", "notation": null}
nlprog_det-setting-0065833
A storeroom has 1997 tape rolls. The office uses 20 a day. How many are left after 3 days? 1937 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "1937", "printed": "1937", "notation": null}
nlprog_det-setting-0065834
<|start|><|user|> A service costs $12 a month or $132 a year. How much does the yearly plan save over 12 monthly payments?<|eot|> <|assistant|> The annual plan saves $12.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A service costs $12 a month or $132 a year. How much does the yearly plan save over 12 monthly payments?" }, { "role": "assistant", "content": "The annual plan saves $12." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0065835
Shipping costs $12 plus $1.20 per pound. What does a 39-pound parcel cost to ship? Computing it: ```python base = 12 per_pound = 1.2 weight = 39 cost = base + per_pound * weight # 58.8 print(f"{cost:.2f}") ``` Output: 58.80 Shipping costs $58.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "58.80", "printed": "58.80", "notation": null}
nlprog_det-setting-0065836
A trial runs from February 6, 2024 to February 9, 2024, counting both days. How many calendar days is that? Python: ```python from datetime import date first = date(2024, 2, 6) # datetime.date(2024, 2, 6) last = date(2024, 2, 9) # datetime.date(2024, 2, 9) days = (last - first).days + 1 # 4 print(days) ``` Console ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0065837
A garage charges $3 an hour, never more than $15 a day. How much for 9 hours? Programmatically: ```python rate = 3 hours = 9 daily_max = 15 cost = min(rate * hours, daily_max) # 15 print(cost) ``` The code prints 15. The charge is $15.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0065838
<|start|><|user|> A recipe for 6 people uses 300 grams of pasta. How many grams are needed for 10 people?<|eot|> <|assistant|> grams = 300 serves = 6 needed_for = 10 scaled = grams * needed_for // serves # 500 print(scaled) The script prints 500, as expected. Use 500 g of pasta.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A recipe for 6 people uses 300 grams of pasta. How many grams are needed for 10 people?" }, { "role": "assistant", "content": " grams = 300\n serves = 6\n needed_for = 10\n scaled = grams * needed_for // serves # 500\n print(scaled)\nThe script print...
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "500", "printed": "500", "notation": null}
nlprog_det-setting-0065839
<|start|><|user|> A 260-mile drive at a steady 65 mph takes how many minutes?<|eot|> <|assistant|> ```python distance = 260 speed = 65 minutes = distance / speed * 60 # 240.0 print(round(minutes)) ``` Run result — 240 The trip takes 240 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 260-mile drive at a steady 65 mph takes how many minutes?" }, { "role": "assistant", "content": "```python\ndistance = 260\nspeed = 65\nminutes = distance / speed * 60 # 240.0\nprint(round(minutes))\n```\nRun result — 240\n\nThe trip takes 240 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "240", "printed": "240", "notation": null}
nlprog_det-setting-0065840
<|start|><|user|> Convert 53.6 km to meters.<|eot|> <|assistant|> ```python km = 53.6 meters = km * 1000 print(round(meters)) ``` The printout reads: 53600 That is 53,600 meters.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 53.6 km to meters." }, { "role": "assistant", "content": "```python\nkm = 53.6\nmeters = km * 1000\nprint(round(meters))\n```\nThe printout reads: 53600\n\nThat is 53,600 meters." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "53600", "printed": "53600", "notation": null}
nlprog_det-setting-0065841
<|start|><|system|> You are a math tutor.<|eot|> <|user|> Reza drove 109 miles for work. Mileage is reimbursed at 62 cents a mile. How much is the reimbursement?<|eot|> <|assistant|> ```python miles = 109 rate = 0.62 reimbursement = miles * rate # 67.58 print(f"{reimbursement:.2f}") ``` # program output: 67.58 Reza i...
chat
[ { "role": "system", "content": "You are a math tutor." }, { "role": "user", "content": "Reza drove 109 miles for work. Mileage is reimbursed at 62 cents a mile. How much is the reimbursement?" }, { "role": "assistant", "content": "```python\nmiles = 109\nrate = 0.62\nreimbursement = ...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "67.58", "printed": "67.58", "notation": null}
nlprog_det-setting-0065842
Equipment costs $30,000, has a salvage value of $6,000, and a useful life of 6 years. What is the straight-line depreciation per year? Python, step by step: cost = 30000 salvage = 6000 years = 6 per_year = (cost - salvage) / years # 4000.0 print(f"{per_year:.2f}") It prints 4000.00, as expected. ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "4000.00", "printed": "4000.00", "notation": null}
nlprog_det-setting-0065844
How many units at $30 each (variable cost $22) cover $1,200 of fixed costs? The Python version: ```python import math fixed = 1200 price = 30 variable = 22 units = math.ceil(fixed / (price - variable)) # 150 print(units) ``` Output = 150 150 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0065845
Monthly rent is $1,200. A tenant moves in with 23 days left in a 31-day month. What is the prorated rent? ```python rent = 1200 days_in_month = 31 days_occupied = 23 prorated = rent * days_occupied / days_in_month print(f"{prorated:.2f}") ``` The program prints: 890.32 The prorated rent is $890.32.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "890.32", "printed": "890.32", "notation": null}
nlprog_det-setting-0065846
<|start|><|user|> How much sales tax is charged on a $775.01 purchase at 4%?<|eot|> <|assistant|> The tax is $31.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How much sales tax is charged on a $775.01 purchase at 4%?" }, { "role": "assistant", "content": "The tax is $31.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "31.00", "printed": "31.00", "notation": null}
nlprog_det-setting-0065847
What simple interest does $1,000 earn at 8% a year over 3 years? The interest is $240.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "240.00", "printed": "240.00", "notation": null}
nlprog_det-setting-0065849
<|start|><|user|> If a 25-minute shift begins at 10:40 AM, what time does it finish?<|eot|> <|assistant|> start = 10 * 60 + 40 end = start + 25 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") Running it prints 11:05 AM. It ends at 11:05 AM.<|eot...
chat
[ { "role": "user", "content": "If a 25-minute shift begins at 10:40 AM, what time does it finish?" }, { "role": "assistant", "content": " start = 10 * 60 + 40\n end = start + 25\n hour, minute = divmod(end, 60)\n print(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "11:05 AM", "printed": "11:05 AM", "notation": null}
nlprog_det-setting-0065850
<|start|><|system|> You can call tools. Available tools: [{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_unit", "to_uni...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\...
nlprog_det
setting
original
null
deterministic
[]
[]
422
{"gold": "39", "printed": "39", "notation": null}
nlprog_det-setting-0065851
How many of 12 members form a majority (more than half)? The computation: members = 12 majority = members // 2 + 1 print(majority) Run result — 7 That is 7 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
55
{"gold": "7", "printed": "7", "notation": null}
nlprog_det-setting-0065852
From a $2,500 retainer, 12 hours at $200/hour have been drawn. What remains? Code: ```python retainer = 2500 hours = 12 rate = 200 left = retainer - hours * rate # 100 print(left) ``` Shell output — 100 The remaining balance is $100.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "100", "printed": "100", "notation": null}
nlprog_det-setting-0065854
Counting the first and last day, how many days are there from June 19, 2019 through July 12, 2019? A short script: ```python from datetime import date first = date(2019, 6, 19) # datetime.date(2019, 6, 19) last = date(2019, 7, 12) # datetime.date(2019, 7, 12) days = (last - first).days + 1 # 24 print(days) ``` (Pro...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0065856
<|start|><|user|> Eamon drove 529 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?<|eot|> <|assistant|> ```python miles = 529 rate = 0.65 reimbursement = miles * rate # 343.85 print(f"{reimbursement:.2f}") ``` Execution prints: 343.85 The reimbursement is $343.85.<|eot|> <|end|...
chat
[ { "role": "user", "content": "Eamon drove 529 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?" }, { "role": "assistant", "content": "```python\nmiles = 529\nrate = 0.65\nreimbursement = miles * rate # 343.85\nprint(f\"{reimbursement:.2f}\")\n```\nExecuti...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "343.85", "printed": "343.85", "notation": null}
nlprog_det-setting-0065857
<|start|><|user|> Convert 36.4 km to meters.<|eot|> <|assistant|> km = 36.4 meters = km * 1000 # 36400.0 print(round(meters)) # output: 36400 36,400 m.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 36.4 km to meters." }, { "role": "assistant", "content": " km = 36.4\n meters = km * 1000 # 36400.0\n print(round(meters))\n# output: 36400\n\n36,400 m." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
65
{"gold": "36400", "printed": "36400", "notation": null}
nlprog_det-setting-0065858
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> What percentage of $8,000 is $3,000?<|eot|> <|assistant|> ```python budget = 8000 spent = 3000 percent = spent / budget * 100 print(round(percent, 1)) ``` The program prints: 37.5 That is 37.5% of the budget.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "What percentage of $8,000 is $3,000?" }, { "role": "assistant", "content": "```python\nbudget = 8000\nspent = 3000\npercent = spent / budget * 100\nprint(round(percent, 1))\n```\nThe progra...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "37.5", "printed": "37.5", "notation": null}
nlprog_det-setting-0065859
10 boxes hold 10 scissors each. After 9 are handed out, how many are left? A Python solution: ```python boxes = 10 per_box = 10 given_away = 9 left = boxes * per_box - given_away # 91 print(left) ``` The program prints: 91 That leaves 91 scissors.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "91", "printed": "91", "notation": null}
nlprog_det-setting-0065860
What is the total rent on a 36-month lease at $2,875 a month? Here is the program. ```python monthly_rent = 2875 months = 36 total = monthly_rent * months # 103500 print(total) ``` stdout — 103500 In total, $103,500 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "103500", "printed": "103500", "notation": null}
nlprog_det-setting-0065861
<|start|><|user|> Walls total 1220 sq ft and each can covers 350 sq ft. How many cans should be bought?<|eot|> <|assistant|> ```python import math area = 1220 coverage = 350 cans = math.ceil(area / coverage) # 4 print(cans) ``` When run, it prints: 4 Buy 4 cans.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Walls total 1220 sq ft and each can covers 350 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "```python\nimport math\narea = 1220\ncoverage = 350\ncans = math.ceil(area / coverage) # 4\nprint(cans)\n```\nWhen run, it prints: 4\n\nBuy ...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0065862
What average speed covers 574 miles in 2 hours? Here is a short program for it. ```python distance = 574 hours = 2 speed = distance / hours # 287.0 print(round(speed)) ``` Executing it gives 287. It averages 287 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "287", "printed": "287", "notation": null}
nlprog_det-setting-0065864
<|start|><|user|> 145 copies of a 53-page packet are printed at $0.10 per page. What is the cost?<|eot|> <|assistant|> pages = 53 copies = 145 cost_per_page = 0.1 cost = pages * copies * cost_per_page # 768.5 print(f"{cost:.2f}") Running it prints 768.50, as expected. Printing costs $768.50.<|eot|...
chat
[ { "role": "user", "content": "145 copies of a 53-page packet are printed at $0.10 per page. What is the cost?" }, { "role": "assistant", "content": " pages = 53\n copies = 145\n cost_per_page = 0.1\n cost = pages * copies * cost_per_page # 768.5\n print(f\"{cost:.2f}\")\nRunning ...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "768.50", "printed": "768.50", "notation": null}
nlprog_det-setting-0065865
<|start|><|user|> 3 friends split a $150 bill plus a 18% tip evenly. How much does each pay?<|eot|> <|assistant|> ```python bill = 150 tip_rate = 18 / 100 # 0.18 people = 3 each = bill * (1 + tip_rate) / people # 59.0 print(f"{each:.2f}") ``` Run result = 59.00 The share is $59.00 each.<|eot|> <|end|>
chat
[ { "role": "user", "content": "3 friends split a $150 bill plus a 18% tip evenly. How much does each pay?" }, { "role": "assistant", "content": "```python\nbill = 150\ntip_rate = 18 / 100 # 0.18\npeople = 3\neach = bill * (1 + tip_rate) / people # 59.0\nprint(f\"{each:.2f}\")\n```\nRun result =...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "59.00", "printed": "59.00", "notation": null}