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-0064696
<|start|><|user|> A service costs $15 a month or $156 a year. How much does the yearly plan save over 12 monthly payments?<|eot|> <|assistant|> ```python monthly = 15 yearly = 156 savings = monthly * 12 - yearly # 24 print(savings) ``` # program output: 24 The annual plan saves $24.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A service costs $15 a month or $156 a year. How much does the yearly plan save over 12 monthly payments?" }, { "role": "assistant", "content": "```python\nmonthly = 15\nyearly = 156\nsavings = monthly * 12 - yearly # 24\nprint(savings)\n```\n# program output: 24\n\...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0064697
<|start|><|user|> The landlord deducts $85 and $45 from a $800 deposit. What is returned to the tenant?<|eot|> <|assistant|> ```python deposit = 800 deductions = [85, 45] refund = deposit - sum(deductions) # 670 print(refund) ``` The run gives 670, as expected. The refund is $670.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The landlord deducts $85 and $45 from a $800 deposit. What is returned to the tenant?" }, { "role": "assistant", "content": "```python\ndeposit = 800\ndeductions = [85, 45]\nrefund = deposit - sum(deductions) # 670\nprint(refund)\n```\nThe run gives 670, as expecte...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "670", "printed": "670", "notation": null}
nlprog_det-setting-0064698
<|start|><|system|> Be brief and correct.<|eot|> <|user|> After a 25% fee is taken from a $30,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|> <|assistant|> Each client gets $7,500.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be brief and correct." }, { "role": "user", "content": "After a 25% fee is taken from a $30,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?" }, { "role": "assistant", "content": "Each client gets $7,500.00." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
58
{"gold": "7500.00", "printed": "7500.00", "notation": null}
nlprog_det-setting-0064699
<|start|><|system|> Keep explanations short.<|eot|> <|user|> Split $4,248 between Maren and Lucia in the ratio 3 to 5. What is Maren's share?<|eot|> <|assistant|> Maren's share is $1,593.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Keep explanations short." }, { "role": "user", "content": "Split $4,248 between Maren and Lucia in the ratio 3 to 5. What is Maren's share?" }, { "role": "assistant", "content": "Maren's share is $1,593." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
60
{"gold": "1593", "printed": "1593", "notation": null}
nlprog_det-setting-0064700
<|start|><|user|> Kemal lends $20,000 at 6% simple interest per year for 4 years. How much interest is earned?<|eot|> <|assistant|> It earns $4,800.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Kemal lends $20,000 at 6% simple interest per year for 4 years. How much interest is earned?" }, { "role": "assistant", "content": "It earns $4,800.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "4800.00", "printed": "4800.00", "notation": null}
nlprog_det-setting-0064701
<|start|><|system|> Available functions (JSON Schema): [{"name": "compute", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "search_cases", "description"...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"compute\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\...
nlprog_det
setting
original
null
deterministic
[]
[]
300
{"gold": "203.01", "printed": "203.01", "notation": null}
nlprog_det-setting-0064702
<|start|><|system|> You can call tools. Available tools: {"name": "compute", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> A deposition las...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"compute\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requi...
nlprog_det
setting
original
null
deterministic
[]
[]
198
{"gold": "151", "printed": "151", "notation": null}
nlprog_det-setting-0064703
The statute was enacted in 2007. How many years had passed by 2047? Here's the code. ```python start_year = 2007 end_year = 2047 print(end_year - start_year) ``` The printout reads: 40 40 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0064704
What average speed covers 450 miles in 2.5 hours? Coded up: ```python distance = 450 hours = 2.5 speed = distance / hours # 180.0 print(round(speed)) ``` Run output: 180 It averages 180 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "180", "printed": "180", "notation": null}
nlprog_det-setting-0064705
Papers were served by mail on July 1, 2026. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date? A Python solution: ```python from datetime import date, timedelta served = date(2026, 7, 1) response_days = 14 mail_days = 3 due = served + timedelta(days=response_days + mail_days)...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "2026-07-18", "printed": "2026-07-18", "notation": null}
nlprog_det-setting-0064706
<|start|><|system|> Tool definitions: {"name": "compute", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> Each storage box hold...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"compute\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require...
nlprog_det
setting
original
null
deterministic
[]
[]
208
{"gold": "7", "printed": "7", "notation": null}
nlprog_det-setting-0064707
How many 1-foot square tiles cover a 19 ft by 3 ft floor (round up)? Let the code do the arithmetic: ```python import math length = 19 width = 3 tile = 1 tiles = math.ceil(length * width / (tile * tile)) print(tiles) ``` (Program output: 57) It takes 57 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "57", "printed": "57", "notation": null}
nlprog_det-setting-0064708
Printing costs 5 cents a page. What does it cost to print 19 copies of a 14-page handout? Programmatically: ```python pages = 14 copies = 19 cost_per_page = 0.05 cost = pages * copies * cost_per_page print(f"{cost:.2f}") ``` The script prints 13.30, as expected. Printing costs $13.30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "13.30", "printed": "13.30", "notation": null}
nlprog_det-setting-0064709
How many minutes pass from 7:29 AM to 1:57 PM on the same day? ```python start = 7 * 60 + 29 # 449 end = 13 * 60 + 57 # 837 print(end - start) ``` Out = 388 It is 388 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "388", "printed": "388", "notation": null}
nlprog_det-setting-0064710
A party has 30 days to respond to a motion served on March 18, 2026, with 3 days added because service was by mail. When is the response due? We can compute it in Python. ```python from datetime import date, timedelta served = date(2026, 3, 18) # datetime.date(2026, 3, 18) response_days = 30 mail_days = 3 due = serve...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
184
{"gold": "2026-04-20", "printed": "2026-04-20", "notation": null}
nlprog_det-setting-0064711
3 books come back 4 days late, at $0.20 a day each. What is the fine? per_day = 0.2 days_late = 4 books = 3 fine = per_day * days_late * books # 2.4000000000000004 print(f"{fine:.2f}") What it prints — 2.40 $2.40 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "2.40", "printed": "2.40", "notation": null}
nlprog_det-setting-0064712
<|start|><|user|> A 6% increase is applied to $1,100 monthly rent. What is the new amount?<|eot|> <|assistant|> ```python rent = 1100 increase = 6 / 100 # 0.06 new_rent = rent * (1 + increase) # 1166.0 print(f"{new_rent:.2f}") ``` (Execution result: 1166.00) It rises to $1,166.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 6% increase is applied to $1,100 monthly rent. What is the new amount?" }, { "role": "assistant", "content": "```python\nrent = 1100\nincrease = 6 / 100 # 0.06\nnew_rent = rent * (1 + increase) # 1166.0\nprint(f\"{new_rent:.2f}\")\n```\n(Execution result: 1166.0...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "1166.00", "printed": "1166.00", "notation": null}
nlprog_det-setting-0064713
<|start|><|user|> What commission does Paula make on $67,380 in sales at 10%?<|eot|> <|assistant|> ```python sales = 67380 rate = 10 / 100 # 0.1 commission = sales * rate # 6738.0 print(f"{commission:.2f}") ``` Run output — 6738.00 The commission is $6,738.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What commission does Paula make on $67,380 in sales at 10%?" }, { "role": "assistant", "content": "```python\nsales = 67380\nrate = 10 / 100 # 0.1\ncommission = sales * rate # 6738.0\nprint(f\"{commission:.2f}\")\n```\nRun output — 6738.00\n\nThe commission is $6,...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "6738.00", "printed": "6738.00", "notation": null}
nlprog_det-setting-0064714
<|start|><|user|> Scale 450 g of oats from 6 servings to 12 servings.<|eot|> <|assistant|> ```python grams = 450 serves = 6 needed_for = 12 scaled = grams * needed_for // serves # 900 print(scaled) ``` Running this gives 900. 900 grams of oats are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Scale 450 g of oats from 6 servings to 12 servings." }, { "role": "assistant", "content": "```python\ngrams = 450\nserves = 6\nneeded_for = 12\nscaled = grams * needed_for // serves # 900\nprint(scaled)\n```\nRunning this gives 900.\n\n900 grams of oats are needed....
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0064715
A 260-mile drive at a steady 60 mph takes how many minutes? Python makes this quick: ```python distance = 260 speed = 60 minutes = distance / speed * 60 print(round(minutes)) ``` # printed: 260 260 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "260", "printed": "260", "notation": null}
nlprog_det-setting-0064716
<|start|><|user|> A bicycle helmet costs $60. It is 20% off. What is the sale price?<|eot|> <|assistant|> ```python price = 60 discount = 20 / 100 # 0.2 sale_price = price * (1 - discount) # 48.0 print(f"{sale_price:.2f}") ``` Result: 48.00 It costs $48.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A bicycle helmet costs $60. It is 20% off. What is the sale price?" }, { "role": "assistant", "content": "```python\nprice = 60\ndiscount = 20 / 100 # 0.2\nsale_price = price * (1 - discount) # 48.0\nprint(f\"{sale_price:.2f}\")\n```\nResult: 48.00\n\nIt costs $48...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "48.00", "printed": "48.00", "notation": null}
nlprog_det-setting-0064717
A garage charges $3 an hour, never more than $15 a day. How much for 1 hours? The computation: ```python rate = 3 hours = 1 daily_max = 15 cost = min(rate * hours, daily_max) # 3 print(cost) ``` (Output: 3) Parking costs $3.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0064718
<|start|><|user|> Fixed costs are $6,000. Each unit sells for $30 and costs $25 to make. How many units must be sold to break even?<|eot|> <|assistant|> 1200 units are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Fixed costs are $6,000. Each unit sells for $30 and costs $25 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "1200 units are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0064719
<|start|><|user|> If a 6-year limitations period starts on December 5, 2018, when does it end?<|eot|> <|assistant|> from datetime import date accrued = date(2018, 12, 5) # datetime.date(2018, 12, 5) years = 6 expires = accrued.replace(year=accrued.year + years) # datetime.date(2024, 12, 5) print(e...
chat
[ { "role": "user", "content": "If a 6-year limitations period starts on December 5, 2018, when does it end?" }, { "role": "assistant", "content": " from datetime import date\n accrued = date(2018, 12, 5) # datetime.date(2018, 12, 5)\n years = 6\n expires = accrued.replace(year=accrue...
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "2024-12-05", "printed": "2024-12-05", "notation": null}
nlprog_det-setting-0064720
$2,000 is invested at 4% compounded yearly. What is it worth after 2 years? Python code: ```python principal = 2000 rate = 4 / 100 # 0.04 years = 2 value = principal * (1 + rate) ** years # 2163.2000000000003 print(f"{value:.2f}") ``` Python prints 2163.20. It is worth $2,163.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "2163.20", "printed": "2163.20", "notation": null}
nlprog_det-setting-0064721
Printing costs 12 cents a page. What does it cost to print 23 copies of a 48-page handout? ```python pages = 48 copies = 23 cost_per_page = 0.12 cost = pages * copies * cost_per_page # 132.48 print(f"{cost:.2f}") ``` (Result: 132.48) Printing costs $132.48.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "132.48", "printed": "132.48", "notation": null}
nlprog_det-setting-0064722
402 files go into boxes of 12. How many boxes does that take? We write it as a program: ```python import math files = 402 per_box = 12 boxes = math.ceil(files / per_box) # 34 print(boxes) ``` What it prints: 34 It takes 34 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "34", "printed": "34", "notation": null}
nlprog_det-setting-0064723
<|start|><|system|> You are a careful reviewer of figures.<|eot|> <|user|> 165 of 200 members attended. What percent attended?<|eot|> <|assistant|> ```python present = 165 total = 200 percent = present / total * 100 # 82.5 print(round(percent, 1)) ``` (Console output: 82.5) Attendance was 82.5%.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a careful reviewer of figures." }, { "role": "user", "content": "165 of 200 members attended. What percent attended?" }, { "role": "assistant", "content": "```python\npresent = 165\ntotal = 200\npercent = present / total * 100 # 82.5\nprint(ro...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "82.5", "printed": "82.5", "notation": null}
nlprog_det-setting-0064724
<|start|><|system|> Tools (call with JSON): {"name": "calc", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> Each storage box holds 50 files....
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"calc\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"progra...
nlprog_det
setting
original
null
deterministic
[]
[]
207
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0064726
Monthly rent is $1,500. A tenant moves in with 23 days left in a 30-day month. What is the prorated rent? ```python rent = 1500 days_in_month = 30 days_occupied = 23 prorated = rent * days_occupied / days_in_month # 1150.0 print(f"{prorated:.2f}") ``` The code prints: 1150.00 The prorated rent is $1,150.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "1150.00", "printed": "1150.00", "notation": null}
nlprog_det-setting-0064727
<|start|><|user|> How many weekdays (Monday to Friday) fall after February 17, 2028 up to and including March 2, 2028?<|eot|> <|assistant|> There are 10 business days.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many weekdays (Monday to Friday) fall after February 17, 2028 up to and including March 2, 2028?" }, { "role": "assistant", "content": "There are 10 business days." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0064728
<|start|><|system|> You are a precise assistant.<|eot|> <|user|> The rules require 1/3 of 19 members (round up) to be present. How many is that?<|eot|> <|assistant|> ```python import math members = 19 quorum = math.ceil(members * 1 / 3) # 7 print(quorum) ``` Run it and it prints: 7 7 members are needed.<|eot|> <|end|...
chat
[ { "role": "system", "content": "You are a precise assistant." }, { "role": "user", "content": "The rules require 1/3 of 19 members (round up) to be present. How many is that?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 19\nquorum = math.ceil(members * 1 /...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "7", "printed": "7", "notation": null}
nlprog_det-setting-0064729
A claim accrued on August 13, 2017. The limitations period is 2 years. On what date does it expire? Python version: ```python from datetime import date accrued = date(2017, 8, 13) # datetime.date(2017, 8, 13) years = 2 expires = accrued.replace(year=accrued.year + years) # datetime.date(2019, 8, 13) print(expires.is...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "2019-08-13", "printed": "2019-08-13", "notation": null}
nlprog_det-setting-0064730
With $4,000 in costs and $8,000 in revenue, what percent of revenue is profit? Round to one decimal. ```python revenue = 8000 costs = 4000 profit = revenue - costs # 4000 margin = profit / revenue * 100 # 50.0 print(round(margin, 1)) ``` Result — 50.0 Profit is 50.0% of revenue.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "50.0", "printed": "50.0", "notation": null}
nlprog_det-setting-0064731
<|start|><|user|> Someone born January 22, 1968 turns how old by April 10, 2027? Give the age in whole years.<|eot|> <|assistant|> ```python from datetime import date born = date(1968, 1, 22) # datetime.date(1968, 1, 22) on = date(2027, 4, 10) # datetime.date(2027, 4, 10) age = on.year - born.year - ((on.month, on.da...
chat
[ { "role": "user", "content": "Someone born January 22, 1968 turns how old by April 10, 2027? Give the age in whole years." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1968, 1, 22) # datetime.date(1968, 1, 22)\non = date(2027, 4, 10) # datetime.date(2...
nlprog_det
setting
original
null
deterministic
[]
[]
159
{"gold": "59", "printed": "59", "notation": null}
nlprog_det-setting-0064734
<|start|><|user|> From 1991 to 2025, how many years is that?<|eot|> <|assistant|> ```python start_year = 1991 end_year = 2025 print(end_year - start_year) ``` Output: 34 That is 34 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From 1991 to 2025, how many years is that?" }, { "role": "assistant", "content": "```python\nstart_year = 1991\nend_year = 2025\nprint(end_year - start_year)\n```\nOutput: 34\n\nThat is 34 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
69
{"gold": "34", "printed": "34", "notation": null}
nlprog_det-setting-0064735
A appointment starts at 11:10 AM and lasts 25 minutes. When does it end? The Python version: ```python start = 11 * 60 + 10 end = start + 25 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Execution prints: 11:35 AM The appointment finishes at 11:35 AM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "11:35 AM", "printed": "11:35 AM", "notation": null}
nlprog_det-setting-0064736
4 friends split a $120 bill plus a 20% tip evenly. How much does each pay? As Python: ```python bill = 120 tip_rate = 20 / 100 # 0.2 people = 4 each = bill * (1 + tip_rate) / people # 36.0 print(f"{each:.2f}") ``` It outputs 36.00. The share is $36.00 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "36.00", "printed": "36.00", "notation": null}
nlprog_det-setting-0064737
A library charges $0.15 per book per day late. What is the fine for 2 books that are 30 days late? A short script: ```python per_day = 0.15 days_late = 30 books = 2 fine = per_day * days_late * books print(f"{fine:.2f}") ``` Python prints 9.00. The fine is $9.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "9.00", "printed": "9.00", "notation": null}
nlprog_det-setting-0064738
<|start|><|user|> A pack of 12 hard drives sells for $180. What does each cost?<|eot|> <|assistant|> ```python total = 180 count = 12 per_item = total // count # 15 print(per_item) ``` (Output: 15) Each one costs $15.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A pack of 12 hard drives sells for $180. What does each cost?" }, { "role": "assistant", "content": "```python\ntotal = 180\ncount = 12\nper_item = total // count # 15\nprint(per_item)\n```\n(Output: 15)\n\nEach one costs $15." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0064740
Mateo earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 45-hour week? The Python version: ```python rate = 16.0 hours = 45 regular = 40 * rate # 640.0 overtime = (hours - 40) * rate * 1.5 # 120.0 pay = regular + overtime # 760.0 print(f"{pay:.2f}") ``` Python prints: 760.00 Mateo ea...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "760.00", "printed": "760.00", "notation": null}
nlprog_det-setting-0064741
<|start|><|system|> You may call the tools below. [{"name": "python_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> With 19 rows of 8 chairs and 29 ...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"python_exec\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code...
nlprog_det
setting
original
null
deterministic
[]
[]
220
{"gold": "123", "printed": "123", "notation": null}
nlprog_det-setting-0064742
<|start|><|user|> A quorum is 3/5 of the 12 members, rounded up. How many members make a quorum?<|eot|> <|assistant|> ```python import math members = 12 quorum = math.ceil(members * 3 / 5) print(quorum) ``` This prints 8. 8 members are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A quorum is 3/5 of the 12 members, rounded up. How many members make a quorum?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 12\nquorum = math.ceil(members * 3 / 5)\nprint(quorum)\n```\nThis prints 8.\n\n8 members are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0064744
<|start|><|user|> A lease runs for 12 months at $850 per month. How much rent is paid over the whole term?<|eot|> <|assistant|> ```python monthly_rent = 850 months = 12 total = monthly_rent * months print(total) ``` Interpreter output — 10200 The rent over the term is $10,200.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lease runs for 12 months at $850 per month. How much rent is paid over the whole term?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 850\nmonths = 12\ntotal = monthly_rent * months\nprint(total)\n```\nInterpreter output — 10200\n\nThe rent over ...
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "10200", "printed": "10200", "notation": null}
nlprog_det-setting-0064745
Each storage box holds 15 files. How many boxes are needed for 534 files? Computation in Python: ```python import math files = 534 per_box = 15 boxes = math.ceil(files / per_box) # 36 print(boxes) ``` Output of the run — 36 It takes 36 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "36", "printed": "36", "notation": null}
nlprog_det-setting-0064746
<|start|><|user|> A $3,600 loan carries 10% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|> <|assistant|> ```python principal = 3600 annual_rate = 10 / 100 # 0.1 months = 36 interest = principal * annual_rate * months / 12 # 1080.0 payme...
chat
[ { "role": "user", "content": "A $3,600 loan carries 10% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?" }, { "role": "assistant", "content": "```python\nprincipal = 3600\nannual_rate = 10 / 100 # 0.1\nmonths = 36\nintere...
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "130.00", "printed": "130.00", "notation": null}
nlprog_det-setting-0064748
<|start|><|user|> A $150 dinner bill gets a 15% tip, and 6 people share the cost equally. What is each person's share?<|eot|> <|assistant|> bill = 150 tip_rate = 15 / 100 # 0.15 people = 6 each = bill * (1 + tip_rate) / people # 28.75 print(f"{each:.2f}") That prints 28.75. Each person pays $28.7...
chat
[ { "role": "user", "content": "A $150 dinner bill gets a 15% tip, and 6 people share the cost equally. What is each person's share?" }, { "role": "assistant", "content": " bill = 150\n tip_rate = 15 / 100 # 0.15\n people = 6\n each = bill * (1 + tip_rate) / people # 28.75\n print...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "28.75", "printed": "28.75", "notation": null}
nlprog_det-setting-0064749
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> Sara lends $2,500 at 8% simple interest per year for 3 years. How much interest is earned?<|eot|> <|assistant|> The interest is $600.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "Sara lends $2,500 at 8% simple interest per year for 3 years. How much interest is earned?" }, { "role": "assistant", "content": "The interest is $600.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
57
{"gold": "600.00", "printed": "600.00", "notation": null}
nlprog_det-setting-0064750
A water bill is $15 plus $5.10 per thousand gallons beyond the first 3 thousand. What is the bill for 12 thousand gallons? We write it as a program: ```python base = 15 rate = 5.1 used = 12 free = 3 bill = base + rate * max(0, used - free) # 60.9 print(f"{bill:.2f}") ``` The script prints: 60.90 The bill is $60.90.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "60.90", "printed": "60.90", "notation": null}
nlprog_det-setting-0064751
If a 5-year limitations period starts on July 24, 2016, when does it end? ```python from datetime import date accrued = date(2016, 7, 24) # datetime.date(2016, 7, 24) years = 5 expires = accrued.replace(year=accrued.year + years) # datetime.date(2021, 7, 24) print(expires.isoformat()) ``` Executing it gives 2021-07-...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "2021-07-24", "printed": "2021-07-24", "notation": null}
nlprog_det-setting-0064752
Convert 5 h 22 min (the length of a hearing) to minutes. The program: ```python hours = 5 minutes = 22 total_minutes = hours * 60 + minutes # 322 print(total_minutes) ``` The program prints: 322 The hearing lasted 322 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "322", "printed": "322", "notation": null}
nlprog_det-setting-0064753
Monthly: $12. Annual: $96. What is saved per year by paying annually? The annual plan saves $48.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0064754
<|start|><|user|> With $12,500 in costs and $14,500 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|> <|assistant|> ```python revenue = 14500 costs = 12500 profit = revenue - costs # 2000 margin = profit / revenue * 100 # 13.793103448275861 print(round(margin, 1)) ``` (Printed result: 13.8) ...
chat
[ { "role": "user", "content": "With $12,500 in costs and $14,500 in revenue, what percent of revenue is profit? Round to one decimal." }, { "role": "assistant", "content": "```python\nrevenue = 14500\ncosts = 12500\nprofit = revenue - costs # 2000\nmargin = profit / revenue * 100 # 13.793103448...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "13.8", "printed": "13.8", "notation": null}
nlprog_det-setting-0064756
A $48,000 grant pays $2,000 up front and the rest in 4 equal installments. How large is each installment? Script: grant = 48000 up_front = 2000 installments = 4 each = (grant - up_front) / installments # 11500.0 print(f"{each:.2f}") # program output: 11500.00 $11,500.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "11500.00", "printed": "11500.00", "notation": null}
nlprog_det-setting-0064757
<|start|><|system|> Be brief and correct.<|eot|> <|user|> A meal costs $150.77. How much is a 15% tip?<|eot|> <|assistant|> The tip is $22.62.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be brief and correct." }, { "role": "user", "content": "A meal costs $150.77. How much is a 15% tip?" }, { "role": "assistant", "content": "The tip is $22.62." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "22.62", "printed": "22.62", "notation": null}
nlprog_det-setting-0064758
Attendance was 63 out of 100. Express it as a percent. Let the code do the arithmetic: ```python present = 63 total = 100 percent = present / total * 100 # 63.0 print(round(percent, 1)) ``` Execution prints: 63.0 63.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "63.0", "printed": "63.0", "notation": null}
nlprog_det-setting-0064759
A court charges $10 per request plus $0.10 per page after the first 0 pages. What does a 111-page copy cost? A short script: ```python pages = 111 base = 10 per_page = 0.1 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 21.1 print(f"{cost:.2f}") ``` The interpreter prints 21.10. The total is $21...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "21.10", "printed": "21.10", "notation": null}
nlprog_det-setting-0064760
The landlord deducts $150, $120 and $85 from a $2,000 deposit. What is returned to the tenant? ```python deposit = 2000 deductions = [150, 120, 85] refund = deposit - sum(deductions) # 1645 print(refund) ``` Result: 1645 The refund is $1,645.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "1645", "printed": "1645", "notation": null}
nlprog_det-setting-0064761
What commission does Uma make on $115,537 in sales at 6%? Python does the arithmetic: sales = 115537 rate = 6 / 100 commission = sales * rate print(f"{commission:.2f}") The interpreter prints 6932.22. The commission is $6,932.22.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "6932.22", "printed": "6932.22", "notation": null}
nlprog_det-setting-0064762
<|start|><|system|> Tools (call with JSON): {"name": "run_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|> <|user|> A 300-mile drive...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"run_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requ...
nlprog_det
setting
original
null
deterministic
[]
[]
204
{"gold": "360", "printed": "360", "notation": null}
nlprog_det-setting-0064763
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "math_engine", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"math_engine\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\...
nlprog_det
setting
original
null
deterministic
[]
[]
255
{"gold": "220.32", "printed": "220.32", "notation": null}
nlprog_det-setting-0064764
A hall has 9 rows of 11 seats, and 4 seats are empty. How many people are seated? A few lines of Python do it: ```python rows = 9 per_row = 11 empty = 4 seated = rows * per_row - empty # 95 print(seated) ``` Run result: 95 95 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "95", "printed": "95", "notation": null}
nlprog_det-setting-0064765
Divide 293 items among 9 groups as evenly as possible with equal groups. How many per group, and how many remain? Program: total = 293 groups = 9 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") The program outputs: 32 each, 5 left over 32 each, 5 left ove...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "32 each, 5 left over", "printed": "32 each, 5 left over", "notation": null}
nlprog_det-setting-0064766
Shipping costs $10 plus $0.75 per pound. What does a 22-pound parcel cost to ship? The program: base = 10 per_pound = 0.75 weight = 22 cost = base + per_pound * weight # 26.5 print(f"{cost:.2f}") Console output — 26.50 Shipping costs $26.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "26.50", "printed": "26.50", "notation": null}
nlprog_det-setting-0064767
<|start|><|user|> 2 hours of work at $150 an hour: what is the total charge?<|eot|> <|assistant|> ```python hours = 2 rate = 150 bill = hours * rate # 300 print(f"{bill:.2f}") ``` What it prints: 300.00 The bill is $300.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "2 hours of work at $150 an hour: what is the total charge?" }, { "role": "assistant", "content": "```python\nhours = 2\nrate = 150\nbill = hours * rate # 300\nprint(f\"{bill:.2f}\")\n```\nWhat it prints: 300.00\n\nThe bill is $300.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "300.00", "printed": "300.00", "notation": null}
nlprog_det-setting-0064768
What does $2,000 grow to in 4 years at 4% annual compounding? Python does the arithmetic: ```python principal = 2000 rate = 4 / 100 # 0.04 years = 4 value = principal * (1 + rate) ** years # 2339.7171200000003 print(f"{value:.2f}") ``` # run result: 2339.72 The balance is $2,339.72.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "2339.72", "printed": "2339.72", "notation": null}
nlprog_det-setting-0064769
From a $2,500 retainer, 3 hours at $200/hour have been drawn. What remains? In Python: ```python retainer = 2500 hours = 3 rate = 200 left = retainer - hours * rate # 1900 print(left) ``` The program outputs 1900. $1,900 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "1900", "printed": "1900", "notation": null}
nlprog_det-setting-0064770
A pack of 24 notebooks sells for $1320. What does each cost? Python makes this quick: ```python total = 1320 count = 24 per_item = total // count # 55 print(per_item) ``` That prints: 55 The unit price is $55.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "55", "printed": "55", "notation": null}
nlprog_det-setting-0064771
<|start|><|user|> At $0.62 per mile, what is the reimbursement for 366 miles?<|eot|> <|assistant|> ```python miles = 366 rate = 0.62 reimbursement = miles * rate # 226.92 print(f"{reimbursement:.2f}") ``` Console: 226.92 Bilal is owed $226.92.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $0.62 per mile, what is the reimbursement for 366 miles?" }, { "role": "assistant", "content": "```python\nmiles = 366\nrate = 0.62\nreimbursement = miles * rate # 226.92\nprint(f\"{reimbursement:.2f}\")\n```\nConsole:\n226.92\n\nBilal is owed $226.92." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "226.92", "printed": "226.92", "notation": null}
nlprog_det-setting-0064772
<|start|><|user|> Mei lends $1,000 at 4% simple interest per year for 6 years. How much interest is earned?<|eot|> <|assistant|> ```python principal = 1000 rate = 4 / 100 # 0.04 years = 6 interest = principal * rate * years # 240.0 print(f"{interest:.2f}") ``` stdout — 240.00 The interest is $240.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Mei lends $1,000 at 4% simple interest per year for 6 years. How much interest is earned?" }, { "role": "assistant", "content": "```python\nprincipal = 1000\nrate = 4 / 100 # 0.04\nyears = 6\ninterest = principal * rate * years # 240.0\nprint(f\"{interest:.2f}\")\...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "240.00", "printed": "240.00", "notation": null}
nlprog_det-setting-0064773
Water costs $15 a month plus $4.75 for each 1,000 gallons over 0,000. What is owed for 22,000 gallons? Translated to Python: ```python base = 15 rate = 4.75 used = 22 free = 0 bill = base + rate * max(0, used - free) # 119.5 print(f"{bill:.2f}") ``` Out = 119.50 The bill is $119.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "119.50", "printed": "119.50", "notation": null}
nlprog_det-setting-0064774
To read 1020 pages in 17 days, how many pages per day are needed? ```python pages = 1020 days = 17 per_day = pages // days # 60 print(per_day) ``` This prints: 60 60 pages a day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0064775
Convert 2 h 47 min (the length of a deposition) to minutes. The deposition lasted 167 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "167", "printed": "167", "notation": null}
nlprog_det-setting-0064776
86 copies of a 43-page packet are printed at $0.08 per page. What is the cost? A few lines of Python do it: ```python pages = 43 copies = 86 cost_per_page = 0.08 cost = pages * copies * cost_per_page # 295.84000000000003 print(f"{cost:.2f}") ``` Running it prints 295.84. The job costs $295.84.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "295.84", "printed": "295.84", "notation": null}
nlprog_det-setting-0064777
What percentage of $10,000 is $600? Coded up: ```python budget = 10000 spent = 600 percent = spent / budget * 100 print(round(percent, 1)) ``` This prints 6.0, as expected. 6.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "6.0", "printed": "6.0", "notation": null}
nlprog_det-setting-0064779
Find the mean of these test scores: 86, 77, 70, 52, 65 and 58. Translated to Python: ```python scores = [86, 77, 70, 52, 65, 58] average = sum(scores) // len(scores) print(average) ``` That prints: 68 The average score is 68.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "68", "printed": "68", "notation": null}
nlprog_det-setting-0064780
<|start|><|system|> Answer the user's question directly.<|eot|> <|user|> A $210 dinner bill gets a 18% tip, and 4 people share the cost equally. What is each person's share?<|eot|> <|assistant|> ```python bill = 210 tip_rate = 18 / 100 # 0.18 people = 4 each = bill * (1 + tip_rate) / people # 61.949999999999996 print...
chat
[ { "role": "system", "content": "Answer the user's question directly." }, { "role": "user", "content": "A $210 dinner bill gets a 18% tip, and 4 people share the cost equally. What is each person's share?" }, { "role": "assistant", "content": "```python\nbill = 210\ntip_rate = 18 / 10...
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "61.95", "printed": "61.95", "notation": null}
nlprog_det-setting-0064782
Shipping costs $8 plus $1.20 per pound. What does a 13-pound parcel cost to ship? ```python base = 8 per_pound = 1.2 weight = 13 cost = base + per_pound * weight # 23.6 print(f"{cost:.2f}") ``` (Out: 23.60) The charge is $23.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "23.60", "printed": "23.60", "notation": null}
nlprog_det-setting-0064783
Straight-line depreciation: cost $12,000, salvage $3,000, 5 years. How much per year? We can compute it in Python. ```python cost = 12000 salvage = 3000 years = 5 per_year = (cost - salvage) / years # 1800.0 print(f"{per_year:.2f}") ``` The script prints 1800.00, as expected. Depreciation is $1,800.00 per year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "1800.00", "printed": "1800.00", "notation": null}
nlprog_det-setting-0064784
A lease runs for 24 months at $3,250 per month. How much rent is paid over the whole term? Python does the arithmetic: ```python monthly_rent = 3250 months = 24 total = monthly_rent * months # 78000 print(total) ``` Output: 78000 In total, $78,000 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "78000", "printed": "78000", "notation": null}
nlprog_det-setting-0064785
<|start|><|user|> A 3% increase is applied to $2,200 monthly rent. What is the new amount?<|eot|> <|assistant|> ```python rent = 2200 increase = 3 / 100 # 0.03 new_rent = rent * (1 + increase) # 2266.0 print(f"{new_rent:.2f}") ``` When run, it prints 2266.00. The new rent is $2,266.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 3% increase is applied to $2,200 monthly rent. What is the new amount?" }, { "role": "assistant", "content": "```python\nrent = 2200\nincrease = 3 / 100 # 0.03\nnew_rent = rent * (1 + increase) # 2266.0\nprint(f\"{new_rent:.2f}\")\n```\nWhen run, it prints 2266....
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "2266.00", "printed": "2266.00", "notation": null}
nlprog_det-setting-0064786
<|start|><|system|> Tools (call with JSON): [{"name": "interpreter", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> Each storage box holds 15 ...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"interpreter\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"...
nlprog_det
setting
original
null
deterministic
[]
[]
214
{"gold": "59", "printed": "59", "notation": null}
nlprog_det-setting-0064787
Divide 273 items among 5 groups as evenly as possible with equal groups. How many per group, and how many remain? The answer: 54 each, 3 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "54 each, 3 left over", "printed": "54 each, 3 left over", "notation": null}
nlprog_det-setting-0064788
The landlord deducts $45 and $45 from a $1,500 deposit. What is returned to the tenant? $1,410 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "1410", "printed": "1410", "notation": null}
nlprog_det-setting-0064789
<|start|><|user|> How many weekdays (Monday to Friday) fall after May 25, 2022 up to and including June 24, 2022?<|eot|> <|assistant|> 22 weekdays.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many weekdays (Monday to Friday) fall after May 25, 2022 up to and including June 24, 2022?" }, { "role": "assistant", "content": "22 weekdays." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0064790
3 books come back 8 days late, at $0.25 a day each. What is the fine? The Python version: ```python per_day = 0.25 days_late = 8 books = 3 fine = per_day * days_late * books # 6.0 print(f"{fine:.2f}") ``` Run result — 6.00 $6.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "6.00", "printed": "6.00", "notation": null}
nlprog_det-setting-0064791
<|start|><|system|> Functions: {"name": "sandbox_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> Copies cost $10 p...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"sandbox_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requi...
nlprog_det
setting
original
null
deterministic
[]
[]
252
{"gold": "37.50", "printed": "37.50", "notation": null}
nlprog_det-setting-0064792
<|start|><|user|> A $84 dinner bill gets a 20% tip, and 6 people share the cost equally. What is each person's share?<|eot|> <|assistant|> ```python bill = 84 tip_rate = 20 / 100 # 0.2 people = 6 each = bill * (1 + tip_rate) / people # 16.8 print(f"{each:.2f}") ``` # result: 16.80 Each person pays $16.80.<|eot|> <|e...
chat
[ { "role": "user", "content": "A $84 dinner bill gets a 20% tip, and 6 people share the cost equally. What is each person's share?" }, { "role": "assistant", "content": "```python\nbill = 84\ntip_rate = 20 / 100 # 0.2\npeople = 6\neach = bill * (1 + tip_rate) / people # 16.8\nprint(f\"{each:.2f...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "16.80", "printed": "16.80", "notation": null}
nlprog_det-setting-0064793
<|start|><|user|> One can of paint covers 300 square feet. How many cans are needed for 760 square feet of wall?<|eot|> <|assistant|> 3 cans are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "One can of paint covers 300 square feet. How many cans are needed for 760 square feet of wall?" }, { "role": "assistant", "content": "3 cans are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0064794
<|start|><|user|> 3 walks at 250 calories each burn how many calories in total?<|eot|> <|assistant|> ```python per_session = 250 sessions = 3 total = per_session * sessions # 750 print(total) ``` Python prints 750. 750 calories in total.<|eot|> <|end|>
chat
[ { "role": "user", "content": "3 walks at 250 calories each burn how many calories in total?" }, { "role": "assistant", "content": "```python\nper_session = 250\nsessions = 3\ntotal = per_session * sessions # 750\nprint(total)\n```\nPython prints 750.\n\n750 calories in total." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0064795
Water costs $12 a month plus $3.50 for each 1,000 gallons over 0,000. What is owed for 8,000 gallons? A few lines of Python do it: ```python base = 12 rate = 3.5 used = 8 free = 0 bill = base + rate * max(0, used - free) # 40.0 print(f"{bill:.2f}") ``` Printed = 40.00 The bill is $40.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "40.00", "printed": "40.00", "notation": null}
nlprog_det-setting-0064796
<|start|><|user|> Monthly: $29. Annual: $318. What is saved per year by paying annually?<|eot|> <|assistant|> ```python monthly = 29 yearly = 318 savings = monthly * 12 - yearly # 30 print(savings) ``` Run output: 30 The annual plan saves $30.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Monthly: $29. Annual: $318. What is saved per year by paying annually?" }, { "role": "assistant", "content": "```python\nmonthly = 29\nyearly = 318\nsavings = monthly * 12 - yearly # 30\nprint(savings)\n```\nRun output: 30\n\nThe annual plan saves $30." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0064797
After an initial $0, the remainder of a $12,000 grant is paid in 3 equal parts. What is each part? Written as code: ```python grant = 12000 up_front = 0 installments = 3 each = (grant - up_front) / installments # 4000.0 print(f"{each:.2f}") ``` The run gives 4000.00. $4,000.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "4000.00", "printed": "4000.00", "notation": null}
nlprog_det-setting-0064798
<|start|><|system|> Keep explanations short.<|eot|> <|user|> Starting from $20,000, the team spends $2,473, $606. What remains?<|eot|> <|assistant|> budget = 20000 expenses = [2473, 606] left = budget - sum(expenses) # 16921 print(left) The program outputs: 16921 $16,921 is left.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Keep explanations short." }, { "role": "user", "content": "Starting from $20,000, the team spends $2,473, $606. What remains?" }, { "role": "assistant", "content": " budget = 20000\n expenses = [2473, 606]\n left = budget - sum(expenses) # 16...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "16921", "printed": "16921", "notation": null}
nlprog_det-setting-0064799
A printer costs $300. It is 10% off. What is the sale price? In code: ```python price = 300 discount = 10 / 100 # 0.1 sale_price = price * (1 - discount) # 270.0 print(f"{sale_price:.2f}") ``` The run gives 270.00. It costs $270.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "270.00", "printed": "270.00", "notation": null}
nlprog_det-setting-0064800
<|start|><|system|> You are a math tutor.<|eot|> <|user|> A client paid a $10,000 retainer. The firm has billed 6 hours at $275 per hour. How much of the retainer is left?<|eot|> <|assistant|> $8,350 of the retainer is left.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a math tutor." }, { "role": "user", "content": "A client paid a $10,000 retainer. The firm has billed 6 hours at $275 per hour. How much of the retainer is left?" }, { "role": "assistant", "content": "$8,350 of the retainer is left." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
65
{"gold": "8350", "printed": "8350", "notation": null}
nlprog_det-setting-0064801
Monthly rent is $2,400. A tenant moves in with 7 days left in a 30-day month. What is the prorated rent? We write it as a program: ```python rent = 2400 days_in_month = 30 days_occupied = 7 prorated = rent * days_occupied / days_in_month # 560.0 print(f"{prorated:.2f}") ``` Execution result: 560.00 The tenant owes $...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "560.00", "printed": "560.00", "notation": null}
nlprog_det-setting-0064802
An attorney bills 1.5 hours at $180 per hour. What is the bill? Computation in Python: ```python hours = 1.5 rate = 180 bill = hours * rate # 270.0 print(f"{bill:.2f}") ``` Result = 270.00 That comes to $270.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "270.00", "printed": "270.00", "notation": null}
nlprog_det-setting-0064803
<|start|><|user|> Monthly: $25. Annual: $276. What is saved per year by paying annually?<|eot|> <|assistant|> ```python monthly = 25 yearly = 276 savings = monthly * 12 - yearly # 24 print(savings) ``` (Program output: 24) The annual plan saves $24.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Monthly: $25. Annual: $276. What is saved per year by paying annually?" }, { "role": "assistant", "content": "```python\nmonthly = 25\nyearly = 276\nsavings = monthly * 12 - yearly # 24\nprint(savings)\n```\n(Program output: 24)\n\nThe annual plan saves $24." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0064804
<|start|><|user|> Counting only Monday through Friday, how many business days are there after December 24, 2028 through December 29, 2028?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2028, 12, 24) end = date(2028, 12, 29) count = 0 for k in range(1, (end - start).days + 1): if (...
chat
[ { "role": "user", "content": "Counting only Monday through Friday, how many business days are there after December 24, 2028 through December 29, 2028?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2028, 12, 24)\nend = date(2028, 12, 29)\ncou...
nlprog_det
setting
original
null
deterministic
[]
[]
160
{"gold": "5", "printed": "5", "notation": null}