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-0048619
Straight-line depreciation: cost $45,000, salvage $3,000, 6 years. How much per year? Here is a short program for it. ```python cost = 45000 salvage = 3000 years = 6 per_year = (cost - salvage) / years # 7000.0 print(f"{per_year:.2f}") ``` That prints: 7000.00 Depreciation is $7,000.00 per year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "7000.00", "printed": "7000.00", "notation": null}
nlprog_det-setting-0048620
<|start|><|system|> You have access to these functions: [{"name": "python_exec", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|>...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"python_exec\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source c...
nlprog_det
setting
original
null
deterministic
[]
[]
247
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0048621
A 3% increase is applied to $1,100 monthly rent. What is the new amount? We write it as a program: ```python rent = 1100 increase = 3 / 100 # 0.03 new_rent = rent * (1 + increase) # 1133.0 print(f"{new_rent:.2f}") ``` Output of the run: 1133.00 It rises to $1,133.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "1133.00", "printed": "1133.00", "notation": null}
nlprog_det-setting-0048622
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 54 hours?<|eot|> <|assistant|> ```python rate = 16.0 hours = 54 regular = 40 * rate # 640.0 overtime = (hours - 40) * rate * 1.5 # 336.0 pay = regular + overtime # 9...
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 54 hours?" }, { "role": "assistant", "content": "```python\nrate = 16.0\nhours = 54\nregular = 40 * ra...
nlprog_det
setting
original
null
deterministic
[]
[]
154
{"gold": "976.00", "printed": "976.00", "notation": null}
nlprog_det-setting-0048623
With $12,500 in costs and $17,500 in revenue, what percent of revenue is profit? Round to one decimal. Here is the program. ```python revenue = 17500 costs = 12500 profit = revenue - costs # 5000 margin = profit / revenue * 100 # 28.57142857142857 print(round(margin, 1)) ``` Run result: 28.6 Profit is 28.6% of reve...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "28.6", "printed": "28.6", "notation": null}
nlprog_det-setting-0048624
How much sales tax is charged on a $693.89 purchase at 8%? We can compute it in Python. ```python price = 693.89 tax_rate = 8 / 100 # 0.08 tax = price * tax_rate # 55.5112 print(f"{tax:.2f}") ``` Executing it gives 55.51, as expected. $55.51 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "55.51", "printed": "55.51", "notation": null}
nlprog_det-setting-0048626
2 friends split a $96 bill plus a 18% tip evenly. How much does each pay? bill = 96 tip_rate = 18 / 100 # 0.18 people = 2 each = bill * (1 + tip_rate) / people # 56.64 print(f"{each:.2f}") Executing it gives: 56.64 Each person pays $56.64.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "56.64", "printed": "56.64", "notation": null}
nlprog_det-setting-0048627
<|start|><|system|> Tools you may use: [{"name": "sandbox_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> Someone born August 21, 1998 t...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"sandbox_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"sour...
nlprog_det
setting
original
null
deterministic
[]
[]
254
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0048629
<|start|><|user|> Pilar buys 4 boxes of 24 chairs each and gives away 16 chairs. How many chairs are left?<|eot|> <|assistant|> ```python boxes = 4 per_box = 24 given_away = 16 left = boxes * per_box - given_away # 80 print(left) ``` What it prints: 80 80 chairs are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Pilar buys 4 boxes of 24 chairs each and gives away 16 chairs. How many chairs are left?" }, { "role": "assistant", "content": "```python\nboxes = 4\nper_box = 24\ngiven_away = 16\nleft = boxes * per_box - given_away # 80\nprint(left)\n```\nWhat it prints: 80\n\n80...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "80", "printed": "80", "notation": null}
nlprog_det-setting-0048630
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> On which weekday does February 14, 2010 fall?<|eot|> <|assistant|> ```python from datetime import date hearing = date(2010, 2, 14) # datetime.date(2010, 2, 14) print(hearing.strftime("%A")) ``` (Out: Sunday) It is a Sunday.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "role": "user", "content": "On which weekday does February 14, 2010 fall?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(2010, 2, 14) # datetime.date(2010, 2, 14)\nprint(...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "Sunday", "printed": "Sunday", "notation": null}
nlprog_det-setting-0048631
<|start|><|user|> Flooring at $3/sq ft for a 14 ft × 12 ft room costs how much?<|eot|> <|assistant|> The flooring costs $504.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Flooring at $3/sq ft for a 14 ft × 12 ft room costs how much?" }, { "role": "assistant", "content": "The flooring costs $504." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "504", "printed": "504", "notation": null}
nlprog_det-setting-0048632
A penalty of $100 a day accrues, capped at $1,000. What is owed after 18 days? ```python per_day = 100 days = 18 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` Result: 1000 $1,000 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0048633
A trial runs from June 11, 2020 to June 28, 2020, counting both days. How many calendar days is that? One way, in code: ```python from datetime import date first = date(2020, 6, 11) last = date(2020, 6, 28) days = (last - first).days + 1 print(days) ``` Program output — 18 That is 18 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0048634
At $20.19 an hour, what does 36 hours of work pay? That earns $726.84.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "726.84", "printed": "726.84", "notation": null}
nlprog_det-setting-0048635
<|start|><|user|> Someone born November 17, 1966 turns how old by June 16, 2024? Give the age in whole years.<|eot|> <|assistant|> ```python from datetime import date born = date(1966, 11, 17) # datetime.date(1966, 11, 17) on = date(2024, 6, 16) # datetime.date(2024, 6, 16) age = on.year - born.year - ((on.month, on....
chat
[ { "role": "user", "content": "Someone born November 17, 1966 turns how old by June 16, 2024? Give the age in whole years." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1966, 11, 17) # datetime.date(1966, 11, 17)\non = date(2024, 6, 16) # datetime.date...
nlprog_det
setting
original
null
deterministic
[]
[]
158
{"gold": "57", "printed": "57", "notation": null}
nlprog_det-setting-0048636
A court charges $15 per request plus $0.50 per page after the first 0 pages. What does a 108-page copy cost? Python code: ```python pages = 108 base = 15 per_page = 0.5 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 69.0 print(f"{cost:.2f}") ``` Interpreter output: 69.00 The total is $69.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "69.00", "printed": "69.00", "notation": null}
nlprog_det-setting-0048638
<|start|><|user|> What day of the week is December 6, 1990?<|eot|> <|assistant|> ```python from datetime import date hearing = date(1990, 12, 6) # datetime.date(1990, 12, 6) print(hearing.strftime("%A")) ``` The printout reads: Thursday It is a Thursday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What day of the week is December 6, 1990?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(1990, 12, 6) # datetime.date(1990, 12, 6)\nprint(hearing.strftime(\"%A\"))\n```\nThe printout reads: Thursday\n\nIt is a Thursday."...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "Thursday", "printed": "Thursday", "notation": null}
nlprog_det-setting-0048639
<|start|><|user|> Convert 1 h 54 min (the length of a meeting) to minutes.<|eot|> <|assistant|> ```python hours = 1 minutes = 54 total_minutes = hours * 60 + minutes # 114 print(total_minutes) ``` It prints 114. The meeting lasted 114 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 1 h 54 min (the length of a meeting) to minutes." }, { "role": "assistant", "content": "```python\nhours = 1\nminutes = 54\ntotal_minutes = hours * 60 + minutes # 114\nprint(total_minutes)\n```\nIt prints 114.\n\nThe meeting lasted 114 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "114", "printed": "114", "notation": null}
nlprog_det-setting-0048640
<|start|><|user|> How many days are there from January 23, 2025 to February 2, 2025?<|eot|> <|assistant|> It is 10 days.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many days are there from January 23, 2025 to February 2, 2025?" }, { "role": "assistant", "content": "It is 10 days." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0048641
<|start|><|system|> Tools you may use: [{"name": "calculator", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> How many minutes pass from 7:16 ...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"calculator\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet...
nlprog_det
setting
original
null
deterministic
[]
[]
201
{"gold": "171", "printed": "171", "notation": null}
nlprog_det-setting-0048642
Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 50 hours? One way, in code: ```python rate = 18.5 hours = 50 regular = 40 * rate # 740.0 overtime = (hours - 40) * rate * 1.5 # 277.5 pay = regular + overtime # 1017.5 print(f"{pay:.2f}") ``` The printout reads 1017.50. The week...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "1017.50", "printed": "1017.50", "notation": null}
nlprog_det-setting-0048643
Count 30 days forward from October 6, 2027. What date is that? It ends on November 5, 2027.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "2027-11-05", "printed": "2027-11-05", "notation": null}
nlprog_det-setting-0048644
To read 126 pages in 3 days, how many pages per day are needed? Python code: ```python pages = 126 days = 3 per_day = pages // days # 42 print(per_day) ``` What it prints: 42 That is 42 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "42", "printed": "42", "notation": null}
nlprog_det-setting-0048646
<|start|><|user|> 6 swims at 250 calories each burn how many calories in total?<|eot|> <|assistant|> ```python per_session = 250 sessions = 6 total = per_session * sessions # 1500 print(total) ``` Printed: 1500 1500 calories in total.<|eot|> <|end|>
chat
[ { "role": "user", "content": "6 swims at 250 calories each burn how many calories in total?" }, { "role": "assistant", "content": "```python\nper_session = 250\nsessions = 6\ntotal = per_session * sessions # 1500\nprint(total)\n```\nPrinted: 1500\n\n1500 calories in total." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0048647
A jacket costs $90. It is 15% off. What is the sale price? Computation in Python: price = 90 discount = 15 / 100 sale_price = price * (1 - discount) print(f"{sale_price:.2f}") Printed = 76.50 It costs $76.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "76.50", "printed": "76.50", "notation": null}
nlprog_det-setting-0048648
<|start|><|user|> A board has 34 members. A majority is more than half. How many votes make a majority?<|eot|> <|assistant|> That is 18 members.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A board has 34 members. A majority is more than half. How many votes make a majority?" }, { "role": "assistant", "content": "That is 18 members." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0048649
93 of 100 members attended. What percent attended? As a program: present = 93 total = 100 percent = present / total * 100 # 93.0 print(round(percent, 1)) When run, it prints: 93.0 Attendance was 93.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "93.0", "printed": "93.0", "notation": null}
nlprog_det-setting-0048650
Shipping costs $5 plus $1.20 per pound. What does a 26-pound parcel cost to ship? As a program: base = 5 per_pound = 1.2 weight = 26 cost = base + per_pound * weight # 36.2 print(f"{cost:.2f}") Execution prints 36.20, as expected. Shipping costs $36.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "36.20", "printed": "36.20", "notation": null}
nlprog_det-setting-0048651
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "interpreter", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|>...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"interpreter\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Pytho...
nlprog_det
setting
original
null
deterministic
[]
[]
246
{"gold": "1651", "printed": "1651", "notation": null}
nlprog_det-setting-0048652
One can of paint covers 350 square feet. How many cans are needed for 1229 square feet of wall? Let the code do the arithmetic: ```python import math area = 1229 coverage = 350 cans = math.ceil(area / coverage) print(cans) ``` When run, it prints 4, as expected. Buy 4 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0048653
A 8% increase is applied to $900 monthly rent. What is the new amount? One way, in code: ```python rent = 900 increase = 8 / 100 # 0.08 new_rent = rent * (1 + increase) # 972.0000000000001 print(f"{new_rent:.2f}") ``` # printed result: 972.00 The new rent is $972.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "972.00", "printed": "972.00", "notation": null}
nlprog_det-setting-0048654
Filing fees are $350 per document. What do 2 filings cost? Programmatically: ```python fee = 350 filings = 2 total = fee * filings # 700 print(total) ``` # stdout: 700 The filings cost $700 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "700", "printed": "700", "notation": null}
nlprog_det-setting-0048655
A service costs $29 a month or $330 a year. How much does the yearly plan save over 12 monthly payments? Python code: ```python monthly = 29 yearly = 330 savings = monthly * 12 - yearly # 18 print(savings) ``` Printed result: 18 $18 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0048656
A printer costs $300. It is 40% off. What is the sale price? ```python price = 300 discount = 40 / 100 # 0.4 sale_price = price * (1 - discount) # 180.0 print(f"{sale_price:.2f}") ``` Printed — 180.00 It costs $180.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "180.00", "printed": "180.00", "notation": null}
nlprog_det-setting-0048657
4 lanyards cost $6 apiece. With 10% tax added, what is the total? As a program: ```python quantity = 4 unit_price = 6 subtotal = quantity * unit_price # 24 total = subtotal * (1 + 10 / 100) # 26.400000000000002 print(f"{total:.2f}") ``` Interpreter output: 26.40 The invoice total is $26.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "26.40", "printed": "26.40", "notation": null}
nlprog_det-setting-0048659
Revenue is $9,000 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)? As Python: ```python revenue = 9000 costs = 4000 profit = revenue - costs margin = profit / revenue * 100 print(round(margin, 1)) ``` stdout = 55.6 Profit is 55.6% of revenue.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "55.6", "printed": "55.6", "notation": null}
nlprog_det-setting-0048660
<|start|><|system|> Answer accurately and briefly.<|eot|> <|user|> Divide 174 items among 5 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|> <|assistant|> ```python total = 174 groups = 5 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} le...
chat
[ { "role": "system", "content": "Answer accurately and briefly." }, { "role": "user", "content": "Divide 174 items among 5 groups as evenly as possible with equal groups. How many per group, and how many remain?" }, { "role": "assistant", "content": "```python\ntotal = 174\ngroups = 5...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "34 each, 4 left over", "printed": "34 each, 4 left over", "notation": null}
nlprog_det-setting-0048661
<|start|><|user|> Parking is $3 per hour with a daily maximum of $20. What do 11 hours cost?<|eot|> <|assistant|> ```python rate = 3 hours = 11 daily_max = 20 cost = min(rate * hours, daily_max) # 20 print(cost) ``` Console output: 20 The charge is $20.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Parking is $3 per hour with a daily maximum of $20. What do 11 hours cost?" }, { "role": "assistant", "content": "```python\nrate = 3\nhours = 11\ndaily_max = 20\ncost = min(rate * hours, daily_max) # 20\nprint(cost)\n```\nConsole output: 20\n\nThe charge is $20." ...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0048662
Emeka buys 8 boxes of 12 chairs each and gives away 17 chairs. How many chairs are left? Computation in Python: ```python boxes = 8 per_box = 12 given_away = 17 left = boxes * per_box - given_away # 79 print(left) ``` Console output — 79 79 chairs are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "79", "printed": "79", "notation": null}
nlprog_det-setting-0048663
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}, {"name":...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"str...
nlprog_det
setting
original
null
deterministic
[]
[]
458
{"gold": "1200.00", "printed": "1200.00", "notation": null}
nlprog_det-setting-0048665
<|start|><|user|> An office budget of $8,000 has expenses of $1,822, $477. How much of the budget is left?<|eot|> <|assistant|> ```python budget = 8000 expenses = [1822, 477] left = budget - sum(expenses) # 5701 print(left) ``` Run result: 5701 The remaining budget is $5,701.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An office budget of $8,000 has expenses of $1,822, $477. How much of the budget is left?" }, { "role": "assistant", "content": "```python\nbudget = 8000\nexpenses = [1822, 477]\nleft = budget - sum(expenses) # 5701\nprint(left)\n```\nRun result: 5701\n\nThe remaini...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "5701", "printed": "5701", "notation": null}
nlprog_det-setting-0048666
An office budget of $5,000 has expenses of $2,235, $2,921, $1,968, $2,641. How much of the budget is left? budget = 5000 expenses = [2235, 2921, 1968, 2641] left = budget - sum(expenses) # -4765 print(left) The code prints: -4765 The remaining budget is -$4,765.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "-4765", "printed": "-4765", "notation": null}
nlprog_det-setting-0048667
Equal monthly payments repay $1,200 plus 6% simple yearly interest over 36 months. How large is a payment? The monthly payment is $39.33.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "39.33", "printed": "39.33", "notation": null}
nlprog_det-setting-0048669
At a 5% tax rate, what is the tax on $804.53? Python version: ```python price = 804.53 tax_rate = 5 / 100 # 0.05 tax = price * tax_rate # 40.2265 print(f"{tax:.2f}") ``` It prints 40.23. The tax is $40.23.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "40.23", "printed": "40.23", "notation": null}
nlprog_det-setting-0048670
A 352-page report must be reviewed in 8 days. How many pages a day is that, evenly? That is 44 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "44", "printed": "44", "notation": null}
nlprog_det-setting-0048671
How many whole days and leftover hours are in 299 hours? A Python solution: ```python hours = 299 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Output — 12 days and 11 hours That is 12 days and 11 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "12 days and 11 hours", "printed": "12 days and 11 hours", "notation": null}
nlprog_det-setting-0048672
<|start|><|user|> Fixed costs are $1,200. Each unit sells for $25 and costs $15 to make. How many units must be sold to break even?<|eot|> <|assistant|> 120 units are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Fixed costs are $1,200. Each unit sells for $25 and costs $15 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "120 units are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0048673
<|start|><|system|> Tools (call with JSON): {"name": "sandbox_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}} {"name": "lookup_statute",...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"sandbox_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \...
nlprog_det
setting
original
null
deterministic
[]
[]
422
{"gold": "47.25", "printed": "47.25", "notation": null}
nlprog_det-setting-0048674
<|start|><|user|> Convert 39.8 km to meters.<|eot|> <|assistant|> ```python km = 39.8 meters = km * 1000 # 39800.0 print(round(meters)) ``` That prints 39800. That is 39,800 meters.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 39.8 km to meters." }, { "role": "assistant", "content": "```python\nkm = 39.8\nmeters = km * 1000 # 39800.0\nprint(round(meters))\n```\nThat prints 39800.\n\nThat is 39,800 meters." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "39800", "printed": "39800", "notation": null}
nlprog_det-setting-0048675
<|start|><|system|> You are a careful reviewer of figures.<|eot|> <|user|> On which weekday does April 23, 2028 fall?<|eot|> <|assistant|> ```python from datetime import date hearing = date(2028, 4, 23) print(hearing.strftime("%A")) ``` stdout: Sunday April 23, 2028 is a Sunday.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a careful reviewer of figures." }, { "role": "user", "content": "On which weekday does April 23, 2028 fall?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(2028, 4, 23)\nprint(hearing.strftime(\"%A\")...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "Sunday", "printed": "Sunday", "notation": null}
nlprog_det-setting-0048676
<|start|><|user|> A $12,000 grant pays $0 up front and the rest in 6 equal installments. How large is each installment?<|eot|> <|assistant|> ```python grant = 12000 up_front = 0 installments = 6 each = (grant - up_front) / installments # 2000.0 print(f"{each:.2f}") ``` The script prints 2000.00. Each installment is $...
chat
[ { "role": "user", "content": "A $12,000 grant pays $0 up front and the rest in 6 equal installments. How large is each installment?" }, { "role": "assistant", "content": "```python\ngrant = 12000\nup_front = 0\ninstallments = 6\neach = (grant - up_front) / installments # 2000.0\nprint(f\"{each:...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0048677
How many units at $15 each (variable cost $5) cover $6,000 of fixed costs? Here is the program. ```python import math fixed = 6000 price = 15 variable = 5 units = math.ceil(fixed / (price - variable)) print(units) ``` Result = 600 Break-even is 600 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0048678
Each storage box holds 15 files. How many boxes are needed for 279 files? Written as code: ```python import math files = 279 per_box = 15 boxes = math.ceil(files / per_box) # 19 print(boxes) ``` Execution prints: 19 It takes 19 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0048680
What percentage of $5,000 is $900? Script: budget = 5000 spent = 900 percent = spent / budget * 100 print(round(percent, 1)) The program outputs: 18.0 That is 18.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
66
{"gold": "18.0", "printed": "18.0", "notation": null}
nlprog_det-setting-0048681
Revenue is $22,000 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)? The margin is 9.1%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "9.1", "printed": "9.1", "notation": null}
nlprog_det-setting-0048682
<|start|><|user|> Which is cheaper per unit: 8 for $9.85 (A) or 24 for $25.15 (B)?<|eot|> <|assistant|> ```python pack_a = 9.85 / 8 # 1.23125 pack_b = 25.15 / 24 # 1.0479166666666666 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` Shell output — B Pack B is cheaper per item.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Which is cheaper per unit: 8 for $9.85 (A) or 24 for $25.15 (B)?" }, { "role": "assistant", "content": "```python\npack_a = 9.85 / 8 # 1.23125\npack_b = 25.15 / 24 # 1.0479166666666666\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'B'\nprint(cheaper)\n```\nShe...
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0048683
At $0.67 per mile, what is the reimbursement for 562 miles? The Python version: ```python miles = 562 rate = 0.67 reimbursement = miles * rate # 376.54 print(f"{reimbursement:.2f}") ``` The run gives 376.54. The reimbursement is $376.54.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "376.54", "printed": "376.54", "notation": null}
nlprog_det-setting-0048684
At 1.5% a month (simple), what interest builds on $2,500 over 2 months? A short script: ```python balance = 2500 monthly_rate = 1.5 / 100 # 0.015 months = 2 interest = balance * monthly_rate * months # 75.0 print(f"{interest:.2f}") ``` Out = 75.00 $75.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "75.00", "printed": "75.00", "notation": null}
nlprog_det-setting-0048685
<|start|><|system|> You help with homework problems.<|eot|> <|user|> At $29.73 an hour, what does 16 hours of work pay?<|eot|> <|assistant|> ```python rate = 29.73 hours = 16 earnings = rate * hours # 475.68 print(f"{earnings:.2f}") ``` Run output — 475.68 The pay is $475.68.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "At $29.73 an hour, what does 16 hours of work pay?" }, { "role": "assistant", "content": "```python\nrate = 29.73\nhours = 16\nearnings = rate * hours # 475.68\nprint(f\"{earnings:.2f}...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "475.68", "printed": "475.68", "notation": null}
nlprog_det-setting-0048686
<|start|><|user|> Split $668 between Jae and Delia in the ratio 1 to 3. What is Jae's share?<|eot|> <|assistant|> ```python total = 668 parts_a = 1 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 167 print(share_a) ``` It prints 167. Jae gets $167.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Split $668 between Jae and Delia in the ratio 1 to 3. What is Jae's share?" }, { "role": "assistant", "content": "```python\ntotal = 668\nparts_a = 1\nparts_b = 3\nshare_a = total * parts_a // (parts_a + parts_b) # 167\nprint(share_a)\n```\nIt prints 167.\n\nJae ge...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "167", "printed": "167", "notation": null}
nlprog_det-setting-0048687
<|start|><|system|> Answer in plain English.<|eot|> <|user|> $10,000 is invested at 5% compounded yearly. What is it worth after 3 years?<|eot|> <|assistant|> ```python principal = 10000 rate = 5 / 100 # 0.05 years = 3 value = principal * (1 + rate) ** years # 11576.250000000002 print(f"{value:.2f}") ``` Executing it...
chat
[ { "role": "system", "content": "Answer in plain English." }, { "role": "user", "content": "$10,000 is invested at 5% compounded yearly. What is it worth after 3 years?" }, { "role": "assistant", "content": "```python\nprincipal = 10000\nrate = 5 / 100 # 0.05\nyears = 3\nvalue = prin...
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "11576.25", "printed": "11576.25", "notation": null}
nlprog_det-setting-0048688
7 bike rides at 300 calories each burn how many calories in total? In code: ```python per_session = 300 sessions = 7 total = per_session * sessions # 2100 print(total) ``` (Console output: 2100) That burns 2100 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "2100", "printed": "2100", "notation": null}
nlprog_det-setting-0048689
<|start|><|user|> One can of paint covers 350 square feet. How many cans are needed for 770 square feet of wall?<|eot|> <|assistant|> ```python import math area = 770 coverage = 350 cans = math.ceil(area / coverage) # 3 print(cans) ``` Running it prints 3. 3 cans are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "One can of paint covers 350 square feet. How many cans are needed for 770 square feet of wall?" }, { "role": "assistant", "content": "```python\nimport math\narea = 770\ncoverage = 350\ncans = math.ceil(area / coverage) # 3\nprint(cans)\n```\nRunning it prints 3.\n...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0048690
A court charges $10 per request plus $0.25 per page after the first 10 pages. What does a 17-page copy cost? Computing it: ```python pages = 17 base = 10 per_page = 0.25 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 11.75 print(f"{cost:.2f}") ``` Running it prints 11.75. The total is $11.75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "11.75", "printed": "11.75", "notation": null}
nlprog_det-setting-0048691
Goods bought on April 3, 2021 carry a 6-month warranty. When does it expire? It expires on October 3, 2021.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "2021-10-03", "printed": "2021-10-03", "notation": null}
nlprog_det-setting-0048692
Monthly rent is $1,200. A tenant moves in with 7 days left in a 31-day month. What is the prorated rent? ```python rent = 1200 days_in_month = 31 days_occupied = 7 prorated = rent * days_occupied / days_in_month # 270.96774193548384 print(f"{prorated:.2f}") ``` Running this gives: 270.97 The tenant owes $270.97.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "270.97", "printed": "270.97", "notation": null}
nlprog_det-setting-0048693
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> A 2% increase is applied to $2,200 monthly rent. What is the new amount?<|eot|> <|assistant|> ```python rent = 2200 increase = 2 / 100 # 0.02 new_rent = rent * (1 + increase) # 2244.0 print(f"{new_rent:.2f}") ``` Out = 2244.00 It rises to $2,244.00.<|eot|>...
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "A 2% increase is applied to $2,200 monthly rent. What is the new amount?" }, { "role": "assistant", "content": "```python\nrent = 2200\nincrease = 2 / 100 # 0.02\nnew_rent = rent * (1 + increa...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "2244.00", "printed": "2244.00", "notation": null}
nlprog_det-setting-0048694
Fixed costs are $1,200. Each unit sells for $20 and costs $14 to make. How many units must be sold to break even? In Python: ```python import math fixed = 1200 price = 20 variable = 14 units = math.ceil(fixed / (price - variable)) # 200 print(units) ``` Execution prints 200. Break-even is 200 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "200", "printed": "200", "notation": null}
nlprog_det-setting-0048695
<|start|><|system|> Avoid unnecessary detail.<|eot|> <|user|> Parking is $2 per hour with a daily maximum of $20. What do 11 hours cost?<|eot|> <|assistant|> ```python rate = 2 hours = 11 daily_max = 20 cost = min(rate * hours, daily_max) # 20 print(cost) ``` Printed result — 20 The charge is $20.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Avoid unnecessary detail." }, { "role": "user", "content": "Parking is $2 per hour with a daily maximum of $20. What do 11 hours cost?" }, { "role": "assistant", "content": "```python\nrate = 2\nhours = 11\ndaily_max = 20\ncost = min(rate * hours, dail...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0048696
<|start|><|user|> At an exchange rate of 1.31 USD per GBP, how many USD is 8,409 GBP?<|eot|> <|assistant|> It converts to 11,015.79 USD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At an exchange rate of 1.31 USD per GBP, how many USD is 8,409 GBP?" }, { "role": "assistant", "content": "It converts to 11,015.79 USD." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
49
{"gold": "11015.79", "printed": "11015.79", "notation": null}
nlprog_det-setting-0048697
1 books come back 25 days late, at $0.15 a day each. What is the fine? Python: ```python per_day = 0.15 days_late = 25 books = 1 fine = per_day * days_late * books # 3.75 print(f"{fine:.2f}") ``` (Result: 3.75) The fine is $3.75.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "3.75", "printed": "3.75", "notation": null}
nlprog_det-setting-0048698
Tariq lends $1,000 at 8% simple interest per year for 2 years. How much interest is earned? ```python principal = 1000 rate = 8 / 100 # 0.08 years = 2 interest = principal * rate * years # 160.0 print(f"{interest:.2f}") ``` # program output: 160.00 It earns $160.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "160.00", "printed": "160.00", "notation": null}
nlprog_det-setting-0048699
<|start|><|user|> The meal allowance is $74 per day. What is it for 4 days?<|eot|> <|assistant|> ```python days = 4 meal_rate = 74 total = days * meal_rate print(total) ``` The script prints 296, as expected. The allowance is $296.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The meal allowance is $74 per day. What is it for 4 days?" }, { "role": "assistant", "content": "```python\ndays = 4\nmeal_rate = 74\ntotal = days * meal_rate\nprint(total)\n```\nThe script prints 296, as expected.\n\nThe allowance is $296." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "296", "printed": "296", "notation": null}
nlprog_det-setting-0048700
<|start|><|system|> You are a careful reviewer of figures.<|eot|> <|user|> Sales went from 2,500 to 2,250. What is the percent change?<|eot|> <|assistant|> ```python old = 2500 new = 2250 change = (new - old) / old * 100 # -10.0 print(round(change)) ``` Output of the run: -10 The change is -10%.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a careful reviewer of figures." }, { "role": "user", "content": "Sales went from 2,500 to 2,250. What is the percent change?" }, { "role": "assistant", "content": "```python\nold = 2500\nnew = 2250\nchange = (new - old) / old * 100 # -10.0\npr...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "-10", "printed": "-10", "notation": null}
nlprog_det-setting-0048701
<|start|><|user|> Priya and Grace share $1,360 in the ratio 1:3. How much does Priya get?<|eot|> <|assistant|> Priya gets $340.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Priya and Grace share $1,360 in the ratio 1:3. How much does Priya get?" }, { "role": "assistant", "content": "Priya gets $340." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "340", "printed": "340", "notation": null}
nlprog_det-setting-0048702
<|start|><|system|> Be exact with numbers.<|eot|> <|user|> Fines run at $250 per day up to a maximum of $5,000. How much after 49 days?<|eot|> <|assistant|> ```python per_day = 250 days = 49 cap = 5000 fine = min(per_day * days, cap) # 5000 print(fine) ``` The script prints 5000, as expected. The fine is $5,000.<|eot...
chat
[ { "role": "system", "content": "Be exact with numbers." }, { "role": "user", "content": "Fines run at $250 per day up to a maximum of $5,000. How much after 49 days?" }, { "role": "assistant", "content": "```python\nper_day = 250\ndays = 49\ncap = 5000\nfine = min(per_day * days, cap...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "5000", "printed": "5000", "notation": null}
nlprog_det-setting-0048703
<|start|><|user|> An office budget of $20,000 has expenses of $358, $2,071, $776, $3,663. How much of the budget is left?<|eot|> <|assistant|> ```python budget = 20000 expenses = [358, 2071, 776, 3663] left = budget - sum(expenses) # 13132 print(left) ``` Output of the run: 13132 $13,132 is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An office budget of $20,000 has expenses of $358, $2,071, $776, $3,663. How much of the budget is left?" }, { "role": "assistant", "content": "```python\nbudget = 20000\nexpenses = [358, 2071, 776, 3663]\nleft = budget - sum(expenses) # 13132\nprint(left)\n```\nOut...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "13132", "printed": "13132", "notation": null}
nlprog_det-setting-0048704
<|start|><|system|> Be brief and correct.<|eot|> <|user|> A training session lasted 3 hours and 52 minutes. How many minutes is that?<|eot|> <|assistant|> ```python hours = 3 minutes = 52 total_minutes = hours * 60 + minutes # 232 print(total_minutes) ``` On running, it outputs: 232 That is 232 minutes.<|eot|> <|end|...
chat
[ { "role": "system", "content": "Be brief and correct." }, { "role": "user", "content": "A training session lasted 3 hours and 52 minutes. How many minutes is that?" }, { "role": "assistant", "content": "```python\nhours = 3\nminutes = 52\ntotal_minutes = hours * 60 + minutes # 232\n...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "232", "printed": "232", "notation": null}
nlprog_det-setting-0048705
Papers were served by mail on May 13, 2025. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date? Computation in Python: ```python from datetime import date, timedelta served = date(2025, 5, 13) # datetime.date(2025, 5, 13) response_days = 28 mail_days = 3 due = served + timede...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
186
{"gold": "2025-06-13", "printed": "2025-06-13", "notation": null}
nlprog_det-setting-0048706
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "code_runner", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}} {"name":...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"code_runner\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python...
nlprog_det
setting
original
null
deterministic
[]
[]
327
{"gold": "38.16", "printed": "38.16", "notation": null}
nlprog_det-setting-0048707
<|start|><|system|> Keep answers short and correct.<|eot|> <|user|> 3 claimants share a $7,350 settlement equally. What is each share?<|eot|> <|assistant|> ```python settlement = 7350 parties = 3 share = settlement // parties # 2450 print(share) ``` Interpreter output — 2450 Each party receives $2,450.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Keep answers short and correct." }, { "role": "user", "content": "3 claimants share a $7,350 settlement equally. What is each share?" }, { "role": "assistant", "content": "```python\nsettlement = 7350\nparties = 3\nshare = settlement // parties # 2450...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "2450", "printed": "2450", "notation": null}
nlprog_det-setting-0048708
A garage charges $4 an hour, never more than $15 a day. How much for 12 hours? ```python rate = 4 hours = 12 daily_max = 15 cost = min(rate * hours, daily_max) # 15 print(cost) ``` # console output: 15 The charge is $15.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0048709
A 160-mile drive at a steady 40 mph takes how many minutes? Written as code: ```python distance = 160 speed = 40 minutes = distance / speed * 60 # 240.0 print(round(minutes)) ``` (Out: 240) The trip takes 240 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "240", "printed": "240", "notation": null}
nlprog_det-setting-0048710
<|start|><|system|> You can call tools. Available tools: {"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}} {"name": "eval_python", "description": "Exec...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start...
nlprog_det
setting
original
null
deterministic
[]
[]
323
{"gold": "11698.59", "printed": "11698.59", "notation": null}
nlprog_det-setting-0048711
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "compute", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> Starting from ...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"compute\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"req...
nlprog_det
setting
original
null
deterministic
[]
[]
224
{"gold": "15494", "printed": "15494", "notation": null}
nlprog_det-setting-0048712
Revenue is $13,000 and costs are $8,000. What is the profit margin as a percent of revenue (one decimal)? The margin is 38.5%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "38.5", "printed": "38.5", "notation": null}
nlprog_det-setting-0048713
<|start|><|system|> You are a logic tutor.<|eot|> <|user|> Express 337 hours in days and hours.<|eot|> <|assistant|> ```python hours = 337 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Output: 14 days and 1 hours 337 hours is 14 days and 1 hours.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a logic tutor." }, { "role": "user", "content": "Express 337 hours in days and hours." }, { "role": "assistant", "content": "```python\nhours = 337\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nOutput:\n14 days...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "14 days and 1 hours", "printed": "14 days and 1 hours", "notation": null}
nlprog_det-setting-0048714
A car travels 456 miles in 2 hours. What is its average speed in miles per hour? Python code: ```python distance = 456 hours = 2 speed = distance / hours print(round(speed)) ``` Run result — 228 The average speed is 228 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "228", "printed": "228", "notation": null}
nlprog_det-setting-0048715
How many weekdays (Monday to Friday) fall after April 20, 2027 up to and including April 25, 2027? Written as code: ```python from datetime import date, timedelta start = date(2027, 4, 20) end = date(2027, 4, 25) 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
[]
[]
157
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0048716
Attendance was 34 out of 50. Express it as a percent. Attendance was 68.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
24
{"gold": "68.0", "printed": "68.0", "notation": null}
nlprog_det-setting-0048717
<|start|><|user|> A backpack costs $40. It is 30% off. What is the sale price?<|eot|> <|assistant|> ```python price = 40 discount = 30 / 100 # 0.3 sale_price = price * (1 - discount) # 28.0 print(f"{sale_price:.2f}") ``` stdout = 28.00 It costs $28.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A backpack costs $40. It is 30% off. What is the sale price?" }, { "role": "assistant", "content": "```python\nprice = 40\ndiscount = 30 / 100 # 0.3\nsale_price = price * (1 - discount) # 28.0\nprint(f\"{sale_price:.2f}\")\n```\nstdout = 28.00\n\nIt costs $28.00."...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "28.00", "printed": "28.00", "notation": null}
nlprog_det-setting-0048718
A service costs $12 a month or $132 a year. How much does the yearly plan save over 12 monthly payments? The annual plan saves $12.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0048719
<|start|><|system|> Available functions (JSON Schema): [{"name": "py_exec", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> Someone works 12 ...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"py_exec\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require...
nlprog_det
setting
original
null
deterministic
[]
[]
215
{"gold": "331.68", "printed": "331.68", "notation": null}
nlprog_det-setting-0048720
<|start|><|user|> What is a 25% tip on a $182.49 bill?<|eot|> <|assistant|> ```python bill = 182.49 tip_rate = 25 / 100 # 0.25 tip = bill * tip_rate # 45.6225 print(f"{tip:.2f}") ``` Run it and it prints: 45.62 The tip is $45.62.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is a 25% tip on a $182.49 bill?" }, { "role": "assistant", "content": "```python\nbill = 182.49\ntip_rate = 25 / 100 # 0.25\ntip = bill * tip_rate # 45.6225\nprint(f\"{tip:.2f}\")\n```\nRun it and it prints: 45.62\n\nThe tip is $45.62." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "45.62", "printed": "45.62", "notation": null}
nlprog_det-setting-0048721
Walls total 903 sq ft and each can covers 350 sq ft. How many cans should be bought? Coded up: ```python import math area = 903 coverage = 350 cans = math.ceil(area / coverage) # 3 print(cans) ``` Out: 3 3 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0048724
<|start|><|user|> The building opened in 2018. How many years had passed by 2027?<|eot|> <|assistant|> ```python start_year = 2018 end_year = 2027 print(end_year - start_year) ``` This prints: 9 That is 9 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The building opened in 2018. How many years had passed by 2027?" }, { "role": "assistant", "content": "```python\nstart_year = 2018\nend_year = 2027\nprint(end_year - start_year)\n```\nThis prints: 9\n\nThat is 9 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0048725
<|start|><|user|> From 2005 to 2018, how many years is that?<|eot|> <|assistant|> ```python start_year = 2005 end_year = 2018 print(end_year - start_year) ``` Executing it gives 13, as expected. That is 13 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From 2005 to 2018, how many years is that?" }, { "role": "assistant", "content": "```python\nstart_year = 2005\nend_year = 2018\nprint(end_year - start_year)\n```\nExecuting it gives 13, as expected.\n\nThat is 13 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0048726
Convert 54.3 km to meters. ```python km = 54.3 meters = km * 1000 # 54300.0 print(round(meters)) ``` # printed result: 54300 That is 54,300 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "54300", "printed": "54300", "notation": null}
nlprog_det-setting-0048727
What is a 15% tip on a $34.55 bill? Python: ```python bill = 34.55 tip_rate = 15 / 100 # 0.15 tip = bill * tip_rate # 5.182499999999999 print(f"{tip:.2f}") ``` Run output: 5.18 The tip is $5.18.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "5.18", "printed": "5.18", "notation": null}
nlprog_det-setting-0048728
Fines run at $250 per day up to a maximum of $5,000. How much after 38 days? Code: ```python per_day = 250 days = 38 cap = 5000 fine = min(per_day * days, cap) # 5000 print(fine) ``` (Result: 5000) The fine is $5,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "5000", "printed": "5000", "notation": null}