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-0070568
An office budget of $12,000 has expenses of $3,274, $3,484. How much of the budget is left? As a program: ```python budget = 12000 expenses = [3274, 3484] left = budget - sum(expenses) print(left) ``` Executed, it shows 5242. The remaining budget is $5,242.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "5242", "printed": "5242", "notation": null}
nlprog_det-setting-0070569
Revenue is $5,000 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)? A Python solution: ```python revenue = 5000 costs = 4000 profit = revenue - costs margin = profit / revenue * 100 print(round(margin, 1)) ``` This prints: 20.0 Profit is 20.0% of revenue.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "20.0", "printed": "20.0", "notation": null}
nlprog_det-setting-0070570
A 30-day notice period begins on December 24, 2018. On what date does it end? The program: ```python from datetime import date, timedelta start = date(2018, 12, 24) # datetime.date(2018, 12, 24) end = start + timedelta(days=30) # datetime.date(2019, 1, 23) print(end.isoformat()) ``` Running this gives 2019-01-23. T...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "2019-01-23", "printed": "2019-01-23", "notation": null}
nlprog_det-setting-0070571
<|start|><|user|> How many minutes pass from 10:39 AM to 4:32 PM on the same day?<|eot|> <|assistant|> ```python start = 10 * 60 + 39 # 639 end = 16 * 60 + 32 # 992 print(end - start) ``` Out — 353 It is 353 minutes long.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many minutes pass from 10:39 AM to 4:32 PM on the same day?" }, { "role": "assistant", "content": "```python\nstart = 10 * 60 + 39 # 639\nend = 16 * 60 + 32 # 992\nprint(end - start)\n```\nOut — 353\n\nIt is 353 minutes long." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "353", "printed": "353", "notation": null}
nlprog_det-setting-0070572
<|start|><|user|> A printer costs $45. It is 10% off. What is the sale price?<|eot|> <|assistant|> ```python price = 45 discount = 10 / 100 # 0.1 sale_price = price * (1 - discount) # 40.5 print(f"{sale_price:.2f}") ``` Executing it gives 40.50, as expected. The sale price is $40.50.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A printer costs $45. It is 10% off. What is the sale price?" }, { "role": "assistant", "content": "```python\nprice = 45\ndiscount = 10 / 100 # 0.1\nsale_price = price * (1 - discount) # 40.5\nprint(f\"{sale_price:.2f}\")\n```\nExecuting it gives 40.50, as expecte...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "40.50", "printed": "40.50", "notation": null}
nlprog_det-setting-0070573
<|start|><|system|> You are a careful reviewer of figures.<|eot|> <|user|> Convert 3 h 32 min (the length of a hearing) to minutes.<|eot|> <|assistant|> The hearing lasted 212 minutes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a careful reviewer of figures." }, { "role": "user", "content": "Convert 3 h 32 min (the length of a hearing) to minutes." }, { "role": "assistant", "content": "The hearing lasted 212 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "212", "printed": "212", "notation": null}
nlprog_det-setting-0070574
<|start|><|system|> Functions: [{"name": "math_engine", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> An office budget of $5,000 has expens...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"math_engine\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\"]}}...
nlprog_det
setting
original
null
deterministic
[]
[]
250
{"gold": "-5482", "printed": "-5482", "notation": null}
nlprog_det-setting-0070575
<|start|><|system|> You have access to these functions: {"name": "math_engine", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}} {"name": "get_weather", "descrip...
chat
[ { "role": "system", "content": "You have access to these functions:\n{\"name\": \"math_engine\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requi...
nlprog_det
setting
original
null
deterministic
[]
[]
370
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0070576
What does $10,000 grow to in 4 years at 3% annual compounding? In code: ```python principal = 10000 rate = 3 / 100 # 0.03 years = 4 value = principal * (1 + rate) ** years # 11255.0881 print(f"{value:.2f}") ``` # console output: 11255.09 It is worth $11,255.09.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "11255.09", "printed": "11255.09", "notation": null}
nlprog_det-setting-0070578
<|start|><|system|> You help paralegals with routine tasks.<|eot|> <|user|> A library charges $0.15 per book per day late. What is the fine for 4 books that are 7 days late?<|eot|> <|assistant|> ```python per_day = 0.15 days_late = 7 books = 4 fine = per_day * days_late * books print(f"{fine:.2f}") ``` Out — 4.20 The ...
chat
[ { "role": "system", "content": "You help paralegals with routine tasks." }, { "role": "user", "content": "A library charges $0.15 per book per day late. What is the fine for 4 books that are 7 days late?" }, { "role": "assistant", "content": "```python\nper_day = 0.15\ndays_late = 7\...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "4.20", "printed": "4.20", "notation": null}
nlprog_det-setting-0070580
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> Revenue is $16,500 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)?<|eot|> <|assistant|> ```python revenue = 16500 costs = 12500 profit = revenue - costs # 4000 margin = profit / revenue * 100 # 24.242424242424242...
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "role": "user", "content": "Revenue is $16,500 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)?" }, { "role": "assistant", "content": "```python\nrevenue = 16500\ncosts = 12500\...
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "24.2", "printed": "24.2", "notation": null}
nlprog_det-setting-0070581
Diego drove 241 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement? Program: ```python miles = 241 rate = 0.65 reimbursement = miles * rate print(f"{reimbursement:.2f}") ``` Python prints: 156.65 The reimbursement is $156.65.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "156.65", "printed": "156.65", "notation": null}
nlprog_det-setting-0070582
At $31.77 an hour, what does 24 hours of work pay? Script: ```python rate = 31.77 hours = 24 earnings = rate * hours # 762.48 print(f"{earnings:.2f}") ``` The run gives: 762.48 The pay is $762.48.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "762.48", "printed": "762.48", "notation": null}
nlprog_det-setting-0070583
Prorate $1,500 of monthly rent for 25 days of a 31-day month. The computation: rent = 1500 days_in_month = 31 days_occupied = 25 prorated = rent * days_occupied / days_in_month # 1209.6774193548388 print(f"{prorated:.2f}") Printed — 1209.68 The tenant owes $1,209.68.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "1209.68", "printed": "1209.68", "notation": null}
nlprog_det-setting-0070584
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}} {"name": "compute", "description"...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\...
nlprog_det
setting
original
null
deterministic
[]
[]
319
{"gold": "29.50", "printed": "29.50", "notation": null}
nlprog_det-setting-0070586
<|start|><|user|> Convert 2 h 51 min (the length of a workshop) to minutes.<|eot|> <|assistant|> ```python hours = 2 minutes = 51 total_minutes = hours * 60 + minutes # 171 print(total_minutes) ``` Printed result — 171 The workshop lasted 171 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 2 h 51 min (the length of a workshop) to minutes." }, { "role": "assistant", "content": "```python\nhours = 2\nminutes = 51\ntotal_minutes = hours * 60 + minutes # 171\nprint(total_minutes)\n```\nPrinted result — 171\n\nThe workshop lasted 171 minutes." }...
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "171", "printed": "171", "notation": null}
nlprog_det-setting-0070587
<|start|><|user|> With 10% off, what does a $60 backpack cost?<|eot|> <|assistant|> ```python price = 60 discount = 10 / 100 # 0.1 sale_price = price * (1 - discount) # 54.0 print(f"{sale_price:.2f}") ``` Execution prints 54.00, as expected. It costs $54.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 10% off, what does a $60 backpack cost?" }, { "role": "assistant", "content": "```python\nprice = 60\ndiscount = 10 / 100 # 0.1\nsale_price = price * (1 - discount) # 54.0\nprint(f\"{sale_price:.2f}\")\n```\nExecution prints 54.00, as expected.\n\nIt costs $5...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "54.00", "printed": "54.00", "notation": null}
nlprog_det-setting-0070588
A 90-day notice period begins on January 17, 2023. On what date does it end? Python, step by step: ```python from datetime import date, timedelta start = date(2023, 1, 17) # datetime.date(2023, 1, 17) end = start + timedelta(days=90) # datetime.date(2023, 4, 17) print(end.isoformat()) ``` # program output: 2023-04-1...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "2023-04-17", "printed": "2023-04-17", "notation": null}
nlprog_det-setting-0070589
<|start|><|user|> A $96 dinner bill gets a 15% tip, and 4 people share the cost equally. What is each person's share?<|eot|> <|assistant|> ```python bill = 96 tip_rate = 15 / 100 people = 4 each = bill * (1 + tip_rate) / people print(f"{each:.2f}") ``` (stdout: 27.60) The share is $27.60 each.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $96 dinner bill gets a 15% tip, and 4 people share the cost equally. What is each person's share?" }, { "role": "assistant", "content": "```python\nbill = 96\ntip_rate = 15 / 100\npeople = 4\neach = bill * (1 + tip_rate) / people\nprint(f\"{each:.2f}\")\n```\n(std...
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "27.60", "printed": "27.60", "notation": null}
nlprog_det-setting-0070590
A recipe for 4 people uses 200 grams of sugar. How many grams are needed for 8 people? Let the code do the arithmetic: ```python grams = 200 serves = 4 needed_for = 8 scaled = grams * needed_for // serves # 400 print(scaled) ``` The script prints 400. Use 400 g of sugar.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "400", "printed": "400", "notation": null}
nlprog_det-setting-0070591
<|start|><|system|> You help with homework problems.<|eot|> <|user|> A count moves from 2,000 to 1,800. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> ```python old = 2000 new = 1800 change = (new - old) / old * 100 # -10.0 print(round(change)) ``` Running this gives -10. The change...
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "A count moves from 2,000 to 1,800. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": "```python\nold = 2000\nnew = 1800\nchange = (new -...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "-10", "printed": "-10", "notation": null}
nlprog_det-setting-0070592
174 copies of a 20-page packet are printed at $0.10 per page. What is the cost? In code: ```python pages = 20 copies = 174 cost_per_page = 0.1 cost = pages * copies * cost_per_page # 348.0 print(f"{cost:.2f}") ``` Run it and it prints 348.00. Printing costs $348.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "348.00", "printed": "348.00", "notation": null}
nlprog_det-setting-0070593
<|start|><|user|> 143 copies of a 12-page packet are printed at $0.12 per page. What is the cost?<|eot|> <|assistant|> ```python pages = 12 copies = 143 cost_per_page = 0.12 cost = pages * copies * cost_per_page # 205.92 print(f"{cost:.2f}") ``` Out: 205.92 Printing costs $205.92.<|eot|> <|end|>
chat
[ { "role": "user", "content": "143 copies of a 12-page packet are printed at $0.12 per page. What is the cost?" }, { "role": "assistant", "content": "```python\npages = 12\ncopies = 143\ncost_per_page = 0.12\ncost = pages * copies * cost_per_page # 205.92\nprint(f\"{cost:.2f}\")\n```\nOut:\n205....
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "205.92", "printed": "205.92", "notation": null}
nlprog_det-setting-0070594
Each of Maren's bike rides burns 250 calories. How many calories over 3 bike rides? Let the code do the arithmetic: ```python per_session = 250 sessions = 3 total = per_session * sessions # 750 print(total) ``` Running it prints 750. 750 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0070595
<|start|><|system|> Tool definitions: [{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "run_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"ty...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"run_python\", \"description\": \"A Python ...
nlprog_det
setting
original
null
deterministic
[]
[]
284
{"gold": "1002", "printed": "1002", "notation": null}
nlprog_det-setting-0070596
<|start|><|user|> 11 boxes hold 10 desk lamps each. After 16 are handed out, how many are left?<|eot|> <|assistant|> boxes = 11 per_box = 10 given_away = 16 left = boxes * per_box - given_away # 94 print(left) It prints 94, as expected. That leaves 94 desk lamps.<|eot|> <|end|>
chat
[ { "role": "user", "content": "11 boxes hold 10 desk lamps each. After 16 are handed out, how many are left?" }, { "role": "assistant", "content": " boxes = 11\n per_box = 10\n given_away = 16\n left = boxes * per_box - given_away # 94\n print(left)\nIt prints 94, as expected.\n\n...
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "94", "printed": "94", "notation": null}
nlprog_det-setting-0070597
A class starts at 12:45 PM and lasts 75 minutes. When does it end? Python does the arithmetic: start = 12 * 60 + 45 end = start + 75 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") The program outputs: 2:00 PM It ends at 2:00 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "2:00 PM", "printed": "2:00 PM", "notation": null}
nlprog_det-setting-0070598
<|start|><|user|> Filing fees are $25 per document. What do 3 filings cost?<|eot|> <|assistant|> fee = 25 filings = 3 total = fee * filings # 75 print(total) When run, it prints: 75 The total fee is $75.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Filing fees are $25 per document. What do 3 filings cost?" }, { "role": "assistant", "content": " fee = 25\n filings = 3\n total = fee * filings # 75\n print(total)\nWhen run, it prints: 75\n\nThe total fee is $75." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
68
{"gold": "75", "printed": "75", "notation": null}
nlprog_det-setting-0070600
Split $2,045 between Signe and Farah in the ratio 2 to 3. What is Signe's share? As a program: ```python total = 2045 parts_a = 2 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 818 print(share_a) ``` Program output — 818 Signe's share is $818.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "818", "printed": "818", "notation": null}
nlprog_det-setting-0070602
A 36 lb package ships at $5 base plus $1.20/lb. What is the charge? As Python: ```python base = 5 per_pound = 1.2 weight = 36 cost = base + per_pound * weight # 48.199999999999996 print(f"{cost:.2f}") ``` The program prints 48.20. The charge is $48.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "48.20", "printed": "48.20", "notation": null}
nlprog_det-setting-0070603
<|start|><|system|> Tools (call with JSON): [{"name": "math_engine", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> How many units at $40 each (v...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"math_engine\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"c...
nlprog_det
setting
original
null
deterministic
[]
[]
235
{"gold": "500", "printed": "500", "notation": null}
nlprog_det-setting-0070604
A film lasted 1 hours and 32 minutes. How many minutes is that? ```python hours = 1 minutes = 32 total_minutes = hours * 60 + minutes # 92 print(total_minutes) ``` Output of the run — 92 That is 92 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "92", "printed": "92", "notation": null}
nlprog_det-setting-0070605
Sami was born on March 16, 2001. How old is Sami on December 28, 2025? Let the code do the arithmetic: ```python from datetime import date born = date(2001, 3, 16) # datetime.date(2001, 3, 16) on = date(2025, 12, 28) # datetime.date(2025, 12, 28) age = on.year - born.year - ((on.month, on.day) < (born.month, born.da...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0070606
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "math_engine", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|> ...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"math_engine\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python...
nlprog_det
setting
original
null
deterministic
[]
[]
207
{"gold": "41", "printed": "41", "notation": null}
nlprog_det-setting-0070607
At an exchange rate of 0.92 CAD per USD, how many CAD is 556 USD? Python does the arithmetic: ```python amount = 556 rate = 0.92 converted = amount * rate # 511.52000000000004 print(f"{converted:.2f}") ``` Result — 511.52 It converts to 511.52 CAD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "511.52", "printed": "511.52", "notation": null}
nlprog_det-setting-0070608
<|start|><|user|> A party has 28 days to respond to a motion served on July 4, 2025, with 3 days added because service was by mail. When is the response due?<|eot|> <|assistant|> It is due August 4, 2025.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A party has 28 days to respond to a motion served on July 4, 2025, with 3 days added because service was by mail. When is the response due?" }, { "role": "assistant", "content": "It is due August 4, 2025." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
50
{"gold": "2025-08-04", "printed": "2025-08-04", "notation": null}
nlprog_det-setting-0070609
A 220-mile drive at a steady 40 mph takes how many minutes? Let's compute it with Python. ```python distance = 220 speed = 40 minutes = distance / speed * 60 # 330.0 print(round(minutes)) ``` It prints: 330 330 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "330", "printed": "330", "notation": null}
nlprog_det-setting-0070610
Which is cheaper per unit: 8 for $9.89 (A) or 24 for $7.26 (B)? Computation in Python: ```python pack_a = 9.89 / 8 pack_b = 7.26 / 24 cheaper = "A" if pack_a < pack_b else "B" print(cheaper) ``` stdout: B B has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0070611
What average speed covers 200 miles in 4 hours? Let's compute it with Python. ```python distance = 200 hours = 4 speed = distance / hours # 50.0 print(round(speed)) ``` The script prints 50, as expected. It averages 50 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0070612
<|start|><|user|> A court charges $5 per request plus $0.25 per page after the first 0 pages. What does a 49-page copy cost?<|eot|> <|assistant|> pages = 49 base = 5 per_page = 0.25 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page # 17.25 print(f"{cost:.2f}") # run result: 17....
chat
[ { "role": "user", "content": "A court charges $5 per request plus $0.25 per page after the first 0 pages. What does a 49-page copy cost?" }, { "role": "assistant", "content": " pages = 49\n base = 5\n per_page = 0.25\n free_pages = 0\n cost = base + max(0, pages - free_pages) * pe...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "17.25", "printed": "17.25", "notation": null}
nlprog_det-setting-0070613
A 120-day notice period begins on March 19, 2018. On what date does it end? ```python from datetime import date, timedelta start = date(2018, 3, 19) # datetime.date(2018, 3, 19) end = start + timedelta(days=120) # datetime.date(2018, 7, 17) print(end.isoformat()) ``` Run result = 2018-07-17 The period ends on July ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "2018-07-17", "printed": "2018-07-17", "notation": null}
nlprog_det-setting-0070614
<|start|><|user|> Beatriz buys 9 boxes of 24 mugs each and gives away 14 mugs. How many mugs are left?<|eot|> <|assistant|> ```python boxes = 9 per_box = 24 given_away = 14 left = boxes * per_box - given_away # 202 print(left) ``` (Out: 202) That leaves 202 mugs.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Beatriz buys 9 boxes of 24 mugs each and gives away 14 mugs. How many mugs are left?" }, { "role": "assistant", "content": "```python\nboxes = 9\nper_box = 24\ngiven_away = 14\nleft = boxes * per_box - given_away # 202\nprint(left)\n```\n(Out: 202)\n\nThat leaves 2...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "202", "printed": "202", "notation": null}
nlprog_det-setting-0070615
A 36-month warranty starts on February 23, 2018. On what date does it end? Python version: ```python from datetime import date start = date(2018, 2, 23) months = 36 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` # result: ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "2021-02-23", "printed": "2021-02-23", "notation": null}
nlprog_det-setting-0070616
Starting with 702 headsets and using 25 per day, how many remain after 9 days? The computation: ```python stock = 702 per_day = 25 days = 9 left = stock - per_day * days # 477 print(left) ``` The interpreter prints: 477 477 headsets are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "477", "printed": "477", "notation": null}
nlprog_det-setting-0070617
Of a $8,000 budget, $7,600 has been spent. What percent is that? Let's compute it with Python. ```python budget = 8000 spent = 7600 percent = spent / budget * 100 # 95.0 print(round(percent, 1)) ``` Running this gives 95.0. That is 95.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "95.0", "printed": "95.0", "notation": null}
nlprog_det-setting-0070618
<|start|><|user|> Starting with 1953 pens and using 37 per day, how many remain after 5 days?<|eot|> <|assistant|> ```python stock = 1953 per_day = 37 days = 5 left = stock - per_day * days print(left) ``` (Run result: 1768) 1768 pens are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting with 1953 pens and using 37 per day, how many remain after 5 days?" }, { "role": "assistant", "content": "```python\nstock = 1953\nper_day = 37\ndays = 5\nleft = stock - per_day * days\nprint(left)\n```\n(Run result: 1768)\n\n1768 pens are left." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "1768", "printed": "1768", "notation": null}
nlprog_det-setting-0070619
What simple interest does $5,000 earn at 5% a year over 3 years? In code: ```python principal = 5000 rate = 5 / 100 # 0.05 years = 3 interest = principal * rate * years # 750.0 print(f"{interest:.2f}") ``` Run output: 750.00 The interest is $750.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "750.00", "printed": "750.00", "notation": null}
nlprog_det-setting-0070620
A garage charges $5 an hour, never more than $24 a day. How much for 11 hours? A Python solution: ```python rate = 5 hours = 11 daily_max = 24 cost = min(rate * hours, daily_max) # 24 print(cost) ``` It outputs 24. Parking costs $24.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0070621
How many whole days and leftover hours are in 38 hours? That is 1 days and 14 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
25
{"gold": "1 days and 14 hours", "printed": "1 days and 14 hours", "notation": null}
nlprog_det-setting-0070622
Counting the first and last day, how many days are there from August 15, 2022 through August 29, 2022? Script: ```python from datetime import date first = date(2022, 8, 15) last = date(2022, 8, 29) days = (last - first).days + 1 print(days) ``` Executing it gives 15. 15 calendar days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0070623
A garage charges $4 an hour, never more than $20 a day. How much for 2 hours? In code: ```python rate = 4 hours = 2 daily_max = 20 cost = min(rate * hours, daily_max) # 8 print(cost) ``` This prints: 8 Parking costs $8.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0070624
<|start|><|system|> Available functions (JSON Schema): {"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}} {"name": "python", "description": "Runs a short Python snippet and returns what it prints."...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}\n{\"name\": \"python\", \"description\":...
nlprog_det
setting
original
null
deterministic
[]
[]
317
{"gold": "387.10", "printed": "387.10", "notation": null}
nlprog_det-setting-0070625
A $2,500 security deposit has deductions of $75, $200 and $60. How much is refunded? $2,165 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "2165", "printed": "2165", "notation": null}
nlprog_det-setting-0070626
<|start|><|user|> Viktor has 8 documents to file, and each filing costs $405. How much are the filing fees in total?<|eot|> <|assistant|> fee = 405 filings = 8 total = fee * filings # 3240 print(total) Running this gives: 3240 $3,240 in filing fees.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Viktor has 8 documents to file, and each filing costs $405. How much are the filing fees in total?" }, { "role": "assistant", "content": " fee = 405\n filings = 8\n total = fee * filings # 3240\n print(total)\nRunning this gives: 3240\n\n$3,240 in filin...
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "3240", "printed": "3240", "notation": null}
nlprog_det-setting-0070627
Elena has 18 documents to file, and each filing costs $405. How much are the filing fees in total? ```python fee = 405 filings = 18 total = fee * filings # 7290 print(total) ``` Printed — 7290 The filings cost $7,290 in all.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "7290", "printed": "7290", "notation": null}
nlprog_det-setting-0070628
A library charges $0.20 per book per day late. What is the fine for 2 books that are 24 days late? Written as code: ```python per_day = 0.2 days_late = 24 books = 2 fine = per_day * days_late * books # 9.600000000000001 print(f"{fine:.2f}") ``` Python prints 9.60, as expected. The fine is $9.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "9.60", "printed": "9.60", "notation": null}
nlprog_det-setting-0070629
Pack A has 12 items for $12.77. Pack B has 20 items for $11.22. Which has the lower price per item? Programmatically: ```python pack_a = 12.77 / 12 # 1.0641666666666667 pack_b = 11.22 / 20 # 0.561 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` This prints B. B has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0070631
Starting from $5,000, the team spends $2,288, $1,139. What remains? Python code: ```python budget = 5000 expenses = [2288, 1139] left = budget - sum(expenses) # 1573 print(left) ``` The code prints 1573. The remaining budget is $1,573.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "1573", "printed": "1573", "notation": null}
nlprog_det-setting-0070632
Convert 70.5 km to meters. Let's compute it with Python. ```python km = 70.5 meters = km * 1000 # 70500.0 print(round(meters)) ``` The program outputs 70500. 70,500 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "70500", "printed": "70500", "notation": null}
nlprog_det-setting-0070634
4 claimants share a $1,200 settlement equally. What is each share? Set it up in Python: ```python settlement = 1200 parties = 4 share = settlement // parties # 300 print(share) ``` stdout: 300 Each share is $300.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0070636
<|start|><|user|> On which weekday does February 27, 2017 fall?<|eot|> <|assistant|> ```python from datetime import date hearing = date(2017, 2, 27) # datetime.date(2017, 2, 27) print(hearing.strftime("%A")) ``` Output: Monday It is a Monday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "On which weekday does February 27, 2017 fall?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(2017, 2, 27) # datetime.date(2017, 2, 27)\nprint(hearing.strftime(\"%A\"))\n```\nOutput: Monday\n\nIt is a Monday." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "Monday", "printed": "Monday", "notation": null}
nlprog_det-setting-0070637
<|start|><|user|> Buying 6 pens at $15 each, 4 badges at $21 each, 4 badges at $14 each, someone hands over $250. What change comes back?<|eot|> <|assistant|> ```python items = [(6, 15), (4, 21), (4, 14)] total = sum(q * p for q, p in items) # 230 paid = 250 change = paid - total # 20 print(change) ``` Program output...
chat
[ { "role": "user", "content": "Buying 6 pens at $15 each, 4 badges at $21 each, 4 badges at $14 each, someone hands over $250. What change comes back?" }, { "role": "assistant", "content": "```python\nitems = [(6, 15), (4, 21), (4, 14)]\ntotal = sum(q * p for q, p in items) # 230\npaid = 250\nch...
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0070638
<|start|><|user|> The rules require 1/3 of 15 members (round up) to be present. How many is that?<|eot|> <|assistant|> ```python import math members = 15 quorum = math.ceil(members * 1 / 3) # 5 print(quorum) ``` Console output — 5 5 members are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The rules require 1/3 of 15 members (round up) to be present. How many is that?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 15\nquorum = math.ceil(members * 1 / 3) # 5\nprint(quorum)\n```\nConsole output — 5\n\n5 members are needed." ...
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0070639
A 8% increase is applied to $1,800 monthly rent. What is the new amount? The new rent is $1,944.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "1944.00", "printed": "1944.00", "notation": null}
nlprog_det-setting-0070640
<|start|><|user|> What is a 15% tip on a $110.95 bill?<|eot|> <|assistant|> ```python bill = 110.95 tip_rate = 15 / 100 # 0.15 tip = bill * tip_rate # 16.6425 print(f"{tip:.2f}") ``` # printed result: 16.64 Leave $16.64.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is a 15% tip on a $110.95 bill?" }, { "role": "assistant", "content": "```python\nbill = 110.95\ntip_rate = 15 / 100 # 0.15\ntip = bill * tip_rate # 16.6425\nprint(f\"{tip:.2f}\")\n```\n# printed result: 16.64\n\nLeave $16.64." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "16.64", "printed": "16.64", "notation": null}
nlprog_det-setting-0070642
A $48,000 grant pays $3,000 up front and the rest in 12 equal installments. How large is each installment? Here is the program. ```python grant = 48000 up_front = 3000 installments = 12 each = (grant - up_front) / installments # 3750.0 print(f"{each:.2f}") ``` Printed — 3750.00 Each installment is $3,750.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "3750.00", "printed": "3750.00", "notation": null}
nlprog_det-setting-0070644
<|start|><|user|> A service costs $25 a month or $288 a year. How much does the yearly plan save over 12 monthly payments?<|eot|> <|assistant|> ```python monthly = 25 yearly = 288 savings = monthly * 12 - yearly # 12 print(savings) ``` When run, it prints 12. The annual plan saves $12.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A service costs $25 a month or $288 a year. How much does the yearly plan save over 12 monthly payments?" }, { "role": "assistant", "content": "```python\nmonthly = 25\nyearly = 288\nsavings = monthly * 12 - yearly # 12\nprint(savings)\n```\nWhen run, it prints 12....
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0070645
Fixed costs are $1,200. Each unit sells for $20 and costs $12 to make. How many units must be sold to break even? Coded up: ```python import math fixed = 1200 price = 20 variable = 12 units = math.ceil(fixed / (price - variable)) # 150 print(units) ``` The program outputs 150. Break-even is 150 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0070646
<|start|><|user|> A shift runs from 11:12 AM to 5:10 PM. How long is it in minutes?<|eot|> <|assistant|> It is 358 minutes long.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A shift runs from 11:12 AM to 5:10 PM. How long is it in minutes?" }, { "role": "assistant", "content": "It is 358 minutes long." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "358", "printed": "358", "notation": null}
nlprog_det-setting-0070647
What commission does Wen make on $49,204 in sales at 6%? Here is the program. ```python sales = 49204 rate = 6 / 100 # 0.06 commission = sales * rate # 2952.24 print(f"{commission:.2f}") ``` What it prints: 2952.24 The commission is $2,952.24.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "2952.24", "printed": "2952.24", "notation": null}
nlprog_det-setting-0070648
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}} {"name": "convert_units", "descri...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requi...
nlprog_det
setting
original
null
deterministic
[]
[]
445
{"gold": "1976", "printed": "1976", "notation": null}
nlprog_det-setting-0070649
At 40 miles per hour, how many minutes does a 100-mile trip take? A short script: distance = 100 speed = 40 minutes = distance / speed * 60 # 150.0 print(round(minutes)) Running this gives: 150 The trip takes 150 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
71
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0070650
A 8 × 5 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up? As a program: ```python import math length = 8 width = 5 tile = 1 tiles = math.ceil(length * width / (tile * tile)) print(tiles) ``` Output — 40 40 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0070651
Convert -10 °C to Fahrenheit. The program: ```python celsius = -10 fahrenheit = celsius * 9 / 5 + 32 # 14.0 print(round(fahrenheit)) ``` # execution result: 14 It equals 14 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0070652
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> 4 friends split a $150 bill plus a 18% tip evenly. How much does each pay?<|eot|> <|assistant|> ```python bill = 150 tip_rate = 18 / 100 # 0.18 people = 4 each = bill * (1 + tip_rate) / people # 44.25 print(f"{each:.2f}") ``` Result: 44.25 The share i...
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "role": "user", "content": "4 friends split a $150 bill plus a 18% tip evenly. How much does each pay?" }, { "role": "assistant", "content": "```python\nbill = 150\ntip_rate = 18 / 100 # 0.18\npeople = 4\neach = bil...
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "44.25", "printed": "44.25", "notation": null}
nlprog_det-setting-0070653
A settlement of $36,000 is split equally among 5 parties. How much does each party receive? Here's the code. ```python settlement = 36000 parties = 5 share = settlement // parties print(share) ``` It outputs 7200. Each share is $7,200.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "7200", "printed": "7200", "notation": null}
nlprog_det-setting-0070654
An office budget of $20,000 has expenses of $1,356, $2,958. How much of the budget is left? The Python version: ```python budget = 20000 expenses = [1356, 2958] left = budget - sum(expenses) # 15686 print(left) ``` (Run result: 15686) $15,686 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "15686", "printed": "15686", "notation": null}
nlprog_det-setting-0070655
<|start|><|user|> One can of paint covers 300 square feet. How many cans are needed for 936 square feet of wall?<|eot|> <|assistant|> Buy 4 cans.<|eot|> <|end|>
chat
[ { "role": "user", "content": "One can of paint covers 300 square feet. How many cans are needed for 936 square feet of wall?" }, { "role": "assistant", "content": "Buy 4 cans." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0070656
How many weekdays (Monday to Friday) fall after November 2, 2019 up to and including November 14, 2019? The program: ```python from datetime import date, timedelta start = date(2019, 11, 2) end = date(2019, 11, 14) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() < 5: ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
154
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0070657
How many weekdays (Monday to Friday) fall after September 12, 2028 up to and including October 1, 2028? Written as code: from datetime import date, timedelta start = date(2028, 9, 12) end = date(2028, 10, 1) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k))...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0070658
<|start|><|system|> Available functions (JSON Schema): {"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}} {"name": "calc", "description": "Executes a Python program and returns its output.", "parameter...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}\n{\"name\": \"calc\", \"description\": \"Exe...
nlprog_det
setting
original
null
deterministic
[]
[]
336
{"gold": "87", "printed": "87", "notation": null}
nlprog_det-setting-0070660
A recipe for 6 people uses 450 grams of rice. How many grams are needed for 10 people? Script: ```python grams = 450 serves = 6 needed_for = 10 scaled = grams * needed_for // serves # 750 print(scaled) ``` # printed: 750 Use 750 g of rice.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "750", "printed": "750", "notation": null}
nlprog_det-setting-0070661
At $0.65 per mile, what is the reimbursement for 351 miles? Computing it: ```python miles = 351 rate = 0.65 reimbursement = miles * rate # 228.15 print(f"{reimbursement:.2f}") ``` Printed — 228.15 The reimbursement is $228.15.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "228.15", "printed": "228.15", "notation": null}
nlprog_det-setting-0070662
After a 30% fee is taken from a $96,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share? We write it as a program: ```python award = 96000 fee = award * 30 / 100 remaining = award - fee per_client = remaining / 2 print(f"{per_client:.2f}") ``` Executing it gives 33600.00, as expected...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "33600.00", "printed": "33600.00", "notation": null}
nlprog_det-setting-0070663
A party has 21 days to respond to a motion served on October 15, 2018, with 3 days added because service was by mail. When is the response due? It is due November 8, 2018.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "2018-11-08", "printed": "2018-11-08", "notation": null}
nlprog_det-setting-0070664
How many of 23 votes make 75% (round up)? One way, in code: ```python import math voters = 23 needed = math.ceil(voters * 75 / 100) # 18 print(needed) ``` The code prints: 18 At least 18 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0070665
Parking is $2 per hour with a daily maximum of $18. What do 4 hours cost? Let's compute it with Python. ```python rate = 2 hours = 4 daily_max = 18 cost = min(rate * hours, daily_max) # 8 print(cost) ``` The program outputs: 8 Parking costs $8.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0070666
<|start|><|user|> 295 volunteers are split into 3 equal teams. How many are on each team, and how many are left over?<|eot|> <|assistant|> ```python total = 295 groups = 3 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Printed — 98 each, 1 left over 98 each, 1 left o...
chat
[ { "role": "user", "content": "295 volunteers are split into 3 equal teams. How many are on each team, and how many are left over?" }, { "role": "assistant", "content": "```python\ntotal = 295\ngroups = 3\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remainder} left o...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "98 each, 1 left over", "printed": "98 each, 1 left over", "notation": null}
nlprog_det-setting-0070667
<|start|><|user|> Under a 25% contingency agreement, what fee is owed on a $90,000 award?<|eot|> <|assistant|> The fee is $22,500.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Under a 25% contingency agreement, what fee is owed on a $90,000 award?" }, { "role": "assistant", "content": "The fee is $22,500.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "22500.00", "printed": "22500.00", "notation": null}
nlprog_det-setting-0070668
<|start|><|user|> A $1,200 loan carries 10% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|> <|assistant|> principal = 1200 annual_rate = 10 / 100 # 0.1 months = 36 interest = principal * annual_rate * months / 12 # 360.0 ...
chat
[ { "role": "user", "content": "A $1,200 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": " principal = 1200\n annual_rate = 10 / 100 # 0.1\n months = 36\n i...
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "43.33", "printed": "43.33", "notation": null}
nlprog_det-setting-0070669
Under a 40% contingency agreement, what fee is owed on a $40,000 award? A short script: ```python recovery = 40000 rate = 40 / 100 # 0.4 fee = recovery * rate # 16000.0 print(f"{fee:.2f}") ``` Output = 16000.00 The fee is $16,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "16000.00", "printed": "16000.00", "notation": null}
nlprog_det-setting-0070670
<|start|><|user|> A 14-day notice period begins on November 4, 2026. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2026, 11, 4) # datetime.date(2026, 11, 4) end = start + timedelta(days=14) # datetime.date(2026, 11, 18) print(end.isoformat()) ``` # result: ...
chat
[ { "role": "user", "content": "A 14-day notice period begins on November 4, 2026. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2026, 11, 4) # datetime.date(2026, 11, 4)\nend = start + timedelta(days=14) # datetime...
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "2026-11-18", "printed": "2026-11-18", "notation": null}
nlprog_det-setting-0070671
Farah and Jamal share $3,592 in the ratio 3:5. How much does Farah get? Coded up: total = 3592 parts_a = 3 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 1347 print(share_a) Program output — 1347 Farah gets $1,347.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "1347", "printed": "1347", "notation": null}
nlprog_det-setting-0070672
Convert 5 °C to Fahrenheit. Set it up in Python: ```python celsius = 5 fahrenheit = celsius * 9 / 5 + 32 # 41.0 print(round(fahrenheit)) ``` Executed, it shows 41. That is 41 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "41", "printed": "41", "notation": null}
nlprog_det-setting-0070673
<|start|><|user|> A workshop lasted 2 hours and 41 minutes. How many minutes is that?<|eot|> <|assistant|> ```python hours = 2 minutes = 41 total_minutes = hours * 60 + minutes # 161 print(total_minutes) ``` Output of the run: 161 That is 161 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A workshop lasted 2 hours and 41 minutes. How many minutes is that?" }, { "role": "assistant", "content": "```python\nhours = 2\nminutes = 41\ntotal_minutes = hours * 60 + minutes # 161\nprint(total_minutes)\n```\nOutput of the run: 161\n\nThat is 161 minutes." }...
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "161", "printed": "161", "notation": null}
nlprog_det-setting-0070675
<|start|><|system|> Functions: [{"name": "calculator", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> Starting with 1231 rulers and u...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"calculator\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"progra...
nlprog_det
setting
original
null
deterministic
[]
[]
205
{"gold": "993", "printed": "993", "notation": null}
nlprog_det-setting-0070678
<|start|><|user|> A claim accrued on October 14, 2015. The limitations period is 2 years. On what date does it expire?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2015, 10, 14) # datetime.date(2015, 10, 14) years = 2 expires = accrued.replace(year=accrued.year + years) # datetime.date(2017...
chat
[ { "role": "user", "content": "A claim accrued on October 14, 2015. The limitations period is 2 years. On what date does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2015, 10, 14) # datetime.date(2015, 10, 14)\nyears = 2\nexpires = accrue...
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "2017-10-14", "printed": "2017-10-14", "notation": null}
nlprog_det-setting-0070679
A $96 dinner bill gets a 15% tip, and 4 people share the cost equally. What is each person's share? The computation: ```python bill = 96 tip_rate = 15 / 100 # 0.15 people = 4 each = bill * (1 + tip_rate) / people # 27.599999999999998 print(f"{each:.2f}") ``` When run, it prints 27.60, as expected. The share is $27....
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "27.60", "printed": "27.60", "notation": null}
nlprog_det-setting-0070680
Pack A has 8 items for $9.55. Pack B has 15 items for $11.73. Which has the lower price per item? Here's the code. ```python pack_a = 9.55 / 8 # 1.19375 pack_b = 11.73 / 15 # 0.782 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` # execution result: B B has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0070681
<|start|><|user|> Parking is $4 per hour with a daily maximum of $18. What do 10 hours cost?<|eot|> <|assistant|> ```python rate = 4 hours = 10 daily_max = 18 cost = min(rate * hours, daily_max) # 18 print(cost) ``` stdout: 18 Parking costs $18.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Parking is $4 per hour with a daily maximum of $18. What do 10 hours cost?" }, { "role": "assistant", "content": "```python\nrate = 4\nhours = 10\ndaily_max = 18\ncost = min(rate * hours, daily_max) # 18\nprint(cost)\n```\nstdout: 18\n\nParking costs $18." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "18", "printed": "18", "notation": null}