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-0045407 | An office budget of $5,000 has expenses of $2,675, $519. How much of the budget is left?
A Python solution:
```python
budget = 5000
expenses = [2675, 519]
left = budget - sum(expenses) # 1806
print(left)
```
That prints 1806.
$1,806 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "1806", "printed": "1806", "notation": null} |
nlprog_det-setting-0045408 | Equipment costs $12,000, has a salvage value of $3,000, and a useful life of 5 years. What is the straight-line depreciation per year?
Written as code:
```python
cost = 12000
salvage = 3000
years = 5
per_year = (cost - salvage) / years # 1800.0
print(f"{per_year:.2f}")
```
Printed:
1800.00
Depreciation is $1,800.00 ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "1800.00", "printed": "1800.00", "notation": null} |
nlprog_det-setting-0045409 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
What does $1,000 grow to in 2 years at 2% annual compounding?<|eot|>
<|assistant|>
```python
principal = 1000
rate = 2 / 100 # 0.02
years = 2
value = principal * (1 + rate) ** years # 1040.4
print(f"{value:.2f}")
```
Running this gives 1040.40... | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "What does $1,000 grow to in 2 years at 2% annual compounding?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 1000\nrate = 2 / 100 # 0.02\nyears = 2\nvalue = princi... | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "1040.40", "printed": "1040.40", "notation": null} |
nlprog_det-setting-0045410 | <|start|><|user|>
A $1,200 loan carries 5% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|>
<|assistant|>
```python
principal = 1200
annual_rate = 5 / 100 # 0.05
months = 36
interest = principal * annual_rate * months / 12 # 180.0
payment... | chat | [
{
"role": "user",
"content": "A $1,200 loan carries 5% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 1200\nannual_rate = 5 / 100 # 0.05\nmonths = 36\ninteres... | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "38.33", "printed": "38.33", "notation": null} |
nlprog_det-setting-0045411 | A 4% increase is applied to $1,800 monthly rent. What is the new amount?
We write it as a program:
```python
rent = 1800
increase = 4 / 100
new_rent = rent * (1 + increase)
print(f"{new_rent:.2f}")
```
The code prints: 1872.00
It rises to $1,872.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "1872.00", "printed": "1872.00", "notation": null} |
nlprog_det-setting-0045412 | Starting from $8,000, the team spends $3,544, $1,592, $1,923. What remains?
```python
budget = 8000
expenses = [3544, 1592, 1923]
left = budget - sum(expenses)
print(left)
```
Execution result: 941
$941 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "941", "printed": "941", "notation": null} |
nlprog_det-setting-0045413 | <|start|><|system|>
Tools (call with JSON):
[{"name": "compute", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
Straight-line depreciation:... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"compute\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"sn... | nlprog_det | setting | original | null | deterministic | [] | [] | 248 | {"gold": "2000.00", "printed": "2000.00", "notation": null} |
nlprog_det-setting-0045414 | Pack A has 8 items for $14.66. Pack B has 24 items for $23.69. Which has the lower price per item?
A few lines of Python do it:
```python
pack_a = 14.66 / 8 # 1.8325
pack_b = 23.69 / 24 # 0.9870833333333334
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
Executing it gives B.
B has the lower uni... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0045415 | Someone born April 10, 1979 turns how old by January 2, 2023? Give the age in whole years.
As a program:
```python
from datetime import date
born = date(1979, 4, 10) # datetime.date(1979, 4, 10)
on = date(2023, 1, 2) # datetime.date(2023, 1, 2)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "43", "printed": "43", "notation": null} |
nlprog_det-setting-0045416 | <|start|><|user|>
Monthly rent is $1,800. A tenant moves in with 19 days left in a 31-day month. What is the prorated rent?<|eot|>
<|assistant|>
```python
rent = 1800
days_in_month = 31
days_occupied = 19
prorated = rent * days_occupied / days_in_month # 1103.225806451613
print(f"{prorated:.2f}")
```
Run output — 1103... | chat | [
{
"role": "user",
"content": "Monthly rent is $1,800. A tenant moves in with 19 days left in a 31-day month. What is the prorated rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 1800\ndays_in_month = 31\ndays_occupied = 19\nprorated = rent * days_occupied / days_in_month # 1103.2... | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "1103.23", "printed": "1103.23", "notation": null} |
nlprog_det-setting-0045417 | <|start|><|system|>
You may call the tools below.
{"name": "code_runner", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|>
<|user|>
What is 10 degrees Celsiu... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n{\"name\": \"code_runner\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\":... | nlprog_det | setting | original | null | deterministic | [] | [] | 205 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0045418 | <|start|><|user|>
At $15.63 an hour, what does 20 hours of work pay?<|eot|>
<|assistant|>
```python
rate = 15.63
hours = 20
earnings = rate * hours # 312.6
print(f"{earnings:.2f}")
```
Run it and it prints: 312.60
The pay is $312.60.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $15.63 an hour, what does 20 hours of work pay?"
},
{
"role": "assistant",
"content": "```python\nrate = 15.63\nhours = 20\nearnings = rate * hours # 312.6\nprint(f\"{earnings:.2f}\")\n```\nRun it and it prints: 312.60\n\nThe pay is $312.60."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "312.60", "printed": "312.60", "notation": null} |
nlprog_det-setting-0045419 | A board has 34 members. A majority is more than half. How many votes make a majority?
In code:
```python
members = 34
majority = members // 2 + 1 # 18
print(majority)
```
Running it prints 18, as expected.
18 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0045420 | <|start|><|user|>
After a 40% fee is taken from a $96,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|>
<|assistant|>
```python
award = 96000
fee = award * 40 / 100 # 38400.0
remaining = award - fee # 57600.0
per_client = remaining / 3 # 19200.0
print(f"{per_client:.2f}")... | chat | [
{
"role": "user",
"content": "After a 40% fee is taken from a $96,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?"
},
{
"role": "assistant",
"content": "```python\naward = 96000\nfee = award * 40 / 100 # 38400.0\nremaining = award - fee # 57600.0\nper_cl... | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "19200.00", "printed": "19200.00", "notation": null} |
nlprog_det-setting-0045421 | 33 calendars cost $7 apiece. With 5% tax added, what is the total?
Coded up:
```python
quantity = 33
unit_price = 7
subtotal = quantity * unit_price # 231
total = subtotal * (1 + 5 / 100) # 242.55
print(f"{total:.2f}")
```
# console output: 242.55
The invoice total is $242.55. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "242.55", "printed": "242.55", "notation": null} |
nlprog_det-setting-0045422 | <|start|><|user|>
Under a 30% contingency agreement, what fee is owed on a $12,000 award?<|eot|>
<|assistant|>
```python
recovery = 12000
rate = 30 / 100 # 0.3
fee = recovery * rate # 3600.0
print(f"{fee:.2f}")
```
(Printed result: 3600.00)
The fee is $3,600.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Under a 30% contingency agreement, what fee is owed on a $12,000 award?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 12000\nrate = 30 / 100 # 0.3\nfee = recovery * rate # 3600.0\nprint(f\"{fee:.2f}\")\n```\n(Printed result: 3600.00)\n\nThe fee is $... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "3600.00", "printed": "3600.00", "notation": null} |
nlprog_det-setting-0045423 | <|start|><|user|>
What simple interest does $20,000 earn at 6% a year over 3 years?<|eot|>
<|assistant|>
```python
principal = 20000
rate = 6 / 100 # 0.06
years = 3
interest = principal * rate * years # 3600.0
print(f"{interest:.2f}")
```
Shell output: 3600.00
It earns $3,600.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What simple interest does $20,000 earn at 6% a year over 3 years?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 20000\nrate = 6 / 100 # 0.06\nyears = 3\ninterest = principal * rate * years # 3600.0\nprint(f\"{interest:.2f}\")\n```\nShell output: 36... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "3600.00", "printed": "3600.00", "notation": null} |
nlprog_det-setting-0045424 | <|start|><|user|>
Which is cheaper per unit: 8 for $6.44 (A) or 18 for $17.40 (B)?<|eot|>
<|assistant|>
```python
pack_a = 6.44 / 8 # 0.805
pack_b = 17.4 / 18 # 0.9666666666666666
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
The run gives A.
Pack A is cheaper per item.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Which is cheaper per unit: 8 for $6.44 (A) or 18 for $17.40 (B)?"
},
{
"role": "assistant",
"content": "```python\npack_a = 6.44 / 8 # 0.805\npack_b = 17.4 / 18 # 0.9666666666666666\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'A'\nprint(cheaper)\n```\nThe ru... | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0045425 | 17 mugs cost $3 apiece. With 7% tax added, what is the total?
Python version:
```python
quantity = 17
unit_price = 3
subtotal = quantity * unit_price # 51
total = subtotal * (1 + 7 / 100) # 54.57
print(f"{total:.2f}")
```
Run result — 54.57
The total with tax is $54.57. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "54.57", "printed": "54.57", "notation": null} |
nlprog_det-setting-0045426 | Notice was given on June 25, 2027. The notice period is 60 days. When does it run out?
Script:
```python
from datetime import date, timedelta
start = date(2027, 6, 25) # datetime.date(2027, 6, 25)
end = start + timedelta(days=60) # datetime.date(2027, 8, 24)
print(end.isoformat())
```
That prints: 2027-08-24
The pe... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "2027-08-24", "printed": "2027-08-24", "notation": null} |
nlprog_det-setting-0045427 | <|start|><|system|>
Tool definitions:
[{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}, {"name": "convert_units", "description": "Convert... | chat | [
{
"role": "system",
"content": "Tool definitions:\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\": [\"title\", \"sect... | nlprog_det | setting | original | null | deterministic | [] | [] | 425 | {"gold": "2024-05-30", "printed": "2024-05-30", "notation": null} |
nlprog_det-setting-0045428 | An attorney bills 2.5 hours at $180 per hour. What is the bill?
Let's compute it with Python.
```python
hours = 2.5
rate = 180
bill = hours * rate # 450.0
print(f"{bill:.2f}")
```
Running this gives: 450.00
The bill is $450.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "450.00", "printed": "450.00", "notation": null} |
nlprog_det-setting-0045429 | An invoice lists 4 clipboards at $3 each, plus 7% sales tax. What is the invoice total?
Here's the code.
```python
quantity = 4
unit_price = 3
subtotal = quantity * unit_price # 12
total = subtotal * (1 + 7 / 100) # 12.84
print(f"{total:.2f}")
```
The run gives 12.84.
The invoice total is $12.84. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "12.84", "printed": "12.84", "notation": null} |
nlprog_det-setting-0045430 | At 65 miles per hour, how many minutes does a 390-mile trip take?
The Python version:
```python
distance = 390
speed = 65
minutes = distance / speed * 60
print(round(minutes))
```
The run gives 360, as expected.
360 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "360", "printed": "360", "notation": null} |
nlprog_det-setting-0045431 | <|start|><|user|>
With $4,000 in costs and $6,500 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|>
<|assistant|>
```python
revenue = 6500
costs = 4000
profit = revenue - costs # 2500
margin = profit / revenue * 100 # 38.46153846153847
print(round(margin, 1))
```
Printed:
38.5
Profit is 38.... | chat | [
{
"role": "user",
"content": "With $4,000 in costs and $6,500 in revenue, what percent of revenue is profit? Round to one decimal."
},
{
"role": "assistant",
"content": "```python\nrevenue = 6500\ncosts = 4000\nprofit = revenue - costs # 2500\nmargin = profit / revenue * 100 # 38.4615384615384... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "38.5", "printed": "38.5", "notation": null} |
nlprog_det-setting-0045432 | Under a 33% contingency agreement, what fee is owed on a $60,000 award?
recovery = 60000
rate = 33 / 100 # 0.33
fee = recovery * rate # 19800.0
print(f"{fee:.2f}")
The program prints 19800.00, as expected.
The fee is $19,800.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "19800.00", "printed": "19800.00", "notation": null} |
nlprog_det-setting-0045433 | <|start|><|user|>
To read 380 pages in 19 days, how many pages per day are needed?<|eot|>
<|assistant|>
pages = 380
days = 19
per_day = pages // days # 20
print(per_day)
(Result: 20)
20 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "To read 380 pages in 19 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": " pages = 380\n days = 19\n per_day = pages // days # 20\n print(per_day)\n(Result: 20)\n\n20 pages a day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 68 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0045434 | Parking is $5 per hour with a daily maximum of $18. What do 7 hours cost?
The program:
```python
rate = 5
hours = 7
daily_max = 18
cost = min(rate * hours, daily_max) # 18
print(cost)
```
When run, it prints 18, as expected.
The charge is $18. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0045435 | <|start|><|system|>
You are a patient tutor.<|eot|>
<|user|>
How many units at $20 each (variable cost $10) cover $4,000 of fixed costs?<|eot|>
<|assistant|>
```python
import math
fixed = 4000
price = 20
variable = 10
units = math.ceil(fixed / (price - variable)) # 400
print(units)
```
The code prints 400.
400 units ... | chat | [
{
"role": "system",
"content": "You are a patient tutor."
},
{
"role": "user",
"content": "How many units at $20 each (variable cost $10) cover $4,000 of fixed costs?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 4000\nprice = 20\nvariable = 10\nunits = math.... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "400", "printed": "400", "notation": null} |
nlprog_det-setting-0045436 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "code_runner", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"code_runner\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python ... | nlprog_det | setting | original | null | deterministic | [] | [] | 248 | {"gold": "276.66", "printed": "276.66", "notation": null} |
nlprog_det-setting-0045438 | <|start|><|system|>
Respond clearly and to the point.<|eot|>
<|user|>
A pack of 25 folders sells for $450. What does each cost?<|eot|>
<|assistant|>
total = 450
count = 25
per_item = total // count # 18
print(per_item)
Run it and it prints: 18
Each one costs $18.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Respond clearly and to the point."
},
{
"role": "user",
"content": "A pack of 25 folders sells for $450. What does each cost?"
},
{
"role": "assistant",
"content": " total = 450\n count = 25\n per_item = total // count # 18\n print(per_ite... | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0045439 | <|start|><|user|>
How many units at $15 each (variable cost $11) cover $2,500 of fixed costs?<|eot|>
<|assistant|>
```python
import math
fixed = 2500
price = 15
variable = 11
units = math.ceil(fixed / (price - variable))
print(units)
```
# printed result: 625
625 units are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many units at $15 each (variable cost $11) cover $2,500 of fixed costs?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 2500\nprice = 15\nvariable = 11\nunits = math.ceil(fixed / (price - variable))\nprint(units)\n```\n# printed result: 62... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "625", "printed": "625", "notation": null} |
nlprog_det-setting-0045440 | <|start|><|system|>
Be exact with numbers.<|eot|>
<|user|>
A measure needs at least 75% of 193 votes. How many votes is that, rounded up?<|eot|>
<|assistant|>
```python
import math
voters = 193
needed = math.ceil(voters * 75 / 100) # 145
print(needed)
```
It prints: 145
145 votes are needed.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be exact with numbers."
},
{
"role": "user",
"content": "A measure needs at least 75% of 193 votes. How many votes is that, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 193\nneeded = math.ceil(voters * 75 / 100) ... | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "145", "printed": "145", "notation": null} |
nlprog_det-setting-0045441 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "calc", "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|>
7 boxes hol... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"calc\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"r... | nlprog_det | setting | original | null | deterministic | [] | [] | 220 | {"gold": "64", "printed": "64", "notation": null} |
nlprog_det-setting-0045442 | Filing fees are $405 per document. What do 12 filings cost?
Here is a short program for it.
```python
fee = 405
filings = 12
total = fee * filings # 4860
print(total)
```
Result — 4860
$4,860 in filing fees. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "4860", "printed": "4860", "notation": null} |
nlprog_det-setting-0045443 | What is 35 degrees Celsius in Fahrenheit?
In Python:
celsius = 35
fahrenheit = celsius * 9 / 5 + 32 # 95.0
print(round(fahrenheit))
Out — 95
That is 95 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "95", "printed": "95", "notation": null} |
nlprog_det-setting-0045444 | <|start|><|user|>
A shift runs from 7:02 AM to 9:35 AM. How long is it in minutes?<|eot|>
<|assistant|>
```python
start = 7 * 60 + 2 # 422
end = 9 * 60 + 35 # 575
print(end - start)
```
The interpreter prints: 153
153 minutes pass.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A shift runs from 7:02 AM to 9:35 AM. How long is it in minutes?"
},
{
"role": "assistant",
"content": "```python\nstart = 7 * 60 + 2 # 422\nend = 9 * 60 + 35 # 575\nprint(end - start)\n```\nThe interpreter prints: 153\n\n153 minutes pass."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "153", "printed": "153", "notation": null} |
nlprog_det-setting-0045445 | <|start|><|user|>
Starting with 675 rulers and using 38 per day, how many remain after 14 days?<|eot|>
<|assistant|>
```python
stock = 675
per_day = 38
days = 14
left = stock - per_day * days # 143
print(left)
```
It prints: 143
143 rulers are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting with 675 rulers and using 38 per day, how many remain after 14 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 675\nper_day = 38\ndays = 14\nleft = stock - per_day * days # 143\nprint(left)\n```\nIt prints: 143\n\n143 rulers are left."
}
... | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "143", "printed": "143", "notation": null} |
nlprog_det-setting-0045446 | <|start|><|system|>
Tools (call with JSON):
[{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "define_word", "description": "Return a diction... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"target\"]}... | nlprog_det | setting | original | null | deterministic | [] | [] | 398 | {"gold": "780", "printed": "780", "notation": null} |
nlprog_det-setting-0045447 | If a 3-year limitations period starts on September 6, 2018, when does it end?
Script:
```python
from datetime import date
accrued = date(2018, 9, 6) # datetime.date(2018, 9, 6)
years = 3
expires = accrued.replace(year=accrued.year + years) # datetime.date(2021, 9, 6)
print(expires.isoformat())
```
Printed — 2021-09-... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "2021-09-06", "printed": "2021-09-06", "notation": null} |
nlprog_det-setting-0045448 | <|start|><|user|>
A penalty of $250 a day accrues, capped at $1,000. What is owed after 5 days?<|eot|>
<|assistant|>
```python
per_day = 250
days = 5
cap = 1000
fine = min(per_day * days, cap) # 1000
print(fine)
```
The program prints 1000, as expected.
The fine is $1,000.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A penalty of $250 a day accrues, capped at $1,000. What is owed after 5 days?"
},
{
"role": "assistant",
"content": "```python\nper_day = 250\ndays = 5\ncap = 1000\nfine = min(per_day * days, cap) # 1000\nprint(fine)\n```\nThe program prints 1000, as expected.\n\nT... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0045449 | From a $7,500 retainer, 6 hours at $275/hour have been drawn. What remains? The remaining balance is $5,850. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "5850", "printed": "5850", "notation": null} |
nlprog_det-setting-0045450 | Someone born May 20, 1976 turns how old by December 10, 2030? Give the age in whole years.
A few lines of Python do it:
from datetime import date
born = date(1976, 5, 20) # datetime.date(1976, 5, 20)
on = date(2030, 12, 10) # datetime.date(2030, 12, 10)
age = on.year - born.year - ((on.month, on.day)... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 155 | {"gold": "54", "printed": "54", "notation": null} |
nlprog_det-setting-0045451 | Parking is $5 per hour with a daily maximum of $15. What do 3 hours cost?
Python does the arithmetic:
```python
rate = 5
hours = 3
daily_max = 15
cost = min(rate * hours, daily_max) # 15
print(cost)
```
Console output: 15
Parking costs $15. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0045452 | Counting only Monday through Friday, how many business days are there after March 2, 2027 through March 8, 2027?
Python version:
```python
from datetime import date, timedelta
start = date(2027, 3, 2)
end = date(2027, 3, 8)
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": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0045453 | <|start|><|user|>
A lawyer's fee is 30% of a $40,000 recovery. How large is the fee?<|eot|>
<|assistant|>
The lawyer's fee comes to $12,000.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lawyer's fee is 30% of a $40,000 recovery. How large is the fee?"
},
{
"role": "assistant",
"content": "The lawyer's fee comes to $12,000.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "12000.00", "printed": "12000.00", "notation": null} |
nlprog_det-setting-0045454 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "run_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"na... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"run_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Pyth... | nlprog_det | setting | original | null | deterministic | [] | [] | 327 | {"gold": "120.84", "printed": "120.84", "notation": null} |
nlprog_det-setting-0045455 | Nilufar drove 30 miles for work. Mileage is reimbursed at 70 cents a mile. How much is the reimbursement?
A Python solution:
miles = 30
rate = 0.7
reimbursement = miles * rate # 21.0
print(f"{reimbursement:.2f}")
Result = 21.00
Nilufar is owed $21.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "21.00", "printed": "21.00", "notation": null} |
nlprog_det-setting-0045456 | <|start|><|user|>
Papers were served by mail on June 4, 2022. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date?<|eot|>
<|assistant|>
from datetime import date, timedelta
served = date(2022, 6, 4) # datetime.date(2022, 6, 4)
response_days = 28
mail_days = 3
... | chat | [
{
"role": "user",
"content": "Papers were served by mail on June 4, 2022. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date?"
},
{
"role": "assistant",
"content": " from datetime import date, timedelta\n served = date(2022, 6, 4) # datetime.date(... | nlprog_det | setting | original | null | deterministic | [] | [] | 164 | {"gold": "2022-07-05", "printed": "2022-07-05", "notation": null} |
nlprog_det-setting-0045457 | 4 clients win $30,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?
Let's compute it with Python.
award = 30000
fee = award * 40 / 100 # 12000.0
remaining = award - fee # 18000.0
per_client = remaining / 4 # 4500.0
print(f"{per_client:.2f}")
Running it prin... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "4500.00", "printed": "4500.00", "notation": null} |
nlprog_det-setting-0045458 | A $120 dinner bill gets a 20% tip, and 4 people share the cost equally. What is each person's share?
Here is the program.
```python
bill = 120
tip_rate = 20 / 100 # 0.2
people = 4
each = bill * (1 + tip_rate) / people # 36.0
print(f"{each:.2f}")
```
Run output: 36.00
Each person pays $36.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "36.00", "printed": "36.00", "notation": null} |
nlprog_det-setting-0045459 | A water bill is $15 plus $4.20 per thousand gallons beyond the first 2 thousand. What is the bill for 21 thousand gallons?
As Python:
```python
base = 15
rate = 4.2
used = 21
free = 2
bill = base + rate * max(0, used - free) # 94.8
print(f"{bill:.2f}")
```
It prints 94.80.
$94.80 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "94.80", "printed": "94.80", "notation": null} |
nlprog_det-setting-0045460 | A deposition lasted 3 hours and 8 minutes. How many minutes is that?
Here is a short program for it.
```python
hours = 3
minutes = 8
total_minutes = hours * 60 + minutes # 188
print(total_minutes)
```
Running it prints: 188
That is 188 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "188", "printed": "188", "notation": null} |
nlprog_det-setting-0045461 | <|start|><|user|>
A 15 × 14 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?<|eot|>
<|assistant|>
```python
import math
length = 15
width = 14
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 53
print(tiles)
```
On running, it outputs: 53
It takes 53 tiles.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 15 × 14 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 15\nwidth = 14\ntile = 2\ntiles = math.ceil(length * width / (tile * tile)) # 53\nprint(tiles)\n```\nOn running... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "53", "printed": "53", "notation": null} |
nlprog_det-setting-0045462 | A 5% increase is applied to $1,800 monthly rent. What is the new amount?
As a program:
```python
rent = 1800
increase = 5 / 100 # 0.05
new_rent = rent * (1 + increase) # 1890.0
print(f"{new_rent:.2f}")
```
Output — 1890.00
It rises to $1,890.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "1890.00", "printed": "1890.00", "notation": null} |
nlprog_det-setting-0045463 | At 1.5% a month (simple), what interest builds on $7,500 over 5 months?
Computation in Python:
```python
balance = 7500
monthly_rate = 1.5 / 100 # 0.015
months = 5
interest = balance * monthly_rate * months # 562.5
print(f"{interest:.2f}")
```
When run, it prints 562.50, as expected.
$562.50 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "562.50", "printed": "562.50", "notation": null} |
nlprog_det-setting-0045464 | <|start|><|system|>
Functions:
[{"name": "calculator", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
What simple interest does $12,000 earn ... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"calculator\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\"]}}]"... | nlprog_det | setting | original | null | deterministic | [] | [] | 218 | {"gold": "1800.00", "printed": "1800.00", "notation": null} |
nlprog_det-setting-0045465 | <|start|><|user|>
How many weekdays (Monday to Friday) fall after December 7, 2018 up to and including December 21, 2018?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2018, 12, 7)
end = date(2018, 12, 21)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(... | chat | [
{
"role": "user",
"content": "How many weekdays (Monday to Friday) fall after December 7, 2018 up to and including December 21, 2018?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2018, 12, 7)\nend = date(2018, 12, 21)\ncount = 0\nfor k in r... | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0045466 | <|start|><|user|>
10.5 hours of work at $250 an hour: what is the total charge?<|eot|>
<|assistant|>
hours = 10.5
rate = 250
bill = hours * rate # 2625.0
print(f"{bill:.2f}")
Output:
2625.00
The bill is $2,625.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "10.5 hours of work at $250 an hour: what is the total charge?"
},
{
"role": "assistant",
"content": " hours = 10.5\n rate = 250\n bill = hours * rate # 2625.0\n print(f\"{bill:.2f}\")\nOutput:\n2625.00\n\nThe bill is $2,625.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "2625.00", "printed": "2625.00", "notation": null} |
nlprog_det-setting-0045467 | A recipe for 4 people uses 450 grams of rice. How many grams are needed for 10 people?
As a program:
```python
grams = 450
serves = 4
needed_for = 10
scaled = grams * needed_for // serves # 1125
print(scaled)
```
Python prints 1125.
1125 grams of rice are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "1125", "printed": "1125", "notation": null} |
nlprog_det-setting-0045468 | 8 claimants share a $2,640 settlement equally. What is each share?
Python makes this quick:
```python
settlement = 2640
parties = 8
share = settlement // parties
print(share)
```
# run result: 330
Each share is $330. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "330", "printed": "330", "notation": null} |
nlprog_det-setting-0045469 | Shipping costs $5 plus $2.00 per pound. What does a 8-pound parcel cost to ship?
Translated to Python:
```python
base = 5
per_pound = 2.0
weight = 8
cost = base + per_pound * weight # 21.0
print(f"{cost:.2f}")
```
Execution result — 21.00
The charge is $21.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "21.00", "printed": "21.00", "notation": null} |
nlprog_det-setting-0045470 | <|start|><|user|>
A 612-page report must be reviewed in 17 days. How many pages a day is that, evenly?<|eot|>
<|assistant|>
```python
pages = 612
days = 17
per_day = pages // days
print(per_day)
```
(Printed: 36)
That is 36 pages per day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 612-page report must be reviewed in 17 days. How many pages a day is that, evenly?"
},
{
"role": "assistant",
"content": "```python\npages = 612\ndays = 17\nper_day = pages // days\nprint(per_day)\n```\n(Printed: 36)\n\nThat is 36 pages per day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0045471 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "py_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "get_weather",... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"py_exec\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 303 | {"gold": "480.00", "printed": "480.00", "notation": null} |
nlprog_det-setting-0045472 | <|start|><|user|>
A 120-day notice period begins on May 3, 2024. On what date does it end?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2024, 5, 3) # datetime.date(2024, 5, 3)
end = start + timedelta(days=120) # datetime.date(2024, 8, 31)
print(end.isoformat())
```
Result = 2024-08... | chat | [
{
"role": "user",
"content": "A 120-day notice period begins on May 3, 2024. On what date does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2024, 5, 3) # datetime.date(2024, 5, 3)\nend = start + timedelta(days=120) # datetime.date... | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "2024-08-31", "printed": "2024-08-31", "notation": null} |
nlprog_det-setting-0045473 | <|start|><|user|>
An unpaid balance of $12,000 accrues 1.5% simple interest per month. How much interest accrues in 3 months?<|eot|>
<|assistant|>
```python
balance = 12000
monthly_rate = 1.5 / 100 # 0.015
months = 3
interest = balance * monthly_rate * months # 540.0
print(f"{interest:.2f}")
```
# out: 540.00
$540.0... | chat | [
{
"role": "user",
"content": "An unpaid balance of $12,000 accrues 1.5% simple interest per month. How much interest accrues in 3 months?"
},
{
"role": "assistant",
"content": "```python\nbalance = 12000\nmonthly_rate = 1.5 / 100 # 0.015\nmonths = 3\ninterest = balance * monthly_rate * months ... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "540.00", "printed": "540.00", "notation": null} |
nlprog_det-setting-0045474 | How many whole days and leftover hours are in 46 hours?
Program:
```python
hours = 46
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Run result = 1 days and 22 hours
That is 1 days and 22 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "1 days and 22 hours", "printed": "1 days and 22 hours", "notation": null} |
nlprog_det-setting-0045475 | 7 boxes hold 24 hard drives each. After 14 are handed out, how many are left?
As a program:
```python
boxes = 7
per_box = 24
given_away = 14
left = boxes * per_box - given_away # 154
print(left)
```
Execution result — 154
That leaves 154 hard drives. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "154", "printed": "154", "notation": null} |
nlprog_det-setting-0045476 | <|start|><|system|>
You have access to these functions:
[{"name": "math_engine", "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|>
The p... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"math_engine\", \"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 | [] | [] | 227 | {"gold": "3150.00", "printed": "3150.00", "notation": null} |
nlprog_det-setting-0045477 | A count moves from 800 to 840. By what percent did it change (use a minus sign for a drop)?
A short script:
```python
old = 800
new = 840
change = (new - old) / old * 100 # 5.0
print(round(change))
```
It outputs: 5
The change is 5%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0045478 | Jamal and Abel share $5,852 in the ratio 3:4. How much does Jamal get?
Computation in Python:
total = 5852
parts_a = 3
parts_b = 4
share_a = total * parts_a // (parts_a + parts_b) # 2508
print(share_a)
Running this gives 2508.
Jamal gets $2,508. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "2508", "printed": "2508", "notation": null} |
nlprog_det-setting-0045479 | 20 of 20 members attended. What percent attended?
Let's compute it with Python.
present = 20
total = 20
percent = present / total * 100 # 100.0
print(round(percent, 1))
What it prints — 100.0
Attendance was 100.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "100.0", "printed": "100.0", "notation": null} |
nlprog_det-setting-0045480 | <|start|><|user|>
Find the mean of these test scores: 99, 68 and 94.<|eot|>
<|assistant|>
```python
scores = [99, 68, 94]
average = sum(scores) // len(scores) # 87
print(average)
```
Executed, it shows 87.
The mean is 87.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Find the mean of these test scores: 99, 68 and 94."
},
{
"role": "assistant",
"content": "```python\nscores = [99, 68, 94]\naverage = sum(scores) // len(scores) # 87\nprint(average)\n```\nExecuted, it shows 87.\n\nThe mean is 87."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "87", "printed": "87", "notation": null} |
nlprog_det-setting-0045481 | <|start|><|system|>
You help with homework problems.<|eot|>
<|user|>
Convert 5 °C to Fahrenheit.<|eot|>
<|assistant|>
```python
celsius = 5
fahrenheit = celsius * 9 / 5 + 32 # 41.0
print(round(fahrenheit))
```
The run gives 41.
That is 41 °F.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help with homework problems."
},
{
"role": "user",
"content": "Convert 5 °C to Fahrenheit."
},
{
"role": "assistant",
"content": "```python\ncelsius = 5\nfahrenheit = celsius * 9 / 5 + 32 # 41.0\nprint(round(fahrenheit))\n```\nThe run gives 41.\n\... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "41", "printed": "41", "notation": null} |
nlprog_det-setting-0045482 | <|start|><|user|>
How many whole days and leftover hours are in 81 hours?<|eot|>
<|assistant|>
```python
hours = 81
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
# output: 3 days and 9 hours
81 hours is 3 days and 9 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many whole days and leftover hours are in 81 hours?"
},
{
"role": "assistant",
"content": "```python\nhours = 81\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\n# output: 3 days and 9 hours\n\n81 hours is 3 days and 9 hours."
}
... | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "3 days and 9 hours", "printed": "3 days and 9 hours", "notation": null} |
nlprog_det-setting-0045483 | What simple interest does $12,000 earn at 6% a year over 4 years?
It earns $2,880.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "2880.00", "printed": "2880.00", "notation": null} |
nlprog_det-setting-0045484 | <|start|><|user|>
Goods bought on April 28, 2022 carry a 18-month warranty. When does it expire?<|eot|>
<|assistant|>
It expires on October 28, 2023.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Goods bought on April 28, 2022 carry a 18-month warranty. When does it expire?"
},
{
"role": "assistant",
"content": "It expires on October 28, 2023."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "2023-10-28", "printed": "2023-10-28", "notation": null} |
nlprog_det-setting-0045485 | <|start|><|user|>
What is a 10% tip on a $29.35 bill?<|eot|>
<|assistant|>
```python
bill = 29.35
tip_rate = 10 / 100 # 0.1
tip = bill * tip_rate # 2.9350000000000005
print(f"{tip:.2f}")
```
Printed:
2.94
Leave $2.94.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is a 10% tip on a $29.35 bill?"
},
{
"role": "assistant",
"content": "```python\nbill = 29.35\ntip_rate = 10 / 100 # 0.1\ntip = bill * tip_rate # 2.9350000000000005\nprint(f\"{tip:.2f}\")\n```\nPrinted:\n2.94\n\nLeave $2.94."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "2.94", "printed": "2.94", "notation": null} |
nlprog_det-setting-0045486 | Vera and Bruna share $660 in the ratio 2:3. How much does Vera get?
Script:
total = 660
parts_a = 2
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b) # 264
print(share_a)
Shell output: 264
Vera gets $264. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "264", "printed": "264", "notation": null} |
nlprog_det-setting-0045487 | <|start|><|user|>
How long, in days, is it from October 6, 2020 until August 15, 2021?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2020, 10, 6) # datetime.date(2020, 10, 6)
second = date(2021, 8, 15) # datetime.date(2021, 8, 15)
print((second - first).days)
```
(Printed result: 313)
It is 3... | chat | [
{
"role": "user",
"content": "How long, in days, is it from October 6, 2020 until August 15, 2021?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2020, 10, 6) # datetime.date(2020, 10, 6)\nsecond = date(2021, 8, 15) # datetime.date(2021, 8, 15)\nprint... | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "313", "printed": "313", "notation": null} |
nlprog_det-setting-0045488 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
{"name": "py_exec", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|user|>
M... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"py_exec\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source c... | nlprog_det | setting | original | null | deterministic | [] | [] | 214 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0045489 | <|start|><|user|>
Sales went from 2,000 to 1,500. What is the percent change?<|eot|>
<|assistant|>
```python
old = 2000
new = 1500
change = (new - old) / old * 100 # -25.0
print(round(change))
```
Execution prints: -25
It changed by -25%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Sales went from 2,000 to 1,500. What is the percent change?"
},
{
"role": "assistant",
"content": "```python\nold = 2000\nnew = 1500\nchange = (new - old) / old * 100 # -25.0\nprint(round(change))\n```\nExecution prints: -25\n\nIt changed by -25%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "-25", "printed": "-25", "notation": null} |
nlprog_det-setting-0045490 | <|start|><|user|>
Papers were served by mail on November 27, 2025. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
served = date(2025, 11, 27) # datetime.date(2025, 11, 27)
response_days = 28
mail_days = 3... | chat | [
{
"role": "user",
"content": "Papers were served by mail on November 27, 2025. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nserved = date(2025, 11, 27) # date... | nlprog_det | setting | original | null | deterministic | [] | [] | 183 | {"gold": "2025-12-28", "printed": "2025-12-28", "notation": null} |
nlprog_det-setting-0045491 | <|start|><|system|>
Answer the user's question directly.<|eot|>
<|user|>
At 2% a month (simple), what interest builds on $1,000 over 6 months?<|eot|>
<|assistant|>
balance = 1000
monthly_rate = 2 / 100 # 0.02
months = 6
interest = balance * monthly_rate * months # 120.0
print(f"{interest:.2f}")
On... | chat | [
{
"role": "system",
"content": "Answer the user's question directly."
},
{
"role": "user",
"content": "At 2% a month (simple), what interest builds on $1,000 over 6 months?"
},
{
"role": "assistant",
"content": " balance = 1000\n monthly_rate = 2 / 100 # 0.02\n months = 6\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "120.00", "printed": "120.00", "notation": null} |
nlprog_det-setting-0045492 | What simple interest does $1,000 earn at 3% a year over 2 years?
Let the code do the arithmetic:
```python
principal = 1000
rate = 3 / 100 # 0.03
years = 2
interest = principal * rate * years # 60.0
print(f"{interest:.2f}")
```
It outputs 60.00.
The interest is $60.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "60.00", "printed": "60.00", "notation": null} |
nlprog_det-setting-0045493 | <|start|><|user|>
A filing cabinet costs $45. It is 20% off. What is the sale price?<|eot|>
<|assistant|>
```python
price = 45
discount = 20 / 100 # 0.2
sale_price = price * (1 - discount) # 36.0
print(f"{sale_price:.2f}")
```
That prints: 36.00
The sale price is $36.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A filing cabinet costs $45. It is 20% off. What is the sale price?"
},
{
"role": "assistant",
"content": "```python\nprice = 45\ndiscount = 20 / 100 # 0.2\nsale_price = price * (1 - discount) # 36.0\nprint(f\"{sale_price:.2f}\")\n```\nThat prints: 36.00\n\nThe sal... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "36.00", "printed": "36.00", "notation": null} |
nlprog_det-setting-0045495 | A court charges $15 per request plus $0.10 per page after the first 10 pages. What does a 27-page copy cost?
Let's compute it with Python.
```python
pages = 27
base = 15
per_page = 0.1
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page
print(f"{cost:.2f}")
```
stdout — 16.70
The total is $16.70. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "16.70", "printed": "16.70", "notation": null} |
nlprog_det-setting-0045496 | Jonas buys 6 boxes of 10 headsets each and gives away 17 headsets. How many headsets are left?
We can compute it in Python.
```python
boxes = 6
per_box = 10
given_away = 17
left = boxes * per_box - given_away # 43
print(left)
```
Interpreter output — 43
43 headsets are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "43", "printed": "43", "notation": null} |
nlprog_det-setting-0045498 | 70 copies of a 45-page packet are printed at $0.12 per page. What is the cost?
Code:
```python
pages = 45
copies = 70
cost_per_page = 0.12
cost = pages * copies * cost_per_page # 378.0
print(f"{cost:.2f}")
```
Python prints 378.00.
The job costs $378.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "378.00", "printed": "378.00", "notation": null} |
nlprog_det-setting-0045499 | <|start|><|user|>
What is a 15% tip on a $150.67 bill?<|eot|>
<|assistant|>
```python
bill = 150.67
tip_rate = 15 / 100 # 0.15
tip = bill * tip_rate # 22.600499999999997
print(f"{tip:.2f}")
```
It outputs: 22.60
Leave $22.60.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is a 15% tip on a $150.67 bill?"
},
{
"role": "assistant",
"content": "```python\nbill = 150.67\ntip_rate = 15 / 100 # 0.15\ntip = bill * tip_rate # 22.600499999999997\nprint(f\"{tip:.2f}\")\n```\nIt outputs: 22.60\n\nLeave $22.60."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "22.60", "printed": "22.60", "notation": null} |
nlprog_det-setting-0045500 | At a 8% tax rate, what is the tax on $506.43?
The tax is $40.51. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 29 | {"gold": "40.51", "printed": "40.51", "notation": null} |
nlprog_det-setting-0045501 | A 4 × 5 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?
It takes 5 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0045502 | One can of paint covers 250 square feet. How many cans are needed for 311 square feet of wall?
As a program:
```python
import math
area = 311
coverage = 250
cans = math.ceil(area / coverage)
print(cans)
```
Result — 2
Buy 2 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0045503 | <|start|><|user|>
A pack of 24 markers sells for $216. What does each cost?<|eot|>
<|assistant|>
total = 216
count = 24
per_item = total // count # 9
print(per_item)
The script prints: 9
The unit price is $9.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A pack of 24 markers sells for $216. What does each cost?"
},
{
"role": "assistant",
"content": " total = 216\n count = 24\n per_item = total // count # 9\n print(per_item)\nThe script prints: 9\n\nThe unit price is $9."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 73 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0045504 | <|start|><|system|>
Give the answer first.<|eot|>
<|user|>
If a 6-year limitations period starts on November 4, 2016, when does it end?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2016, 11, 4) # datetime.date(2016, 11, 4)
years = 6
expires = accrued.replace(year=accrued.year + years) # dat... | chat | [
{
"role": "system",
"content": "Give the answer first."
},
{
"role": "user",
"content": "If a 6-year limitations period starts on November 4, 2016, when does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrued = date(2016, 11, 4) # datetime.d... | nlprog_det | setting | original | null | deterministic | [] | [] | 152 | {"gold": "2022-11-04", "printed": "2022-11-04", "notation": null} |
nlprog_det-setting-0045505 | <|start|><|user|>
After a 30% fee is taken from a $30,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|>
<|assistant|>
```python
award = 30000
fee = award * 30 / 100 # 9000.0
remaining = award - fee # 21000.0
per_client = remaining / 3 # 7000.0
print(f"{per_client:.2f}")
`... | chat | [
{
"role": "user",
"content": "After a 30% fee is taken from a $30,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?"
},
{
"role": "assistant",
"content": "```python\naward = 30000\nfee = award * 30 / 100 # 9000.0\nremaining = award - fee # 21000.0\nper_cli... | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "7000.00", "printed": "7000.00", "notation": null} |
nlprog_det-setting-0045506 | Counting the first and last day, how many days are there from August 19, 2022 through September 8, 2022?
That is 21 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "21", "printed": "21", "notation": null} |
nlprog_det-setting-0045507 | <|start|><|user|>
Eamon was born on October 21, 1986. How old is Eamon on September 7, 2022?<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1986, 10, 21) # datetime.date(1986, 10, 21)
on = date(2022, 9, 7) # datetime.date(2022, 9, 7)
age = on.year - born.year - ((on.month, on.day) < (born.month,... | chat | [
{
"role": "user",
"content": "Eamon was born on October 21, 1986. How old is Eamon on September 7, 2022?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1986, 10, 21) # datetime.date(1986, 10, 21)\non = date(2022, 9, 7) # datetime.date(2022, 9, 7)\nage ... | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "35", "printed": "35", "notation": null} |
nlprog_det-setting-0045508 | Papers were served by mail on November 24, 2027. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date?
The program:
```python
from datetime import date, timedelta
served = date(2027, 11, 24)
response_days = 21
mail_days = 3
due = served + timedelta(days=response_days + mail_days... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "2027-12-18", "printed": "2027-12-18", "notation": null} |
nlprog_det-setting-0045509 | <|start|><|user|>
Quinn lends $20,000 at 8% simple interest per year for 5 years. How much interest is earned?<|eot|>
<|assistant|>
```python
principal = 20000
rate = 8 / 100
years = 5
interest = principal * rate * years
print(f"{interest:.2f}")
```
# printed result: 8000.00
It earns $8,000.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Quinn lends $20,000 at 8% simple interest per year for 5 years. How much interest is earned?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 20000\nrate = 8 / 100\nyears = 5\ninterest = principal * rate * years\nprint(f\"{interest:.2f}\")\n```\n# print... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "8000.00", "printed": "8000.00", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.