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-0074531 | <|start|><|user|>
Fines run at $25 per day up to a maximum of $5,000. How much after 26 days?<|eot|>
<|assistant|>
```python
per_day = 25
days = 26
cap = 5000
fine = min(per_day * days, cap) # 650
print(fine)
```
When run, it prints 650.
The fine is $650.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Fines run at $25 per day up to a maximum of $5,000. How much after 26 days?"
},
{
"role": "assistant",
"content": "```python\nper_day = 25\ndays = 26\ncap = 5000\nfine = min(per_day * days, cap) # 650\nprint(fine)\n```\nWhen run, it prints 650.\n\nThe fine is $650.... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "650", "printed": "650", "notation": null} |
nlprog_det-setting-0074532 | <|start|><|user|>
Attendance was 109 out of 200. Express it as a percent.<|eot|>
<|assistant|>
```python
present = 109
total = 200
percent = present / total * 100 # 54.50000000000001
print(round(percent, 1))
```
Out: 54.5
54.5% attended.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Attendance was 109 out of 200. Express it as a percent."
},
{
"role": "assistant",
"content": "```python\npresent = 109\ntotal = 200\npercent = present / total * 100 # 54.50000000000001\nprint(round(percent, 1))\n```\nOut: 54.5\n\n54.5% attended."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "54.5", "printed": "54.5", "notation": null} |
nlprog_det-setting-0074533 | A penalty of $25 a day accrues, capped at $5,000. What is owed after 36 days?
per_day = 25
days = 36
cap = 5000
fine = min(per_day * days, cap)
print(fine)
Out: 900
The fine is $900. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0074535 | <|start|><|user|>
How many whole days and leftover hours are in 354 hours?<|eot|>
<|assistant|>
```python
hours = 354
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
The program outputs: 14 days and 18 hours
354 hours is 14 days and 18 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many whole days and leftover hours are in 354 hours?"
},
{
"role": "assistant",
"content": "```python\nhours = 354\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nThe program outputs: 14 days and 18 hours\n\n354 hours is 14 days a... | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "14 days and 18 hours", "printed": "14 days and 18 hours", "notation": null} |
nlprog_det-setting-0074536 | <|start|><|user|>
A deposition lasted 3 hours and 43 minutes. How many minutes is that?<|eot|>
<|assistant|>
```python
hours = 3
minutes = 43
total_minutes = hours * 60 + minutes # 223
print(total_minutes)
```
What it prints: 223
The deposition lasted 223 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A deposition lasted 3 hours and 43 minutes. How many minutes is that?"
},
{
"role": "assistant",
"content": "```python\nhours = 3\nminutes = 43\ntotal_minutes = hours * 60 + minutes # 223\nprint(total_minutes)\n```\nWhat it prints: 223\n\nThe deposition lasted 223 ... | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "223", "printed": "223", "notation": null} |
nlprog_det-setting-0074537 | A car travels 114 miles in 3 hours. What is its average speed in miles per hour?
Translated to Python:
```python
distance = 114
hours = 3
speed = distance / hours # 38.0
print(round(speed))
```
Running it prints 38.
The average speed is 38 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "38", "printed": "38", "notation": null} |
nlprog_det-setting-0074538 | <|start|><|user|>
The firm was founded in 2020. How many years had passed by 2033?<|eot|>
<|assistant|>
```python
start_year = 2020
end_year = 2033
print(end_year - start_year)
```
Printed — 13
That is 13 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The firm was founded in 2020. How many years had passed by 2033?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 2020\nend_year = 2033\nprint(end_year - start_year)\n```\nPrinted — 13\n\nThat is 13 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0074539 | <|start|><|system|>
Answer in plain English.<|eot|>
<|user|>
Fines run at $25 per day up to a maximum of $2,500. How much after 57 days?<|eot|>
<|assistant|>
The fine is $1,425.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer in plain English."
},
{
"role": "user",
"content": "Fines run at $25 per day up to a maximum of $2,500. How much after 57 days?"
},
{
"role": "assistant",
"content": "The fine is $1,425."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 52 | {"gold": "1425", "printed": "1425", "notation": null} |
nlprog_det-setting-0074540 | The bridge was finished in 2017. How many years had passed by 2042?
Here is the program.
```python
start_year = 2017
end_year = 2042
print(end_year - start_year)
```
(Result: 25)
25 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0074541 | Monthly rent is $900. A tenant moves in with 14 days left in a 30-day month. What is the prorated rent?
One way, in code:
```python
rent = 900
days_in_month = 30
days_occupied = 14
prorated = rent * days_occupied / days_in_month # 420.0
print(f"{prorated:.2f}")
```
Executing it gives: 420.00
The tenant owes $420.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "420.00", "printed": "420.00", "notation": null} |
nlprog_det-setting-0074542 | <|start|><|user|>
How many weekdays (Monday to Friday) fall after November 25, 2024 up to and including December 21, 2024?<|eot|>
<|assistant|>
There are 19 business days.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many weekdays (Monday to Friday) fall after November 25, 2024 up to and including December 21, 2024?"
},
{
"role": "assistant",
"content": "There are 19 business days."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0074543 | <|start|><|user|>
How many weekdays (Monday to Friday) fall after October 16, 2026 up to and including November 16, 2026?<|eot|>
<|assistant|>
There are 21 business days.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many weekdays (Monday to Friday) fall after October 16, 2026 up to and including November 16, 2026?"
},
{
"role": "assistant",
"content": "There are 21 business days."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "21", "printed": "21", "notation": null} |
nlprog_det-setting-0074545 | <|start|><|user|>
The landlord deducts $120 from a $2,000 deposit. What is returned to the tenant?<|eot|>
<|assistant|>
```python
deposit = 2000
deductions = [120]
refund = deposit - sum(deductions) # 1880
print(refund)
```
Execution result — 1880
The refund is $1,880.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The landlord deducts $120 from a $2,000 deposit. What is returned to the tenant?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 2000\ndeductions = [120]\nrefund = deposit - sum(deductions) # 1880\nprint(refund)\n```\nExecution result — 1880\n\nThe refu... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "1880", "printed": "1880", "notation": null} |
nlprog_det-setting-0074546 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "py_exec", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
If a 25-minute he... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"py_exec\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require... | nlprog_det | setting | original | null | deterministic | [] | [] | 258 | {"gold": "2:10 PM", "printed": "2:10 PM", "notation": null} |
nlprog_det-setting-0074547 | A 12-month warranty starts on August 25, 2027. On what date does it end?
Program:
```python
from datetime import date
start = date(2027, 8, 25)
months = 12
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
stdout = 2028-08-25... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "2028-08-25", "printed": "2028-08-25", "notation": null} |
nlprog_det-setting-0074548 | Straight-line depreciation: cost $12,000, salvage $3,000, 3 years. How much per year?
Translated to Python:
```python
cost = 12000
salvage = 3000
years = 3
per_year = (cost - salvage) / years # 3000.0
print(f"{per_year:.2f}")
```
Execution prints 3000.00, as expected.
$3,000.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "3000.00", "printed": "3000.00", "notation": null} |
nlprog_det-setting-0074549 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "python", "description": "Executes a Python pro... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"na... | nlprog_det | setting | original | null | deterministic | [] | [] | 273 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0074550 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
A 2 lb package ships at $8 base plus $1.50/lb. What is the charge?<|eot|>
<|assistant|>
```python
base = 8
per_pound = 1.5
weight = 2
cost = base + per_pound * weight # 11.0
print(f"{cost:.2f}")
```
On running, it outputs: 11.00
Shipping costs $11.00.<|... | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "A 2 lb package ships at $8 base plus $1.50/lb. What is the charge?"
},
{
"role": "assistant",
"content": "```python\nbase = 8\nper_pound = 1.5\nweight = 2\ncost = base + per_pound * weight ... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "11.00", "printed": "11.00", "notation": null} |
nlprog_det-setting-0074551 | <|start|><|user|>
How many 1-foot square tiles cover a 6 ft by 15 ft floor (round up)?<|eot|>
<|assistant|>
```python
import math
length = 6
width = 15
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 90
print(tiles)
```
Python prints 90.
It takes 90 tiles.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many 1-foot square tiles cover a 6 ft by 15 ft floor (round up)?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 6\nwidth = 15\ntile = 1\ntiles = math.ceil(length * width / (tile * tile)) # 90\nprint(tiles)\n```\nPython prints 90.\n\nIt ... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "90", "printed": "90", "notation": null} |
nlprog_det-setting-0074552 | <|start|><|user|>
Fixed costs are $2,500. Each unit sells for $15 and costs $9 to make. How many units must be sold to break even?<|eot|>
<|assistant|>
```python
import math
fixed = 2500
price = 15
variable = 9
units = math.ceil(fixed / (price - variable)) # 417
print(units)
```
Output = 417
Break-even is 417 units.<... | chat | [
{
"role": "user",
"content": "Fixed costs are $2,500. Each unit sells for $15 and costs $9 to make. How many units must be sold to break even?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 2500\nprice = 15\nvariable = 9\nunits = math.ceil(fixed / (price - variable)) # 4... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "417", "printed": "417", "notation": null} |
nlprog_det-setting-0074553 | Tariq earns $25.00 an hour and time and a half for hours over 40. What is the pay for a 41-hour week?
A few lines of Python do it:
rate = 25.0
hours = 41
regular = 40 * rate # 1000.0
overtime = (hours - 40) * rate * 1.5 # 37.5
pay = regular + overtime # 1037.5
print(f"{pay:.2f}")
Run it and ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "1037.50", "printed": "1037.50", "notation": null} |
nlprog_det-setting-0074554 | Parking is $2 per hour with a daily maximum of $18. What do 10 hours cost?
As Python:
rate = 2
hours = 10
daily_max = 18
cost = min(rate * hours, daily_max) # 18
print(cost)
The script prints 18.
Parking costs $18. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0074555 | <|start|><|user|>
After a 30% fee is taken from a $60,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|>
<|assistant|>
```python
award = 60000
fee = award * 30 / 100 # 18000.0
remaining = award - fee # 42000.0
per_client = remaining / 4 # 10500.0
print(f"{per_client:.2f}")... | chat | [
{
"role": "user",
"content": "After a 30% fee is taken from a $60,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?"
},
{
"role": "assistant",
"content": "```python\naward = 60000\nfee = award * 30 / 100 # 18000.0\nremaining = award - fee # 42000.0\nper_cl... | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "10500.00", "printed": "10500.00", "notation": null} |
nlprog_det-setting-0074556 | After a 25% fee is taken from a $30,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?
```python
award = 30000
fee = award * 25 / 100 # 7500.0
remaining = award - fee # 22500.0
per_client = remaining / 2 # 11250.0
print(f"{per_client:.2f}")
```
Printed — 11250.00
Each client ge... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "11250.00", "printed": "11250.00", "notation": null} |
nlprog_det-setting-0074558 | How many weekdays (Monday to Friday) fall after November 23, 2023 up to and including December 31, 2023?
The program:
from datetime import date, timedelta
start = date(2023, 11, 23)
end = date(2023, 12, 31)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0074559 | <|start|><|user|>
How many units at $20 each (variable cost $14) cover $9,000 of fixed costs?<|eot|>
<|assistant|>
```python
import math
fixed = 9000
price = 20
variable = 14
units = math.ceil(fixed / (price - variable))
print(units)
```
Executing it gives 1500, as expected.
Break-even is 1500 units.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many units at $20 each (variable cost $14) cover $9,000 of fixed costs?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 9000\nprice = 20\nvariable = 14\nunits = math.ceil(fixed / (price - variable))\nprint(units)\n```\nExecuting it gives 1... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "1500", "printed": "1500", "notation": null} |
nlprog_det-setting-0074560 | A court charges $15 per request plus $0.10 per page after the first 0 pages. What does a 84-page copy cost?
```python
pages = 84
base = 15
per_page = 0.1
free_pages = 0
cost = base + max(0, pages - free_pages) * per_page # 23.4
print(f"{cost:.2f}")
```
Out — 23.40
The copy costs $23.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "23.40", "printed": "23.40", "notation": null} |
nlprog_det-setting-0074561 | <|start|><|user|>
Prorate $1,800 of monthly rent for 7 days of a 30-day month.<|eot|>
<|assistant|>
The prorated rent is $420.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Prorate $1,800 of monthly rent for 7 days of a 30-day month."
},
{
"role": "assistant",
"content": "The prorated rent is $420.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "420.00", "printed": "420.00", "notation": null} |
nlprog_det-setting-0074562 | <|start|><|system|>
Tool definitions:
{"name": "py_exec", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}
{"name": "translate", "description": "Translate tex... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"py_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 | [] | [] | 281 | {"gold": "80.0", "printed": "80.0", "notation": null} |
nlprog_det-setting-0074563 | What is a 22% tip on a $49.17 bill?
```python
bill = 49.17
tip_rate = 22 / 100 # 0.22
tip = bill * tip_rate # 10.817400000000001
print(f"{tip:.2f}")
```
# output: 10.82
Leave $10.82. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "10.82", "printed": "10.82", "notation": null} |
nlprog_det-setting-0074564 | What simple interest does $20,000 earn at 5% a year over 5 years?
Python, step by step:
```python
principal = 20000
rate = 5 / 100 # 0.05
years = 5
interest = principal * rate * years # 5000.0
print(f"{interest:.2f}")
```
Python prints 5000.00, as expected.
The interest is $5,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "5000.00", "printed": "5000.00", "notation": null} |
nlprog_det-setting-0074565 | An invoice lists 37 file boxes at $12 each, plus 5% sales tax. What is the invoice total?
Let's compute it with Python.
```python
quantity = 37
unit_price = 12
subtotal = quantity * unit_price
total = subtotal * (1 + 5 / 100)
print(f"{total:.2f}")
```
The program outputs: 466.20
The total with tax is $466.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "466.20", "printed": "466.20", "notation": null} |
nlprog_det-setting-0074566 | How many units at $30 each (variable cost $26) cover $6,000 of fixed costs?
A few lines of Python do it:
```python
import math
fixed = 6000
price = 30
variable = 26
units = math.ceil(fixed / (price - variable)) # 1500
print(units)
```
# stdout: 1500
1500 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "1500", "printed": "1500", "notation": null} |
nlprog_det-setting-0074567 | Signe earns a 2% commission on $51,541 of sales. What is the commission?
Python:
```python
sales = 51541
rate = 2 / 100 # 0.02
commission = sales * rate # 1030.82
print(f"{commission:.2f}")
```
Printed result: 1030.82
The commission is $1,030.82. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "1030.82", "printed": "1030.82", "notation": null} |
nlprog_det-setting-0074568 | <|start|><|user|>
One can of paint covers 350 square feet. How many cans are needed for 739 square feet of wall?<|eot|>
<|assistant|>
```python
import math
area = 739
coverage = 350
cans = math.ceil(area / coverage) # 3
print(cans)
```
Run result — 3
3 cans are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "One can of paint covers 350 square feet. How many cans are needed for 739 square feet of wall?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 739\ncoverage = 350\ncans = math.ceil(area / coverage) # 3\nprint(cans)\n```\nRun result — 3\n\n3 ca... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0074569 | How many meters are in 84.4 kilometers?
Python makes this quick:
```python
km = 84.4
meters = km * 1000 # 84400.0
print(round(meters))
```
The interpreter prints 84400.
84,400 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "84400", "printed": "84400", "notation": null} |
nlprog_det-setting-0074570 | <|start|><|user|>
Printing costs 15 cents a page. What does it cost to print 181 copies of a 52-page handout?<|eot|>
<|assistant|>
```python
pages = 52
copies = 181
cost_per_page = 0.15
cost = pages * copies * cost_per_page # 1411.8
print(f"{cost:.2f}")
```
It prints: 1411.80
Printing costs $1,411.80.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Printing costs 15 cents a page. What does it cost to print 181 copies of a 52-page handout?"
},
{
"role": "assistant",
"content": "```python\npages = 52\ncopies = 181\ncost_per_page = 0.15\ncost = pages * copies * cost_per_page # 1411.8\nprint(f\"{cost:.2f}\")\n```... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "1411.80", "printed": "1411.80", "notation": null} |
nlprog_det-setting-0074572 | <|start|><|user|>
Revenue is $20,500 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|>
<|assistant|>
Profit is 2.4% of revenue.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Revenue is $20,500 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?"
},
{
"role": "assistant",
"content": "Profit is 2.4% of revenue."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 48 | {"gold": "2.4", "printed": "2.4", "notation": null} |
nlprog_det-setting-0074573 | A 2% increase is applied to $900 monthly rent. What is the new amount?
The Python version:
```python
rent = 900
increase = 2 / 100 # 0.02
new_rent = rent * (1 + increase) # 918.0
print(f"{new_rent:.2f}")
```
Running it prints: 918.00
The new rent is $918.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "918.00", "printed": "918.00", "notation": null} |
nlprog_det-setting-0074574 | Scale 450 g of sugar from 2 servings to 4 servings.
Python makes this quick:
```python
grams = 450
serves = 2
needed_for = 4
scaled = grams * needed_for // serves # 900
print(scaled)
```
The script prints 900.
900 grams of sugar are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0074575 | <|start|><|system|>
Tools (call with JSON):
{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}
{"name": "eval_python", "description": "Use for arithmetic... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"target\"]}}... | nlprog_det | setting | original | null | deterministic | [] | [] | 310 | {"gold": "39360", "printed": "39360", "notation": null} |
nlprog_det-setting-0074576 | <|start|><|user|>
Fixed costs are $2,500. Each unit sells for $30 and costs $22 to make. How many units must be sold to break even?<|eot|>
<|assistant|>
Break-even is 313 units.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Fixed costs are $2,500. Each unit sells for $30 and costs $22 to make. How many units must be sold to break even?"
},
{
"role": "assistant",
"content": "Break-even is 313 units."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 51 | {"gold": "313", "printed": "313", "notation": null} |
nlprog_det-setting-0074577 | <|start|><|user|>
Find the mean of these test scores: 72, 90, 89, 60, 55 and 60.<|eot|>
<|assistant|>
The mean is 71.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Find the mean of these test scores: 72, 90, 89, 60, 55 and 60."
},
{
"role": "assistant",
"content": "The mean is 71."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "71", "printed": "71", "notation": null} |
nlprog_det-setting-0074579 | <|start|><|user|>
Kofi buys 4 boxes of 25 batteries each and gives away 1 batteries. How many batteries are left?<|eot|>
<|assistant|>
```python
boxes = 4
per_box = 25
given_away = 1
left = boxes * per_box - given_away # 99
print(left)
```
The code prints: 99
That leaves 99 batteries.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Kofi buys 4 boxes of 25 batteries each and gives away 1 batteries. How many batteries are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 4\nper_box = 25\ngiven_away = 1\nleft = boxes * per_box - given_away # 99\nprint(left)\n```\nThe code prints: 9... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "99", "printed": "99", "notation": null} |
nlprog_det-setting-0074580 | Straight-line depreciation: cost $24,000, salvage $6,000, 10 years. How much per year?
A short script:
```python
cost = 24000
salvage = 6000
years = 10
per_year = (cost - salvage) / years # 1800.0
print(f"{per_year:.2f}")
```
Output of the run: 1800.00
Depreciation is $1,800.00 per year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "1800.00", "printed": "1800.00", "notation": null} |
nlprog_det-setting-0074582 | What percentage of $10,000 is $2,600? 26.0% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 22 | {"gold": "26.0", "printed": "26.0", "notation": null} |
nlprog_det-setting-0074583 | Scale 300 g of sugar from 6 servings to 12 servings.
```python
grams = 300
serves = 6
needed_for = 12
scaled = grams * needed_for // serves # 600
print(scaled)
```
Printed result — 600
600 grams of sugar are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0074584 | <|start|><|user|>
The landlord deducts $45 from a $1,500 deposit. What is returned to the tenant?<|eot|>
<|assistant|>
```python
deposit = 1500
deductions = [45]
refund = deposit - sum(deductions)
print(refund)
```
The program outputs: 1455
$1,455 is returned.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The landlord deducts $45 from a $1,500 deposit. What is returned to the tenant?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 1500\ndeductions = [45]\nrefund = deposit - sum(deductions)\nprint(refund)\n```\nThe program outputs: 1455\n\n$1,455 is return... | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "1455", "printed": "1455", "notation": null} |
nlprog_det-setting-0074585 | Prorate $1,800 of monthly rent for 9 days of a 31-day month.
The Python version:
rent = 1800
days_in_month = 31
days_occupied = 9
prorated = rent * days_occupied / days_in_month # 522.5806451612904
print(f"{prorated:.2f}")
It prints 522.58, as expected.
The prorated rent is $522.58. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "522.58", "printed": "522.58", "notation": null} |
nlprog_det-setting-0074586 | <|start|><|user|>
A garage charges $4 an hour, never more than $18 a day. How much for 8 hours?<|eot|>
<|assistant|>
```python
rate = 4
hours = 8
daily_max = 18
cost = min(rate * hours, daily_max) # 18
print(cost)
```
Result: 18
The charge is $18.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A garage charges $4 an hour, never more than $18 a day. How much for 8 hours?"
},
{
"role": "assistant",
"content": "```python\nrate = 4\nhours = 8\ndaily_max = 18\ncost = min(rate * hours, daily_max) # 18\nprint(cost)\n```\nResult: 18\n\nThe charge is $18."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0074587 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "calculator", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
A lease runs for 6 m... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"calculator\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require... | nlprog_det | setting | original | null | deterministic | [] | [] | 216 | {"gold": "9840", "printed": "9840", "notation": null} |
nlprog_det-setting-0074588 | <|start|><|system|>
Tools (call with JSON):
[{"name": "sandbox_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
A library charges $0.... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"sandbox_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required... | nlprog_det | setting | original | null | deterministic | [] | [] | 244 | {"gold": "0.75", "printed": "0.75", "notation": null} |
nlprog_det-setting-0074589 | 5 claimants share a $525 settlement equally. What is each share?
Each share is $105. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "105", "printed": "105", "notation": null} |
nlprog_det-setting-0074590 | <|start|><|user|>
A storeroom has 1891 paper reams. The office uses 21 a day. How many are left after 12 days?<|eot|>
<|assistant|>
stock = 1891
per_day = 21
days = 12
left = stock - per_day * days # 1639
print(left)
Result = 1639
1639 remain.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A storeroom has 1891 paper reams. The office uses 21 a day. How many are left after 12 days?"
},
{
"role": "assistant",
"content": " stock = 1891\n per_day = 21\n days = 12\n left = stock - per_day * days # 1639\n print(left)\nResult = 1639\n\n1639 r... | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "1639", "printed": "1639", "notation": null} |
nlprog_det-setting-0074591 | A quorum is 3/5 of the 10 members, rounded up. How many members make a quorum?
Python, step by step:
```python
import math
members = 10
quorum = math.ceil(members * 3 / 5) # 6
print(quorum)
```
That prints: 6
6 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0074592 | Prorate $2,400 of monthly rent for 19 days of a 31-day month.
```python
rent = 2400
days_in_month = 31
days_occupied = 19
prorated = rent * days_occupied / days_in_month # 1470.967741935484
print(f"{prorated:.2f}")
```
stdout — 1470.97
The tenant owes $1,470.97. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "1470.97", "printed": "1470.97", "notation": null} |
nlprog_det-setting-0074593 | <|start|><|user|>
A customer buys 3 ink cartridges at $16 each, 6 tape rolls at $30 each and pays with $250. How much change is due?<|eot|>
<|assistant|>
```python
items = [(3, 16), (6, 30)]
total = sum(q * p for q, p in items) # 228
paid = 250
change = paid - total # 22
print(change)
```
The script prints 22.
$22 c... | chat | [
{
"role": "user",
"content": "A customer buys 3 ink cartridges at $16 each, 6 tape rolls at $30 each and pays with $250. How much change is due?"
},
{
"role": "assistant",
"content": "```python\nitems = [(3, 16), (6, 30)]\ntotal = sum(q * p for q, p in items) # 228\npaid = 250\nchange = paid - ... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0074594 | What is the total rent on a 24-month lease at $2,875 a month?
The rent over the term is $69,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "69000", "printed": "69000", "notation": null} |
nlprog_det-setting-0074595 | Hana buys 12 boxes of 6 lanyards each and gives away 15 lanyards. How many lanyards are left?
boxes = 12
per_box = 6
given_away = 15
left = boxes * per_box - given_away # 57
print(left)
It prints: 57
That leaves 57 lanyards. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "57", "printed": "57", "notation": null} |
nlprog_det-setting-0074596 | Amir earns a 8% commission on $119,429 of sales. What is the commission?
Python:
```python
sales = 119429
rate = 8 / 100 # 0.08
commission = sales * rate # 9554.32
print(f"{commission:.2f}")
```
Running it prints: 9554.32
The commission is $9,554.32. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "9554.32", "printed": "9554.32", "notation": null} |
nlprog_det-setting-0074597 | How many whole days and leftover hours are in 226 hours?
Computation in Python:
hours = 226
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
Result — 9 days and 10 hours
226 hours is 9 days and 10 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "9 days and 10 hours", "printed": "9 days and 10 hours", "notation": null} |
nlprog_det-setting-0074598 | To read 884 pages in 17 days, how many pages per day are needed?
Python, step by step:
```python
pages = 884
days = 17
per_day = pages // days # 52
print(per_day)
```
Run output — 52
That is 52 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "52", "printed": "52", "notation": null} |
nlprog_det-setting-0074599 | <|start|><|system|>
Show working only when it helps.<|eot|>
<|user|>
A car travels 262 miles in 2 hours. What is its average speed in miles per hour?<|eot|>
<|assistant|>
```python
distance = 262
hours = 2
speed = distance / hours # 131.0
print(round(speed))
```
# execution result: 131
It averages 131 miles per hour.... | chat | [
{
"role": "system",
"content": "Show working only when it helps."
},
{
"role": "user",
"content": "A car travels 262 miles in 2 hours. What is its average speed in miles per hour?"
},
{
"role": "assistant",
"content": "```python\ndistance = 262\nhours = 2\nspeed = distance / hours #... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "131", "printed": "131", "notation": null} |
nlprog_det-setting-0074600 | <|start|><|system|>
You are a teaching assistant.<|eot|>
<|user|>
The paralegal logged 8 hours at a rate of $180. How much is billed?<|eot|>
<|assistant|>
```python
hours = 8
rate = 180
bill = hours * rate # 1440
print(f"{bill:.2f}")
```
When run, it prints 1440.00, as expected.
The bill is $1,440.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a teaching assistant."
},
{
"role": "user",
"content": "The paralegal logged 8 hours at a rate of $180. How much is billed?"
},
{
"role": "assistant",
"content": "```python\nhours = 8\nrate = 180\nbill = hours * rate # 1440\nprint(f\"{bill:.2f... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "1440.00", "printed": "1440.00", "notation": null} |
nlprog_det-setting-0074601 | <|start|><|user|>
Dara and Pilar share $1,290 in the ratio 1:2. How much does Dara get?<|eot|>
<|assistant|>
total = 1290
parts_a = 1
parts_b = 2
share_a = total * parts_a // (parts_a + parts_b) # 430
print(share_a)
It prints 430.
Dara's share is $430.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Dara and Pilar share $1,290 in the ratio 1:2. How much does Dara get?"
},
{
"role": "assistant",
"content": " total = 1290\n parts_a = 1\n parts_b = 2\n share_a = total * parts_a // (parts_a + parts_b) # 430\n print(share_a)\nIt prints 430.\n\nDara's... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "430", "printed": "430", "notation": null} |
nlprog_det-setting-0074602 | <|start|><|user|>
Ulla earns $25.00 an hour and time and a half for hours over 40. What is the pay for a 43-hour week?<|eot|>
<|assistant|>
```python
rate = 25.0
hours = 43
regular = 40 * rate # 1000.0
overtime = (hours - 40) * rate * 1.5 # 112.5
pay = regular + overtime # 1112.5
print(f"{pay:.2f}")
```
Output of th... | chat | [
{
"role": "user",
"content": "Ulla earns $25.00 an hour and time and a half for hours over 40. What is the pay for a 43-hour week?"
},
{
"role": "assistant",
"content": "```python\nrate = 25.0\nhours = 43\nregular = 40 * rate # 1000.0\novertime = (hours - 40) * rate * 1.5 # 112.5\npay = regula... | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "1112.50", "printed": "1112.50", "notation": null} |
nlprog_det-setting-0074603 | Rania lends $20,000 at 6% simple interest per year for 2 years. How much interest is earned?
As a program:
```python
principal = 20000
rate = 6 / 100 # 0.06
years = 2
interest = principal * rate * years # 2400.0
print(f"{interest:.2f}")
```
Console:
2400.00
It earns $2,400.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "2400.00", "printed": "2400.00", "notation": null} |
nlprog_det-setting-0074604 | Copies cost $15 plus $0.25 for each page beyond 20. How much for 102 pages?
Translated to Python:
```python
pages = 102
base = 15
per_page = 0.25
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page # 35.5
print(f"{cost:.2f}")
```
Execution prints 35.50, as expected.
The total is $35.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "35.50", "printed": "35.50", "notation": null} |
nlprog_det-setting-0074605 | Of a $5,000 budget, $2,100 has been spent. What percent is that?
A short script:
```python
budget = 5000
spent = 2100
percent = spent / budget * 100 # 42.0
print(round(percent, 1))
```
It prints: 42.0
That is 42.0% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "42.0", "printed": "42.0", "notation": null} |
nlprog_det-setting-0074606 | A water bill is $12 plus $4.75 per thousand gallons beyond the first 2 thousand. What is the bill for 11 thousand gallons?
Written as code:
base = 12
rate = 4.75
used = 11
free = 2
bill = base + rate * max(0, used - free) # 54.75
print(f"{bill:.2f}")
Running this gives: 54.75
The bill is $54.... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "54.75", "printed": "54.75", "notation": null} |
nlprog_det-setting-0074607 | How long, in days, is it from October 22, 2028 until February 3, 2029? It is 104 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 26 | {"gold": "104", "printed": "104", "notation": null} |
nlprog_det-setting-0074608 | A quorum is 3/5 of the 15 members, rounded up. How many members make a quorum?
In code:
```python
import math
members = 15
quorum = math.ceil(members * 3 / 5) # 9
print(quorum)
```
It prints 9, as expected.
That is 9 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0074609 | Sara earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 44-hour week?
Here is the program.
```python
rate = 18.5
hours = 44
regular = 40 * rate # 740.0
overtime = (hours - 40) * rate * 1.5 # 111.0
pay = regular + overtime # 851.0
print(f"{pay:.2f}")
```
Shell output: 851.00
The weekl... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "851.00", "printed": "851.00", "notation": null} |
nlprog_det-setting-0074611 | At a 8% tax rate, what is the tax on $298.40?
Code:
```python
price = 298.4
tax_rate = 8 / 100 # 0.08
tax = price * tax_rate # 23.872
print(f"{tax:.2f}")
```
Printed result: 23.87
$23.87 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "23.87", "printed": "23.87", "notation": null} |
nlprog_det-setting-0074612 | A 45-day notice period begins on September 8, 2023. On what date does it end?
A short script:
```python
from datetime import date, timedelta
start = date(2023, 9, 8) # datetime.date(2023, 9, 8)
end = start + timedelta(days=45) # datetime.date(2023, 10, 23)
print(end.isoformat())
```
Run it and it prints: 2023-10-23
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "2023-10-23", "printed": "2023-10-23", "notation": null} |
nlprog_det-setting-0074614 | Starting with 1305 badges and using 24 per day, how many remain after 13 days?
Here is the program.
stock = 1305
per_day = 24
days = 13
left = stock - per_day * days # 993
print(left)
Python prints 993.
993 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "993", "printed": "993", "notation": null} |
nlprog_det-setting-0074615 | A 325-mile drive at a steady 65 mph takes how many minutes?
In code:
```python
distance = 325
speed = 65
minutes = distance / speed * 60 # 300.0
print(round(minutes))
```
Run it and it prints: 300
300 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0074616 | Someone born April 4, 1983 turns how old by April 1, 2024? Give the age in whole years.
Python code:
from datetime import date
born = date(1983, 4, 4) # datetime.date(1983, 4, 4)
on = date(2024, 4, 1) # datetime.date(2024, 4, 1)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0074617 | <|start|><|user|>
From a $5,000 retainer, 11 hours at $150/hour have been drawn. What remains?<|eot|>
<|assistant|>
$3,350 of the retainer is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From a $5,000 retainer, 11 hours at $150/hour have been drawn. What remains?"
},
{
"role": "assistant",
"content": "$3,350 of the retainer is left."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "3350", "printed": "3350", "notation": null} |
nlprog_det-setting-0074618 | Meals are $59 per day and lodging $175 per night. What is the allowance for 3 days and 2 nights?
Python:
days = 3
meal_rate = 59
lodging_rate = 175
nights = days - 1 # 2
total = days * meal_rate + nights * lodging_rate # 527
print(total)
(Execution result: 527)
The allowance is $527. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "527", "printed": "527", "notation": null} |
nlprog_det-setting-0074619 | <|start|><|user|>
17 water bottles cost $24 apiece. With 8% tax added, what is the total?<|eot|>
<|assistant|>
```python
quantity = 17
unit_price = 24
subtotal = quantity * unit_price
total = subtotal * (1 + 8 / 100)
print(f"{total:.2f}")
```
Output:
440.64
The total with tax is $440.64.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "17 water bottles cost $24 apiece. With 8% tax added, what is the total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 17\nunit_price = 24\nsubtotal = quantity * unit_price\ntotal = subtotal * (1 + 8 / 100)\nprint(f\"{total:.2f}\")\n```\nOutput:\n440.6... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "440.64", "printed": "440.64", "notation": null} |
nlprog_det-setting-0074620 | A clerk's office charges $75 for each filing. Carmen submits 10 filings. What is the total fee?
A few lines of Python do it:
```python
fee = 75
filings = 10
total = fee * filings # 750
print(total)
```
# console output: 750
The filings cost $750 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "750", "printed": "750", "notation": null} |
nlprog_det-setting-0074621 | <|start|><|user|>
Olga's scores were 86, 88 and 81. What is the average score?<|eot|>
<|assistant|>
```python
scores = [86, 88, 81]
average = sum(scores) // len(scores) # 85
print(average)
```
stdout — 85
The average score is 85.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Olga's scores were 86, 88 and 81. What is the average score?"
},
{
"role": "assistant",
"content": "```python\nscores = [86, 88, 81]\naverage = sum(scores) // len(scores) # 85\nprint(average)\n```\nstdout — 85\n\nThe average score is 85."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "85", "printed": "85", "notation": null} |
nlprog_det-setting-0074623 | <|start|><|user|>
Attendance was 78 out of 100. Express it as a percent.<|eot|>
<|assistant|>
```python
present = 78
total = 100
percent = present / total * 100 # 78.0
print(round(percent, 1))
```
Run result: 78.0
78.0% attended.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Attendance was 78 out of 100. Express it as a percent."
},
{
"role": "assistant",
"content": "```python\npresent = 78\ntotal = 100\npercent = present / total * 100 # 78.0\nprint(round(percent, 1))\n```\nRun result: 78.0\n\n78.0% attended."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "78.0", "printed": "78.0", "notation": null} |
nlprog_det-setting-0074625 | <|start|><|user|>
At a 6% tax rate, what is the tax on $22.21?<|eot|>
<|assistant|>
price = 22.21
tax_rate = 6 / 100 # 0.06
tax = price * tax_rate # 1.3326
print(f"{tax:.2f}")
# stdout: 1.33
The tax is $1.33.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At a 6% tax rate, what is the tax on $22.21?"
},
{
"role": "assistant",
"content": " price = 22.21\n tax_rate = 6 / 100 # 0.06\n tax = price * tax_rate # 1.3326\n print(f\"{tax:.2f}\")\n# stdout: 1.33\n\nThe tax is $1.33."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "1.33", "printed": "1.33", "notation": null} |
nlprog_det-setting-0074626 | <|start|><|system|>
You are a careful assistant.<|eot|>
<|user|>
Monthly: $25. Annual: $252. What is saved per year by paying annually?<|eot|>
<|assistant|>
```python
monthly = 25
yearly = 252
savings = monthly * 12 - yearly # 48
print(savings)
```
Output:
48
$48 is saved.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a careful assistant."
},
{
"role": "user",
"content": "Monthly: $25. Annual: $252. What is saved per year by paying annually?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 25\nyearly = 252\nsavings = monthly * 12 - yearly # 48\np... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0074627 | A client paid a $2,500 retainer. The firm has billed 14 hours at $150 per hour. How much of the retainer is left?
$400 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "400", "printed": "400", "notation": null} |
nlprog_det-setting-0074628 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "run_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
Amir's scores... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"run_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"re... | nlprog_det | setting | original | null | deterministic | [] | [] | 220 | {"gold": "78", "printed": "78", "notation": null} |
nlprog_det-setting-0074629 | 26 notebooks cost $5 apiece. With 7% tax added, what is the total?
Set it up in Python:
```python
quantity = 26
unit_price = 5
subtotal = quantity * unit_price # 130
total = subtotal * (1 + 7 / 100) # 139.1
print(f"{total:.2f}")
```
The program prints 139.10, as expected.
The invoice total is $139.10. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "139.10", "printed": "139.10", "notation": null} |
nlprog_det-setting-0074630 | <|start|><|user|>
Fixed costs are $1,200. Each unit sells for $20 and costs $16 to make. How many units must be sold to break even?<|eot|>
<|assistant|>
```python
import math
fixed = 1200
price = 20
variable = 16
units = math.ceil(fixed / (price - variable)) # 300
print(units)
```
# program output: 300
Break-even is ... | chat | [
{
"role": "user",
"content": "Fixed costs are $1,200. Each unit sells for $20 and costs $16 to make. How many units must be sold to break even?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 1200\nprice = 20\nvariable = 16\nunits = math.ceil(fixed / (price - variable)) #... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0074631 | Convert 2 h 49 min (the length of a film) to minutes.
Let the code do the arithmetic:
hours = 2
minutes = 49
total_minutes = hours * 60 + minutes # 169
print(total_minutes)
# run result: 169
The film lasted 169 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "169", "printed": "169", "notation": null} |
nlprog_det-setting-0074632 | <|start|><|user|>
What average speed covers 263 miles in 1 hours?<|eot|>
<|assistant|>
```python
distance = 263
hours = 1
speed = distance / hours
print(round(speed))
```
Shell output: 263
It averages 263 miles per hour.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What average speed covers 263 miles in 1 hours?"
},
{
"role": "assistant",
"content": "```python\ndistance = 263\nhours = 1\nspeed = distance / hours\nprint(round(speed))\n```\nShell output: 263\n\nIt averages 263 miles per hour."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "263", "printed": "263", "notation": null} |
nlprog_det-setting-0074633 | A storeroom has 1114 tape rolls. The office uses 6 a day. How many are left after 7 days?
Python code:
```python
stock = 1114
per_day = 6
days = 7
left = stock - per_day * days # 1072
print(left)
```
Interpreter output — 1072
1072 tape rolls are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "1072", "printed": "1072", "notation": null} |
nlprog_det-setting-0074634 | A hall has 6 rows of 22 seats, and 5 seats are empty. How many people are seated?
127 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "127", "printed": "127", "notation": null} |
nlprog_det-setting-0074635 | Diego lends $2,500 at 5% simple interest per year for 5 years. How much interest is earned?
Here's the code.
principal = 2500
rate = 5 / 100 # 0.05
years = 5
interest = principal * rate * years # 625.0
print(f"{interest:.2f}")
Running this gives 625.00.
The interest is $625.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "625.00", "printed": "625.00", "notation": null} |
nlprog_det-setting-0074636 | <|start|><|user|>
To read 520 pages in 13 days, how many pages per day are needed?<|eot|>
<|assistant|>
```python
pages = 520
days = 13
per_day = pages // days # 40
print(per_day)
```
(Printed result: 40)
40 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "To read 520 pages in 13 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": "```python\npages = 520\ndays = 13\nper_day = pages // days # 40\nprint(per_day)\n```\n(Printed result: 40)\n\n40 pages a day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0074637 | <|start|><|user|>
How many meters are in 70.1 kilometers?<|eot|>
<|assistant|>
That is 70,100 meters.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many meters are in 70.1 kilometers?"
},
{
"role": "assistant",
"content": "That is 70,100 meters."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "70100", "printed": "70100", "notation": null} |
nlprog_det-setting-0074638 | How many units at $30 each (variable cost $25) cover $6,000 of fixed costs?
Here's the code.
```python
import math
fixed = 6000
price = 30
variable = 25
units = math.ceil(fixed / (price - variable)) # 1200
print(units)
```
Output — 1200
1200 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "1200", "printed": "1200", "notation": null} |
nlprog_det-setting-0074639 | Someone works 20 hours at $26.29 per hour. What are the earnings?
As Python:
```python
rate = 26.29
hours = 20
earnings = rate * hours # 525.8
print(f"{earnings:.2f}")
```
(Program output: 525.80)
The pay is $525.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "525.80", "printed": "525.80", "notation": null} |
nlprog_det-setting-0074640 | <|start|><|user|>
Each of Omar's walks burns 400 calories. How many calories over 4 walks?<|eot|>
<|assistant|>
```python
per_session = 400
sessions = 4
total = per_session * sessions # 1600
print(total)
```
The code prints 1600.
1600 calories in total.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each of Omar's walks burns 400 calories. How many calories over 4 walks?"
},
{
"role": "assistant",
"content": "```python\nper_session = 400\nsessions = 4\ntotal = per_session * sessions # 1600\nprint(total)\n```\nThe code prints 1600.\n\n1600 calories in total."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "1600", "printed": "1600", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.