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-0046052 | Starting from $25,000, the team spends $1,577, $2,051, $3,110, $1,156. What remains?
$17,106 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 49 | {"gold": "17106", "printed": "17106", "notation": null} |
nlprog_det-setting-0046053 | Fixed costs are $9,000. Each unit sells for $25 and costs $17 to make. How many units must be sold to break even?
Translated to Python:
```python
import math
fixed = 9000
price = 25
variable = 17
units = math.ceil(fixed / (price - variable)) # 1125
print(units)
```
The program outputs: 1125
Break-even is 1125 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "1125", "printed": "1125", "notation": null} |
nlprog_det-setting-0046054 | Of a $5,000 budget, $100 has been spent. What percent is that?
Python, step by step:
```python
budget = 5000
spent = 100
percent = spent / budget * 100 # 2.0
print(round(percent, 1))
```
# execution result: 2.0
2.0% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "2.0", "printed": "2.0", "notation": null} |
nlprog_det-setting-0046055 | Find the mean of these test scores: 79, 68, 91, 64, 77 and 65.
Python does the arithmetic:
```python
scores = [79, 68, 91, 64, 77, 65]
average = sum(scores) // len(scores) # 74
print(average)
```
Executed, it shows 74.
The mean is 74. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "74", "printed": "74", "notation": null} |
nlprog_det-setting-0046056 | Starting with 929 tape rolls and using 8 per day, how many remain after 10 days?
Code:
```python
stock = 929
per_day = 8
days = 10
left = stock - per_day * days # 849
print(left)
```
Python prints: 849
849 tape rolls are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "849", "printed": "849", "notation": null} |
nlprog_det-setting-0046057 | <|start|><|user|>
What day of the week is June 24, 2023?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(2023, 6, 24) # datetime.date(2023, 6, 24)
print(hearing.strftime("%A"))
```
Interpreter output: Saturday
June 24, 2023 is a Saturday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What day of the week is June 24, 2023?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(2023, 6, 24) # datetime.date(2023, 6, 24)\nprint(hearing.strftime(\"%A\"))\n```\nInterpreter output: Saturday\n\nJune 24, 2023 is a Sa... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "Saturday", "printed": "Saturday", "notation": null} |
nlprog_det-setting-0046058 | <|start|><|user|>
A court charges $15 per request plus $0.50 per page after the first 10 pages. What does a 5-page copy cost?<|eot|>
<|assistant|>
```python
pages = 5
base = 15
per_page = 0.5
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 15.0
print(f"{cost:.2f}")
```
Console output: 15.00
The ... | chat | [
{
"role": "user",
"content": "A court charges $15 per request plus $0.50 per page after the first 10 pages. What does a 5-page copy cost?"
},
{
"role": "assistant",
"content": "```python\npages = 5\nbase = 15\nper_page = 0.5\nfree_pages = 10\ncost = base + max(0, pages - free_pages) * per_page ... | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "15.00", "printed": "15.00", "notation": null} |
nlprog_det-setting-0046059 | Ines drove 229 miles for work. Mileage is reimbursed at 70 cents a mile. How much is the reimbursement?
The reimbursement is $160.30. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "160.30", "printed": "160.30", "notation": null} |
nlprog_det-setting-0046060 | <|start|><|user|>
Fuel for 450 miles at 30 mpg, with gas at $3.89/gallon: what is the cost?<|eot|>
<|assistant|>
Fuel costs $58.35.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Fuel for 450 miles at 30 mpg, with gas at $3.89/gallon: what is the cost?"
},
{
"role": "assistant",
"content": "Fuel costs $58.35."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "58.35", "printed": "58.35", "notation": null} |
nlprog_det-setting-0046061 | <|start|><|user|>
A customer buys 5 envelopes at $15 each, 4 ink cartridges at $15 each, 1 labels at $14 each and pays with $150. How much change is due?<|eot|>
<|assistant|>
items = [(5, 15), (4, 15), (1, 14)]
total = sum(q * p for q, p in items) # 149
paid = 150
change = paid - total # 1
print(c... | chat | [
{
"role": "user",
"content": "A customer buys 5 envelopes at $15 each, 4 ink cartridges at $15 each, 1 labels at $14 each and pays with $150. How much change is due?"
},
{
"role": "assistant",
"content": " items = [(5, 15), (4, 15), (1, 14)]\n total = sum(q * p for q, p in items) # 149\n ... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "1", "printed": "1", "notation": null} |
nlprog_det-setting-0046062 | <|start|><|user|>
From 2013 to 2031, how many years is that?<|eot|>
<|assistant|>
```python
start_year = 2013
end_year = 2031
print(end_year - start_year)
```
(Output: 18)
That is 18 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From 2013 to 2031, how many years is that?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 2013\nend_year = 2031\nprint(end_year - start_year)\n```\n(Output: 18)\n\nThat is 18 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 71 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0046063 | Equal monthly payments repay $9,000 plus 8% simple yearly interest over 36 months. How large is a payment?
Each payment is $310.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "310.00", "printed": "310.00", "notation": null} |
nlprog_det-setting-0046064 | <|start|><|user|>
Tomas was born on February 19, 2000. How old is Tomas on July 8, 2022?<|eot|>
<|assistant|>
```python
from datetime import date
born = date(2000, 2, 19) # datetime.date(2000, 2, 19)
on = date(2022, 7, 8) # datetime.date(2022, 7, 8)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.... | chat | [
{
"role": "user",
"content": "Tomas was born on February 19, 2000. How old is Tomas on July 8, 2022?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(2000, 2, 19) # datetime.date(2000, 2, 19)\non = date(2022, 7, 8) # datetime.date(2022, 7, 8)\nage = on.y... | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0046065 | <|start|><|system|>
You are a careful reviewer of figures.<|eot|>
<|user|>
A $150 dinner bill gets a 20% tip, and 3 people share the cost equally. What is each person's share?<|eot|>
<|assistant|>
bill = 150
tip_rate = 20 / 100 # 0.2
people = 3
each = bill * (1 + tip_rate) / people # 60.0
print(f"... | chat | [
{
"role": "system",
"content": "You are a careful reviewer of figures."
},
{
"role": "user",
"content": "A $150 dinner bill gets a 20% tip, and 3 people share the cost equally. What is each person's share?"
},
{
"role": "assistant",
"content": " bill = 150\n tip_rate = 20 / 100... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "60.00", "printed": "60.00", "notation": null} |
nlprog_det-setting-0046067 | One can of paint covers 400 square feet. How many cans are needed for 713 square feet of wall?
Python version:
```python
import math
area = 713
coverage = 400
cans = math.ceil(area / coverage) # 2
print(cans)
```
stdout = 2
2 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0046068 | What does $5,000 grow to in 4 years at 2% annual compounding?
Programmatically:
```python
principal = 5000
rate = 2 / 100
years = 4
value = principal * (1 + rate) ** years
print(f"{value:.2f}")
```
When run, it prints 5412.16, as expected.
The balance is $5,412.16. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "5412.16", "printed": "5412.16", "notation": null} |
nlprog_det-setting-0046069 | Convert 4 h 44 min (the length of a film) to minutes.
In Python:
hours = 4
minutes = 44
total_minutes = hours * 60 + minutes # 284
print(total_minutes)
(Printed result: 284)
The film lasted 284 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "284", "printed": "284", "notation": null} |
nlprog_det-setting-0046070 | A printer costs $250. It is 20% off. What is the sale price?
Here's the code.
```python
price = 250
discount = 20 / 100 # 0.2
sale_price = price * (1 - discount) # 200.0
print(f"{sale_price:.2f}")
```
(Printed: 200.00)
It costs $200.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "200.00", "printed": "200.00", "notation": null} |
nlprog_det-setting-0046071 | A party has 30 days to respond to a motion served on February 10, 2020, with 3 days added because service was by mail. When is the response due?
Python makes this quick:
```python
from datetime import date, timedelta
served = date(2020, 2, 10) # datetime.date(2020, 2, 10)
response_days = 30
mail_days = 3
due = served... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 175 | {"gold": "2020-03-14", "printed": "2020-03-14", "notation": null} |
nlprog_det-setting-0046072 | Monthly: $25. Annual: $288. What is saved per year by paying annually?
Python code:
```python
monthly = 25
yearly = 288
savings = monthly * 12 - yearly # 12
print(savings)
```
Run output: 12
$12 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0046073 | <|start|><|user|>
If a 2-year limitations period starts on June 7, 2024, when does it end?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2024, 6, 7) # datetime.date(2024, 6, 7)
years = 2
expires = accrued.replace(year=accrued.year + years) # datetime.date(2026, 6, 7)
print(expires.isoformat(... | chat | [
{
"role": "user",
"content": "If a 2-year limitations period starts on June 7, 2024, when does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrued = date(2024, 6, 7) # datetime.date(2024, 6, 7)\nyears = 2\nexpires = accrued.replace(year=accrued.year + ye... | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "2026-06-07", "printed": "2026-06-07", "notation": null} |
nlprog_det-setting-0046074 | <|start|><|system|>
Write short, precise answers.<|eot|>
<|user|>
At 45 miles per hour, how many minutes does a 180-mile trip take?<|eot|>
<|assistant|>
```python
distance = 180
speed = 45
minutes = distance / speed * 60
print(round(minutes))
```
Run result — 240
240 minutes.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Write short, precise answers."
},
{
"role": "user",
"content": "At 45 miles per hour, how many minutes does a 180-mile trip take?"
},
{
"role": "assistant",
"content": "```python\ndistance = 180\nspeed = 45\nminutes = distance / speed * 60\nprint(round... | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "240", "printed": "240", "notation": null} |
nlprog_det-setting-0046075 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "py_exec", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "conver... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"py_exec\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source c... | nlprog_det | setting | original | null | deterministic | [] | [] | 342 | {"gold": "2426.96", "printed": "2426.96", "notation": null} |
nlprog_det-setting-0046076 | <|start|><|user|>
A lawyer's fee is 40% of a $40,000 recovery. How large is the fee?<|eot|>
<|assistant|>
```python
recovery = 40000
rate = 40 / 100 # 0.4
fee = recovery * rate # 16000.0
print(f"{fee:.2f}")
```
stdout:
16000.00
The fee is $16,000.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lawyer's fee is 40% of a $40,000 recovery. How large is the fee?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 40000\nrate = 40 / 100 # 0.4\nfee = recovery * rate # 16000.0\nprint(f\"{fee:.2f}\")\n```\nstdout:\n16000.00\n\nThe fee is $16,000.00."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "16000.00", "printed": "16000.00", "notation": null} |
nlprog_det-setting-0046077 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "python_exec", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"python_exec\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Pytho... | nlprog_det | setting | original | null | deterministic | [] | [] | 244 | {"gold": "735", "printed": "735", "notation": null} |
nlprog_det-setting-0046078 | Each of Femi's walks burns 300 calories. How many calories over 4 walks?
Python does the arithmetic:
per_session = 300
sessions = 4
total = per_session * sessions # 1200
print(total)
Execution result: 1200
1200 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "1200", "printed": "1200", "notation": null} |
nlprog_det-setting-0046079 | <|start|><|user|>
Shipping costs $10 plus $0.75 per pound. What does a 29-pound parcel cost to ship?<|eot|>
<|assistant|>
```python
base = 10
per_pound = 0.75
weight = 29
cost = base + per_pound * weight # 31.75
print(f"{cost:.2f}")
```
Executing it gives: 31.75
The charge is $31.75.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Shipping costs $10 plus $0.75 per pound. What does a 29-pound parcel cost to ship?"
},
{
"role": "assistant",
"content": "```python\nbase = 10\nper_pound = 0.75\nweight = 29\ncost = base + per_pound * weight # 31.75\nprint(f\"{cost:.2f}\")\n```\nExecuting it gives:... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "31.75", "printed": "31.75", "notation": null} |
nlprog_det-setting-0046080 | A lease runs for 24 months at $850 per month. How much rent is paid over the whole term?
Here's the code.
```python
monthly_rent = 850
months = 24
total = monthly_rent * months # 20400
print(total)
```
The program prints: 20400
The rent over the term is $20,400. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "20400", "printed": "20400", "notation": null} |
nlprog_det-setting-0046081 | <|start|><|user|>
What is -10 degrees Celsius in Fahrenheit?<|eot|>
<|assistant|>
```python
celsius = -10
fahrenheit = celsius * 9 / 5 + 32 # 14.0
print(round(fahrenheit))
```
Program output — 14
It equals 14 degrees Fahrenheit.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is -10 degrees Celsius in Fahrenheit?"
},
{
"role": "assistant",
"content": "```python\ncelsius = -10\nfahrenheit = celsius * 9 / 5 + 32 # 14.0\nprint(round(fahrenheit))\n```\nProgram output — 14\n\nIt equals 14 degrees Fahrenheit."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0046082 | A 6 × 12 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?
Python does the arithmetic:
```python
import math
length = 6
width = 12
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 18
print(tiles)
```
# output: 18
It takes 18 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0046083 | One can of paint covers 300 square feet. How many cans are needed for 928 square feet of wall?
A Python solution:
```python
import math
area = 928
coverage = 300
cans = math.ceil(area / coverage)
print(cans)
```
Executed, it shows 4.
Buy 4 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0046084 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}
{"name": "fetch_filing", "descripti... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requi... | nlprog_det | setting | original | null | deterministic | [] | [] | 332 | {"gold": "1:40 PM", "printed": "1:40 PM", "notation": null} |
nlprog_det-setting-0046085 | Pack A has 12 items for $7.03. Pack B has 15 items for $7.55. Which has the lower price per item?
We can compute it in Python.
pack_a = 7.03 / 12 # 0.5858333333333333
pack_b = 7.55 / 15 # 0.5033333333333333
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
# out: B
Pack B is cheaper pe... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0046087 | A 100-mile drive at a steady 60 mph takes how many minutes?
Coded up:
distance = 100
speed = 60
minutes = distance / speed * 60 # 100.0
print(round(minutes))
When run, it prints: 100
The trip takes 100 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 70 | {"gold": "100", "printed": "100", "notation": null} |
nlprog_det-setting-0046088 | <|start|><|user|>
A service costs $29 a month or $318 a year. How much does the yearly plan save over 12 monthly payments?<|eot|>
<|assistant|>
The annual plan saves $30.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A service costs $29 a month or $318 a year. How much does the yearly plan save over 12 monthly payments?"
},
{
"role": "assistant",
"content": "The annual plan saves $30."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0046089 | <|start|><|user|>
2 books come back 10 days late, at $0.10 a day each. What is the fine?<|eot|>
<|assistant|>
```python
per_day = 0.1
days_late = 10
books = 2
fine = per_day * days_late * books # 2.0
print(f"{fine:.2f}")
```
Output:
2.00
$2.00 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "2 books come back 10 days late, at $0.10 a day each. What is the fine?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.1\ndays_late = 10\nbooks = 2\nfine = per_day * days_late * books # 2.0\nprint(f\"{fine:.2f}\")\n```\nOutput:\n2.00\n\n$2.00 is owed.... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "2.00", "printed": "2.00", "notation": null} |
nlprog_det-setting-0046090 | 184 copies of a 6-page packet are printed at $0.15 per page. What is the cost?
Python version:
pages = 6
copies = 184
cost_per_page = 0.15
cost = pages * copies * cost_per_page # 165.6
print(f"{cost:.2f}")
Run output — 165.60
Printing costs $165.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "165.60", "printed": "165.60", "notation": null} |
nlprog_det-setting-0046091 | <|start|><|user|>
Split $1,924 between Emeka and Lena in the ratio 1 to 3. What is Emeka's share?<|eot|>
<|assistant|>
total = 1924
parts_a = 1
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b) # 481
print(share_a)
stdout = 481
Emeka's share is $481.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Split $1,924 between Emeka and Lena in the ratio 1 to 3. What is Emeka's share?"
},
{
"role": "assistant",
"content": " total = 1924\n parts_a = 1\n parts_b = 3\n share_a = total * parts_a // (parts_a + parts_b) # 481\n print(share_a)\nstdout = 481\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "481", "printed": "481", "notation": null} |
nlprog_det-setting-0046092 | <|start|><|user|>
Someone born May 8, 2010 turns how old by November 7, 2029? Give the age in whole years.<|eot|>
<|assistant|>
```python
from datetime import date
born = date(2010, 5, 8) # datetime.date(2010, 5, 8)
on = date(2029, 11, 7) # datetime.date(2029, 11, 7)
age = on.year - born.year - ((on.month, on.day) < ... | chat | [
{
"role": "user",
"content": "Someone born May 8, 2010 turns how old by November 7, 2029? Give the age in whole years."
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(2010, 5, 8) # datetime.date(2010, 5, 8)\non = date(2029, 11, 7) # datetime.date(2029, ... | nlprog_det | setting | original | null | deterministic | [] | [] | 160 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0046093 | Divide 110 items among 7 groups as evenly as possible with equal groups. How many per group, and how many remain?
Python code:
total = 110
groups = 7
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
The program prints: 15 each, 5 left over
The answer: 15 e... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "15 each, 5 left over", "printed": "15 each, 5 left over", "notation": null} |
nlprog_det-setting-0046094 | After an initial $6,000, the remainder of a $30,000 grant is paid in 6 equal parts. What is each part?
As Python:
```python
grant = 30000
up_front = 6000
installments = 6
each = (grant - up_front) / installments # 4000.0
print(f"{each:.2f}")
```
Printed = 4000.00
Each installment is $4,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "4000.00", "printed": "4000.00", "notation": null} |
nlprog_det-setting-0046095 | <|start|><|user|>
At an exchange rate of 1.12 USD per EUR, how many USD is 7,897 EUR?<|eot|>
<|assistant|>
It converts to 8,844.64 USD.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At an exchange rate of 1.12 USD per EUR, how many USD is 7,897 EUR?"
},
{
"role": "assistant",
"content": "It converts to 8,844.64 USD."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 47 | {"gold": "8844.64", "printed": "8844.64", "notation": null} |
nlprog_det-setting-0046096 | A 36-month warranty starts on June 24, 2027. On what date does it end?
The Python version:
```python
from datetime import date
start = date(2027, 6, 24)
months = 36
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
On running... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "2030-06-24", "printed": "2030-06-24", "notation": null} |
nlprog_det-setting-0046097 | Walls total 609 sq ft and each can covers 250 sq ft. How many cans should be bought?
```python
import math
area = 609
coverage = 250
cans = math.ceil(area / coverage) # 3
print(cans)
```
Result — 3
Buy 3 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0046098 | <|start|><|user|>
A storeroom has 484 paper reams. The office uses 40 a day. How many are left after 12 days?<|eot|>
<|assistant|>
```python
stock = 484
per_day = 40
days = 12
left = stock - per_day * days
print(left)
```
Shell output: 4
4 remain.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A storeroom has 484 paper reams. The office uses 40 a day. How many are left after 12 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 484\nper_day = 40\ndays = 12\nleft = stock - per_day * days\nprint(left)\n```\nShell output: 4\n\n4 remain."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0046099 | If a 135-minute class begins at 9:10 AM, what time does it finish?
Python:
```python
start = 9 * 60 + 10
end = start + 135
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Run output — 11:25 AM
The class finishes at 11:25 AM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "11:25 AM", "printed": "11:25 AM", "notation": null} |
nlprog_det-setting-0046101 | How many minutes pass from 10:42 AM to 1:25 PM on the same day?
As Python:
```python
start = 10 * 60 + 42 # 642
end = 13 * 60 + 25 # 805
print(end - start)
```
It prints 163, as expected.
163 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "163", "printed": "163", "notation": null} |
nlprog_det-setting-0046103 | Fixed costs are $2,500. Each unit sells for $40 and costs $30 to make. How many units must be sold to break even?
Let's compute it with Python.
```python
import math
fixed = 2500
price = 40
variable = 30
units = math.ceil(fixed / (price - variable)) # 250
print(units)
```
(stdout: 250)
250 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "250", "printed": "250", "notation": null} |
nlprog_det-setting-0046104 | Convert 18.4 km to meters.
A short script:
```python
km = 18.4
meters = km * 1000 # 18400.0
print(round(meters))
```
stdout: 18400
18,400 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "18400", "printed": "18400", "notation": null} |
nlprog_det-setting-0046105 | <|start|><|user|>
The firm was founded in 1996. How many years had passed by 2019?<|eot|>
<|assistant|>
```python
start_year = 1996
end_year = 2019
print(end_year - start_year)
```
Interpreter output — 23
That is 23 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The firm was founded in 1996. How many years had passed by 2019?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 1996\nend_year = 2019\nprint(end_year - start_year)\n```\nInterpreter output — 23\n\nThat is 23 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 73 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0046106 | What is the total rent on a 18-month lease at $1,200 a month?
A Python solution:
```python
monthly_rent = 1200
months = 18
total = monthly_rent * months # 21600
print(total)
```
Python prints 21600.
In total, $21,600 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "21600", "printed": "21600", "notation": null} |
nlprog_det-setting-0046107 | Pack A has 12 items for $6.19. Pack B has 20 items for $6.43. Which has the lower price per item?
We can compute it in Python.
```python
pack_a = 6.19 / 12 # 0.5158333333333334
pack_b = 6.43 / 20 # 0.3215
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
stdout — B
Pack B is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0046108 | Rosa earns a 4% commission on $23,733 of sales. What is the commission?
Python does the arithmetic:
```python
sales = 23733
rate = 4 / 100 # 0.04
commission = sales * rate # 949.32
print(f"{commission:.2f}")
```
(Output: 949.32)
Rosa earns $949.32. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "949.32", "printed": "949.32", "notation": null} |
nlprog_det-setting-0046109 | Counting the first and last day, how many days are there from December 18, 2023 through December 26, 2023?
Translated to Python:
from datetime import date
first = date(2023, 12, 18) # datetime.date(2023, 12, 18)
last = date(2023, 12, 26) # datetime.date(2023, 12, 26)
days = (last - first).days + 1 #... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0046110 | Revenue is $5,000 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)?
Script:
```python
revenue = 5000
costs = 4000
profit = revenue - costs # 1000
margin = profit / revenue * 100 # 20.0
print(round(margin, 1))
```
Execution result — 20.0
Profit is 20.0% of revenue. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "20.0", "printed": "20.0", "notation": null} |
nlprog_det-setting-0046111 | A $1,000 security deposit has deductions of $60 and $120. How much is refunded?
Set it up in Python:
```python
deposit = 1000
deductions = [60, 120]
refund = deposit - sum(deductions) # 820
print(refund)
```
Running it prints: 820
$820 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "820", "printed": "820", "notation": null} |
nlprog_det-setting-0046112 | A penalty of $100 a day accrues, capped at $2,500. What is owed after 47 days?
Here is the program.
```python
per_day = 100
days = 47
cap = 2500
fine = min(per_day * days, cap) # 2500
print(fine)
```
The program prints: 2500
$2,500 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "2500", "printed": "2500", "notation": null} |
nlprog_det-setting-0046113 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "python_exec", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "lookup_statu... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"python_exec\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}... | nlprog_det | setting | original | null | deterministic | [] | [] | 337 | {"gold": "781.05", "printed": "781.05", "notation": null} |
nlprog_det-setting-0046114 | <|start|><|user|>
A garage charges $3 an hour, never more than $24 a day. How much for 2 hours?<|eot|>
<|assistant|>
```python
rate = 3
hours = 2
daily_max = 24
cost = min(rate * hours, daily_max) # 6
print(cost)
```
Shell output: 6
The charge is $6.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A garage charges $3 an hour, never more than $24 a day. How much for 2 hours?"
},
{
"role": "assistant",
"content": "```python\nrate = 3\nhours = 2\ndaily_max = 24\ncost = min(rate * hours, daily_max) # 6\nprint(cost)\n```\nShell output: 6\n\nThe charge is $6."
}... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0046115 | What is a 22% tip on a $68.64 bill?
Here's the code.
```python
bill = 68.64
tip_rate = 22 / 100 # 0.22
tip = bill * tip_rate # 15.1008
print(f"{tip:.2f}")
```
Python prints 15.10, as expected.
The tip is $15.10. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "15.10", "printed": "15.10", "notation": null} |
nlprog_det-setting-0046116 | Dara was born on August 2, 1961. How old is Dara on August 17, 2021?
Python code:
```python
from datetime import date
born = date(1961, 8, 2) # datetime.date(1961, 8, 2)
on = date(2021, 8, 17) # datetime.date(2021, 8, 17)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 60
print(age)
```
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 154 | {"gold": "60", "printed": "60", "notation": null} |
nlprog_det-setting-0046117 | A lawyer's fee is 33% of a $60,000 recovery. How large is the fee?
Here's the code.
```python
recovery = 60000
rate = 33 / 100 # 0.33
fee = recovery * rate # 19800.0
print(f"{fee:.2f}")
```
Shell output — 19800.00
The fee is $19,800.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "19800.00", "printed": "19800.00", "notation": null} |
nlprog_det-setting-0046118 | <|start|><|user|>
What day of the week is October 5, 1997?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(1997, 10, 5) # datetime.date(1997, 10, 5)
print(hearing.strftime("%A"))
```
(Printed: Sunday)
It is a Sunday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What day of the week is October 5, 1997?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(1997, 10, 5) # datetime.date(1997, 10, 5)\nprint(hearing.strftime(\"%A\"))\n```\n(Printed: Sunday)\n\nIt is a Sunday."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "Sunday", "printed": "Sunday", "notation": null} |
nlprog_det-setting-0046119 | A garage charges $3 an hour, never more than $24 a day. How much for 12 hours?
Python:
```python
rate = 3
hours = 12
daily_max = 24
cost = min(rate * hours, daily_max) # 24
print(cost)
```
Python prints 24, as expected.
Parking costs $24. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0046120 | Sales went from 2,000 to 2,400. What is the percent change?
```python
old = 2000
new = 2400
change = (new - old) / old * 100 # 20.0
print(round(change))
```
Console:
20
The change is 20%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0046122 | <|start|><|user|>
39 markers cost $8 apiece. With 6% tax added, what is the total?<|eot|>
<|assistant|>
```python
quantity = 39
unit_price = 8
subtotal = quantity * unit_price # 312
total = subtotal * (1 + 6 / 100) # 330.72
print(f"{total:.2f}")
```
(stdout: 330.72)
The total with tax is $330.72.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "39 markers cost $8 apiece. With 6% tax added, what is the total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 39\nunit_price = 8\nsubtotal = quantity * unit_price # 312\ntotal = subtotal * (1 + 6 / 100) # 330.72\nprint(f\"{total:.2f}\")\n```\n(stdo... | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "330.72", "printed": "330.72", "notation": null} |
nlprog_det-setting-0046123 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_unit", "to_unit"... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\":... | nlprog_det | setting | original | null | deterministic | [] | [] | 401 | {"gold": "17.48", "printed": "17.48", "notation": null} |
nlprog_det-setting-0046124 | With 40% off, what does a $75 bicycle helmet cost?
Here is a short program for it.
```python
price = 75
discount = 40 / 100 # 0.4
sale_price = price * (1 - discount) # 45.0
print(f"{sale_price:.2f}")
```
The program outputs 45.00.
It costs $45.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "45.00", "printed": "45.00", "notation": null} |
nlprog_det-setting-0046125 | What percentage of $8,000 is $6,000?
A Python solution:
```python
budget = 8000
spent = 6000
percent = spent / budget * 100 # 75.0
print(round(percent, 1))
```
Run it and it prints 75.0.
75.0% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "75.0", "printed": "75.0", "notation": null} |
nlprog_det-setting-0046126 | A 10-day notice period begins on August 28, 2021. On what date does it end?
Python version:
```python
from datetime import date, timedelta
start = date(2021, 8, 28) # datetime.date(2021, 8, 28)
end = start + timedelta(days=10) # datetime.date(2021, 9, 7)
print(end.isoformat())
```
stdout: 2021-09-07
It ends on Sept... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "2021-09-07", "printed": "2021-09-07", "notation": null} |
nlprog_det-setting-0046127 | An unpaid balance of $4,000 accrues 1.5% simple interest per month. How much interest accrues in 3 months?
Programmatically:
```python
balance = 4000
monthly_rate = 1.5 / 100 # 0.015
months = 3
interest = balance * monthly_rate * months # 180.0
print(f"{interest:.2f}")
```
Run output: 180.00
The interest is $180.00... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "180.00", "printed": "180.00", "notation": null} |
nlprog_det-setting-0046128 | <|start|><|user|>
287 volunteers are split into 8 equal teams. How many are on each team, and how many are left over?<|eot|>
<|assistant|>
```python
total = 287
groups = 8
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
This prints 35 each, 7 left over.
35 each, 7 lef... | chat | [
{
"role": "user",
"content": "287 volunteers are split into 8 equal teams. How many are on each team, and how many are left over?"
},
{
"role": "assistant",
"content": "```python\ntotal = 287\ngroups = 8\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remainder} left o... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "35 each, 7 left over", "printed": "35 each, 7 left over", "notation": null} |
nlprog_det-setting-0046129 | Express 243 hours in days and hours.
We can compute it in Python.
```python
hours = 243
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Run result = 10 days and 3 hours
243 hours is 10 days and 3 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "10 days and 3 hours", "printed": "10 days and 3 hours", "notation": null} |
nlprog_det-setting-0046130 | How many 2-foot square tiles cover a 11 ft by 14 ft floor (round up)?
```python
import math
length = 11
width = 14
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 39
print(tiles)
```
# console output: 39
It takes 39 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "39", "printed": "39", "notation": null} |
nlprog_det-setting-0046131 | Count 14 days forward from January 14, 2019. What date is that?
In Python:
from datetime import date, timedelta
start = date(2019, 1, 14) # datetime.date(2019, 1, 14)
end = start + timedelta(days=14) # datetime.date(2019, 1, 28)
print(end.isoformat())
Run result — 2019-01-28
It ends on January 28, 2... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "2019-01-28", "printed": "2019-01-28", "notation": null} |
nlprog_det-setting-0046132 | Carmen's scores were 56, 79 and 72. What is the average score?
Python makes this quick:
```python
scores = [56, 79, 72]
average = sum(scores) // len(scores) # 69
print(average)
```
Output of the run: 69
The average score is 69. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "69", "printed": "69", "notation": null} |
nlprog_det-setting-0046133 | A settlement of $1,200 is split equally among 5 parties. How much does each party receive?
The computation:
settlement = 1200
parties = 5
share = settlement // parties # 240
print(share)
Run output — 240
Each share is $240. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 69 | {"gold": "240", "printed": "240", "notation": null} |
nlprog_det-setting-0046134 | <|start|><|system|>
You are a careful reviewer of figures.<|eot|>
<|user|>
Shipping costs $8 plus $0.75 per pound. What does a 24-pound parcel cost to ship?<|eot|>
<|assistant|>
The charge is $26.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a careful reviewer of figures."
},
{
"role": "user",
"content": "Shipping costs $8 plus $0.75 per pound. What does a 24-pound parcel cost to ship?"
},
{
"role": "assistant",
"content": "The charge is $26.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 56 | {"gold": "26.00", "printed": "26.00", "notation": null} |
nlprog_det-setting-0046135 | A measure needs at least 60% of 84 votes. How many votes is that, rounded up?
A short script:
```python
import math
voters = 84
needed = math.ceil(voters * 60 / 100) # 51
print(needed)
```
Run it and it prints: 51
At least 51 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "51", "printed": "51", "notation": null} |
nlprog_det-setting-0046136 | <|start|><|user|>
Leon earns a 2% commission on $75,569 of sales. What is the commission?<|eot|>
<|assistant|>
```python
sales = 75569
rate = 2 / 100 # 0.02
commission = sales * rate # 1511.38
print(f"{commission:.2f}")
```
This prints 1511.38, as expected.
Leon earns $1,511.38.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Leon earns a 2% commission on $75,569 of sales. What is the commission?"
},
{
"role": "assistant",
"content": "```python\nsales = 75569\nrate = 2 / 100 # 0.02\ncommission = sales * rate # 1511.38\nprint(f\"{commission:.2f}\")\n```\nThis prints 1511.38, as expected... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "1511.38", "printed": "1511.38", "notation": null} |
nlprog_det-setting-0046138 | Hana earns $22.40 an hour and time and a half for hours over 40. What is the pay for a 52-hour week?
Code:
```python
rate = 22.4
hours = 52
regular = 40 * rate # 896.0
overtime = (hours - 40) * rate * 1.5 # 403.19999999999993
pay = regular + overtime # 1299.1999999999998
print(f"{pay:.2f}")
```
Running this gives 1... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 150 | {"gold": "1299.20", "printed": "1299.20", "notation": null} |
nlprog_det-setting-0046139 | <|start|><|user|>
An unpaid balance of $2,500 accrues 1.5% simple interest per month. How much interest accrues in 2 months?<|eot|>
<|assistant|>
```python
balance = 2500
monthly_rate = 1.5 / 100 # 0.015
months = 2
interest = balance * monthly_rate * months # 75.0
print(f"{interest:.2f}")
```
# stdout: 75.00
The int... | chat | [
{
"role": "user",
"content": "An unpaid balance of $2,500 accrues 1.5% simple interest per month. How much interest accrues in 2 months?"
},
{
"role": "assistant",
"content": "```python\nbalance = 2500\nmonthly_rate = 1.5 / 100 # 0.015\nmonths = 2\ninterest = balance * monthly_rate * months # ... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "75.00", "printed": "75.00", "notation": null} |
nlprog_det-setting-0046140 | 700 files go into boxes of 50. How many boxes does that take?
```python
import math
files = 700
per_box = 50
boxes = math.ceil(files / per_box)
print(boxes)
```
The program prints: 14
14 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0046141 | A hearing is set for June 27, 2012. What day of the week is that?
Translated to Python:
```python
from datetime import date
hearing = date(2012, 6, 27) # datetime.date(2012, 6, 27)
print(hearing.strftime("%A"))
```
Run output — Wednesday
June 27, 2012 is a Wednesday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "Wednesday", "printed": "Wednesday", "notation": null} |
nlprog_det-setting-0046142 | Water costs $18 a month plus $4.75 for each 1,000 gallons over 3,000. What is owed for 24,000 gallons?
A few lines of Python do it:
```python
base = 18
rate = 4.75
used = 24
free = 3
bill = base + rate * max(0, used - free) # 117.75
print(f"{bill:.2f}")
```
Output: 117.75
$117.75 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "117.75", "printed": "117.75", "notation": null} |
nlprog_det-setting-0046143 | <|start|><|system|>
Show working only when it helps.<|eot|>
<|user|>
After an initial $2,000, the remainder of a $24,000 grant is paid in 6 equal parts. What is each part?<|eot|>
<|assistant|>
```python
grant = 24000
up_front = 2000
installments = 6
each = (grant - up_front) / installments # 3666.6666666666665
print(f... | chat | [
{
"role": "system",
"content": "Show working only when it helps."
},
{
"role": "user",
"content": "After an initial $2,000, the remainder of a $24,000 grant is paid in 6 equal parts. What is each part?"
},
{
"role": "assistant",
"content": "```python\ngrant = 24000\nup_front = 2000\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "3666.67", "printed": "3666.67", "notation": null} |
nlprog_det-setting-0046144 | At $0.67 per mile, what is the reimbursement for 447 miles?
In code:
```python
miles = 447
rate = 0.67
reimbursement = miles * rate # 299.49
print(f"{reimbursement:.2f}")
```
Python prints 299.49, as expected.
Fiona is owed $299.49. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "299.49", "printed": "299.49", "notation": null} |
nlprog_det-setting-0046145 | <|start|><|system|>
Keep explanations short.<|eot|>
<|user|>
Split $4,832 between Eamon and Vera in the ratio 3 to 5. What is Eamon's share?<|eot|>
<|assistant|>
```python
total = 4832
parts_a = 3
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 1812
print(share_a)
```
stdout = 1812
Eamon's share is $1,... | chat | [
{
"role": "system",
"content": "Keep explanations short."
},
{
"role": "user",
"content": "Split $4,832 between Eamon and Vera in the ratio 3 to 5. What is Eamon's share?"
},
{
"role": "assistant",
"content": "```python\ntotal = 4832\nparts_a = 3\nparts_b = 5\nshare_a = total * parts... | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "1812", "printed": "1812", "notation": null} |
nlprog_det-setting-0046146 | Someone born November 15, 1974 turns how old by November 13, 2029? Give the age in whole years.
Python makes this quick:
```python
from datetime import date
born = date(1974, 11, 15)
on = date(2029, 11, 13)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day))
print(age)
```
(Result: 54)
The age i... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "54", "printed": "54", "notation": null} |
nlprog_det-setting-0046147 | <|start|><|user|>
A recipe for 8 people uses 200 grams of lentils. How many grams are needed for 12 people?<|eot|>
<|assistant|>
```python
grams = 200
serves = 8
needed_for = 12
scaled = grams * needed_for // serves # 300
print(scaled)
```
It prints 300, as expected.
Use 300 g of lentils.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A recipe for 8 people uses 200 grams of lentils. How many grams are needed for 12 people?"
},
{
"role": "assistant",
"content": "```python\ngrams = 200\nserves = 8\nneeded_for = 12\nscaled = grams * needed_for // serves # 300\nprint(scaled)\n```\nIt prints 300, as ... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0046148 | <|start|><|system|>
You are an assistant for a small office.<|eot|>
<|user|>
Oskar lends $5,000 at 2% simple interest per year for 3 years. How much interest is earned?<|eot|>
<|assistant|>
```python
principal = 5000
rate = 2 / 100 # 0.02
years = 3
interest = principal * rate * years # 300.0
print(f"{interest:.2f}")
... | chat | [
{
"role": "system",
"content": "You are an assistant for a small office."
},
{
"role": "user",
"content": "Oskar lends $5,000 at 2% simple interest per year for 3 years. How much interest is earned?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 5000\nrate = 2 / 100 #... | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "300.00", "printed": "300.00", "notation": null} |
nlprog_det-setting-0046149 | Someone works 38 hours at $17.73 per hour. What are the earnings?
We write it as a program:
```python
rate = 17.73
hours = 38
earnings = rate * hours
print(f"{earnings:.2f}")
```
# program output: 673.74
That earns $673.74. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "673.74", "printed": "673.74", "notation": null} |
nlprog_det-setting-0046150 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "eval_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|u... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"eval_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python ... | nlprog_det | setting | original | null | deterministic | [] | [] | 223 | {"gold": "1246", "printed": "1246", "notation": null} |
nlprog_det-setting-0046151 | <|start|><|user|>
A service costs $29 a month or $312 a year. How much does the yearly plan save over 12 monthly payments?<|eot|>
<|assistant|>
$36 is saved.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A service costs $29 a month or $312 a year. How much does the yearly plan save over 12 monthly payments?"
},
{
"role": "assistant",
"content": "$36 is saved."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0046152 | Papers were served by mail on September 7, 2018. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date?
As a program:
from datetime import date, timedelta
served = date(2018, 9, 7) # datetime.date(2018, 9, 7)
response_days = 28
mail_days = 3
due = served + ti... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 160 | {"gold": "2018-10-08", "printed": "2018-10-08", "notation": null} |
nlprog_det-setting-0046153 | A recipe for 6 people uses 150 grams of pasta. How many grams are needed for 10 people?
As a program:
```python
grams = 150
serves = 6
needed_for = 10
scaled = grams * needed_for // serves # 250
print(scaled)
```
# printed result: 250
250 grams of pasta are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "250", "printed": "250", "notation": null} |
nlprog_det-setting-0046154 | Sara was born on June 24, 1963. How old is Sara on May 5, 2022?
Python does the arithmetic:
```python
from datetime import date
born = date(1963, 6, 24) # datetime.date(1963, 6, 24)
on = date(2022, 5, 5) # datetime.date(2022, 5, 5)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 58
print... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 155 | {"gold": "58", "printed": "58", "notation": null} |
nlprog_det-setting-0046155 | The landlord deducts $150 from a $1,000 deposit. What is returned to the tenant?
Python, step by step:
deposit = 1000
deductions = [150]
refund = deposit - sum(deductions) # 850
print(refund)
Executing it gives 850, as expected.
The refund is $850. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "850", "printed": "850", "notation": null} |
nlprog_det-setting-0046156 | An attorney bills 6.5 hours at $150 per hour. What is the bill?
One way, in code:
```python
hours = 6.5
rate = 150
bill = hours * rate # 975.0
print(f"{bill:.2f}")
```
# out: 975.00
The bill is $975.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "975.00", "printed": "975.00", "notation": null} |
nlprog_det-setting-0046157 | Convert 2 h 29 min (the length of a deposition) to minutes.
One way, in code:
```python
hours = 2
minutes = 29
total_minutes = hours * 60 + minutes # 149
print(total_minutes)
```
Interpreter output: 149
That is 149 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "149", "printed": "149", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.