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-0054855 | <|start|><|user|>
4 clients win $30,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?<|eot|>
<|assistant|>
Each share is $5,250.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "4 clients win $30,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?"
},
{
"role": "assistant",
"content": "Each share is $5,250.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "5250.00", "printed": "5250.00", "notation": null} |
nlprog_det-setting-0054857 | <|start|><|user|>
How much is a $79 daily meal allowance over 8 days?<|eot|>
<|assistant|>
That comes to $632.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How much is a $79 daily meal allowance over 8 days?"
},
{
"role": "assistant",
"content": "That comes to $632."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "632", "printed": "632", "notation": null} |
nlprog_det-setting-0054858 | Each storage box holds 24 files. How many boxes are needed for 175 files?
As a program:
```python
import math
files = 175
per_box = 24
boxes = math.ceil(files / per_box) # 8
print(boxes)
```
# console output: 8
8 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0054859 | A 18 lb package ships at $12 base plus $0.75/lb. What is the charge?
```python
base = 12
per_pound = 0.75
weight = 18
cost = base + per_pound * weight # 25.5
print(f"{cost:.2f}")
```
The run gives 25.50, as expected.
Shipping costs $25.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "25.50", "printed": "25.50", "notation": null} |
nlprog_det-setting-0054860 | A claim accrued on November 26, 2016. The limitations period is 5 years. On what date does it expire?
In Python:
```python
from datetime import date
accrued = date(2016, 11, 26)
years = 5
expires = accrued.replace(year=accrued.year + years)
print(expires.isoformat())
```
# stdout: 2021-11-26
It runs out on November 2... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "2021-11-26", "printed": "2021-11-26", "notation": null} |
nlprog_det-setting-0054861 | Printing costs 10 cents a page. What does it cost to print 124 copies of a 38-page handout?
Computation in Python:
```python
pages = 38
copies = 124
cost_per_page = 0.1
cost = pages * copies * cost_per_page # 471.20000000000005
print(f"{cost:.2f}")
```
Console output — 471.20
The job costs $471.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "471.20", "printed": "471.20", "notation": null} |
nlprog_det-setting-0054862 | Each of Marek's bike rides burns 300 calories. How many calories over 5 bike rides?
A few lines of Python do it:
```python
per_session = 300
sessions = 5
total = per_session * sessions # 1500
print(total)
```
Executed, it shows 1500.
That burns 1500 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "1500", "printed": "1500", "notation": null} |
nlprog_det-setting-0054865 | Convert 49.5 km to meters.
As Python:
```python
km = 49.5
meters = km * 1000 # 49500.0
print(round(meters))
```
stdout: 49500
That is 49,500 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "49500", "printed": "49500", "notation": null} |
nlprog_det-setting-0054866 | One can of paint covers 300 square feet. How many cans are needed for 466 square feet of wall?
We write it as a program:
```python
import math
area = 466
coverage = 300
cans = math.ceil(area / coverage) # 2
print(cans)
```
The program prints: 2
2 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0054867 | How many minutes pass from 11:32 AM to 4:46 PM on the same day?
In code:
```python
start = 11 * 60 + 32 # 692
end = 16 * 60 + 46 # 1006
print(end - start)
```
stdout:
314
It is 314 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "314", "printed": "314", "notation": null} |
nlprog_det-setting-0054868 | Meals are $74 per day and lodging $140 per night. What is the allowance for 3 days and 2 nights?
Written as code:
```python
days = 3
meal_rate = 74
lodging_rate = 140
nights = days - 1 # 2
total = days * meal_rate + nights * lodging_rate # 502
print(total)
```
Execution result: 502
That comes to $502. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "502", "printed": "502", "notation": null} |
nlprog_det-setting-0054870 | How long, in days, is it from September 25, 2024 until September 3, 2025?
Script:
```python
from datetime import date
first = date(2024, 9, 25) # datetime.date(2024, 9, 25)
second = date(2025, 9, 3) # datetime.date(2025, 9, 3)
print((second - first).days)
```
This prints 343, as expected.
There are 343 days between... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "343", "printed": "343", "notation": null} |
nlprog_det-setting-0054871 | <|start|><|user|>
How many units at $15 each (variable cost $7) cover $4,000 of fixed costs?<|eot|>
<|assistant|>
```python
import math
fixed = 4000
price = 15
variable = 7
units = math.ceil(fixed / (price - variable)) # 500
print(units)
```
Shell output: 500
500 units are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many units at $15 each (variable cost $7) cover $4,000 of fixed costs?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 4000\nprice = 15\nvariable = 7\nunits = math.ceil(fixed / (price - variable)) # 500\nprint(units)\n```\nShell output: 5... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "500", "printed": "500", "notation": null} |
nlprog_det-setting-0054872 | How many meters are in 65.7 kilometers?
Python:
```python
km = 65.7
meters = km * 1000 # 65700.0
print(round(meters))
```
It prints: 65700
That is 65,700 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "65700", "printed": "65700", "notation": null} |
nlprog_det-setting-0054873 | A party has 14 days to respond to a motion served on February 2, 2018, with 3 days added because service was by mail. When is the response due?
Computing it:
```python
from datetime import date, timedelta
served = date(2018, 2, 2) # datetime.date(2018, 2, 2)
response_days = 14
mail_days = 3
due = served + timedelta(d... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 176 | {"gold": "2018-02-19", "printed": "2018-02-19", "notation": null} |
nlprog_det-setting-0054874 | Equipment costs $12,000, has a salvage value of $3,000, and a useful life of 10 years. What is the straight-line depreciation per year?
As Python:
```python
cost = 12000
salvage = 3000
years = 10
per_year = (cost - salvage) / years # 900.0
print(f"{per_year:.2f}")
```
Python prints: 900.00
$900.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "900.00", "printed": "900.00", "notation": null} |
nlprog_det-setting-0054875 | How many minutes pass from 9:18 AM to 10:18 AM on the same day?
As Python:
```python
start = 9 * 60 + 18
end = 10 * 60 + 18
print(end - start)
```
Program output — 60
It is 60 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "60", "printed": "60", "notation": null} |
nlprog_det-setting-0054876 | 4 walks at 350 calories each burn how many calories in total? 1400 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 26 | {"gold": "1400", "printed": "1400", "notation": null} |
nlprog_det-setting-0054877 | What percentage of $4,000 is $3,300?
A short script:
budget = 4000
spent = 3300
percent = spent / budget * 100 # 82.5
print(round(percent, 1))
The interpreter prints 82.5.
That is 82.5% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "82.5", "printed": "82.5", "notation": null} |
nlprog_det-setting-0054878 | <|start|><|user|>
Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 55 hours?<|eot|>
<|assistant|>
rate = 25.0
hours = 55
regular = 40 * rate # 1000.0
overtime = (hours - 40) * rate * 1.5 # 562.5
pay = regular + overtime # 1562.5
print(f"{pay:.2f}")
Execut... | chat | [
{
"role": "user",
"content": "Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 55 hours?"
},
{
"role": "assistant",
"content": " rate = 25.0\n hours = 55\n regular = 40 * rate # 1000.0\n overtime = (hours - 40) * rate * 1.5 # 562.5\n pay = r... | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "1562.50", "printed": "1562.50", "notation": null} |
nlprog_det-setting-0054879 | A 2% increase is applied to $1,500 monthly rent. What is the new amount?
Here is a short program for it.
```python
rent = 1500
increase = 2 / 100 # 0.02
new_rent = rent * (1 + increase) # 1530.0
print(f"{new_rent:.2f}")
```
That prints: 1530.00
The new rent is $1,530.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "1530.00", "printed": "1530.00", "notation": null} |
nlprog_det-setting-0054880 | <|start|><|user|>
4 friends split a $96 bill plus a 20% tip evenly. How much does each pay?<|eot|>
<|assistant|>
bill = 96
tip_rate = 20 / 100 # 0.2
people = 4
each = bill * (1 + tip_rate) / people # 28.799999999999997
print(f"{each:.2f}")
The script prints 28.80, as expected.
Each person pays $2... | chat | [
{
"role": "user",
"content": "4 friends split a $96 bill plus a 20% tip evenly. How much does each pay?"
},
{
"role": "assistant",
"content": " bill = 96\n tip_rate = 20 / 100 # 0.2\n people = 4\n each = bill * (1 + tip_rate) / people # 28.799999999999997\n print(f\"{each:.2f}\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "28.80", "printed": "28.80", "notation": null} |
nlprog_det-setting-0054882 | A court charges $15 per request plus $0.10 per page after the first 20 pages. What does a 28-page copy cost?
A few lines of Python do it:
```python
pages = 28
base = 15
per_page = 0.1
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page # 15.8
print(f"{cost:.2f}")
```
stdout:
15.80
The copy costs $15.... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "15.80", "printed": "15.80", "notation": null} |
nlprog_det-setting-0054883 | Split $4,725 between Goran and Femi in the ratio 2 to 5. What is Goran's share?
```python
total = 4725
parts_a = 2
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 1350
print(share_a)
```
Interpreter output: 1350
Goran gets $1,350. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "1350", "printed": "1350", "notation": null} |
nlprog_det-setting-0054884 | <|start|><|system|>
You are a teaching assistant.<|eot|>
<|user|>
Shipping costs $12 plus $2.50 per pound. What does a 12-pound parcel cost to ship?<|eot|>
<|assistant|>
```python
base = 12
per_pound = 2.5
weight = 12
cost = base + per_pound * weight # 42.0
print(f"{cost:.2f}")
```
Console output — 42.00
The charge i... | chat | [
{
"role": "system",
"content": "You are a teaching assistant."
},
{
"role": "user",
"content": "Shipping costs $12 plus $2.50 per pound. What does a 12-pound parcel cost to ship?"
},
{
"role": "assistant",
"content": "```python\nbase = 12\nper_pound = 2.5\nweight = 12\ncost = base + ... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "42.00", "printed": "42.00", "notation": null} |
nlprog_det-setting-0054885 | Parking is $2 per hour with a daily maximum of $24. What do 6 hours cost?
The charge is $12. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0054886 | <|start|><|user|>
Convert 2,245 USD to EUR at 1 USD = 1.27 EUR.<|eot|>
<|assistant|>
That is 2,851.15 EUR.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 2,245 USD to EUR at 1 USD = 1.27 EUR."
},
{
"role": "assistant",
"content": "That is 2,851.15 EUR."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "2851.15", "printed": "2851.15", "notation": null} |
nlprog_det-setting-0054887 | <|start|><|system|>
Answer in plain English.<|eot|>
<|user|>
Fines run at $250 per day up to a maximum of $5,000. How much after 18 days?<|eot|>
<|assistant|>
```python
per_day = 250
days = 18
cap = 5000
fine = min(per_day * days, cap) # 4500
print(fine)
```
The program prints 4500, as expected.
$4,500 is owed.<|eot|... | chat | [
{
"role": "system",
"content": "Answer in plain English."
},
{
"role": "user",
"content": "Fines run at $250 per day up to a maximum of $5,000. How much after 18 days?"
},
{
"role": "assistant",
"content": "```python\nper_day = 250\ndays = 18\ncap = 5000\nfine = min(per_day * days, c... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "4500", "printed": "4500", "notation": null} |
nlprog_det-setting-0054888 | <|start|><|system|>
Respond clearly and to the point.<|eot|>
<|user|>
A water bill is $20 plus $4.75 per thousand gallons beyond the first 2 thousand. What is the bill for 7 thousand gallons?<|eot|>
<|assistant|>
```python
base = 20
rate = 4.75
used = 7
free = 2
bill = base + rate * max(0, used - free) # 43.75
print(f... | chat | [
{
"role": "system",
"content": "Respond clearly and to the point."
},
{
"role": "user",
"content": "A water bill is $20 plus $4.75 per thousand gallons beyond the first 2 thousand. What is the bill for 7 thousand gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 20\nr... | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "43.75", "printed": "43.75", "notation": null} |
nlprog_det-setting-0054889 | <|start|><|user|>
A hall has 30 rows of 12 seats, and 23 seats are empty. How many people are seated?<|eot|>
<|assistant|>
```python
rows = 30
per_row = 12
empty = 23
seated = rows * per_row - empty # 337
print(seated)
```
Printed = 337
337 people are seated.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hall has 30 rows of 12 seats, and 23 seats are empty. How many people are seated?"
},
{
"role": "assistant",
"content": "```python\nrows = 30\nper_row = 12\nempty = 23\nseated = rows * per_row - empty # 337\nprint(seated)\n```\nPrinted = 337\n\n337 people are sea... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "337", "printed": "337", "notation": null} |
nlprog_det-setting-0054890 | Monthly rent is $1,800. A tenant moves in with 24 days left in a 30-day month. What is the prorated rent?
In code:
rent = 1800
days_in_month = 30
days_occupied = 24
prorated = rent * days_occupied / days_in_month # 1440.0
print(f"{prorated:.2f}")
Shell output — 1440.00
The tenant owes $1,440.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "1440.00", "printed": "1440.00", "notation": null} |
nlprog_det-setting-0054891 | <|start|><|user|>
Under a 30% contingency agreement, what fee is owed on a $60,000 award?<|eot|>
<|assistant|>
```python
recovery = 60000
rate = 30 / 100 # 0.3
fee = recovery * rate # 18000.0
print(f"{fee:.2f}")
```
The printout reads 18000.00.
The fee is $18,000.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Under a 30% contingency agreement, what fee is owed on a $60,000 award?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 60000\nrate = 30 / 100 # 0.3\nfee = recovery * rate # 18000.0\nprint(f\"{fee:.2f}\")\n```\nThe printout reads 18000.00.\n\nThe fee ... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "18000.00", "printed": "18000.00", "notation": null} |
nlprog_det-setting-0054893 | <|start|><|user|>
What simple interest does $5,000 earn at 4% a year over 5 years?<|eot|>
<|assistant|>
```python
principal = 5000
rate = 4 / 100 # 0.04
years = 5
interest = principal * rate * years # 1000.0
print(f"{interest:.2f}")
```
Running this gives 1000.00.
The interest is $1,000.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What simple interest does $5,000 earn at 4% a year over 5 years?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 5000\nrate = 4 / 100 # 0.04\nyears = 5\ninterest = principal * rate * years # 1000.0\nprint(f\"{interest:.2f}\")\n```\nRunning this gives... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "1000.00", "printed": "1000.00", "notation": null} |
nlprog_det-setting-0054894 | Monthly: $19. Annual: $180. What is saved per year by paying annually?
Computation in Python:
```python
monthly = 19
yearly = 180
savings = monthly * 12 - yearly # 48
print(savings)
```
That prints: 48
$48 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0054895 | <|start|><|user|>
What average speed covers 522 miles in 2 hours?<|eot|>
<|assistant|>
```python
distance = 522
hours = 2
speed = distance / hours # 261.0
print(round(speed))
```
The printout reads: 261
It averages 261 miles per hour.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What average speed covers 522 miles in 2 hours?"
},
{
"role": "assistant",
"content": "```python\ndistance = 522\nhours = 2\nspeed = distance / hours # 261.0\nprint(round(speed))\n```\nThe printout reads: 261\n\nIt averages 261 miles per hour."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "261", "printed": "261", "notation": null} |
nlprog_det-setting-0054896 | <|start|><|user|>
Walls total 197 sq ft and each can covers 350 sq ft. How many cans should be bought?<|eot|>
<|assistant|>
```python
import math
area = 197
coverage = 350
cans = math.ceil(area / coverage) # 1
print(cans)
```
It prints 1, as expected.
Buy 1 cans.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Walls total 197 sq ft and each can covers 350 sq ft. How many cans should be bought?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 197\ncoverage = 350\ncans = math.ceil(area / coverage) # 1\nprint(cans)\n```\nIt prints 1, as expected.\n\nBuy... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "1", "printed": "1", "notation": null} |
nlprog_det-setting-0054897 | At 1% a month (simple), what interest builds on $1,000 over 2 months?
As Python:
```python
balance = 1000
monthly_rate = 1 / 100 # 0.01
months = 2
interest = balance * monthly_rate * months # 20.0
print(f"{interest:.2f}")
```
Run output: 20.00
$20.00 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "20.00", "printed": "20.00", "notation": null} |
nlprog_det-setting-0054898 | Prorate $900 of monthly rent for 14 days of a 30-day month.
The computation:
```python
rent = 900
days_in_month = 30
days_occupied = 14
prorated = rent * days_occupied / days_in_month # 420.0
print(f"{prorated:.2f}")
```
# stdout: 420.00
The tenant owes $420.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "420.00", "printed": "420.00", "notation": null} |
nlprog_det-setting-0054899 | Tobias drove 50 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?
As a program:
```python
miles = 50
rate = 0.65
reimbursement = miles * rate # 32.5
print(f"{reimbursement:.2f}")
```
Output — 32.50
Tobias is owed $32.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "32.50", "printed": "32.50", "notation": null} |
nlprog_det-setting-0054900 | Printing costs 10 cents a page. What does it cost to print 55 copies of a 48-page handout?
Here is the program.
```python
pages = 48
copies = 55
cost_per_page = 0.1
cost = pages * copies * cost_per_page # 264.0
print(f"{cost:.2f}")
```
(Out: 264.00)
Printing costs $264.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "264.00", "printed": "264.00", "notation": null} |
nlprog_det-setting-0054901 | <|start|><|user|>
How many 1-foot square tiles cover a 5 ft by 11 ft floor (round up)?<|eot|>
<|assistant|>
```python
import math
length = 5
width = 11
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 55
print(tiles)
```
The interpreter prints 55.
It takes 55 tiles.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many 1-foot square tiles cover a 5 ft by 11 ft floor (round up)?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 5\nwidth = 11\ntile = 1\ntiles = math.ceil(length * width / (tile * tile)) # 55\nprint(tiles)\n```\nThe interpreter prints 5... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "55", "printed": "55", "notation": null} |
nlprog_det-setting-0054902 | <|start|><|user|>
At 1% a month (simple), what interest builds on $2,500 over 3 months?<|eot|>
<|assistant|>
The interest is $75.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At 1% a month (simple), what interest builds on $2,500 over 3 months?"
},
{
"role": "assistant",
"content": "The interest is $75.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "75.00", "printed": "75.00", "notation": null} |
nlprog_det-setting-0054903 | 7 boxes hold 6 tape rolls each. After 7 are handed out, how many are left?
The program:
```python
boxes = 7
per_box = 6
given_away = 7
left = boxes * per_box - given_away # 35
print(left)
```
Run output — 35
35 tape rolls are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "35", "printed": "35", "notation": null} |
nlprog_det-setting-0054904 | Buying 3 tape rolls at $17 each, 4 tape rolls at $20 each, 3 batteries at $2 each, 6 ink cartridges at $7 each, someone hands over $200. What change comes back?
In Python:
items = [(3, 17), (4, 20), (3, 2), (6, 7)]
total = sum(q * p for q, p in items) # 179
paid = 200
change = paid - total # 21
p... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "21", "printed": "21", "notation": null} |
nlprog_det-setting-0054905 | Walls total 719 sq ft and each can covers 350 sq ft. How many cans should be bought?
Script:
```python
import math
area = 719
coverage = 350
cans = math.ceil(area / coverage) # 3
print(cans)
```
The program prints 3, as expected.
3 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0054906 | Bilal's scores were 68, 84, 63, 100 and 100. What is the average score?
Python code:
```python
scores = [68, 84, 63, 100, 100]
average = sum(scores) // len(scores) # 83
print(average)
```
Running this gives: 83
The average score is 83. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "83", "printed": "83", "notation": null} |
nlprog_det-setting-0054907 | A pack of 20 flash drives sells for $540. What does each cost?
Python:
total = 540
count = 20
per_item = total // count # 27
print(per_item)
(Execution result: 27)
The unit price is $27. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "27", "printed": "27", "notation": null} |
nlprog_det-setting-0054909 | <|start|><|system|>
You may call the tools below.
{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}
{"name": "calculator", "description": "Python sandb... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\", \"e... | nlprog_det | setting | original | null | deterministic | [] | [] | 332 | {"gold": "13500.00", "printed": "13500.00", "notation": null} |
nlprog_det-setting-0054910 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}
{"name": "py_exec", "description": "Python sandbox for calculations. Re... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}\n{\"name\": \"py_exe... | nlprog_det | setting | original | null | deterministic | [] | [] | 314 | {"gold": "18883", "printed": "18883", "notation": null} |
nlprog_det-setting-0054911 | <|start|><|user|>
With 23 rows of 24 chairs and 30 empty chairs, how many chairs are taken?<|eot|>
<|assistant|>
```python
rows = 23
per_row = 24
empty = 30
seated = rows * per_row - empty # 522
print(seated)
```
(Program output: 522)
522 people are seated.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 23 rows of 24 chairs and 30 empty chairs, how many chairs are taken?"
},
{
"role": "assistant",
"content": "```python\nrows = 23\nper_row = 24\nempty = 30\nseated = rows * per_row - empty # 522\nprint(seated)\n```\n(Program output: 522)\n\n522 people are seate... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "522", "printed": "522", "notation": null} |
nlprog_det-setting-0054912 | A 24-month warranty starts on February 7, 2023. On what date does it end?
Python, step by step:
```python
from datetime import date
start = date(2023, 2, 7)
months = 24
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
Execut... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "2025-02-07", "printed": "2025-02-07", "notation": null} |
nlprog_det-setting-0054913 | Fixed costs are $4,000. Each unit sells for $20 and costs $14 to make. How many units must be sold to break even?
Let the code do the arithmetic:
import math
fixed = 4000
price = 20
variable = 14
units = math.ceil(fixed / (price - variable)) # 667
print(units)
Run output — 667
Break-even is 6... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "667", "printed": "667", "notation": null} |
nlprog_det-setting-0054914 | <|start|><|system|>
Show working only when it helps.<|eot|>
<|user|>
Someone works 20 hours at $22.97 per hour. What are the earnings?<|eot|>
<|assistant|>
```python
rate = 22.97
hours = 20
earnings = rate * hours # 459.4
print(f"{earnings:.2f}")
```
# console output: 459.40
That earns $459.40.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Show working only when it helps."
},
{
"role": "user",
"content": "Someone works 20 hours at $22.97 per hour. What are the earnings?"
},
{
"role": "assistant",
"content": "```python\nrate = 22.97\nhours = 20\nearnings = rate * hours # 459.4\nprint(f\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "459.40", "printed": "459.40", "notation": null} |
nlprog_det-setting-0054915 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "eval_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
Papers were ... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"eval_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"re... | nlprog_det | setting | original | null | deterministic | [] | [] | 279 | {"gold": "2018-09-23", "printed": "2018-09-23", "notation": null} |
nlprog_det-setting-0054916 | <|start|><|user|>
What simple interest does $8,000 earn at 4% a year over 6 years?<|eot|>
<|assistant|>
```python
principal = 8000
rate = 4 / 100 # 0.04
years = 6
interest = principal * rate * years # 1920.0
print(f"{interest:.2f}")
```
Printed result: 1920.00
It earns $1,920.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What simple interest does $8,000 earn at 4% a year over 6 years?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 8000\nrate = 4 / 100 # 0.04\nyears = 6\ninterest = principal * rate * years # 1920.0\nprint(f\"{interest:.2f}\")\n```\nPrinted result: 19... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "1920.00", "printed": "1920.00", "notation": null} |
nlprog_det-setting-0054917 | Revenue is $8,500 and costs are $8,000. What is the profit margin as a percent of revenue (one decimal)?
We can compute it in Python.
```python
revenue = 8500
costs = 8000
profit = revenue - costs # 500
margin = profit / revenue * 100 # 5.88235294117647
print(round(margin, 1))
```
Output = 5.9
Profit is 5.9% of rev... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "5.9", "printed": "5.9", "notation": null} |
nlprog_det-setting-0054918 | A filing cabinet costs $300. It is 20% off. What is the sale price?
Let's compute it with Python.
```python
price = 300
discount = 20 / 100 # 0.2
sale_price = price * (1 - discount) # 240.0
print(f"{sale_price:.2f}")
```
stdout — 240.00
The sale price is $240.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "240.00", "printed": "240.00", "notation": null} |
nlprog_det-setting-0054919 | $1,000 is invested at 5% compounded yearly. What is it worth after 5 years?
Programmatically:
```python
principal = 1000
rate = 5 / 100 # 0.05
years = 5
value = principal * (1 + rate) ** years # 1276.2815625000003
print(f"{value:.2f}")
```
Python prints 1276.28.
It is worth $1,276.28. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "1276.28", "printed": "1276.28", "notation": null} |
nlprog_det-setting-0054920 | A board has 53 members. A majority is more than half. How many votes make a majority?
Let's compute it with Python.
```python
members = 53
majority = members // 2 + 1 # 27
print(majority)
```
That prints: 27
27 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "27", "printed": "27", "notation": null} |
nlprog_det-setting-0054921 | <|start|><|user|>
A $2,000 security deposit has deductions of $75. How much is refunded?<|eot|>
<|assistant|>
$1,925 is returned.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A $2,000 security deposit has deductions of $75. How much is refunded?"
},
{
"role": "assistant",
"content": "$1,925 is returned."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "1925", "printed": "1925", "notation": null} |
nlprog_det-setting-0054922 | To read 440 pages in 20 days, how many pages per day are needed?
Let's compute it with Python.
```python
pages = 440
days = 20
per_day = pages // days
print(per_day)
```
Execution prints: 22
That is 22 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0054923 | How many whole days and leftover hours are in 302 hours?
Code:
```python
hours = 302
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
stdout: 12 days and 14 hours
302 hours is 12 days and 14 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "12 days and 14 hours", "printed": "12 days and 14 hours", "notation": null} |
nlprog_det-setting-0054924 | A jacket costs $45. It is 15% off. What is the sale price?
Here is the program.
```python
price = 45
discount = 15 / 100 # 0.15
sale_price = price * (1 - discount) # 38.25
print(f"{sale_price:.2f}")
```
The script prints 38.25, as expected.
The sale price is $38.25. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "38.25", "printed": "38.25", "notation": null} |
nlprog_det-setting-0054925 | <|start|><|user|>
What is a 22% tip on a $207.62 bill?<|eot|>
<|assistant|>
```python
bill = 207.62
tip_rate = 22 / 100 # 0.22
tip = bill * tip_rate # 45.6764
print(f"{tip:.2f}")
```
The interpreter prints 45.68.
Leave $45.68.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is a 22% tip on a $207.62 bill?"
},
{
"role": "assistant",
"content": "```python\nbill = 207.62\ntip_rate = 22 / 100 # 0.22\ntip = bill * tip_rate # 45.6764\nprint(f\"{tip:.2f}\")\n```\nThe interpreter prints 45.68.\n\nLeave $45.68."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "45.68", "printed": "45.68", "notation": null} |
nlprog_det-setting-0054926 | <|start|><|system|>
Keep answers short and correct.<|eot|>
<|user|>
Buying 1 toner kits at $25 each, 3 envelopes at $2 each, 5 headsets at $15 each, 5 desk lamps at $16 each, someone hands over $200. What change comes back?<|eot|>
<|assistant|>
items = [(1, 25), (3, 2), (5, 15), (5, 16)]
total = sum(q * p for q... | chat | [
{
"role": "system",
"content": "Keep answers short and correct."
},
{
"role": "user",
"content": "Buying 1 toner kits at $25 each, 3 envelopes at $2 each, 5 headsets at $15 each, 5 desk lamps at $16 each, someone hands over $200. What change comes back?"
},
{
"role": "assistant",
"co... | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0054927 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "calc", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
Of a $10... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"calc\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}},... | nlprog_det | setting | original | null | deterministic | [] | [] | 210 | {"gold": "32.0", "printed": "32.0", "notation": null} |
nlprog_det-setting-0054928 | 9 scissors cost $9 apiece. With 7% tax added, what is the total?
The invoice total is $86.67. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "86.67", "printed": "86.67", "notation": null} |
nlprog_det-setting-0054929 | What does $1,000 grow to in 2 years at 2% annual compounding?
Python version:
```python
principal = 1000
rate = 2 / 100 # 0.02
years = 2
value = principal * (1 + rate) ** years # 1040.4
print(f"{value:.2f}")
```
Execution prints 1040.40, as expected.
It is worth $1,040.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "1040.40", "printed": "1040.40", "notation": null} |
nlprog_det-setting-0054930 | <|start|><|user|>
A hearing is set for May 27, 2027. What day of the week is that?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(2027, 5, 27) # datetime.date(2027, 5, 27)
print(hearing.strftime("%A"))
```
Executing it gives Thursday.
May 27, 2027 is a Thursday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hearing is set for May 27, 2027. What day of the week is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(2027, 5, 27) # datetime.date(2027, 5, 27)\nprint(hearing.strftime(\"%A\"))\n```\nExecuting it gives Thursday... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "Thursday", "printed": "Thursday", "notation": null} |
nlprog_det-setting-0054932 | <|start|><|user|>
A party has 14 days to respond to a motion served on December 15, 2027, with 3 days added because service was by mail. When is the response due?<|eot|>
<|assistant|>
The response is due on January 1, 2028.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A party has 14 days to respond to a motion served on December 15, 2027, with 3 days added because service was by mail. When is the response due?"
},
{
"role": "assistant",
"content": "The response is due on January 1, 2028."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 51 | {"gold": "2028-01-01", "printed": "2028-01-01", "notation": null} |
nlprog_det-setting-0054933 | A garage charges $2 an hour, never more than $20 a day. How much for 11 hours?
Script:
```python
rate = 2
hours = 11
daily_max = 20
cost = min(rate * hours, daily_max) # 20
print(cost)
```
Result = 20
The charge is $20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0054934 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "interpreter", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
A... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"interpreter\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source co... | nlprog_det | setting | original | null | deterministic | [] | [] | 217 | {"gold": "61.02", "printed": "61.02", "notation": null} |
nlprog_det-setting-0054935 | <|start|><|user|>
At 50 miles per hour, how many minutes does a 50-mile trip take?<|eot|>
<|assistant|>
```python
distance = 50
speed = 50
minutes = distance / speed * 60 # 60.0
print(round(minutes))
```
The program prints 60.
60 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At 50 miles per hour, how many minutes does a 50-mile trip take?"
},
{
"role": "assistant",
"content": "```python\ndistance = 50\nspeed = 50\nminutes = distance / speed * 60 # 60.0\nprint(round(minutes))\n```\nThe program prints 60.\n\n60 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "60", "printed": "60", "notation": null} |
nlprog_det-setting-0054936 | <|start|><|user|>
Starting from $12,000, the team spends $2,529, $2,689, $3,292, $542. What remains?<|eot|>
<|assistant|>
```python
budget = 12000
expenses = [2529, 2689, 3292, 542]
left = budget - sum(expenses)
print(left)
```
The program prints 2948.
$2,948 is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting from $12,000, the team spends $2,529, $2,689, $3,292, $542. What remains?"
},
{
"role": "assistant",
"content": "```python\nbudget = 12000\nexpenses = [2529, 2689, 3292, 542]\nleft = budget - sum(expenses)\nprint(left)\n```\nThe program prints 2948.\n\n$2,9... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "2948", "printed": "2948", "notation": null} |
nlprog_det-setting-0054937 | <|start|><|user|>
An invoice lists 6 clipboards at $5 each, plus 7% sales tax. What is the invoice total?<|eot|>
<|assistant|>
```python
quantity = 6
unit_price = 5
subtotal = quantity * unit_price # 30
total = subtotal * (1 + 7 / 100) # 32.1
print(f"{total:.2f}")
```
Run it and it prints 32.10.
The invoice total is... | chat | [
{
"role": "user",
"content": "An invoice lists 6 clipboards at $5 each, plus 7% sales tax. What is the invoice total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 6\nunit_price = 5\nsubtotal = quantity * unit_price # 30\ntotal = subtotal * (1 + 7 / 100) # 32.1\nprint(f\"{total:... | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "32.10", "printed": "32.10", "notation": null} |
nlprog_det-setting-0054938 | A 36-month warranty starts on January 19, 2024. On what date does it end?
The warranty ends on January 19, 2027. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "2027-01-19", "printed": "2027-01-19", "notation": null} |
nlprog_det-setting-0054941 | <|start|><|user|>
How many meters are in 27.5 kilometers?<|eot|>
<|assistant|>
```python
km = 27.5
meters = km * 1000
print(round(meters))
```
The program outputs 27500.
That is 27,500 meters.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many meters are in 27.5 kilometers?"
},
{
"role": "assistant",
"content": "```python\nkm = 27.5\nmeters = km * 1000\nprint(round(meters))\n```\nThe program outputs 27500.\n\nThat is 27,500 meters."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "27500", "printed": "27500", "notation": null} |
nlprog_det-setting-0054942 | How many 1-foot square tiles cover a 12 ft by 3 ft floor (round up)?
Here's the code.
```python
import math
length = 12
width = 3
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 36
print(tiles)
```
(Execution result: 36)
36 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0054943 | <|start|><|system|>
Respond clearly and to the point.<|eot|>
<|user|>
With $36,000 in costs and $37,000 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|>
<|assistant|>
```python
revenue = 37000
costs = 36000
profit = revenue - costs # 1000
margin = profit / revenue * 100 # 2.7027027027027026... | chat | [
{
"role": "system",
"content": "Respond clearly and to the point."
},
{
"role": "user",
"content": "With $36,000 in costs and $37,000 in revenue, what percent of revenue is profit? Round to one decimal."
},
{
"role": "assistant",
"content": "```python\nrevenue = 37000\ncosts = 36000\... | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "2.7", "printed": "2.7", "notation": null} |
nlprog_det-setting-0054944 | What does $10,000 grow to in 5 years at 4% annual compounding?
Python version:
```python
principal = 10000
rate = 4 / 100 # 0.04
years = 5
value = principal * (1 + rate) ** years # 12166.529024000001
print(f"{value:.2f}")
```
On running, it outputs 12166.53.
The balance is $12,166.53. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "12166.53", "printed": "12166.53", "notation": null} |
nlprog_det-setting-0054945 | Goods bought on November 10, 2019 carry a 24-month warranty. When does it expire?
The program:
```python
from datetime import date
start = date(2019, 11, 10)
months = 24
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
Runni... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "2021-11-10", "printed": "2021-11-10", "notation": null} |
nlprog_det-setting-0054946 | Printing costs 12 cents a page. What does it cost to print 48 copies of a 43-page handout?
Let the code do the arithmetic:
```python
pages = 43
copies = 48
cost_per_page = 0.12
cost = pages * copies * cost_per_page # 247.67999999999998
print(f"{cost:.2f}")
```
On running, it outputs: 247.68
The job costs $247.68. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "247.68", "printed": "247.68", "notation": null} |
nlprog_det-setting-0054947 | <|start|><|system|>
Be concise.<|eot|>
<|user|>
Pilar's scores were 89, 95, 60, 81 and 100. What is the average score?<|eot|>
<|assistant|>
The average score is 85.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be concise."
},
{
"role": "user",
"content": "Pilar's scores were 89, 95, 60, 81 and 100. What is the average score?"
},
{
"role": "assistant",
"content": "The average score is 85."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "85", "printed": "85", "notation": null} |
nlprog_det-setting-0054948 | Starting from $8,000, the team spends $3,808, $633, $2,694, $3,813. What remains?
```python
budget = 8000
expenses = [3808, 633, 2694, 3813]
left = budget - sum(expenses) # -2948
print(left)
```
What it prints: -2948
The remaining budget is -$2,948. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "-2948", "printed": "-2948", "notation": null} |
nlprog_det-setting-0054949 | <|start|><|user|>
The landlord deducts $45 and $150 from a $800 deposit. What is returned to the tenant?<|eot|>
<|assistant|>
```python
deposit = 800
deductions = [45, 150]
refund = deposit - sum(deductions) # 605
print(refund)
```
The program outputs 605.
The refund is $605.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The landlord deducts $45 and $150 from a $800 deposit. What is returned to the tenant?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 800\ndeductions = [45, 150]\nrefund = deposit - sum(deductions) # 605\nprint(refund)\n```\nThe program outputs 605.\n\... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "605", "printed": "605", "notation": null} |
nlprog_det-setting-0054950 | Straight-line depreciation: cost $30,000, salvage $0, 8 years. How much per year?
$3,750.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "3750.00", "printed": "3750.00", "notation": null} |
nlprog_det-setting-0054951 | <|start|><|user|>
If a 90-minute shift begins at 10:20 AM, what time does it finish?<|eot|>
<|assistant|>
```python
start = 10 * 60 + 20
end = start + 90
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Executing it gives 11:50 AM, as expected.
It ends at 11... | chat | [
{
"role": "user",
"content": "If a 90-minute shift begins at 10:20 AM, what time does it finish?"
},
{
"role": "assistant",
"content": "```python\nstart = 10 * 60 + 20\nend = start + 90\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}\")\... | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "11:50 AM", "printed": "11:50 AM", "notation": null} |
nlprog_det-setting-0054952 | <|start|><|system|>
Tools (call with JSON):
[{"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": "search_cases", "description": ... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"py_exec\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [... | nlprog_det | setting | original | null | deterministic | [] | [] | 395 | {"gold": "7.4", "printed": "7.4", "notation": null} |
nlprog_det-setting-0054953 | A library charges $0.10 per book per day late. What is the fine for 1 books that are 4 days late?
```python
per_day = 0.1
days_late = 4
books = 1
fine = per_day * days_late * books # 0.4
print(f"{fine:.2f}")
```
Executing it gives: 0.40
$0.40 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "0.40", "printed": "0.40", "notation": null} |
nlprog_det-setting-0054954 | <|start|><|system|>
You help people work with structured data.<|eot|>
<|user|>
Split $1,872 between Emeka and Noor in the ratio 1 to 2. What is Emeka's share?<|eot|>
<|assistant|>
```python
total = 1872
parts_a = 1
parts_b = 2
share_a = total * parts_a // (parts_a + parts_b) # 624
print(share_a)
```
The program output... | chat | [
{
"role": "system",
"content": "You help people work with structured data."
},
{
"role": "user",
"content": "Split $1,872 between Emeka and Noor in the ratio 1 to 2. What is Emeka's share?"
},
{
"role": "assistant",
"content": "```python\ntotal = 1872\nparts_a = 1\nparts_b = 2\nshare... | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "624", "printed": "624", "notation": null} |
nlprog_det-setting-0054955 | What simple interest does $2,500 earn at 8% a year over 2 years?
```python
principal = 2500
rate = 8 / 100 # 0.08
years = 2
interest = principal * rate * years # 400.0
print(f"{interest:.2f}")
```
Run it and it prints: 400.00
It earns $400.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "400.00", "printed": "400.00", "notation": null} |
nlprog_det-setting-0054956 | Prorate $900 of monthly rent for 5 days of a 30-day month.
In Python:
```python
rent = 900
days_in_month = 30
days_occupied = 5
prorated = rent * days_occupied / days_in_month
print(f"{prorated:.2f}")
```
The script prints 150.00.
The tenant owes $150.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "150.00", "printed": "150.00", "notation": null} |
nlprog_det-setting-0054957 | What is the total rent on a 24-month lease at $1,640 a month?
In Python:
```python
monthly_rent = 1640
months = 24
total = monthly_rent * months # 39360
print(total)
```
Output of the run: 39360
In total, $39,360 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "39360", "printed": "39360", "notation": null} |
nlprog_det-setting-0054958 | <|start|><|user|>
Starting with 1228 sticky pads and using 26 per day, how many remain after 9 days?<|eot|>
<|assistant|>
994 sticky pads are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting with 1228 sticky pads and using 26 per day, how many remain after 9 days?"
},
{
"role": "assistant",
"content": "994 sticky pads are left."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "994", "printed": "994", "notation": null} |
nlprog_det-setting-0054959 | <|start|><|system|>
Be concise.<|eot|>
<|user|>
A meal costs $150.01. How much is a 10% tip?<|eot|>
<|assistant|>
```python
bill = 150.01
tip_rate = 10 / 100 # 0.1
tip = bill * tip_rate # 15.001
print(f"{tip:.2f}")
```
# stdout: 15.00
The tip is $15.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be concise."
},
{
"role": "user",
"content": "A meal costs $150.01. How much is a 10% tip?"
},
{
"role": "assistant",
"content": "```python\nbill = 150.01\ntip_rate = 10 / 100 # 0.1\ntip = bill * tip_rate # 15.001\nprint(f\"{tip:.2f}\")\n```\n# stdou... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "15.00", "printed": "15.00", "notation": null} |
nlprog_det-setting-0054960 | <|start|><|system|>
Be concise.<|eot|>
<|user|>
From a $2,500 retainer, 8 hours at $150/hour have been drawn. What remains?<|eot|>
<|assistant|>
```python
retainer = 2500
hours = 8
rate = 150
left = retainer - hours * rate # 1300
print(left)
```
It prints 1300.
$1,300 of the retainer is left.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be concise."
},
{
"role": "user",
"content": "From a $2,500 retainer, 8 hours at $150/hour have been drawn. What remains?"
},
{
"role": "assistant",
"content": "```python\nretainer = 2500\nhours = 8\nrate = 150\nleft = retainer - hours * rate # 1300\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "1300", "printed": "1300", "notation": null} |
nlprog_det-setting-0054961 | A car gets 25 miles per gallon. Gas is $3.19 a gallon. What does fuel cost for a 360-mile trip?
Fuel costs $45.94. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "45.94", "printed": "45.94", "notation": null} |
nlprog_det-setting-0054962 | What is a 15% tip on a $111.41 bill?
Here is the program.
```python
bill = 111.41
tip_rate = 15 / 100 # 0.15
tip = bill * tip_rate # 16.711499999999997
print(f"{tip:.2f}")
```
The script prints: 16.71
Leave $16.71. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "16.71", "printed": "16.71", "notation": null} |
nlprog_det-setting-0054963 | <|start|><|user|>
7 boxes hold 12 chairs each. After 12 are handed out, how many are left?<|eot|>
<|assistant|>
```python
boxes = 7
per_box = 12
given_away = 12
left = boxes * per_box - given_away # 72
print(left)
```
Program output — 72
72 chairs are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "7 boxes hold 12 chairs each. After 12 are handed out, how many are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 7\nper_box = 12\ngiven_away = 12\nleft = boxes * per_box - given_away # 72\nprint(left)\n```\nProgram output — 72\n\n72 chairs are lef... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "72", "printed": "72", "notation": null} |
nlprog_det-setting-0054964 | <|start|><|user|>
$1,000 is invested at 3% compounded yearly. What is it worth after 4 years?<|eot|>
<|assistant|>
```python
principal = 1000
rate = 3 / 100 # 0.03
years = 4
value = principal * (1 + rate) ** years # 1125.50881
print(f"{value:.2f}")
```
Running this gives 1125.51.
It is worth $1,125.51.<|eot|>
<|end|... | chat | [
{
"role": "user",
"content": "$1,000 is invested at 3% compounded yearly. What is it worth after 4 years?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 1000\nrate = 3 / 100 # 0.03\nyears = 4\nvalue = principal * (1 + rate) ** years # 1125.50881\nprint(f\"{value:.2f}\")\n```\nRu... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "1125.51", "printed": "1125.51", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.