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-0083842
A pack of 10 mugs sells for $70. What does each cost? Programmatically: ```python total = 70 count = 10 per_item = total // count # 7 print(per_item) ``` Console: 7 Each one costs $7.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "7", "printed": "7", "notation": null}
nlprog_det-setting-0083843
<|start|><|system|> You have access to these functions: {"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_unit", "to_unit"...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\":...
nlprog_det
setting
original
null
deterministic
[]
[]
403
{"gold": "9213.75", "printed": "9213.75", "notation": null}
nlprog_det-setting-0083844
<|start|><|user|> Fixed costs are $9,000. Each unit sells for $40 and costs $30 to make. How many units must be sold to break even?<|eot|> <|assistant|> ```python import math fixed = 9000 price = 40 variable = 30 units = math.ceil(fixed / (price - variable)) # 900 print(units) ``` What it prints: 900 900 units are ne...
chat
[ { "role": "user", "content": "Fixed costs are $9,000. Each unit sells for $40 and costs $30 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 9000\nprice = 40\nvariable = 30\nunits = math.ceil(fixed / (price - variable)) #...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0083845
<|start|><|system|> Tool definitions: [{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "python_exec", "description": "A Python interpreter. Returns standard output.", "parameters": {"ty...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"python_exec\", \"description\": \"A Python ...
nlprog_det
setting
original
null
deterministic
[]
[]
286
{"gold": "357.20", "printed": "357.20", "notation": null}
nlprog_det-setting-0083847
<|start|><|user|> Rent of $1,800 goes up 5%. What is the new rent?<|eot|> <|assistant|> ```python rent = 1800 increase = 5 / 100 # 0.05 new_rent = rent * (1 + increase) # 1890.0 print(f"{new_rent:.2f}") ``` The code prints 1890.00. The new rent is $1,890.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rent of $1,800 goes up 5%. What is the new rent?" }, { "role": "assistant", "content": "```python\nrent = 1800\nincrease = 5 / 100 # 0.05\nnew_rent = rent * (1 + increase) # 1890.0\nprint(f\"{new_rent:.2f}\")\n```\nThe code prints 1890.00.\n\nThe new rent is $1,89...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "1890.00", "printed": "1890.00", "notation": null}
nlprog_det-setting-0083848
<|start|><|user|> Shipping costs $10 plus $2.00 per pound. What does a 37-pound parcel cost to ship?<|eot|> <|assistant|> ```python base = 10 per_pound = 2.0 weight = 37 cost = base + per_pound * weight # 84.0 print(f"{cost:.2f}") ``` Out — 84.00 Shipping costs $84.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Shipping costs $10 plus $2.00 per pound. What does a 37-pound parcel cost to ship?" }, { "role": "assistant", "content": "```python\nbase = 10\nper_pound = 2.0\nweight = 37\ncost = base + per_pound * weight # 84.0\nprint(f\"{cost:.2f}\")\n```\nOut — 84.00\n\nShippi...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "84.00", "printed": "84.00", "notation": null}
nlprog_det-setting-0083849
<|start|><|user|> Split $756 between Helga and Bruna in the ratio 1 to 2. What is Helga's share?<|eot|> <|assistant|> ```python total = 756 parts_a = 1 parts_b = 2 share_a = total * parts_a // (parts_a + parts_b) print(share_a) ``` The printout reads: 252 Helga's share is $252.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Split $756 between Helga and Bruna in the ratio 1 to 2. What is Helga's share?" }, { "role": "assistant", "content": "```python\ntotal = 756\nparts_a = 1\nparts_b = 2\nshare_a = total * parts_a // (parts_a + parts_b)\nprint(share_a)\n```\nThe printout reads: 252\n\n...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "252", "printed": "252", "notation": null}
nlprog_det-setting-0083850
Buying 6 staplers at $9 each, 5 desk lamps at $29 each, someone hands over $200. What change comes back? The computation: items = [(6, 9), (5, 29)] total = sum(q * p for q, p in items) paid = 200 change = paid - total print(change) Printed result — 1 $1 comes back.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "1", "printed": "1", "notation": null}
nlprog_det-setting-0083851
A 416-page report must be reviewed in 16 days. How many pages a day is that, evenly? Python: pages = 416 days = 16 per_day = pages // days # 26 print(per_day) Output — 26 That is 26 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0083852
A lease runs for 18 months at $1,475 per month. How much rent is paid over the whole term? Programmatically: ```python monthly_rent = 1475 months = 18 total = monthly_rent * months # 26550 print(total) ``` Printed result: 26550 In total, $26,550 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "26550", "printed": "26550", "notation": null}
nlprog_det-setting-0083853
A measure needs at least 67% of 278 votes. How many votes is that, rounded up? Python: ```python import math voters = 278 needed = math.ceil(voters * 67 / 100) # 187 print(needed) ``` # run result: 187 187 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "187", "printed": "187", "notation": null}
nlprog_det-setting-0083854
<|start|><|system|> Keep answers short and correct.<|eot|> <|user|> Starting from $12,000, the team spends $1,188, $844, $1,117, $1,239. What remains?<|eot|> <|assistant|> ```python budget = 12000 expenses = [1188, 844, 1117, 1239] left = budget - sum(expenses) # 7612 print(left) ``` It prints 7612. $7,612 is left.<|...
chat
[ { "role": "system", "content": "Keep answers short and correct." }, { "role": "user", "content": "Starting from $12,000, the team spends $1,188, $844, $1,117, $1,239. What remains?" }, { "role": "assistant", "content": "```python\nbudget = 12000\nexpenses = [1188, 844, 1117, 1239]\nl...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "7612", "printed": "7612", "notation": null}
nlprog_det-setting-0083855
How long, in days, is it from October 22, 2025 until September 6, 2026? We write it as a program: from datetime import date first = date(2025, 10, 22) # datetime.date(2025, 10, 22) second = date(2026, 9, 6) # datetime.date(2026, 9, 6) print((second - first).days) (Console output: 319) There are 319 ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "319", "printed": "319", "notation": null}
nlprog_det-setting-0083856
Papers were served by mail on January 27, 2020. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date? The program: ```python from datetime import date, timedelta served = date(2020, 1, 27) response_days = 28 mail_days = 3 due = served + timedelta(days=response_days + mail_days) ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "2020-02-27", "printed": "2020-02-27", "notation": null}
nlprog_det-setting-0083857
With 15% off, what does a $300 kettle cost? Programmatically: ```python price = 300 discount = 15 / 100 # 0.15 sale_price = price * (1 - discount) # 255.0 print(f"{sale_price:.2f}") ``` stdout = 255.00 The sale price is $255.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "255.00", "printed": "255.00", "notation": null}
nlprog_det-setting-0083858
A garage charges $4 an hour, never more than $24 a day. How much for 11 hours? Programmatically: ```python rate = 4 hours = 11 daily_max = 24 cost = min(rate * hours, daily_max) # 24 print(cost) ``` Program output — 24 Parking costs $24.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0083859
<|start|><|user|> Marek buys 12 boxes of 25 desk lamps each and gives away 2 desk lamps. How many desk lamps are left?<|eot|> <|assistant|> ```python boxes = 12 per_box = 25 given_away = 2 left = boxes * per_box - given_away # 298 print(left) ``` Executed, it shows: 298 298 desk lamps are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Marek buys 12 boxes of 25 desk lamps each and gives away 2 desk lamps. How many desk lamps are left?" }, { "role": "assistant", "content": "```python\nboxes = 12\nper_box = 25\ngiven_away = 2\nleft = boxes * per_box - given_away # 298\nprint(left)\n```\nExecuted, i...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "298", "printed": "298", "notation": null}
nlprog_det-setting-0083860
How many of 96 votes make 67% (round up)? Script: ```python import math voters = 96 needed = math.ceil(voters * 67 / 100) # 65 print(needed) ``` Printed result — 65 65 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "65", "printed": "65", "notation": null}
nlprog_det-setting-0083861
<|start|><|user|> Someone born November 14, 2008 turns how old by October 19, 2030? Give the age in whole years.<|eot|> <|assistant|> ```python from datetime import date born = date(2008, 11, 14) # datetime.date(2008, 11, 14) on = date(2030, 10, 19) # datetime.date(2030, 10, 19) age = on.year - born.year - ((on.month...
chat
[ { "role": "user", "content": "Someone born November 14, 2008 turns how old by October 19, 2030? Give the age in whole years." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(2008, 11, 14) # datetime.date(2008, 11, 14)\non = date(2030, 10, 19) # datetime....
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0083862
If a 25-minute class begins at 11:00 AM, what time does it finish? The class finishes at 11:25 AM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "11:25 AM", "printed": "11:25 AM", "notation": null}
nlprog_det-setting-0083863
What simple interest does $8,000 earn at 4% a year over 3 years? A short script: ```python principal = 8000 rate = 4 / 100 # 0.04 years = 3 interest = principal * rate * years # 960.0 print(f"{interest:.2f}") ``` The printout reads 960.00. The interest is $960.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "960.00", "printed": "960.00", "notation": null}
nlprog_det-setting-0083864
<|start|><|system|> Available functions (JSON Schema): {"name": "interpreter", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> The rules requi...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"interpreter\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"r...
nlprog_det
setting
original
null
deterministic
[]
[]
212
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0083865
<|start|><|system|> Available functions (JSON Schema): {"name": "python_exec", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> Prorate $1...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"python_exec\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, ...
nlprog_det
setting
original
null
deterministic
[]
[]
251
{"gold": "640.00", "printed": "640.00", "notation": null}
nlprog_det-setting-0083866
<|start|><|user|> At 30 miles per hour, how many minutes does a 90-mile trip take?<|eot|> <|assistant|> ```python distance = 90 speed = 30 minutes = distance / speed * 60 # 180.0 print(round(minutes)) ``` Interpreter output: 180 180 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 30 miles per hour, how many minutes does a 90-mile trip take?" }, { "role": "assistant", "content": "```python\ndistance = 90\nspeed = 30\nminutes = distance / speed * 60 # 180.0\nprint(round(minutes))\n```\nInterpreter output: 180\n\n180 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "180", "printed": "180", "notation": null}
nlprog_det-setting-0083867
Sales went from 2,500 to 3,000. What is the percent change? Coded up: ```python old = 2500 new = 3000 change = (new - old) / old * 100 # 20.0 print(round(change)) ``` Out — 20 The change is 20%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0083868
<|start|><|user|> Parking is $5 per hour with a daily maximum of $24. What do 9 hours cost?<|eot|> <|assistant|> ```python rate = 5 hours = 9 daily_max = 24 cost = min(rate * hours, daily_max) # 24 print(cost) ``` The code prints: 24 The charge is $24.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Parking is $5 per hour with a daily maximum of $24. What do 9 hours cost?" }, { "role": "assistant", "content": "```python\nrate = 5\nhours = 9\ndaily_max = 24\ncost = min(rate * hours, daily_max) # 24\nprint(cost)\n```\nThe code prints: 24\n\nThe charge is $24." ...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0083869
<|start|><|user|> A quorum is 2/3 of the 57 members, rounded up. How many members make a quorum?<|eot|> <|assistant|> ```python import math members = 57 quorum = math.ceil(members * 2 / 3) print(quorum) ``` Program output — 38 38 members are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A quorum is 2/3 of the 57 members, rounded up. How many members make a quorum?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 57\nquorum = math.ceil(members * 2 / 3)\nprint(quorum)\n```\nProgram output — 38\n\n38 members are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "38", "printed": "38", "notation": null}
nlprog_det-setting-0083870
Parking is $2 per hour with a daily maximum of $18. What do 1 hours cost? Python makes this quick: ```python rate = 2 hours = 1 daily_max = 18 cost = min(rate * hours, daily_max) # 2 print(cost) ``` The script prints 2. Parking costs $2.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0083871
How many of 37 members form a majority (more than half)? The program: ```python members = 37 majority = members // 2 + 1 # 19 print(majority) ``` Run it and it prints: 19 That is 19 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0083872
What is -5 degrees Celsius in Fahrenheit? Python makes this quick: ```python celsius = -5 fahrenheit = celsius * 9 / 5 + 32 # 23.0 print(round(fahrenheit)) ``` Running it prints 23. It equals 23 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0083873
How many units at $30 each (variable cost $24) cover $9,000 of fixed costs? Break-even is 1500 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0083874
<|start|><|user|> Parking is $5 per hour with a daily maximum of $15. What do 3 hours cost?<|eot|> <|assistant|> The charge is $15.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Parking is $5 per hour with a daily maximum of $15. What do 3 hours cost?" }, { "role": "assistant", "content": "The charge is $15." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0083875
A garage charges $2 an hour, never more than $24 a day. How much for 4 hours? Let the code do the arithmetic: ```python rate = 2 hours = 4 daily_max = 24 cost = min(rate * hours, daily_max) # 8 print(cost) ``` The interpreter prints: 8 Parking costs $8.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0083876
Starting with 1095 headsets and using 28 per day, how many remain after 16 days? 647 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "647", "printed": "647", "notation": null}
nlprog_det-setting-0083877
<|start|><|user|> At a 7% tax rate, what is the tax on $513.55?<|eot|> <|assistant|> ```python price = 513.55 tax_rate = 7 / 100 tax = price * tax_rate print(f"{tax:.2f}") ``` The interpreter prints 35.95. The tax is $35.95.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At a 7% tax rate, what is the tax on $513.55?" }, { "role": "assistant", "content": "```python\nprice = 513.55\ntax_rate = 7 / 100\ntax = price * tax_rate\nprint(f\"{tax:.2f}\")\n```\nThe interpreter prints 35.95.\n\nThe tax is $35.95." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "35.95", "printed": "35.95", "notation": null}
nlprog_det-setting-0083878
A car travels 586 miles in 2 hours. What is its average speed in miles per hour? Python, step by step: ```python distance = 586 hours = 2 speed = distance / hours # 293.0 print(round(speed)) ``` # out: 293 The average speed is 293 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "293", "printed": "293", "notation": null}
nlprog_det-setting-0083879
<|start|><|user|> Starting with 1335 water bottles and using 9 per day, how many remain after 14 days?<|eot|> <|assistant|> ```python stock = 1335 per_day = 9 days = 14 left = stock - per_day * days # 1209 print(left) ``` Result = 1209 1209 water bottles are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting with 1335 water bottles and using 9 per day, how many remain after 14 days?" }, { "role": "assistant", "content": "```python\nstock = 1335\nper_day = 9\ndays = 14\nleft = stock - per_day * days # 1209\nprint(left)\n```\nResult = 1209\n\n1209 water bottles ...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "1209", "printed": "1209", "notation": null}
nlprog_det-setting-0083880
<|start|><|system|> Keep answers short and correct.<|eot|> <|user|> Tobias earns a 10% commission on $95,367 of sales. What is the commission?<|eot|> <|assistant|> ```python sales = 95367 rate = 10 / 100 # 0.1 commission = sales * rate # 9536.7 print(f"{commission:.2f}") ``` This prints: 9536.70 Tobias earns $9,536....
chat
[ { "role": "system", "content": "Keep answers short and correct." }, { "role": "user", "content": "Tobias earns a 10% commission on $95,367 of sales. What is the commission?" }, { "role": "assistant", "content": "```python\nsales = 95367\nrate = 10 / 100 # 0.1\ncommission = sales * r...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "9536.70", "printed": "9536.70", "notation": null}
nlprog_det-setting-0083881
A penalty of $25 a day accrues, capped at $5,000. What is owed after 33 days? The program: ```python per_day = 25 days = 33 cap = 5000 fine = min(per_day * days, cap) # 825 print(fine) ``` Result = 825 $825 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "825", "printed": "825", "notation": null}
nlprog_det-setting-0083882
What average speed covers 132 miles in 2 hours? In code: ```python distance = 132 hours = 2 speed = distance / hours print(round(speed)) ``` Printed result — 66 The average speed is 66 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
70
{"gold": "66", "printed": "66", "notation": null}
nlprog_det-setting-0083883
At $0.67 per mile, what is the reimbursement for 540 miles? Omar is owed $361.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "361.80", "printed": "361.80", "notation": null}
nlprog_det-setting-0083885
<|start|><|system|> Functions: [{"name": "run_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> Shipping costs $5 plus $1.50 per pound. Wh...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"run_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\"]}}]" ...
nlprog_det
setting
original
null
deterministic
[]
[]
230
{"gold": "53.00", "printed": "53.00", "notation": null}
nlprog_det-setting-0083887
An invoice lists 32 toner kits at $8 each, plus 10% sales tax. What is the invoice total? Coded up: ```python quantity = 32 unit_price = 8 subtotal = quantity * unit_price # 256 total = subtotal * (1 + 10 / 100) # 281.6 print(f"{total:.2f}") ``` Output: 281.60 The total with tax is $281.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "281.60", "printed": "281.60", "notation": null}
nlprog_det-setting-0083889
<|start|><|user|> $2,000 is invested at 3% compounded yearly. What is it worth after 3 years?<|eot|> <|assistant|> ```python principal = 2000 rate = 3 / 100 # 0.03 years = 3 value = principal * (1 + rate) ** years # 2185.454 print(f"{value:.2f}") ``` Execution result: 2185.45 It is worth $2,185.45.<|eot|> <|end|>
chat
[ { "role": "user", "content": "$2,000 is invested at 3% compounded yearly. What is it worth after 3 years?" }, { "role": "assistant", "content": "```python\nprincipal = 2000\nrate = 3 / 100 # 0.03\nyears = 3\nvalue = principal * (1 + rate) ** years # 2185.454\nprint(f\"{value:.2f}\")\n```\nExec...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "2185.45", "printed": "2185.45", "notation": null}
nlprog_det-setting-0083891
Someone works 30 hours at $24.63 per hour. What are the earnings? The Python version: ```python rate = 24.63 hours = 30 earnings = rate * hours # 738.9 print(f"{earnings:.2f}") ``` Executed, it shows: 738.90 That earns $738.90.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "738.90", "printed": "738.90", "notation": null}
nlprog_det-setting-0083892
Counting the first and last day, how many days are there from December 19, 2026 through January 2, 2027? We write it as a program: ```python from datetime import date first = date(2026, 12, 19) # datetime.date(2026, 12, 19) last = date(2027, 1, 2) # datetime.date(2027, 1, 2) days = (last - first).days + 1 # 15 prin...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0083893
Split $1,974 between Joelle and Paula in the ratio 1 to 2. What is Joelle's share? Here is a short program for it. ```python total = 1974 parts_a = 1 parts_b = 2 share_a = total * parts_a // (parts_a + parts_b) # 658 print(share_a) ``` Run it and it prints 658. Joelle gets $658.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "658", "printed": "658", "notation": null}
nlprog_det-setting-0083894
Yoko drove 172 miles for work. Mileage is reimbursed at 70 cents a mile. How much is the reimbursement? Let the code do the arithmetic: ```python miles = 172 rate = 0.7 reimbursement = miles * rate # 120.39999999999999 print(f"{reimbursement:.2f}") ``` Program output — 120.40 Yoko is owed $120.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "120.40", "printed": "120.40", "notation": null}
nlprog_det-setting-0083895
Sales went from 2,500 to 1,500. What is the percent change? Coded up: ```python old = 2500 new = 1500 change = (new - old) / old * 100 # -40.0 print(round(change)) ``` # printed result: -40 The change is -40%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "-40", "printed": "-40", "notation": null}
nlprog_det-setting-0083896
Scale 200 g of flour from 4 servings to 2 servings. Here is a short program for it. ```python grams = 200 serves = 4 needed_for = 2 scaled = grams * needed_for // serves # 100 print(scaled) ``` Printed result — 100 100 grams of flour are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "100", "printed": "100", "notation": null}
nlprog_det-setting-0083897
With $8,000 in costs and $10,500 in revenue, what percent of revenue is profit? Round to one decimal. Python makes this quick: revenue = 10500 costs = 8000 profit = revenue - costs # 2500 margin = profit / revenue * 100 # 23.809523809523807 print(round(margin, 1)) # program output: 23.8 The marg...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "23.8", "printed": "23.8", "notation": null}
nlprog_det-setting-0083898
Fixed costs are $4,000. Each unit sells for $25 and costs $20 to make. How many units must be sold to break even? Python code: ```python import math fixed = 4000 price = 25 variable = 20 units = math.ceil(fixed / (price - variable)) # 800 print(units) ``` What it prints — 800 Break-even is 800 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "800", "printed": "800", "notation": null}
nlprog_det-setting-0083899
Filing fees are $75 per document. What do 2 filings cost? Here's the code. ```python fee = 75 filings = 2 total = fee * filings # 150 print(total) ``` When run, it prints 150. The total fee is $150.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0083900
<|start|><|system|> You are a math tutor.<|eot|> <|user|> A measure needs at least 75% of 23 votes. How many votes is that, rounded up?<|eot|> <|assistant|> ```python import math voters = 23 needed = math.ceil(voters * 75 / 100) print(needed) ``` It prints 18. 18 votes are needed.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a math tutor." }, { "role": "user", "content": "A measure needs at least 75% of 23 votes. How many votes is that, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 23\nneeded = math.ceil(voters * 75 / 100)\npri...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0083901
<|start|><|system|> Avoid unnecessary detail.<|eot|> <|user|> Rent of $1,100 goes up 8%. What is the new rent?<|eot|> <|assistant|> rent = 1100 increase = 8 / 100 # 0.08 new_rent = rent * (1 + increase) # 1188.0 print(f"{new_rent:.2f}") (Result: 1188.00) The new rent is $1,188.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Avoid unnecessary detail." }, { "role": "user", "content": "Rent of $1,100 goes up 8%. What is the new rent?" }, { "role": "assistant", "content": " rent = 1100\n increase = 8 / 100 # 0.08\n new_rent = rent * (1 + increase) # 1188.0\n pri...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "1188.00", "printed": "1188.00", "notation": null}
nlprog_det-setting-0083902
Attendance was 16 out of 20. Express it as a percent. We write it as a program: present = 16 total = 20 percent = present / total * 100 # 80.0 print(round(percent, 1)) The run gives 80.0. 80.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
69
{"gold": "80.0", "printed": "80.0", "notation": null}
nlprog_det-setting-0083903
An office budget of $5,000 has expenses of $1,993, $2,037. How much of the budget is left? Python: ```python budget = 5000 expenses = [1993, 2037] left = budget - sum(expenses) # 970 print(left) ``` It outputs: 970 $970 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "970", "printed": "970", "notation": null}
nlprog_det-setting-0083904
<|start|><|user|> 4 clipboards cost $6 apiece. With 6% tax added, what is the total?<|eot|> <|assistant|> ```python quantity = 4 unit_price = 6 subtotal = quantity * unit_price # 24 total = subtotal * (1 + 6 / 100) # 25.44 print(f"{total:.2f}") ``` Output of the run — 25.44 The total with tax is $25.44.<|eot|> <|end...
chat
[ { "role": "user", "content": "4 clipboards cost $6 apiece. With 6% tax added, what is the total?" }, { "role": "assistant", "content": "```python\nquantity = 4\nunit_price = 6\nsubtotal = quantity * unit_price # 24\ntotal = subtotal * (1 + 6 / 100) # 25.44\nprint(f\"{total:.2f}\")\n```\nOutput...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "25.44", "printed": "25.44", "notation": null}
nlprog_det-setting-0083905
A lawyer's fee is 30% of a $25,000 recovery. How large is the fee? We can compute it in Python. ```python recovery = 25000 rate = 30 / 100 # 0.3 fee = recovery * rate # 7500.0 print(f"{fee:.2f}") ``` The code prints: 7500.00 The lawyer's fee comes to $7,500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "7500.00", "printed": "7500.00", "notation": null}
nlprog_det-setting-0083906
<|start|><|user|> A backpack costs $80. It is 30% off. What is the sale price?<|eot|> <|assistant|> ```python price = 80 discount = 30 / 100 # 0.3 sale_price = price * (1 - discount) # 56.0 print(f"{sale_price:.2f}") ``` # console output: 56.00 It costs $56.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A backpack costs $80. It is 30% off. What is the sale price?" }, { "role": "assistant", "content": "```python\nprice = 80\ndiscount = 30 / 100 # 0.3\nsale_price = price * (1 - discount) # 56.0\nprint(f\"{sale_price:.2f}\")\n```\n# console output: 56.00\n\nIt costs...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "56.00", "printed": "56.00", "notation": null}
nlprog_det-setting-0083907
<|start|><|user|> A 17 × 3 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?<|eot|> <|assistant|> ```python import math length = 17 width = 3 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 13 print(tiles) ``` stdout = 13 13 tiles are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 17 × 3 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 17\nwidth = 3\ntile = 2\ntiles = math.ceil(length * width / (tile * tile)) # 13\nprint(tiles)\n```\nstdout = 13\...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0083908
<|start|><|system|> Show working only when it helps.<|eot|> <|user|> Pack A has 8 items for $9.33. Pack B has 18 items for $30.04. Which has the lower price per item?<|eot|> <|assistant|> Pack A is cheaper per item.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Show working only when it helps." }, { "role": "user", "content": "Pack A has 8 items for $9.33. Pack B has 18 items for $30.04. Which has the lower price per item?" }, { "role": "assistant", "content": "Pack A is cheaper per item." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
63
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0083909
<|start|><|user|> 10 boxes hold 10 pens each. After 14 are handed out, how many are left?<|eot|> <|assistant|> 86 pens are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "10 boxes hold 10 pens each. After 14 are handed out, how many are left?" }, { "role": "assistant", "content": "86 pens are left." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "86", "printed": "86", "notation": null}
nlprog_det-setting-0083910
Under a 40% contingency agreement, what fee is owed on a $60,000 award? Here is the program. ```python recovery = 60000 rate = 40 / 100 # 0.4 fee = recovery * rate # 24000.0 print(f"{fee:.2f}") ``` Interpreter output — 24000.00 The lawyer's fee comes to $24,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "24000.00", "printed": "24000.00", "notation": null}
nlprog_det-setting-0083911
<|start|><|user|> A 2% increase is applied to $1,100 monthly rent. What is the new amount?<|eot|> <|assistant|> ```python rent = 1100 increase = 2 / 100 # 0.02 new_rent = rent * (1 + increase) # 1122.0 print(f"{new_rent:.2f}") ``` Out: 1122.00 It rises to $1,122.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 2% increase is applied to $1,100 monthly rent. What is the new amount?" }, { "role": "assistant", "content": "```python\nrent = 1100\nincrease = 2 / 100 # 0.02\nnew_rent = rent * (1 + increase) # 1122.0\nprint(f\"{new_rent:.2f}\")\n```\nOut:\n1122.00\n\nIt rises...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "1122.00", "printed": "1122.00", "notation": null}
nlprog_det-setting-0083912
<|start|><|user|> From a $10,000 retainer, 8 hours at $250/hour have been drawn. What remains?<|eot|> <|assistant|> $8,000 of the retainer is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From a $10,000 retainer, 8 hours at $250/hour have been drawn. What remains?" }, { "role": "assistant", "content": "$8,000 of the retainer is left." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "8000", "printed": "8000", "notation": null}
nlprog_det-setting-0083913
<|start|><|system|> Available functions (JSON Schema): [{"name": "calc", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> 74 copies of a 55-pa...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"calc\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require...
nlprog_det
setting
original
null
deterministic
[]
[]
235
{"gold": "203.50", "printed": "203.50", "notation": null}
nlprog_det-setting-0083914
<|start|><|user|> 14 badges cost $7 apiece. With 5% tax added, what is the total?<|eot|> <|assistant|> ```python quantity = 14 unit_price = 7 subtotal = quantity * unit_price # 98 total = subtotal * (1 + 5 / 100) # 102.9 print(f"{total:.2f}") ``` That prints 102.90. The invoice total is $102.90.<|eot|> <|end|>
chat
[ { "role": "user", "content": "14 badges cost $7 apiece. With 5% tax added, what is the total?" }, { "role": "assistant", "content": "```python\nquantity = 14\nunit_price = 7\nsubtotal = quantity * unit_price # 98\ntotal = subtotal * (1 + 5 / 100) # 102.9\nprint(f\"{total:.2f}\")\n```\nThat pri...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "102.90", "printed": "102.90", "notation": null}
nlprog_det-setting-0083915
Yoko was born on January 5, 2008. How old is Yoko on December 18, 2028? A Python solution: ```python from datetime import date born = date(2008, 1, 5) on = date(2028, 12, 18) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) print(age) ``` Console output — 20 The age is 20 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0083916
<|start|><|system|> Avoid unnecessary detail.<|eot|> <|user|> Zoe's scores were 65, 73, 55, 80, 81 and 84. What is the average score?<|eot|> <|assistant|> The mean is 73.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Avoid unnecessary detail." }, { "role": "user", "content": "Zoe's scores were 65, 73, 55, 80, 81 and 84. What is the average score?" }, { "role": "assistant", "content": "The mean is 73." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
48
{"gold": "73", "printed": "73", "notation": null}
nlprog_det-setting-0083917
Attendance was 60 out of 100. Express it as a percent. present = 60 total = 100 percent = present / total * 100 # 60.0 print(round(percent, 1)) (stdout: 60.0) Attendance was 60.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
66
{"gold": "60.0", "printed": "60.0", "notation": null}
nlprog_det-setting-0083918
<|start|><|user|> A penalty of $100 a day accrues, capped at $2,500. What is owed after 58 days?<|eot|> <|assistant|> ```python per_day = 100 days = 58 cap = 2500 fine = min(per_day * days, cap) # 2500 print(fine) ``` # out: 2500 $2,500 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A penalty of $100 a day accrues, capped at $2,500. What is owed after 58 days?" }, { "role": "assistant", "content": "```python\nper_day = 100\ndays = 58\ncap = 2500\nfine = min(per_day * days, cap) # 2500\nprint(fine)\n```\n# out: 2500\n\n$2,500 is owed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0083919
Shipping costs $10 plus $2.50 per pound. What does a 36-pound parcel cost to ship? base = 10 per_pound = 2.5 weight = 36 cost = base + per_pound * weight # 100.0 print(f"{cost:.2f}") The script prints 100.00. Shipping costs $100.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "100.00", "printed": "100.00", "notation": null}
nlprog_det-setting-0083920
The rules require 2/3 of 47 members (round up) to be present. How many is that? One way, in code: ```python import math members = 47 quorum = math.ceil(members * 2 / 3) # 32 print(quorum) ``` Out = 32 32 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "32", "printed": "32", "notation": null}
nlprog_det-setting-0083921
<|start|><|user|> A client paid a $5,000 retainer. The firm has billed 14 hours at $250 per hour. How much of the retainer is left?<|eot|> <|assistant|> ```python retainer = 5000 hours = 14 rate = 250 left = retainer - hours * rate print(left) ``` Output: 1500 $1,500 of the retainer is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A client paid a $5,000 retainer. The firm has billed 14 hours at $250 per hour. How much of the retainer is left?" }, { "role": "assistant", "content": "```python\nretainer = 5000\nhours = 14\nrate = 250\nleft = retainer - hours * rate\nprint(left)\n```\nOutput: 150...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0083922
Sales went from 1,200 to 1,380. What is the percent change? Python code: ```python old = 1200 new = 1380 change = (new - old) / old * 100 # 15.0 print(round(change)) ``` Run output: 15 The change is 15%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0083923
Water costs $20 a month plus $4.75 for each 1,000 gallons over 2,000. What is owed for 4,000 gallons? Coded up: ```python base = 20 rate = 4.75 used = 4 free = 2 bill = base + rate * max(0, used - free) # 29.5 print(f"{bill:.2f}") ``` Result: 29.50 The bill is $29.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "29.50", "printed": "29.50", "notation": null}
nlprog_det-setting-0083924
<|start|><|user|> A court charges $5 per request plus $0.10 per page after the first 0 pages. What does a 106-page copy cost?<|eot|> <|assistant|> ```python pages = 106 base = 5 per_page = 0.1 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 15.600000000000001 print(f"{cost:.2f}") ``` stdout: 15.60...
chat
[ { "role": "user", "content": "A court charges $5 per request plus $0.10 per page after the first 0 pages. What does a 106-page copy cost?" }, { "role": "assistant", "content": "```python\npages = 106\nbase = 5\nper_page = 0.1\nfree_pages = 0\ncost = base + max(0, pages - free_pages) * per_page ...
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "15.60", "printed": "15.60", "notation": null}
nlprog_det-setting-0083925
<|start|><|user|> 2 hours of work at $350 an hour: what is the total charge?<|eot|> <|assistant|> ```python hours = 2 rate = 350 bill = hours * rate # 700 print(f"{bill:.2f}") ``` Printed result — 700.00 The bill is $700.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "2 hours of work at $350 an hour: what is the total charge?" }, { "role": "assistant", "content": "```python\nhours = 2\nrate = 350\nbill = hours * rate # 700\nprint(f\"{bill:.2f}\")\n```\nPrinted result — 700.00\n\nThe bill is $700.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "700.00", "printed": "700.00", "notation": null}
nlprog_det-setting-0083926
Pack A has 8 items for $10.19. Pack B has 18 items for $29.72. Which has the lower price per item? Here's the code. ```python pack_a = 10.19 / 8 # 1.27375 pack_b = 29.72 / 18 # 1.651111111111111 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` Out: A Pack A is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0083927
A party has 28 days to respond to a motion served on November 12, 2025, with 3 days added because service was by mail. When is the response due? Programmatically: from datetime import date, timedelta served = date(2025, 11, 12) # datetime.date(2025, 11, 12) response_days = 28 mail_days = 3 due = s...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
168
{"gold": "2025-12-13", "printed": "2025-12-13", "notation": null}
nlprog_det-setting-0083928
<|start|><|user|> A measure needs at least 67% of 243 votes. How many votes is that, rounded up?<|eot|> <|assistant|> import math voters = 243 needed = math.ceil(voters * 67 / 100) # 163 print(needed) Running this gives: 163 At least 163 votes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A measure needs at least 67% of 243 votes. How many votes is that, rounded up?" }, { "role": "assistant", "content": " import math\n voters = 243\n needed = math.ceil(voters * 67 / 100) # 163\n print(needed)\nRunning this gives: 163\n\nAt least 163 vote...
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "163", "printed": "163", "notation": null}
nlprog_det-setting-0083930
A class starts at 8:40 AM and lasts 105 minutes. When does it end? Python code: ```python start = 8 * 60 + 40 end = start + 105 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Interpreter output: 10:25 AM The class finishes at 10:25 AM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "10:25 AM", "printed": "10:25 AM", "notation": null}
nlprog_det-setting-0083931
To read 550 pages in 11 days, how many pages per day are needed? That is 50 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0083932
7 runs at 150 calories each burn how many calories in total? 1050 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
26
{"gold": "1050", "printed": "1050", "notation": null}
nlprog_det-setting-0083933
<|start|><|user|> What is a 20% tip on a $149.69 bill?<|eot|> <|assistant|> ```python bill = 149.69 tip_rate = 20 / 100 # 0.2 tip = bill * tip_rate # 29.938000000000002 print(f"{tip:.2f}") ``` The program outputs 29.94. The tip is $29.94.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is a 20% tip on a $149.69 bill?" }, { "role": "assistant", "content": "```python\nbill = 149.69\ntip_rate = 20 / 100 # 0.2\ntip = bill * tip_rate # 29.938000000000002\nprint(f\"{tip:.2f}\")\n```\nThe program outputs 29.94.\n\nThe tip is $29.94." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "29.94", "printed": "29.94", "notation": null}
nlprog_det-setting-0083934
<|start|><|system|> Keep answers short and correct.<|eot|> <|user|> Starting with 1350 envelopes and using 11 per day, how many remain after 19 days?<|eot|> <|assistant|> ```python stock = 1350 per_day = 11 days = 19 left = stock - per_day * days # 1141 print(left) ``` Result: 1141 1141 envelopes are left.<|eot|> <|e...
chat
[ { "role": "system", "content": "Keep answers short and correct." }, { "role": "user", "content": "Starting with 1350 envelopes and using 11 per day, how many remain after 19 days?" }, { "role": "assistant", "content": "```python\nstock = 1350\nper_day = 11\ndays = 19\nleft = stock - ...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "1141", "printed": "1141", "notation": null}
nlprog_det-setting-0083935
Sales went from 2,000 to 1,500. What is the percent change? The Python version: ```python old = 2000 new = 1500 change = (new - old) / old * 100 # -25.0 print(round(change)) ``` Running it prints -25, as expected. The change is -25%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "-25", "printed": "-25", "notation": null}
nlprog_det-setting-0083936
How many units at $30 each (variable cost $25) cover $6,000 of fixed costs? Python, step by step: ```python import math fixed = 6000 price = 30 variable = 25 units = math.ceil(fixed / (price - variable)) # 1200 print(units) ``` Out — 1200 1200 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0083937
<|start|><|user|> Convert 13.2 km to meters.<|eot|> <|assistant|> ```python km = 13.2 meters = km * 1000 # 13200.0 print(round(meters)) ``` Execution result — 13200 13,200 m.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 13.2 km to meters." }, { "role": "assistant", "content": "```python\nkm = 13.2\nmeters = km * 1000 # 13200.0\nprint(round(meters))\n```\nExecution result — 13200\n\n13,200 m." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "13200", "printed": "13200", "notation": null}
nlprog_det-setting-0083938
Find the mean of these test scores: 82, 74 and 72. Python: ```python scores = [82, 74, 72] average = sum(scores) // len(scores) # 76 print(average) ``` Console output — 76 The average score is 76.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "76", "printed": "76", "notation": null}
nlprog_det-setting-0083939
7 swims at 200 calories each burn how many calories in total? Coded up: ```python per_session = 200 sessions = 7 total = per_session * sessions # 1400 print(total) ``` Run result — 1400 That burns 1400 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "1400", "printed": "1400", "notation": null}
nlprog_det-setting-0083940
What percentage of $10,000 is $900? In Python: ```python budget = 10000 spent = 900 percent = spent / budget * 100 # 9.0 print(round(percent, 1)) ``` The script prints: 9.0 That is 9.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "9.0", "printed": "9.0", "notation": null}
nlprog_det-setting-0083941
A lawyer's fee is 35% of a $60,000 recovery. How large is the fee? Set it up in Python: ```python recovery = 60000 rate = 35 / 100 # 0.35 fee = recovery * rate # 21000.0 print(f"{fee:.2f}") ``` Run output: 21000.00 The lawyer's fee comes to $21,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "21000.00", "printed": "21000.00", "notation": null}
nlprog_det-setting-0083942
A library charges $0.10 per book per day late. What is the fine for 4 books that are 22 days late? Computing it: ```python per_day = 0.1 days_late = 22 books = 4 fine = per_day * days_late * books print(f"{fine:.2f}") ``` When run, it prints 8.80, as expected. The fine is $8.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "8.80", "printed": "8.80", "notation": null}
nlprog_det-setting-0083943
Convert 3 h 24 min (the length of a hearing) to minutes. ```python hours = 3 minutes = 24 total_minutes = hours * 60 + minutes # 204 print(total_minutes) ``` (Printed result: 204) That is 204 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "204", "printed": "204", "notation": null}
nlprog_det-setting-0083944
If a 2-year limitations period starts on February 27, 2023, when does it end? As a program: ```python from datetime import date accrued = date(2023, 2, 27) # datetime.date(2023, 2, 27) years = 2 expires = accrued.replace(year=accrued.year + years) # datetime.date(2025, 2, 27) print(expires.isoformat()) ``` This prin...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "2025-02-27", "printed": "2025-02-27", "notation": null}
nlprog_det-setting-0083945
<|start|><|system|> Tools you may use: [{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type":...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"business_days\", \"description\": \"Count...
nlprog_det
setting
original
null
deterministic
[]
[]
353
{"gold": "22200", "printed": "22200", "notation": null}
nlprog_det-setting-0083946
A $210 dinner bill gets a 18% tip, and 5 people share the cost equally. What is each person's share? Each person pays $49.56.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "49.56", "printed": "49.56", "notation": null}
nlprog_det-setting-0083948
<|start|><|user|> Printing costs 8 cents a page. What does it cost to print 169 copies of a 32-page handout?<|eot|> <|assistant|> The job costs $432.64.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Printing costs 8 cents a page. What does it cost to print 169 copies of a 32-page handout?" }, { "role": "assistant", "content": "The job costs $432.64." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "432.64", "printed": "432.64", "notation": null}