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-0045303 | <|start|><|user|>
Prorate $900 of monthly rent for 8 days of a 30-day month.<|eot|>
<|assistant|>
```python
rent = 900
days_in_month = 30
days_occupied = 8
prorated = rent * days_occupied / days_in_month
print(f"{prorated:.2f}")
```
The program prints 240.00, as expected.
The tenant owes $240.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Prorate $900 of monthly rent for 8 days of a 30-day month."
},
{
"role": "assistant",
"content": "```python\nrent = 900\ndays_in_month = 30\ndays_occupied = 8\nprorated = rent * days_occupied / days_in_month\nprint(f\"{prorated:.2f}\")\n```\nThe program prints 240.0... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "240.00", "printed": "240.00", "notation": null} |
nlprog_det-setting-0045304 | <|start|><|user|>
Convert 93.4 km to meters.<|eot|>
<|assistant|>
```python
km = 93.4
meters = km * 1000 # 93400.0
print(round(meters))
```
Running this gives 93400.
93,400 m.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 93.4 km to meters."
},
{
"role": "assistant",
"content": "```python\nkm = 93.4\nmeters = km * 1000 # 93400.0\nprint(round(meters))\n```\nRunning this gives 93400.\n\n93,400 m."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "93400", "printed": "93400", "notation": null} |
nlprog_det-setting-0045305 | <|start|><|user|>
From 1998 to 2028, how many years is that?<|eot|>
<|assistant|>
```python
start_year = 1998
end_year = 2028
print(end_year - start_year)
```
(Execution result: 30)
That is 30 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From 1998 to 2028, how many years is that?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 1998\nend_year = 2028\nprint(end_year - start_year)\n```\n(Execution result: 30)\n\nThat is 30 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0045306 | <|start|><|user|>
A 3% increase is applied to $1,500 monthly rent. What is the new amount?<|eot|>
<|assistant|>
```python
rent = 1500
increase = 3 / 100 # 0.03
new_rent = rent * (1 + increase) # 1545.0
print(f"{new_rent:.2f}")
```
On running, it outputs: 1545.00
It rises to $1,545.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 3% increase is applied to $1,500 monthly rent. What is the new amount?"
},
{
"role": "assistant",
"content": "```python\nrent = 1500\nincrease = 3 / 100 # 0.03\nnew_rent = rent * (1 + increase) # 1545.0\nprint(f\"{new_rent:.2f}\")\n```\nOn running, it outputs: 1... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "1545.00", "printed": "1545.00", "notation": null} |
nlprog_det-setting-0045307 | <|start|><|user|>
How many whole days and leftover hours are in 173 hours?<|eot|>
<|assistant|>
hours = 173
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
Running this gives: 7 days and 5 hours
That is 7 days and 5 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many whole days and leftover hours are in 173 hours?"
},
{
"role": "assistant",
"content": " hours = 173\n days, rest = divmod(hours, 24)\n print(f\"{days} days and {rest} hours\")\nRunning this gives: 7 days and 5 hours\n\nThat is 7 days and 5 hours."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "7 days and 5 hours", "printed": "7 days and 5 hours", "notation": null} |
nlprog_det-setting-0045308 | Under a 25% contingency agreement, what fee is owed on a $60,000 award?
We can compute it in Python.
```python
recovery = 60000
rate = 25 / 100 # 0.25
fee = recovery * rate # 15000.0
print(f"{fee:.2f}")
```
Running this gives: 15000.00
The fee is $15,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "15000.00", "printed": "15000.00", "notation": null} |
nlprog_det-setting-0045309 | A court charges $15 per request plus $0.25 per page after the first 20 pages. What does a 42-page copy cost?
The Python version:
```python
pages = 42
base = 15
per_page = 0.25
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page # 20.5
print(f"{cost:.2f}")
```
Execution prints: 20.50
The copy costs $2... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "20.50", "printed": "20.50", "notation": null} |
nlprog_det-setting-0045310 | <|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": "calculator", "descri... | 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 | [] | [] | 369 | {"gold": "85", "printed": "85", "notation": null} |
nlprog_det-setting-0045311 | <|start|><|system|>
Avoid unnecessary detail.<|eot|>
<|user|>
Monthly rent is $1,500. A tenant moves in with 14 days left in a 30-day month. What is the prorated rent?<|eot|>
<|assistant|>
```python
rent = 1500
days_in_month = 30
days_occupied = 14
prorated = rent * days_occupied / days_in_month # 700.0
print(f"{prora... | chat | [
{
"role": "system",
"content": "Avoid unnecessary detail."
},
{
"role": "user",
"content": "Monthly rent is $1,500. A tenant moves in with 14 days left in a 30-day month. What is the prorated rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 1500\ndays_in_month = 30\nday... | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "700.00", "printed": "700.00", "notation": null} |
nlprog_det-setting-0045312 | Counting only Monday through Friday, how many business days are there after December 22, 2026 through December 31, 2026?
Translated to Python:
from datetime import date, timedelta
start = date(2026, 12, 22)
end = date(2026, 12, 31)
count = 0
for k in range(1, (end - start).days + 1):
if (st... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 150 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0045313 | At a 5% tax rate, what is the tax on $355.89?
Let's compute it with Python.
```python
price = 355.89
tax_rate = 5 / 100 # 0.05
tax = price * tax_rate # 17.7945
print(f"{tax:.2f}")
```
Executing it gives: 17.79
The tax is $17.79. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "17.79", "printed": "17.79", "notation": null} |
nlprog_det-setting-0045314 | <|start|><|user|>
Revenue is $21,000 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|>
<|assistant|>
```python
revenue = 21000
costs = 20000
profit = revenue - costs # 1000
margin = profit / revenue * 100 # 4.761904761904762
print(round(margin, 1))
```
It prints 4.8.
Prof... | chat | [
{
"role": "user",
"content": "Revenue is $21,000 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?"
},
{
"role": "assistant",
"content": "```python\nrevenue = 21000\ncosts = 20000\nprofit = revenue - costs # 1000\nmargin = profit / revenue * 100 # 4.761904... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "4.8", "printed": "4.8", "notation": null} |
nlprog_det-setting-0045315 | Shipping costs $8 plus $2.50 per pound. What does a 37-pound parcel cost to ship?
Here's the code.
```python
base = 8
per_pound = 2.5
weight = 37
cost = base + per_pound * weight # 100.5
print(f"{cost:.2f}")
```
# out: 100.50
The charge is $100.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "100.50", "printed": "100.50", "notation": null} |
nlprog_det-setting-0045316 | Monthly: $9. Annual: $96. What is saved per year by paying annually?
A Python solution:
```python
monthly = 9
yearly = 96
savings = monthly * 12 - yearly # 12
print(savings)
```
# printed result: 12
The annual plan saves $12. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0045317 | <|start|><|user|>
4 books come back 7 days late, at $0.25 a day each. What is the fine?<|eot|>
<|assistant|>
```python
per_day = 0.25
days_late = 7
books = 4
fine = per_day * days_late * books # 7.0
print(f"{fine:.2f}")
```
What it prints — 7.00
$7.00 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "4 books come back 7 days late, at $0.25 a day each. What is the fine?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.25\ndays_late = 7\nbooks = 4\nfine = per_day * days_late * books # 7.0\nprint(f\"{fine:.2f}\")\n```\nWhat it prints — 7.00\n\n$7.00 i... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "7.00", "printed": "7.00", "notation": null} |
nlprog_det-setting-0045318 | Filing fees are $90 per document. What do 19 filings cost?
In code:
```python
fee = 90
filings = 19
total = fee * filings # 1710
print(total)
```
Printed:
1710
$1,710 in filing fees. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "1710", "printed": "1710", "notation": null} |
nlprog_det-setting-0045319 | From a $5,000 retainer, 10 hours at $150/hour have been drawn. What remains?
In code:
```python
retainer = 5000
hours = 10
rate = 150
left = retainer - hours * rate # 3500
print(left)
```
Run output: 3500
The remaining balance is $3,500. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "3500", "printed": "3500", "notation": null} |
nlprog_det-setting-0045320 | <|start|><|user|>
One can of paint covers 250 square feet. How many cans are needed for 447 square feet of wall?<|eot|>
<|assistant|>
```python
import math
area = 447
coverage = 250
cans = math.ceil(area / coverage)
print(cans)
```
Execution result — 2
2 cans are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "One can of paint covers 250 square feet. How many cans are needed for 447 square feet of wall?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 447\ncoverage = 250\ncans = math.ceil(area / coverage)\nprint(cans)\n```\nExecution result — 2\n\n2 c... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0045321 | <|start|><|user|>
From 2015 to 2053, how many years is that?<|eot|>
<|assistant|>
```python
start_year = 2015
end_year = 2053
print(end_year - start_year)
```
Executing it gives 38.
38 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From 2015 to 2053, how many years is that?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 2015\nend_year = 2053\nprint(end_year - start_year)\n```\nExecuting it gives 38.\n\n38 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 68 | {"gold": "38", "printed": "38", "notation": null} |
nlprog_det-setting-0045322 | Monthly rent is $1,500. A tenant moves in with 21 days left in a 31-day month. What is the prorated rent?
Code:
```python
rent = 1500
days_in_month = 31
days_occupied = 21
prorated = rent * days_occupied / days_in_month # 1016.1290322580645
print(f"{prorated:.2f}")
```
The printout reads 1016.13.
The tenant owes $1,... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "1016.13", "printed": "1016.13", "notation": null} |
nlprog_det-setting-0045323 | A quorum is 3/5 of the 34 members, rounded up. How many members make a quorum?
Here is a short program for it.
```python
import math
members = 34
quorum = math.ceil(members * 3 / 5) # 21
print(quorum)
```
The program outputs 21.
21 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "21", "printed": "21", "notation": null} |
nlprog_det-setting-0045324 | Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 48 hours?
In code:
```python
rate = 16.0
hours = 48
regular = 40 * rate
overtime = (hours - 40) * rate * 1.5
pay = regular + overtime
print(f"{pay:.2f}")
```
It prints: 832.00
Tobias earns $832.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "832.00", "printed": "832.00", "notation": null} |
nlprog_det-setting-0045325 | <|start|><|system|>
You have access to these functions:
[{"name": "eval_python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "convert_uni... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"eval_python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}... | nlprog_det | setting | original | null | deterministic | [] | [] | 334 | {"gold": "289.41", "printed": "289.41", "notation": null} |
nlprog_det-setting-0045326 | <|start|><|user|>
A 11 × 11 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?<|eot|>
<|assistant|>
```python
import math
length = 11
width = 11
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 31
print(tiles)
```
The script prints 31.
31 tiles are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 11 × 11 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 11\nwidth = 11\ntile = 2\ntiles = math.ceil(length * width / (tile * tile)) # 31\nprint(tiles)\n```\nThe script... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "31", "printed": "31", "notation": null} |
nlprog_det-setting-0045327 | A hearing is set for September 12, 2019. What day of the week is that?
We write it as a program:
```python
from datetime import date
hearing = date(2019, 9, 12) # datetime.date(2019, 9, 12)
print(hearing.strftime("%A"))
```
The program prints: Thursday
It is a Thursday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "Thursday", "printed": "Thursday", "notation": null} |
nlprog_det-setting-0045328 | <|start|><|user|>
Straight-line depreciation: cost $12,000, salvage $3,000, 6 years. How much per year?<|eot|>
<|assistant|>
```python
cost = 12000
salvage = 3000
years = 6
per_year = (cost - salvage) / years # 1500.0
print(f"{per_year:.2f}")
```
Printed — 1500.00
$1,500.00 a year.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Straight-line depreciation: cost $12,000, salvage $3,000, 6 years. How much per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 12000\nsalvage = 3000\nyears = 6\nper_year = (cost - salvage) / years # 1500.0\nprint(f\"{per_year:.2f}\")\n```\nPrinted —... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "1500.00", "printed": "1500.00", "notation": null} |
nlprog_det-setting-0045329 | <|start|><|user|>
A $2,500 security deposit has deductions of $200. How much is refunded?<|eot|>
<|assistant|>
```python
deposit = 2500
deductions = [200]
refund = deposit - sum(deductions) # 2300
print(refund)
```
Printed: 2300
$2,300 is returned.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A $2,500 security deposit has deductions of $200. How much is refunded?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 2500\ndeductions = [200]\nrefund = deposit - sum(deductions) # 2300\nprint(refund)\n```\nPrinted: 2300\n\n$2,300 is returned."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "2300", "printed": "2300", "notation": null} |
nlprog_det-setting-0045330 | <|start|><|user|>
A library charges $0.25 per book per day late. What is the fine for 2 books that are 26 days late?<|eot|>
<|assistant|>
The fine is $13.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A library charges $0.25 per book per day late. What is the fine for 2 books that are 26 days late?"
},
{
"role": "assistant",
"content": "The fine is $13.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "13.00", "printed": "13.00", "notation": null} |
nlprog_det-setting-0045331 | $10,000 is invested at 2% compounded yearly. What is it worth after 3 years?
Code:
```python
principal = 10000
rate = 2 / 100 # 0.02
years = 3
value = principal * (1 + rate) ** years # 10612.080000000002
print(f"{value:.2f}")
```
Console output — 10612.08
It is worth $10,612.08. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "10612.08", "printed": "10612.08", "notation": null} |
nlprog_det-setting-0045332 | Express 249 hours in days and hours.
We can compute it in Python.
hours = 249
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
(Out: 10 days and 9 hours)
That is 10 days and 9 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "10 days and 9 hours", "printed": "10 days and 9 hours", "notation": null} |
nlprog_det-setting-0045333 | <|start|><|user|>
Counting the first and last day, how many days are there from September 15, 2019 through October 5, 2019?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2019, 9, 15) # datetime.date(2019, 9, 15)
last = date(2019, 10, 5) # datetime.date(2019, 10, 5)
days = (last - first).days +... | chat | [
{
"role": "user",
"content": "Counting the first and last day, how many days are there from September 15, 2019 through October 5, 2019?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2019, 9, 15) # datetime.date(2019, 9, 15)\nlast = date(2019, 10, 5) ... | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "21", "printed": "21", "notation": null} |
nlprog_det-setting-0045334 | Pack A has 6 items for $11.58. Pack B has 30 items for $13.05. Which has the lower price per item?
Python makes this quick:
```python
pack_a = 11.58 / 6 # 1.93
pack_b = 13.05 / 30 # 0.435
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
Out = B
Pack B is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0045335 | Shipping costs $8 plus $2.00 per pound. What does a 15-pound parcel cost to ship?
As Python:
```python
base = 8
per_pound = 2.0
weight = 15
cost = base + per_pound * weight # 38.0
print(f"{cost:.2f}")
```
(Printed result: 38.00)
Shipping costs $38.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "38.00", "printed": "38.00", "notation": null} |
nlprog_det-setting-0045336 | A count moves from 800 to 920. By what percent did it change (use a minus sign for a drop)?
We can compute it in Python.
```python
old = 800
new = 920
change = (new - old) / old * 100 # 15.0
print(round(change))
```
Printed = 15
The change is 15%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0045337 | A 60-day notice period begins on August 23, 2024. On what date does it end?
Code:
```python
from datetime import date, timedelta
start = date(2024, 8, 23) # datetime.date(2024, 8, 23)
end = start + timedelta(days=60) # datetime.date(2024, 10, 22)
print(end.isoformat())
```
Result:
2024-10-22
That date is October 22... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "2024-10-22", "printed": "2024-10-22", "notation": null} |
nlprog_det-setting-0045338 | <|start|><|user|>
Walls total 1004 sq ft and each can covers 400 sq ft. How many cans should be bought?<|eot|>
<|assistant|>
Buy 3 cans.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Walls total 1004 sq ft and each can covers 400 sq ft. How many cans should be bought?"
},
{
"role": "assistant",
"content": "Buy 3 cans."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0045339 | On which weekday does November 4, 2016 fall?
Programmatically:
```python
from datetime import date
hearing = date(2016, 11, 4) # datetime.date(2016, 11, 4)
print(hearing.strftime("%A"))
```
Output of the run — Friday
November 4, 2016 is a Friday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "Friday", "printed": "Friday", "notation": null} |
nlprog_det-setting-0045340 | <|start|><|system|>
Tools (call with JSON):
[{"name": "math_engine", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
A meeting lasted 5 hours and 37 mi... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"math_engine\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 209 | {"gold": "337", "printed": "337", "notation": null} |
nlprog_det-setting-0045341 | <|start|><|system|>
Functions:
{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}
{"name": "python_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "pr... | chat | [
{
"role": "system",
"content": "Functions:\n{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}\n{\"name\": \"python_exec\", \"description\": \"Executes Python code... | nlprog_det | setting | original | null | deterministic | [] | [] | 371 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0045342 | Ada drove 525 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?
The program:
miles = 525
rate = 0.65
reimbursement = miles * rate # 341.25
print(f"{reimbursement:.2f}")
Printed:
341.25
The reimbursement is $341.25. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "341.25", "printed": "341.25", "notation": null} |
nlprog_det-setting-0045343 | <|start|><|system|>
Respond clearly and to the point.<|eot|>
<|user|>
A shift runs from 10:28 AM to 12:53 PM. How long is it in minutes?<|eot|>
<|assistant|>
```python
start = 10 * 60 + 28 # 628
end = 12 * 60 + 53 # 773
print(end - start)
```
Out — 145
145 minutes pass.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Respond clearly and to the point."
},
{
"role": "user",
"content": "A shift runs from 10:28 AM to 12:53 PM. How long is it in minutes?"
},
{
"role": "assistant",
"content": "```python\nstart = 10 * 60 + 28 # 628\nend = 12 * 60 + 53 # 773\nprint(end -... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "145", "printed": "145", "notation": null} |
nlprog_det-setting-0045344 | Lucia drove 126 miles for work. Mileage is reimbursed at 62 cents a mile. How much is the reimbursement?
A Python solution:
miles = 126
rate = 0.62
reimbursement = miles * rate # 78.12
print(f"{reimbursement:.2f}")
That prints 78.12.
Lucia is owed $78.12. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "78.12", "printed": "78.12", "notation": null} |
nlprog_det-setting-0045345 | <|start|><|system|>
Be exact with numbers.<|eot|>
<|user|>
At a 9% tax rate, what is the tax on $323.15?<|eot|>
<|assistant|>
```python
price = 323.15
tax_rate = 9 / 100 # 0.09
tax = price * tax_rate # 29.083499999999997
print(f"{tax:.2f}")
```
Python prints 29.08.
$29.08 in tax.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be exact with numbers."
},
{
"role": "user",
"content": "At a 9% tax rate, what is the tax on $323.15?"
},
{
"role": "assistant",
"content": "```python\nprice = 323.15\ntax_rate = 9 / 100 # 0.09\ntax = price * tax_rate # 29.083499999999997\nprint(f\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "29.08", "printed": "29.08", "notation": null} |
nlprog_det-setting-0045346 | <|start|><|system|>
Answer the user's question directly.<|eot|>
<|user|>
Prorate $2,400 of monthly rent for 20 days of a 31-day month.<|eot|>
<|assistant|>
rent = 2400
days_in_month = 31
days_occupied = 20
prorated = rent * days_occupied / days_in_month # 1548.3870967741937
print(f"{prorated:.2f}")... | chat | [
{
"role": "system",
"content": "Answer the user's question directly."
},
{
"role": "user",
"content": "Prorate $2,400 of monthly rent for 20 days of a 31-day month."
},
{
"role": "assistant",
"content": " rent = 2400\n days_in_month = 31\n days_occupied = 20\n prorated = ... | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "1548.39", "printed": "1548.39", "notation": null} |
nlprog_det-setting-0045347 | <|start|><|user|>
Which is cheaper per unit: 6 for $5.84 (A) or 18 for $12.51 (B)?<|eot|>
<|assistant|>
pack_a = 5.84 / 6 # 0.9733333333333333
pack_b = 12.51 / 18 # 0.695
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
stdout — B
Pack B is cheaper per item.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Which is cheaper per unit: 6 for $5.84 (A) or 18 for $12.51 (B)?"
},
{
"role": "assistant",
"content": " pack_a = 5.84 / 6 # 0.9733333333333333\n pack_b = 12.51 / 18 # 0.695\n cheaper = \"A\" if pack_a < pack_b else \"B\" # 'B'\n print(cheaper)\nstdou... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0045348 | <|start|><|user|>
From a $5,000 retainer, 10 hours at $200/hour have been drawn. What remains?<|eot|>
<|assistant|>
```python
retainer = 5000
hours = 10
rate = 200
left = retainer - hours * rate
print(left)
```
It outputs 3000.
$3,000 of the retainer is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From a $5,000 retainer, 10 hours at $200/hour have been drawn. What remains?"
},
{
"role": "assistant",
"content": "```python\nretainer = 5000\nhours = 10\nrate = 200\nleft = retainer - hours * rate\nprint(left)\n```\nIt outputs 3000.\n\n$3,000 of the retainer is le... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "3000", "printed": "3000", "notation": null} |
nlprog_det-setting-0045349 | <|start|><|user|>
A workshop lasted 5 hours and 5 minutes. How many minutes is that?<|eot|>
<|assistant|>
```python
hours = 5
minutes = 5
total_minutes = hours * 60 + minutes # 305
print(total_minutes)
```
When run, it prints 305.
The workshop lasted 305 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A workshop lasted 5 hours and 5 minutes. How many minutes is that?"
},
{
"role": "assistant",
"content": "```python\nhours = 5\nminutes = 5\ntotal_minutes = hours * 60 + minutes # 305\nprint(total_minutes)\n```\nWhen run, it prints 305.\n\nThe workshop lasted 305 m... | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "305", "printed": "305", "notation": null} |
nlprog_det-setting-0045350 | Notice was given on January 21, 2022. The notice period is 30 days. When does it run out?
Written as code:
```python
from datetime import date, timedelta
start = date(2022, 1, 21) # datetime.date(2022, 1, 21)
end = start + timedelta(days=30) # datetime.date(2022, 2, 20)
print(end.isoformat())
```
Running it prints 2... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "2022-02-20", "printed": "2022-02-20", "notation": null} |
nlprog_det-setting-0045351 | <|start|><|system|>
Tool definitions:
[{"name": "calculator", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
What simple interest doe... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"calculator\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\... | nlprog_det | setting | original | null | deterministic | [] | [] | 216 | {"gold": "480.00", "printed": "480.00", "notation": null} |
nlprog_det-setting-0045352 | 16 hard drives cost $2 apiece. With 6% tax added, what is the total?
As Python:
```python
quantity = 16
unit_price = 2
subtotal = quantity * unit_price # 32
total = subtotal * (1 + 6 / 100) # 33.92
print(f"{total:.2f}")
```
This prints 33.92.
The total with tax is $33.92. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "33.92", "printed": "33.92", "notation": null} |
nlprog_det-setting-0045353 | <|start|><|user|>
Printing costs 15 cents a page. What does it cost to print 178 copies of a 28-page handout?<|eot|>
<|assistant|>
```python
pages = 28
copies = 178
cost_per_page = 0.15
cost = pages * copies * cost_per_page # 747.6
print(f"{cost:.2f}")
```
(Program output: 747.60)
The job costs $747.60.<|eot|>
<|end|... | chat | [
{
"role": "user",
"content": "Printing costs 15 cents a page. What does it cost to print 178 copies of a 28-page handout?"
},
{
"role": "assistant",
"content": "```python\npages = 28\ncopies = 178\ncost_per_page = 0.15\ncost = pages * copies * cost_per_page # 747.6\nprint(f\"{cost:.2f}\")\n```\... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "747.60", "printed": "747.60", "notation": null} |
nlprog_det-setting-0045354 | 10 boxes hold 24 water bottles each. After 11 are handed out, how many are left?
A few lines of Python do it:
```python
boxes = 10
per_box = 24
given_away = 11
left = boxes * per_box - given_away # 229
print(left)
```
That prints: 229
229 water bottles are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "229", "printed": "229", "notation": null} |
nlprog_det-setting-0045355 | The statute was enacted in 1992. How many years had passed by 2026?
Here is a short program for it.
```python
start_year = 1992
end_year = 2026
print(end_year - start_year)
```
Run it and it prints 34.
34 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "34", "printed": "34", "notation": null} |
nlprog_det-setting-0045356 | Someone born January 22, 1966 turns how old by April 27, 2023? Give the age in whole years.
As Python:
```python
from datetime import date
born = date(1966, 1, 22) # datetime.date(1966, 1, 22)
on = date(2023, 4, 27) # datetime.date(2023, 4, 27)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 157 | {"gold": "57", "printed": "57", "notation": null} |
nlprog_det-setting-0045357 | What simple interest does $8,000 earn at 8% a year over 5 years?
Python, step by step:
```python
principal = 8000
rate = 8 / 100 # 0.08
years = 5
interest = principal * rate * years # 3200.0
print(f"{interest:.2f}")
```
stdout: 3200.00
It earns $3,200.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "3200.00", "printed": "3200.00", "notation": null} |
nlprog_det-setting-0045358 | Convert 2,474 GBP to USD at 1 GBP = 0.92 USD.
That is 2,276.08 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "2276.08", "printed": "2276.08", "notation": null} |
nlprog_det-setting-0045359 | Starting from $12,000, the team spends $1,973, $1,411, $2,270. What remains?
The Python version:
```python
budget = 12000
expenses = [1973, 1411, 2270]
left = budget - sum(expenses) # 6346
print(left)
```
The printout reads 6346.
The remaining budget is $6,346. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "6346", "printed": "6346", "notation": null} |
nlprog_det-setting-0045361 | <|start|><|user|>
Equipment costs $12,000, has a salvage value of $6,000, and a useful life of 6 years. What is the straight-line depreciation per year?<|eot|>
<|assistant|>
```python
cost = 12000
salvage = 6000
years = 6
per_year = (cost - salvage) / years # 1000.0
print(f"{per_year:.2f}")
```
Run it and it prints: 1... | chat | [
{
"role": "user",
"content": "Equipment costs $12,000, has a salvage value of $6,000, and a useful life of 6 years. What is the straight-line depreciation per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 12000\nsalvage = 6000\nyears = 6\nper_year = (cost - salvage) / years # 1... | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "1000.00", "printed": "1000.00", "notation": null} |
nlprog_det-setting-0045362 | <|start|><|user|>
A water bill is $18 plus $4.75 per thousand gallons beyond the first 3 thousand. What is the bill for 7 thousand gallons?<|eot|>
<|assistant|>
```python
base = 18
rate = 4.75
used = 7
free = 3
bill = base + rate * max(0, used - free) # 37.0
print(f"{bill:.2f}")
```
Program output: 37.00
The bill is ... | chat | [
{
"role": "user",
"content": "A water bill is $18 plus $4.75 per thousand gallons beyond the first 3 thousand. What is the bill for 7 thousand gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 18\nrate = 4.75\nused = 7\nfree = 3\nbill = base + rate * max(0, used - free) # 37.0\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "37.00", "printed": "37.00", "notation": null} |
nlprog_det-setting-0045363 | <|start|><|user|>
Counting only Monday through Friday, how many business days are there after December 21, 2022 through January 17, 2023?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2022, 12, 21)
end = date(2023, 1, 17)
count = 0
for k in range(1, (end - start).days + 1):
if (st... | chat | [
{
"role": "user",
"content": "Counting only Monday through Friday, how many business days are there after December 21, 2022 through January 17, 2023?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2022, 12, 21)\nend = date(2023, 1, 17)\ncount... | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0045364 | Equal monthly payments repay $1,200 plus 6% simple yearly interest over 36 months. How large is a payment?
Script:
```python
principal = 1200
annual_rate = 6 / 100 # 0.06
months = 36
interest = principal * annual_rate * months / 12 # 216.0
payment = (principal + interest) / months # 39.333333333333336
print(f"{paym... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "39.33", "printed": "39.33", "notation": null} |
nlprog_det-setting-0045365 | An invoice lists 30 paper reams at $4 each, plus 8% sales tax. What is the invoice total?
Python does the arithmetic:
```python
quantity = 30
unit_price = 4
subtotal = quantity * unit_price # 120
total = subtotal * (1 + 8 / 100) # 129.60000000000002
print(f"{total:.2f}")
```
Out:
129.60
The total with tax is $129.6... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "129.60", "printed": "129.60", "notation": null} |
nlprog_det-setting-0045366 | <|start|><|user|>
Split $2,364 between Emeka and Kemal in the ratio 1 to 2. What is Emeka's share?<|eot|>
<|assistant|>
```python
total = 2364
parts_a = 1
parts_b = 2
share_a = total * parts_a // (parts_a + parts_b)
print(share_a)
```
Run result = 788
Emeka's share is $788.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Split $2,364 between Emeka and Kemal in the ratio 1 to 2. What is Emeka's share?"
},
{
"role": "assistant",
"content": "```python\ntotal = 2364\nparts_a = 1\nparts_b = 2\nshare_a = total * parts_a // (parts_a + parts_b)\nprint(share_a)\n```\nRun result = 788\n\nEmek... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "788", "printed": "788", "notation": null} |
nlprog_det-setting-0045367 | A storeroom has 1712 keyboards. The office uses 18 a day. How many are left after 8 days?
Let's compute it with Python.
stock = 1712
per_day = 18
days = 8
left = stock - per_day * days # 1568
print(left)
Interpreter output: 1568
1568 keyboards are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "1568", "printed": "1568", "notation": null} |
nlprog_det-setting-0045368 | If a 105-minute meeting begins at 12:45 PM, what time does it finish?
Written as code:
```python
start = 12 * 60 + 45
end = start + 105
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
# result: 2:30 PM
The meeting finishes at 2:30 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "2:30 PM", "printed": "2:30 PM", "notation": null} |
nlprog_det-setting-0045369 | A 36 lb package ships at $12 base plus $2.50/lb. What is the charge?
The charge is $102.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "102.00", "printed": "102.00", "notation": null} |
nlprog_det-setting-0045370 | <|start|><|user|>
A hearing is set for February 4, 1991. What day of the week is that?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(1991, 2, 4) # datetime.date(1991, 2, 4)
print(hearing.strftime("%A"))
```
The printout reads: Monday
It is a Monday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hearing is set for February 4, 1991. What day of the week is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(1991, 2, 4) # datetime.date(1991, 2, 4)\nprint(hearing.strftime(\"%A\"))\n```\nThe printout reads: Monda... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "Monday", "printed": "Monday", "notation": null} |
nlprog_det-setting-0045371 | A $1,200 loan carries 8% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?
Here is the program.
```python
principal = 1200
annual_rate = 8 / 100 # 0.08
months = 12
interest = principal * annual_rate * months / 12 # 96.0
payment = (principal + in... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "108.00", "printed": "108.00", "notation": null} |
nlprog_det-setting-0045372 | <|start|><|user|>
If a 135-minute meeting begins at 11:15 AM, what time does it finish?<|eot|>
<|assistant|>
```python
start = 11 * 60 + 15
end = start + 135
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
# program output: 1:30 PM
It ends at 1:30 PM.<|eot|... | chat | [
{
"role": "user",
"content": "If a 135-minute meeting begins at 11:15 AM, what time does it finish?"
},
{
"role": "assistant",
"content": "```python\nstart = 11 * 60 + 15\nend = start + 135\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}... | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "1:30 PM", "printed": "1:30 PM", "notation": null} |
nlprog_det-setting-0045373 | <|start|><|system|>
You help people work with structured data.<|eot|>
<|user|>
A hall has 22 rows of 9 seats, and 6 seats are empty. How many people are seated?<|eot|>
<|assistant|>
192 seats are taken.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help people work with structured data."
},
{
"role": "user",
"content": "A hall has 22 rows of 9 seats, and 6 seats are empty. How many people are seated?"
},
{
"role": "assistant",
"content": "192 seats are taken."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 52 | {"gold": "192", "printed": "192", "notation": null} |
nlprog_det-setting-0045374 | <|start|><|user|>
A 6% increase is applied to $1,100 monthly rent. What is the new amount?<|eot|>
<|assistant|>
The new rent is $1,166.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 6% increase is applied to $1,100 monthly rent. What is the new amount?"
},
{
"role": "assistant",
"content": "The new rent is $1,166.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "1166.00", "printed": "1166.00", "notation": null} |
nlprog_det-setting-0045375 | <|start|><|user|>
With 10% off, what does a $250 kettle cost?<|eot|>
<|assistant|>
```python
price = 250
discount = 10 / 100 # 0.1
sale_price = price * (1 - discount) # 225.0
print(f"{sale_price:.2f}")
```
Execution result: 225.00
The sale price is $225.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 10% off, what does a $250 kettle cost?"
},
{
"role": "assistant",
"content": "```python\nprice = 250\ndiscount = 10 / 100 # 0.1\nsale_price = price * (1 - discount) # 225.0\nprint(f\"{sale_price:.2f}\")\n```\nExecution result: 225.00\n\nThe sale price is $225... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "225.00", "printed": "225.00", "notation": null} |
nlprog_det-setting-0045376 | <|start|><|system|>
You are a teaching assistant.<|eot|>
<|user|>
Under a 40% contingency agreement, what fee is owed on a $25,000 award?<|eot|>
<|assistant|>
recovery = 25000
rate = 40 / 100 # 0.4
fee = recovery * rate # 10000.0
print(f"{fee:.2f}")
It outputs 10000.00.
The lawyer's fee comes to $10,... | chat | [
{
"role": "system",
"content": "You are a teaching assistant."
},
{
"role": "user",
"content": "Under a 40% contingency agreement, what fee is owed on a $25,000 award?"
},
{
"role": "assistant",
"content": " recovery = 25000\n rate = 40 / 100 # 0.4\n fee = recovery * rate ... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "10000.00", "printed": "10000.00", "notation": null} |
nlprog_det-setting-0045377 | <|start|><|user|>
A 420-page report must be reviewed in 10 days. How many pages a day is that, evenly?<|eot|>
<|assistant|>
42 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 420-page report must be reviewed in 10 days. How many pages a day is that, evenly?"
},
{
"role": "assistant",
"content": "42 pages a day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "42", "printed": "42", "notation": null} |
nlprog_det-setting-0045378 | <|start|><|system|>
You can call tools. Available tools:
{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}
{"name": "sandbox_python", "description": "Evaluates Python and returns the printed outpu... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}\n{\"name\": \"sandbox_python\", \"desc... | nlprog_det | setting | original | null | deterministic | [] | [] | 294 | {"gold": "569.92", "printed": "569.92", "notation": null} |
nlprog_det-setting-0045379 | A claim accrued on October 14, 2012. The limitations period is 5 years. On what date does it expire?
Code:
```python
from datetime import date
accrued = date(2012, 10, 14) # datetime.date(2012, 10, 14)
years = 5
expires = accrued.replace(year=accrued.year + years) # datetime.date(2017, 10, 14)
print(expires.isoforma... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "2017-10-14", "printed": "2017-10-14", "notation": null} |
nlprog_det-setting-0045380 | At an exchange rate of 1.31 EUR per USD, how many EUR is 2,889 USD?
Written as code:
```python
amount = 2889
rate = 1.31
converted = amount * rate # 3784.59
print(f"{converted:.2f}")
```
Console output — 3784.59
That is 3,784.59 EUR. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "3784.59", "printed": "3784.59", "notation": null} |
nlprog_det-setting-0045382 | Bruna has 15 documents to file, and each filing costs $90. How much are the filing fees in total?
We write it as a program:
```python
fee = 90
filings = 15
total = fee * filings # 1350
print(total)
```
Printed: 1350
The filings cost $1,350 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "1350", "printed": "1350", "notation": null} |
nlprog_det-setting-0045383 | A water bill is $15 plus $4.20 per thousand gallons beyond the first 2 thousand. What is the bill for 25 thousand gallons?
In Python:
```python
base = 15
rate = 4.2
used = 25
free = 2
bill = base + rate * max(0, used - free) # 111.60000000000001
print(f"{bill:.2f}")
```
On running, it outputs: 111.60
$111.60 is owed... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "111.60", "printed": "111.60", "notation": null} |
nlprog_det-setting-0045384 | What average speed covers 309 miles in 1 hours?
The average speed is 309 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 25 | {"gold": "309", "printed": "309", "notation": null} |
nlprog_det-setting-0045386 | A 10-day notice period begins on October 19, 2027. On what date does it end?
Computation in Python:
```python
from datetime import date, timedelta
start = date(2027, 10, 19) # datetime.date(2027, 10, 19)
end = start + timedelta(days=10) # datetime.date(2027, 10, 29)
print(end.isoformat())
```
The run gives 2027-10-2... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "2027-10-29", "printed": "2027-10-29", "notation": null} |
nlprog_det-setting-0045387 | Fiona drove 285 miles for work. Mileage is reimbursed at 67 cents a mile. How much is the reimbursement?
Programmatically:
```python
miles = 285
rate = 0.67
reimbursement = miles * rate # 190.95000000000002
print(f"{reimbursement:.2f}")
```
The printout reads: 190.95
Fiona is owed $190.95. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "190.95", "printed": "190.95", "notation": null} |
nlprog_det-setting-0045388 | <|start|><|user|>
Equal monthly payments repay $3,600 plus 5% simple yearly interest over 24 months. How large is a payment?<|eot|>
<|assistant|>
principal = 3600
annual_rate = 5 / 100
months = 24
interest = principal * annual_rate * months / 12
payment = (principal + interest) / months
print(f"... | chat | [
{
"role": "user",
"content": "Equal monthly payments repay $3,600 plus 5% simple yearly interest over 24 months. How large is a payment?"
},
{
"role": "assistant",
"content": " principal = 3600\n annual_rate = 5 / 100\n months = 24\n interest = principal * annual_rate * months / 12\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "165.00", "printed": "165.00", "notation": null} |
nlprog_det-setting-0045389 | A $30,000 grant pays $3,000 up front and the rest in 6 equal installments. How large is each installment?
The program:
```python
grant = 30000
up_front = 3000
installments = 6
each = (grant - up_front) / installments # 4500.0
print(f"{each:.2f}")
```
It outputs 4500.00.
$4,500.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "4500.00", "printed": "4500.00", "notation": null} |
nlprog_det-setting-0045390 | <|start|><|user|>
A 90-mile drive at a steady 30 mph takes how many minutes?<|eot|>
<|assistant|>
```python
distance = 90
speed = 30
minutes = distance / speed * 60 # 180.0
print(round(minutes))
```
Output — 180
180 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 90-mile drive at a steady 30 mph takes how many minutes?"
},
{
"role": "assistant",
"content": "```python\ndistance = 90\nspeed = 30\nminutes = distance / speed * 60 # 180.0\nprint(round(minutes))\n```\nOutput — 180\n\n180 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "180", "printed": "180", "notation": null} |
nlprog_det-setting-0045391 | A 5% increase is applied to $1,500 monthly rent. What is the new amount?
Let's compute it with Python.
```python
rent = 1500
increase = 5 / 100
new_rent = rent * (1 + increase)
print(f"{new_rent:.2f}")
```
Printed result: 1575.00
It rises to $1,575.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "1575.00", "printed": "1575.00", "notation": null} |
nlprog_det-setting-0045392 | What percentage of $2,000 is $200?
As Python:
```python
budget = 2000
spent = 200
percent = spent / budget * 100 # 10.0
print(round(percent, 1))
```
# printed: 10.0
10.0% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "10.0", "printed": "10.0", "notation": null} |
nlprog_det-setting-0045393 | An invoice lists 16 notebooks at $3 each, plus 6% sales tax. What is the invoice total?
Python code:
quantity = 16
unit_price = 3
subtotal = quantity * unit_price # 48
total = subtotal * (1 + 6 / 100) # 50.88
print(f"{total:.2f}")
This prints: 50.88
The invoice total is $50.88. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "50.88", "printed": "50.88", "notation": null} |
nlprog_det-setting-0045394 | How many of 88 votes make 60% (round up)?
Here is the program.
```python
import math
voters = 88
needed = math.ceil(voters * 60 / 100) # 53
print(needed)
```
On running, it outputs 53.
53 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "53", "printed": "53", "notation": null} |
nlprog_det-setting-0045395 | One can of paint covers 350 square feet. How many cans are needed for 337 square feet of wall?
Buy 1 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "1", "printed": "1", "notation": null} |
nlprog_det-setting-0045397 | <|start|><|user|>
A 3% increase is applied to $900 monthly rent. What is the new amount?<|eot|>
<|assistant|>
It rises to $927.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 3% increase is applied to $900 monthly rent. What is the new amount?"
},
{
"role": "assistant",
"content": "It rises to $927.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "927.00", "printed": "927.00", "notation": null} |
nlprog_det-setting-0045398 | Divide 136 items among 8 groups as evenly as possible with equal groups. How many per group, and how many remain?
Here is a short program for it.
```python
total = 136
groups = 8
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Run it and it prints: 17 each, 0 left ove... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "17 each, 0 left over", "printed": "17 each, 0 left over", "notation": null} |
nlprog_det-setting-0045399 | A kettle costs $90. It is 15% off. What is the sale price?
Here is a short program for it.
```python
price = 90
discount = 15 / 100 # 0.15
sale_price = price * (1 - discount) # 76.5
print(f"{sale_price:.2f}")
```
Interpreter output — 76.50
It costs $76.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "76.50", "printed": "76.50", "notation": null} |
nlprog_det-setting-0045400 | <|start|><|user|>
How many whole days and leftover hours are in 225 hours?<|eot|>
<|assistant|>
```python
hours = 225
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Run output: 9 days and 9 hours
That is 9 days and 9 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many whole days and leftover hours are in 225 hours?"
},
{
"role": "assistant",
"content": "```python\nhours = 225\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nRun output: 9 days and 9 hours\n\nThat is 9 days and 9 hours."
}
... | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "9 days and 9 hours", "printed": "9 days and 9 hours", "notation": null} |
nlprog_det-setting-0045401 | A water bill is $20 plus $4.20 per thousand gallons beyond the first 3 thousand. What is the bill for 22 thousand gallons?
```python
base = 20
rate = 4.2
used = 22
free = 3
bill = base + rate * max(0, used - free) # 99.8
print(f"{bill:.2f}")
```
(Out: 99.80)
The bill is $99.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "99.80", "printed": "99.80", "notation": null} |
nlprog_det-setting-0045402 | <|start|><|system|>
Be brief and correct.<|eot|>
<|user|>
A hearing lasted 3 hours and 6 minutes. How many minutes is that?<|eot|>
<|assistant|>
hours = 3
minutes = 6
total_minutes = hours * 60 + minutes # 186
print(total_minutes)
Output — 186
The hearing lasted 186 minutes.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be brief and correct."
},
{
"role": "user",
"content": "A hearing lasted 3 hours and 6 minutes. How many minutes is that?"
},
{
"role": "assistant",
"content": " hours = 3\n minutes = 6\n total_minutes = hours * 60 + minutes # 186\n print(... | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "186", "printed": "186", "notation": null} |
nlprog_det-setting-0045403 | What does $2,000 grow to in 3 years at 5% annual compounding?
```python
principal = 2000
rate = 5 / 100 # 0.05
years = 3
value = principal * (1 + rate) ** years # 2315.2500000000005
print(f"{value:.2f}")
```
Interpreter output: 2315.25
It is worth $2,315.25. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "2315.25", "printed": "2315.25", "notation": null} |
nlprog_det-setting-0045404 | How many meters are in 3.5 kilometers?
A few lines of Python do it:
```python
km = 3.5
meters = km * 1000 # 3500.0
print(round(meters))
```
Program output: 3500
3,500 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "3500", "printed": "3500", "notation": null} |
nlprog_det-setting-0045405 | What is a 10% tip on a $185.64 bill?
The tip is $18.56. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 25 | {"gold": "18.56", "printed": "18.56", "notation": null} |
nlprog_det-setting-0045406 | Count 60 days forward from September 10, 2023. What date is that?
Python, step by step:
```python
from datetime import date, timedelta
start = date(2023, 9, 10) # datetime.date(2023, 9, 10)
end = start + timedelta(days=60) # datetime.date(2023, 11, 9)
print(end.isoformat())
```
(Out: 2023-11-09)
That date is Novemb... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "2023-11-09", "printed": "2023-11-09", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.