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-0071961 | An unpaid balance of $2,500 accrues 2% simple interest per month. How much interest accrues in 6 months?
Set it up in Python:
```python
balance = 2500
monthly_rate = 2 / 100 # 0.02
months = 6
interest = balance * monthly_rate * months # 300.0
print(f"{interest:.2f}")
```
(Execution result: 300.00)
$300.00 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "300.00", "printed": "300.00", "notation": null} |
nlprog_det-setting-0071962 | <|start|><|system|>
Answer in plain English.<|eot|>
<|user|>
A 18 × 14 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?<|eot|>
<|assistant|>
```python
import math
length = 18
width = 14
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 63
print(tiles)
```
Result — 63
63 tiles are nee... | chat | [
{
"role": "system",
"content": "Answer in plain English."
},
{
"role": "user",
"content": "A 18 × 14 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 18\nwidth = 14\ntile = 2\ntiles = math.... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "63", "printed": "63", "notation": null} |
nlprog_det-setting-0071963 | Printing costs 5 cents a page. What does it cost to print 46 copies of a 11-page handout?
A few lines of Python do it:
```python
pages = 11
copies = 46
cost_per_page = 0.05
cost = pages * copies * cost_per_page # 25.3
print(f"{cost:.2f}")
```
Interpreter output: 25.30
The job costs $25.30. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "25.30", "printed": "25.30", "notation": null} |
nlprog_det-setting-0071964 | Equipment costs $30,000, has a salvage value of $3,000, and a useful life of 10 years. What is the straight-line depreciation per year?
Computing it:
```python
cost = 30000
salvage = 3000
years = 10
per_year = (cost - salvage) / years # 2700.0
print(f"{per_year:.2f}")
```
# console output: 2700.00
$2,700.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "2700.00", "printed": "2700.00", "notation": null} |
nlprog_det-setting-0071965 | 2 friends split a $120 bill plus a 20% tip evenly. How much does each pay?
Python makes this quick:
```python
bill = 120
tip_rate = 20 / 100 # 0.2
people = 2
each = bill * (1 + tip_rate) / people # 72.0
print(f"{each:.2f}")
```
Console:
72.00
Each person pays $72.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "72.00", "printed": "72.00", "notation": null} |
nlprog_det-setting-0071966 | Each of Rania's runs burns 400 calories. How many calories over 5 runs?
A short script:
per_session = 400
sessions = 5
total = per_session * sessions # 2000
print(total)
This prints 2000.
That burns 2000 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "2000", "printed": "2000", "notation": null} |
nlprog_det-setting-0071967 | An invoice lists 29 binders at $4 each, plus 8% sales tax. What is the invoice total?
As Python:
```python
quantity = 29
unit_price = 4
subtotal = quantity * unit_price # 116
total = subtotal * (1 + 8 / 100) # 125.28
print(f"{total:.2f}")
```
(Result: 125.28)
The total with tax is $125.28. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "125.28", "printed": "125.28", "notation": null} |
nlprog_det-setting-0071968 | <|start|><|system|>
You are a data assistant.<|eot|>
<|user|>
At $0.65 per mile, what is the reimbursement for 341 miles?<|eot|>
<|assistant|>
```python
miles = 341
rate = 0.65
reimbursement = miles * rate # 221.65
print(f"{reimbursement:.2f}")
```
stdout = 221.65
Tobias is owed $221.65.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a data assistant."
},
{
"role": "user",
"content": "At $0.65 per mile, what is the reimbursement for 341 miles?"
},
{
"role": "assistant",
"content": "```python\nmiles = 341\nrate = 0.65\nreimbursement = miles * rate # 221.65\nprint(f\"{reimbu... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "221.65", "printed": "221.65", "notation": null} |
nlprog_det-setting-0071969 | One can of paint covers 300 square feet. How many cans are needed for 309 square feet of wall?
Here is the program.
```python
import math
area = 309
coverage = 300
cans = math.ceil(area / coverage) # 2
print(cans)
```
Program output: 2
2 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0071970 | <|start|><|user|>
Divide 152 items among 5 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|>
<|assistant|>
30 each, 2 left over.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Divide 152 items among 5 groups as evenly as possible with equal groups. How many per group, and how many remain?"
},
{
"role": "assistant",
"content": "30 each, 2 left over."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "30 each, 2 left over", "printed": "30 each, 2 left over", "notation": null} |
nlprog_det-setting-0071971 | <|start|><|system|>
You are a careful reviewer of figures.<|eot|>
<|user|>
With $36,000 in costs and $38,500 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|>
<|assistant|>
```python
revenue = 38500
costs = 36000
profit = revenue - costs # 2500
margin = profit / revenue * 100 # 6.49350649350... | chat | [
{
"role": "system",
"content": "You are a careful reviewer of figures."
},
{
"role": "user",
"content": "With $36,000 in costs and $38,500 in revenue, what percent of revenue is profit? Round to one decimal."
},
{
"role": "assistant",
"content": "```python\nrevenue = 38500\ncosts = 3... | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "6.5", "printed": "6.5", "notation": null} |
nlprog_det-setting-0071972 | <|start|><|system|>
You help paralegals with routine tasks.<|eot|>
<|user|>
Convert 88 km to meters.<|eot|>
<|assistant|>
88,000 m.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help paralegals with routine tasks."
},
{
"role": "user",
"content": "Convert 88 km to meters."
},
{
"role": "assistant",
"content": "88,000 m."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "88000", "printed": "88000", "notation": null} |
nlprog_det-setting-0071973 | If a 150-minute hearing begins at 1:45 PM, what time does it finish?
We write it as a program:
```python
start = 13 * 60 + 45
end = start + 150
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Result: 4:15 PM
It ends at 4:15 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "4:15 PM", "printed": "4:15 PM", "notation": null} |
nlprog_det-setting-0071974 | A 220-mile drive at a steady 60 mph takes how many minutes?
A few lines of Python do it:
```python
distance = 220
speed = 60
minutes = distance / speed * 60 # 220.0
print(round(minutes))
```
(Output: 220)
The trip takes 220 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "220", "printed": "220", "notation": null} |
nlprog_det-setting-0071975 | Sales went from 2,500 to 2,375. What is the percent change?
Here is a short program for it.
```python
old = 2500
new = 2375
change = (new - old) / old * 100 # -5.0
print(round(change))
```
Result — -5
The change is -5%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "-5", "printed": "-5", "notation": null} |
nlprog_det-setting-0071976 | 3 books come back 14 days late, at $0.25 a day each. What is the fine?
Script:
```python
per_day = 0.25
days_late = 14
books = 3
fine = per_day * days_late * books # 10.5
print(f"{fine:.2f}")
```
Executing it gives 10.50.
The fine is $10.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "10.50", "printed": "10.50", "notation": null} |
nlprog_det-setting-0071977 | 35 files go into boxes of 50. How many boxes does that take?
Python version:
import math
files = 35
per_box = 50
boxes = math.ceil(files / per_box) # 1
print(boxes)
It prints 1, as expected.
It takes 1 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "1", "printed": "1", "notation": null} |
nlprog_det-setting-0071978 | A car travels 78 miles in 0.5 hours. What is its average speed in miles per hour?
Computing it:
```python
distance = 78
hours = 0.5
speed = distance / hours
print(round(speed))
```
Output = 156
The average speed is 156 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "156", "printed": "156", "notation": null} |
nlprog_det-setting-0071979 | <|start|><|user|>
Convert 5 h 42 min (the length of a workshop) to minutes.<|eot|>
<|assistant|>
```python
hours = 5
minutes = 42
total_minutes = hours * 60 + minutes # 342
print(total_minutes)
```
stdout:
342
The workshop lasted 342 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 5 h 42 min (the length of a workshop) to minutes."
},
{
"role": "assistant",
"content": "```python\nhours = 5\nminutes = 42\ntotal_minutes = hours * 60 + minutes # 342\nprint(total_minutes)\n```\nstdout:\n342\n\nThe workshop lasted 342 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "342", "printed": "342", "notation": null} |
nlprog_det-setting-0071980 | <|start|><|user|>
Each of Pilar's walks burns 150 calories. How many calories over 6 walks?<|eot|>
<|assistant|>
```python
per_session = 150
sessions = 6
total = per_session * sessions # 900
print(total)
```
It prints 900, as expected.
900 calories in total.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each of Pilar's walks burns 150 calories. How many calories over 6 walks?"
},
{
"role": "assistant",
"content": "```python\nper_session = 150\nsessions = 6\ntotal = per_session * sessions # 900\nprint(total)\n```\nIt prints 900, as expected.\n\n900 calories in tota... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0071981 | <|start|><|user|>
Attendance was 68 out of 100. Express it as a percent.<|eot|>
<|assistant|>
68.0% attended.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Attendance was 68 out of 100. Express it as a percent."
},
{
"role": "assistant",
"content": "68.0% attended."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "68.0", "printed": "68.0", "notation": null} |
nlprog_det-setting-0071982 | A storeroom has 559 cables. The office uses 11 a day. How many are left after 3 days?
Script:
```python
stock = 559
per_day = 11
days = 3
left = stock - per_day * days # 526
print(left)
```
On running, it outputs 526.
526 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "526", "printed": "526", "notation": null} |
nlprog_det-setting-0071983 | Femi drove 404 miles for work. Mileage is reimbursed at 62 cents a mile. How much is the reimbursement?
Translated to Python:
```python
miles = 404
rate = 0.62
reimbursement = miles * rate # 250.48
print(f"{reimbursement:.2f}")
```
Console output — 250.48
Femi is owed $250.48. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "250.48", "printed": "250.48", "notation": null} |
nlprog_det-setting-0071985 | <|start|><|user|>
Printing costs 12 cents a page. What does it cost to print 153 copies of a 51-page handout?<|eot|>
<|assistant|>
```python
pages = 51
copies = 153
cost_per_page = 0.12
cost = pages * copies * cost_per_page # 936.36
print(f"{cost:.2f}")
```
It outputs: 936.36
The job costs $936.36.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Printing costs 12 cents a page. What does it cost to print 153 copies of a 51-page handout?"
},
{
"role": "assistant",
"content": "```python\npages = 51\ncopies = 153\ncost_per_page = 0.12\ncost = pages * copies * cost_per_page # 936.36\nprint(f\"{cost:.2f}\")\n```... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "936.36", "printed": "936.36", "notation": null} |
nlprog_det-setting-0071987 | <|start|><|user|>
Kemal earns a 6% commission on $53,886 of sales. What is the commission?<|eot|>
<|assistant|>
```python
sales = 53886
rate = 6 / 100 # 0.06
commission = sales * rate # 3233.16
print(f"{commission:.2f}")
```
Output:
3233.16
Kemal earns $3,233.16.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Kemal earns a 6% commission on $53,886 of sales. What is the commission?"
},
{
"role": "assistant",
"content": "```python\nsales = 53886\nrate = 6 / 100 # 0.06\ncommission = sales * rate # 3233.16\nprint(f\"{commission:.2f}\")\n```\nOutput:\n3233.16\n\nKemal earns... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "3233.16", "printed": "3233.16", "notation": null} |
nlprog_det-setting-0071988 | <|start|><|user|>
The building opened in 1995. How many years had passed by 2034?<|eot|>
<|assistant|>
```python
start_year = 1995
end_year = 2034
print(end_year - start_year)
```
(Output: 39)
That is 39 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The building opened in 1995. How many years had passed by 2034?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 1995\nend_year = 2034\nprint(end_year - start_year)\n```\n(Output: 39)\n\nThat is 39 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "39", "printed": "39", "notation": null} |
nlprog_det-setting-0071989 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}
{"name": "search_cases", "description": "Search... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 356 | {"gold": "8.0", "printed": "8.0", "notation": null} |
nlprog_det-setting-0071990 | <|start|><|user|>
Which is cheaper per unit: 6 for $6.48 (A) or 24 for $18.51 (B)?<|eot|>
<|assistant|>
```python
pack_a = 6.48 / 6 # 1.08
pack_b = 18.51 / 24 # 0.7712500000000001
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
The interpreter prints B.
Pack B is cheaper per item.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Which is cheaper per unit: 6 for $6.48 (A) or 24 for $18.51 (B)?"
},
{
"role": "assistant",
"content": "```python\npack_a = 6.48 / 6 # 1.08\npack_b = 18.51 / 24 # 0.7712500000000001\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'B'\nprint(cheaper)\n```\nThe in... | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0071991 | <|start|><|user|>
4 friends split a $84 bill plus a 15% tip evenly. How much does each pay?<|eot|>
<|assistant|>
```python
bill = 84
tip_rate = 15 / 100 # 0.15
people = 4
each = bill * (1 + tip_rate) / people # 24.15
print(f"{each:.2f}")
```
This prints 24.15, as expected.
Each person pays $24.15.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "4 friends split a $84 bill plus a 15% tip evenly. How much does each pay?"
},
{
"role": "assistant",
"content": "```python\nbill = 84\ntip_rate = 15 / 100 # 0.15\npeople = 4\neach = bill * (1 + tip_rate) / people # 24.15\nprint(f\"{each:.2f}\")\n```\nThis prints 2... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "24.15", "printed": "24.15", "notation": null} |
nlprog_det-setting-0071992 | A 21-day notice period begins on December 9, 2022. On what date does it end?
Python:
```python
from datetime import date, timedelta
start = date(2022, 12, 9) # datetime.date(2022, 12, 9)
end = start + timedelta(days=21) # datetime.date(2022, 12, 30)
print(end.isoformat())
```
Result — 2022-12-30
It ends on December... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "2022-12-30", "printed": "2022-12-30", "notation": null} |
nlprog_det-setting-0071993 | <|start|><|user|>
Starting from $20,000, the team spends $2,191, $2,982, $1,812, $2,914. What remains?<|eot|>
<|assistant|>
```python
budget = 20000
expenses = [2191, 2982, 1812, 2914]
left = budget - sum(expenses)
print(left)
```
Program output — 10101
$10,101 is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting from $20,000, the team spends $2,191, $2,982, $1,812, $2,914. What remains?"
},
{
"role": "assistant",
"content": "```python\nbudget = 20000\nexpenses = [2191, 2982, 1812, 2914]\nleft = budget - sum(expenses)\nprint(left)\n```\nProgram output — 10101\n\n$10... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "10101", "printed": "10101", "notation": null} |
nlprog_det-setting-0071994 | <|start|><|user|>
3 books come back 2 days late, at $0.25 a day each. What is the fine?<|eot|>
<|assistant|>
```python
per_day = 0.25
days_late = 2
books = 3
fine = per_day * days_late * books # 1.5
print(f"{fine:.2f}")
```
It prints: 1.50
$1.50 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "3 books come back 2 days late, at $0.25 a day each. What is the fine?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.25\ndays_late = 2\nbooks = 3\nfine = per_day * days_late * books # 1.5\nprint(f\"{fine:.2f}\")\n```\nIt prints: 1.50\n\n$1.50 is owed... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "1.50", "printed": "1.50", "notation": null} |
nlprog_det-setting-0071995 | <|start|><|system|>
Answer in plain English.<|eot|>
<|user|>
At $30.48 an hour, what does 20 hours of work pay?<|eot|>
<|assistant|>
```python
rate = 30.48
hours = 20
earnings = rate * hours # 609.6
print(f"{earnings:.2f}")
```
When run, it prints 609.60.
The pay is $609.60.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer in plain English."
},
{
"role": "user",
"content": "At $30.48 an hour, what does 20 hours of work pay?"
},
{
"role": "assistant",
"content": "```python\nrate = 30.48\nhours = 20\nearnings = rate * hours # 609.6\nprint(f\"{earnings:.2f}\")\n```\... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "609.60", "printed": "609.60", "notation": null} |
nlprog_det-setting-0071996 | <|start|><|system|>
Tools you may use:
{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}
{"name": "run_python", "description": "Runs a short Python snippet and returns what it ... | chat | [
{
"role": "system",
"content": "Tools you may use:\n{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}\n{\"name\": \"run_python\", \"descri... | nlprog_det | setting | original | null | deterministic | [] | [] | 333 | {"gold": "1280.00", "printed": "1280.00", "notation": null} |
nlprog_det-setting-0071997 | <|start|><|system|>
Avoid unnecessary detail.<|eot|>
<|user|>
What is a 22% tip on a $143.78 bill?<|eot|>
<|assistant|>
```python
bill = 143.78
tip_rate = 22 / 100 # 0.22
tip = bill * tip_rate # 31.6316
print(f"{tip:.2f}")
```
It prints: 31.63
The tip is $31.63.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Avoid unnecessary detail."
},
{
"role": "user",
"content": "What is a 22% tip on a $143.78 bill?"
},
{
"role": "assistant",
"content": "```python\nbill = 143.78\ntip_rate = 22 / 100 # 0.22\ntip = bill * tip_rate # 31.6316\nprint(f\"{tip:.2f}\")\n```\... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "31.63", "printed": "31.63", "notation": null} |
nlprog_det-setting-0071998 | One can of paint covers 250 square feet. How many cans are needed for 400 square feet of wall?
Script:
```python
import math
area = 400
coverage = 250
cans = math.ceil(area / coverage) # 2
print(cans)
```
Output of the run: 2
2 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0071999 | Papers were served by mail on November 8, 2027. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date?
Let's compute it with Python.
```python
from datetime import date, timedelta
served = date(2027, 11, 8) # datetime.date(2027, 11, 8)
response_days = 28
mail_days = 3
due = serv... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 187 | {"gold": "2027-12-09", "printed": "2027-12-09", "notation": null} |
nlprog_det-setting-0072000 | <|start|><|user|>
At $24.00 an hour, what does 30 hours of work pay?<|eot|>
<|assistant|>
```python
rate = 24.0
hours = 30
earnings = rate * hours # 720.0
print(f"{earnings:.2f}")
```
# output: 720.00
The pay is $720.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $24.00 an hour, what does 30 hours of work pay?"
},
{
"role": "assistant",
"content": "```python\nrate = 24.0\nhours = 30\nearnings = rate * hours # 720.0\nprint(f\"{earnings:.2f}\")\n```\n# output: 720.00\n\nThe pay is $720.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "720.00", "printed": "720.00", "notation": null} |
nlprog_det-setting-0072001 | <|start|><|system|>
You are a logic tutor.<|eot|>
<|user|>
At 1% a month (simple), what interest builds on $2,500 over 4 months?<|eot|>
<|assistant|>
```python
balance = 2500
monthly_rate = 1 / 100 # 0.01
months = 4
interest = balance * monthly_rate * months # 100.0
print(f"{interest:.2f}")
```
Out — 100.00
$100.00 ... | chat | [
{
"role": "system",
"content": "You are a logic tutor."
},
{
"role": "user",
"content": "At 1% a month (simple), what interest builds on $2,500 over 4 months?"
},
{
"role": "assistant",
"content": "```python\nbalance = 2500\nmonthly_rate = 1 / 100 # 0.01\nmonths = 4\ninterest = bala... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "100.00", "printed": "100.00", "notation": null} |
nlprog_det-setting-0072002 | A settlement of $15,000 is split equally among 4 parties. How much does each party receive?
Python, step by step:
```python
settlement = 15000
parties = 4
share = settlement // parties # 3750
print(share)
```
The code prints: 3750
Each share is $3,750. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "3750", "printed": "3750", "notation": null} |
nlprog_det-setting-0072003 | A meal costs $192.47. How much is a 18% tip?
Computation in Python:
```python
bill = 192.47
tip_rate = 18 / 100 # 0.18
tip = bill * tip_rate # 34.6446
print(f"{tip:.2f}")
```
Output of the run — 34.64
Leave $34.64. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "34.64", "printed": "34.64", "notation": null} |
nlprog_det-setting-0072004 | <|start|><|user|>
Someone born February 5, 1968 turns how old by February 16, 2026? Give the age in whole years.<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1968, 2, 5) # datetime.date(1968, 2, 5)
on = date(2026, 2, 16) # datetime.date(2026, 2, 16)
age = on.year - born.year - ((on.month, on.d... | chat | [
{
"role": "user",
"content": "Someone born February 5, 1968 turns how old by February 16, 2026? Give the age in whole years."
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1968, 2, 5) # datetime.date(1968, 2, 5)\non = date(2026, 2, 16) # datetime.date(... | nlprog_det | setting | original | null | deterministic | [] | [] | 157 | {"gold": "58", "printed": "58", "notation": null} |
nlprog_det-setting-0072006 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "sandbox_python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
How... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"sandbox_python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code... | nlprog_det | setting | original | null | deterministic | [] | [] | 242 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0072007 | At 1% a month (simple), what interest builds on $12,000 over 4 months?
Set it up in Python:
```python
balance = 12000
monthly_rate = 1 / 100 # 0.01
months = 4
interest = balance * monthly_rate * months # 480.0
print(f"{interest:.2f}")
```
Out: 480.00
$480.00 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "480.00", "printed": "480.00", "notation": null} |
nlprog_det-setting-0072008 | <|start|><|user|>
Each of Leon's bike rides burns 300 calories. How many calories over 3 bike rides?<|eot|>
<|assistant|>
per_session = 300
sessions = 3
total = per_session * sessions # 900
print(total)
(Execution result: 900)
That burns 900 calories.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each of Leon's bike rides burns 300 calories. How many calories over 3 bike rides?"
},
{
"role": "assistant",
"content": " per_session = 300\n sessions = 3\n total = per_session * sessions # 900\n print(total)\n(Execution result: 900)\n\nThat burns 900 ... | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0072009 | How many minutes pass from 8:35 AM to 11:53 AM on the same day?
Python, step by step:
```python
start = 8 * 60 + 35 # 515
end = 11 * 60 + 53 # 713
print(end - start)
```
This prints: 198
198 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "198", "printed": "198", "notation": null} |
nlprog_det-setting-0072010 | A class starts at 12:45 PM and lasts 150 minutes. When does it end?
A short script:
```python
start = 12 * 60 + 45
end = start + 150
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
The code prints: 3:15 PM
The class finishes at 3:15 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "3:15 PM", "printed": "3:15 PM", "notation": null} |
nlprog_det-setting-0072011 | A customer buys 3 folders at $5 each, 6 notebooks at $30 each, 5 markers at $7 each, 3 binders at $30 each and pays with $350. How much change is due?
The computation:
```python
items = [(3, 5), (6, 30), (5, 7), (3, 30)]
total = sum(q * p for q, p in items) # 320
paid = 350
change = paid - total # 30
print(change)
`... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0072012 | At $27.72 an hour, what does 30 hours of work pay?
Python, step by step:
```python
rate = 27.72
hours = 30
earnings = rate * hours # 831.5999999999999
print(f"{earnings:.2f}")
```
Printed = 831.60
The pay is $831.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "831.60", "printed": "831.60", "notation": null} |
nlprog_det-setting-0072013 | A meal costs $121.25. How much is a 15% tip?
```python
bill = 121.25
tip_rate = 15 / 100 # 0.15
tip = bill * tip_rate # 18.1875
print(f"{tip:.2f}")
```
(Run result: 18.19)
The tip is $18.19. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "18.19", "printed": "18.19", "notation": null} |
nlprog_det-setting-0072014 | Printing costs 5 cents a page. What does it cost to print 14 copies of a 9-page handout?
Let's compute it with Python.
pages = 9
copies = 14
cost_per_page = 0.05
cost = pages * copies * cost_per_page # 6.300000000000001
print(f"{cost:.2f}")
It prints 6.30.
Printing costs $6.30. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "6.30", "printed": "6.30", "notation": null} |
nlprog_det-setting-0072015 | <|start|><|user|>
5 walks at 350 calories each burn how many calories in total?<|eot|>
<|assistant|>
```python
per_session = 350
sessions = 5
total = per_session * sessions # 1750
print(total)
```
Python prints 1750.
1750 calories in total.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "5 walks at 350 calories each burn how many calories in total?"
},
{
"role": "assistant",
"content": "```python\nper_session = 350\nsessions = 5\ntotal = per_session * sessions # 1750\nprint(total)\n```\nPython prints 1750.\n\n1750 calories in total."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "1750", "printed": "1750", "notation": null} |
nlprog_det-setting-0072016 | <|start|><|system|>
Keep explanations short.<|eot|>
<|user|>
Each storage box holds 25 files. How many boxes are needed for 47 files?<|eot|>
<|assistant|>
```python
import math
files = 47
per_box = 25
boxes = math.ceil(files / per_box) # 2
print(boxes)
```
# execution result: 2
2 boxes are needed.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Keep explanations short."
},
{
"role": "user",
"content": "Each storage box holds 25 files. How many boxes are needed for 47 files?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 47\nper_box = 25\nboxes = math.ceil(files / per_b... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0072017 | <|start|><|user|>
A clerk's office charges $50 for each filing. Ulla submits 7 filings. What is the total fee?<|eot|>
<|assistant|>
```python
fee = 50
filings = 7
total = fee * filings
print(total)
```
(Printed: 350)
The filings cost $350 in all.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A clerk's office charges $50 for each filing. Ulla submits 7 filings. What is the total fee?"
},
{
"role": "assistant",
"content": "```python\nfee = 50\nfilings = 7\ntotal = fee * filings\nprint(total)\n```\n(Printed: 350)\n\nThe filings cost $350 in all."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "350", "printed": "350", "notation": null} |
nlprog_det-setting-0072018 | 2 friends split a $96 bill plus a 15% tip evenly. How much does each pay?
Code:
bill = 96
tip_rate = 15 / 100
people = 2
each = bill * (1 + tip_rate) / people
print(f"{each:.2f}")
Executed, it shows: 55.20
The share is $55.20 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "55.20", "printed": "55.20", "notation": null} |
nlprog_det-setting-0072019 | A claim accrued on March 5, 2019. The limitations period is 4 years. On what date does it expire?
The Python version:
```python
from datetime import date
accrued = date(2019, 3, 5) # datetime.date(2019, 3, 5)
years = 4
expires = accrued.replace(year=accrued.year + years) # datetime.date(2023, 3, 5)
print(expires.iso... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "2023-03-05", "printed": "2023-03-05", "notation": null} |
nlprog_det-setting-0072020 | Someone works 32 hours at $29.29 per hour. What are the earnings?
We write it as a program:
rate = 29.29
hours = 32
earnings = rate * hours # 937.28
print(f"{earnings:.2f}")
Running this gives: 937.28
That earns $937.28. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "937.28", "printed": "937.28", "notation": null} |
nlprog_det-setting-0072022 | Counting only Monday through Friday, how many business days are there after October 17, 2019 through November 21, 2019?
Computation in Python:
```python
from datetime import date, timedelta
start = date(2019, 10, 17)
end = date(2019, 11, 21)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelt... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 160 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0072023 | A pack of 25 calendars sells for $675. What does each cost?
Programmatically:
```python
total = 675
count = 25
per_item = total // count # 27
print(per_item)
```
Execution result — 27
Each one costs $27. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "27", "printed": "27", "notation": null} |
nlprog_det-setting-0072024 | <|start|><|system|>
Answer the user's question directly.<|eot|>
<|user|>
What simple interest does $8,000 earn at 5% a year over 3 years?<|eot|>
<|assistant|>
```python
principal = 8000
rate = 5 / 100
years = 3
interest = principal * rate * years
print(f"{interest:.2f}")
```
Out:
1200.00
It earns $1,200.00.<|eot|>
<|e... | chat | [
{
"role": "system",
"content": "Answer the user's question directly."
},
{
"role": "user",
"content": "What simple interest does $8,000 earn at 5% a year over 3 years?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 8000\nrate = 5 / 100\nyears = 3\ninterest = principal ... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "1200.00", "printed": "1200.00", "notation": null} |
nlprog_det-setting-0072025 | <|start|><|user|>
137 of 200 members attended. What percent attended?<|eot|>
<|assistant|>
```python
present = 137
total = 200
percent = present / total * 100 # 68.5
print(round(percent, 1))
```
Output — 68.5
68.5% attended.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "137 of 200 members attended. What percent attended?"
},
{
"role": "assistant",
"content": "```python\npresent = 137\ntotal = 200\npercent = present / total * 100 # 68.5\nprint(round(percent, 1))\n```\nOutput — 68.5\n\n68.5% attended."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "68.5", "printed": "68.5", "notation": null} |
nlprog_det-setting-0072026 | A $1,000 security deposit has deductions of $60 and $150. How much is refunded?
In code:
```python
deposit = 1000
deductions = [60, 150]
refund = deposit - sum(deductions) # 790
print(refund)
```
(Out: 790)
The refund is $790. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "790", "printed": "790", "notation": null} |
nlprog_det-setting-0072027 | A lawyer's fee is 40% of a $12,000 recovery. How large is the fee?
```python
recovery = 12000
rate = 40 / 100 # 0.4
fee = recovery * rate # 4800.0
print(f"{fee:.2f}")
```
(Printed result: 4800.00)
The fee is $4,800.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "4800.00", "printed": "4800.00", "notation": null} |
nlprog_det-setting-0072028 | <|start|><|system|>
You have access to these functions:
[{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}, {"name": "convert_units", "desc... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\": ... | nlprog_det | setting | original | null | deterministic | [] | [] | 402 | {"gold": "414", "printed": "414", "notation": null} |
nlprog_det-setting-0072029 | From a $7,500 retainer, 2 hours at $250/hour have been drawn. What remains?
Written as code:
retainer = 7500
hours = 2
rate = 250
left = retainer - hours * rate # 7000
print(left)
Output:
7000
The remaining balance is $7,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "7000", "printed": "7000", "notation": null} |
nlprog_det-setting-0072030 | A storeroom has 1545 file boxes. The office uses 8 a day. How many are left after 17 days?
Computing it:
```python
stock = 1545
per_day = 8
days = 17
left = stock - per_day * days
print(left)
```
The program outputs: 1409
1409 file boxes are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "1409", "printed": "1409", "notation": null} |
nlprog_det-setting-0072032 | Monthly rent is $1,800. A tenant moves in with 19 days left in a 30-day month. What is the prorated rent?
Here's the code.
```python
rent = 1800
days_in_month = 30
days_occupied = 19
prorated = rent * days_occupied / days_in_month # 1140.0
print(f"{prorated:.2f}")
```
Executing it gives: 1140.00
The prorated rent is... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "1140.00", "printed": "1140.00", "notation": null} |
nlprog_det-setting-0072033 | A meal costs $163.89. How much is a 15% tip?
We write it as a program:
bill = 163.89
tip_rate = 15 / 100
tip = bill * tip_rate
print(f"{tip:.2f}")
When run, it prints: 24.58
The tip is $24.58. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "24.58", "printed": "24.58", "notation": null} |
nlprog_det-setting-0072034 | How many 2-foot square tiles cover a 17 ft by 9 ft floor (round up)?
Python does the arithmetic:
```python
import math
length = 17
width = 9
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 39
print(tiles)
```
The printout reads 39.
39 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "39", "printed": "39", "notation": null} |
nlprog_det-setting-0072035 | <|start|><|system|>
Functions:
{"name": "code_runner", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|>
<|user|>
With 20 rows of 18 chairs and 5 empty chairs, how man... | chat | [
{
"role": "system",
"content": "Functions:\n{\"name\": \"code_runner\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}"
},
{
... | nlprog_det | setting | original | null | deterministic | [] | [] | 210 | {"gold": "355", "printed": "355", "notation": null} |
nlprog_det-setting-0072036 | A $1,500 security deposit has deductions of $200, $85 and $120. How much is refunded?
We can compute it in Python.
```python
deposit = 1500
deductions = [200, 85, 120]
refund = deposit - sum(deductions)
print(refund)
```
The script prints: 1095
The refund is $1,095. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "1095", "printed": "1095", "notation": null} |
nlprog_det-setting-0072037 | <|start|><|user|>
Papers were served by mail on May 3, 2027. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
served = date(2027, 5, 3) # datetime.date(2027, 5, 3)
response_days = 28
mail_days = 3
due = ser... | chat | [
{
"role": "user",
"content": "Papers were served by mail on May 3, 2027. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nserved = date(2027, 5, 3) # datetime.dat... | nlprog_det | setting | original | null | deterministic | [] | [] | 182 | {"gold": "2027-06-03", "printed": "2027-06-03", "notation": null} |
nlprog_det-setting-0072038 | Of a $4,000 budget, $1,000 has been spent. What percent is that?
As Python:
```python
budget = 4000
spent = 1000
percent = spent / budget * 100 # 25.0
print(round(percent, 1))
```
The run gives 25.0, as expected.
That is 25.0% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "25.0", "printed": "25.0", "notation": null} |
nlprog_det-setting-0072039 | <|start|><|user|>
Revenue is $5,000 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|>
<|assistant|>
The margin is 20.0%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Revenue is $5,000 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)?"
},
{
"role": "assistant",
"content": "The margin is 20.0%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "20.0", "printed": "20.0", "notation": null} |
nlprog_det-setting-0072040 | <|start|><|system|>
You can call tools. Available tools:
{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}
{"name": "python", "description"... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\": ... | nlprog_det | setting | original | null | deterministic | [] | [] | 359 | {"gold": "2029-12-02", "printed": "2029-12-02", "notation": null} |
nlprog_det-setting-0072041 | <|start|><|user|>
From a $5,000 retainer, 4 hours at $250/hour have been drawn. What remains?<|eot|>
<|assistant|>
The remaining balance is $4,000.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From a $5,000 retainer, 4 hours at $250/hour have been drawn. What remains?"
},
{
"role": "assistant",
"content": "The remaining balance is $4,000."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "4000", "printed": "4000", "notation": null} |
nlprog_det-setting-0072042 | Equal monthly payments repay $1,200 plus 5% simple yearly interest over 24 months. How large is a payment?
Python makes this quick:
principal = 1200
annual_rate = 5 / 100 # 0.05
months = 24
interest = principal * annual_rate * months / 12 # 120.0
payment = (principal + interest) / months # 55.0
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "55.00", "printed": "55.00", "notation": null} |
nlprog_det-setting-0072043 | Find the mean of these test scores: 65, 53, 84, 67, 75, 62 and 63.
A short script:
```python
scores = [65, 53, 84, 67, 75, 62, 63]
average = sum(scores) // len(scores) # 67
print(average)
```
The code prints 67.
The mean is 67. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "67", "printed": "67", "notation": null} |
nlprog_det-setting-0072044 | How much is a $64 daily meal allowance over 9 days?
A few lines of Python do it:
```python
days = 9
meal_rate = 64
total = days * meal_rate
print(total)
```
That prints 576.
That comes to $576. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "576", "printed": "576", "notation": null} |
nlprog_det-setting-0072045 | At an exchange rate of 0.74 USD per CHF, how many USD is 2,075 CHF?
Python, step by step:
```python
amount = 2075
rate = 0.74
converted = amount * rate # 1535.5
print(f"{converted:.2f}")
```
# result: 1535.50
It converts to 1,535.50 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "1535.50", "printed": "1535.50", "notation": null} |
nlprog_det-setting-0072047 | Find the mean of these test scores: 79, 68, 98, 93, 89, 73 and 88.
Python makes this quick:
```python
scores = [79, 68, 98, 93, 89, 73, 88]
average = sum(scores) // len(scores) # 84
print(average)
```
It prints 84, as expected.
The average score is 84. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "84", "printed": "84", "notation": null} |
nlprog_det-setting-0072049 | The paralegal logged 2 hours at a rate of $300. How much is billed?
In code:
```python
hours = 2
rate = 300
bill = hours * rate # 600
print(f"{bill:.2f}")
```
The printout reads 600.00.
That comes to $600.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "600.00", "printed": "600.00", "notation": null} |
nlprog_det-setting-0072050 | How many of 293 votes make 67% (round up)?
The computation:
```python
import math
voters = 293
needed = math.ceil(voters * 67 / 100) # 197
print(needed)
```
Executing it gives 197.
At least 197 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "197", "printed": "197", "notation": null} |
nlprog_det-setting-0072051 | <|start|><|user|>
A claim accrued on October 22, 2016. The limitations period is 5 years. On what date does it expire?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2016, 10, 22)
years = 5
expires = accrued.replace(year=accrued.year + years)
print(expires.isoformat())
```
Printed result — 2021... | chat | [
{
"role": "user",
"content": "A claim accrued on October 22, 2016. The limitations period is 5 years. On what date does it expire?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrued = date(2016, 10, 22)\nyears = 5\nexpires = accrued.replace(year=accrued.year + y... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "2021-10-22", "printed": "2021-10-22", "notation": null} |
nlprog_det-setting-0072052 | <|start|><|user|>
How many units at $15 each (variable cost $7) cover $2,500 of fixed costs?<|eot|>
<|assistant|>
import math
fixed = 2500
price = 15
variable = 7
units = math.ceil(fixed / (price - variable)) # 313
print(units)
Interpreter output — 313
313 units are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many units at $15 each (variable cost $7) cover $2,500 of fixed costs?"
},
{
"role": "assistant",
"content": " import math\n fixed = 2500\n price = 15\n variable = 7\n units = math.ceil(fixed / (price - variable)) # 313\n print(units)\nInterpr... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "313", "printed": "313", "notation": null} |
nlprog_det-setting-0072053 | A court charges $10 per request plus $0.25 per page after the first 0 pages. What does a 94-page copy cost?
Here's the code.
```python
pages = 94
base = 10
per_page = 0.25
free_pages = 0
cost = base + max(0, pages - free_pages) * per_page # 33.5
print(f"{cost:.2f}")
```
It outputs 33.50.
The copy costs $33.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "33.50", "printed": "33.50", "notation": null} |
nlprog_det-setting-0072054 | At 65 miles per hour, how many minutes does a 390-mile trip take?
```python
distance = 390
speed = 65
minutes = distance / speed * 60
print(round(minutes))
```
# output: 360
360 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "360", "printed": "360", "notation": null} |
nlprog_det-setting-0072055 | Monthly: $19. Annual: $204. What is saved per year by paying annually?
Python does the arithmetic:
```python
monthly = 19
yearly = 204
savings = monthly * 12 - yearly # 24
print(savings)
```
When run, it prints 24, as expected.
$24 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0072056 | <|start|><|user|>
A $60,000 grant pays $0 up front and the rest in 12 equal installments. How large is each installment?<|eot|>
<|assistant|>
grant = 60000
up_front = 0
installments = 12
each = (grant - up_front) / installments # 5000.0
print(f"{each:.2f}")
Executing it gives 5000.00, as expected.
... | chat | [
{
"role": "user",
"content": "A $60,000 grant pays $0 up front and the rest in 12 equal installments. How large is each installment?"
},
{
"role": "assistant",
"content": " grant = 60000\n up_front = 0\n installments = 12\n each = (grant - up_front) / installments # 5000.0\n prin... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "5000.00", "printed": "5000.00", "notation": null} |
nlprog_det-setting-0072057 | A storeroom has 770 calendars. The office uses 21 a day. How many are left after 19 days?
Programmatically:
```python
stock = 770
per_day = 21
days = 19
left = stock - per_day * days # 371
print(left)
```
Run result — 371
371 calendars are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "371", "printed": "371", "notation": null} |
nlprog_det-setting-0072058 | Each storage box holds 15 files. How many boxes are needed for 595 files?
Let the code do the arithmetic:
```python
import math
files = 595
per_box = 15
boxes = math.ceil(files / per_box) # 40
print(boxes)
```
(Run result: 40)
It takes 40 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0072059 | What percentage of $4,000 is $3,900?
97.5% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 24 | {"gold": "97.5", "printed": "97.5", "notation": null} |
nlprog_det-setting-0072060 | A penalty of $100 a day accrues, capped at $2,500. What is owed after 42 days?
$2,500 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "2500", "printed": "2500", "notation": null} |
nlprog_det-setting-0072061 | <|start|><|user|>
How many 2-foot square tiles cover a 14 ft by 7 ft floor (round up)?<|eot|>
<|assistant|>
```python
import math
length = 14
width = 7
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 25
print(tiles)
```
Output: 25
25 tiles are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many 2-foot square tiles cover a 14 ft by 7 ft floor (round up)?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 14\nwidth = 7\ntile = 2\ntiles = math.ceil(length * width / (tile * tile)) # 25\nprint(tiles)\n```\nOutput: 25\n\n25 tiles a... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0072062 | An office budget of $12,000 has expenses of $3,329, $1,534. How much of the budget is left?
Coded up:
```python
budget = 12000
expenses = [3329, 1534]
left = budget - sum(expenses) # 7137
print(left)
```
The script prints 7137, as expected.
The remaining budget is $7,137. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "7137", "printed": "7137", "notation": null} |
nlprog_det-setting-0072063 | What average speed covers 432 miles in 4 hours?
It averages 108 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 25 | {"gold": "108", "printed": "108", "notation": null} |
nlprog_det-setting-0072064 | One can of paint covers 250 square feet. How many cans are needed for 781 square feet of wall?
Coded up:
```python
import math
area = 781
coverage = 250
cans = math.ceil(area / coverage) # 4
print(cans)
```
Execution prints: 4
4 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0072065 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "calculator", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "translate", "descripti... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"calculator\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requi... | nlprog_det | setting | original | null | deterministic | [] | [] | 331 | {"gold": "2668", "printed": "2668", "notation": null} |
nlprog_det-setting-0072067 | Someone born April 13, 1977 turns how old by September 19, 2030? Give the age in whole years.
Python, step by step:
```python
from datetime import date
born = date(1977, 4, 13) # datetime.date(1977, 4, 13)
on = date(2030, 9, 19) # datetime.date(2030, 9, 19)
age = on.year - born.year - ((on.month, on.day) < (born.mon... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 168 | {"gold": "53", "printed": "53", "notation": null} |
nlprog_det-setting-0072068 | <|start|><|user|>
The landlord deducts $200, $75 and $45 from a $800 deposit. What is returned to the tenant?<|eot|>
<|assistant|>
```python
deposit = 800
deductions = [200, 75, 45]
refund = deposit - sum(deductions) # 480
print(refund)
```
Execution result — 480
$480 is returned.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The landlord deducts $200, $75 and $45 from a $800 deposit. What is returned to the tenant?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 800\ndeductions = [200, 75, 45]\nrefund = deposit - sum(deductions) # 480\nprint(refund)\n```\nExecution result —... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "480", "printed": "480", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.