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-0044772 | At an exchange rate of 0.74 USD per EUR, how many USD is 3,298 EUR?
A few lines of Python do it:
```python
amount = 3298
rate = 0.74
converted = amount * rate # 2440.52
print(f"{converted:.2f}")
```
The program prints 2440.52, as expected.
It converts to 2,440.52 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "2440.52", "printed": "2440.52", "notation": null} |
nlprog_det-setting-0044773 | A $6,000 loan carries 6% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?
```python
principal = 6000
annual_rate = 6 / 100 # 0.06
months = 12
interest = principal * annual_rate * months / 12 # 360.0
payment = (principal + interest) / months # ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "530.00", "printed": "530.00", "notation": null} |
nlprog_det-setting-0044774 | How many meters are in 92.9 kilometers?
Here is the program.
```python
km = 92.9
meters = km * 1000 # 92900.0
print(round(meters))
```
Run result — 92900
92,900 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "92900", "printed": "92900", "notation": null} |
nlprog_det-setting-0044775 | <|start|><|user|>
A service costs $25 a month or $252 a year. How much does the yearly plan save over 12 monthly payments?<|eot|>
<|assistant|>
```python
monthly = 25
yearly = 252
savings = monthly * 12 - yearly # 48
print(savings)
```
The printout reads 48.
$48 is saved.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A service costs $25 a month or $252 a year. How much does the yearly plan save over 12 monthly payments?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 25\nyearly = 252\nsavings = monthly * 12 - yearly # 48\nprint(savings)\n```\nThe printout reads 48.\... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0044776 | <|start|><|system|>
You help with homework problems.<|eot|>
<|user|>
A library charges $0.15 per book per day late. What is the fine for 3 books that are 30 days late?<|eot|>
<|assistant|>
per_day = 0.15
days_late = 30
books = 3
fine = per_day * days_late * books # 13.5
print(f"{fine:.2f}")
The cod... | chat | [
{
"role": "system",
"content": "You help with homework problems."
},
{
"role": "user",
"content": "A library charges $0.15 per book per day late. What is the fine for 3 books that are 30 days late?"
},
{
"role": "assistant",
"content": " per_day = 0.15\n days_late = 30\n boo... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "13.50", "printed": "13.50", "notation": null} |
nlprog_det-setting-0044777 | <|start|><|system|>
Be brief and correct.<|eot|>
<|user|>
A car gets 24 miles per gallon. Gas is $4.59 a gallon. What does fuel cost for a 450-mile trip?<|eot|>
<|assistant|>
Fuel costs $86.06.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be brief and correct."
},
{
"role": "user",
"content": "A car gets 24 miles per gallon. Gas is $4.59 a gallon. What does fuel cost for a 450-mile trip?"
},
{
"role": "assistant",
"content": "Fuel costs $86.06."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 58 | {"gold": "86.06", "printed": "86.06", "notation": null} |
nlprog_det-setting-0044778 | 2 friends split a $84 bill plus a 18% tip evenly. How much does each pay?
Here is the program.
```python
bill = 84
tip_rate = 18 / 100 # 0.18
people = 2
each = bill * (1 + tip_rate) / people # 49.559999999999995
print(f"{each:.2f}")
```
stdout:
49.56
Each person pays $49.56. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "49.56", "printed": "49.56", "notation": null} |
nlprog_det-setting-0044779 | A class starts at 9:45 AM and lasts 150 minutes. When does it end?
Python version:
```python
start = 9 * 60 + 45
end = start + 150
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Python prints 12:15 PM.
It ends at 12:15 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "12:15 PM", "printed": "12:15 PM", "notation": null} |
nlprog_det-setting-0044780 | Water costs $20 a month plus $3.50 for each 1,000 gallons over 0,000. What is owed for 6,000 gallons?
Python:
```python
base = 20
rate = 3.5
used = 6
free = 0
bill = base + rate * max(0, used - free) # 41.0
print(f"{bill:.2f}")
```
Running it prints: 41.00
The bill is $41.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "41.00", "printed": "41.00", "notation": null} |
nlprog_det-setting-0044781 | A penalty of $250 a day accrues, capped at $2,500. What is owed after 27 days?
One way, in code:
```python
per_day = 250
days = 27
cap = 2500
fine = min(per_day * days, cap) # 2500
print(fine)
```
The run gives 2500.
The fine is $2,500. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "2500", "printed": "2500", "notation": null} |
nlprog_det-setting-0044782 | What percentage of $2,000 is $1,100?
Programmatically:
```python
budget = 2000
spent = 1100
percent = spent / budget * 100 # 55.00000000000001
print(round(percent, 1))
```
Console:
55.0
That is 55.0% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "55.0", "printed": "55.0", "notation": null} |
nlprog_det-setting-0044783 | <|start|><|user|>
Buying 4 envelopes at $16 each, 3 badges at $24 each, 5 labels at $15 each, someone hands over $250. What change comes back?<|eot|>
<|assistant|>
The change is $39.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Buying 4 envelopes at $16 each, 3 badges at $24 each, 5 labels at $15 each, someone hands over $250. What change comes back?"
},
{
"role": "assistant",
"content": "The change is $39."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 54 | {"gold": "39", "printed": "39", "notation": null} |
nlprog_det-setting-0044784 | 38 pens cost $12 apiece. With 6% tax added, what is the total?
We can compute it in Python.
```python
quantity = 38
unit_price = 12
subtotal = quantity * unit_price # 456
total = subtotal * (1 + 6 / 100) # 483.36
print(f"{total:.2f}")
```
Run it and it prints 483.36.
The invoice total is $483.36. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "483.36", "printed": "483.36", "notation": null} |
nlprog_det-setting-0044785 | <|start|><|system|>
You are an assistant for a small office.<|eot|>
<|user|>
Counting the first and last day, how many days are there from October 10, 2026 through October 19, 2026?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2026, 10, 10) # datetime.date(2026, 10, 10)
last = date(2026, 10, 1... | chat | [
{
"role": "system",
"content": "You are an assistant for a small office."
},
{
"role": "user",
"content": "Counting the first and last day, how many days are there from October 10, 2026 through October 19, 2026?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import d... | nlprog_det | setting | original | null | deterministic | [] | [] | 155 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0044786 | Tariq earns a 2% commission on $92,813 of sales. What is the commission?
In Python:
```python
sales = 92813
rate = 2 / 100 # 0.02
commission = sales * rate # 1856.26
print(f"{commission:.2f}")
```
# program output: 1856.26
Tariq earns $1,856.26. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "1856.26", "printed": "1856.26", "notation": null} |
nlprog_det-setting-0044787 | <|start|><|user|>
How many of 102 votes make 67% (round up)?<|eot|>
<|assistant|>
import math
voters = 102
needed = math.ceil(voters * 67 / 100) # 69
print(needed)
Running it prints 69.
At least 69 votes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many of 102 votes make 67% (round up)?"
},
{
"role": "assistant",
"content": " import math\n voters = 102\n needed = math.ceil(voters * 67 / 100) # 69\n print(needed)\nRunning it prints 69.\n\nAt least 69 votes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "69", "printed": "69", "notation": null} |
nlprog_det-setting-0044788 | The statute was enacted in 2000. How many years had passed by 2018?
We can compute it in Python.
```python
start_year = 2000
end_year = 2018
print(end_year - start_year)
```
Executed, it shows: 18
18 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0044789 | Parking is $2 per hour with a daily maximum of $15. What do 8 hours cost?
One way, in code:
```python
rate = 2
hours = 8
daily_max = 15
cost = min(rate * hours, daily_max) # 15
print(cost)
```
# output: 15
The charge is $15. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0044790 | <|start|><|user|>
With 10% off, what does a $90 desk lamp cost?<|eot|>
<|assistant|>
The sale price is $81.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 10% off, what does a $90 desk lamp cost?"
},
{
"role": "assistant",
"content": "The sale price is $81.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "81.00", "printed": "81.00", "notation": null} |
nlprog_det-setting-0044791 | Ivan earns a 3% commission on $31,936 of sales. What is the commission?
Python code:
```python
sales = 31936
rate = 3 / 100 # 0.03
commission = sales * rate # 958.0799999999999
print(f"{commission:.2f}")
```
Interpreter output — 958.08
The commission is $958.08. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "958.08", "printed": "958.08", "notation": null} |
nlprog_det-setting-0044793 | Under a 33% contingency agreement, what fee is owed on a $90,000 award?
A short script:
```python
recovery = 90000
rate = 33 / 100 # 0.33
fee = recovery * rate # 29700.0
print(f"{fee:.2f}")
```
Executing it gives 29700.00.
The fee is $29,700.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "29700.00", "printed": "29700.00", "notation": null} |
nlprog_det-setting-0044794 | <|start|><|user|>
Walls total 1243 sq ft and each can covers 300 sq ft. How many cans should be bought?<|eot|>
<|assistant|>
```python
import math
area = 1243
coverage = 300
cans = math.ceil(area / coverage)
print(cans)
```
(Execution result: 5)
5 cans are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Walls total 1243 sq ft and each can covers 300 sq ft. How many cans should be bought?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 1243\ncoverage = 300\ncans = math.ceil(area / coverage)\nprint(cans)\n```\n(Execution result: 5)\n\n5 cans are... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0044795 | What does $5,000 grow to in 2 years at 3% annual compounding?
In Python:
```python
principal = 5000
rate = 3 / 100 # 0.03
years = 2
value = principal * (1 + rate) ** years # 5304.5
print(f"{value:.2f}")
```
Console output: 5304.50
It is worth $5,304.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "5304.50", "printed": "5304.50", "notation": null} |
nlprog_det-setting-0044796 | Monthly rent is $2,400. A tenant moves in with 5 days left in a 31-day month. What is the prorated rent?
We write it as a program:
```python
rent = 2400
days_in_month = 31
days_occupied = 5
prorated = rent * days_occupied / days_in_month # 387.0967741935484
print(f"{prorated:.2f}")
```
Executed, it shows 387.10.
The... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "387.10", "printed": "387.10", "notation": null} |
nlprog_det-setting-0044797 | 4 clients win $72,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?
```python
award = 72000
fee = award * 25 / 100 # 18000.0
remaining = award - fee # 54000.0
per_client = remaining / 4 # 13500.0
print(f"{per_client:.2f}")
```
Output: 13500.00
Each share is $13,500.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "13500.00", "printed": "13500.00", "notation": null} |
nlprog_det-setting-0044798 | A 893-page report must be reviewed in 19 days. How many pages a day is that, evenly?
Let the code do the arithmetic:
```python
pages = 893
days = 19
per_day = pages // days # 47
print(per_day)
```
Running it prints 47.
That is 47 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "47", "printed": "47", "notation": null} |
nlprog_det-setting-0044799 | <|start|><|system|>
Write short, precise answers.<|eot|>
<|user|>
21 batteries cost $6 apiece. With 10% tax added, what is the total?<|eot|>
<|assistant|>
```python
quantity = 21
unit_price = 6
subtotal = quantity * unit_price # 126
total = subtotal * (1 + 10 / 100) # 138.60000000000002
print(f"{total:.2f}")
```
Exec... | chat | [
{
"role": "system",
"content": "Write short, precise answers."
},
{
"role": "user",
"content": "21 batteries cost $6 apiece. With 10% tax added, what is the total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 21\nunit_price = 6\nsubtotal = quantity * unit_price # 126... | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "138.60", "printed": "138.60", "notation": null} |
nlprog_det-setting-0044800 | How many 1-foot square tiles cover a 15 ft by 4 ft floor (round up)? 60 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "60", "printed": "60", "notation": null} |
nlprog_det-setting-0044801 | How many 2-foot square tiles cover a 16 ft by 9 ft floor (round up)?
Coded up:
```python
import math
length = 16
width = 9
tile = 2
tiles = math.ceil(length * width / (tile * tile))
print(tiles)
```
When run, it prints 36, as expected.
36 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0044802 | Monthly rent is $1,200. A tenant moves in with 8 days left in a 31-day month. What is the prorated rent?
Translated to Python:
rent = 1200
days_in_month = 31
days_occupied = 8
prorated = rent * days_occupied / days_in_month # 309.6774193548387
print(f"{prorated:.2f}")
Printed result — 309.68
The ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "309.68", "printed": "309.68", "notation": null} |
nlprog_det-setting-0044803 | <|start|><|system|>
Tools (call with JSON):
{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}
{"name": "calculator", "description": "Use for arithmetic and date math; returns s... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}\n{\"name\": \"calculator\", \"d... | nlprog_det | setting | original | null | deterministic | [] | [] | 292 | {"gold": "13200.00", "printed": "13200.00", "notation": null} |
nlprog_det-setting-0044804 | Fines run at $50 per day up to a maximum of $2,500. How much after 18 days?
$900 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0044805 | 7 runs at 200 calories each burn how many calories in total?
per_session = 200
sessions = 7
total = per_session * sessions # 1400
print(total)
Printed — 1400
1400 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 65 | {"gold": "1400", "printed": "1400", "notation": null} |
nlprog_det-setting-0044806 | <|start|><|system|>
You are a math tutor.<|eot|>
<|user|>
A client paid a $5,000 retainer. The firm has billed 8 hours at $275 per hour. How much of the retainer is left?<|eot|>
<|assistant|>
```python
retainer = 5000
hours = 8
rate = 275
left = retainer - hours * rate # 2800
print(left)
```
stdout: 2800
$2,800 of th... | chat | [
{
"role": "system",
"content": "You are a math tutor."
},
{
"role": "user",
"content": "A client paid a $5,000 retainer. The firm has billed 8 hours at $275 per hour. How much of the retainer is left?"
},
{
"role": "assistant",
"content": "```python\nretainer = 5000\nhours = 8\nrate ... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "2800", "printed": "2800", "notation": null} |
nlprog_det-setting-0044807 | A hearing is set for March 6, 2029. What day of the week is that?
The Python version:
```python
from datetime import date
hearing = date(2029, 3, 6) # datetime.date(2029, 3, 6)
print(hearing.strftime("%A"))
```
The interpreter prints Tuesday.
It is a Tuesday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "Tuesday", "printed": "Tuesday", "notation": null} |
nlprog_det-setting-0044808 | A lawyer's fee is 33% of a $90,000 recovery. How large is the fee?
Python:
```python
recovery = 90000
rate = 33 / 100 # 0.33
fee = recovery * rate # 29700.0
print(f"{fee:.2f}")
```
When run, it prints: 29700.00
The fee is $29,700.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "29700.00", "printed": "29700.00", "notation": null} |
nlprog_det-setting-0044810 | <|start|><|user|>
Someone born August 24, 2005 turns how old by May 7, 2027? Give the age in whole years.<|eot|>
<|assistant|>
```python
from datetime import date
born = date(2005, 8, 24) # datetime.date(2005, 8, 24)
on = date(2027, 5, 7) # datetime.date(2027, 5, 7)
age = on.year - born.year - ((on.month, on.day) < (... | chat | [
{
"role": "user",
"content": "Someone born August 24, 2005 turns how old by May 7, 2027? Give the age in whole years."
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(2005, 8, 24) # datetime.date(2005, 8, 24)\non = date(2027, 5, 7) # datetime.date(2027, ... | nlprog_det | setting | original | null | deterministic | [] | [] | 154 | {"gold": "21", "printed": "21", "notation": null} |
nlprog_det-setting-0044811 | <|start|><|user|>
A lease runs for 24 months at $2,875 per month. How much rent is paid over the whole term?<|eot|>
<|assistant|>
```python
monthly_rent = 2875
months = 24
total = monthly_rent * months
print(total)
```
(Program output: 69000)
The rent over the term is $69,000.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lease runs for 24 months at $2,875 per month. How much rent is paid over the whole term?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 2875\nmonths = 24\ntotal = monthly_rent * months\nprint(total)\n```\n(Program output: 69000)\n\nThe rent over ... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "69000", "printed": "69000", "notation": null} |
nlprog_det-setting-0044812 | What commission does Viktor make on $110,697 in sales at 4%?
One way, in code:
```python
sales = 110697
rate = 4 / 100 # 0.04
commission = sales * rate # 4427.88
print(f"{commission:.2f}")
```
Result = 4427.88
The commission is $4,427.88. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "4427.88", "printed": "4427.88", "notation": null} |
nlprog_det-setting-0044813 | <|start|><|user|>
2 hours of work at $180 an hour: what is the total charge?<|eot|>
<|assistant|>
```python
hours = 2
rate = 180
bill = hours * rate # 360
print(f"{bill:.2f}")
```
Run it and it prints 360.00.
The bill is $360.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "2 hours of work at $180 an hour: what is the total charge?"
},
{
"role": "assistant",
"content": "```python\nhours = 2\nrate = 180\nbill = hours * rate # 360\nprint(f\"{bill:.2f}\")\n```\nRun it and it prints 360.00.\n\nThe bill is $360.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "360.00", "printed": "360.00", "notation": null} |
nlprog_det-setting-0044815 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "python_exec", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
Each storage bo... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"python_exec\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requ... | nlprog_det | setting | original | null | deterministic | [] | [] | 223 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0044816 | What does $1,000 grow to in 5 years at 3% annual compounding?
Let's compute it with Python.
```python
principal = 1000
rate = 3 / 100 # 0.03
years = 5
value = principal * (1 + rate) ** years # 1159.2740743000002
print(f"{value:.2f}")
```
What it prints — 1159.27
It is worth $1,159.27. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "1159.27", "printed": "1159.27", "notation": null} |
nlprog_det-setting-0044817 | Attendance was 13 out of 25. Express it as a percent.
Let the code do the arithmetic:
```python
present = 13
total = 25
percent = present / total * 100 # 52.0
print(round(percent, 1))
```
The program outputs: 52.0
52.0% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "52.0", "printed": "52.0", "notation": null} |
nlprog_det-setting-0044818 | If a 2-year limitations period starts on February 19, 2014, when does it end?
We can compute it in Python.
```python
from datetime import date
accrued = date(2014, 2, 19)
years = 2
expires = accrued.replace(year=accrued.year + years)
print(expires.isoformat())
```
Console:
2016-02-19
The period expires on February 19... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "2016-02-19", "printed": "2016-02-19", "notation": null} |
nlprog_det-setting-0044819 | Starting with 574 cables and using 14 per day, how many remain after 17 days?
We can compute it in Python.
```python
stock = 574
per_day = 14
days = 17
left = stock - per_day * days # 336
print(left)
```
Run it and it prints 336.
336 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "336", "printed": "336", "notation": null} |
nlprog_det-setting-0044820 | <|start|><|user|>
Each of Idris's runs burns 300 calories. How many calories over 7 runs?<|eot|>
<|assistant|>
```python
per_session = 300
sessions = 7
total = per_session * sessions # 2100
print(total)
```
(stdout: 2100)
2100 calories in total.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each of Idris's runs burns 300 calories. How many calories over 7 runs?"
},
{
"role": "assistant",
"content": "```python\nper_session = 300\nsessions = 7\ntotal = per_session * sessions # 2100\nprint(total)\n```\n(stdout: 2100)\n\n2100 calories in total."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "2100", "printed": "2100", "notation": null} |
nlprog_det-setting-0044821 | <|start|><|system|>
Keep answers short and correct.<|eot|>
<|user|>
How much sales tax is charged on a $187.13 purchase at 8%?<|eot|>
<|assistant|>
```python
price = 187.13
tax_rate = 8 / 100 # 0.08
tax = price * tax_rate # 14.9704
print(f"{tax:.2f}")
```
# stdout: 14.97
$14.97 in tax.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Keep answers short and correct."
},
{
"role": "user",
"content": "How much sales tax is charged on a $187.13 purchase at 8%?"
},
{
"role": "assistant",
"content": "```python\nprice = 187.13\ntax_rate = 8 / 100 # 0.08\ntax = price * tax_rate # 14.9704... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "14.97", "printed": "14.97", "notation": null} |
nlprog_det-setting-0044822 | <|start|><|user|>
Each of Sofia's walks burns 400 calories. How many calories over 4 walks?<|eot|>
<|assistant|>
```python
per_session = 400
sessions = 4
total = per_session * sessions # 1600
print(total)
```
Out:
1600
1600 calories in total.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each of Sofia's walks burns 400 calories. How many calories over 4 walks?"
},
{
"role": "assistant",
"content": "```python\nper_session = 400\nsessions = 4\ntotal = per_session * sessions # 1600\nprint(total)\n```\nOut:\n1600\n\n1600 calories in total."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "1600", "printed": "1600", "notation": null} |
nlprog_det-setting-0044823 | Starting with 1242 water bottles and using 31 per day, how many remain after 20 days?
Python makes this quick:
```python
stock = 1242
per_day = 31
days = 20
left = stock - per_day * days # 622
print(left)
```
Output:
622
622 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "622", "printed": "622", "notation": null} |
nlprog_det-setting-0044824 | What average speed covers 126 miles in 2 hours?
One way, in code:
```python
distance = 126
hours = 2
speed = distance / hours # 63.0
print(round(speed))
```
The script prints: 63
The average speed is 63 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "63", "printed": "63", "notation": null} |
nlprog_det-setting-0044825 | Straight-line depreciation: cost $45,000, salvage $2,000, 8 years. How much per year?
In code:
```python
cost = 45000
salvage = 2000
years = 8
per_year = (cost - salvage) / years # 5375.0
print(f"{per_year:.2f}")
```
What it prints — 5375.00
$5,375.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "5375.00", "printed": "5375.00", "notation": null} |
nlprog_det-setting-0044826 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "calc", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
A $180 dinner bill gets a 18... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"calc\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"sni... | nlprog_det | setting | original | null | deterministic | [] | [] | 243 | {"gold": "53.10", "printed": "53.10", "notation": null} |
nlprog_det-setting-0044827 | A penalty of $100 a day accrues, capped at $2,500. What is owed after 23 days?
```python
per_day = 100
days = 23
cap = 2500
fine = min(per_day * days, cap) # 2300
print(fine)
```
Execution prints 2300, as expected.
The fine is $2,300. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "2300", "printed": "2300", "notation": null} |
nlprog_det-setting-0044828 | <|start|><|user|>
A 18 × 7 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?<|eot|>
<|assistant|>
import math
length = 18
width = 7
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 32
print(tiles)
On running, it outputs 32.
It takes 32 tiles.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 18 × 7 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?"
},
{
"role": "assistant",
"content": " import math\n length = 18\n width = 7\n tile = 2\n tiles = math.ceil(length * width / (tile * tile)) # 32\n print(tiles)\nOn r... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0044829 | One can of paint covers 250 square feet. How many cans are needed for 946 square feet of wall?
The program:
```python
import math
area = 946
coverage = 250
cans = math.ceil(area / coverage) # 4
print(cans)
```
This prints 4.
4 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0044830 | Yara has 16 documents to file, and each filing costs $35. How much are the filing fees in total?
Let's compute it with Python.
```python
fee = 35
filings = 16
total = fee * filings # 560
print(total)
```
(Printed result: 560)
The total fee is $560. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "560", "printed": "560", "notation": null} |
nlprog_det-setting-0044831 | <|start|><|user|>
Meals are $59 per day and lodging $175 per night. What is the allowance for 4 days and 3 nights?<|eot|>
<|assistant|>
```python
days = 4
meal_rate = 59
lodging_rate = 175
nights = days - 1
total = days * meal_rate + nights * lodging_rate
print(total)
```
(Printed: 761)
That comes to $761.<|eot|>
<|en... | chat | [
{
"role": "user",
"content": "Meals are $59 per day and lodging $175 per night. What is the allowance for 4 days and 3 nights?"
},
{
"role": "assistant",
"content": "```python\ndays = 4\nmeal_rate = 59\nlodging_rate = 175\nnights = days - 1\ntotal = days * meal_rate + nights * lodging_rate\nprin... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "761", "printed": "761", "notation": null} |
nlprog_det-setting-0044832 | 276 volunteers are split into 8 equal teams. How many are on each team, and how many are left over?
```python
total = 276
groups = 8
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Run result — 34 each, 4 left over
34 each, 4 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "34 each, 4 left over", "printed": "34 each, 4 left over", "notation": null} |
nlprog_det-setting-0044833 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"descripti... | nlprog_det | setting | original | null | deterministic | [] | [] | 343 | {"gold": "5250.00", "printed": "5250.00", "notation": null} |
nlprog_det-setting-0044834 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|user|>
Monthly: $12. Annual: $1... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": ... | nlprog_det | setting | original | null | deterministic | [] | [] | 212 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0044835 | A customer buys 6 paper reams at $7 each, 6 markers at $14 each and pays with $150. How much change is due?
One way, in code:
```python
items = [(6, 7), (6, 14)]
total = sum(q * p for q, p in items) # 126
paid = 150
change = paid - total # 24
print(change)
```
Running this gives 24.
$24 comes back. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0044836 | Pack A has 6 items for $9.25. Pack B has 30 items for $15.10. Which has the lower price per item?
Pack B is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0044837 | <|start|><|user|>
Monthly rent is $900. A tenant moves in with 16 days left in a 30-day month. What is the prorated rent?<|eot|>
<|assistant|>
```python
rent = 900
days_in_month = 30
days_occupied = 16
prorated = rent * days_occupied / days_in_month # 480.0
print(f"{prorated:.2f}")
```
Python prints 480.00.
The prora... | chat | [
{
"role": "user",
"content": "Monthly rent is $900. A tenant moves in with 16 days left in a 30-day month. What is the prorated rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 900\ndays_in_month = 30\ndays_occupied = 16\nprorated = rent * days_occupied / days_in_month # 480.0\npr... | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "480.00", "printed": "480.00", "notation": null} |
nlprog_det-setting-0044838 | 27 water bottles cost $15 apiece. With 6% tax added, what is the total?
As Python:
```python
quantity = 27
unit_price = 15
subtotal = quantity * unit_price # 405
total = subtotal * (1 + 6 / 100) # 429.3
print(f"{total:.2f}")
```
Output = 429.30
The total with tax is $429.30. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "429.30", "printed": "429.30", "notation": null} |
nlprog_det-setting-0044839 | 4 clients win $60,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?
Script:
```python
award = 60000
fee = award * 30 / 100 # 18000.0
remaining = award - fee # 42000.0
per_client = remaining / 4 # 10500.0
print(f"{per_client:.2f}")
```
The program prints: 10500.00
Each client ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "10500.00", "printed": "10500.00", "notation": null} |
nlprog_det-setting-0044840 | How many weekdays (Monday to Friday) fall after May 25, 2024 up to and including June 7, 2024?
Here is a short program for it.
```python
from datetime import date, timedelta
start = date(2024, 5, 25)
end = date(2024, 6, 7)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekday(... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 158 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0044841 | What is the total rent on a 24-month lease at $2,100 a month?
Set it up in Python:
```python
monthly_rent = 2100
months = 24
total = monthly_rent * months # 50400
print(total)
```
Run result = 50400
The rent over the term is $50,400. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "50400", "printed": "50400", "notation": null} |
nlprog_det-setting-0044842 | 261 volunteers are split into 9 equal teams. How many are on each team, and how many are left over?
29 each, 0 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "29 each, 0 left over", "printed": "29 each, 0 left over", "notation": null} |
nlprog_det-setting-0044843 | A storeroom has 817 folders. The office uses 16 a day. How many are left after 13 days?
The Python version:
```python
stock = 817
per_day = 16
days = 13
left = stock - per_day * days # 609
print(left)
```
stdout:
609
609 folders are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "609", "printed": "609", "notation": null} |
nlprog_det-setting-0044844 | <|start|><|user|>
Walls total 947 sq ft and each can covers 350 sq ft. How many cans should be bought?<|eot|>
<|assistant|>
Buy 3 cans.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Walls total 947 sq ft and each can covers 350 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-0044845 | <|start|><|user|>
Attendance was 47 out of 50. Express it as a percent.<|eot|>
<|assistant|>
present = 47
total = 50
percent = present / total * 100 # 94.0
print(round(percent, 1))
Output — 94.0
94.0% attended.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Attendance was 47 out of 50. Express it as a percent."
},
{
"role": "assistant",
"content": " present = 47\n total = 50\n percent = present / total * 100 # 94.0\n print(round(percent, 1))\nOutput — 94.0\n\n94.0% attended."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 69 | {"gold": "94.0", "printed": "94.0", "notation": null} |
nlprog_det-setting-0044846 | Which is cheaper per unit: 6 for $5.45 (A) or 24 for $25.21 (B)?
Computation in Python:
```python
pack_a = 5.45 / 6 # 0.9083333333333333
pack_b = 25.21 / 24 # 1.0504166666666668
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
Printed — A
A has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0044847 | 87 copies of a 36-page packet are printed at $0.05 per page. What is the cost?
The Python version:
```python
pages = 36
copies = 87
cost_per_page = 0.05
cost = pages * copies * cost_per_page # 156.60000000000002
print(f"{cost:.2f}")
```
Result = 156.60
Printing costs $156.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "156.60", "printed": "156.60", "notation": null} |
nlprog_det-setting-0044848 | At $15.32 an hour, what does 12 hours of work pay?
The program:
```python
rate = 15.32
hours = 12
earnings = rate * hours # 183.84
print(f"{earnings:.2f}")
```
Output of the run: 183.84
That earns $183.84. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "183.84", "printed": "183.84", "notation": null} |
nlprog_det-setting-0044849 | Under a 40% contingency agreement, what fee is owed on a $90,000 award?
Python:
```python
recovery = 90000
rate = 40 / 100 # 0.4
fee = recovery * rate # 36000.0
print(f"{fee:.2f}")
```
On running, it outputs 36000.00.
The fee is $36,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "36000.00", "printed": "36000.00", "notation": null} |
nlprog_det-setting-0044850 | A 24-month warranty starts on June 22, 2028. On what date does it end?
Here is a short program for it.
```python
from datetime import date
start = date(2028, 6, 22)
months = 24
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
``... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "2030-06-22", "printed": "2030-06-22", "notation": null} |
nlprog_det-setting-0044851 | <|start|><|system|>
Be concise.<|eot|>
<|user|>
The landlord deducts $45, $150 and $75 from a $1,500 deposit. What is returned to the tenant?<|eot|>
<|assistant|>
```python
deposit = 1500
deductions = [45, 150, 75]
refund = deposit - sum(deductions) # 1230
print(refund)
```
Running it prints: 1230
The refund is $1,23... | chat | [
{
"role": "system",
"content": "Be concise."
},
{
"role": "user",
"content": "The landlord deducts $45, $150 and $75 from a $1,500 deposit. What is returned to the tenant?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 1500\ndeductions = [45, 150, 75]\nrefund = deposit -... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "1230", "printed": "1230", "notation": null} |
nlprog_det-setting-0044852 | A court charges $15 per request plus $0.10 per page after the first 0 pages. What does a 98-page copy cost?
Here is a short program for it.
```python
pages = 98
base = 15
per_page = 0.1
free_pages = 0
cost = base + max(0, pages - free_pages) * per_page # 24.8
print(f"{cost:.2f}")
```
It outputs: 24.80
The copy costs... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "24.80", "printed": "24.80", "notation": null} |
nlprog_det-setting-0044853 | Notice was given on March 27, 2027. The notice period is 10 days. When does it run out?
Python makes this quick:
```python
from datetime import date, timedelta
start = date(2027, 3, 27) # datetime.date(2027, 3, 27)
end = start + timedelta(days=10) # datetime.date(2027, 4, 6)
print(end.isoformat())
```
Printed = 2027... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "2027-04-06", "printed": "2027-04-06", "notation": null} |
nlprog_det-setting-0044854 | <|start|><|user|>
What is 5 degrees Celsius in Fahrenheit?<|eot|>
<|assistant|>
```python
celsius = 5
fahrenheit = celsius * 9 / 5 + 32 # 41.0
print(round(fahrenheit))
```
(Console output: 41)
That is 41 °F.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is 5 degrees Celsius in Fahrenheit?"
},
{
"role": "assistant",
"content": "```python\ncelsius = 5\nfahrenheit = celsius * 9 / 5 + 32 # 41.0\nprint(round(fahrenheit))\n```\n(Console output: 41)\n\nThat is 41 °F."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "41", "printed": "41", "notation": null} |
nlprog_det-setting-0044855 | <|start|><|user|>
A party has 14 days to respond to a motion served on February 5, 2021, with 3 days added because service was by mail. When is the response due?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
served = date(2021, 2, 5) # datetime.date(2021, 2, 5)
response_days = 14
mail_days = 3
du... | chat | [
{
"role": "user",
"content": "A party has 14 days to respond to a motion served on February 5, 2021, with 3 days added because service was by mail. When is the response due?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nserved = date(2021, 2, 5) # datet... | nlprog_det | setting | original | null | deterministic | [] | [] | 177 | {"gold": "2021-02-22", "printed": "2021-02-22", "notation": null} |
nlprog_det-setting-0044856 | Meals are $79 per day and lodging $175 per night. What is the allowance for 7 days and 6 nights?
Code:
```python
days = 7
meal_rate = 79
lodging_rate = 175
nights = days - 1 # 6
total = days * meal_rate + nights * lodging_rate # 1603
print(total)
```
It prints 1603, as expected.
The allowance is $1,603. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "1603", "printed": "1603", "notation": null} |
nlprog_det-setting-0044857 | <|start|><|user|>
Rent of $1,800 goes up 8%. What is the new rent?<|eot|>
<|assistant|>
```python
rent = 1800
increase = 8 / 100 # 0.08
new_rent = rent * (1 + increase) # 1944.0000000000002
print(f"{new_rent:.2f}")
```
(Printed: 1944.00)
The new rent is $1,944.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Rent of $1,800 goes up 8%. What is the new rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 1800\nincrease = 8 / 100 # 0.08\nnew_rent = rent * (1 + increase) # 1944.0000000000002\nprint(f\"{new_rent:.2f}\")\n```\n(Printed: 1944.00)\n\nThe new rent is... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "1944.00", "printed": "1944.00", "notation": null} |
nlprog_det-setting-0044858 | At $0.65 per mile, what is the reimbursement for 500 miles?
```python
miles = 500
rate = 0.65
reimbursement = miles * rate # 325.0
print(f"{reimbursement:.2f}")
```
The script prints: 325.00
Arjun is owed $325.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "325.00", "printed": "325.00", "notation": null} |
nlprog_det-setting-0044859 | How many weekdays (Monday to Friday) fall after September 24, 2020 up to and including October 5, 2020?
Python code:
```python
from datetime import date, timedelta
start = date(2020, 9, 24)
end = date(2020, 10, 5)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekday() < 5:
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0044860 | <|start|><|user|>
A water bill is $20 plus $3.50 per thousand gallons beyond the first 3 thousand. What is the bill for 5 thousand gallons?<|eot|>
<|assistant|>
base = 20
rate = 3.5
used = 5
free = 3
bill = base + rate * max(0, used - free) # 27.0
print(f"{bill:.2f}")
Result:
27.00
The bill is... | chat | [
{
"role": "user",
"content": "A water bill is $20 plus $3.50 per thousand gallons beyond the first 3 thousand. What is the bill for 5 thousand gallons?"
},
{
"role": "assistant",
"content": " base = 20\n rate = 3.5\n used = 5\n free = 3\n bill = base + rate * max(0, used - free) ... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "27.00", "printed": "27.00", "notation": null} |
nlprog_det-setting-0044862 | <|start|><|user|>
A 12-month warranty starts on February 21, 2023. On what date does it end?<|eot|>
<|assistant|>
```python
from datetime import date
start = date(2023, 2, 21)
months = 12
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isofo... | chat | [
{
"role": "user",
"content": "A 12-month warranty starts on February 21, 2023. On what date does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nstart = date(2023, 2, 21)\nmonths = 12\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(star... | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "2024-02-21", "printed": "2024-02-21", "notation": null} |
nlprog_det-setting-0044863 | How many 2-foot square tiles cover a 14 ft by 13 ft floor (round up)?
Translated to Python:
import math
length = 14
width = 13
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 46
print(tiles)
Output of the run — 46
46 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "46", "printed": "46", "notation": null} |
nlprog_det-setting-0044864 | A quorum is 2/3 of the 11 members, rounded up. How many members make a quorum?
Code:
```python
import math
members = 11
quorum = math.ceil(members * 2 / 3) # 8
print(quorum)
```
Interpreter output — 8
That is 8 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0044865 | <|start|><|user|>
A meal costs $146.26. How much is a 18% tip?<|eot|>
<|assistant|>
The tip is $26.33.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A meal costs $146.26. How much is a 18% tip?"
},
{
"role": "assistant",
"content": "The tip is $26.33."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "26.33", "printed": "26.33", "notation": null} |
nlprog_det-setting-0044866 | <|start|><|user|>
A 3-day trip pays $79 a day for meals and $175 a night for lodging (2 nights). What is the total allowance?<|eot|>
<|assistant|>
days = 3
meal_rate = 79
lodging_rate = 175
nights = days - 1 # 2
total = days * meal_rate + nights * lodging_rate # 587
print(total)
Executing it g... | chat | [
{
"role": "user",
"content": "A 3-day trip pays $79 a day for meals and $175 a night for lodging (2 nights). What is the total allowance?"
},
{
"role": "assistant",
"content": " days = 3\n meal_rate = 79\n lodging_rate = 175\n nights = days - 1 # 2\n total = days * meal_rate + ni... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "587", "printed": "587", "notation": null} |
nlprog_det-setting-0044867 | <|start|><|system|>
You may call the tools below.
[{"name": "compute", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
At 60 miles per hour, h... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"compute\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": ... | nlprog_det | setting | original | null | deterministic | [] | [] | 195 | {"gold": "100", "printed": "100", "notation": null} |
nlprog_det-setting-0044868 | A hearing lasted 4 hours and 5 minutes. How many minutes is that?
One way, in code:
```python
hours = 4
minutes = 5
total_minutes = hours * 60 + minutes # 245
print(total_minutes)
```
Python prints 245, as expected.
That is 245 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "245", "printed": "245", "notation": null} |
nlprog_det-setting-0044870 | <|start|><|system|>
You have access to these functions:
{"name": "py_exec", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|>
<|user|>
To read 120... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"py_exec\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"... | nlprog_det | setting | original | null | deterministic | [] | [] | 207 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0044871 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "run_python", "description": "Run P... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\... | nlprog_det | setting | original | null | deterministic | [] | [] | 339 | {"gold": "2015-12-20", "printed": "2015-12-20", "notation": null} |
nlprog_det-setting-0044872 | An unpaid balance of $12,000 accrues 1.5% simple interest per month. How much interest accrues in 6 months?
Python, step by step:
balance = 12000
monthly_rate = 1.5 / 100 # 0.015
months = 6
interest = balance * monthly_rate * months # 1080.0
print(f"{interest:.2f}")
The program prints 1080.00, as... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "1080.00", "printed": "1080.00", "notation": null} |
nlprog_det-setting-0044873 | <|start|><|user|>
5 friends split a $180 bill plus a 15% tip evenly. How much does each pay?<|eot|>
<|assistant|>
```python
bill = 180
tip_rate = 15 / 100 # 0.15
people = 5
each = bill * (1 + tip_rate) / people # 41.39999999999999
print(f"{each:.2f}")
```
Execution prints: 41.40
Each person pays $41.40.<|eot|>
<|end... | chat | [
{
"role": "user",
"content": "5 friends split a $180 bill plus a 15% tip evenly. How much does each pay?"
},
{
"role": "assistant",
"content": "```python\nbill = 180\ntip_rate = 15 / 100 # 0.15\npeople = 5\neach = bill * (1 + tip_rate) / people # 41.39999999999999\nprint(f\"{each:.2f}\")\n```\... | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "41.40", "printed": "41.40", "notation": null} |
nlprog_det-setting-0044874 | A $1,000 security deposit has deductions of $45. How much is refunded?
We can compute it in Python.
```python
deposit = 1000
deductions = [45]
refund = deposit - sum(deductions) # 955
print(refund)
```
Out: 955
$955 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "955", "printed": "955", "notation": null} |
nlprog_det-setting-0044875 | What commission does Lucia make on $47,044 in sales at 4%?
The program:
sales = 47044
rate = 4 / 100
commission = sales * rate
print(f"{commission:.2f}")
Printed = 1881.76
Lucia earns $1,881.76. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "1881.76", "printed": "1881.76", "notation": null} |
nlprog_det-setting-0044876 | What does $5,000 grow to in 2 years at 5% annual compounding?
A short script:
```python
principal = 5000
rate = 5 / 100 # 0.05
years = 2
value = principal * (1 + rate) ** years # 5512.5
print(f"{value:.2f}")
```
Shell output: 5512.50
It is worth $5,512.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "5512.50", "printed": "5512.50", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.