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-0056787 | <|start|><|user|>
At 2% a month (simple), what interest builds on $12,000 over 4 months?<|eot|>
<|assistant|>
```python
balance = 12000
monthly_rate = 2 / 100 # 0.02
months = 4
interest = balance * monthly_rate * months # 960.0
print(f"{interest:.2f}")
```
Console output: 960.00
The interest is $960.00.<|eot|>
<|end... | chat | [
{
"role": "user",
"content": "At 2% a month (simple), what interest builds on $12,000 over 4 months?"
},
{
"role": "assistant",
"content": "```python\nbalance = 12000\nmonthly_rate = 2 / 100 # 0.02\nmonths = 4\ninterest = balance * monthly_rate * months # 960.0\nprint(f\"{interest:.2f}\")\n```... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "960.00", "printed": "960.00", "notation": null} |
nlprog_det-setting-0056788 | Convert 40 °C to Fahrenheit.
A short script:
```python
celsius = 40
fahrenheit = celsius * 9 / 5 + 32
print(round(fahrenheit))
```
Printed result: 104
That is 104 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "104", "printed": "104", "notation": null} |
nlprog_det-setting-0056789 | Counting only Monday through Friday, how many business days are there after August 22, 2019 through September 28, 2019?
```python
from datetime import date, timedelta
start = date(2019, 8, 22)
end = date(2019, 9, 28)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekday() < 5:... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0056790 | Water costs $15 a month plus $4.75 for each 1,000 gallons over 2,000. What is owed for 22,000 gallons?
Code:
```python
base = 15
rate = 4.75
used = 22
free = 2
bill = base + rate * max(0, used - free) # 110.0
print(f"{bill:.2f}")
```
Printed result — 110.00
$110.00 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "110.00", "printed": "110.00", "notation": null} |
nlprog_det-setting-0056791 | <|start|><|user|>
A settlement of $15,000 is split equally among 5 parties. How much does each party receive?<|eot|>
<|assistant|>
```python
settlement = 15000
parties = 5
share = settlement // parties # 3000
print(share)
```
The printout reads: 3000
Each share is $3,000.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A settlement of $15,000 is split equally among 5 parties. How much does each party receive?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 15000\nparties = 5\nshare = settlement // parties # 3000\nprint(share)\n```\nThe printout reads: 3000\n\nEach ... | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "3000", "printed": "3000", "notation": null} |
nlprog_det-setting-0056792 | A party has 14 days to respond to a motion served on December 12, 2023, with 3 days added because service was by mail. When is the response due?
```python
from datetime import date, timedelta
served = date(2023, 12, 12) # datetime.date(2023, 12, 12)
response_days = 14
mail_days = 3
due = served + timedelta(days=respo... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 166 | {"gold": "2023-12-29", "printed": "2023-12-29", "notation": null} |
nlprog_det-setting-0056793 | A water bill is $20 plus $5.10 per thousand gallons beyond the first 3 thousand. What is the bill for 17 thousand gallons?
Script:
```python
base = 20
rate = 5.1
used = 17
free = 3
bill = base + rate * max(0, used - free) # 91.39999999999999
print(f"{bill:.2f}")
```
The printout reads 91.40.
The bill is $91.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "91.40", "printed": "91.40", "notation": null} |
nlprog_det-setting-0056794 | Counting only Monday through Friday, how many business days are there after October 20, 2020 through November 7, 2020?
There are 13 business days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0056795 | <|start|><|user|>
A penalty of $25 a day accrues, capped at $1,000. What is owed after 56 days?<|eot|>
<|assistant|>
per_day = 25
days = 56
cap = 1000
fine = min(per_day * days, cap) # 1000
print(fine)
On running, it outputs: 1000
The fine is $1,000.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A penalty of $25 a day accrues, capped at $1,000. What is owed after 56 days?"
},
{
"role": "assistant",
"content": " per_day = 25\n days = 56\n cap = 1000\n fine = min(per_day * days, cap) # 1000\n print(fine)\nOn running, it outputs: 1000\n\nThe fi... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0056796 | After a 40% fee is taken from a $30,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?
award = 30000
fee = award * 40 / 100 # 12000.0
remaining = award - fee # 18000.0
per_client = remaining / 2 # 9000.0
print(f"{per_client:.2f}")
Execution result: 9000.00
E... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "9000.00", "printed": "9000.00", "notation": null} |
nlprog_det-setting-0056797 | Fines run at $50 per day up to a maximum of $5,000. How much after 14 days?
One way, in code:
```python
per_day = 50
days = 14
cap = 5000
fine = min(per_day * days, cap) # 700
print(fine)
```
Running it prints: 700
$700 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "700", "printed": "700", "notation": null} |
nlprog_det-setting-0056798 | <|start|><|user|>
To read 216 pages in 9 days, how many pages per day are needed?<|eot|>
<|assistant|>
```python
pages = 216
days = 9
per_day = pages // days
print(per_day)
```
Printed result — 24
That is 24 pages per day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "To read 216 pages in 9 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": "```python\npages = 216\ndays = 9\nper_day = pages // days\nprint(per_day)\n```\nPrinted result — 24\n\nThat is 24 pages per day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0056799 | Buying 4 mugs at $14 each, 3 hard drives at $20 each, someone hands over $150. What change comes back?
Python makes this quick:
```python
items = [(4, 14), (3, 20)]
total = sum(q * p for q, p in items) # 116
paid = 150
change = paid - total # 34
print(change)
```
Python prints 34.
$34 comes back. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "34", "printed": "34", "notation": null} |
nlprog_det-setting-0056800 | <|start|><|user|>
How many units at $20 each (variable cost $15) cover $6,000 of fixed costs?<|eot|>
<|assistant|>
```python
import math
fixed = 6000
price = 20
variable = 15
units = math.ceil(fixed / (price - variable))
print(units)
```
The interpreter prints: 1200
1200 units are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many units at $20 each (variable cost $15) cover $6,000 of fixed costs?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 6000\nprice = 20\nvariable = 15\nunits = math.ceil(fixed / (price - variable))\nprint(units)\n```\nThe interpreter prin... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "1200", "printed": "1200", "notation": null} |
nlprog_det-setting-0056801 | Jonas has 11 documents to file, and each filing costs $405. How much are the filing fees in total?
Script:
```python
fee = 405
filings = 11
total = fee * filings # 4455
print(total)
```
Console output: 4455
The filings cost $4,455 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "4455", "printed": "4455", "notation": null} |
nlprog_det-setting-0056802 | A $96 dinner bill gets a 18% tip, and 3 people share the cost equally. What is each person's share?
Python, step by step:
```python
bill = 96
tip_rate = 18 / 100 # 0.18
people = 3
each = bill * (1 + tip_rate) / people # 37.76
print(f"{each:.2f}")
```
The printout reads: 37.76
Each person pays $37.76. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "37.76", "printed": "37.76", "notation": null} |
nlprog_det-setting-0056803 | <|start|><|system|>
Answer in plain English.<|eot|>
<|user|>
Monthly rent is $1,500. A tenant moves in with 8 days left in a 31-day month. What is the prorated rent?<|eot|>
<|assistant|>
The prorated rent is $387.10.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer in plain English."
},
{
"role": "user",
"content": "Monthly rent is $1,500. A tenant moves in with 8 days left in a 31-day month. What is the prorated rent?"
},
{
"role": "assistant",
"content": "The prorated rent is $387.10."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 64 | {"gold": "387.10", "printed": "387.10", "notation": null} |
nlprog_det-setting-0056804 | <|start|><|system|>
You are a data assistant.<|eot|>
<|user|>
How many minutes pass from 8:40 AM to 10:09 AM on the same day?<|eot|>
<|assistant|>
```python
start = 8 * 60 + 40 # 520
end = 10 * 60 + 9 # 609
print(end - start)
```
Out:
89
89 minutes pass.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a data assistant."
},
{
"role": "user",
"content": "How many minutes pass from 8:40 AM to 10:09 AM on the same day?"
},
{
"role": "assistant",
"content": "```python\nstart = 8 * 60 + 40 # 520\nend = 10 * 60 + 9 # 609\nprint(end - start)\n```\... | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "89", "printed": "89", "notation": null} |
nlprog_det-setting-0056805 | Pack A has 12 items for $13.59. Pack B has 30 items for $9.02. Which has the lower price per item?
Python version:
```python
pack_a = 13.59 / 12 # 1.1325
pack_b = 9.02 / 30 # 0.30066666666666664
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
# run result: B
B has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0056806 | <|start|><|user|>
Buying 3 toner kits at $18 each, 3 badges at $8 each, 5 binders at $29 each, someone hands over $250. What change comes back?<|eot|>
<|assistant|>
```python
items = [(3, 18), (3, 8), (5, 29)]
total = sum(q * p for q, p in items) # 223
paid = 250
change = paid - total # 27
print(change)
```
Executing... | chat | [
{
"role": "user",
"content": "Buying 3 toner kits at $18 each, 3 badges at $8 each, 5 binders at $29 each, someone hands over $250. What change comes back?"
},
{
"role": "assistant",
"content": "```python\nitems = [(3, 18), (3, 8), (5, 29)]\ntotal = sum(q * p for q, p in items) # 223\npaid = 25... | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "27", "printed": "27", "notation": null} |
nlprog_det-setting-0056807 | <|start|><|system|>
You help people work with structured data.<|eot|>
<|user|>
At 1% a month (simple), what interest builds on $7,500 over 2 months?<|eot|>
<|assistant|>
$150.00 accrues.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help people work with structured data."
},
{
"role": "user",
"content": "At 1% a month (simple), what interest builds on $7,500 over 2 months?"
},
{
"role": "assistant",
"content": "$150.00 accrues."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 50 | {"gold": "150.00", "printed": "150.00", "notation": null} |
nlprog_det-setting-0056808 | <|start|><|user|>
Starting with 1838 keyboards and using 15 per day, how many remain after 12 days?<|eot|>
<|assistant|>
1658 keyboards are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting with 1838 keyboards and using 15 per day, how many remain after 12 days?"
},
{
"role": "assistant",
"content": "1658 keyboards are left."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "1658", "printed": "1658", "notation": null} |
nlprog_det-setting-0056809 | One can of paint covers 400 square feet. How many cans are needed for 878 square feet of wall?
In Python:
```python
import math
area = 878
coverage = 400
cans = math.ceil(area / coverage) # 3
print(cans)
```
(Output: 3)
Buy 3 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0056810 | A water bill is $15 plus $4.20 per thousand gallons beyond the first 3 thousand. What is the bill for 4 thousand gallons?
The bill is $19.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "19.20", "printed": "19.20", "notation": null} |
nlprog_det-setting-0056811 | What simple interest does $8,000 earn at 5% a year over 4 years?
A short script:
```python
principal = 8000
rate = 5 / 100 # 0.05
years = 4
interest = principal * rate * years # 1600.0
print(f"{interest:.2f}")
```
stdout = 1600.00
It earns $1,600.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "1600.00", "printed": "1600.00", "notation": null} |
nlprog_det-setting-0056812 | Each of Ana's walks burns 350 calories. How many calories over 7 walks?
Let's compute it with Python.
```python
per_session = 350
sessions = 7
total = per_session * sessions # 2450
print(total)
```
Output = 2450
2450 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "2450", "printed": "2450", "notation": null} |
nlprog_det-setting-0056813 | At 1.5% a month (simple), what interest builds on $4,000 over 6 months?
Python code:
balance = 4000
monthly_rate = 1.5 / 100 # 0.015
months = 6
interest = balance * monthly_rate * months # 360.0
print(f"{interest:.2f}")
Executing it gives: 360.00
$360.00 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "360.00", "printed": "360.00", "notation": null} |
nlprog_det-setting-0056814 | <|start|><|user|>
Goods bought on May 12, 2028 carry a 12-month warranty. When does it expire?<|eot|>
<|assistant|>
```python
from datetime import date
start = date(2028, 5, 12)
months = 12
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.iso... | chat | [
{
"role": "user",
"content": "Goods bought on May 12, 2028 carry a 12-month warranty. When does it expire?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nstart = date(2028, 5, 12)\nmonths = 12\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(st... | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "2029-05-12", "printed": "2029-05-12", "notation": null} |
nlprog_det-setting-0056815 | <|start|><|user|>
The paralegal logged 12 hours at a rate of $180. How much is billed?<|eot|>
<|assistant|>
```python
hours = 12
rate = 180
bill = hours * rate # 2160
print(f"{bill:.2f}")
```
Shell output — 2160.00
The bill is $2,160.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The paralegal logged 12 hours at a rate of $180. How much is billed?"
},
{
"role": "assistant",
"content": "```python\nhours = 12\nrate = 180\nbill = hours * rate # 2160\nprint(f\"{bill:.2f}\")\n```\nShell output — 2160.00\n\nThe bill is $2,160.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "2160.00", "printed": "2160.00", "notation": null} |
nlprog_det-setting-0056816 | <|start|><|system|>
You are a puzzle helper.<|eot|>
<|user|>
Straight-line depreciation: cost $12,000, salvage $3,000, 4 years. How much per year?<|eot|>
<|assistant|>
$2,250.00 a year.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a puzzle helper."
},
{
"role": "user",
"content": "Straight-line depreciation: cost $12,000, salvage $3,000, 4 years. How much per year?"
},
{
"role": "assistant",
"content": "$2,250.00 a year."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 62 | {"gold": "2250.00", "printed": "2250.00", "notation": null} |
nlprog_det-setting-0056817 | An unpaid balance of $12,000 accrues 1.5% simple interest per month. How much interest accrues in 5 months?
Python:
```python
balance = 12000
monthly_rate = 1.5 / 100 # 0.015
months = 5
interest = balance * monthly_rate * months # 900.0
print(f"{interest:.2f}")
```
Result — 900.00
$900.00 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "900.00", "printed": "900.00", "notation": null} |
nlprog_det-setting-0056818 | A quorum is 2/3 of the 54 members, rounded up. How many members make a quorum?
Python does the arithmetic:
```python
import math
members = 54
quorum = math.ceil(members * 2 / 3) # 36
print(quorum)
```
stdout:
36
36 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0056819 | How many of 50 members form a majority (more than half)?
Python:
members = 50
majority = members // 2 + 1 # 26
print(majority)
On running, it outputs: 26
26 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 60 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0056820 | <|start|><|user|>
How many meters are in 65.5 kilometers?<|eot|>
<|assistant|>
```python
km = 65.5
meters = km * 1000 # 65500.0
print(round(meters))
```
The code prints 65500.
That is 65,500 meters.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many meters are in 65.5 kilometers?"
},
{
"role": "assistant",
"content": "```python\nkm = 65.5\nmeters = km * 1000 # 65500.0\nprint(round(meters))\n```\nThe code prints 65500.\n\nThat is 65,500 meters."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "65500", "printed": "65500", "notation": null} |
nlprog_det-setting-0056821 | <|start|><|system|>
You have access to these functions:
[{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "run_python", "description": "A Py... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start... | nlprog_det | setting | original | null | deterministic | [] | [] | 325 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0056822 | <|start|><|user|>
Convert 10 °C to Fahrenheit.<|eot|>
<|assistant|>
```python
celsius = 10
fahrenheit = celsius * 9 / 5 + 32
print(round(fahrenheit))
```
# stdout: 50
It equals 50 degrees Fahrenheit.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 10 °C to Fahrenheit."
},
{
"role": "assistant",
"content": "```python\ncelsius = 10\nfahrenheit = celsius * 9 / 5 + 32\nprint(round(fahrenheit))\n```\n# stdout: 50\n\nIt equals 50 degrees Fahrenheit."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0056823 | <|start|><|system|>
Answer accurately and briefly.<|eot|>
<|user|>
An unpaid balance of $7,500 accrues 1% simple interest per month. How much interest accrues in 5 months?<|eot|>
<|assistant|>
```python
balance = 7500
monthly_rate = 1 / 100 # 0.01
months = 5
interest = balance * monthly_rate * months # 375.0
print(f"... | chat | [
{
"role": "system",
"content": "Answer accurately and briefly."
},
{
"role": "user",
"content": "An unpaid balance of $7,500 accrues 1% simple interest per month. How much interest accrues in 5 months?"
},
{
"role": "assistant",
"content": "```python\nbalance = 7500\nmonthly_rate = 1... | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "375.00", "printed": "375.00", "notation": null} |
nlprog_det-setting-0056824 | At an exchange rate of 1.31 USD per EUR, how many USD is 1,239 EUR?
We write it as a program:
amount = 1239
rate = 1.31
converted = amount * rate # 1623.0900000000001
print(f"{converted:.2f}")
The interpreter prints 1623.09.
That is 1,623.09 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "1623.09", "printed": "1623.09", "notation": null} |
nlprog_det-setting-0056825 | With 20% off, what does a $180 filing cabinet cost?
Let's compute it with Python.
```python
price = 180
discount = 20 / 100 # 0.2
sale_price = price * (1 - discount) # 144.0
print(f"{sale_price:.2f}")
```
The script prints 144.00, as expected.
It costs $144.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "144.00", "printed": "144.00", "notation": null} |
nlprog_det-setting-0056826 | <|start|><|system|>
Be exact with numbers.<|eot|>
<|user|>
Buying 1 cables at $7 each, 3 lanyards at $22 each, 4 envelopes at $29 each, 1 toner kits at $12 each, someone hands over $250. What change comes back?<|eot|>
<|assistant|>
```python
items = [(1, 7), (3, 22), (4, 29), (1, 12)]
total = sum(q * p for q, p in item... | chat | [
{
"role": "system",
"content": "Be exact with numbers."
},
{
"role": "user",
"content": "Buying 1 cables at $7 each, 3 lanyards at $22 each, 4 envelopes at $29 each, 1 toner kits at $12 each, someone hands over $250. What change comes back?"
},
{
"role": "assistant",
"content": "```p... | nlprog_det | setting | original | null | deterministic | [] | [] | 158 | {"gold": "49", "printed": "49", "notation": null} |
nlprog_det-setting-0056827 | A court charges $15 per request plus $0.25 per page after the first 10 pages. What does a 13-page copy cost?
In Python:
```python
pages = 13
base = 15
per_page = 0.25
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 15.75
print(f"{cost:.2f}")
```
Printed — 15.75
The total is $15.75. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "15.75", "printed": "15.75", "notation": null} |
nlprog_det-setting-0056828 | How many whole days and leftover hours are in 151 hours?
hours = 151
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
When run, it prints: 6 days and 7 hours
That is 6 days and 7 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "6 days and 7 hours", "printed": "6 days and 7 hours", "notation": null} |
nlprog_det-setting-0056829 | To read 66 pages in 3 days, how many pages per day are needed?
Python code:
```python
pages = 66
days = 3
per_day = pages // days # 22
print(per_day)
```
Running this gives: 22
That is 22 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0056830 | <|start|><|user|>
A backpack costs $90. It is 25% off. What is the sale price?<|eot|>
<|assistant|>
price = 90
discount = 25 / 100 # 0.25
sale_price = price * (1 - discount) # 67.5
print(f"{sale_price:.2f}")
(Output: 67.50)
The sale price is $67.50.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A backpack costs $90. It is 25% off. What is the sale price?"
},
{
"role": "assistant",
"content": " price = 90\n discount = 25 / 100 # 0.25\n sale_price = price * (1 - discount) # 67.5\n print(f\"{sale_price:.2f}\")\n(Output: 67.50)\n\nThe sale price ... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "67.50", "printed": "67.50", "notation": null} |
nlprog_det-setting-0056831 | Zoe earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 51-hour week?
Python does the arithmetic:
```python
rate = 16.0
hours = 51
regular = 40 * rate # 640.0
overtime = (hours - 40) * rate * 1.5 # 264.0
pay = regular + overtime # 904.0
print(f"{pay:.2f}")
```
Run output — 904.00
Zoe ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "904.00", "printed": "904.00", "notation": null} |
nlprog_det-setting-0056832 | <|start|><|user|>
A measure needs at least 67% of 31 votes. How many votes is that, rounded up?<|eot|>
<|assistant|>
```python
import math
voters = 31
needed = math.ceil(voters * 67 / 100) # 21
print(needed)
```
Run output: 21
At least 21 votes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A measure needs at least 67% of 31 votes. How many votes is that, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 31\nneeded = math.ceil(voters * 67 / 100) # 21\nprint(needed)\n```\nRun output: 21\n\nAt least 21 votes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "21", "printed": "21", "notation": null} |
nlprog_det-setting-0056833 | <|start|><|user|>
From 2022 to 2054, how many years is that?<|eot|>
<|assistant|>
That is 32 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From 2022 to 2054, how many years is that?"
},
{
"role": "assistant",
"content": "That is 32 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0056834 | Prorate $1,800 of monthly rent for 14 days of a 30-day month.
A short script:
rent = 1800
days_in_month = 30
days_occupied = 14
prorated = rent * days_occupied / days_in_month # 840.0
print(f"{prorated:.2f}")
(Execution result: 840.00)
The tenant owes $840.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "840.00", "printed": "840.00", "notation": null} |
nlprog_det-setting-0056835 | <|start|><|user|>
A client paid a $10,000 retainer. The firm has billed 14 hours at $250 per hour. How much of the retainer is left?<|eot|>
<|assistant|>
$6,500 of the retainer is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A client paid a $10,000 retainer. The firm has billed 14 hours at $250 per hour. How much of the retainer is left?"
},
{
"role": "assistant",
"content": "$6,500 of the retainer is left."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 51 | {"gold": "6500", "printed": "6500", "notation": null} |
nlprog_det-setting-0056836 | <|start|><|system|>
Tool definitions:
{"name": "interpreter", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|>
<|user|>
A 192-page report must be ... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"interpreter\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 198 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0056838 | <|start|><|user|>
A party has 21 days to respond to a motion served on March 28, 2023, with 3 days added because service was by mail. When is the response due?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
served = date(2023, 3, 28) # datetime.date(2023, 3, 28)
response_days = 21
mail_days = 3
du... | chat | [
{
"role": "user",
"content": "A party has 21 days to respond to a motion served on March 28, 2023, 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(2023, 3, 28) # dateti... | nlprog_det | setting | original | null | deterministic | [] | [] | 173 | {"gold": "2023-04-21", "printed": "2023-04-21", "notation": null} |
nlprog_det-setting-0056839 | A $12,000 grant pays $0 up front and the rest in 6 equal installments. How large is each installment?
Python:
```python
grant = 12000
up_front = 0
installments = 6
each = (grant - up_front) / installments # 2000.0
print(f"{each:.2f}")
```
Python prints 2000.00.
$2,000.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "2000.00", "printed": "2000.00", "notation": null} |
nlprog_det-setting-0056840 | 5 claimants share a $15,000 settlement equally. What is each share?
The program:
```python
settlement = 15000
parties = 5
share = settlement // parties # 3000
print(share)
```
The interpreter prints: 3000
Each share is $3,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "3000", "printed": "3000", "notation": null} |
nlprog_det-setting-0056841 | <|start|><|user|>
Convert 25 °C to Fahrenheit.<|eot|>
<|assistant|>
```python
celsius = 25
fahrenheit = celsius * 9 / 5 + 32 # 77.0
print(round(fahrenheit))
```
On running, it outputs 77.
It equals 77 degrees Fahrenheit.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 25 °C to Fahrenheit."
},
{
"role": "assistant",
"content": "```python\ncelsius = 25\nfahrenheit = celsius * 9 / 5 + 32 # 77.0\nprint(round(fahrenheit))\n```\nOn running, it outputs 77.\n\nIt equals 77 degrees Fahrenheit."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "77", "printed": "77", "notation": null} |
nlprog_det-setting-0056842 | <|start|><|user|>
Chen earns a 2% commission on $115,426 of sales. What is the commission?<|eot|>
<|assistant|>
sales = 115426
rate = 2 / 100 # 0.02
commission = sales * rate # 2308.52
print(f"{commission:.2f}")
(Console output: 2308.52)
Chen earns $2,308.52.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Chen earns a 2% commission on $115,426 of sales. What is the commission?"
},
{
"role": "assistant",
"content": " sales = 115426\n rate = 2 / 100 # 0.02\n commission = sales * rate # 2308.52\n print(f\"{commission:.2f}\")\n(Console output: 2308.52)\n\nC... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "2308.52", "printed": "2308.52", "notation": null} |
nlprog_det-setting-0056843 | <|start|><|user|>
The paralegal logged 8 hours at a rate of $225. How much is billed?<|eot|>
<|assistant|>
```python
hours = 8
rate = 225
bill = hours * rate
print(f"{bill:.2f}")
```
It outputs 1800.00.
The bill is $1,800.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The paralegal logged 8 hours at a rate of $225. How much is billed?"
},
{
"role": "assistant",
"content": "```python\nhours = 8\nrate = 225\nbill = hours * rate\nprint(f\"{bill:.2f}\")\n```\nIt outputs 1800.00.\n\nThe bill is $1,800.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "1800.00", "printed": "1800.00", "notation": null} |
nlprog_det-setting-0056844 | <|start|><|user|>
Fines run at $100 per day up to a maximum of $5,000. How much after 42 days?<|eot|>
<|assistant|>
```python
per_day = 100
days = 42
cap = 5000
fine = min(per_day * days, cap) # 4200
print(fine)
```
What it prints — 4200
$4,200 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Fines run at $100 per day up to a maximum of $5,000. How much after 42 days?"
},
{
"role": "assistant",
"content": "```python\nper_day = 100\ndays = 42\ncap = 5000\nfine = min(per_day * days, cap) # 4200\nprint(fine)\n```\nWhat it prints — 4200\n\n$4,200 is owed."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "4200", "printed": "4200", "notation": null} |
nlprog_det-setting-0056845 | A garage charges $4 an hour, never more than $18 a day. How much for 3 hours?
A short script:
```python
rate = 4
hours = 3
daily_max = 18
cost = min(rate * hours, daily_max) # 12
print(cost)
```
(Result: 12)
The charge is $12. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0056848 | <|start|><|system|>
You have access to these functions:
{"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"... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\":... | nlprog_det | setting | original | null | deterministic | [] | [] | 312 | {"gold": "750", "printed": "750", "notation": null} |
nlprog_det-setting-0056849 | A library charges $0.25 per book per day late. What is the fine for 3 books that are 11 days late?
Program:
```python
per_day = 0.25
days_late = 11
books = 3
fine = per_day * days_late * books
print(f"{fine:.2f}")
```
The program outputs: 8.25
$8.25 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "8.25", "printed": "8.25", "notation": null} |
nlprog_det-setting-0056850 | <|start|><|user|>
A trial runs from April 5, 2028 to April 23, 2028, counting both days. How many calendar days is that?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2028, 4, 5) # datetime.date(2028, 4, 5)
last = date(2028, 4, 23) # datetime.date(2028, 4, 23)
days = (last - first).days + 1 #... | chat | [
{
"role": "user",
"content": "A trial runs from April 5, 2028 to April 23, 2028, counting both days. How many calendar days is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2028, 4, 5) # datetime.date(2028, 4, 5)\nlast = date(2028, 4, 23) # dat... | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0056851 | 5 claimants share a $1,200 settlement equally. What is each share?
Written as code:
```python
settlement = 1200
parties = 5
share = settlement // parties # 240
print(share)
```
The program prints 240.
Each share is $240. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "240", "printed": "240", "notation": null} |
nlprog_det-setting-0056852 | <|start|><|user|>
52 copies of a 27-page packet are printed at $0.05 per page. What is the cost?<|eot|>
<|assistant|>
The job costs $70.20.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "52 copies of a 27-page packet are printed at $0.05 per page. What is the cost?"
},
{
"role": "assistant",
"content": "The job costs $70.20."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "70.20", "printed": "70.20", "notation": null} |
nlprog_det-setting-0056853 | Kaito earns $22.40 an hour and time and a half for hours over 40. What is the pay for a 53-hour week?
```python
rate = 22.4
hours = 53
regular = 40 * rate # 896.0
overtime = (hours - 40) * rate * 1.5 # 436.79999999999995
pay = regular + overtime # 1332.8
print(f"{pay:.2f}")
```
Console output — 1332.80
Kaito earns... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "1332.80", "printed": "1332.80", "notation": null} |
nlprog_det-setting-0056854 | How many whole days and leftover hours are in 285 hours?
Translated to Python:
```python
hours = 285
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
What it prints — 11 days and 21 hours
That is 11 days and 21 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "11 days and 21 hours", "printed": "11 days and 21 hours", "notation": null} |
nlprog_det-setting-0056855 | 5 swims at 250 calories each burn how many calories in total?
Program:
```python
per_session = 250
sessions = 5
total = per_session * sessions
print(total)
```
# stdout: 1250
That burns 1250 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "1250", "printed": "1250", "notation": null} |
nlprog_det-setting-0056856 | Vera earns a 8% commission on $93,967 of sales. What is the commission?
sales = 93967
rate = 8 / 100 # 0.08
commission = sales * rate # 7517.360000000001
print(f"{commission:.2f}")
It outputs: 7517.36
Vera earns $7,517.36. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "7517.36", "printed": "7517.36", "notation": null} |
nlprog_det-setting-0056857 | Convert 5,312 GBP to USD at 1 GBP = 1.27 USD.
Program:
```python
amount = 5312
rate = 1.27
converted = amount * rate # 6746.24
print(f"{converted:.2f}")
```
On running, it outputs: 6746.24
That is 6,746.24 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "6746.24", "printed": "6746.24", "notation": null} |
nlprog_det-setting-0056858 | How many days are there from March 9, 2022 to April 10, 2022?
```python
from datetime import date
first = date(2022, 3, 9) # datetime.date(2022, 3, 9)
second = date(2022, 4, 10) # datetime.date(2022, 4, 10)
print((second - first).days)
```
stdout — 32
There are 32 days between the two dates. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0056859 | A 6 × 5 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?
The computation:
```python
import math
length = 6
width = 5
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 8
print(tiles)
```
Printed = 8
It takes 8 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0056860 | A 36-month warranty starts on December 4, 2019. On what date does it end?
from datetime import date
start = date(2019, 12, 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())
# printed: 2022-1... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "2022-12-04", "printed": "2022-12-04", "notation": null} |
nlprog_det-setting-0056862 | At an exchange rate of 0.92 CAD per USD, how many CAD is 6,894 USD?
Here is a short program for it.
```python
amount = 6894
rate = 0.92
converted = amount * rate # 6342.4800000000005
print(f"{converted:.2f}")
```
Printed result — 6342.48
That is 6,342.48 CAD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "6342.48", "printed": "6342.48", "notation": null} |
nlprog_det-setting-0056863 | What commission does Rafael make on $5,113 in sales at 6%?
The computation:
```python
sales = 5113
rate = 6 / 100 # 0.06
commission = sales * rate # 306.78
print(f"{commission:.2f}")
```
The code prints 306.78.
The commission is $306.78. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "306.78", "printed": "306.78", "notation": null} |
nlprog_det-setting-0056864 | A claim accrued on June 3, 2018. The limitations period is 6 years. On what date does it expire?
The program:
```python
from datetime import date
accrued = date(2018, 6, 3) # datetime.date(2018, 6, 3)
years = 6
expires = accrued.replace(year=accrued.year + years) # datetime.date(2024, 6, 3)
print(expires.isoformat()... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "2024-06-03", "printed": "2024-06-03", "notation": null} |
nlprog_det-setting-0056865 | Revenue is $13,000 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)?
```python
revenue = 13000
costs = 12500
profit = revenue - costs
margin = profit / revenue * 100
print(round(margin, 1))
```
Printed = 3.8
The margin is 3.8%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "3.8", "printed": "3.8", "notation": null} |
nlprog_det-setting-0056866 | How many days are there from April 20, 2025 to February 11, 2026?
Python does the arithmetic:
from datetime import date
first = date(2025, 4, 20) # datetime.date(2025, 4, 20)
second = date(2026, 2, 11) # datetime.date(2026, 2, 11)
print((second - first).days)
Executing it gives 297, as expected.
It ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "297", "printed": "297", "notation": null} |
nlprog_det-setting-0056867 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
A claim accrued on September 13, 2024. The limitations period is 5 years. On what date does it expire?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2024, 9, 13) # datetime.date(2024, 9, 13)
years = 5
expires = accrued.replace(y... | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "A claim accrued on September 13, 2024. The limitations period is 5 years. On what date does it expire?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrued =... | nlprog_det | setting | original | null | deterministic | [] | [] | 163 | {"gold": "2029-09-13", "printed": "2029-09-13", "notation": null} |
nlprog_det-setting-0056868 | If a 50-minute class begins at 10:10 AM, what time does it finish?
```python
start = 10 * 60 + 10
end = start + 50
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
On running, it outputs 11:00 AM.
The class finishes at 11:00 AM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "11:00 AM", "printed": "11:00 AM", "notation": null} |
nlprog_det-setting-0056869 | A 180-mile drive at a steady 30 mph takes how many minutes?
Python:
```python
distance = 180
speed = 30
minutes = distance / speed * 60 # 360.0
print(round(minutes))
```
It outputs: 360
The trip takes 360 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "360", "printed": "360", "notation": null} |
nlprog_det-setting-0056870 | <|start|><|user|>
What simple interest does $1,000 earn at 2% a year over 2 years?<|eot|>
<|assistant|>
```python
principal = 1000
rate = 2 / 100 # 0.02
years = 2
interest = principal * rate * years # 40.0
print(f"{interest:.2f}")
```
Run result: 40.00
It earns $40.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What simple interest does $1,000 earn at 2% a year over 2 years?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 1000\nrate = 2 / 100 # 0.02\nyears = 2\ninterest = principal * rate * years # 40.0\nprint(f\"{interest:.2f}\")\n```\nRun result: 40.00\n\... | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "40.00", "printed": "40.00", "notation": null} |
nlprog_det-setting-0056871 | Paula earns $22.40 an hour and time and a half for hours over 40. What is the pay for a 54-hour week?
The computation:
```python
rate = 22.4
hours = 54
regular = 40 * rate # 896.0
overtime = (hours - 40) * rate * 1.5 # 470.4
pay = regular + overtime # 1366.4
print(f"{pay:.2f}")
```
Out = 1366.40
Paula earns $1,366... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "1366.40", "printed": "1366.40", "notation": null} |
nlprog_det-setting-0056872 | Someone works 30 hours at $27.56 per hour. What are the earnings?
Python version:
```python
rate = 27.56
hours = 30
earnings = rate * hours # 826.8
print(f"{earnings:.2f}")
```
(Printed: 826.80)
The pay is $826.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "826.80", "printed": "826.80", "notation": null} |
nlprog_det-setting-0056873 | 60 volunteers are split into 3 equal teams. How many are on each team, and how many are left over?
We can compute it in Python.
```python
total = 60
groups = 3
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
# stdout: 20 each, 0 left over
The answer: 20 each, 0 left ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "20 each, 0 left over", "printed": "20 each, 0 left over", "notation": null} |
nlprog_det-setting-0056874 | Someone works 16 hours at $30.96 per hour. What are the earnings?
```python
rate = 30.96
hours = 16
earnings = rate * hours # 495.36
print(f"{earnings:.2f}")
```
Executing it gives 495.36, as expected.
The pay is $495.36. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "495.36", "printed": "495.36", "notation": null} |
nlprog_det-setting-0056875 | A count moves from 2,500 to 2,000. By what percent did it change (use a minus sign for a drop)?
Python:
```python
old = 2500
new = 2000
change = (new - old) / old * 100
print(round(change))
```
Python prints -20, as expected.
It changed by -20%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "-20", "printed": "-20", "notation": null} |
nlprog_det-setting-0056876 | <|start|><|user|>
A count moves from 2,500 to 3,500. By what percent did it change (use a minus sign for a drop)?<|eot|>
<|assistant|>
```python
old = 2500
new = 3500
change = (new - old) / old * 100 # 40.0
print(round(change))
```
Running it prints 40, as expected.
The change is 40%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A count moves from 2,500 to 3,500. By what percent did it change (use a minus sign for a drop)?"
},
{
"role": "assistant",
"content": "```python\nold = 2500\nnew = 3500\nchange = (new - old) / old * 100 # 40.0\nprint(round(change))\n```\nRunning it prints 40, as ex... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0056877 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
A customer buys 1 ink cartridges at $2 each, 5 envelopes at $27 each, 5 folders at $24 each, 1 staplers at $10 each and pays with $300. How much change is due?<|eot|>
<|assistant|>
```python
items = [(1, 2), (5, 27), (5, 24), (1, 10)]
total = sum(q * p fo... | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "A customer buys 1 ink cartridges at $2 each, 5 envelopes at $27 each, 5 folders at $24 each, 1 staplers at $10 each and pays with $300. How much change is due?"
},
{
"role": "assistant",
"c... | nlprog_det | setting | original | null | deterministic | [] | [] | 161 | {"gold": "33", "printed": "33", "notation": null} |
nlprog_det-setting-0056879 | <|start|><|user|>
A 6-day trip pays $79 a day for meals and $175 a night for lodging (5 nights). What is the total allowance?<|eot|>
<|assistant|>
```python
days = 6
meal_rate = 79
lodging_rate = 175
nights = days - 1 # 5
total = days * meal_rate + nights * lodging_rate # 1349
print(total)
```
Run result = 1349
The ... | chat | [
{
"role": "user",
"content": "A 6-day trip pays $79 a day for meals and $175 a night for lodging (5 nights). What is the total allowance?"
},
{
"role": "assistant",
"content": "```python\ndays = 6\nmeal_rate = 79\nlodging_rate = 175\nnights = days - 1 # 5\ntotal = days * meal_rate + nights * lo... | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "1349", "printed": "1349", "notation": null} |
nlprog_det-setting-0056880 | <|start|><|user|>
Count 10 days forward from June 11, 2018. What date is that?<|eot|>
<|assistant|>
from datetime import date, timedelta
start = date(2018, 6, 11) # datetime.date(2018, 6, 11)
end = start + timedelta(days=10) # datetime.date(2018, 6, 21)
print(end.isoformat())
The run gives 2018-06-21.... | chat | [
{
"role": "user",
"content": "Count 10 days forward from June 11, 2018. What date is that?"
},
{
"role": "assistant",
"content": " from datetime import date, timedelta\n start = date(2018, 6, 11) # datetime.date(2018, 6, 11)\n end = start + timedelta(days=10) # datetime.date(2018, 6, ... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "2018-06-21", "printed": "2018-06-21", "notation": null} |
nlprog_det-setting-0056881 | A lease runs for 36 months at $2,875 per month. How much rent is paid over the whole term?
Python makes this quick:
```python
monthly_rent = 2875
months = 36
total = monthly_rent * months # 103500
print(total)
```
When run, it prints 103500, as expected.
In total, $103,500 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "103500", "printed": "103500", "notation": null} |
nlprog_det-setting-0056882 | A quorum is 3/5 of the 49 members, rounded up. How many members make a quorum?
The computation:
```python
import math
members = 49
quorum = math.ceil(members * 3 / 5)
print(quorum)
```
# printed: 30
That is 30 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0056883 | What is a 15% tip on a $154.05 bill?
Program:
```python
bill = 154.05
tip_rate = 15 / 100 # 0.15
tip = bill * tip_rate # 23.1075
print(f"{tip:.2f}")
```
Executing it gives: 23.11
Leave $23.11. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "23.11", "printed": "23.11", "notation": null} |
nlprog_det-setting-0056884 | A customer buys 5 water bottles at $5 each, 5 badges at $10 each, 5 cables at $28 each, 1 headsets at $6 each and pays with $250. How much change is due?
One way, in code:
```python
items = [(5, 5), (5, 10), (5, 28), (1, 6)]
total = sum(q * p for q, p in items) # 221
paid = 250
change = paid - total # 29
print(chang... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "29", "printed": "29", "notation": null} |
nlprog_det-setting-0056885 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "python_exec", "description": "A ... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"star... | nlprog_det | setting | original | null | deterministic | [] | [] | 385 | {"gold": "20.61", "printed": "20.61", "notation": null} |
nlprog_det-setting-0056886 | Convert 30 °C to Fahrenheit.
Python does the arithmetic:
```python
celsius = 30
fahrenheit = celsius * 9 / 5 + 32 # 86.0
print(round(fahrenheit))
```
Run it and it prints: 86
That is 86 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "86", "printed": "86", "notation": null} |
nlprog_det-setting-0056887 | 7 walks at 300 calories each burn how many calories in total?
We write it as a program:
per_session = 300
sessions = 7
total = per_session * sessions # 2100
print(total)
Program output: 2100
2100 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "2100", "printed": "2100", "notation": null} |
nlprog_det-setting-0056888 | Someone born January 27, 1988 turns how old by August 2, 2026? Give the age in whole years.
One way, in code:
```python
from datetime import date
born = date(1988, 1, 27) # datetime.date(1988, 1, 27)
on = date(2026, 8, 2) # datetime.date(2026, 8, 2)
age = on.year - born.year - ((on.month, on.day) < (born.month, born... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 159 | {"gold": "38", "printed": "38", "notation": null} |
nlprog_det-setting-0056889 | <|start|><|user|>
Copies cost $15 plus $0.50 for each page beyond 10. How much for 83 pages?<|eot|>
<|assistant|>
```python
pages = 83
base = 15
per_page = 0.5
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 51.5
print(f"{cost:.2f}")
```
Output — 51.50
The copy costs $51.50.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Copies cost $15 plus $0.50 for each page beyond 10. How much for 83 pages?"
},
{
"role": "assistant",
"content": "```python\npages = 83\nbase = 15\nper_page = 0.5\nfree_pages = 10\ncost = base + max(0, pages - free_pages) * per_page # 51.5\nprint(f\"{cost:.2f}\")\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "51.50", "printed": "51.50", "notation": null} |
nlprog_det-setting-0056891 | <|start|><|user|>
5 swims at 250 calories each burn how many calories in total?<|eot|>
<|assistant|>
That burns 1250 calories.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "5 swims at 250 calories each burn how many calories in total?"
},
{
"role": "assistant",
"content": "That burns 1250 calories."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "1250", "printed": "1250", "notation": null} |
nlprog_det-setting-0056893 | A count moves from 400 to 360. By what percent did it change (use a minus sign for a drop)?
It changed by -10%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "-10", "printed": "-10", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.