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-0083097 | <|start|><|user|>
Convert 71.5 km to meters.<|eot|>
<|assistant|>
```python
km = 71.5
meters = km * 1000 # 71500.0
print(round(meters))
```
(Printed result: 71500)
That is 71,500 meters.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 71.5 km to meters."
},
{
"role": "assistant",
"content": "```python\nkm = 71.5\nmeters = km * 1000 # 71500.0\nprint(round(meters))\n```\n(Printed result: 71500)\n\nThat is 71,500 meters."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "71500", "printed": "71500", "notation": null} |
nlprog_det-setting-0083098 | <|start|><|user|>
Sofia earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 53-hour week?<|eot|>
<|assistant|>
rate = 18.5
hours = 53
regular = 40 * rate # 740.0
overtime = (hours - 40) * rate * 1.5 # 360.75
pay = regular + overtime # 1100.75
print(f"{pay:.2f}")
... | chat | [
{
"role": "user",
"content": "Sofia earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 53-hour week?"
},
{
"role": "assistant",
"content": " rate = 18.5\n hours = 53\n regular = 40 * rate # 740.0\n overtime = (hours - 40) * rate * 1.5 # 360.75\n pa... | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "1100.75", "printed": "1100.75", "notation": null} |
nlprog_det-setting-0083099 | A hearing is set for June 13, 1993. What day of the week is that?
Python makes this quick:
```python
from datetime import date
hearing = date(1993, 6, 13) # datetime.date(1993, 6, 13)
print(hearing.strftime("%A"))
```
stdout:
Sunday
It is a Sunday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "Sunday", "printed": "Sunday", "notation": null} |
nlprog_det-setting-0083100 | What is the total rent on a 36-month lease at $2,875 a month?
Computing it:
```python
monthly_rent = 2875
months = 36
total = monthly_rent * months # 103500
print(total)
```
# console output: 103500
In total, $103,500 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "103500", "printed": "103500", "notation": null} |
nlprog_det-setting-0083101 | <|start|><|user|>
Shipping costs $5 plus $2.50 per pound. What does a 20-pound parcel cost to ship?<|eot|>
<|assistant|>
base = 5
per_pound = 2.5
weight = 20
cost = base + per_pound * weight # 55.0
print(f"{cost:.2f}")
It outputs 55.00.
The charge is $55.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Shipping costs $5 plus $2.50 per pound. What does a 20-pound parcel cost to ship?"
},
{
"role": "assistant",
"content": " base = 5\n per_pound = 2.5\n weight = 20\n cost = base + per_pound * weight # 55.0\n print(f\"{cost:.2f}\")\nIt outputs 55.00.\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "55.00", "printed": "55.00", "notation": null} |
nlprog_det-setting-0083102 | Buying 3 envelopes at $22 each, 2 file boxes at $30 each, 3 ink cartridges at $24 each, 1 markers at $23 each, someone hands over $250. What change comes back?
$29 comes back. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 58 | {"gold": "29", "printed": "29", "notation": null} |
nlprog_det-setting-0083103 | Equipment costs $18,000, has a salvage value of $3,000, and a useful life of 3 years. What is the straight-line depreciation per year?
Let's compute it with Python.
cost = 18000
salvage = 3000
years = 3
per_year = (cost - salvage) / years # 5000.0
print(f"{per_year:.2f}")
Printed result — 5000.00
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "5000.00", "printed": "5000.00", "notation": null} |
nlprog_det-setting-0083104 | Counting only Monday through Friday, how many business days are there after May 3, 2025 through May 13, 2025?
The computation:
```python
from datetime import date, timedelta
start = date(2025, 5, 3)
end = date(2025, 5, 13)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekday(... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 159 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0083106 | 201 volunteers are split into 4 equal teams. How many are on each team, and how many are left over?
Translated to Python:
```python
total = 201
groups = 4
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Executing it gives 50 each, 1 left over.
50 each, 1 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "50 each, 1 left over", "printed": "50 each, 1 left over", "notation": null} |
nlprog_det-setting-0083107 | A hall has 9 rows of 11 seats, and 14 seats are empty. How many people are seated?
Here's the code.
```python
rows = 9
per_row = 11
empty = 14
seated = rows * per_row - empty # 85
print(seated)
```
# printed result: 85
85 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "85", "printed": "85", "notation": null} |
nlprog_det-setting-0083108 | <|start|><|system|>
You are a study helper for students.<|eot|>
<|user|>
A penalty of $100 a day accrues, capped at $5,000. What is owed after 35 days?<|eot|>
<|assistant|>
per_day = 100
days = 35
cap = 5000
fine = min(per_day * days, cap) # 3500
print(fine)
Execution prints 3500.
$3,500 is owed.<... | chat | [
{
"role": "system",
"content": "You are a study helper for students."
},
{
"role": "user",
"content": "A penalty of $100 a day accrues, capped at $5,000. What is owed after 35 days?"
},
{
"role": "assistant",
"content": " per_day = 100\n days = 35\n cap = 5000\n fine = mi... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "3500", "printed": "3500", "notation": null} |
nlprog_det-setting-0083109 | <|start|><|user|>
195 copies of a 41-page packet are printed at $0.05 per page. What is the cost?<|eot|>
<|assistant|>
Printing costs $399.75.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "195 copies of a 41-page packet are printed at $0.05 per page. What is the cost?"
},
{
"role": "assistant",
"content": "Printing costs $399.75."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "399.75", "printed": "399.75", "notation": null} |
nlprog_det-setting-0083110 | An office budget of $5,000 has expenses of $3,947, $2,665, $656, $655. How much of the budget is left?
The remaining budget is -$2,923. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 51 | {"gold": "-2923", "printed": "-2923", "notation": null} |
nlprog_det-setting-0083111 | How many minutes pass from 10:03 AM to 1:47 PM on the same day?
224 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 26 | {"gold": "224", "printed": "224", "notation": null} |
nlprog_det-setting-0083112 | A $2,500 security deposit has deductions of $120 and $75. How much is refunded?
One way, in code:
```python
deposit = 2500
deductions = [120, 75]
refund = deposit - sum(deductions) # 2305
print(refund)
```
Executing it gives 2305.
$2,305 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "2305", "printed": "2305", "notation": null} |
nlprog_det-setting-0083113 | <|start|><|user|>
How many weekdays (Monday to Friday) fall after April 12, 2026 up to and including April 28, 2026?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2026, 4, 12)
end = date(2026, 4, 28)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k... | chat | [
{
"role": "user",
"content": "How many weekdays (Monday to Friday) fall after April 12, 2026 up to and including April 28, 2026?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2026, 4, 12)\nend = date(2026, 4, 28)\ncount = 0\nfor k in range(1... | nlprog_det | setting | original | null | deterministic | [] | [] | 155 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0083114 | <|start|><|system|>
You are a teaching assistant.<|eot|>
<|user|>
A hall has 25 rows of 19 seats, and 4 seats are empty. How many people are seated?<|eot|>
<|assistant|>
```python
rows = 25
per_row = 19
empty = 4
seated = rows * per_row - empty # 471
print(seated)
```
Result — 471
471 seats are taken.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a teaching assistant."
},
{
"role": "user",
"content": "A hall has 25 rows of 19 seats, and 4 seats are empty. How many people are seated?"
},
{
"role": "assistant",
"content": "```python\nrows = 25\nper_row = 19\nempty = 4\nseated = rows * per... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "471", "printed": "471", "notation": null} |
nlprog_det-setting-0083115 | 154 of 200 members attended. What percent attended?
Python does the arithmetic:
```python
present = 154
total = 200
percent = present / total * 100 # 77.0
print(round(percent, 1))
```
Output — 77.0
77.0% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "77.0", "printed": "77.0", "notation": null} |
nlprog_det-setting-0083116 | To read 352 pages in 8 days, how many pages per day are needed?
We write it as a program:
```python
pages = 352
days = 8
per_day = pages // days # 44
print(per_day)
```
The run gives: 44
That is 44 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "44", "printed": "44", "notation": null} |
nlprog_det-setting-0083118 | <|start|><|user|>
Find the mean of these test scores: 55, 79, 64, 72, 87 and 57.<|eot|>
<|assistant|>
```python
scores = [55, 79, 64, 72, 87, 57]
average = sum(scores) // len(scores) # 69
print(average)
```
Execution prints 69.
The average score is 69.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Find the mean of these test scores: 55, 79, 64, 72, 87 and 57."
},
{
"role": "assistant",
"content": "```python\nscores = [55, 79, 64, 72, 87, 57]\naverage = sum(scores) // len(scores) # 69\nprint(average)\n```\nExecution prints 69.\n\nThe average score is 69."
}... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "69", "printed": "69", "notation": null} |
nlprog_det-setting-0083119 | A count moves from 1,200 to 1,080. By what percent did it change (use a minus sign for a drop)?
Python:
```python
old = 1200
new = 1080
change = (new - old) / old * 100 # -10.0
print(round(change))
```
The program outputs -10.
It changed by -10%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "-10", "printed": "-10", "notation": null} |
nlprog_det-setting-0083120 | <|start|><|system|>
You are a patient tutor.<|eot|>
<|user|>
Scale 200 g of oats from 6 servings to 3 servings.<|eot|>
<|assistant|>
```python
grams = 200
serves = 6
needed_for = 3
scaled = grams * needed_for // serves
print(scaled)
```
Output — 100
100 grams of oats are needed.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a patient tutor."
},
{
"role": "user",
"content": "Scale 200 g of oats from 6 servings to 3 servings."
},
{
"role": "assistant",
"content": "```python\ngrams = 200\nserves = 6\nneeded_for = 3\nscaled = grams * needed_for // serves\nprint(scaled... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "100", "printed": "100", "notation": null} |
nlprog_det-setting-0083121 | <|start|><|user|>
Convert 6,746 GBP to USD at 1 GBP = 0.74 USD.<|eot|>
<|assistant|>
amount = 6746
rate = 0.74
converted = amount * rate # 4992.04
print(f"{converted:.2f}")
Result: 4992.04
It converts to 4,992.04 USD.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 6,746 GBP to USD at 1 GBP = 0.74 USD."
},
{
"role": "assistant",
"content": " amount = 6746\n rate = 0.74\n converted = amount * rate # 4992.04\n print(f\"{converted:.2f}\")\nResult: 4992.04\n\nIt converts to 4,992.04 USD."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "4992.04", "printed": "4992.04", "notation": null} |
nlprog_det-setting-0083122 | 3 claimants share a $4,500 settlement equally. What is each share?
The computation:
```python
settlement = 4500
parties = 3
share = settlement // parties # 1500
print(share)
```
That prints 1500.
Each share is $1,500. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "1500", "printed": "1500", "notation": null} |
nlprog_det-setting-0083123 | Rent of $1,100 goes up 3%. What is the new rent?
Python makes this quick:
```python
rent = 1100
increase = 3 / 100 # 0.03
new_rent = rent * (1 + increase) # 1133.0
print(f"{new_rent:.2f}")
```
Output: 1133.00
It rises to $1,133.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "1133.00", "printed": "1133.00", "notation": null} |
nlprog_det-setting-0083124 | Convert 1,716 GBP to USD at 1 GBP = 1.35 USD.
The Python version:
```python
amount = 1716
rate = 1.35
converted = amount * rate # 2316.6000000000004
print(f"{converted:.2f}")
```
It outputs 2316.60.
That is 2,316.60 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "2316.60", "printed": "2316.60", "notation": null} |
nlprog_det-setting-0083125 | A claim accrued on April 16, 2017. The limitations period is 2 years. On what date does it expire?
As Python:
```python
from datetime import date
accrued = date(2017, 4, 16) # datetime.date(2017, 4, 16)
years = 2
expires = accrued.replace(year=accrued.year + years) # datetime.date(2019, 4, 16)
print(expires.isoforma... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "2019-04-16", "printed": "2019-04-16", "notation": null} |
nlprog_det-setting-0083126 | <|start|><|user|>
6 bike rides at 150 calories each burn how many calories in total?<|eot|>
<|assistant|>
```python
per_session = 150
sessions = 6
total = per_session * sessions
print(total)
```
Result: 900
That burns 900 calories.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "6 bike rides at 150 calories each burn how many calories in total?"
},
{
"role": "assistant",
"content": "```python\nper_session = 150\nsessions = 6\ntotal = per_session * sessions\nprint(total)\n```\nResult: 900\n\nThat burns 900 calories."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0083127 | A customer buys 3 rulers at $27 each, 4 binders at $10 each, 3 desk lamps at $28 each, 2 staplers at $10 each and pays with $250. How much change is due?
The program:
```python
items = [(3, 27), (4, 10), (3, 28), (2, 10)]
total = sum(q * p for q, p in items) # 225
paid = 250
change = paid - total # 25
print(change)
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0083128 | What percentage of $4,000 is $100? 2.5% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 20 | {"gold": "2.5", "printed": "2.5", "notation": null} |
nlprog_det-setting-0083129 | <|start|><|user|>
Attendance was 183 out of 200. Express it as a percent.<|eot|>
<|assistant|>
```python
present = 183
total = 200
percent = present / total * 100
print(round(percent, 1))
```
# output: 91.5
Attendance was 91.5%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Attendance was 183 out of 200. Express it as a percent."
},
{
"role": "assistant",
"content": "```python\npresent = 183\ntotal = 200\npercent = present / total * 100\nprint(round(percent, 1))\n```\n# output: 91.5\n\nAttendance was 91.5%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "91.5", "printed": "91.5", "notation": null} |
nlprog_det-setting-0083130 | <|start|><|user|>
Parking is $2 per hour with a daily maximum of $24. What do 8 hours cost?<|eot|>
<|assistant|>
rate = 2
hours = 8
daily_max = 24
cost = min(rate * hours, daily_max) # 16
print(cost)
Python prints 16.
The charge is $16.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Parking is $2 per hour with a daily maximum of $24. What do 8 hours cost?"
},
{
"role": "assistant",
"content": " rate = 2\n hours = 8\n daily_max = 24\n cost = min(rate * hours, daily_max) # 16\n print(cost)\nPython prints 16.\n\nThe charge is $16."... | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0083131 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "py_exec", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"n... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"py_exec\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Pyt... | nlprog_det | setting | original | null | deterministic | [] | [] | 434 | {"gold": "2244.00", "printed": "2244.00", "notation": null} |
nlprog_det-setting-0083132 | <|start|><|user|>
A service costs $9 a month or $78 a year. How much does the yearly plan save over 12 monthly payments?<|eot|>
<|assistant|>
```python
monthly = 9
yearly = 78
savings = monthly * 12 - yearly # 30
print(savings)
```
Shell output — 30
The annual plan saves $30.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A service costs $9 a month or $78 a year. How much does the yearly plan save over 12 monthly payments?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 9\nyearly = 78\nsavings = monthly * 12 - yearly # 30\nprint(savings)\n```\nShell output — 30\n\nThe an... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0083133 | <|start|><|user|>
How many whole days and leftover hours are in 239 hours?<|eot|>
<|assistant|>
```python
hours = 239
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Program output — 9 days and 23 hours
That is 9 days and 23 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many whole days and leftover hours are in 239 hours?"
},
{
"role": "assistant",
"content": "```python\nhours = 239\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nProgram output — 9 days and 23 hours\n\nThat is 9 days and 23 hours... | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "9 days and 23 hours", "printed": "9 days and 23 hours", "notation": null} |
nlprog_det-setting-0083134 | <|start|><|user|>
With 30 rows of 17 chairs and 31 empty chairs, how many chairs are taken?<|eot|>
<|assistant|>
```python
rows = 30
per_row = 17
empty = 31
seated = rows * per_row - empty # 479
print(seated)
```
Run output — 479
479 seats are taken.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 30 rows of 17 chairs and 31 empty chairs, how many chairs are taken?"
},
{
"role": "assistant",
"content": "```python\nrows = 30\nper_row = 17\nempty = 31\nseated = rows * per_row - empty # 479\nprint(seated)\n```\nRun output — 479\n\n479 seats are taken."
}... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "479", "printed": "479", "notation": null} |
nlprog_det-setting-0083135 | Divide 181 items among 5 groups as evenly as possible with equal groups. How many per group, and how many remain?
Python code:
total = 181
groups = 5
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
Output:
36 each, 1 left over
The answer: 36 each, 1 left ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "36 each, 1 left over", "printed": "36 each, 1 left over", "notation": null} |
nlprog_det-setting-0083136 | A customer buys 2 binders at $13 each, 3 toner kits at $6 each, 1 flash drives at $27 each and pays with $100. How much change is due?
Programmatically:
items = [(2, 13), (3, 6), (1, 27)]
total = sum(q * p for q, p in items) # 71
paid = 100
change = paid - total # 29
print(change)
When run, it pr... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "29", "printed": "29", "notation": null} |
nlprog_det-setting-0083137 | <|start|><|user|>
A shift starts at 3:30 PM and lasts 75 minutes. When does it end?<|eot|>
<|assistant|>
The shift finishes at 4:45 PM.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A shift starts at 3:30 PM and lasts 75 minutes. When does it end?"
},
{
"role": "assistant",
"content": "The shift finishes at 4:45 PM."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "4:45 PM", "printed": "4:45 PM", "notation": null} |
nlprog_det-setting-0083138 | Straight-line depreciation: cost $12,000, salvage $0, 4 years. How much per year?
cost = 12000
salvage = 0
years = 4
per_year = (cost - salvage) / years # 3000.0
print(f"{per_year:.2f}")
The program prints 3000.00.
Depreciation is $3,000.00 per year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "3000.00", "printed": "3000.00", "notation": null} |
nlprog_det-setting-0083139 | <|start|><|system|>
Answer the user's question directly.<|eot|>
<|user|>
A quorum is 2/3 of the 43 members, rounded up. How many members make a quorum?<|eot|>
<|assistant|>
import math
members = 43
quorum = math.ceil(members * 2 / 3) # 29
print(quorum)
(Out: 29)
That is 29 members.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer the user's question directly."
},
{
"role": "user",
"content": "A quorum is 2/3 of the 43 members, rounded up. How many members make a quorum?"
},
{
"role": "assistant",
"content": " import math\n members = 43\n quorum = math.ceil(membe... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "29", "printed": "29", "notation": null} |
nlprog_det-setting-0083140 | How many days are there from February 13, 2020 to December 29, 2020?
from datetime import date
first = date(2020, 2, 13) # datetime.date(2020, 2, 13)
second = date(2020, 12, 29) # datetime.date(2020, 12, 29)
print((second - first).days)
When run, it prints 320.
It is 320 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "320", "printed": "320", "notation": null} |
nlprog_det-setting-0083141 | Of a $2,000 budget, $1,900 has been spent. What percent is that?
95.0% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "95.0", "printed": "95.0", "notation": null} |
nlprog_det-setting-0083142 | Counting the first and last day, how many days are there from November 8, 2023 through November 29, 2023?
Here is a short program for it.
```python
from datetime import date
first = date(2023, 11, 8) # datetime.date(2023, 11, 8)
last = date(2023, 11, 29) # datetime.date(2023, 11, 29)
days = (last - first).days + 1 ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0083143 | <|start|><|user|>
Someone born October 19, 1993 turns how old by April 26, 2029? Give the age in whole years.<|eot|>
<|assistant|>
from datetime import date
born = date(1993, 10, 19) # datetime.date(1993, 10, 19)
on = date(2029, 4, 26) # datetime.date(2029, 4, 26)
age = on.year - born.year - ((on.mont... | chat | [
{
"role": "user",
"content": "Someone born October 19, 1993 turns how old by April 26, 2029? Give the age in whole years."
},
{
"role": "assistant",
"content": " from datetime import date\n born = date(1993, 10, 19) # datetime.date(1993, 10, 19)\n on = date(2029, 4, 26) # datetime.dat... | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "35", "printed": "35", "notation": null} |
nlprog_det-setting-0083144 | <|start|><|system|>
You are a puzzle helper.<|eot|>
<|user|>
How many weekdays (Monday to Friday) fall after January 9, 2022 up to and including February 12, 2022?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2022, 1, 9)
end = date(2022, 2, 12)
count = 0
for k in range(1, (end - star... | chat | [
{
"role": "system",
"content": "You are a puzzle helper."
},
{
"role": "user",
"content": "How many weekdays (Monday to Friday) fall after January 9, 2022 up to and including February 12, 2022?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nst... | nlprog_det | setting | original | null | deterministic | [] | [] | 166 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0083145 | <|start|><|system|>
You are a logic tutor.<|eot|>
<|user|>
A 150-mile drive at a steady 30 mph takes how many minutes?<|eot|>
<|assistant|>
```python
distance = 150
speed = 30
minutes = distance / speed * 60 # 300.0
print(round(minutes))
```
Execution result — 300
The trip takes 300 minutes.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a logic tutor."
},
{
"role": "user",
"content": "A 150-mile drive at a steady 30 mph takes how many minutes?"
},
{
"role": "assistant",
"content": "```python\ndistance = 150\nspeed = 30\nminutes = distance / speed * 60 # 300.0\nprint(round(min... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0083146 | Convert 6,641 CHF to USD at 1 CHF = 1.08 USD.
Script:
```python
amount = 6641
rate = 1.08
converted = amount * rate # 7172.280000000001
print(f"{converted:.2f}")
```
The interpreter prints: 7172.28
That is 7,172.28 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "7172.28", "printed": "7172.28", "notation": null} |
nlprog_det-setting-0083147 | 4 books come back 11 days late, at $0.50 a day each. What is the fine?
Python version:
```python
per_day = 0.5
days_late = 11
books = 4
fine = per_day * days_late * books # 22.0
print(f"{fine:.2f}")
```
Out: 22.00
The fine is $22.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "22.00", "printed": "22.00", "notation": null} |
nlprog_det-setting-0083148 | After an initial $3,000, the remainder of a $30,000 grant is paid in 12 equal parts. What is each part?
Program:
```python
grant = 30000
up_front = 3000
installments = 12
each = (grant - up_front) / installments # 2250.0
print(f"{each:.2f}")
```
Output = 2250.00
$2,250.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "2250.00", "printed": "2250.00", "notation": null} |
nlprog_det-setting-0083149 | Notice was given on October 14, 2027. The notice period is 21 days. When does it run out?
A few lines of Python do it:
```python
from datetime import date, timedelta
start = date(2027, 10, 14) # datetime.date(2027, 10, 14)
end = start + timedelta(days=21) # datetime.date(2027, 11, 4)
print(end.isoformat())
```
The p... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 152 | {"gold": "2027-11-04", "printed": "2027-11-04", "notation": null} |
nlprog_det-setting-0083150 | An office budget of $8,000 has expenses of $2,987, $2,146, $1,914, $1,495. How much of the budget is left?
```python
budget = 8000
expenses = [2987, 2146, 1914, 1495]
left = budget - sum(expenses) # -542
print(left)
```
Printed = -542
-$542 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "-542", "printed": "-542", "notation": null} |
nlprog_det-setting-0083151 | Revenue is $8,000 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)?
Set it up in Python:
```python
revenue = 8000
costs = 4000
profit = revenue - costs # 4000
margin = profit / revenue * 100 # 50.0
print(round(margin, 1))
```
Out = 50.0
Profit is 50.0% of revenue. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "50.0", "printed": "50.0", "notation": null} |
nlprog_det-setting-0083152 | 879 files go into boxes of 50. How many boxes does that take?
The computation:
```python
import math
files = 879
per_box = 50
boxes = math.ceil(files / per_box) # 18
print(boxes)
```
Execution result: 18
18 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0083153 | <|start|><|user|>
Nadia buys 12 boxes of 10 scissors each and gives away 16 scissors. How many scissors are left?<|eot|>
<|assistant|>
104 scissors are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Nadia buys 12 boxes of 10 scissors each and gives away 16 scissors. How many scissors are left?"
},
{
"role": "assistant",
"content": "104 scissors are left."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 48 | {"gold": "104", "printed": "104", "notation": null} |
nlprog_det-setting-0083154 | <|start|><|system|>
Functions:
{"name": "calc", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}
{"name": "convert_units", "description": "Convert a quantity b... | chat | [
{
"role": "system",
"content": "Functions:\n{\"name\": \"calc\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\"]}}\n{\"nam... | nlprog_det | setting | original | null | deterministic | [] | [] | 407 | {"gold": "30.00", "printed": "30.00", "notation": null} |
nlprog_det-setting-0083155 | A penalty of $25 a day accrues, capped at $5,000. What is owed after 9 days?
Script:
```python
per_day = 25
days = 9
cap = 5000
fine = min(per_day * days, cap) # 225
print(fine)
```
# execution result: 225
The fine is $225. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "225", "printed": "225", "notation": null} |
nlprog_det-setting-0083156 | Parking is $2 per hour with a daily maximum of $24. What do 6 hours cost?
Python, step by step:
rate = 2
hours = 6
daily_max = 24
cost = min(rate * hours, daily_max) # 12
print(cost)
stdout: 12
Parking costs $12. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0083157 | <|start|><|user|>
Revenue is $14,500 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)?<|eot|>
<|assistant|>
The margin is 13.8%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Revenue is $14,500 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)?"
},
{
"role": "assistant",
"content": "The margin is 13.8%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "13.8", "printed": "13.8", "notation": null} |
nlprog_det-setting-0083158 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "get_weather... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 379 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0083160 | Prorate $1,500 of monthly rent for 9 days of a 30-day month.
The prorated rent is $450.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "450.00", "printed": "450.00", "notation": null} |
nlprog_det-setting-0083161 | <|start|><|user|>
With $8,000 in costs and $9,000 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|>
<|assistant|>
The margin is 11.1%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With $8,000 in costs and $9,000 in revenue, what percent of revenue is profit? Round to one decimal."
},
{
"role": "assistant",
"content": "The margin is 11.1%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "11.1", "printed": "11.1", "notation": null} |
nlprog_det-setting-0083162 | Under a 30% contingency agreement, what fee is owed on a $90,000 award?
Code:
```python
recovery = 90000
rate = 30 / 100 # 0.3
fee = recovery * rate # 27000.0
print(f"{fee:.2f}")
```
What it prints — 27000.00
The fee is $27,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "27000.00", "printed": "27000.00", "notation": null} |
nlprog_det-setting-0083163 | Walls total 467 sq ft and each can covers 300 sq ft. How many cans should be bought?
One way, in code:
```python
import math
area = 467
coverage = 300
cans = math.ceil(area / coverage) # 2
print(cans)
```
Python prints 2.
Buy 2 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0083164 | What percentage of $4,000 is $1,900?
Python code:
```python
budget = 4000
spent = 1900
percent = spent / budget * 100 # 47.5
print(round(percent, 1))
```
(Result: 47.5)
47.5% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "47.5", "printed": "47.5", "notation": null} |
nlprog_det-setting-0083165 | An attorney bills 10.5 hours at $410 per hour. What is the bill?
Computation in Python:
```python
hours = 10.5
rate = 410
bill = hours * rate # 4305.0
print(f"{bill:.2f}")
```
(Out: 4305.00)
The bill is $4,305.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "4305.00", "printed": "4305.00", "notation": null} |
nlprog_det-setting-0083166 | Starting from $12,000, the team spends $1,928, $3,287. What remains?
As Python:
```python
budget = 12000
expenses = [1928, 3287]
left = budget - sum(expenses) # 6785
print(left)
```
Executed, it shows 6785.
The remaining budget is $6,785. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "6785", "printed": "6785", "notation": null} |
nlprog_det-setting-0083167 | Straight-line depreciation: cost $24,000, salvage $0, 8 years. How much per year?
As a program:
```python
cost = 24000
salvage = 0
years = 8
per_year = (cost - salvage) / years # 3000.0
print(f"{per_year:.2f}")
```
The script prints 3000.00.
$3,000.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "3000.00", "printed": "3000.00", "notation": null} |
nlprog_det-setting-0083168 | Fines run at $50 per day up to a maximum of $2,500. How much after 26 days?
Computing it:
```python
per_day = 50
days = 26
cap = 2500
fine = min(per_day * days, cap) # 1300
print(fine)
```
This prints 1300, as expected.
$1,300 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "1300", "printed": "1300", "notation": null} |
nlprog_det-setting-0083169 | <|start|><|user|>
A measure needs at least 67% of 296 votes. How many votes is that, rounded up?<|eot|>
<|assistant|>
199 votes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A measure needs at least 67% of 296 votes. How many votes is that, rounded up?"
},
{
"role": "assistant",
"content": "199 votes are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "199", "printed": "199", "notation": null} |
nlprog_det-setting-0083170 | <|start|><|user|>
546 files go into boxes of 50. How many boxes does that take?<|eot|>
<|assistant|>
```python
import math
files = 546
per_box = 50
boxes = math.ceil(files / per_box) # 11
print(boxes)
```
(Out: 11)
It takes 11 boxes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "546 files go into boxes of 50. How many boxes does that take?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 546\nper_box = 50\nboxes = math.ceil(files / per_box) # 11\nprint(boxes)\n```\n(Out: 11)\n\nIt takes 11 boxes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "11", "printed": "11", "notation": null} |
nlprog_det-setting-0083171 | Yusuf and Wen share $3,032 in the ratio 1:3. How much does Yusuf get?
The computation:
total = 3032
parts_a = 1
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b)
print(share_a)
(Result: 758)
Yusuf's share is $758. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "758", "printed": "758", "notation": null} |
nlprog_det-setting-0083173 | <|start|><|system|>
Keep explanations short.<|eot|>
<|user|>
Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 50 hours?<|eot|>
<|assistant|>
Eamon earns $880.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Keep explanations short."
},
{
"role": "user",
"content": "Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 50 hours?"
},
{
"role": "assistant",
"content": "Eamon earns $880.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 61 | {"gold": "880.00", "printed": "880.00", "notation": null} |
nlprog_det-setting-0083174 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
To read 338 pages in 13 days, how many pages per day are needed?<|eot|>
<|assistant|>
That is 26 pages per day.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "To read 338 pages in 13 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": "That is 26 pages per day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 50 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0083175 | <|start|><|system|>
You help paralegals with routine tasks.<|eot|>
<|user|>
Parking is $2 per hour with a daily maximum of $24. What do 7 hours cost?<|eot|>
<|assistant|>
```python
rate = 2
hours = 7
daily_max = 24
cost = min(rate * hours, daily_max) # 14
print(cost)
```
Out:
14
The charge is $14.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help paralegals with routine tasks."
},
{
"role": "user",
"content": "Parking is $2 per hour with a daily maximum of $24. What do 7 hours cost?"
},
{
"role": "assistant",
"content": "```python\nrate = 2\nhours = 7\ndaily_max = 24\ncost = min(rate *... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0083176 | The rules require 3/5 of 43 members (round up) to be present. How many is that?
Code:
```python
import math
members = 43
quorum = math.ceil(members * 3 / 5) # 26
print(quorum)
```
(Printed result: 26)
26 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0083177 | <|start|><|user|>
Someone born September 2, 1961 turns how old by November 17, 2021? Give the age in whole years.<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1961, 9, 2) # datetime.date(1961, 9, 2)
on = date(2021, 11, 17) # datetime.date(2021, 11, 17)
age = on.year - born.year - ((on.month, o... | chat | [
{
"role": "user",
"content": "Someone born September 2, 1961 turns how old by November 17, 2021? Give the age in whole years."
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1961, 9, 2) # datetime.date(1961, 9, 2)\non = date(2021, 11, 17) # datetime.dat... | nlprog_det | setting | original | null | deterministic | [] | [] | 160 | {"gold": "60", "printed": "60", "notation": null} |
nlprog_det-setting-0083178 | <|start|><|user|>
3 boxes hold 10 water bottles each. After 9 are handed out, how many are left?<|eot|>
<|assistant|>
boxes = 3
per_box = 10
given_away = 9
left = boxes * per_box - given_away # 21
print(left)
Running this gives 21.
That leaves 21 water bottles.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "3 boxes hold 10 water bottles each. After 9 are handed out, how many are left?"
},
{
"role": "assistant",
"content": " boxes = 3\n per_box = 10\n given_away = 9\n left = boxes * per_box - given_away # 21\n print(left)\nRunning this gives 21.\n\nThat ... | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "21", "printed": "21", "notation": null} |
nlprog_det-setting-0083179 | <|start|><|user|>
A quorum is 1/3 of the 26 members, rounded up. How many members make a quorum?<|eot|>
<|assistant|>
```python
import math
members = 26
quorum = math.ceil(members * 1 / 3) # 9
print(quorum)
```
# out: 9
9 members are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A quorum is 1/3 of the 26 members, rounded up. How many members make a quorum?"
},
{
"role": "assistant",
"content": "```python\nimport math\nmembers = 26\nquorum = math.ceil(members * 1 / 3) # 9\nprint(quorum)\n```\n# out: 9\n\n9 members are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0083180 | Someone works 30 hours at $18.74 per hour. What are the earnings?
Python version:
```python
rate = 18.74
hours = 30
earnings = rate * hours # 562.1999999999999
print(f"{earnings:.2f}")
```
Run output: 562.20
That earns $562.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "562.20", "printed": "562.20", "notation": null} |
nlprog_det-setting-0083181 | Ulla earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 54-hour week?
A short script:
```python
rate = 18.5
hours = 54
regular = 40 * rate # 740.0
overtime = (hours - 40) * rate * 1.5 # 388.5
pay = regular + overtime # 1128.5
print(f"{pay:.2f}")
```
That prints 1128.50.
Ulla earns $1... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "1128.50", "printed": "1128.50", "notation": null} |
nlprog_det-setting-0083182 | A 28 lb package ships at $12 base plus $0.75/lb. What is the charge?
Shipping costs $33.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "33.00", "printed": "33.00", "notation": null} |
nlprog_det-setting-0083183 | Scale 450 g of lentils from 6 servings to 3 servings.
The Python version:
```python
grams = 450
serves = 6
needed_for = 3
scaled = grams * needed_for // serves # 225
print(scaled)
```
Printed = 225
225 grams of lentils are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "225", "printed": "225", "notation": null} |
nlprog_det-setting-0083184 | How many units at $20 each (variable cost $10) cover $2,500 of fixed costs?
Set it up in Python:
```python
import math
fixed = 2500
price = 20
variable = 10
units = math.ceil(fixed / (price - variable)) # 250
print(units)
```
Result — 250
250 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "250", "printed": "250", "notation": null} |
nlprog_det-setting-0083185 | Parking is $4 per hour with a daily maximum of $15. What do 11 hours cost?
Python makes this quick:
```python
rate = 4
hours = 11
daily_max = 15
cost = min(rate * hours, daily_max) # 15
print(cost)
```
The script prints 15, as expected.
The charge is $15. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0083186 | <|start|><|user|>
The landlord deducts $150, $150 and $85 from a $2,500 deposit. What is returned to the tenant?<|eot|>
<|assistant|>
deposit = 2500
deductions = [150, 150, 85]
refund = deposit - sum(deductions) # 2115
print(refund)
(Out: 2115)
The refund is $2,115.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The landlord deducts $150, $150 and $85 from a $2,500 deposit. What is returned to the tenant?"
},
{
"role": "assistant",
"content": " deposit = 2500\n deductions = [150, 150, 85]\n refund = deposit - sum(deductions) # 2115\n print(refund)\n(Out: 2115)\... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "2115", "printed": "2115", "notation": null} |
nlprog_det-setting-0083187 | Monthly rent is $2,400. A tenant moves in with 7 days left in a 31-day month. What is the prorated rent?
A few lines of Python do it:
```python
rent = 2400
days_in_month = 31
days_occupied = 7
prorated = rent * days_occupied / days_in_month # 541.9354838709677
print(f"{prorated:.2f}")
```
Run result = 541.94
The ten... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "541.94", "printed": "541.94", "notation": null} |
nlprog_det-setting-0083188 | A water bill is $18 plus $5.10 per thousand gallons beyond the first 3 thousand. What is the bill for 20 thousand gallons?
Python makes this quick:
```python
base = 18
rate = 5.1
used = 20
free = 3
bill = base + rate * max(0, used - free) # 104.69999999999999
print(f"{bill:.2f}")
```
When run, it prints 104.70, as ex... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "104.70", "printed": "104.70", "notation": null} |
nlprog_det-setting-0083189 | What is a 22% tip on a $128.29 bill?
One way, in code:
```python
bill = 128.29
tip_rate = 22 / 100 # 0.22
tip = bill * tip_rate # 28.223799999999997
print(f"{tip:.2f}")
```
When run, it prints: 28.22
The tip is $28.22. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "28.22", "printed": "28.22", "notation": null} |
nlprog_det-setting-0083190 | At a 8% tax rate, what is the tax on $641.19?
```python
price = 641.19
tax_rate = 8 / 100 # 0.08
tax = price * tax_rate # 51.29520000000001
print(f"{tax:.2f}")
```
(Run result: 51.30)
The tax is $51.30. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "51.30", "printed": "51.30", "notation": null} |
nlprog_det-setting-0083191 | Equipment costs $24,000, has a salvage value of $6,000, and a useful life of 4 years. What is the straight-line depreciation per year?
Translated to Python:
```python
cost = 24000
salvage = 6000
years = 4
per_year = (cost - salvage) / years # 4500.0
print(f"{per_year:.2f}")
```
(Result: 4500.00)
Depreciation is $4,5... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "4500.00", "printed": "4500.00", "notation": null} |
nlprog_det-setting-0083192 | At $18.03 an hour, what does 38 hours of work pay?
Python version:
```python
rate = 18.03
hours = 38
earnings = rate * hours # 685.1400000000001
print(f"{earnings:.2f}")
```
Printed = 685.14
That earns $685.14. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "685.14", "printed": "685.14", "notation": null} |
nlprog_det-setting-0083193 | A party has 14 days to respond to a motion served on November 5, 2026, with 3 days added because service was by mail. When is the response due?
Programmatically:
```python
from datetime import date, timedelta
served = date(2026, 11, 5) # datetime.date(2026, 11, 5)
response_days = 14
mail_days = 3
due = served + timed... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 180 | {"gold": "2026-11-22", "printed": "2026-11-22", "notation": null} |
nlprog_det-setting-0083194 | <|start|><|user|>
A measure needs at least 60% of 247 votes. How many votes is that, rounded up?<|eot|>
<|assistant|>
```python
import math
voters = 247
needed = math.ceil(voters * 60 / 100) # 149
print(needed)
```
The program prints 149, as expected.
149 votes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A measure needs at least 60% of 247 votes. How many votes is that, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 247\nneeded = math.ceil(voters * 60 / 100) # 149\nprint(needed)\n```\nThe program prints 149, as expected.\n\n149 ... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "149", "printed": "149", "notation": null} |
nlprog_det-setting-0083195 | Walls total 1054 sq ft and each can covers 250 sq ft. How many cans should be bought?
As Python:
```python
import math
area = 1054
coverage = 250
cans = math.ceil(area / coverage) # 5
print(cans)
```
This prints 5, as expected.
5 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0083196 | <|start|><|user|>
A library charges $0.15 per book per day late. What is the fine for 4 books that are 10 days late?<|eot|>
<|assistant|>
```python
per_day = 0.15
days_late = 10
books = 4
fine = per_day * days_late * books # 6.0
print(f"{fine:.2f}")
```
The run gives: 6.00
$6.00 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A library charges $0.15 per book per day late. What is the fine for 4 books that are 10 days late?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.15\ndays_late = 10\nbooks = 4\nfine = per_day * days_late * books # 6.0\nprint(f\"{fine:.2f}\")\n```\nTh... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "6.00", "printed": "6.00", "notation": null} |
nlprog_det-setting-0083197 | A hall has 13 rows of 11 seats, and 32 seats are empty. How many people are seated?
Python:
```python
rows = 13
per_row = 11
empty = 32
seated = rows * per_row - empty # 111
print(seated)
```
Shell output — 111
111 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "111", "printed": "111", "notation": null} |
nlprog_det-setting-0083198 | A 6-month warranty starts on May 1, 2025. On what date does it end?
Set it up in Python:
```python
from datetime import date
start = date(2025, 5, 1)
months = 6
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
The program pr... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 152 | {"gold": "2025-11-01", "printed": "2025-11-01", "notation": null} |
nlprog_det-setting-0083199 | <|start|><|user|>
Of a $8,000 budget, $200 has been spent. What percent is that?<|eot|>
<|assistant|>
```python
budget = 8000
spent = 200
percent = spent / budget * 100 # 2.5
print(round(percent, 1))
```
Result: 2.5
That is 2.5% of the budget.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Of a $8,000 budget, $200 has been spent. What percent is that?"
},
{
"role": "assistant",
"content": "```python\nbudget = 8000\nspent = 200\npercent = spent / budget * 100 # 2.5\nprint(round(percent, 1))\n```\nResult: 2.5\n\nThat is 2.5% of the budget."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "2.5", "printed": "2.5", "notation": null} |
nlprog_det-setting-0083200 | A measure needs at least 60% of 100 votes. How many votes is that, rounded up?
A few lines of Python do it:
```python
import math
voters = 100
needed = math.ceil(voters * 60 / 100) # 60
print(needed)
```
Executed, it shows 60.
At least 60 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "60", "printed": "60", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.