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-0077745 | How many whole days and leftover hours are in 208 hours?
```python
hours = 208
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
# console output: 8 days and 16 hours
That is 8 days and 16 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "8 days and 16 hours", "printed": "8 days and 16 hours", "notation": null} |
nlprog_det-setting-0077747 | <|start|><|user|>
Reza and Vera share $148 in the ratio 1:3. How much does Reza get?<|eot|>
<|assistant|>
```python
total = 148
parts_a = 1
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b) # 37
print(share_a)
```
Printed result: 37
Reza's share is $37.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Reza and Vera share $148 in the ratio 1:3. How much does Reza get?"
},
{
"role": "assistant",
"content": "```python\ntotal = 148\nparts_a = 1\nparts_b = 3\nshare_a = total * parts_a // (parts_a + parts_b) # 37\nprint(share_a)\n```\nPrinted result: 37\n\nReza's shar... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "37", "printed": "37", "notation": null} |
nlprog_det-setting-0077748 | Fines run at $25 per day up to a maximum of $1,000. How much after 47 days?
```python
per_day = 25
days = 47
cap = 1000
fine = min(per_day * days, cap) # 1000
print(fine)
```
# run result: 1000
$1,000 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0077749 | Printing costs 10 cents a page. What does it cost to print 65 copies of a 45-page handout?
```python
pages = 45
copies = 65
cost_per_page = 0.1
cost = pages * copies * cost_per_page # 292.5
print(f"{cost:.2f}")
```
Output:
292.50
Printing costs $292.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "292.50", "printed": "292.50", "notation": null} |
nlprog_det-setting-0077750 | A trial runs from April 1, 2021 to April 5, 2021, counting both days. How many calendar days is that?
5 calendar days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0077751 | <|start|><|user|>
Filing fees are $90 per document. What do 4 filings cost?<|eot|>
<|assistant|>
The filings cost $360 in all.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Filing fees are $90 per document. What do 4 filings cost?"
},
{
"role": "assistant",
"content": "The filings cost $360 in all."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "360", "printed": "360", "notation": null} |
nlprog_det-setting-0077752 | Starting with 296 scissors and using 13 per day, how many remain after 17 days?
Programmatically:
```python
stock = 296
per_day = 13
days = 17
left = stock - per_day * days # 75
print(left)
```
(Out: 75)
75 scissors are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "75", "printed": "75", "notation": null} |
nlprog_det-setting-0077753 | <|start|><|system|>
Tool definitions:
{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}
{"name": "python", "description": "Run Python code in a sandbox; the result is whatever ... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}\n{\"name\": \"python\", \"description... | nlprog_det | setting | original | null | deterministic | [] | [] | 317 | {"gold": "13500.00", "printed": "13500.00", "notation": null} |
nlprog_det-setting-0077754 | How much sales tax is charged on a $187.61 purchase at 5%?
Python, step by step:
```python
price = 187.61
tax_rate = 5 / 100 # 0.05
tax = price * tax_rate # 9.380500000000001
print(f"{tax:.2f}")
```
# out: 9.38
$9.38 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "9.38", "printed": "9.38", "notation": null} |
nlprog_det-setting-0077755 | <|start|><|user|>
Fixed costs are $1,200. Each unit sells for $25 and costs $21 to make. How many units must be sold to break even?<|eot|>
<|assistant|>
Break-even is 300 units.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Fixed costs are $1,200. Each unit sells for $25 and costs $21 to make. How many units must be sold to break even?"
},
{
"role": "assistant",
"content": "Break-even is 300 units."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 50 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0077756 | <|start|><|system|>
Tools (call with JSON):
[{"name": "code_runner", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
The landlord deduct... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"code_runner\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required... | nlprog_det | setting | original | null | deterministic | [] | [] | 219 | {"gold": "2425", "printed": "2425", "notation": null} |
nlprog_det-setting-0077757 | Convert 25.8 km to meters.
25,800 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 19 | {"gold": "25800", "printed": "25800", "notation": null} |
nlprog_det-setting-0077758 | Goods bought on November 4, 2021 carry a 36-month warranty. When does it expire?
In Python:
from datetime import date
start = date(2021, 11, 4)
months = 36
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 | [] | [] | 133 | {"gold": "2024-11-04", "printed": "2024-11-04", "notation": null} |
nlprog_det-setting-0077759 | <|start|><|user|>
Sofia lends $5,000 at 8% simple interest per year for 2 years. How much interest is earned?<|eot|>
<|assistant|>
```python
principal = 5000
rate = 8 / 100 # 0.08
years = 2
interest = principal * rate * years # 800.0
print(f"{interest:.2f}")
```
What it prints: 800.00
It earns $800.00.<|eot|>
<|end|... | chat | [
{
"role": "user",
"content": "Sofia lends $5,000 at 8% simple interest per year for 2 years. How much interest is earned?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 5000\nrate = 8 / 100 # 0.08\nyears = 2\ninterest = principal * rate * years # 800.0\nprint(f\"{interest:.2f}\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "800.00", "printed": "800.00", "notation": null} |
nlprog_det-setting-0077760 | How many days are there from October 4, 2019 to December 23, 2019?
Written as code:
```python
from datetime import date
first = date(2019, 10, 4) # datetime.date(2019, 10, 4)
second = date(2019, 12, 23) # datetime.date(2019, 12, 23)
print((second - first).days)
```
Running it prints 80.
There are 80 days between th... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "80", "printed": "80", "notation": null} |
nlprog_det-setting-0077761 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}, {"name": "calc", "description": "Executes Python code and returns stdout.", "parameters": {"t... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}, {\"name\": \"calc\", \"description\": \"Ex... | nlprog_det | setting | original | null | deterministic | [] | [] | 316 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0077762 | <|start|><|user|>
With 30% off, what does a $60 kettle cost?<|eot|>
<|assistant|>
It costs $42.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 30% off, what does a $60 kettle cost?"
},
{
"role": "assistant",
"content": "It costs $42.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "42.00", "printed": "42.00", "notation": null} |
nlprog_det-setting-0077763 | A shift runs from 8:27 AM to 9:17 AM. How long is it in minutes?
The computation:
```python
start = 8 * 60 + 27 # 507
end = 9 * 60 + 17 # 557
print(end - start)
```
Result — 50
50 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0077764 | <|start|><|user|>
The statute was enacted in 2005. How many years had passed by 2027?<|eot|>
<|assistant|>
```python
start_year = 2005
end_year = 2027
print(end_year - start_year)
```
Running it prints 22, as expected.
22 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The statute was enacted in 2005. How many years had passed by 2027?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 2005\nend_year = 2027\nprint(end_year - start_year)\n```\nRunning it prints 22, as expected.\n\n22 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0077765 | A party has 30 days to respond to a motion served on December 16, 2019, with 3 days added because service was by mail. When is the response due?
The response is due on January 18, 2020. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "2020-01-18", "printed": "2020-01-18", "notation": null} |
nlprog_det-setting-0077766 | A customer buys 1 file boxes at $30 each, 2 scissors at $22 each and pays with $100. How much change is due?
Python code:
```python
items = [(1, 30), (2, 22)]
total = sum(q * p for q, p in items) # 74
paid = 100
change = paid - total # 26
print(change)
```
It outputs 26.
$26 comes back. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0077767 | <|start|><|user|>
Shipping costs $10 plus $1.20 per pound. What does a 35-pound parcel cost to ship?<|eot|>
<|assistant|>
```python
base = 10
per_pound = 1.2
weight = 35
cost = base + per_pound * weight # 52.0
print(f"{cost:.2f}")
```
It prints: 52.00
Shipping costs $52.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Shipping costs $10 plus $1.20 per pound. What does a 35-pound parcel cost to ship?"
},
{
"role": "assistant",
"content": "```python\nbase = 10\nper_pound = 1.2\nweight = 35\ncost = base + per_pound * weight # 52.0\nprint(f\"{cost:.2f}\")\n```\nIt prints: 52.00\n\nS... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "52.00", "printed": "52.00", "notation": null} |
nlprog_det-setting-0077768 | <|start|><|user|>
What is the total rent on a 6-month lease at $2,875 a month?<|eot|>
<|assistant|>
```python
monthly_rent = 2875
months = 6
total = monthly_rent * months # 17250
print(total)
```
The program prints 17250.
The rent over the term is $17,250.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is the total rent on a 6-month lease at $2,875 a month?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 2875\nmonths = 6\ntotal = monthly_rent * months # 17250\nprint(total)\n```\nThe program prints 17250.\n\nThe rent over the term is $17,250.... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "17250", "printed": "17250", "notation": null} |
nlprog_det-setting-0077769 | <|start|><|user|>
Convert 82.7 km to meters.<|eot|>
<|assistant|>
km = 82.7
meters = km * 1000 # 82700.0
print(round(meters))
On running, it outputs: 82700
82,700 m.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 82.7 km to meters."
},
{
"role": "assistant",
"content": " km = 82.7\n meters = km * 1000 # 82700.0\n print(round(meters))\nOn running, it outputs: 82700\n\n82,700 m."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 69 | {"gold": "82700", "printed": "82700", "notation": null} |
nlprog_det-setting-0077770 | Counting only Monday through Friday, how many business days are there after January 27, 2023 through February 24, 2023?
The Python version:
```python
from datetime import date, timedelta
start = date(2023, 1, 27)
end = date(2023, 2, 24)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(day... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 154 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0077771 | <|start|><|system|>
Answer in plain English.<|eot|>
<|user|>
The statute was enacted in 2023. How many years had passed by 2048?<|eot|>
<|assistant|>
```python
start_year = 2023
end_year = 2048
print(end_year - start_year)
```
# program output: 25
25 years.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer in plain English."
},
{
"role": "user",
"content": "The statute was enacted in 2023. How many years had passed by 2048?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 2023\nend_year = 2048\nprint(end_year - start_year)\n```\n# pr... | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0077772 | <|start|><|system|>
You are a data assistant.<|eot|>
<|user|>
Copies cost $15 plus $0.25 for each page beyond 20. How much for 118 pages?<|eot|>
<|assistant|>
```python
pages = 118
base = 15
per_page = 0.25
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page # 39.5
print(f"{cost:.2f}")
```
The run give... | chat | [
{
"role": "system",
"content": "You are a data assistant."
},
{
"role": "user",
"content": "Copies cost $15 plus $0.25 for each page beyond 20. How much for 118 pages?"
},
{
"role": "assistant",
"content": "```python\npages = 118\nbase = 15\nper_page = 0.25\nfree_pages = 20\ncost = b... | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "39.50", "printed": "39.50", "notation": null} |
nlprog_det-setting-0077773 | <|start|><|user|>
$1,000 is invested at 2% compounded yearly. What is it worth after 5 years?<|eot|>
<|assistant|>
It is worth $1,104.08.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "$1,000 is invested at 2% compounded yearly. What is it worth after 5 years?"
},
{
"role": "assistant",
"content": "It is worth $1,104.08."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "1104.08", "printed": "1104.08", "notation": null} |
nlprog_det-setting-0077774 | <|start|><|user|>
11 boxes hold 6 scissors each. After 13 are handed out, how many are left?<|eot|>
<|assistant|>
53 scissors are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "11 boxes hold 6 scissors each. After 13 are handed out, how many are left?"
},
{
"role": "assistant",
"content": "53 scissors are left."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "53", "printed": "53", "notation": null} |
nlprog_det-setting-0077775 | <|start|><|system|>
You can call tools. Available tools:
{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}
{"name": "get_weather", "descrip... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\": ... | nlprog_det | setting | original | null | deterministic | [] | [] | 394 | {"gold": "11250.00", "printed": "11250.00", "notation": null} |
nlprog_det-setting-0077776 | <|start|><|user|>
68 of 80 members attended. What percent attended?<|eot|>
<|assistant|>
85.0% attended.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "68 of 80 members attended. What percent attended?"
},
{
"role": "assistant",
"content": "85.0% attended."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 29 | {"gold": "85.0", "printed": "85.0", "notation": null} |
nlprog_det-setting-0077777 | <|start|><|user|>
Monthly rent is $1,800. A tenant moves in with 5 days left in a 30-day month. What is the prorated rent?<|eot|>
<|assistant|>
```python
rent = 1800
days_in_month = 30
days_occupied = 5
prorated = rent * days_occupied / days_in_month
print(f"{prorated:.2f}")
```
It prints 300.00, as expected.
The tena... | chat | [
{
"role": "user",
"content": "Monthly rent is $1,800. A tenant moves in with 5 days left in a 30-day month. What is the prorated rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 1800\ndays_in_month = 30\ndays_occupied = 5\nprorated = rent * days_occupied / days_in_month\nprint(f\"{... | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "300.00", "printed": "300.00", "notation": null} |
nlprog_det-setting-0077778 | <|start|><|user|>
An office budget of $5,000 has expenses of $408, $1,220, $3,678, $3,964. How much of the budget is left?<|eot|>
<|assistant|>
```python
budget = 5000
expenses = [408, 1220, 3678, 3964]
left = budget - sum(expenses) # -4270
print(left)
```
Output: -4270
The remaining budget is -$4,270.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An office budget of $5,000 has expenses of $408, $1,220, $3,678, $3,964. How much of the budget is left?"
},
{
"role": "assistant",
"content": "```python\nbudget = 5000\nexpenses = [408, 1220, 3678, 3964]\nleft = budget - sum(expenses) # -4270\nprint(left)\n```\nOu... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "-4270", "printed": "-4270", "notation": null} |
nlprog_det-setting-0077779 | <|start|><|user|>
How many weekdays (Monday to Friday) fall after February 6, 2020 up to and including March 11, 2020?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2020, 2, 6)
end = date(2020, 3, 11)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=... | chat | [
{
"role": "user",
"content": "How many weekdays (Monday to Friday) fall after February 6, 2020 up to and including March 11, 2020?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2020, 2, 6)\nend = date(2020, 3, 11)\ncount = 0\nfor k in range(... | nlprog_det | setting | original | null | deterministic | [] | [] | 152 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0077780 | 2 friends split a $210 bill plus a 15% tip evenly. How much does each pay?
bill = 210
tip_rate = 15 / 100 # 0.15
people = 2
each = bill * (1 + tip_rate) / people # 120.74999999999999
print(f"{each:.2f}")
This prints 120.75.
Each person pays $120.75. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "120.75", "printed": "120.75", "notation": null} |
nlprog_det-setting-0077781 | <|start|><|user|>
A party has 14 days to respond to a motion served on April 28, 2025, with 3 days added because service was by mail. When is the response due?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
served = date(2025, 4, 28) # datetime.date(2025, 4, 28)
response_days = 14
mail_days = 3
du... | chat | [
{
"role": "user",
"content": "A party has 14 days to respond to a motion served on April 28, 2025, 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(2025, 4, 28) # dateti... | nlprog_det | setting | original | null | deterministic | [] | [] | 179 | {"gold": "2025-05-15", "printed": "2025-05-15", "notation": null} |
nlprog_det-setting-0077782 | What does $2,000 grow to in 2 years at 4% annual compounding?
A Python solution:
```python
principal = 2000
rate = 4 / 100 # 0.04
years = 2
value = principal * (1 + rate) ** years # 2163.2000000000003
print(f"{value:.2f}")
```
Printed result: 2163.20
The balance is $2,163.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "2163.20", "printed": "2163.20", "notation": null} |
nlprog_det-setting-0077783 | Shipping costs $12 plus $1.50 per pound. What does a 21-pound parcel cost to ship?
The computation:
```python
base = 12
per_pound = 1.5
weight = 21
cost = base + per_pound * weight # 43.5
print(f"{cost:.2f}")
```
# printed result: 43.50
The charge is $43.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "43.50", "printed": "43.50", "notation": null} |
nlprog_det-setting-0077785 | <|start|><|user|>
Prorate $1,200 of monthly rent for 11 days of a 31-day month.<|eot|>
<|assistant|>
```python
rent = 1200
days_in_month = 31
days_occupied = 11
prorated = rent * days_occupied / days_in_month # 425.80645161290323
print(f"{prorated:.2f}")
```
Running this gives: 425.81
The tenant owes $425.81.<|eot|>
... | chat | [
{
"role": "user",
"content": "Prorate $1,200 of monthly rent for 11 days of a 31-day month."
},
{
"role": "assistant",
"content": "```python\nrent = 1200\ndays_in_month = 31\ndays_occupied = 11\nprorated = rent * days_occupied / days_in_month # 425.80645161290323\nprint(f\"{prorated:.2f}\")\n``... | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "425.81", "printed": "425.81", "notation": null} |
nlprog_det-setting-0077786 | How many whole days and leftover hours are in 391 hours?
The computation:
```python
hours = 391
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
That prints: 16 days and 7 hours
391 hours is 16 days and 7 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "16 days and 7 hours", "printed": "16 days and 7 hours", "notation": null} |
nlprog_det-setting-0077787 | A 3% increase is applied to $900 monthly rent. What is the new amount?
A short script:
```python
rent = 900
increase = 3 / 100 # 0.03
new_rent = rent * (1 + increase) # 927.0
print(f"{new_rent:.2f}")
```
It prints: 927.00
It rises to $927.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "927.00", "printed": "927.00", "notation": null} |
nlprog_det-setting-0077788 | Starting from $12,000, the team spends $3,255, $3,210, $2,265. What remains?
One way, in code:
```python
budget = 12000
expenses = [3255, 3210, 2265]
left = budget - sum(expenses) # 3270
print(left)
```
Console:
3270
$3,270 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "3270", "printed": "3270", "notation": null} |
nlprog_det-setting-0077789 | <|start|><|user|>
One can of paint covers 300 square feet. How many cans are needed for 1053 square feet of wall?<|eot|>
<|assistant|>
4 cans are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "One can of paint covers 300 square feet. How many cans are needed for 1053 square feet of wall?"
},
{
"role": "assistant",
"content": "4 cans are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0077790 | <|start|><|user|>
1 books come back 28 days late, at $0.20 a day each. What is the fine?<|eot|>
<|assistant|>
The fine is $5.60.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "1 books come back 28 days late, at $0.20 a day each. What is the fine?"
},
{
"role": "assistant",
"content": "The fine is $5.60."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "5.60", "printed": "5.60", "notation": null} |
nlprog_det-setting-0077791 | What commission does Fiona make on $103,189 in sales at 8%?
Written as code:
```python
sales = 103189
rate = 8 / 100 # 0.08
commission = sales * rate # 8255.12
print(f"{commission:.2f}")
```
(Console output: 8255.12)
The commission is $8,255.12. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "8255.12", "printed": "8255.12", "notation": null} |
nlprog_det-setting-0077792 | <|start|><|system|>
Avoid unnecessary detail.<|eot|>
<|user|>
A garage charges $2 an hour, never more than $24 a day. How much for 8 hours?<|eot|>
<|assistant|>
```python
rate = 2
hours = 8
daily_max = 24
cost = min(rate * hours, daily_max) # 16
print(cost)
```
Printed = 16
Parking costs $16.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Avoid unnecessary detail."
},
{
"role": "user",
"content": "A garage charges $2 an hour, never more than $24 a day. How much for 8 hours?"
},
{
"role": "assistant",
"content": "```python\nrate = 2\nhours = 8\ndaily_max = 24\ncost = min(rate * hours, da... | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0077793 | What is -5 degrees Celsius in Fahrenheit?
Python makes this quick:
```python
celsius = -5
fahrenheit = celsius * 9 / 5 + 32 # 23.0
print(round(fahrenheit))
```
Output:
23
It equals 23 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0077794 | A recipe for 2 people uses 200 grams of lentils. How many grams are needed for 8 people?
A short script:
```python
grams = 200
serves = 2
needed_for = 8
scaled = grams * needed_for // serves # 800
print(scaled)
```
(Printed result: 800)
Use 800 g of lentils. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "800", "printed": "800", "notation": null} |
nlprog_det-setting-0077795 | <|start|><|user|>
After a 30% fee is taken from a $96,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|>
<|assistant|>
```python
award = 96000
fee = award * 30 / 100
remaining = award - fee
per_client = remaining / 2
print(f"{per_client:.2f}")
```
Out = 33600.00
Each client ... | chat | [
{
"role": "user",
"content": "After a 30% fee is taken from a $96,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?"
},
{
"role": "assistant",
"content": "```python\naward = 96000\nfee = award * 30 / 100\nremaining = award - fee\nper_client = remaining / 2\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "33600.00", "printed": "33600.00", "notation": null} |
nlprog_det-setting-0077796 | Someone born January 16, 1970 turns how old by May 11, 2027? Give the age in whole years.
Script:
```python
from datetime import date
born = date(1970, 1, 16) # datetime.date(1970, 1, 16)
on = date(2027, 5, 11) # datetime.date(2027, 5, 11)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 157 | {"gold": "57", "printed": "57", "notation": null} |
nlprog_det-setting-0077798 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "calculator", "description": "Runs a short Python snippe... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"c... | nlprog_det | setting | original | null | deterministic | [] | [] | 283 | {"gold": "960.84", "printed": "960.84", "notation": null} |
nlprog_det-setting-0077799 | A client paid a $2,500 retainer. The firm has billed 6 hours at $150 per hour. How much of the retainer is left?
Python makes this quick:
```python
retainer = 2500
hours = 6
rate = 150
left = retainer - hours * rate # 1600
print(left)
```
Output of the run — 1600
$1,600 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "1600", "printed": "1600", "notation": null} |
nlprog_det-setting-0077800 | Notice was given on November 17, 2022. The notice period is 60 days. When does it run out?
Computation in Python:
```python
from datetime import date, timedelta
start = date(2022, 11, 17) # datetime.date(2022, 11, 17)
end = start + timedelta(days=60) # datetime.date(2023, 1, 16)
print(end.isoformat())
```
This print... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "2023-01-16", "printed": "2023-01-16", "notation": null} |
nlprog_det-setting-0077801 | From a $2,500 retainer, 4 hours at $250/hour have been drawn. What remains?
Python does the arithmetic:
```python
retainer = 2500
hours = 4
rate = 250
left = retainer - hours * rate # 1500
print(left)
```
Program output: 1500
The remaining balance is $1,500. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "1500", "printed": "1500", "notation": null} |
nlprog_det-setting-0077802 | What is the total rent on a 36-month lease at $1,200 a month?
Written as code:
```python
monthly_rent = 1200
months = 36
total = monthly_rent * months # 43200
print(total)
```
# result: 43200
The rent over the term is $43,200. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "43200", "printed": "43200", "notation": null} |
nlprog_det-setting-0077803 | How many meters are in 57.4 kilometers?
A few lines of Python do it:
```python
km = 57.4
meters = km * 1000 # 57400.0
print(round(meters))
```
Printed = 57400
57,400 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "57400", "printed": "57400", "notation": null} |
nlprog_det-setting-0077804 | 33 files go into boxes of 40. How many boxes does that take?
1 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 26 | {"gold": "1", "printed": "1", "notation": null} |
nlprog_det-setting-0077805 | <|start|><|user|>
Rent of $1,800 goes up 5%. What is the new rent?<|eot|>
<|assistant|>
```python
rent = 1800
increase = 5 / 100 # 0.05
new_rent = rent * (1 + increase) # 1890.0
print(f"{new_rent:.2f}")
```
Program output — 1890.00
It rises to $1,890.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Rent of $1,800 goes up 5%. What is the new rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 1800\nincrease = 5 / 100 # 0.05\nnew_rent = rent * (1 + increase) # 1890.0\nprint(f\"{new_rent:.2f}\")\n```\nProgram output — 1890.00\n\nIt rises to $1,890.00... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "1890.00", "printed": "1890.00", "notation": null} |
nlprog_det-setting-0077806 | <|start|><|user|>
Shipping costs $12 plus $1.50 per pound. What does a 12-pound parcel cost to ship?<|eot|>
<|assistant|>
```python
base = 12
per_pound = 1.5
weight = 12
cost = base + per_pound * weight # 30.0
print(f"{cost:.2f}")
```
(Printed result: 30.00)
The charge is $30.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Shipping costs $12 plus $1.50 per pound. What does a 12-pound parcel cost to ship?"
},
{
"role": "assistant",
"content": "```python\nbase = 12\nper_pound = 1.5\nweight = 12\ncost = base + per_pound * weight # 30.0\nprint(f\"{cost:.2f}\")\n```\n(Printed result: 30.0... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "30.00", "printed": "30.00", "notation": null} |
nlprog_det-setting-0077807 | 9 staplers cost $3 apiece. With 6% tax added, what is the total?
Python:
```python
quantity = 9
unit_price = 3
subtotal = quantity * unit_price # 27
total = subtotal * (1 + 6 / 100) # 28.62
print(f"{total:.2f}")
```
Interpreter output — 28.62
The total with tax is $28.62. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "28.62", "printed": "28.62", "notation": null} |
nlprog_det-setting-0077808 | Pay is $22.40/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 44 hours?
A few lines of Python do it:
```python
rate = 22.4
hours = 44
regular = 40 * rate # 896.0
overtime = (hours - 40) * rate * 1.5 # 134.39999999999998
pay = regular + overtime # 1030.4
print(f"{pay:.2f}")
```
Printed = 103... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 158 | {"gold": "1030.40", "printed": "1030.40", "notation": null} |
nlprog_det-setting-0077809 | Under a 35% contingency agreement, what fee is owed on a $12,000 award?
A Python solution:
```python
recovery = 12000
rate = 35 / 100 # 0.35
fee = recovery * rate # 4200.0
print(f"{fee:.2f}")
```
# out: 4200.00
The lawyer's fee comes to $4,200.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "4200.00", "printed": "4200.00", "notation": null} |
nlprog_det-setting-0077810 | A $2,400 loan carries 8% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?
We can compute it in Python.
```python
principal = 2400
annual_rate = 8 / 100 # 0.08
months = 36
interest = principal * annual_rate * months / 12 # 576.0
payment = (princ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 156 | {"gold": "82.67", "printed": "82.67", "notation": null} |
nlprog_det-setting-0077811 | <|start|><|system|>
Tools you may use:
[{"name": "calculator", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "translate", "desc... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"calculator\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"... | nlprog_det | setting | original | null | deterministic | [] | [] | 351 | {"gold": "15500", "printed": "15500", "notation": null} |
nlprog_det-setting-0077812 | <|start|><|system|>
Tools you may use:
{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}
{"name": "interpreter", "description": "Python sandbox for calc... | chat | [
{
"role": "system",
"content": "Tools you may use:\n{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"target\"]}}\n{\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 326 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0077813 | The bridge was finished in 1995. How many years had passed by 2025?
Programmatically:
start_year = 1995
end_year = 2025
print(end_year - start_year)
(Run result: 30)
30 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 62 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0077814 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "compute", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
What is -20 degrees Celsius in ... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"compute\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"cod... | nlprog_det | setting | original | null | deterministic | [] | [] | 213 | {"gold": "-4", "printed": "-4", "notation": null} |
nlprog_det-setting-0077816 | An unpaid balance of $12,000 accrues 1% simple interest per month. How much interest accrues in 3 months?
Python version:
```python
balance = 12000
monthly_rate = 1 / 100 # 0.01
months = 3
interest = balance * monthly_rate * months # 360.0
print(f"{interest:.2f}")
```
The program outputs: 360.00
$360.00 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "360.00", "printed": "360.00", "notation": null} |
nlprog_det-setting-0077818 | <|start|><|system|>
Write short, precise answers.<|eot|>
<|user|>
Counting only Monday through Friday, how many business days are there after July 2, 2025 through August 5, 2025?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2025, 7, 2)
end = date(2025, 8, 5)
count = 0
for k in range(... | chat | [
{
"role": "system",
"content": "Write short, precise answers."
},
{
"role": "user",
"content": "Counting only Monday through Friday, how many business days are there after July 2, 2025 through August 5, 2025?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date... | nlprog_det | setting | original | null | deterministic | [] | [] | 168 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0077819 | <|start|><|user|>
One can of paint covers 300 square feet. How many cans are needed for 420 square feet of wall?<|eot|>
<|assistant|>
Buy 2 cans.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "One can of paint covers 300 square feet. How many cans are needed for 420 square feet of wall?"
},
{
"role": "assistant",
"content": "Buy 2 cans."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0077820 | <|start|><|user|>
How long, in days, is it from March 6, 2019 until April 27, 2019?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2019, 3, 6) # datetime.date(2019, 3, 6)
second = date(2019, 4, 27) # datetime.date(2019, 4, 27)
print((second - first).days)
```
Program output — 52
It is 52 days.... | chat | [
{
"role": "user",
"content": "How long, in days, is it from March 6, 2019 until April 27, 2019?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2019, 3, 6) # datetime.date(2019, 3, 6)\nsecond = date(2019, 4, 27) # datetime.date(2019, 4, 27)\nprint((sec... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "52", "printed": "52", "notation": null} |
nlprog_det-setting-0077821 | Prorate $1,500 of monthly rent for 11 days of a 30-day month.
Coded up:
```python
rent = 1500
days_in_month = 30
days_occupied = 11
prorated = rent * days_occupied / days_in_month # 550.0
print(f"{prorated:.2f}")
```
It outputs 550.00.
The tenant owes $550.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "550.00", "printed": "550.00", "notation": null} |
nlprog_det-setting-0077822 | <|start|><|user|>
Water costs $15 a month plus $4.75 for each 1,000 gallons over 0,000. What is owed for 11,000 gallons?<|eot|>
<|assistant|>
```python
base = 15
rate = 4.75
used = 11
free = 0
bill = base + rate * max(0, used - free) # 67.25
print(f"{bill:.2f}")
```
Executed, it shows 67.25.
$67.25 is owed.<|eot|>
<|... | chat | [
{
"role": "user",
"content": "Water costs $15 a month plus $4.75 for each 1,000 gallons over 0,000. What is owed for 11,000 gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 15\nrate = 4.75\nused = 11\nfree = 0\nbill = base + rate * max(0, used - free) # 67.25\nprint(f\"{bill:.2... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "67.25", "printed": "67.25", "notation": null} |
nlprog_det-setting-0077823 | How much sales tax is charged on a $685.04 purchase at 8%?
The program:
```python
price = 685.04
tax_rate = 8 / 100 # 0.08
tax = price * tax_rate # 54.8032
print(f"{tax:.2f}")
```
# printed: 54.80
$54.80 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "54.80", "printed": "54.80", "notation": null} |
nlprog_det-setting-0077824 | <|start|><|user|>
Each storage box holds 12 files. How many boxes are needed for 514 files?<|eot|>
<|assistant|>
```python
import math
files = 514
per_box = 12
boxes = math.ceil(files / per_box) # 43
print(boxes)
```
(Execution result: 43)
43 boxes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each storage box holds 12 files. How many boxes are needed for 514 files?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 514\nper_box = 12\nboxes = math.ceil(files / per_box) # 43\nprint(boxes)\n```\n(Execution result: 43)\n\n43 boxes are ne... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "43", "printed": "43", "notation": null} |
nlprog_det-setting-0077825 | <|start|><|user|>
With 25% off, what does a $45 printer cost?<|eot|>
<|assistant|>
price = 45
discount = 25 / 100 # 0.25
sale_price = price * (1 - discount) # 33.75
print(f"{sale_price:.2f}")
Shell output — 33.75
The sale price is $33.75.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 25% off, what does a $45 printer cost?"
},
{
"role": "assistant",
"content": " price = 45\n discount = 25 / 100 # 0.25\n sale_price = price * (1 - discount) # 33.75\n print(f\"{sale_price:.2f}\")\nShell output — 33.75\n\nThe sale price is $33.75."... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "33.75", "printed": "33.75", "notation": null} |
nlprog_det-setting-0077826 | Each storage box holds 40 files. How many boxes are needed for 204 files?
We can compute it in Python.
import math
files = 204
per_box = 40
boxes = math.ceil(files / per_box) # 6
print(boxes)
Run result = 6
It takes 6 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0077827 | 3 friends split a $84 bill plus a 15% tip evenly. How much does each pay?
Translated to Python:
```python
bill = 84
tip_rate = 15 / 100 # 0.15
people = 3
each = bill * (1 + tip_rate) / people # 32.199999999999996
print(f"{each:.2f}")
```
This prints: 32.20
The share is $32.20 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "32.20", "printed": "32.20", "notation": null} |
nlprog_det-setting-0077828 | <|start|><|system|>
You are a patient tutor.<|eot|>
<|user|>
What is a 20% tip on a $116.07 bill?<|eot|>
<|assistant|>
```python
bill = 116.07
tip_rate = 20 / 100
tip = bill * tip_rate
print(f"{tip:.2f}")
```
Python prints: 23.21
Leave $23.21.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a patient tutor."
},
{
"role": "user",
"content": "What is a 20% tip on a $116.07 bill?"
},
{
"role": "assistant",
"content": "```python\nbill = 116.07\ntip_rate = 20 / 100\ntip = bill * tip_rate\nprint(f\"{tip:.2f}\")\n```\nPython prints: 23.2... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "23.21", "printed": "23.21", "notation": null} |
nlprog_det-setting-0077829 | An attorney bills 8 hours at $180 per hour. What is the bill?
The Python version:
hours = 8
rate = 180
bill = hours * rate # 1440
print(f"{bill:.2f}")
It prints: 1440.00
The bill is $1,440.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "1440.00", "printed": "1440.00", "notation": null} |
nlprog_det-setting-0077830 | <|start|><|system|>
You are a puzzle helper.<|eot|>
<|user|>
A $1,200 loan carries 5% simple annual interest over 12 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 = 12
interest = principal *... | chat | [
{
"role": "system",
"content": "You are a puzzle helper."
},
{
"role": "user",
"content": "A $1,200 loan carries 5% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?"
},
{
"role": "assistant",
"content": "```pyth... | nlprog_det | setting | original | null | deterministic | [] | [] | 157 | {"gold": "105.00", "printed": "105.00", "notation": null} |
nlprog_det-setting-0077831 | <|start|><|system|>
Tools you may use:
[{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_unit", "to_unit"]}}, {"name": "p... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\": \"string\"}}, \... | nlprog_det | setting | original | null | deterministic | [] | [] | 318 | {"gold": "1800", "printed": "1800", "notation": null} |
nlprog_det-setting-0077832 | Starting from $12,000, the team spends $3,940, $1,491. What remains?
Python code:
```python
budget = 12000
expenses = [3940, 1491]
left = budget - sum(expenses) # 6569
print(left)
```
Run result = 6569
The remaining budget is $6,569. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "6569", "printed": "6569", "notation": null} |
nlprog_det-setting-0077833 | How many of 119 votes make 60% (round up)?
The Python version:
import math
voters = 119
needed = math.ceil(voters * 60 / 100) # 72
print(needed)
Interpreter output: 72
72 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "72", "printed": "72", "notation": null} |
nlprog_det-setting-0077834 | <|start|><|user|>
With 15 rows of 12 chairs and 32 empty chairs, how many chairs are taken?<|eot|>
<|assistant|>
```python
rows = 15
per_row = 12
empty = 32
seated = rows * per_row - empty # 148
print(seated)
```
Python prints 148.
148 people are seated.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 15 rows of 12 chairs and 32 empty chairs, how many chairs are taken?"
},
{
"role": "assistant",
"content": "```python\nrows = 15\nper_row = 12\nempty = 32\nseated = rows * per_row - empty # 148\nprint(seated)\n```\nPython prints 148.\n\n148 people are seated."... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "148", "printed": "148", "notation": null} |
nlprog_det-setting-0077835 | <|start|><|user|>
A backpack costs $60. It is 10% off. What is the sale price?<|eot|>
<|assistant|>
price = 60
discount = 10 / 100 # 0.1
sale_price = price * (1 - discount) # 54.0
print(f"{sale_price:.2f}")
(Printed: 54.00)
It costs $54.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A backpack costs $60. It is 10% off. What is the sale price?"
},
{
"role": "assistant",
"content": " price = 60\n discount = 10 / 100 # 0.1\n sale_price = price * (1 - discount) # 54.0\n print(f\"{sale_price:.2f}\")\n(Printed: 54.00)\n\nIt costs $54.00... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "54.00", "printed": "54.00", "notation": null} |
nlprog_det-setting-0077836 | A $2,000 security deposit has deductions of $45 and $85. How much is refunded?
Computing it:
```python
deposit = 2000
deductions = [45, 85]
refund = deposit - sum(deductions) # 1870
print(refund)
```
On running, it outputs 1870.
The refund is $1,870. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "1870", "printed": "1870", "notation": null} |
nlprog_det-setting-0077837 | A settlement of $2,640 is split equally among 8 parties. How much does each party receive?
The computation:
```python
settlement = 2640
parties = 8
share = settlement // parties # 330
print(share)
```
The program prints 330, as expected.
Each share is $330. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "330", "printed": "330", "notation": null} |
nlprog_det-setting-0077838 | <|start|><|user|>
Cyrus was born on December 14, 1954. How old is Cyrus on July 17, 2021?<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1954, 12, 14) # datetime.date(1954, 12, 14)
on = date(2021, 7, 17) # datetime.date(2021, 7, 17)
age = on.year - born.year - ((on.month, on.day) < (born.month, ... | chat | [
{
"role": "user",
"content": "Cyrus was born on December 14, 1954. How old is Cyrus on July 17, 2021?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1954, 12, 14) # datetime.date(1954, 12, 14)\non = date(2021, 7, 17) # datetime.date(2021, 7, 17)\nage =... | nlprog_det | setting | original | null | deterministic | [] | [] | 155 | {"gold": "66", "printed": "66", "notation": null} |
nlprog_det-setting-0077839 | What day of the week is June 9, 2005?
Computing it:
```python
from datetime import date
hearing = date(2005, 6, 9) # datetime.date(2005, 6, 9)
print(hearing.strftime("%A"))
```
Running it prints Thursday, as expected.
June 9, 2005 is a Thursday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "Thursday", "printed": "Thursday", "notation": null} |
nlprog_det-setting-0077840 | A $2,000 security deposit has deductions of $120. How much is refunded?
Python code:
deposit = 2000
deductions = [120]
refund = deposit - sum(deductions) # 1880
print(refund)
Execution prints: 1880
$1,880 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "1880", "printed": "1880", "notation": null} |
nlprog_det-setting-0077841 | <|start|><|user|>
Equipment costs $30,000, has a salvage value of $6,000, and a useful life of 5 years. What is the straight-line depreciation per year?<|eot|>
<|assistant|>
Depreciation is $4,800.00 per year.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Equipment costs $30,000, has a salvage value of $6,000, and a useful life of 5 years. What is the straight-line depreciation per year?"
},
{
"role": "assistant",
"content": "Depreciation is $4,800.00 per year."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 59 | {"gold": "4800.00", "printed": "4800.00", "notation": null} |
nlprog_det-setting-0077842 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"name": "interpreter", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"interpreter\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python... | nlprog_det | setting | original | null | deterministic | [] | [] | 227 | {"gold": "4.8", "printed": "4.8", "notation": null} |
nlprog_det-setting-0077843 | <|start|><|user|>
Lena earns a 3% commission on $54,251 of sales. What is the commission?<|eot|>
<|assistant|>
```python
sales = 54251
rate = 3 / 100 # 0.03
commission = sales * rate # 1627.53
print(f"{commission:.2f}")
```
This prints 1627.53, as expected.
The commission is $1,627.53.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Lena earns a 3% commission on $54,251 of sales. What is the commission?"
},
{
"role": "assistant",
"content": "```python\nsales = 54251\nrate = 3 / 100 # 0.03\ncommission = sales * rate # 1627.53\nprint(f\"{commission:.2f}\")\n```\nThis prints 1627.53, as expected... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "1627.53", "printed": "1627.53", "notation": null} |
nlprog_det-setting-0077844 | A appointment starts at 2:40 PM and lasts 75 minutes. When does it end?
One way, in code:
```python
start = 14 * 60 + 40
end = start + 75
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Output = 3:55 PM
It ends at 3:55 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "3:55 PM", "printed": "3:55 PM", "notation": null} |
nlprog_det-setting-0077845 | 3 claimants share a $960 settlement equally. What is each share?
Each party receives $320. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "320", "printed": "320", "notation": null} |
nlprog_det-setting-0077846 | How many days are there from December 21, 2024 to February 11, 2025?
```python
from datetime import date
first = date(2024, 12, 21) # datetime.date(2024, 12, 21)
second = date(2025, 2, 11) # datetime.date(2025, 2, 11)
print((second - first).days)
```
Executing it gives: 52
It is 52 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "52", "printed": "52", "notation": null} |
nlprog_det-setting-0077847 | <|start|><|user|>
Someone born August 12, 1988 turns how old by January 10, 2022? Give the age in whole years.<|eot|>
<|assistant|>
Farah is 33.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Someone born August 12, 1988 turns how old by January 10, 2022? Give the age in whole years."
},
{
"role": "assistant",
"content": "Farah is 33."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "33", "printed": "33", "notation": null} |
nlprog_det-setting-0077848 | <|start|><|user|>
A 25 lb package ships at $12 base plus $2.50/lb. What is the charge?<|eot|>
<|assistant|>
```python
base = 12
per_pound = 2.5
weight = 25
cost = base + per_pound * weight # 74.5
print(f"{cost:.2f}")
```
Execution prints 74.50, as expected.
The charge is $74.50.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 25 lb package ships at $12 base plus $2.50/lb. What is the charge?"
},
{
"role": "assistant",
"content": "```python\nbase = 12\nper_pound = 2.5\nweight = 25\ncost = base + per_pound * weight # 74.5\nprint(f\"{cost:.2f}\")\n```\nExecution prints 74.50, as expected... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "74.50", "printed": "74.50", "notation": null} |
nlprog_det-setting-0077849 | Walls total 946 sq ft and each can covers 250 sq ft. How many cans should be bought?
```python
import math
area = 946
coverage = 250
cans = math.ceil(area / coverage) # 4
print(cans)
```
(Run result: 4)
Buy 4 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "4", "printed": "4", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.