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-0075597 | <|start|><|user|>
The building opened in 2010. How many years had passed by 2040?<|eot|>
<|assistant|>
```python
start_year = 2010
end_year = 2040
print(end_year - start_year)
```
(Printed result: 30)
That is 30 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The building opened in 2010. How many years had passed by 2040?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 2010\nend_year = 2040\nprint(end_year - start_year)\n```\n(Printed result: 30)\n\nThat is 30 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0075598 | <|start|><|user|>
Pack A has 6 items for $8.32. Pack B has 18 items for $19.43. Which has the lower price per item?<|eot|>
<|assistant|>
```python
pack_a = 8.32 / 6 # 1.3866666666666667
pack_b = 19.43 / 18 # 1.0794444444444444
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
Running it prints B, as... | chat | [
{
"role": "user",
"content": "Pack A has 6 items for $8.32. Pack B has 18 items for $19.43. Which has the lower price per item?"
},
{
"role": "assistant",
"content": "```python\npack_a = 8.32 / 6 # 1.3866666666666667\npack_b = 19.43 / 18 # 1.0794444444444444\ncheaper = \"A\" if pack_a < pack_b... | nlprog_det | setting | original | null | deterministic | [] | [] | 154 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0075599 | Convert 46.1 km to meters.
We can compute it in Python.
```python
km = 46.1
meters = km * 1000 # 46100.0
print(round(meters))
```
Python prints: 46100
46,100 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "46100", "printed": "46100", "notation": null} |
nlprog_det-setting-0075600 | <|start|><|system|>
Keep answers short and correct.<|eot|>
<|user|>
An unpaid balance of $1,000 accrues 1% simple interest per month. How much interest accrues in 2 months?<|eot|>
<|assistant|>
```python
balance = 1000
monthly_rate = 1 / 100 # 0.01
months = 2
interest = balance * monthly_rate * months # 20.0
print(f"... | chat | [
{
"role": "system",
"content": "Keep answers short and correct."
},
{
"role": "user",
"content": "An unpaid balance of $1,000 accrues 1% simple interest per month. How much interest accrues in 2 months?"
},
{
"role": "assistant",
"content": "```python\nbalance = 1000\nmonthly_rate = ... | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "20.00", "printed": "20.00", "notation": null} |
nlprog_det-setting-0075601 | A $12,000 grant pays $2,000 up front and the rest in 3 equal installments. How large is each installment?
Here's the code.
```python
grant = 12000
up_front = 2000
installments = 3
each = (grant - up_front) / installments # 3333.3333333333335
print(f"{each:.2f}")
```
(Result: 3333.33)
$3,333.33 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "3333.33", "printed": "3333.33", "notation": null} |
nlprog_det-setting-0075602 | Counting only Monday through Friday, how many business days are there after December 2, 2022 through December 23, 2022?
Programmatically:
from datetime import date, timedelta
start = date(2022, 12, 2)
end = date(2022, 12, 23)
count = 0
for k in range(1, (end - start).days + 1):
if (start + ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0075603 | <|start|><|user|>
Convert 4,626 CHF to USD at 1 CHF = 1.31 USD.<|eot|>
<|assistant|>
It converts to 6,060.06 USD.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 4,626 CHF to USD at 1 CHF = 1.31 USD."
},
{
"role": "assistant",
"content": "It converts to 6,060.06 USD."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "6060.06", "printed": "6060.06", "notation": null} |
nlprog_det-setting-0075604 | Monthly rent is $1,500. A tenant moves in with 17 days left in a 30-day month. What is the prorated rent?
Code:
```python
rent = 1500
days_in_month = 30
days_occupied = 17
prorated = rent * days_occupied / days_in_month # 850.0
print(f"{prorated:.2f}")
```
(Printed: 850.00)
The prorated rent is $850.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "850.00", "printed": "850.00", "notation": null} |
nlprog_det-setting-0075605 | <|start|><|user|>
A 8-day trip pays $59 a day for meals and $175 a night for lodging (7 nights). What is the total allowance?<|eot|>
<|assistant|>
```python
days = 8
meal_rate = 59
lodging_rate = 175
nights = days - 1 # 7
total = days * meal_rate + nights * lodging_rate # 1697
print(total)
```
It outputs 1697.
That ... | chat | [
{
"role": "user",
"content": "A 8-day trip pays $59 a day for meals and $175 a night for lodging (7 nights). What is the total allowance?"
},
{
"role": "assistant",
"content": "```python\ndays = 8\nmeal_rate = 59\nlodging_rate = 175\nnights = days - 1 # 7\ntotal = days * meal_rate + nights * lo... | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "1697", "printed": "1697", "notation": null} |
nlprog_det-setting-0075606 | <|start|><|user|>
A $48,000 grant pays $2,000 up front and the rest in 4 equal installments. How large is each installment?<|eot|>
<|assistant|>
Each installment is $11,500.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A $48,000 grant pays $2,000 up front and the rest in 4 equal installments. How large is each installment?"
},
{
"role": "assistant",
"content": "Each installment is $11,500.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 50 | {"gold": "11500.00", "printed": "11500.00", "notation": null} |
nlprog_det-setting-0075607 | Scale 300 g of oats from 8 servings to 2 servings.
We can compute it in Python.
grams = 300
serves = 8
needed_for = 2
scaled = grams * needed_for // serves
print(scaled)
(Run result: 75)
Use 75 g of oats. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "75", "printed": "75", "notation": null} |
nlprog_det-setting-0075608 | A $9,000 loan carries 8% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?
```python
principal = 9000
annual_rate = 8 / 100 # 0.08
months = 24
interest = principal * annual_rate * months / 12 # 1440.0
payment = (principal + interest) / months #... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "435.00", "printed": "435.00", "notation": null} |
nlprog_det-setting-0075609 | A client paid a $7,500 retainer. The firm has billed 4 hours at $200 per hour. How much of the retainer is left?
We can compute it in Python.
```python
retainer = 7500
hours = 4
rate = 200
left = retainer - hours * rate # 6700
print(left)
```
Executed, it shows: 6700
The remaining balance is $6,700. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "6700", "printed": "6700", "notation": null} |
nlprog_det-setting-0075610 | A $12,000 grant pays $3,000 up front and the rest in 4 equal installments. How large is each installment?
The Python version:
```python
grant = 12000
up_front = 3000
installments = 4
each = (grant - up_front) / installments # 2250.0
print(f"{each:.2f}")
```
Program output: 2250.00
Each installment is $2,250.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "2250.00", "printed": "2250.00", "notation": null} |
nlprog_det-setting-0075611 | <|start|><|user|>
A pack of 8 pens sells for $440. What does each cost?<|eot|>
<|assistant|>
Each one costs $55.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A pack of 8 pens sells for $440. What does each cost?"
},
{
"role": "assistant",
"content": "Each one costs $55."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "55", "printed": "55", "notation": null} |
nlprog_det-setting-0075612 | <|start|><|user|>
Printing costs 10 cents a page. What does it cost to print 12 copies of a 30-page handout?<|eot|>
<|assistant|>
The job costs $36.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Printing costs 10 cents a page. What does it cost to print 12 copies of a 30-page handout?"
},
{
"role": "assistant",
"content": "The job costs $36.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "36.00", "printed": "36.00", "notation": null} |
nlprog_det-setting-0075613 | A training session lasted 1 hours and 39 minutes. How many minutes is that?
Code:
```python
hours = 1
minutes = 39
total_minutes = hours * 60 + minutes # 99
print(total_minutes)
```
The printout reads: 99
That is 99 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "99", "printed": "99", "notation": null} |
nlprog_det-setting-0075614 | Scale 150 g of pasta from 8 servings to 4 servings.
Here is a short program for it.
```python
grams = 150
serves = 8
needed_for = 4
scaled = grams * needed_for // serves # 75
print(scaled)
```
It prints 75, as expected.
75 grams of pasta are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "75", "printed": "75", "notation": null} |
nlprog_det-setting-0075615 | <|start|><|user|>
Equal monthly payments repay $2,400 plus 6% simple yearly interest over 24 months. How large is a payment?<|eot|>
<|assistant|>
```python
principal = 2400
annual_rate = 6 / 100 # 0.06
months = 24
interest = principal * annual_rate * months / 12 # 288.0
payment = (principal + interest) / months # 11... | chat | [
{
"role": "user",
"content": "Equal monthly payments repay $2,400 plus 6% simple yearly interest over 24 months. How large is a payment?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 2400\nannual_rate = 6 / 100 # 0.06\nmonths = 24\ninterest = principal * annual_rate * months / 1... | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "112.00", "printed": "112.00", "notation": null} |
nlprog_det-setting-0075616 | <|start|><|user|>
4 bike rides at 200 calories each burn how many calories in total?<|eot|>
<|assistant|>
```python
per_session = 200
sessions = 4
total = per_session * sessions # 800
print(total)
```
Python prints 800.
800 calories in total.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "4 bike rides at 200 calories each burn how many calories in total?"
},
{
"role": "assistant",
"content": "```python\nper_session = 200\nsessions = 4\ntotal = per_session * sessions # 800\nprint(total)\n```\nPython prints 800.\n\n800 calories in total."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "800", "printed": "800", "notation": null} |
nlprog_det-setting-0075617 | Goods bought on January 16, 2024 carry a 6-month warranty. When does it expire?
Program:
```python
from datetime import date
start = date(2024, 1, 16)
months = 6
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
# printed res... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "2024-07-16", "printed": "2024-07-16", "notation": null} |
nlprog_det-setting-0075618 | A measure needs at least 67% of 214 votes. How many votes is that, rounded up?
Here's the code.
```python
import math
voters = 214
needed = math.ceil(voters * 67 / 100)
print(needed)
```
# output: 144
144 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "144", "printed": "144", "notation": null} |
nlprog_det-setting-0075619 | Rania and Bruna share $441 in the ratio 2:5. How much does Rania get?
Programmatically:
```python
total = 441
parts_a = 2
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 126
print(share_a)
```
Run result = 126
Rania gets $126. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "126", "printed": "126", "notation": null} |
nlprog_det-setting-0075620 | <|start|><|system|>
You have access to these functions:
{"name": "sandbox_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|>
<|user|>
Filing ... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"sandbox_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}... | nlprog_det | setting | original | null | deterministic | [] | [] | 208 | {"gold": "1260", "printed": "1260", "notation": null} |
nlprog_det-setting-0075621 | To read 238 pages in 7 days, how many pages per day are needed?
Python, step by step:
```python
pages = 238
days = 7
per_day = pages // days # 34
print(per_day)
```
Printed:
34
That is 34 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "34", "printed": "34", "notation": null} |
nlprog_det-setting-0075622 | <|start|><|user|>
Parking is $5 per hour with a daily maximum of $20. What do 6 hours cost?<|eot|>
<|assistant|>
```python
rate = 5
hours = 6
daily_max = 20
cost = min(rate * hours, daily_max) # 20
print(cost)
```
Running it prints: 20
The charge is $20.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Parking is $5 per hour with a daily maximum of $20. What do 6 hours cost?"
},
{
"role": "assistant",
"content": "```python\nrate = 5\nhours = 6\ndaily_max = 20\ncost = min(rate * hours, daily_max) # 20\nprint(cost)\n```\nRunning it prints: 20\n\nThe charge is $20."... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0075623 | A lease runs for 12 months at $1,640 per month. How much rent is paid over the whole term?
Code:
```python
monthly_rent = 1640
months = 12
total = monthly_rent * months # 19680
print(total)
```
Output:
19680
In total, $19,680 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "19680", "printed": "19680", "notation": null} |
nlprog_det-setting-0075624 | Walls total 251 sq ft and each can covers 350 sq ft. How many cans should be bought?
A short script:
```python
import math
area = 251
coverage = 350
cans = math.ceil(area / coverage) # 1
print(cans)
```
(Printed: 1)
1 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "1", "printed": "1", "notation": null} |
nlprog_det-setting-0075625 | Nikhil was born on June 10, 1981. How old is Nikhil on June 7, 2021? Nikhil is 39. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "39", "printed": "39", "notation": null} |
nlprog_det-setting-0075626 | A court charges $15 per request plus $0.25 per page after the first 20 pages. What does a 118-page copy cost?
Here is a short program for it.
```python
pages = 118
base = 15
per_page = 0.25
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page
print(f"{cost:.2f}")
```
The run gives 39.50, as expected.
T... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "39.50", "printed": "39.50", "notation": null} |
nlprog_det-setting-0075627 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "calculator", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"calculator\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python s... | nlprog_det | setting | original | null | deterministic | [] | [] | 226 | {"gold": "1260", "printed": "1260", "notation": null} |
nlprog_det-setting-0075628 | A 10 × 13 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?
As Python:
```python
import math
length = 10
width = 13
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 130
print(tiles)
```
# run result: 130
130 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "130", "printed": "130", "notation": null} |
nlprog_det-setting-0075629 | <|start|><|user|>
A claim accrued on November 3, 2023. The limitations period is 3 years. On what date does it expire?<|eot|>
<|assistant|>
from datetime import date
accrued = date(2023, 11, 3) # datetime.date(2023, 11, 3)
years = 3
expires = accrued.replace(year=accrued.year + years) # datetime.date(... | chat | [
{
"role": "user",
"content": "A claim accrued on November 3, 2023. The limitations period is 3 years. On what date does it expire?"
},
{
"role": "assistant",
"content": " from datetime import date\n accrued = date(2023, 11, 3) # datetime.date(2023, 11, 3)\n years = 3\n expires = acc... | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "2026-11-03", "printed": "2026-11-03", "notation": null} |
nlprog_det-setting-0075630 | At 2% a month (simple), what interest builds on $4,000 over 2 months?
Python does the arithmetic:
balance = 4000
monthly_rate = 2 / 100 # 0.02
months = 2
interest = balance * monthly_rate * months # 160.0
print(f"{interest:.2f}")
Python prints: 160.00
The interest is $160.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "160.00", "printed": "160.00", "notation": null} |
nlprog_det-setting-0075631 | <|start|><|system|>
You have access to these functions:
{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}
{"name": "lookup_statute", "description": "Lo... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\... | nlprog_det | setting | original | null | deterministic | [] | [] | 437 | {"gold": "2018-10-07", "printed": "2018-10-07", "notation": null} |
nlprog_det-setting-0075632 | How many whole days and leftover hours are in 246 hours? 246 hours is 10 days and 6 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 26 | {"gold": "10 days and 6 hours", "printed": "10 days and 6 hours", "notation": null} |
nlprog_det-setting-0075633 | <|start|><|user|>
3 books come back 10 days late, at $0.20 a day each. What is the fine?<|eot|>
<|assistant|>
```python
per_day = 0.2
days_late = 10
books = 3
fine = per_day * days_late * books
print(f"{fine:.2f}")
```
# stdout: 6.00
The fine is $6.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "3 books come back 10 days late, at $0.20 a day each. What is the fine?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.2\ndays_late = 10\nbooks = 3\nfine = per_day * days_late * books\nprint(f\"{fine:.2f}\")\n```\n# stdout: 6.00\n\nThe fine is $6.00."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "6.00", "printed": "6.00", "notation": null} |
nlprog_det-setting-0075634 | <|start|><|user|>
Copies cost $10 plus $0.10 for each page beyond 20. How much for 103 pages?<|eot|>
<|assistant|>
The copy costs $18.30.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Copies cost $10 plus $0.10 for each page beyond 20. How much for 103 pages?"
},
{
"role": "assistant",
"content": "The copy costs $18.30."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "18.30", "printed": "18.30", "notation": null} |
nlprog_det-setting-0075635 | 8 boxes hold 25 sticky pads each. After 10 are handed out, how many are left?
Here is a short program for it.
```python
boxes = 8
per_box = 25
given_away = 10
left = boxes * per_box - given_away # 190
print(left)
```
The script prints 190, as expected.
That leaves 190 sticky pads. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "190", "printed": "190", "notation": null} |
nlprog_det-setting-0075636 | 332 files go into boxes of 15. How many boxes does that take?
It takes 23 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0075637 | Zoe was born on January 9, 1968. How old is Zoe on November 15, 2020?
Python makes this quick:
from datetime import date
born = date(1968, 1, 9) # datetime.date(1968, 1, 9)
on = date(2020, 11, 15) # datetime.date(2020, 11, 15)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "52", "printed": "52", "notation": null} |
nlprog_det-setting-0075638 | 29 lanyards cost $12 apiece. With 7% tax added, what is the total?
Computation in Python:
```python
quantity = 29
unit_price = 12
subtotal = quantity * unit_price # 348
total = subtotal * (1 + 7 / 100) # 372.36
print(f"{total:.2f}")
```
Output = 372.36
The invoice total is $372.36. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "372.36", "printed": "372.36", "notation": null} |
nlprog_det-setting-0075639 | <|start|><|system|>
Be exact with numbers.<|eot|>
<|user|>
5 claimants share a $525 settlement equally. What is each share?<|eot|>
<|assistant|>
settlement = 525
parties = 5
share = settlement // parties # 105
print(share)
The program prints: 105
Each share is $105.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be exact with numbers."
},
{
"role": "user",
"content": "5 claimants share a $525 settlement equally. What is each share?"
},
{
"role": "assistant",
"content": " settlement = 525\n parties = 5\n share = settlement // parties # 105\n print(... | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "105", "printed": "105", "notation": null} |
nlprog_det-setting-0075640 | <|start|><|user|>
A meal costs $52.69. How much is a 15% tip?<|eot|>
<|assistant|>
```python
bill = 52.69
tip_rate = 15 / 100 # 0.15
tip = bill * tip_rate # 7.903499999999999
print(f"{tip:.2f}")
```
Console:
7.90
The tip is $7.90.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A meal costs $52.69. How much is a 15% tip?"
},
{
"role": "assistant",
"content": "```python\nbill = 52.69\ntip_rate = 15 / 100 # 0.15\ntip = bill * tip_rate # 7.903499999999999\nprint(f\"{tip:.2f}\")\n```\nConsole:\n7.90\n\nThe tip is $7.90."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "7.90", "printed": "7.90", "notation": null} |
nlprog_det-setting-0075641 | <|start|><|user|>
At 50 miles per hour, how many minutes does a 200-mile trip take?<|eot|>
<|assistant|>
distance = 200
speed = 50
minutes = distance / speed * 60
print(round(minutes))
Result:
240
240 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At 50 miles per hour, how many minutes does a 200-mile trip take?"
},
{
"role": "assistant",
"content": " distance = 200\n speed = 50\n minutes = distance / speed * 60\n print(round(minutes))\nResult:\n240\n\n240 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 64 | {"gold": "240", "printed": "240", "notation": null} |
nlprog_det-setting-0075642 | 213 volunteers are split into 3 equal teams. How many are on each team, and how many are left over?
A few lines of Python do it:
```python
total = 213
groups = 3
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
# printed result: 71 each, 0 left over
The answer: 71 eac... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "71 each, 0 left over", "printed": "71 each, 0 left over", "notation": null} |
nlprog_det-setting-0075643 | A 18-month warranty starts on March 9, 2021. On what date does it end?
Program:
```python
from datetime import date
start = date(2021, 3, 9)
months = 18
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
Execution result: 2022... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "2022-09-09", "printed": "2022-09-09", "notation": null} |
nlprog_det-setting-0075644 | A pack of 8 sticky pads sells for $152. What does each cost?
A few lines of Python do it:
```python
total = 152
count = 8
per_item = total // count # 19
print(per_item)
```
Python prints 19, as expected.
Each one costs $19. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0075645 | Counting the first and last day, how many days are there from May 9, 2026 through June 2, 2026?
```python
from datetime import date
first = date(2026, 5, 9) # datetime.date(2026, 5, 9)
last = date(2026, 6, 2) # datetime.date(2026, 6, 2)
days = (last - first).days + 1 # 25
print(days)
```
Result — 25
That is 25 day... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0075646 | A count moves from 1,000 to 1,100. By what percent did it change (use a minus sign for a drop)?
Python code:
```python
old = 1000
new = 1100
change = (new - old) / old * 100
print(round(change))
```
(Execution result: 10)
The change is 10%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0075647 | A library charges $0.25 per book per day late. What is the fine for 4 books that are 14 days late?
Translated to Python:
```python
per_day = 0.25
days_late = 14
books = 4
fine = per_day * days_late * books # 14.0
print(f"{fine:.2f}")
```
It outputs: 14.00
The fine is $14.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "14.00", "printed": "14.00", "notation": null} |
nlprog_det-setting-0075648 | A 2% increase is applied to $1,800 monthly rent. What is the new amount? The new rent is $1,836.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "1836.00", "printed": "1836.00", "notation": null} |
nlprog_det-setting-0075650 | 2 friends split a $120 bill plus a 15% tip evenly. How much does each pay?
In code:
```python
bill = 120
tip_rate = 15 / 100 # 0.15
people = 2
each = bill * (1 + tip_rate) / people # 69.0
print(f"{each:.2f}")
```
The run gives: 69.00
The share is $69.00 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "69.00", "printed": "69.00", "notation": null} |
nlprog_det-setting-0075651 | Walls total 752 sq ft and each can covers 250 sq ft. How many cans should be bought?
Python code:
```python
import math
area = 752
coverage = 250
cans = math.ceil(area / coverage) # 4
print(cans)
```
The run gives 4, as expected.
Buy 4 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0075652 | A pack of 8 envelopes sells for $72. What does each cost?
A Python solution:
```python
total = 72
count = 8
per_item = total // count # 9
print(per_item)
```
# run result: 9
Each one costs $9. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0075653 | 7 labels cost $6 apiece. With 6% tax added, what is the total?
The total with tax is $44.52. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "44.52", "printed": "44.52", "notation": null} |
nlprog_det-setting-0075654 | With 15% off, what does a $250 backpack cost?
Python makes this quick:
```python
price = 250
discount = 15 / 100
sale_price = price * (1 - discount)
print(f"{sale_price:.2f}")
```
When run, it prints 212.50.
The sale price is $212.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "212.50", "printed": "212.50", "notation": null} |
nlprog_det-setting-0075655 | <|start|><|user|>
With $4,000 in costs and $6,000 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|>
<|assistant|>
The margin is 33.3%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With $4,000 in costs and $6,000 in revenue, what percent of revenue is profit? Round to one decimal."
},
{
"role": "assistant",
"content": "The margin is 33.3%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "33.3", "printed": "33.3", "notation": null} |
nlprog_det-setting-0075656 | A lawyer's fee is 25% of a $40,000 recovery. How large is the fee?
Translated to Python:
```python
recovery = 40000
rate = 25 / 100 # 0.25
fee = recovery * rate # 10000.0
print(f"{fee:.2f}")
```
The script prints 10000.00, as expected.
The lawyer's fee comes to $10,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "10000.00", "printed": "10000.00", "notation": null} |
nlprog_det-setting-0075657 | Starting with 1199 markers and using 38 per day, how many remain after 20 days?
Program:
```python
stock = 1199
per_day = 38
days = 20
left = stock - per_day * days # 439
print(left)
```
Console:
439
439 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "439", "printed": "439", "notation": null} |
nlprog_det-setting-0075658 | Straight-line depreciation: cost $18,000, salvage $3,000, 6 years. How much per year?
Python does the arithmetic:
cost = 18000
salvage = 3000
years = 6
per_year = (cost - salvage) / years # 2500.0
print(f"{per_year:.2f}")
What it prints: 2500.00
$2,500.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "2500.00", "printed": "2500.00", "notation": null} |
nlprog_det-setting-0075659 | <|start|><|user|>
Noor earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 42-hour week?<|eot|>
<|assistant|>
```python
rate = 18.5
hours = 42
regular = 40 * rate # 740.0
overtime = (hours - 40) * rate * 1.5 # 55.5
pay = regular + overtime # 795.5
print(f"{pay:.2f}")
```
(stdout: 795.50... | chat | [
{
"role": "user",
"content": "Noor earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 42-hour week?"
},
{
"role": "assistant",
"content": "```python\nrate = 18.5\nhours = 42\nregular = 40 * rate # 740.0\novertime = (hours - 40) * rate * 1.5 # 55.5\npay = regular ... | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "795.50", "printed": "795.50", "notation": null} |
nlprog_det-setting-0075660 | <|start|><|user|>
What is the total rent on a 36-month lease at $1,640 a month?<|eot|>
<|assistant|>
```python
monthly_rent = 1640
months = 36
total = monthly_rent * months # 59040
print(total)
```
Running this gives: 59040
The rent over the term is $59,040.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is the total rent on a 36-month lease at $1,640 a month?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 1640\nmonths = 36\ntotal = monthly_rent * months # 59040\nprint(total)\n```\nRunning this gives: 59040\n\nThe rent over the term is $59,04... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "59040", "printed": "59040", "notation": null} |
nlprog_det-setting-0075661 | Split $2,445 between Pilar and Viktor in the ratio 2 to 3. What is Pilar's share?
Python, step by step:
```python
total = 2445
parts_a = 2
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b) # 978
print(share_a)
```
It outputs: 978
Pilar gets $978. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "978", "printed": "978", "notation": null} |
nlprog_det-setting-0075662 | Meals are $64 per day and lodging $110 per night. What is the allowance for 7 days and 6 nights?
Code:
```python
days = 7
meal_rate = 64
lodging_rate = 110
nights = days - 1 # 6
total = days * meal_rate + nights * lodging_rate # 1108
print(total)
```
Python prints: 1108
That comes to $1,108. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "1108", "printed": "1108", "notation": null} |
nlprog_det-setting-0075663 | What does $5,000 grow to in 4 years at 3% annual compounding?
The balance is $5,627.54. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "5627.54", "printed": "5627.54", "notation": null} |
nlprog_det-setting-0075664 | With 15% off, what does a $250 desk lamp cost?
Script:
```python
price = 250
discount = 15 / 100 # 0.15
sale_price = price * (1 - discount) # 212.5
print(f"{sale_price:.2f}")
```
Running it prints 212.50, as expected.
The sale price is $212.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "212.50", "printed": "212.50", "notation": null} |
nlprog_det-setting-0075665 | A measure needs at least 67% of 269 votes. How many votes is that, rounded up?
In Python:
```python
import math
voters = 269
needed = math.ceil(voters * 67 / 100)
print(needed)
```
This prints 181.
At least 181 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "181", "printed": "181", "notation": null} |
nlprog_det-setting-0075666 | <|start|><|user|>
With 5 rows of 9 chairs and 33 empty chairs, how many chairs are taken?<|eot|>
<|assistant|>
```python
rows = 5
per_row = 9
empty = 33
seated = rows * per_row - empty # 12
print(seated)
```
Running it prints: 12
12 seats are taken.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 5 rows of 9 chairs and 33 empty chairs, how many chairs are taken?"
},
{
"role": "assistant",
"content": "```python\nrows = 5\nper_row = 9\nempty = 33\nseated = rows * per_row - empty # 12\nprint(seated)\n```\nRunning it prints: 12\n\n12 seats are taken."
}
... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0075667 | <|start|><|user|>
What percentage of $8,000 is $3,600?<|eot|>
<|assistant|>
```python
budget = 8000
spent = 3600
percent = spent / budget * 100 # 45.0
print(round(percent, 1))
```
The run gives: 45.0
That is 45.0% of the budget.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What percentage of $8,000 is $3,600?"
},
{
"role": "assistant",
"content": "```python\nbudget = 8000\nspent = 3600\npercent = spent / budget * 100 # 45.0\nprint(round(percent, 1))\n```\nThe run gives: 45.0\n\nThat is 45.0% of the budget."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "45.0", "printed": "45.0", "notation": null} |
nlprog_det-setting-0075668 | Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 49 hours?
Let's compute it with Python.
```python
rate = 18.5
hours = 49
regular = 40 * rate # 740.0
overtime = (hours - 40) * rate * 1.5 # 249.75
pay = regular + overtime # 989.75
print(f"{pay:.2f}")
```
# console output: 989.75... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "989.75", "printed": "989.75", "notation": null} |
nlprog_det-setting-0075669 | <|start|><|user|>
An office budget of $25,000 has expenses of $3,278, $2,697, $1,319, $1,270. How much of the budget is left?<|eot|>
<|assistant|>
budget = 25000
expenses = [3278, 2697, 1319, 1270]
left = budget - sum(expenses) # 16436
print(left)
# console output: 16436
The remaining budget is $16,43... | chat | [
{
"role": "user",
"content": "An office budget of $25,000 has expenses of $3,278, $2,697, $1,319, $1,270. How much of the budget is left?"
},
{
"role": "assistant",
"content": " budget = 25000\n expenses = [3278, 2697, 1319, 1270]\n left = budget - sum(expenses) # 16436\n print(left... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "16436", "printed": "16436", "notation": null} |
nlprog_det-setting-0075670 | <|start|><|system|>
Tools (call with JSON):
[{"name": "python_exec", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
Conve... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"python_exec\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 237 | {"gold": "9799.65", "printed": "9799.65", "notation": null} |
nlprog_det-setting-0075671 | A penalty of $25 a day accrues, capped at $1,000. What is owed after 6 days?
Let's compute it with Python.
```python
per_day = 25
days = 6
cap = 1000
fine = min(per_day * days, cap) # 150
print(fine)
```
The interpreter prints: 150
The fine is $150. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "150", "printed": "150", "notation": null} |
nlprog_det-setting-0075672 | <|start|><|user|>
Counting the first and last day, how many days are there from July 28, 2021 through August 12, 2021?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2021, 7, 28) # datetime.date(2021, 7, 28)
last = date(2021, 8, 12) # datetime.date(2021, 8, 12)
days = (last - first).days + 1 #... | chat | [
{
"role": "user",
"content": "Counting the first and last day, how many days are there from July 28, 2021 through August 12, 2021?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2021, 7, 28) # datetime.date(2021, 7, 28)\nlast = date(2021, 8, 12) # dat... | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0075673 | Lucia lends $20,000 at 2% simple interest per year for 5 years. How much interest is earned?
Python code:
principal = 20000
rate = 2 / 100 # 0.02
years = 5
interest = principal * rate * years # 2000.0
print(f"{interest:.2f}")
stdout:
2000.00
It earns $2,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "2000.00", "printed": "2000.00", "notation": null} |
nlprog_det-setting-0075674 | How many weekdays (Monday to Friday) fall after November 9, 2023 up to and including November 20, 2023?
Translated to Python:
from datetime import date, timedelta
start = date(2023, 11, 9)
end = date(2023, 11, 20)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(da... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0075675 | <|start|><|user|>
A garage charges $5 an hour, never more than $18 a day. How much for 4 hours?<|eot|>
<|assistant|>
Parking costs $18.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A garage charges $5 an hour, never more than $18 a day. How much for 4 hours?"
},
{
"role": "assistant",
"content": "Parking costs $18."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0075676 | 8 claimants share a $4,496 settlement equally. What is each share? Each party receives $562. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "562", "printed": "562", "notation": null} |
nlprog_det-setting-0075677 | An invoice lists 11 badges at $7 each, plus 7% sales tax. What is the invoice total?
Coded up:
quantity = 11
unit_price = 7
subtotal = quantity * unit_price # 77
total = subtotal * (1 + 7 / 100) # 82.39
print(f"{total:.2f}")
Running this gives: 82.39
The invoice total is $82.39. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "82.39", "printed": "82.39", "notation": null} |
nlprog_det-setting-0075678 | Fines run at $25 per day up to a maximum of $1,000. How much after 53 days?
Computation in Python:
```python
per_day = 25
days = 53
cap = 1000
fine = min(per_day * days, cap) # 1000
print(fine)
```
# stdout: 1000
$1,000 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0075679 | If a 4-year limitations period starts on May 3, 2012, when does it end?
The Python version:
```python
from datetime import date
accrued = date(2012, 5, 3) # datetime.date(2012, 5, 3)
years = 4
expires = accrued.replace(year=accrued.year + years) # datetime.date(2016, 5, 3)
print(expires.isoformat())
```
It prints: 2... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "2016-05-03", "printed": "2016-05-03", "notation": null} |
nlprog_det-setting-0075680 | <|start|><|user|>
A 3% increase is applied to $1,250 monthly rent. What is the new amount?<|eot|>
<|assistant|>
```python
rent = 1250
increase = 3 / 100 # 0.03
new_rent = rent * (1 + increase) # 1287.5
print(f"{new_rent:.2f}")
```
# out: 1287.50
The new rent is $1,287.50.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 3% increase is applied to $1,250 monthly rent. What is the new amount?"
},
{
"role": "assistant",
"content": "```python\nrent = 1250\nincrease = 3 / 100 # 0.03\nnew_rent = rent * (1 + increase) # 1287.5\nprint(f\"{new_rent:.2f}\")\n```\n# out: 1287.50\n\nThe new... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "1287.50", "printed": "1287.50", "notation": null} |
nlprog_det-setting-0075681 | Of a $5,000 budget, $1,800 has been spent. What percent is that?
36.0% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "36.0", "printed": "36.0", "notation": null} |
nlprog_det-setting-0075682 | <|start|><|system|>
You help people work with structured data.<|eot|>
<|user|>
Split $1,925 between Joelle and Grace in the ratio 2 to 5. What is Joelle's share?<|eot|>
<|assistant|>
Joelle gets $550.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help people work with structured data."
},
{
"role": "user",
"content": "Split $1,925 between Joelle and Grace in the ratio 2 to 5. What is Joelle's share?"
},
{
"role": "assistant",
"content": "Joelle gets $550."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 57 | {"gold": "550", "printed": "550", "notation": null} |
nlprog_det-setting-0075683 | Straight-line depreciation: cost $30,000, salvage $3,000, 4 years. How much per year?
Written as code:
```python
cost = 30000
salvage = 3000
years = 4
per_year = (cost - salvage) / years # 6750.0
print(f"{per_year:.2f}")
```
# run result: 6750.00
Depreciation is $6,750.00 per year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "6750.00", "printed": "6750.00", "notation": null} |
nlprog_det-setting-0075685 | A service costs $12 a month or $114 a year. How much does the yearly plan save over 12 monthly payments?
Coded up:
```python
monthly = 12
yearly = 114
savings = monthly * 12 - yearly # 30
print(savings)
```
# out: 30
$30 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0075686 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
A 40-mile drive at a steady 30 mph takes how many minutes?<|eot|>
<|assistant|>
```python
distance = 40
speed = 30
minutes = distance / speed * 60 # 80.0
print(round(minutes))
```
That prints 80.
The trip takes 80 minutes.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "A 40-mile drive at a steady 30 mph takes how many minutes?"
},
{
"role": "assistant",
"content": "```python\ndistance = 40\nspeed = 30\nminutes = distance / speed * 60 # 80.0\nprint(round(... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "80", "printed": "80", "notation": null} |
nlprog_det-setting-0075687 | Oskar drove 388 miles for work. Mileage is reimbursed at 70 cents a mile. How much is the reimbursement?
Oskar is owed $271.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 47 | {"gold": "271.60", "printed": "271.60", "notation": null} |
nlprog_det-setting-0075688 | A 24-month warranty starts on October 4, 2022. On what date does it end?
We can compute it in Python.
```python
from datetime import date
start = date(2022, 10, 4)
months = 24
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "2024-10-04", "printed": "2024-10-04", "notation": null} |
nlprog_det-setting-0075689 | <|start|><|user|>
Straight-line depreciation: cost $45,000, salvage $3,000, 3 years. How much per year?<|eot|>
<|assistant|>
```python
cost = 45000
salvage = 3000
years = 3
per_year = (cost - salvage) / years # 14000.0
print(f"{per_year:.2f}")
```
The program outputs: 14000.00
$14,000.00 a year.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Straight-line depreciation: cost $45,000, salvage $3,000, 3 years. How much per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 45000\nsalvage = 3000\nyears = 3\nper_year = (cost - salvage) / years # 14000.0\nprint(f\"{per_year:.2f}\")\n```\nThe prog... | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "14000.00", "printed": "14000.00", "notation": null} |
nlprog_det-setting-0075690 | <|start|><|user|>
A count moves from 500 to 425. By what percent did it change (use a minus sign for a drop)?<|eot|>
<|assistant|>
```python
old = 500
new = 425
change = (new - old) / old * 100 # -15.0
print(round(change))
```
(Printed result: -15)
It changed by -15%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A count moves from 500 to 425. By what percent did it change (use a minus sign for a drop)?"
},
{
"role": "assistant",
"content": "```python\nold = 500\nnew = 425\nchange = (new - old) / old * 100 # -15.0\nprint(round(change))\n```\n(Printed result: -15)\n\nIt chan... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "-15", "printed": "-15", "notation": null} |
nlprog_det-setting-0075691 | An attorney bills 4 hours at $150 per hour. What is the bill?
The Python version:
hours = 4
rate = 150
bill = hours * rate # 600
print(f"{bill:.2f}")
Output: 600.00
That comes to $600.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "600.00", "printed": "600.00", "notation": null} |
nlprog_det-setting-0075692 | From a $7,500 retainer, 12 hours at $250/hour have been drawn. What remains?
In Python:
```python
retainer = 7500
hours = 12
rate = 250
left = retainer - hours * rate # 4500
print(left)
```
Printed: 4500
$4,500 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "4500", "printed": "4500", "notation": null} |
nlprog_det-setting-0075693 | <|start|><|user|>
Convert 25 °C to Fahrenheit.<|eot|>
<|assistant|>
```python
celsius = 25
fahrenheit = celsius * 9 / 5 + 32 # 77.0
print(round(fahrenheit))
```
What it prints — 77
It equals 77 degrees Fahrenheit.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 25 °C to Fahrenheit."
},
{
"role": "assistant",
"content": "```python\ncelsius = 25\nfahrenheit = celsius * 9 / 5 + 32 # 77.0\nprint(round(fahrenheit))\n```\nWhat it prints — 77\n\nIt equals 77 degrees Fahrenheit."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "77", "printed": "77", "notation": null} |
nlprog_det-setting-0075694 | How much is a $64 daily meal allowance over 3 days?
Set it up in Python:
```python
days = 3
meal_rate = 64
total = days * meal_rate # 192
print(total)
```
(Result: 192)
The allowance is $192. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "192", "printed": "192", "notation": null} |
nlprog_det-setting-0075695 | <|start|><|user|>
How many days are there from March 19, 2026 to December 28, 2026?<|eot|>
<|assistant|>
There are 284 days between the two dates.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many days are there from March 19, 2026 to December 28, 2026?"
},
{
"role": "assistant",
"content": "There are 284 days between the two dates."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "284", "printed": "284", "notation": null} |
nlprog_det-setting-0075697 | <|start|><|user|>
What does $1,000 grow to in 5 years at 5% annual compounding?<|eot|>
<|assistant|>
```python
principal = 1000
rate = 5 / 100 # 0.05
years = 5
value = principal * (1 + rate) ** years # 1276.2815625000003
print(f"{value:.2f}")
```
Shell output: 1276.28
The balance is $1,276.28.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What does $1,000 grow to in 5 years at 5% annual compounding?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 1000\nrate = 5 / 100 # 0.05\nyears = 5\nvalue = principal * (1 + rate) ** years # 1276.2815625000003\nprint(f\"{value:.2f}\")\n```\nShell ou... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "1276.28", "printed": "1276.28", "notation": null} |
nlprog_det-setting-0075698 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "eval_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "search_c... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"eval_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source cod... | nlprog_det | setting | original | null | deterministic | [] | [] | 295 | {"gold": "83", "printed": "83", "notation": null} |
nlprog_det-setting-0075699 | What simple interest does $8,000 earn at 8% a year over 3 years?
It earns $1,920.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "1920.00", "printed": "1920.00", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.