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-0052592 | A storeroom has 644 desk lamps. The office uses 36 a day. How many are left after 8 days?
Code:
```python
stock = 644
per_day = 36
days = 8
left = stock - per_day * days # 356
print(left)
```
The script prints 356, as expected.
356 desk lamps are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "356", "printed": "356", "notation": null} |
nlprog_det-setting-0052593 | 2 friends split a $210 bill plus a 15% tip evenly. How much does each pay?
We can compute it in Python.
```python
bill = 210
tip_rate = 15 / 100 # 0.15
people = 2
each = bill * (1 + tip_rate) / people # 120.74999999999999
print(f"{each:.2f}")
```
The program prints 120.75, as expected.
The share is $120.75 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "120.75", "printed": "120.75", "notation": null} |
nlprog_det-setting-0052594 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "py_exec", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
A desk lamp costs $300. I... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"py_exec\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": ... | nlprog_det | setting | original | null | deterministic | [] | [] | 228 | {"gold": "255.00", "printed": "255.00", "notation": null} |
nlprog_det-setting-0052595 | With $12,500 in costs and $17,500 in revenue, what percent of revenue is profit? Round to one decimal.
Translated to Python:
```python
revenue = 17500
costs = 12500
profit = revenue - costs # 5000
margin = profit / revenue * 100 # 28.57142857142857
print(round(margin, 1))
```
Result = 28.6
The margin is 28.6%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "28.6", "printed": "28.6", "notation": null} |
nlprog_det-setting-0052596 | <|start|><|user|>
Starting from $5,000, the team spends $3,071, $604, $2,635. What remains?<|eot|>
<|assistant|>
budget = 5000
expenses = [3071, 604, 2635]
left = budget - sum(expenses) # -1310
print(left)
Run it and it prints -1310.
The remaining budget is -$1,310.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting from $5,000, the team spends $3,071, $604, $2,635. What remains?"
},
{
"role": "assistant",
"content": " budget = 5000\n expenses = [3071, 604, 2635]\n left = budget - sum(expenses) # -1310\n print(left)\nRun it and it prints -1310.\n\nThe rema... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "-1310", "printed": "-1310", "notation": null} |
nlprog_det-setting-0052597 | How many units at $20 each (variable cost $14) cover $1,200 of fixed costs?
In Python:
```python
import math
fixed = 1200
price = 20
variable = 14
units = math.ceil(fixed / (price - variable)) # 200
print(units)
```
Run output: 200
Break-even is 200 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "200", "printed": "200", "notation": null} |
nlprog_det-setting-0052598 | <|start|><|user|>
Convert 2 h 38 min (the length of a hearing) to minutes.<|eot|>
<|assistant|>
The hearing lasted 158 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 2 h 38 min (the length of a hearing) to minutes."
},
{
"role": "assistant",
"content": "The hearing lasted 158 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "158", "printed": "158", "notation": null} |
nlprog_det-setting-0052600 | Parking is $5 per hour with a daily maximum of $15. What do 7 hours cost?
Parking costs $15. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0052601 | A count moves from 400 to 380. By what percent did it change (use a minus sign for a drop)?
Script:
```python
old = 400
new = 380
change = (new - old) / old * 100 # -5.0
print(round(change))
```
This prints: -5
The change is -5%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "-5", "printed": "-5", "notation": null} |
nlprog_det-setting-0052602 | Lena earns a 8% commission on $35,332 of sales. What is the commission?
Computation in Python:
```python
sales = 35332
rate = 8 / 100 # 0.08
commission = sales * rate # 2826.56
print(f"{commission:.2f}")
```
The script prints: 2826.56
Lena earns $2,826.56. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "2826.56", "printed": "2826.56", "notation": null} |
nlprog_det-setting-0052603 | A settlement of $525 is split equally among 5 parties. How much does each party receive?
Translated to Python:
```python
settlement = 525
parties = 5
share = settlement // parties
print(share)
```
stdout:
105
Each share is $105. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "105", "printed": "105", "notation": null} |
nlprog_det-setting-0052604 | Pack A has 8 items for $8.69. Pack B has 24 items for $20.72. Which has the lower price per item?
Python code:
pack_a = 8.69 / 8 # 1.08625
pack_b = 20.72 / 24 # 0.8633333333333333
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
It outputs B.
B has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0052605 | An office budget of $20,000 has expenses of $3,024, $2,539, $1,917. How much of the budget is left?
Set it up in Python:
```python
budget = 20000
expenses = [3024, 2539, 1917]
left = budget - sum(expenses) # 12520
print(left)
```
(Program output: 12520)
The remaining budget is $12,520. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "12520", "printed": "12520", "notation": null} |
nlprog_det-setting-0052606 | <|start|><|user|>
Nikhil earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 49-hour week?<|eot|>
<|assistant|>
Nikhil earns $1,070.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Nikhil earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 49-hour week?"
},
{
"role": "assistant",
"content": "Nikhil earns $1,070.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 54 | {"gold": "1070.00", "printed": "1070.00", "notation": null} |
nlprog_det-setting-0052607 | <|start|><|user|>
Flooring at $3/sq ft for a 19 ft × 16 ft room costs how much?<|eot|>
<|assistant|>
The flooring costs $912.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Flooring at $3/sq ft for a 19 ft × 16 ft room costs how much?"
},
{
"role": "assistant",
"content": "The flooring costs $912."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "912", "printed": "912", "notation": null} |
nlprog_det-setting-0052608 | Rent of $2,200 goes up 5%. What is the new rent?
Here is the program.
```python
rent = 2200
increase = 5 / 100 # 0.05
new_rent = rent * (1 + increase) # 2310.0
print(f"{new_rent:.2f}")
```
(Out: 2310.00)
The new rent is $2,310.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "2310.00", "printed": "2310.00", "notation": null} |
nlprog_det-setting-0052609 | <|start|><|system|>
You are a careful assistant.<|eot|>
<|user|>
8 claimants share a $84,000 settlement equally. What is each share?<|eot|>
<|assistant|>
Each share is $10,500.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a careful assistant."
},
{
"role": "user",
"content": "8 claimants share a $84,000 settlement equally. What is each share?"
},
{
"role": "assistant",
"content": "Each share is $10,500."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "10500", "printed": "10500", "notation": null} |
nlprog_det-setting-0052610 | Elena lends $5,000 at 5% simple interest per year for 4 years. How much interest is earned?
Written as code:
```python
principal = 5000
rate = 5 / 100 # 0.05
years = 4
interest = principal * rate * years # 1000.0
print(f"{interest:.2f}")
```
Out: 1000.00
It earns $1,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "1000.00", "printed": "1000.00", "notation": null} |
nlprog_det-setting-0052611 | Shipping costs $12 plus $2.00 per pound. What does a 28-pound parcel cost to ship?
Python code:
```python
base = 12
per_pound = 2.0
weight = 28
cost = base + per_pound * weight # 68.0
print(f"{cost:.2f}")
```
Out: 68.00
Shipping costs $68.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "68.00", "printed": "68.00", "notation": null} |
nlprog_det-setting-0052612 | Attendance was 52 out of 80. Express it as a percent.
One way, in code:
```python
present = 52
total = 80
percent = present / total * 100 # 65.0
print(round(percent, 1))
```
Program output — 65.0
65.0% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "65.0", "printed": "65.0", "notation": null} |
nlprog_det-setting-0052613 | Express 211 hours in days and hours.
A few lines of Python do it:
hours = 211
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
When run, it prints: 8 days and 19 hours
211 hours is 8 days and 19 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "8 days and 19 hours", "printed": "8 days and 19 hours", "notation": null} |
nlprog_det-setting-0052614 | A $2,400 loan carries 6% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?
Computation in Python:
```python
principal = 2400
annual_rate = 6 / 100 # 0.06
months = 24
interest = principal * annual_rate * months / 12 # 288.0
payment = (principal +... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 152 | {"gold": "112.00", "printed": "112.00", "notation": null} |
nlprog_det-setting-0052616 | <|start|><|user|>
Lucia earns a 6% commission on $88,176 of sales. What is the commission?<|eot|>
<|assistant|>
```python
sales = 88176
rate = 6 / 100 # 0.06
commission = sales * rate # 5290.5599999999995
print(f"{commission:.2f}")
```
On running, it outputs: 5290.56
Lucia earns $5,290.56.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Lucia earns a 6% commission on $88,176 of sales. What is the commission?"
},
{
"role": "assistant",
"content": "```python\nsales = 88176\nrate = 6 / 100 # 0.06\ncommission = sales * rate # 5290.5599999999995\nprint(f\"{commission:.2f}\")\n```\nOn running, it outpu... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "5290.56", "printed": "5290.56", "notation": null} |
nlprog_det-setting-0052617 | <|start|><|user|>
Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 44 hours?<|eot|>
<|assistant|>
```python
rate = 25.0
hours = 44
regular = 40 * rate # 1000.0
overtime = (hours - 40) * rate * 1.5 # 150.0
pay = regular + overtime # 1150.0
print(f"{pay:.2f}")
```
Executing it giv... | chat | [
{
"role": "user",
"content": "Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 44 hours?"
},
{
"role": "assistant",
"content": "```python\nrate = 25.0\nhours = 44\nregular = 40 * rate # 1000.0\novertime = (hours - 40) * rate * 1.5 # 150.0\npay = regular + ... | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "1150.00", "printed": "1150.00", "notation": null} |
nlprog_det-setting-0052618 | <|start|><|user|>
A recipe for 8 people uses 150 grams of lentils. How many grams are needed for 12 people?<|eot|>
<|assistant|>
```python
grams = 150
serves = 8
needed_for = 12
scaled = grams * needed_for // serves # 225
print(scaled)
```
Program output: 225
225 grams of lentils are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A recipe for 8 people uses 150 grams of lentils. How many grams are needed for 12 people?"
},
{
"role": "assistant",
"content": "```python\ngrams = 150\nserves = 8\nneeded_for = 12\nscaled = grams * needed_for // serves # 225\nprint(scaled)\n```\nProgram output: 22... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "225", "printed": "225", "notation": null} |
nlprog_det-setting-0052619 | <|start|><|system|>
You are a study helper for students.<|eot|>
<|user|>
A 792-page report must be reviewed in 18 days. How many pages a day is that, evenly?<|eot|>
<|assistant|>
```python
pages = 792
days = 18
per_day = pages // days # 44
print(per_day)
```
The script prints 44.
44 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a study helper for students."
},
{
"role": "user",
"content": "A 792-page report must be reviewed in 18 days. How many pages a day is that, evenly?"
},
{
"role": "assistant",
"content": "```python\npages = 792\ndays = 18\nper_day = pages // day... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "44", "printed": "44", "notation": null} |
nlprog_det-setting-0052620 | At 1% a month (simple), what interest builds on $7,500 over 3 months?
A Python solution:
```python
balance = 7500
monthly_rate = 1 / 100 # 0.01
months = 3
interest = balance * monthly_rate * months # 225.0
print(f"{interest:.2f}")
```
Output of the run — 225.00
The interest is $225.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "225.00", "printed": "225.00", "notation": null} |
nlprog_det-setting-0052621 | Straight-line depreciation: cost $30,000, salvage $6,000, 6 years. How much per year?
Python version:
```python
cost = 30000
salvage = 6000
years = 6
per_year = (cost - salvage) / years # 4000.0
print(f"{per_year:.2f}")
```
Program output: 4000.00
$4,000.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "4000.00", "printed": "4000.00", "notation": null} |
nlprog_det-setting-0052622 | <|start|><|user|>
A hearing lasted 3 hours and 18 minutes. How many minutes is that?<|eot|>
<|assistant|>
That is 198 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hearing lasted 3 hours and 18 minutes. How many minutes is that?"
},
{
"role": "assistant",
"content": "That is 198 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "198", "printed": "198", "notation": null} |
nlprog_det-setting-0052623 | <|start|><|system|>
Keep answers short and correct.<|eot|>
<|user|>
A car travels 580 miles in 2.5 hours. What is its average speed in miles per hour?<|eot|>
<|assistant|>
```python
distance = 580
hours = 2.5
speed = distance / hours # 232.0
print(round(speed))
```
Running it prints 232.
The average speed is 232 mph.... | chat | [
{
"role": "system",
"content": "Keep answers short and correct."
},
{
"role": "user",
"content": "A car travels 580 miles in 2.5 hours. What is its average speed in miles per hour?"
},
{
"role": "assistant",
"content": "```python\ndistance = 580\nhours = 2.5\nspeed = distance / hours... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "232", "printed": "232", "notation": null} |
nlprog_det-setting-0052624 | A 9 × 15 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?
import math
length = 9
width = 15
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 135
print(tiles)
On running, it outputs: 135
135 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "135", "printed": "135", "notation": null} |
nlprog_det-setting-0052626 | A 28 lb package ships at $10 base plus $1.50/lb. What is the charge?
Here's the code.
```python
base = 10
per_pound = 1.5
weight = 28
cost = base + per_pound * weight # 52.0
print(f"{cost:.2f}")
```
Run it and it prints 52.00.
Shipping costs $52.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "52.00", "printed": "52.00", "notation": null} |
nlprog_det-setting-0052627 | How many 1-foot square tiles cover a 4 ft by 15 ft floor (round up)?
In code:
```python
import math
length = 4
width = 15
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 60
print(tiles)
```
Output = 60
60 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "60", "printed": "60", "notation": null} |
nlprog_det-setting-0052628 | How many weekdays (Monday to Friday) fall after October 14, 2026 up to and including November 17, 2026?
Coded up:
```python
from datetime import date, timedelta
start = date(2026, 10, 14)
end = date(2026, 11, 17)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekday() < 5:
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 156 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0052629 | How many 1-foot square tiles cover a 18 ft by 11 ft floor (round up)?
Computing it:
```python
import math
length = 18
width = 11
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 198
print(tiles)
```
# console output: 198
198 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "198", "printed": "198", "notation": null} |
nlprog_det-setting-0052630 | <|start|><|user|>
Straight-line depreciation: cost $45,000, salvage $2,000, 3 years. How much per year?<|eot|>
<|assistant|>
```python
cost = 45000
salvage = 2000
years = 3
per_year = (cost - salvage) / years
print(f"{per_year:.2f}")
```
That prints 14333.33.
$14,333.33 a year.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Straight-line depreciation: cost $45,000, salvage $2,000, 3 years. How much per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 45000\nsalvage = 2000\nyears = 3\nper_year = (cost - salvage) / years\nprint(f\"{per_year:.2f}\")\n```\nThat prints 14333.3... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "14333.33", "printed": "14333.33", "notation": null} |
nlprog_det-setting-0052631 | What is a 18% tip on a $132.63 bill?
Script:
```python
bill = 132.63
tip_rate = 18 / 100 # 0.18
tip = bill * tip_rate # 23.873399999999997
print(f"{tip:.2f}")
```
When run, it prints 23.87.
Leave $23.87. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "23.87", "printed": "23.87", "notation": null} |
nlprog_det-setting-0052632 | With 20% off, what does a $300 jacket cost?
Python, step by step:
```python
price = 300
discount = 20 / 100 # 0.2
sale_price = price * (1 - discount) # 240.0
print(f"{sale_price:.2f}")
```
Output: 240.00
It costs $240.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "240.00", "printed": "240.00", "notation": null} |
nlprog_det-setting-0052634 | Papers were served by mail on April 18, 2018. A response is due 30 days after service, plus 3 extra days for mailing. What is the due date?
One way, in code:
```python
from datetime import date, timedelta
served = date(2018, 4, 18) # datetime.date(2018, 4, 18)
response_days = 30
mail_days = 3
due = served + timedelta... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 179 | {"gold": "2018-05-21", "printed": "2018-05-21", "notation": null} |
nlprog_det-setting-0052635 | At 1% a month (simple), what interest builds on $7,500 over 3 months?
As a program:
```python
balance = 7500
monthly_rate = 1 / 100 # 0.01
months = 3
interest = balance * monthly_rate * months # 225.0
print(f"{interest:.2f}")
```
Program output: 225.00
$225.00 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "225.00", "printed": "225.00", "notation": null} |
nlprog_det-setting-0052636 | Divide 126 items among 3 groups as evenly as possible with equal groups. How many per group, and how many remain?
Programmatically:
```python
total = 126
groups = 3
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
The printout reads: 42 each, 0 left over
42 each, 0 le... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "42 each, 0 left over", "printed": "42 each, 0 left over", "notation": null} |
nlprog_det-setting-0052638 | <|start|><|user|>
12 boxes hold 25 clipboards each. After 16 are handed out, how many are left?<|eot|>
<|assistant|>
284 clipboards are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "12 boxes hold 25 clipboards each. After 16 are handed out, how many are left?"
},
{
"role": "assistant",
"content": "284 clipboards are left."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "284", "printed": "284", "notation": null} |
nlprog_det-setting-0052639 | A $1,200 loan carries 6% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?
We can compute it in Python.
```python
principal = 1200
annual_rate = 6 / 100 # 0.06
months = 12
interest = principal * annual_rate * months / 12 # 72.0
payment = (princi... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 154 | {"gold": "106.00", "printed": "106.00", "notation": null} |
nlprog_det-setting-0052640 | A service costs $12 a month or $108 a year. How much does the yearly plan save over 12 monthly payments?
Python makes this quick:
```python
monthly = 12
yearly = 108
savings = monthly * 12 - yearly # 36
print(savings)
```
Executing it gives 36, as expected.
$36 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0052641 | Of a $2,000 budget, $600 has been spent. What percent is that?
Script:
```python
budget = 2000
spent = 600
percent = spent / budget * 100 # 30.0
print(round(percent, 1))
```
Executing it gives: 30.0
30.0% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "30.0", "printed": "30.0", "notation": null} |
nlprog_det-setting-0052642 | Shipping costs $5 plus $1.50 per pound. What does a 39-pound parcel cost to ship?
Here is the program.
```python
base = 5
per_pound = 1.5
weight = 39
cost = base + per_pound * weight # 63.5
print(f"{cost:.2f}")
```
When run, it prints 63.50, as expected.
The charge is $63.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "63.50", "printed": "63.50", "notation": null} |
nlprog_det-setting-0052643 | A recipe for 2 people uses 300 grams of rice. How many grams are needed for 6 people?
Script:
```python
grams = 300
serves = 2
needed_for = 6
scaled = grams * needed_for // serves # 900
print(scaled)
```
This prints 900, as expected.
Use 900 g of rice. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0052644 | <|start|><|user|>
8 notebooks cost $5 apiece. With 7% tax added, what is the total?<|eot|>
<|assistant|>
```python
quantity = 8
unit_price = 5
subtotal = quantity * unit_price # 40
total = subtotal * (1 + 7 / 100) # 42.800000000000004
print(f"{total:.2f}")
```
Console output: 42.80
The invoice total is $42.80.<|eot|... | chat | [
{
"role": "user",
"content": "8 notebooks cost $5 apiece. With 7% tax added, what is the total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 8\nunit_price = 5\nsubtotal = quantity * unit_price # 40\ntotal = subtotal * (1 + 7 / 100) # 42.800000000000004\nprint(f\"{total:.2f}\")\... | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "42.80", "printed": "42.80", "notation": null} |
nlprog_det-setting-0052645 | Each storage box holds 20 files. How many boxes are needed for 330 files?
17 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 28 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0052646 | $2,000 is invested at 4% compounded yearly. What is it worth after 5 years?
Computation in Python:
principal = 2000
rate = 4 / 100 # 0.04
years = 5
value = principal * (1 + rate) ** years # 2433.3058048000003
print(f"{value:.2f}")
(Result: 2433.31)
It is worth $2,433.31. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "2433.31", "printed": "2433.31", "notation": null} |
nlprog_det-setting-0052647 | A count moves from 2,000 to 2,300. By what percent did it change (use a minus sign for a drop)?
Translated to Python:
```python
old = 2000
new = 2300
change = (new - old) / old * 100 # 15.0
print(round(change))
```
Execution result: 15
The change is 15%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0052648 | At $24.50 an hour, what does 16 hours of work pay?
Here is a short program for it.
```python
rate = 24.5
hours = 16
earnings = rate * hours # 392.0
print(f"{earnings:.2f}")
```
stdout:
392.00
The pay is $392.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "392.00", "printed": "392.00", "notation": null} |
nlprog_det-setting-0052649 | How many meters are in 49.9 kilometers?
The program:
```python
km = 49.9
meters = km * 1000 # 49900.0
print(round(meters))
```
Printed = 49900
That is 49,900 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "49900", "printed": "49900", "notation": null} |
nlprog_det-setting-0052650 | Prorate $1,500 of monthly rent for 15 days of a 31-day month.
```python
rent = 1500
days_in_month = 31
days_occupied = 15
prorated = rent * days_occupied / days_in_month # 725.8064516129032
print(f"{prorated:.2f}")
```
Execution result — 725.81
The tenant owes $725.81. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "725.81", "printed": "725.81", "notation": null} |
nlprog_det-setting-0052651 | From a $2,500 retainer, 4 hours at $250/hour have been drawn. What remains?
```python
retainer = 2500
hours = 4
rate = 250
left = retainer - hours * rate # 1500
print(left)
```
Out — 1500
The remaining balance is $1,500. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "1500", "printed": "1500", "notation": null} |
nlprog_det-setting-0052652 | <|start|><|user|>
A quorum is 2/3 of the 46 members, rounded up. How many members make a quorum?<|eot|>
<|assistant|>
import math
members = 46
quorum = math.ceil(members * 2 / 3) # 31
print(quorum)
The run gives 31, as expected.
That is 31 members.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A quorum is 2/3 of the 46 members, rounded up. How many members make a quorum?"
},
{
"role": "assistant",
"content": " import math\n members = 46\n quorum = math.ceil(members * 2 / 3) # 31\n print(quorum)\nThe run gives 31, as expected.\n\nThat is 31 me... | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "31", "printed": "31", "notation": null} |
nlprog_det-setting-0052653 | A storeroom has 1705 calendars. The office uses 11 a day. How many are left after 12 days?
Python code:
stock = 1705
per_day = 11
days = 12
left = stock - per_day * days # 1573
print(left)
It prints 1573, as expected.
1573 calendars are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "1573", "printed": "1573", "notation": null} |
nlprog_det-setting-0052654 | At $0.70 per mile, what is the reimbursement for 413 miles?
As a program:
```python
miles = 413
rate = 0.7
reimbursement = miles * rate # 289.09999999999997
print(f"{reimbursement:.2f}")
```
The program prints 289.10.
Dara is owed $289.10. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "289.10", "printed": "289.10", "notation": null} |
nlprog_det-setting-0052655 | A lease runs for 6 months at $1,640 per month. How much rent is paid over the whole term?
Here is the program.
```python
monthly_rent = 1640
months = 6
total = monthly_rent * months # 9840
print(total)
```
Execution prints: 9840
In total, $9,840 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "9840", "printed": "9840", "notation": null} |
nlprog_det-setting-0052656 | Emeka was born on April 17, 1982. How old is Emeka on July 2, 2020?
The computation:
```python
from datetime import date
born = date(1982, 4, 17) # datetime.date(1982, 4, 17)
on = date(2020, 7, 2) # datetime.date(2020, 7, 2)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 38
print(age)
`... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 154 | {"gold": "38", "printed": "38", "notation": null} |
nlprog_det-setting-0052657 | <|start|><|system|>
You are a precise assistant.<|eot|>
<|user|>
Pack A has 6 items for $10.96. Pack B has 24 items for $6.73. Which has the lower price per item?<|eot|>
<|assistant|>
```python
pack_a = 10.96 / 6 # 1.8266666666666669
pack_b = 6.73 / 24 # 0.2804166666666667
cheaper = "A" if pack_a < pack_b else "B" #... | chat | [
{
"role": "system",
"content": "You are a precise assistant."
},
{
"role": "user",
"content": "Pack A has 6 items for $10.96. Pack B has 24 items for $6.73. Which has the lower price per item?"
},
{
"role": "assistant",
"content": "```python\npack_a = 10.96 / 6 # 1.8266666666666669\... | nlprog_det | setting | original | null | deterministic | [] | [] | 158 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0052658 | To read 192 pages in 16 days, how many pages per day are needed?
Python:
```python
pages = 192
days = 16
per_day = pages // days
print(per_day)
```
The run gives: 12
12 pages a day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0052659 | How long, in days, is it from February 18, 2021 until October 18, 2021?
A short script:
```python
from datetime import date
first = date(2021, 2, 18) # datetime.date(2021, 2, 18)
second = date(2021, 10, 18) # datetime.date(2021, 10, 18)
print((second - first).days)
```
That prints 242.
There are 242 days between th... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "242", "printed": "242", "notation": null} |
nlprog_det-setting-0052660 | <|start|><|user|>
A count moves from 2,000 to 1,200. By what percent did it change (use a minus sign for a drop)?<|eot|>
<|assistant|>
```python
old = 2000
new = 1200
change = (new - old) / old * 100 # -40.0
print(round(change))
```
# stdout: -40
The change is -40%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A count moves from 2,000 to 1,200. By what percent did it change (use a minus sign for a drop)?"
},
{
"role": "assistant",
"content": "```python\nold = 2000\nnew = 1200\nchange = (new - old) / old * 100 # -40.0\nprint(round(change))\n```\n# stdout: -40\n\nThe chang... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "-40", "printed": "-40", "notation": null} |
nlprog_det-setting-0052661 | <|start|><|user|>
Flooring at $5/sq ft for a 13 ft × 17 ft room costs how much?<|eot|>
<|assistant|>
It costs $1,105.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Flooring at $5/sq ft for a 13 ft × 17 ft room costs how much?"
},
{
"role": "assistant",
"content": "It costs $1,105."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "1105", "printed": "1105", "notation": null} |
nlprog_det-setting-0052662 | After a 25% fee is taken from a $72,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?
Python code:
```python
award = 72000
fee = award * 25 / 100 # 18000.0
remaining = award - fee # 54000.0
per_client = remaining / 3 # 18000.0
print(f"{per_client:.2f}")
```
When run, it prints ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "18000.00", "printed": "18000.00", "notation": null} |
nlprog_det-setting-0052663 | <|start|><|user|>
Each storage box holds 24 files. How many boxes are needed for 295 files?<|eot|>
<|assistant|>
13 boxes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each storage box holds 24 files. How many boxes are needed for 295 files?"
},
{
"role": "assistant",
"content": "13 boxes are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0052664 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "sandbox_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"sandbox_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python... | nlprog_det | setting | original | null | deterministic | [] | [] | 236 | {"gold": "13200.00", "printed": "13200.00", "notation": null} |
nlprog_det-setting-0052665 | A trial runs from September 10, 2025 to October 2, 2025, counting both days. How many calendar days is that?
Code:
```python
from datetime import date
first = date(2025, 9, 10) # datetime.date(2025, 9, 10)
last = date(2025, 10, 2) # datetime.date(2025, 10, 2)
days = (last - first).days + 1 # 23
print(days)
```
It p... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0052666 | A customer buys 6 clipboards at $7 each, 2 pens at $8 each and pays with $100. How much change is due?
The program:
```python
items = [(6, 7), (2, 8)]
total = sum(q * p for q, p in items) # 58
paid = 100
change = paid - total # 42
print(change)
```
Execution prints 42, as expected.
$42 comes back. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "42", "printed": "42", "notation": null} |
nlprog_det-setting-0052667 | 24 of 25 members attended. What percent attended?
Let the code do the arithmetic:
```python
present = 24
total = 25
percent = present / total * 100 # 96.0
print(round(percent, 1))
```
Executed, it shows 96.0.
Attendance was 96.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "96.0", "printed": "96.0", "notation": null} |
nlprog_det-setting-0052668 | Divide 32 items among 6 groups as evenly as possible with equal groups. How many per group, and how many remain?
One way, in code:
```python
total = 32
groups = 6
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
When run, it prints 5 each, 2 left over.
The answer: 5 e... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "5 each, 2 left over", "printed": "5 each, 2 left over", "notation": null} |
nlprog_det-setting-0052670 | Monthly: $19. Annual: $204. What is saved per year by paying annually?
We write it as a program:
```python
monthly = 19
yearly = 204
savings = monthly * 12 - yearly # 24
print(savings)
```
Printed:
24
$24 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0052672 | Fixed costs are $6,000. Each unit sells for $30 and costs $24 to make. How many units must be sold to break even?
Python version:
```python
import math
fixed = 6000
price = 30
variable = 24
units = math.ceil(fixed / (price - variable)) # 1000
print(units)
```
When run, it prints 1000, as expected.
Break-even is 1000... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0052673 | <|start|><|user|>
What day of the week is March 27, 1997?<|eot|>
<|assistant|>
from datetime import date
hearing = date(1997, 3, 27) # datetime.date(1997, 3, 27)
print(hearing.strftime("%A"))
On running, it outputs: Thursday
It is a Thursday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What day of the week is March 27, 1997?"
},
{
"role": "assistant",
"content": " from datetime import date\n hearing = date(1997, 3, 27) # datetime.date(1997, 3, 27)\n print(hearing.strftime(\"%A\"))\nOn running, it outputs: Thursday\n\nIt is a Thursday."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "Thursday", "printed": "Thursday", "notation": null} |
nlprog_det-setting-0052674 | <|start|><|user|>
How many minutes pass from 7:08 AM to 7:48 AM on the same day?<|eot|>
<|assistant|>
```python
start = 7 * 60 + 8 # 428
end = 7 * 60 + 48 # 468
print(end - start)
```
It prints 40.
40 minutes pass.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many minutes pass from 7:08 AM to 7:48 AM on the same day?"
},
{
"role": "assistant",
"content": "```python\nstart = 7 * 60 + 8 # 428\nend = 7 * 60 + 48 # 468\nprint(end - start)\n```\nIt prints 40.\n\n40 minutes pass."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0052675 | 742 files go into boxes of 24. How many boxes does that take?
In code:
```python
import math
files = 742
per_box = 24
boxes = math.ceil(files / per_box) # 31
print(boxes)
```
The program outputs 31.
31 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "31", "printed": "31", "notation": null} |
nlprog_det-setting-0052676 | The rules require 3/5 of 27 members (round up) to be present. How many is that?
Translated to Python:
import math
members = 27
quorum = math.ceil(members * 3 / 5) # 17
print(quorum)
Python prints: 17
17 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0052677 | <|start|><|user|>
A 380-page report must be reviewed in 20 days. How many pages a day is that, evenly?<|eot|>
<|assistant|>
```python
pages = 380
days = 20
per_day = pages // days # 19
print(per_day)
```
Executing it gives: 19
That is 19 pages per day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 380-page report must be reviewed in 20 days. How many pages a day is that, evenly?"
},
{
"role": "assistant",
"content": "```python\npages = 380\ndays = 20\nper_day = pages // days # 19\nprint(per_day)\n```\nExecuting it gives: 19\n\nThat is 19 pages per day."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0052678 | A court charges $10 per request plus $0.10 per page after the first 20 pages. What does a 49-page copy cost?
The copy costs $12.90. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "12.90", "printed": "12.90", "notation": null} |
nlprog_det-setting-0052679 | Convert 4,967 USD to CAD at 1 USD = 1.08 CAD.
We can compute it in Python.
```python
amount = 4967
rate = 1.08
converted = amount * rate # 5364.360000000001
print(f"{converted:.2f}")
```
Python prints 5364.36, as expected.
That is 5,364.36 CAD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "5364.36", "printed": "5364.36", "notation": null} |
nlprog_det-setting-0052680 | <|start|><|user|>
Under a 33% contingency agreement, what fee is owed on a $60,000 award?<|eot|>
<|assistant|>
The lawyer's fee comes to $19,800.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Under a 33% contingency agreement, what fee is owed on a $60,000 award?"
},
{
"role": "assistant",
"content": "The lawyer's fee comes to $19,800.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "19800.00", "printed": "19800.00", "notation": null} |
nlprog_det-setting-0052681 | Convert 7,301 USD to EUR at 1 USD = 1.27 EUR.
A Python solution:
```python
amount = 7301
rate = 1.27
converted = amount * rate # 9272.27
print(f"{converted:.2f}")
```
# output: 9272.27
It converts to 9,272.27 EUR. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "9272.27", "printed": "9272.27", "notation": null} |
nlprog_det-setting-0052682 | If a 3-year limitations period starts on September 17, 2014, when does it end?
The program:
```python
from datetime import date
accrued = date(2014, 9, 17) # datetime.date(2014, 9, 17)
years = 3
expires = accrued.replace(year=accrued.year + years) # datetime.date(2017, 9, 17)
print(expires.isoformat())
```
Execution... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "2017-09-17", "printed": "2017-09-17", "notation": null} |
nlprog_det-setting-0052683 | <|start|><|system|>
Tools (call with JSON):
{"name": "sandbox_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|>
<|user|>
Of a $4,000 budge... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n{\"name\": \"sandbox_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir... | nlprog_det | setting | original | null | deterministic | [] | [] | 220 | {"gold": "75.0", "printed": "75.0", "notation": null} |
nlprog_det-setting-0052684 | A lease runs for 6 months at $3,250 per month. How much rent is paid over the whole term?
In total, $19,500 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "19500", "printed": "19500", "notation": null} |
nlprog_det-setting-0052685 | A meal costs $96.40. How much is a 18% tip?
Let the code do the arithmetic:
```python
bill = 96.4
tip_rate = 18 / 100 # 0.18
tip = bill * tip_rate # 17.352
print(f"{tip:.2f}")
```
# printed result: 17.35
The tip is $17.35. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "17.35", "printed": "17.35", "notation": null} |
nlprog_det-setting-0052688 | Yoko's scores were 79, 89 and 60. What is the average score?
Computation in Python:
```python
scores = [79, 89, 60]
average = sum(scores) // len(scores) # 76
print(average)
```
# printed: 76
The average score is 76. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "76", "printed": "76", "notation": null} |
nlprog_det-setting-0052689 | A recipe for 2 people uses 450 grams of sugar. How many grams are needed for 8 people?
Programmatically:
```python
grams = 450
serves = 2
needed_for = 8
scaled = grams * needed_for // serves # 1800
print(scaled)
```
stdout — 1800
1800 grams of sugar are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "1800", "printed": "1800", "notation": null} |
nlprog_det-setting-0052690 | A 16 × 10 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?
A few lines of Python do it:
```python
import math
length = 16
width = 10
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 40
print(tiles)
```
It prints: 40
40 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0052691 | <|start|><|user|>
Prorate $2,400 of monthly rent for 25 days of a 31-day month.<|eot|>
<|assistant|>
rent = 2400
days_in_month = 31
days_occupied = 25
prorated = rent * days_occupied / days_in_month # 1935.483870967742
print(f"{prorated:.2f}")
Execution prints 1935.48.
The tenant owes $1,935.48.<|... | chat | [
{
"role": "user",
"content": "Prorate $2,400 of monthly rent for 25 days of a 31-day month."
},
{
"role": "assistant",
"content": " rent = 2400\n days_in_month = 31\n days_occupied = 25\n prorated = rent * days_occupied / days_in_month # 1935.483870967742\n print(f\"{prorated:.2f... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "1935.48", "printed": "1935.48", "notation": null} |
nlprog_det-setting-0052692 | Bilal earns $22.40 an hour and time and a half for hours over 40. What is the pay for a 54-hour week?
Here is the program.
```python
rate = 22.4
hours = 54
regular = 40 * rate # 896.0
overtime = (hours - 40) * rate * 1.5 # 470.4
pay = regular + overtime # 1366.4
print(f"{pay:.2f}")
```
(Program output: 1366.40)
Bi... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "1366.40", "printed": "1366.40", "notation": null} |
nlprog_det-setting-0052693 | A service costs $19 a month or $210 a year. How much does the yearly plan save over 12 monthly payments?
A Python solution:
```python
monthly = 19
yearly = 210
savings = monthly * 12 - yearly # 18
print(savings)
```
The printout reads: 18
$18 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0052694 | <|start|><|user|>
A service costs $19 a month or $204 a year. How much does the yearly plan save over 12 monthly payments?<|eot|>
<|assistant|>
monthly = 19
yearly = 204
savings = monthly * 12 - yearly # 24
print(savings)
Python prints 24, as expected.
The annual plan saves $24.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A service costs $19 a month or $204 a year. How much does the yearly plan save over 12 monthly payments?"
},
{
"role": "assistant",
"content": " monthly = 19\n yearly = 204\n savings = monthly * 12 - yearly # 24\n print(savings)\nPython prints 24, as ex... | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0052695 | <|start|><|user|>
Shipping costs $12 plus $2.00 per pound. What does a 26-pound parcel cost to ship?<|eot|>
<|assistant|>
Shipping costs $64.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Shipping costs $12 plus $2.00 per pound. What does a 26-pound parcel cost to ship?"
},
{
"role": "assistant",
"content": "Shipping costs $64.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "64.00", "printed": "64.00", "notation": null} |
nlprog_det-setting-0052697 | <|start|><|user|>
Starting from $25,000, the team spends $1,071, $3,936, $2,178. What remains?<|eot|>
<|assistant|>
```python
budget = 25000
expenses = [1071, 3936, 2178]
left = budget - sum(expenses) # 17815
print(left)
```
That prints: 17815
The remaining budget is $17,815.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting from $25,000, the team spends $1,071, $3,936, $2,178. What remains?"
},
{
"role": "assistant",
"content": "```python\nbudget = 25000\nexpenses = [1071, 3936, 2178]\nleft = budget - sum(expenses) # 17815\nprint(left)\n```\nThat prints: 17815\n\nThe remainin... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "17815", "printed": "17815", "notation": null} |
nlprog_det-setting-0052698 | <|start|><|system|>
Tools (call with JSON):
[{"name": "math_engine", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
A 13 lb package ships at... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"math_engine\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\... | nlprog_det | setting | original | null | deterministic | [] | [] | 229 | {"gold": "23.60", "printed": "23.60", "notation": null} |
nlprog_det-setting-0052699 | <|start|><|user|>
Shipping costs $12 plus $2.00 per pound. What does a 19-pound parcel cost to ship?<|eot|>
<|assistant|>
```python
base = 12
per_pound = 2.0
weight = 19
cost = base + per_pound * weight
print(f"{cost:.2f}")
```
Run output: 50.00
The charge is $50.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Shipping costs $12 plus $2.00 per pound. What does a 19-pound parcel cost to ship?"
},
{
"role": "assistant",
"content": "```python\nbase = 12\nper_pound = 2.0\nweight = 19\ncost = base + per_pound * weight\nprint(f\"{cost:.2f}\")\n```\nRun output: 50.00\n\nThe char... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "50.00", "printed": "50.00", "notation": null} |
nlprog_det-setting-0052700 | Idris earns a 4% commission on $87,741 of sales. What is the commission?
Idris earns $3,509.64. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "3509.64", "printed": "3509.64", "notation": null} |
nlprog_det-setting-0052701 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "calculator", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "convert_u... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"calculator\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\... | nlprog_det | setting | original | null | deterministic | [] | [] | 394 | {"gold": "2025-06-01", "printed": "2025-06-01", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.