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-0068421
With $8,000 in costs and $10,000 in revenue, what percent of revenue is profit? Round to one decimal. A few lines of Python do it: ```python revenue = 10000 costs = 8000 profit = revenue - costs # 2000 margin = profit / revenue * 100 # 20.0 print(round(margin, 1)) ``` Execution prints: 20.0 Profit is 20.0% of reven...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "20.0", "printed": "20.0", "notation": null}
nlprog_det-setting-0068422
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> 4 books come back 9 days late, at $0.10 a day each. What is the fine?<|eot|> <|assistant|> ```python per_day = 0.1 days_late = 9 books = 4 fine = per_day * days_late * books print(f"{fine:.2f}") ``` The program prints: 3.60 $3.60 is owed.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "4 books come back 9 days late, at $0.10 a day each. What is the fine?" }, { "role": "assistant", "content": "```python\nper_day = 0.1\ndays_late = 9\nbooks = 4\nfine = per_day * days_late *...
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "3.60", "printed": "3.60", "notation": null}
nlprog_det-setting-0068423
<|start|><|system|> You help with homework problems.<|eot|> <|user|> A customer buys 2 batteries at $11 each, 2 tape rolls at $12 each, 3 markers at $5 each, 2 notebooks at $2 each and pays with $100. How much change is due?<|eot|> <|assistant|> The change is $35.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "A customer buys 2 batteries at $11 each, 2 tape rolls at $12 each, 3 markers at $5 each, 2 notebooks at $2 each and pays with $100. How much change is due?" }, { "role": "assistant", "c...
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "35", "printed": "35", "notation": null}
nlprog_det-setting-0068424
At $17.44 an hour, what does 30 hours of work pay? rate = 17.44 hours = 30 earnings = rate * hours # 523.2 print(f"{earnings:.2f}") Out: 523.20 The pay is $523.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "523.20", "printed": "523.20", "notation": null}
nlprog_det-setting-0068425
A 36-month warranty starts on November 20, 2021. On what date does it end? A few lines of Python do it: ```python from datetime import date start = date(2021, 11, 20) months = 36 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "2024-11-20", "printed": "2024-11-20", "notation": null}
nlprog_det-setting-0068426
<|start|><|user|> A board has 44 members. A majority is more than half. How many votes make a majority?<|eot|> <|assistant|> ```python members = 44 majority = members // 2 + 1 # 23 print(majority) ``` Out — 23 That is 23 members.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A board has 44 members. A majority is more than half. How many votes make a majority?" }, { "role": "assistant", "content": "```python\nmembers = 44\nmajority = members // 2 + 1 # 23\nprint(majority)\n```\nOut — 23\n\nThat is 23 members." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0068427
From a $2,500 retainer, 7 hours at $150/hour have been drawn. What remains? Script: ```python retainer = 2500 hours = 7 rate = 150 left = retainer - hours * rate # 1450 print(left) ``` # console output: 1450 The remaining balance is $1,450.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "1450", "printed": "1450", "notation": null}
nlprog_det-setting-0068428
Notice was given on May 27, 2025. The notice period is 30 days. When does it run out? Python: ```python from datetime import date, timedelta start = date(2025, 5, 27) # datetime.date(2025, 5, 27) end = start + timedelta(days=30) # datetime.date(2025, 6, 26) print(end.isoformat()) ``` # result: 2025-06-26 That date ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "2025-06-26", "printed": "2025-06-26", "notation": null}
nlprog_det-setting-0068429
<|start|><|user|> A meal costs $57.73. How much is a 22% tip?<|eot|> <|assistant|> ```python bill = 57.73 tip_rate = 22 / 100 # 0.22 tip = bill * tip_rate # 12.7006 print(f"{tip:.2f}") ``` (Printed result: 12.70) Leave $12.70.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A meal costs $57.73. How much is a 22% tip?" }, { "role": "assistant", "content": "```python\nbill = 57.73\ntip_rate = 22 / 100 # 0.22\ntip = bill * tip_rate # 12.7006\nprint(f\"{tip:.2f}\")\n```\n(Printed result: 12.70)\n\nLeave $12.70." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "12.70", "printed": "12.70", "notation": null}
nlprog_det-setting-0068430
<|start|><|user|> Someone works 16 hours at $31.92 per hour. What are the earnings?<|eot|> <|assistant|> rate = 31.92 hours = 16 earnings = rate * hours # 510.72 print(f"{earnings:.2f}") Execution prints: 510.72 The pay is $510.72.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Someone works 16 hours at $31.92 per hour. What are the earnings?" }, { "role": "assistant", "content": " rate = 31.92\n hours = 16\n earnings = rate * hours # 510.72\n print(f\"{earnings:.2f}\")\nExecution prints: 510.72\n\nThe pay is $510.72." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "510.72", "printed": "510.72", "notation": null}
nlprog_det-setting-0068431
If a 75-minute shift begins at 12:20 PM, what time does it finish? A Python solution: start = 12 * 60 + 20 end = start + 75 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") Executing it gives: 1:35 PM The shift finishes at 1:35 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "1:35 PM", "printed": "1:35 PM", "notation": null}
nlprog_det-setting-0068432
<|start|><|user|> How many of 288 votes make 75% (round up)?<|eot|> <|assistant|> At least 216 votes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 288 votes make 75% (round up)?" }, { "role": "assistant", "content": "At least 216 votes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "216", "printed": "216", "notation": null}
nlprog_det-setting-0068433
Omar has 2 documents to file, and each filing costs $125. How much are the filing fees in total? ```python fee = 125 filings = 2 total = fee * filings # 250 print(total) ``` Python prints 250. $250 in filing fees.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "250", "printed": "250", "notation": null}
nlprog_det-setting-0068434
27 water bottles cost $15 apiece. With 6% tax added, what is the total? We write it as a program: ```python quantity = 27 unit_price = 15 subtotal = quantity * unit_price # 405 total = subtotal * (1 + 6 / 100) # 429.3 print(f"{total:.2f}") ``` It prints: 429.30 The invoice total is $429.30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "429.30", "printed": "429.30", "notation": null}
nlprog_det-setting-0068435
<|start|><|user|> The meal allowance is $69 per day. What is it for 8 days?<|eot|> <|assistant|> ```python days = 8 meal_rate = 69 total = days * meal_rate # 552 print(total) ``` Output of the run: 552 That comes to $552.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The meal allowance is $69 per day. What is it for 8 days?" }, { "role": "assistant", "content": "```python\ndays = 8\nmeal_rate = 69\ntotal = days * meal_rate # 552\nprint(total)\n```\nOutput of the run: 552\n\nThat comes to $552." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "552", "printed": "552", "notation": null}
nlprog_det-setting-0068436
<|start|><|user|> A 18-month warranty starts on September 16, 2020. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date start = date(2020, 9, 16) months = 18 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isof...
chat
[ { "role": "user", "content": "A 18-month warranty starts on September 16, 2020. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2020, 9, 16)\nmonths = 18\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(sta...
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "2022-03-16", "printed": "2022-03-16", "notation": null}
nlprog_det-setting-0068437
Sami buys 6 boxes of 25 pens each and gives away 1 pens. How many pens are left? Written as code: ```python boxes = 6 per_box = 25 given_away = 1 left = boxes * per_box - given_away # 149 print(left) ``` Run output — 149 That leaves 149 pens.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "149", "printed": "149", "notation": null}
nlprog_det-setting-0068438
An attorney bills 7 hours at $180 per hour. What is the bill? The bill is $1,260.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "1260.00", "printed": "1260.00", "notation": null}
nlprog_det-setting-0068439
<|start|><|system|> Give the answer first.<|eot|> <|user|> 3 books come back 4 days late, at $0.15 a day each. What is the fine?<|eot|> <|assistant|> ```python per_day = 0.15 days_late = 4 books = 3 fine = per_day * days_late * books # 1.7999999999999998 print(f"{fine:.2f}") ``` Run it and it prints: 1.80 $1.80 is ow...
chat
[ { "role": "system", "content": "Give the answer first." }, { "role": "user", "content": "3 books come back 4 days late, at $0.15 a day each. What is the fine?" }, { "role": "assistant", "content": "```python\nper_day = 0.15\ndays_late = 4\nbooks = 3\nfine = per_day * days_late * book...
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "1.80", "printed": "1.80", "notation": null}
nlprog_det-setting-0068440
Papers were served by mail on February 9, 2020. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date? Let's compute it with Python. ```python from datetime import date, timedelta served = date(2020, 2, 9) # datetime.date(2020, 2, 9) response_days = 21 mail_days = 3 due = served...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
188
{"gold": "2020-03-04", "printed": "2020-03-04", "notation": null}
nlprog_det-setting-0068441
<|start|><|system|> You can call tools. Available tools: {"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}} {"name": "run_python", "description": "Use for arithmetic and date math; returns stdout of...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}\n{\"name\": \"run_python\", \"descripti...
nlprog_det
setting
original
null
deterministic
[]
[]
319
{"gold": "2625.00", "printed": "2625.00", "notation": null}
nlprog_det-setting-0068442
A clerk's office charges $405 for each filing. Cyrus submits 11 filings. What is the total fee? Script: ```python fee = 405 filings = 11 total = fee * filings # 4455 print(total) ``` Execution prints 4455. $4,455 in filing fees.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "4455", "printed": "4455", "notation": null}
nlprog_det-setting-0068443
<|start|><|user|> With 40% off, what does a $180 filing cabinet cost?<|eot|> <|assistant|> price = 180 discount = 40 / 100 # 0.4 sale_price = price * (1 - discount) # 108.0 print(f"{sale_price:.2f}") Run it and it prints 108.00. The sale price is $108.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 40% off, what does a $180 filing cabinet cost?" }, { "role": "assistant", "content": " price = 180\n discount = 40 / 100 # 0.4\n sale_price = price * (1 - discount) # 108.0\n print(f\"{sale_price:.2f}\")\nRun it and it prints 108.00.\n\nThe sale p...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "108.00", "printed": "108.00", "notation": null}
nlprog_det-setting-0068444
<|start|><|system|> Double-check numbers before answering.<|eot|> <|user|> How many whole days and leftover hours are in 76 hours?<|eot|> <|assistant|> ```python hours = 76 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Run it and it prints 3 days and 4 hours. That is 3 days and 4 hours.<|eo...
chat
[ { "role": "system", "content": "Double-check numbers before answering." }, { "role": "user", "content": "How many whole days and leftover hours are in 76 hours?" }, { "role": "assistant", "content": "```python\nhours = 76\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {res...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "3 days and 4 hours", "printed": "3 days and 4 hours", "notation": null}
nlprog_det-setting-0068445
<|start|><|system|> Tools you may use: [{"name": "interpreter", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> Someone born Mar...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"interpreter\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir...
nlprog_det
setting
original
null
deterministic
[]
[]
247
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0068446
A customer buys 1 paper reams at $3 each, 5 headsets at $9 each and pays with $50. How much change is due? Python does the arithmetic: items = [(1, 3), (5, 9)] total = sum(q * p for q, p in items) # 48 paid = 50 change = paid - total # 2 print(change) The printout reads 2. The change is $2.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0068447
<|start|><|system|> Available functions (JSON Schema): {"name": "interpreter", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}} {"name": "translate", "description": "T...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n{\"name\": \"interpreter\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\...
nlprog_det
setting
original
null
deterministic
[]
[]
333
{"gold": "28.00", "printed": "28.00", "notation": null}
nlprog_det-setting-0068448
<|start|><|user|> Express 137 hours in days and hours.<|eot|> <|assistant|> ```python hours = 137 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Printed = 5 days and 17 hours 137 hours is 5 days and 17 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Express 137 hours in days and hours." }, { "role": "assistant", "content": "```python\nhours = 137\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nPrinted = 5 days and 17 hours\n\n137 hours is 5 days and 17 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "5 days and 17 hours", "printed": "5 days and 17 hours", "notation": null}
nlprog_det-setting-0068449
With 20% off, what does a $250 jacket cost? Here's the code. ```python price = 250 discount = 20 / 100 # 0.2 sale_price = price * (1 - discount) # 200.0 print(f"{sale_price:.2f}") ``` Program output: 200.00 The sale price is $200.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "200.00", "printed": "200.00", "notation": null}
nlprog_det-setting-0068451
Fixed costs are $9,000. Each unit sells for $20 and costs $10 to make. How many units must be sold to break even? We write it as a program: ```python import math fixed = 9000 price = 20 variable = 10 units = math.ceil(fixed / (price - variable)) # 900 print(units) ``` # program output: 900 900 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0068452
<|start|><|system|> You may call the tools below. [{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "math_engine", "description": "Evaluates Python and returns the p...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"name\": \"math_engin...
nlprog_det
setting
original
null
deterministic
[]
[]
301
{"gold": "5370.84", "printed": "5370.84", "notation": null}
nlprog_det-setting-0068453
<|start|><|system|> Functions: [{"name": "python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> Idris buys 6 boxes of 25 folders each and give...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"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
[]
[]
222
{"gold": "136", "printed": "136", "notation": null}
nlprog_det-setting-0068454
<|start|><|user|> Convert 3 h 23 min (the length of a hearing) to minutes.<|eot|> <|assistant|> hours = 3 minutes = 23 total_minutes = hours * 60 + minutes # 203 print(total_minutes) Output of the run — 203 The hearing lasted 203 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 3 h 23 min (the length of a hearing) to minutes." }, { "role": "assistant", "content": " hours = 3\n minutes = 23\n total_minutes = hours * 60 + minutes # 203\n print(total_minutes)\nOutput of the run — 203\n\nThe hearing lasted 203 minutes." ...
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "203", "printed": "203", "notation": null}
nlprog_det-setting-0068455
<|start|><|user|> The paralegal logged 6.5 hours at a rate of $150. How much is billed?<|eot|> <|assistant|> hours = 6.5 rate = 150 bill = hours * rate # 975.0 print(f"{bill:.2f}") What it prints — 975.00 That comes to $975.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The paralegal logged 6.5 hours at a rate of $150. How much is billed?" }, { "role": "assistant", "content": " hours = 6.5\n rate = 150\n bill = hours * rate # 975.0\n print(f\"{bill:.2f}\")\nWhat it prints — 975.00\n\nThat comes to $975.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "975.00", "printed": "975.00", "notation": null}
nlprog_det-setting-0068456
<|start|><|system|> Tools (call with JSON): [{"name": "compute", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "lookup_statute", "descripti...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"compute\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required...
nlprog_det
setting
original
null
deterministic
[]
[]
321
{"gold": "19867", "printed": "19867", "notation": null}
nlprog_det-setting-0068457
<|start|><|user|> Of a $2,000 budget, $600 has been spent. What percent is that?<|eot|> <|assistant|> ```python budget = 2000 spent = 600 percent = spent / budget * 100 # 30.0 print(round(percent, 1)) ``` When run, it prints 30.0, as expected. 30.0% has been spent.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Of a $2,000 budget, $600 has been spent. What percent is that?" }, { "role": "assistant", "content": "```python\nbudget = 2000\nspent = 600\npercent = spent / budget * 100 # 30.0\nprint(round(percent, 1))\n```\nWhen run, it prints 30.0, as expected.\n\n30.0% has be...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "30.0", "printed": "30.0", "notation": null}
nlprog_det-setting-0068458
Convert 54.1 km to meters. Python version: ```python km = 54.1 meters = km * 1000 # 54100.0 print(round(meters)) ``` This prints 54100. 54,100 m.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "54100", "printed": "54100", "notation": null}
nlprog_det-setting-0068459
Meals are $74 per day and lodging $140 per night. What is the allowance for 5 days and 4 nights? Let's compute it with Python. ```python days = 5 meal_rate = 74 lodging_rate = 140 nights = days - 1 # 4 total = days * meal_rate + nights * lodging_rate # 930 print(total) ``` The code prints: 930 That comes to $930.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "930", "printed": "930", "notation": null}
nlprog_det-setting-0068460
A client paid a $2,500 retainer. The firm has billed 4 hours at $275 per hour. How much of the retainer is left? Computation in Python: ```python retainer = 2500 hours = 4 rate = 275 left = retainer - hours * rate print(left) ``` The script prints 1400, as expected. $1,400 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "1400", "printed": "1400", "notation": null}
nlprog_det-setting-0068461
The paralegal logged 1.5 hours at a rate of $350. How much is billed? Python version: ```python hours = 1.5 rate = 350 bill = hours * rate # 525.0 print(f"{bill:.2f}") ``` This prints: 525.00 The bill is $525.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "525.00", "printed": "525.00", "notation": null}
nlprog_det-setting-0068462
20 volunteers are split into 8 equal teams. How many are on each team, and how many are left over? Let the code do the arithmetic: total = 20 groups = 8 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") On running, it outputs: 2 each, 4 left over The answer...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "2 each, 4 left over", "printed": "2 each, 4 left over", "notation": null}
nlprog_det-setting-0068463
With 25% off, what does a $90 chair cost? Python version: ```python price = 90 discount = 25 / 100 # 0.25 sale_price = price * (1 - discount) # 67.5 print(f"{sale_price:.2f}") ``` Result = 67.50 It costs $67.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "67.50", "printed": "67.50", "notation": null}
nlprog_det-setting-0068465
<|start|><|user|> A $1,000 security deposit has deductions of $150 and $75. How much is refunded?<|eot|> <|assistant|> deposit = 1000 deductions = [150, 75] refund = deposit - sum(deductions) # 775 print(refund) Execution prints: 775 $775 is returned.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $1,000 security deposit has deductions of $150 and $75. How much is refunded?" }, { "role": "assistant", "content": " deposit = 1000\n deductions = [150, 75]\n refund = deposit - sum(deductions) # 775\n print(refund)\nExecution prints: 775\n\n$775 is ...
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "775", "printed": "775", "notation": null}
nlprog_det-setting-0068466
<|start|><|user|> How many of 30 members form a majority (more than half)?<|eot|> <|assistant|> That is 16 members.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 30 members form a majority (more than half)?" }, { "role": "assistant", "content": "That is 16 members." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0068467
From a $7,500 retainer, 10 hours at $200/hour have been drawn. What remains? A short script: ```python retainer = 7500 hours = 10 rate = 200 left = retainer - hours * rate # 5500 print(left) ``` # result: 5500 $5,500 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "5500", "printed": "5500", "notation": null}
nlprog_det-setting-0068468
<|start|><|user|> One can of paint covers 250 square feet. How many cans are needed for 878 square feet of wall?<|eot|> <|assistant|> ```python import math area = 878 coverage = 250 cans = math.ceil(area / coverage) # 4 print(cans) ``` Output = 4 Buy 4 cans.<|eot|> <|end|>
chat
[ { "role": "user", "content": "One can of paint covers 250 square feet. How many cans are needed for 878 square feet of wall?" }, { "role": "assistant", "content": "```python\nimport math\narea = 878\ncoverage = 250\ncans = math.ceil(area / coverage) # 4\nprint(cans)\n```\nOutput = 4\n\nBuy 4 ca...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0068469
Xavier buys 6 boxes of 12 binders each and gives away 13 binders. How many binders are left? The Python version: ```python boxes = 6 per_box = 12 given_away = 13 left = boxes * per_box - given_away # 59 print(left) ``` Python prints: 59 That leaves 59 binders.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "59", "printed": "59", "notation": null}
nlprog_det-setting-0068470
A claim accrued on August 10, 2012. The limitations period is 5 years. On what date does it expire? Computation in Python: ```python from datetime import date accrued = date(2012, 8, 10) # datetime.date(2012, 8, 10) years = 5 expires = accrued.replace(year=accrued.year + years) # datetime.date(2017, 8, 10) print(exp...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "2017-08-10", "printed": "2017-08-10", "notation": null}
nlprog_det-setting-0068471
<|start|><|user|> To read 590 pages in 10 days, how many pages per day are needed?<|eot|> <|assistant|> ```python pages = 590 days = 10 per_day = pages // days # 59 print(per_day) ``` The code prints: 59 That is 59 pages per day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "To read 590 pages in 10 days, how many pages per day are needed?" }, { "role": "assistant", "content": "```python\npages = 590\ndays = 10\nper_day = pages // days # 59\nprint(per_day)\n```\nThe code prints: 59\n\nThat is 59 pages per day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "59", "printed": "59", "notation": null}
nlprog_det-setting-0068472
<|start|><|user|> Sami has 2 documents to file, and each filing costs $405. How much are the filing fees in total?<|eot|> <|assistant|> ```python fee = 405 filings = 2 total = fee * filings # 810 print(total) ``` The run gives 810. $810 in filing fees.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Sami has 2 documents to file, and each filing costs $405. How much are the filing fees in total?" }, { "role": "assistant", "content": "```python\nfee = 405\nfilings = 2\ntotal = fee * filings # 810\nprint(total)\n```\nThe run gives 810.\n\n$810 in filing fees." ...
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "810", "printed": "810", "notation": null}
nlprog_det-setting-0068473
Sara was born on January 17, 1956. How old is Sara on March 15, 2029? Here's the code. from datetime import date born = date(1956, 1, 17) # datetime.date(1956, 1, 17) on = date(2029, 3, 15) # datetime.date(2029, 3, 15) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 73 ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "73", "printed": "73", "notation": null}
nlprog_det-setting-0068474
<|start|><|system|> Avoid unnecessary detail.<|eot|> <|user|> Tobias has 11 documents to file, and each filing costs $125. How much are the filing fees in total?<|eot|> <|assistant|> ```python fee = 125 filings = 11 total = fee * filings # 1375 print(total) ``` Printed — 1375 $1,375 in filing fees.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Avoid unnecessary detail." }, { "role": "user", "content": "Tobias has 11 documents to file, and each filing costs $125. How much are the filing fees in total?" }, { "role": "assistant", "content": "```python\nfee = 125\nfilings = 11\ntotal = fee * fil...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "1375", "printed": "1375", "notation": null}
nlprog_det-setting-0068475
<|start|><|user|> Of a $4,000 budget, $2,700 has been spent. What percent is that?<|eot|> <|assistant|> ```python budget = 4000 spent = 2700 percent = spent / budget * 100 # 67.5 print(round(percent, 1)) ``` Executing it gives: 67.5 That is 67.5% of the budget.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Of a $4,000 budget, $2,700 has been spent. What percent is that?" }, { "role": "assistant", "content": "```python\nbudget = 4000\nspent = 2700\npercent = spent / budget * 100 # 67.5\nprint(round(percent, 1))\n```\nExecuting it gives: 67.5\n\nThat is 67.5% of the bu...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "67.5", "printed": "67.5", "notation": null}
nlprog_det-setting-0068476
<|start|><|user|> If a 3-year limitations period starts on August 17, 2012, when does it end?<|eot|> <|assistant|> ```python from datetime import date accrued = date(2012, 8, 17) # datetime.date(2012, 8, 17) years = 3 expires = accrued.replace(year=accrued.year + years) # datetime.date(2015, 8, 17) print(expires.isof...
chat
[ { "role": "user", "content": "If a 3-year limitations period starts on August 17, 2012, when does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\naccrued = date(2012, 8, 17) # datetime.date(2012, 8, 17)\nyears = 3\nexpires = accrued.replace(year=accrued.year...
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "2015-08-17", "printed": "2015-08-17", "notation": null}
nlprog_det-setting-0068477
To read 246 pages in 6 days, how many pages per day are needed? Program: ```python pages = 246 days = 6 per_day = pages // days # 41 print(per_day) ``` The script prints 41, as expected. That is 41 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "41", "printed": "41", "notation": null}
nlprog_det-setting-0068478
<|start|><|user|> A lawyer's fee is 25% of a $90,000 recovery. How large is the fee?<|eot|> <|assistant|> recovery = 90000 rate = 25 / 100 # 0.25 fee = recovery * rate # 22500.0 print(f"{fee:.2f}") # printed: 22500.00 The fee is $22,500.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lawyer's fee is 25% of a $90,000 recovery. How large is the fee?" }, { "role": "assistant", "content": " recovery = 90000\n rate = 25 / 100 # 0.25\n fee = recovery * rate # 22500.0\n print(f\"{fee:.2f}\")\n# printed: 22500.00\n\nThe fee is $22,500.00...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "22500.00", "printed": "22500.00", "notation": null}
nlprog_det-setting-0068479
A $12,000 grant pays $2,000 up front and the rest in 4 equal installments. How large is each installment? In code: ```python grant = 12000 up_front = 2000 installments = 4 each = (grant - up_front) / installments # 2500.0 print(f"{each:.2f}") ``` When run, it prints: 2500.00 Each installment is $2,500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "2500.00", "printed": "2500.00", "notation": null}
nlprog_det-setting-0068480
<|start|><|system|> Tools (call with JSON): [{"name": "python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> At an exchange rate of 1....
chat
[ { "role": "system", "content": "Tools (call with JSON):\n[{\"name\": \"python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\...
nlprog_det
setting
original
null
deterministic
[]
[]
231
{"gold": "2804.48", "printed": "2804.48", "notation": null}
nlprog_det-setting-0068481
A hearing lasted 2 hours and 55 minutes. How many minutes is that? Computation in Python: ```python hours = 2 minutes = 55 total_minutes = hours * 60 + minutes # 175 print(total_minutes) ``` Run output: 175 That is 175 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "175", "printed": "175", "notation": null}
nlprog_det-setting-0068482
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> How many units at $20 each (variable cost $12) cover $1,200 of fixed costs?<|eot|> <|assistant|> ```python import math fixed = 1200 price = 20 variable = 12 units = math.ceil(fixed / (price - variable)) # 150 print(units) ``` Result: 150 150...
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "How many units at $20 each (variable cost $12) cover $1,200 of fixed costs?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 1200\nprice = 20\nvariable = 1...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0068483
<|start|><|user|> What does $1,000 grow to in 5 years at 2% annual compounding?<|eot|> <|assistant|> ```python principal = 1000 rate = 2 / 100 # 0.02 years = 5 value = principal * (1 + rate) ** years # 1104.0808032 print(f"{value:.2f}") ``` Run output: 1104.08 The balance is $1,104.08.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What does $1,000 grow to in 5 years at 2% annual compounding?" }, { "role": "assistant", "content": "```python\nprincipal = 1000\nrate = 2 / 100 # 0.02\nyears = 5\nvalue = principal * (1 + rate) ** years # 1104.0808032\nprint(f\"{value:.2f}\")\n```\nRun output: 11...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "1104.08", "printed": "1104.08", "notation": null}
nlprog_det-setting-0068484
Attendance was 33 out of 50. Express it as a percent. Let the code do the arithmetic: present = 33 total = 50 percent = present / total * 100 # 66.0 print(round(percent, 1)) stdout — 66.0 66.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "66.0", "printed": "66.0", "notation": null}
nlprog_det-setting-0068485
Someone born November 21, 1956 turns how old by May 25, 2030? Give the age in whole years. ```python from datetime import date born = date(1956, 11, 21) # datetime.date(1956, 11, 21) on = date(2030, 5, 25) # datetime.date(2030, 5, 25) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 73 pr...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
154
{"gold": "73", "printed": "73", "notation": null}
nlprog_det-setting-0068486
How many days are there from April 6, 2027 to February 9, 2028? Computation in Python: ```python from datetime import date first = date(2027, 4, 6) # datetime.date(2027, 4, 6) second = date(2028, 2, 9) # datetime.date(2028, 2, 9) print((second - first).days) ``` This prints: 309 It is 309 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "309", "printed": "309", "notation": null}
nlprog_det-setting-0068487
<|start|><|user|> 775 files go into boxes of 25. How many boxes does that take?<|eot|> <|assistant|> ```python import math files = 775 per_box = 25 boxes = math.ceil(files / per_box) # 31 print(boxes) ``` The script prints: 31 31 boxes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "775 files go into boxes of 25. How many boxes does that take?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 775\nper_box = 25\nboxes = math.ceil(files / per_box) # 31\nprint(boxes)\n```\nThe script prints: 31\n\n31 boxes are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "31", "printed": "31", "notation": null}
nlprog_det-setting-0068488
A 36-month warranty starts on February 22, 2021. On what date does it end? Programmatically: ```python from datetime import date start = date(2021, 2, 22) months = 36 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Executed...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "2024-02-22", "printed": "2024-02-22", "notation": null}
nlprog_det-setting-0068489
Someone born March 11, 1957 turns how old by December 8, 2024? Give the age in whole years. As Python: ```python from datetime import date born = date(1957, 3, 11) # datetime.date(1957, 3, 11) on = date(2024, 12, 8) # datetime.date(2024, 12, 8) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
160
{"gold": "67", "printed": "67", "notation": null}
nlprog_det-setting-0068490
2 clients win $96,000. The lawyer takes 40%, and the rest is split equally. How much does each client get? The program: ```python award = 96000 fee = award * 40 / 100 # 38400.0 remaining = award - fee # 57600.0 per_client = remaining / 2 # 28800.0 print(f"{per_client:.2f}") ``` (stdout: 28800.00) Each client gets ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "28800.00", "printed": "28800.00", "notation": null}
nlprog_det-setting-0068491
<|start|><|user|> 2 clients win $72,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> ```python award = 72000 fee = award * 30 / 100 # 21600.0 remaining = award - fee # 50400.0 per_client = remaining / 2 # 25200.0 print(f"{per_client:.2f}") ``` The run give...
chat
[ { "role": "user", "content": "2 clients win $72,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": "```python\naward = 72000\nfee = award * 30 / 100 # 21600.0\nremaining = award - fee # 50400.0\nper_client = remaining ...
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "25200.00", "printed": "25200.00", "notation": null}
nlprog_det-setting-0068492
<|start|><|system|> You are a logic tutor.<|eot|> <|user|> Convert 4,489 USD to CAD at 1 USD = 0.92 CAD.<|eot|> <|assistant|> It converts to 4,129.88 CAD.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a logic tutor." }, { "role": "user", "content": "Convert 4,489 USD to CAD at 1 USD = 0.92 CAD." }, { "role": "assistant", "content": "It converts to 4,129.88 CAD." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
55
{"gold": "4129.88", "printed": "4129.88", "notation": null}
nlprog_det-setting-0068493
Counting only Monday through Friday, how many business days are there after December 11, 2028 through December 17, 2028? Set it up in Python: from datetime import date, timedelta start = date(2028, 12, 11) end = date(2028, 12, 17) count = 0 for k in range(1, (end - start).days + 1): if (sta...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0068494
An office budget of $12,000 has expenses of $3,657, $773, $2,865. How much of the budget is left? A few lines of Python do it: ```python budget = 12000 expenses = [3657, 773, 2865] left = budget - sum(expenses) # 4705 print(left) ``` The code prints 4705. The remaining budget is $4,705.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "4705", "printed": "4705", "notation": null}
nlprog_det-setting-0068495
Dara earns a 10% commission on $112,257 of sales. What is the commission? Set it up in Python: ```python sales = 112257 rate = 10 / 100 # 0.1 commission = sales * rate # 11225.7 print(f"{commission:.2f}") ``` Output — 11225.70 The commission is $11,225.70.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "11225.70", "printed": "11225.70", "notation": null}
nlprog_det-setting-0068496
<|start|><|user|> Beatriz's scores were 93, 77, 71, 68, 58, 96 and 83. What is the average score?<|eot|> <|assistant|> ```python scores = [93, 77, 71, 68, 58, 96, 83] average = sum(scores) // len(scores) # 78 print(average) ``` The program outputs: 78 The mean is 78.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Beatriz's scores were 93, 77, 71, 68, 58, 96 and 83. What is the average score?" }, { "role": "assistant", "content": "```python\nscores = [93, 77, 71, 68, 58, 96, 83]\naverage = sum(scores) // len(scores) # 78\nprint(average)\n```\nThe program outputs: 78\n\nThe m...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "78", "printed": "78", "notation": null}
nlprog_det-setting-0068497
<|start|><|user|> 3 clients win $30,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> ```python award = 30000 fee = award * 30 / 100 # 9000.0 remaining = award - fee # 21000.0 per_client = remaining / 3 # 7000.0 print(f"{per_client:.2f}") ``` That prints: 7...
chat
[ { "role": "user", "content": "3 clients win $30,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": "```python\naward = 30000\nfee = award * 30 / 100 # 9000.0\nremaining = award - fee # 21000.0\nper_client = remaining /...
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "7000.00", "printed": "7000.00", "notation": null}
nlprog_det-setting-0068498
Pay is $22.40/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 53 hours? The weekly pay is $1,332.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
48
{"gold": "1332.80", "printed": "1332.80", "notation": null}
nlprog_det-setting-0068499
<|start|><|system|> You have access to these functions: [{"name": "run_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> Viktor and Joelle sha...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"run_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\":...
nlprog_det
setting
original
null
deterministic
[]
[]
232
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0068500
<|start|><|system|> You can call tools. Available tools: [{"name": "sandbox_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|us...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"sandbox_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python sour...
nlprog_det
setting
original
null
deterministic
[]
[]
251
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0068501
<|start|><|system|> Functions: [{"name": "python_exec", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> If a 105-minute appointment begins a...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"python_exec\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program\"]}...
nlprog_det
setting
original
null
deterministic
[]
[]
251
{"gold": "1:00 PM", "printed": "1:00 PM", "notation": null}
nlprog_det-setting-0068502
With 20% off, what does a $300 chair cost? It costs $240.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
25
{"gold": "240.00", "printed": "240.00", "notation": null}
nlprog_det-setting-0068503
2 friends split a $180 bill plus a 15% tip evenly. How much does each pay? Programmatically: ```python bill = 180 tip_rate = 15 / 100 # 0.15 people = 2 each = bill * (1 + tip_rate) / people # 103.49999999999999 print(f"{each:.2f}") ``` Console: 103.50 The share is $103.50 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "103.50", "printed": "103.50", "notation": null}
nlprog_det-setting-0068504
A 14 lb package ships at $10 base plus $2.00/lb. What is the charge? A few lines of Python do it: ```python base = 10 per_pound = 2.0 weight = 14 cost = base + per_pound * weight # 38.0 print(f"{cost:.2f}") ``` The run gives 38.00, as expected. The charge is $38.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "38.00", "printed": "38.00", "notation": null}
nlprog_det-setting-0068505
Someone works 24 hours at $28.40 per hour. What are the earnings? Translated to Python: rate = 28.4 hours = 24 earnings = rate * hours # 681.5999999999999 print(f"{earnings:.2f}") Run it and it prints: 681.60 The pay is $681.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "681.60", "printed": "681.60", "notation": null}
nlprog_det-setting-0068506
Each of Tobias's runs burns 200 calories. How many calories over 7 runs? That burns 1400 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "1400", "printed": "1400", "notation": null}
nlprog_det-setting-0068507
<|start|><|user|> An office budget of $5,000 has expenses of $3,753, $2,590. How much of the budget is left?<|eot|> <|assistant|> ```python budget = 5000 expenses = [3753, 2590] left = budget - sum(expenses) # -1343 print(left) ``` # execution result: -1343 The remaining budget is -$1,343.<|eot|> <|end|>
chat
[ { "role": "user", "content": "An office budget of $5,000 has expenses of $3,753, $2,590. How much of the budget is left?" }, { "role": "assistant", "content": "```python\nbudget = 5000\nexpenses = [3753, 2590]\nleft = budget - sum(expenses) # -1343\nprint(left)\n```\n# execution result: -1343\n...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "-1343", "printed": "-1343", "notation": null}
nlprog_det-setting-0068508
How many of 213 votes make 75% (round up)? 160 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
24
{"gold": "160", "printed": "160", "notation": null}
nlprog_det-setting-0068509
An attorney bills 7 hours at $150 per hour. What is the bill? A short script: ```python hours = 7 rate = 150 bill = hours * rate # 1050 print(f"{bill:.2f}") ``` Program output — 1050.00 That comes to $1,050.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "1050.00", "printed": "1050.00", "notation": null}
nlprog_det-setting-0068510
On which weekday does June 2, 1998 fall? Python makes this quick: from datetime import date hearing = date(1998, 6, 2) # datetime.date(1998, 6, 2) print(hearing.strftime("%A")) What it prints — Tuesday June 2, 1998 is a Tuesday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "Tuesday", "printed": "Tuesday", "notation": null}
nlprog_det-setting-0068511
<|start|><|system|> You have access to these functions: [{"name": "python_exec", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> Ada lends $1...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"python_exec\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \...
nlprog_det
setting
original
null
deterministic
[]
[]
236
{"gold": "960.00", "printed": "960.00", "notation": null}
nlprog_det-setting-0068512
<|start|><|system|> You are a data assistant.<|eot|> <|user|> Monthly rent is $1,500. A tenant moves in with 17 days left in a 30-day month. What is the prorated rent?<|eot|> <|assistant|> ```python rent = 1500 days_in_month = 30 days_occupied = 17 prorated = rent * days_occupied / days_in_month # 850.0 print(f"{prora...
chat
[ { "role": "system", "content": "You are a data assistant." }, { "role": "user", "content": "Monthly rent is $1,500. A tenant moves in with 17 days left in a 30-day month. What is the prorated rent?" }, { "role": "assistant", "content": "```python\nrent = 1500\ndays_in_month = 30\nday...
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "850.00", "printed": "850.00", "notation": null}
nlprog_det-setting-0068513
What is the total rent on a 24-month lease at $1,475 a month? Python: ```python monthly_rent = 1475 months = 24 total = monthly_rent * months # 35400 print(total) ``` Executing it gives: 35400 The rent over the term is $35,400.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "35400", "printed": "35400", "notation": null}
nlprog_det-setting-0068514
<|start|><|user|> At an exchange rate of 1.08 USD per GBP, how many USD is 5,881 GBP?<|eot|> <|assistant|> ```python amount = 5881 rate = 1.08 converted = amount * rate # 6351.4800000000005 print(f"{converted:.2f}") ``` The printout reads 6351.48. It converts to 6,351.48 USD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At an exchange rate of 1.08 USD per GBP, how many USD is 5,881 GBP?" }, { "role": "assistant", "content": "```python\namount = 5881\nrate = 1.08\nconverted = amount * rate # 6351.4800000000005\nprint(f\"{converted:.2f}\")\n```\nThe printout reads 6351.48.\n\nIt con...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "6351.48", "printed": "6351.48", "notation": null}
nlprog_det-setting-0068516
<|start|><|user|> A $96 dinner bill gets a 20% tip, and 3 people share the cost equally. What is each person's share?<|eot|> <|assistant|> Each person pays $38.40.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A $96 dinner bill gets a 20% tip, and 3 people share the cost equally. What is each person's share?" }, { "role": "assistant", "content": "Each person pays $38.40." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "38.40", "printed": "38.40", "notation": null}
nlprog_det-setting-0068517
<|start|><|system|> You help people work with structured data.<|eot|> <|user|> A $2,500 security deposit has deductions of $120 and $60. How much is refunded?<|eot|> <|assistant|> ```python deposit = 2500 deductions = [120, 60] refund = deposit - sum(deductions) # 2320 print(refund) ``` Printed: 2320 The refund is $2...
chat
[ { "role": "system", "content": "You help people work with structured data." }, { "role": "user", "content": "A $2,500 security deposit has deductions of $120 and $60. How much is refunded?" }, { "role": "assistant", "content": "```python\ndeposit = 2500\ndeductions = [120, 60]\nrefun...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "2320", "printed": "2320", "notation": null}
nlprog_det-setting-0068518
<|start|><|system|> You help paralegals with routine tasks.<|eot|> <|user|> The rules require 3/5 of 48 members (round up) to be present. How many is that?<|eot|> <|assistant|> ```python import math members = 48 quorum = math.ceil(members * 3 / 5) # 29 print(quorum) ``` It prints 29. 29 members are needed.<|eot|> <|e...
chat
[ { "role": "system", "content": "You help paralegals with routine tasks." }, { "role": "user", "content": "The rules require 3/5 of 48 members (round up) to be present. How many is that?" }, { "role": "assistant", "content": "```python\nimport math\nmembers = 48\nquorum = math.ceil(me...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0068519
<|start|><|user|> Scale 100 g of oats from 2 servings to 3 servings.<|eot|> <|assistant|> ```python grams = 100 serves = 2 needed_for = 3 scaled = grams * needed_for // serves # 150 print(scaled) ``` # run result: 150 Use 150 g of oats.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Scale 100 g of oats from 2 servings to 3 servings." }, { "role": "assistant", "content": "```python\ngrams = 100\nserves = 2\nneeded_for = 3\nscaled = grams * needed_for // serves # 150\nprint(scaled)\n```\n# run result: 150\n\nUse 150 g of oats." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0068520
Walls total 1136 sq ft and each can covers 250 sq ft. How many cans should be bought? ```python import math area = 1136 coverage = 250 cans = math.ceil(area / coverage) # 5 print(cans) ``` What it prints: 5 5 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0068521
Rent of $1,800 goes up 3%. What is the new rent? As a program: ```python rent = 1800 increase = 3 / 100 # 0.03 new_rent = rent * (1 + increase) # 1854.0 print(f"{new_rent:.2f}") ``` Executing it gives: 1854.00 It rises to $1,854.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "1854.00", "printed": "1854.00", "notation": null}
nlprog_det-setting-0068522
A 90-day notice period begins on October 16, 2028. On what date does it end? Set it up in Python: ```python from datetime import date, timedelta start = date(2028, 10, 16) # datetime.date(2028, 10, 16) end = start + timedelta(days=90) # datetime.date(2029, 1, 14) print(end.isoformat()) ``` Printed — 2029-01-14 It e...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "2029-01-14", "printed": "2029-01-14", "notation": null}
nlprog_det-setting-0068523
<|start|><|system|> Tools (call with JSON): {"name": "python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}} {"name": "translate", "description": "Translate t...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source...
nlprog_det
setting
original
null
deterministic
[]
[]
295
{"gold": "90.0", "printed": "90.0", "notation": null}