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-0058191 | <|start|><|system|>
You are an assistant for a small office.<|eot|>
<|user|>
Starting from $5,000, the team spends $3,126, $581, $3,847, $370. What remains?<|eot|>
<|assistant|>
```python
budget = 5000
expenses = [3126, 581, 3847, 370]
left = budget - sum(expenses) # -2924
print(left)
```
It outputs: -2924
-$2,924 is... | chat | [
{
"role": "system",
"content": "You are an assistant for a small office."
},
{
"role": "user",
"content": "Starting from $5,000, the team spends $3,126, $581, $3,847, $370. What remains?"
},
{
"role": "assistant",
"content": "```python\nbudget = 5000\nexpenses = [3126, 581, 3847, 370... | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "-2924", "printed": "-2924", "notation": null} |
nlprog_det-setting-0058192 | A 90-day notice period begins on March 10, 2022. On what date does it end?
Python, step by step:
```python
from datetime import date, timedelta
start = date(2022, 3, 10) # datetime.date(2022, 3, 10)
end = start + timedelta(days=90) # datetime.date(2022, 6, 8)
print(end.isoformat())
```
# printed: 2022-06-08
The per... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "2022-06-08", "printed": "2022-06-08", "notation": null} |
nlprog_det-setting-0058194 | Counting only Monday through Friday, how many business days are there after June 11, 2021 through July 10, 2021?
The Python version:
```python
from datetime import date, timedelta
start = date(2021, 6, 11)
end = date(2021, 7, 10)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).w... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 157 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0058195 | <|start|><|user|>
At $31.57 an hour, what does 16 hours of work pay?<|eot|>
<|assistant|>
```python
rate = 31.57
hours = 16
earnings = rate * hours # 505.12
print(f"{earnings:.2f}")
```
What it prints — 505.12
The pay is $505.12.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $31.57 an hour, what does 16 hours of work pay?"
},
{
"role": "assistant",
"content": "```python\nrate = 31.57\nhours = 16\nearnings = rate * hours # 505.12\nprint(f\"{earnings:.2f}\")\n```\nWhat it prints — 505.12\n\nThe pay is $505.12."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "505.12", "printed": "505.12", "notation": null} |
nlprog_det-setting-0058196 | <|start|><|user|>
What simple interest does $8,000 earn at 2% a year over 3 years?<|eot|>
<|assistant|>
```python
principal = 8000
rate = 2 / 100 # 0.02
years = 3
interest = principal * rate * years # 480.0
print(f"{interest:.2f}")
```
Result: 480.00
It earns $480.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What simple interest does $8,000 earn at 2% a year over 3 years?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 8000\nrate = 2 / 100 # 0.02\nyears = 3\ninterest = principal * rate * years # 480.0\nprint(f\"{interest:.2f}\")\n```\nResult: 480.00\n\nI... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "480.00", "printed": "480.00", "notation": null} |
nlprog_det-setting-0058197 | Sales went from 2,000 to 2,800. What is the percent change?
The change is 40%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 26 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0058198 | Equal monthly payments repay $2,400 plus 6% simple yearly interest over 24 months. How large is a payment?
Let's compute it with Python.
```python
principal = 2400
annual_rate = 6 / 100 # 0.06
months = 24
interest = principal * annual_rate * months / 12 # 288.0
payment = (principal + interest) / months # 112.0
prin... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "112.00", "printed": "112.00", "notation": null} |
nlprog_det-setting-0058199 | <|start|><|system|>
You are a data assistant.<|eot|>
<|user|>
Under a 40% contingency agreement, what fee is owed on a $25,000 award?<|eot|>
<|assistant|>
```python
recovery = 25000
rate = 40 / 100 # 0.4
fee = recovery * rate # 10000.0
print(f"{fee:.2f}")
```
Out = 10000.00
The fee is $10,000.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a data assistant."
},
{
"role": "user",
"content": "Under a 40% contingency agreement, what fee is owed on a $25,000 award?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 25000\nrate = 40 / 100 # 0.4\nfee = recovery * rate # 100... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "10000.00", "printed": "10000.00", "notation": null} |
nlprog_det-setting-0058200 | A 21-day notice period begins on September 6, 2019. On what date does it end?
Let the code do the arithmetic:
```python
from datetime import date, timedelta
start = date(2019, 9, 6) # datetime.date(2019, 9, 6)
end = start + timedelta(days=21) # datetime.date(2019, 9, 27)
print(end.isoformat())
```
Output of the run:... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "2019-09-27", "printed": "2019-09-27", "notation": null} |
nlprog_det-setting-0058201 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
The landlord deducts $75, $85 and $85 from a $2,500 deposit. What is returned to the tenant?<|eot|>
<|assistant|>
```python
deposit = 2500
deductions = [75, 85, 85]
refund = deposit - sum(deductions) # 2255
print(refund)
```
That prints 2255.
The refund... | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "The landlord deducts $75, $85 and $85 from a $2,500 deposit. What is returned to the tenant?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 2500\ndeductions = [75, 85, 85]\nref... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "2255", "printed": "2255", "notation": null} |
nlprog_det-setting-0058202 | A claim accrued on June 25, 2019. The limitations period is 2 years. On what date does it expire?
It runs out on June 25, 2021. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "2021-06-25", "printed": "2021-06-25", "notation": null} |
nlprog_det-setting-0058203 | <|start|><|user|>
A pack of 8 calendars sells for $344. What does each cost?<|eot|>
<|assistant|>
The unit price is $43.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A pack of 8 calendars sells for $344. What does each cost?"
},
{
"role": "assistant",
"content": "The unit price is $43."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "43", "printed": "43", "notation": null} |
nlprog_det-setting-0058204 | An unpaid balance of $2,500 accrues 1% simple interest per month. How much interest accrues in 6 months?
Computation in Python:
```python
balance = 2500
monthly_rate = 1 / 100 # 0.01
months = 6
interest = balance * monthly_rate * months # 150.0
print(f"{interest:.2f}")
```
Run it and it prints 150.00.
$150.00 accru... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "150.00", "printed": "150.00", "notation": null} |
nlprog_det-setting-0058206 | A penalty of $100 a day accrues, capped at $1,000. What is owed after 39 days?
A Python solution:
```python
per_day = 100
days = 39
cap = 1000
fine = min(per_day * days, cap) # 1000
print(fine)
```
(Printed result: 1000)
The fine is $1,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0058208 | At 50 miles per hour, how many minutes does a 50-mile trip take?
We write it as a program:
```python
distance = 50
speed = 50
minutes = distance / speed * 60 # 60.0
print(round(minutes))
```
The code prints: 60
60 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "60", "printed": "60", "notation": null} |
nlprog_det-setting-0058209 | An unpaid balance of $4,000 accrues 1% simple interest per month. How much interest accrues in 4 months?
We can compute it in Python.
```python
balance = 4000
monthly_rate = 1 / 100 # 0.01
months = 4
interest = balance * monthly_rate * months # 160.0
print(f"{interest:.2f}")
```
Run result = 160.00
The interest is ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "160.00", "printed": "160.00", "notation": null} |
nlprog_det-setting-0058210 | From a $5,000 retainer, 13 hours at $275/hour have been drawn. What remains?
As a program:
retainer = 5000
hours = 13
rate = 275
left = retainer - hours * rate # 1425
print(left)
The run gives: 1425
$1,425 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "1425", "printed": "1425", "notation": null} |
nlprog_det-setting-0058211 | <|start|><|system|>
You are a careful reviewer of figures.<|eot|>
<|user|>
A 65-page report must be reviewed in 5 days. How many pages a day is that, evenly?<|eot|>
<|assistant|>
```python
pages = 65
days = 5
per_day = pages // days # 13
print(per_day)
```
Run output: 13
13 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a careful reviewer of figures."
},
{
"role": "user",
"content": "A 65-page report must be reviewed in 5 days. How many pages a day is that, evenly?"
},
{
"role": "assistant",
"content": "```python\npages = 65\ndays = 5\nper_day = pages // days ... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0058212 | At 40 miles per hour, how many minutes does a 100-mile trip take?
One way, in code:
```python
distance = 100
speed = 40
minutes = distance / speed * 60 # 150.0
print(round(minutes))
```
Interpreter output: 150
150 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "150", "printed": "150", "notation": null} |
nlprog_det-setting-0058213 | Monthly rent is $1,200. A tenant moves in with 19 days left in a 31-day month. What is the prorated rent?
In Python:
```python
rent = 1200
days_in_month = 31
days_occupied = 19
prorated = rent * days_occupied / days_in_month # 735.483870967742
print(f"{prorated:.2f}")
```
When run, it prints 735.48, as expected.
The... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "735.48", "printed": "735.48", "notation": null} |
nlprog_det-setting-0058214 | <|start|><|user|>
At $0.65 per mile, what is the reimbursement for 608 miles?<|eot|>
<|assistant|>
```python
miles = 608
rate = 0.65
reimbursement = miles * rate # 395.2
print(f"{reimbursement:.2f}")
```
Running it prints 395.20.
The reimbursement is $395.20.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $0.65 per mile, what is the reimbursement for 608 miles?"
},
{
"role": "assistant",
"content": "```python\nmiles = 608\nrate = 0.65\nreimbursement = miles * rate # 395.2\nprint(f\"{reimbursement:.2f}\")\n```\nRunning it prints 395.20.\n\nThe reimbursement is $39... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "395.20", "printed": "395.20", "notation": null} |
nlprog_det-setting-0058215 | Someone works 40 hours at $31.41 per hour. What are the earnings?
In code:
rate = 31.41
hours = 40
earnings = rate * hours # 1256.4
print(f"{earnings:.2f}")
# output: 1256.40
That earns $1,256.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "1256.40", "printed": "1256.40", "notation": null} |
nlprog_det-setting-0058216 | Count the days between April 6, 2027 and June 13, 2027.
Set it up in Python:
from datetime import date
first = date(2027, 4, 6) # datetime.date(2027, 4, 6)
second = date(2027, 6, 13) # datetime.date(2027, 6, 13)
print((second - first).days)
The script prints 68, as expected.
It is 68 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "68", "printed": "68", "notation": null} |
nlprog_det-setting-0058217 | A trial runs from September 7, 2018 to September 21, 2018, counting both days. How many calendar days is that?
Program:
from datetime import date
first = date(2018, 9, 7)
last = date(2018, 9, 21)
days = (last - first).days + 1
print(days)
When run, it prints 15, as expected.
15 calendar days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0058218 | How many weekdays (Monday to Friday) fall after September 8, 2027 up to and including September 24, 2027?
Programmatically:
```python
from datetime import date, timedelta
start = date(2027, 9, 8)
end = date(2027, 9, 24)
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 | [] | [] | 156 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0058219 | <|start|><|system|>
Write short, precise answers.<|eot|>
<|user|>
3 clients win $48,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?<|eot|>
<|assistant|>
award = 48000
fee = award * 30 / 100 # 14400.0
remaining = award - fee # 33600.0
per_client = remaining / 3 ... | chat | [
{
"role": "system",
"content": "Write short, precise answers."
},
{
"role": "user",
"content": "3 clients win $48,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?"
},
{
"role": "assistant",
"content": " award = 48000\n fee = award * 30 / ... | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "11200.00", "printed": "11200.00", "notation": null} |
nlprog_det-setting-0058220 | <|start|><|user|>
A jacket costs $300. It is 30% off. What is the sale price?<|eot|>
<|assistant|>
```python
price = 300
discount = 30 / 100 # 0.3
sale_price = price * (1 - discount) # 210.0
print(f"{sale_price:.2f}")
```
# printed: 210.00
It costs $210.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A jacket costs $300. It is 30% off. What is the sale price?"
},
{
"role": "assistant",
"content": "```python\nprice = 300\ndiscount = 30 / 100 # 0.3\nsale_price = price * (1 - discount) # 210.0\nprint(f\"{sale_price:.2f}\")\n```\n# printed: 210.00\n\nIt costs $210... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "210.00", "printed": "210.00", "notation": null} |
nlprog_det-setting-0058221 | The landlord deducts $60, $150 and $75 from a $2,000 deposit. What is returned to the tenant?
Python version:
deposit = 2000
deductions = [60, 150, 75]
refund = deposit - sum(deductions) # 1715
print(refund)
(Printed result: 1715)
The refund is $1,715. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "1715", "printed": "1715", "notation": null} |
nlprog_det-setting-0058222 | The paralegal logged 4 hours at a rate of $225. How much is billed?
Program:
```python
hours = 4
rate = 225
bill = hours * rate # 900
print(f"{bill:.2f}")
```
The program prints: 900.00
That comes to $900.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "900.00", "printed": "900.00", "notation": null} |
nlprog_det-setting-0058223 | A storeroom has 1669 file boxes. The office uses 13 a day. How many are left after 13 days?
The Python version:
```python
stock = 1669
per_day = 13
days = 13
left = stock - per_day * days # 1500
print(left)
```
The printout reads 1500.
1500 file boxes are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "1500", "printed": "1500", "notation": null} |
nlprog_det-setting-0058224 | <|start|><|user|>
At 1% a month (simple), what interest builds on $1,000 over 2 months?<|eot|>
<|assistant|>
```python
balance = 1000
monthly_rate = 1 / 100 # 0.01
months = 2
interest = balance * monthly_rate * months # 20.0
print(f"{interest:.2f}")
```
(Program output: 20.00)
$20.00 accrues.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At 1% a month (simple), what interest builds on $1,000 over 2 months?"
},
{
"role": "assistant",
"content": "```python\nbalance = 1000\nmonthly_rate = 1 / 100 # 0.01\nmonths = 2\ninterest = balance * monthly_rate * months # 20.0\nprint(f\"{interest:.2f}\")\n```\n(... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "20.00", "printed": "20.00", "notation": null} |
nlprog_det-setting-0058225 | <|start|><|user|>
An attorney bills 10.5 hours at $180 per hour. What is the bill?<|eot|>
<|assistant|>
```python
hours = 10.5
rate = 180
bill = hours * rate # 1890.0
print(f"{bill:.2f}")
```
The run gives: 1890.00
That comes to $1,890.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An attorney bills 10.5 hours at $180 per hour. What is the bill?"
},
{
"role": "assistant",
"content": "```python\nhours = 10.5\nrate = 180\nbill = hours * rate # 1890.0\nprint(f\"{bill:.2f}\")\n```\nThe run gives: 1890.00\n\nThat comes to $1,890.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "1890.00", "printed": "1890.00", "notation": null} |
nlprog_det-setting-0058226 | A car travels 477 miles in 0.5 hours. What is its average speed in miles per hour?
We write it as a program:
```python
distance = 477
hours = 0.5
speed = distance / hours # 954.0
print(round(speed))
```
It prints: 954
It averages 954 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "954", "printed": "954", "notation": null} |
nlprog_det-setting-0058227 | A lease runs for 36 months at $975 per month. How much rent is paid over the whole term?
Python, step by step:
```python
monthly_rent = 975
months = 36
total = monthly_rent * months # 35100
print(total)
```
# out: 35100
In total, $35,100 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "35100", "printed": "35100", "notation": null} |
nlprog_det-setting-0058228 | How many units at $25 each (variable cost $20) cover $1,200 of fixed costs?
Let's compute it with Python.
```python
import math
fixed = 1200
price = 25
variable = 20
units = math.ceil(fixed / (price - variable)) # 240
print(units)
```
Out = 240
Break-even is 240 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "240", "printed": "240", "notation": null} |
nlprog_det-setting-0058229 | Someone born February 13, 1990 turns how old by December 10, 2022? Give the age in whole years.
In Python:
```python
from datetime import date
born = date(1990, 2, 13) # datetime.date(1990, 2, 13)
on = date(2022, 12, 10) # datetime.date(2022, 12, 10)
age = on.year - born.year - ((on.month, on.day) < (born.month, bor... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 155 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0058231 | <|start|><|user|>
Starting from $20,000, the team spends $870, $1,993, $1,787, $2,320. What remains?<|eot|>
<|assistant|>
$13,030 is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting from $20,000, the team spends $870, $1,993, $1,787, $2,320. What remains?"
},
{
"role": "assistant",
"content": "$13,030 is left."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 55 | {"gold": "13030", "printed": "13030", "notation": null} |
nlprog_det-setting-0058232 | <|start|><|user|>
Straight-line depreciation: cost $24,000, salvage $6,000, 5 years. How much per year?<|eot|>
<|assistant|>
```python
cost = 24000
salvage = 6000
years = 5
per_year = (cost - salvage) / years
print(f"{per_year:.2f}")
```
On running, it outputs: 3600.00
$3,600.00 a year.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Straight-line depreciation: cost $24,000, salvage $6,000, 5 years. How much per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 24000\nsalvage = 6000\nyears = 5\nper_year = (cost - salvage) / years\nprint(f\"{per_year:.2f}\")\n```\nOn running, it outp... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "3600.00", "printed": "3600.00", "notation": null} |
nlprog_det-setting-0058234 | <|start|><|user|>
Divide 242 items among 3 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|>
<|assistant|>
```python
total = 242
groups = 3
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
It prints: 80 each, 2 left over
Th... | chat | [
{
"role": "user",
"content": "Divide 242 items among 3 groups as evenly as possible with equal groups. How many per group, and how many remain?"
},
{
"role": "assistant",
"content": "```python\ntotal = 242\ngroups = 3\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {rem... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "80 each, 2 left over", "printed": "80 each, 2 left over", "notation": null} |
nlprog_det-setting-0058235 | After a 25% fee is taken from a $72,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?
Each share is $18,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "18000.00", "printed": "18000.00", "notation": null} |
nlprog_det-setting-0058236 | <|start|><|user|>
On which weekday does April 5, 1990 fall?<|eot|>
<|assistant|>
from datetime import date
hearing = date(1990, 4, 5) # datetime.date(1990, 4, 5)
print(hearing.strftime("%A"))
Executing it gives Thursday, as expected.
It is a Thursday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "On which weekday does April 5, 1990 fall?"
},
{
"role": "assistant",
"content": " from datetime import date\n hearing = date(1990, 4, 5) # datetime.date(1990, 4, 5)\n print(hearing.strftime(\"%A\"))\nExecuting it gives Thursday, as expected.\n\nIt is a Thu... | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "Thursday", "printed": "Thursday", "notation": null} |
nlprog_det-setting-0058237 | After an initial $2,000, the remainder of a $48,000 grant is paid in 4 equal parts. What is each part?
Python version:
grant = 48000
up_front = 2000
installments = 4
each = (grant - up_front) / installments # 11500.0
print(f"{each:.2f}")
Console output: 11500.00
Each installment is $11,500.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "11500.00", "printed": "11500.00", "notation": null} |
nlprog_det-setting-0058239 | <|start|><|user|>
Convert 11.3 km to meters.<|eot|>
<|assistant|>
```python
km = 11.3
meters = km * 1000 # 11300.0
print(round(meters))
```
Run result = 11300
11,300 m.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 11.3 km to meters."
},
{
"role": "assistant",
"content": "```python\nkm = 11.3\nmeters = km * 1000 # 11300.0\nprint(round(meters))\n```\nRun result = 11300\n\n11,300 m."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "11300", "printed": "11300", "notation": null} |
nlprog_det-setting-0058240 | <|start|><|user|>
An invoice lists 4 binders at $2 each, plus 7% sales tax. What is the invoice total?<|eot|>
<|assistant|>
quantity = 4
unit_price = 2
subtotal = quantity * unit_price # 8
total = subtotal * (1 + 7 / 100) # 8.56
print(f"{total:.2f}")
The run gives 8.56.
The invoice total is $8.56... | chat | [
{
"role": "user",
"content": "An invoice lists 4 binders at $2 each, plus 7% sales tax. What is the invoice total?"
},
{
"role": "assistant",
"content": " quantity = 4\n unit_price = 2\n subtotal = quantity * unit_price # 8\n total = subtotal * (1 + 7 / 100) # 8.56\n print(f\"{t... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "8.56", "printed": "8.56", "notation": null} |
nlprog_det-setting-0058241 | A meal costs $223.52. How much is a 18% tip?
A short script:
```python
bill = 223.52
tip_rate = 18 / 100 # 0.18
tip = bill * tip_rate # 40.2336
print(f"{tip:.2f}")
```
Run result: 40.23
The tip is $40.23. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "40.23", "printed": "40.23", "notation": null} |
nlprog_det-setting-0058242 | A 12-month warranty starts on March 17, 2023. On what date does it end?
One way, in code:
```python
from datetime import date
start = date(2023, 3, 17)
months = 12
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
The program... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "2024-03-17", "printed": "2024-03-17", "notation": null} |
nlprog_det-setting-0058243 | A 4-day trip pays $69 a day for meals and $140 a night for lodging (3 nights). What is the total allowance?
Computing it:
```python
days = 4
meal_rate = 69
lodging_rate = 140
nights = days - 1 # 3
total = days * meal_rate + nights * lodging_rate # 696
print(total)
```
stdout — 696
The allowance is $696. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "696", "printed": "696", "notation": null} |
nlprog_det-setting-0058244 | A count moves from 2,000 to 2,200. By what percent did it change (use a minus sign for a drop)?
```python
old = 2000
new = 2200
change = (new - old) / old * 100 # 10.0
print(round(change))
```
Shell output: 10
It changed by 10%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0058245 | A water bill is $18 plus $4.75 per thousand gallons beyond the first 0 thousand. What is the bill for 8 thousand gallons?
$56.00 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "56.00", "printed": "56.00", "notation": null} |
nlprog_det-setting-0058246 | What is the total rent on a 12-month lease at $2,100 a month?
Written as code:
```python
monthly_rent = 2100
months = 12
total = monthly_rent * months # 25200
print(total)
```
The run gives 25200, as expected.
In total, $25,200 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "25200", "printed": "25200", "notation": null} |
nlprog_det-setting-0058247 | A party has 21 days to respond to a motion served on June 13, 2023, with 3 days added because service was by mail. When is the response due?
Python does the arithmetic:
```python
from datetime import date, timedelta
served = date(2023, 6, 13) # datetime.date(2023, 6, 13)
response_days = 21
mail_days = 3
due = served ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 178 | {"gold": "2023-07-07", "printed": "2023-07-07", "notation": null} |
nlprog_det-setting-0058248 | Shipping costs $5 plus $1.20 per pound. What does a 10-pound parcel cost to ship?
In code:
```python
base = 5
per_pound = 1.2
weight = 10
cost = base + per_pound * weight # 17.0
print(f"{cost:.2f}")
```
# execution result: 17.00
The charge is $17.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "17.00", "printed": "17.00", "notation": null} |
nlprog_det-setting-0058249 | At 1.5% a month (simple), what interest builds on $7,500 over 2 months?
```python
balance = 7500
monthly_rate = 1.5 / 100 # 0.015
months = 2
interest = balance * monthly_rate * months # 225.0
print(f"{interest:.2f}")
```
Running this gives 225.00.
The interest is $225.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "225.00", "printed": "225.00", "notation": null} |
nlprog_det-setting-0058250 | <|start|><|user|>
To read 702 pages in 18 days, how many pages per day are needed?<|eot|>
<|assistant|>
```python
pages = 702
days = 18
per_day = pages // days # 39
print(per_day)
```
The script prints 39, as expected.
That is 39 pages per day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "To read 702 pages in 18 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": "```python\npages = 702\ndays = 18\nper_day = pages // days # 39\nprint(per_day)\n```\nThe script prints 39, as expected.\n\nThat is 39 pages per day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "39", "printed": "39", "notation": null} |
nlprog_det-setting-0058251 | One can of paint covers 400 square feet. How many cans are needed for 819 square feet of wall?
Buy 3 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0058252 | Yoko was born on November 25, 1991. How old is Yoko on February 3, 2029?
In code:
```python
from datetime import date
born = date(1991, 11, 25) # datetime.date(1991, 11, 25)
on = date(2029, 2, 3) # datetime.date(2029, 2, 3)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 37
print(age)
``... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 157 | {"gold": "37", "printed": "37", "notation": null} |
nlprog_det-setting-0058253 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
Liesel buys 6 boxes of 8 notebooks each and gives away 17 notebooks. How many notebooks are left?<|eot|>
<|assistant|>
```python
boxes = 6
per_box = 8
given_away = 17
left = boxes * per_box - given_away # 31
print(left)
```
Result: 31
31 noteb... | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "Liesel buys 6 boxes of 8 notebooks each and gives away 17 notebooks. How many notebooks are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 6\nper_box = 8\ngiven_a... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "31", "printed": "31", "notation": null} |
nlprog_det-setting-0058254 | What percentage of $4,000 is $1,100?
As a program:
```python
budget = 4000
spent = 1100
percent = spent / budget * 100 # 27.500000000000004
print(round(percent, 1))
```
It outputs: 27.5
27.5% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "27.5", "printed": "27.5", "notation": null} |
nlprog_det-setting-0058255 | Wanjiru earns a 6% commission on $57,852 of sales. What is the commission?
In code:
```python
sales = 57852
rate = 6 / 100 # 0.06
commission = sales * rate # 3471.12
print(f"{commission:.2f}")
```
The code prints 3471.12.
The commission is $3,471.12. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "3471.12", "printed": "3471.12", "notation": null} |
nlprog_det-setting-0058256 | <|start|><|system|>
Functions:
{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}
{"name": "python", "description": "Python sandbox for calc... | chat | [
{
"role": "system",
"content": "Functions:\n{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\": [\"title\", \"section\"]}}... | nlprog_det | setting | original | null | deterministic | [] | [] | 320 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0058257 | <|start|><|system|>
Tools (call with JSON):
{"name": "math_engine", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|user|>
An unpaid balance of $... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n{\"name\": \"math_engine\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 238 | {"gold": "150.00", "printed": "150.00", "notation": null} |
nlprog_det-setting-0058258 | Convert 43.6 km to meters.
```python
km = 43.6
meters = km * 1000 # 43600.0
print(round(meters))
```
(Printed result: 43600)
43,600 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 73 | {"gold": "43600", "printed": "43600", "notation": null} |
nlprog_det-setting-0058259 | <|start|><|user|>
Rosa earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 46-hour week?<|eot|>
<|assistant|>
The weekly pay is $784.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Rosa earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 46-hour week?"
},
{
"role": "assistant",
"content": "The weekly pay is $784.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 49 | {"gold": "784.00", "printed": "784.00", "notation": null} |
nlprog_det-setting-0058260 | How many weekdays (Monday to Friday) fall after January 27, 2026 up to and including February 28, 2026?
Coded up:
```python
from datetime import date, timedelta
start = date(2026, 1, 27)
end = date(2026, 2, 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 | [] | [] | 158 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0058261 | <|start|><|system|>
You have access to these functions:
[{"name": "code_runner", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "convert_uni... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"code_runner\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}... | nlprog_det | setting | original | null | deterministic | [] | [] | 383 | {"gold": "70200", "printed": "70200", "notation": null} |
nlprog_det-setting-0058262 | <|start|><|user|>
How many whole days and leftover hours are in 383 hours?<|eot|>
<|assistant|>
```python
hours = 383
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
It outputs: 15 days and 23 hours
That is 15 days and 23 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many whole days and leftover hours are in 383 hours?"
},
{
"role": "assistant",
"content": "```python\nhours = 383\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nIt outputs: 15 days and 23 hours\n\nThat is 15 days and 23 hours."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "15 days and 23 hours", "printed": "15 days and 23 hours", "notation": null} |
nlprog_det-setting-0058263 | <|start|><|user|>
3 clients win $48,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?<|eot|>
<|assistant|>
```python
award = 48000
fee = award * 30 / 100
remaining = award - fee
per_client = remaining / 3
print(f"{per_client:.2f}")
```
Run result = 11200.00
Each client gets $11,2... | chat | [
{
"role": "user",
"content": "3 clients win $48,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?"
},
{
"role": "assistant",
"content": "```python\naward = 48000\nfee = award * 30 / 100\nremaining = award - fee\nper_client = remaining / 3\nprint(f\"{per_cli... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "11200.00", "printed": "11200.00", "notation": null} |
nlprog_det-setting-0058264 | <|start|><|user|>
What is a 10% tip on a $115.15 bill?<|eot|>
<|assistant|>
The tip is $11.52.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is a 10% tip on a $115.15 bill?"
},
{
"role": "assistant",
"content": "The tip is $11.52."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "11.52", "printed": "11.52", "notation": null} |
nlprog_det-setting-0058265 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"name": "eval_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}
{"n... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"eval_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"P... | nlprog_det | setting | original | null | deterministic | [] | [] | 360 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0058266 | <|start|><|user|>
How many minutes pass from 7:17 AM to 1:09 PM on the same day?<|eot|>
<|assistant|>
```python
start = 7 * 60 + 17 # 437
end = 13 * 60 + 9 # 789
print(end - start)
```
Executed, it shows 352.
352 minutes pass.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many minutes pass from 7:17 AM to 1:09 PM on the same day?"
},
{
"role": "assistant",
"content": "```python\nstart = 7 * 60 + 17 # 437\nend = 13 * 60 + 9 # 789\nprint(end - start)\n```\nExecuted, it shows 352.\n\n352 minutes pass."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "352", "printed": "352", "notation": null} |
nlprog_det-setting-0058267 | Count 60 days forward from September 27, 2026. What date is that?
Python:
```python
from datetime import date, timedelta
start = date(2026, 9, 27) # datetime.date(2026, 9, 27)
end = start + timedelta(days=60) # datetime.date(2026, 11, 26)
print(end.isoformat())
```
The run gives: 2026-11-26
The period ends on Novem... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "2026-11-26", "printed": "2026-11-26", "notation": null} |
nlprog_det-setting-0058268 | Papers were served by mail on October 19, 2025. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?
The program:
```python
from datetime import date, timedelta
served = date(2025, 10, 19) # datetime.date(2025, 10, 19)
response_days = 14
mail_days = 3
due = served + timedelta(... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 179 | {"gold": "2025-11-05", "printed": "2025-11-05", "notation": null} |
nlprog_det-setting-0058269 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
Each of Tobias's walks burns 300 calories. How many calories over 4 walks?<|eot|>
<|assistant|>
```python
per_session = 300
sessions = 4
total = per_session * sessions # 1200
print(total)
```
It prints 1200, as expected.
That burns 1200 calori... | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "Each of Tobias's walks burns 300 calories. How many calories over 4 walks?"
},
{
"role": "assistant",
"content": "```python\nper_session = 300\nsessions = 4\ntotal = per_session *... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "1200", "printed": "1200", "notation": null} |
nlprog_det-setting-0058270 | A count moves from 200 to 170. By what percent did it change (use a minus sign for a drop)?
A short script:
old = 200
new = 170
change = (new - old) / old * 100 # -15.0
print(round(change))
# output: -15
It changed by -15%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "-15", "printed": "-15", "notation": null} |
nlprog_det-setting-0058271 | Maren's scores were 83, 83, 76 and 66. What is the average score?
Set it up in Python:
```python
scores = [83, 83, 76, 66]
average = sum(scores) // len(scores) # 77
print(average)
```
# printed: 77
The average score is 77. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "77", "printed": "77", "notation": null} |
nlprog_det-setting-0058272 | Omar was born on July 26, 1960. How old is Omar on April 11, 2026?
In code:
```python
from datetime import date
born = date(1960, 7, 26) # datetime.date(1960, 7, 26)
on = date(2026, 4, 11) # datetime.date(2026, 4, 11)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 65
print(age)
```
Outp... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "65", "printed": "65", "notation": null} |
nlprog_det-setting-0058273 | <|start|><|user|>
Convert 63.4 km to meters.<|eot|>
<|assistant|>
That is 63,400 meters.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 63.4 km to meters."
},
{
"role": "assistant",
"content": "That is 63,400 meters."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "63400", "printed": "63400", "notation": null} |
nlprog_det-setting-0058274 | Count 10 days forward from September 18, 2024. What date is that?
As Python:
```python
from datetime import date, timedelta
start = date(2024, 9, 18) # datetime.date(2024, 9, 18)
end = start + timedelta(days=10) # datetime.date(2024, 9, 28)
print(end.isoformat())
```
Executing it gives 2024-09-28.
The period ends o... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "2024-09-28", "printed": "2024-09-28", "notation": null} |
nlprog_det-setting-0058275 | 150 copies of a 20-page packet are printed at $0.10 per page. What is the cost?
A Python solution:
```python
pages = 20
copies = 150
cost_per_page = 0.1
cost = pages * copies * cost_per_page # 300.0
print(f"{cost:.2f}")
```
Run result = 300.00
Printing costs $300.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "300.00", "printed": "300.00", "notation": null} |
nlprog_det-setting-0058276 | <|start|><|user|>
What is the total rent on a 24-month lease at $975 a month?<|eot|>
<|assistant|>
```python
monthly_rent = 975
months = 24
total = monthly_rent * months # 23400
print(total)
```
(stdout: 23400)
In total, $23,400 is paid.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is the total rent on a 24-month lease at $975 a month?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 975\nmonths = 24\ntotal = monthly_rent * months # 23400\nprint(total)\n```\n(stdout: 23400)\n\nIn total, $23,400 is paid."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "23400", "printed": "23400", "notation": null} |
nlprog_det-setting-0058277 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"name": "calculator", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": [... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"calculator\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"des... | nlprog_det | setting | original | null | deterministic | [] | [] | 241 | {"gold": "10.0", "printed": "10.0", "notation": null} |
nlprog_det-setting-0058278 | <|start|><|user|>
Kofi's scores were 56, 53, 93, 68, 53 and 97. What is the average score?<|eot|>
<|assistant|>
scores = [56, 53, 93, 68, 53, 97]
average = sum(scores) // len(scores) # 70
print(average)
Python prints 70.
The mean is 70.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Kofi's scores were 56, 53, 93, 68, 53 and 97. What is the average score?"
},
{
"role": "assistant",
"content": " scores = [56, 53, 93, 68, 53, 97]\n average = sum(scores) // len(scores) # 70\n print(average)\nPython prints 70.\n\nThe mean is 70."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "70", "printed": "70", "notation": null} |
nlprog_det-setting-0058279 | <|start|><|system|>
You are a careful assistant.<|eot|>
<|user|>
Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 46 hours?<|eot|>
<|assistant|>
Wanjiru earns $980.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a careful assistant."
},
{
"role": "user",
"content": "Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 46 hours?"
},
{
"role": "assistant",
"content": "Wanjiru earns $980.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 65 | {"gold": "980.00", "printed": "980.00", "notation": null} |
nlprog_det-setting-0058280 | <|start|><|user|>
After an initial $0, the remainder of a $48,000 grant is paid in 4 equal parts. What is each part?<|eot|>
<|assistant|>
grant = 48000
up_front = 0
installments = 4
each = (grant - up_front) / installments # 12000.0
print(f"{each:.2f}")
Output of the run: 12000.00
Each installment... | chat | [
{
"role": "user",
"content": "After an initial $0, the remainder of a $48,000 grant is paid in 4 equal parts. What is each part?"
},
{
"role": "assistant",
"content": " grant = 48000\n up_front = 0\n installments = 4\n each = (grant - up_front) / installments # 12000.0\n print(f\... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "12000.00", "printed": "12000.00", "notation": null} |
nlprog_det-setting-0058281 | At an exchange rate of 0.74 USD per CHF, how many USD is 6,770 CHF?
Translated to Python:
```python
amount = 6770
rate = 0.74
converted = amount * rate # 5009.8
print(f"{converted:.2f}")
```
Execution prints: 5009.80
It converts to 5,009.80 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "5009.80", "printed": "5009.80", "notation": null} |
nlprog_det-setting-0058282 | <|start|><|user|>
What is 25 degrees Celsius in Fahrenheit?<|eot|>
<|assistant|>
```python
celsius = 25
fahrenheit = celsius * 9 / 5 + 32 # 77.0
print(round(fahrenheit))
```
Out — 77
It equals 77 degrees Fahrenheit.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is 25 degrees Celsius in Fahrenheit?"
},
{
"role": "assistant",
"content": "```python\ncelsius = 25\nfahrenheit = celsius * 9 / 5 + 32 # 77.0\nprint(round(fahrenheit))\n```\nOut — 77\n\nIt equals 77 degrees Fahrenheit."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "77", "printed": "77", "notation": null} |
nlprog_det-setting-0058283 | A $48,000 grant pays $3,000 up front and the rest in 4 equal installments. How large is each installment?
```python
grant = 48000
up_front = 3000
installments = 4
each = (grant - up_front) / installments # 11250.0
print(f"{each:.2f}")
```
# printed result: 11250.00
Each installment is $11,250.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "11250.00", "printed": "11250.00", "notation": null} |
nlprog_det-setting-0058284 | From 2021 to 2044, how many years is that?
Python:
```python
start_year = 2021
end_year = 2044
print(end_year - start_year)
```
(Output: 23)
23 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 68 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0058285 | <|start|><|user|>
A garage charges $5 an hour, never more than $24 a day. How much for 11 hours?<|eot|>
<|assistant|>
rate = 5
hours = 11
daily_max = 24
cost = min(rate * hours, daily_max) # 24
print(cost)
That prints 24.
Parking costs $24.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A garage charges $5 an hour, never more than $24 a day. How much for 11 hours?"
},
{
"role": "assistant",
"content": " rate = 5\n hours = 11\n daily_max = 24\n cost = min(rate * hours, daily_max) # 24\n print(cost)\nThat prints 24.\n\nParking costs $... | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0058286 | <|start|><|user|>
At an exchange rate of 1.27 USD per EUR, how many USD is 3,257 EUR?<|eot|>
<|assistant|>
amount = 3257
rate = 1.27
converted = amount * rate # 4136.39
print(f"{converted:.2f}")
Run output — 4136.39
It converts to 4,136.39 USD.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At an exchange rate of 1.27 USD per EUR, how many USD is 3,257 EUR?"
},
{
"role": "assistant",
"content": " amount = 3257\n rate = 1.27\n converted = amount * rate # 4136.39\n print(f\"{converted:.2f}\")\nRun output — 4136.39\n\nIt converts to 4,136.39 ... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "4136.39", "printed": "4136.39", "notation": null} |
nlprog_det-setting-0058287 | <|start|><|system|>
Tools you may use:
[{"name": "py_exec", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
Starting with 736 pa... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"py_exec\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 221 | {"gold": "658", "printed": "658", "notation": null} |
nlprog_det-setting-0058288 | <|start|><|user|>
What is a 25% tip on a $202.27 bill?<|eot|>
<|assistant|>
```python
bill = 202.27
tip_rate = 25 / 100 # 0.25
tip = bill * tip_rate # 50.5675
print(f"{tip:.2f}")
```
That prints: 50.57
The tip is $50.57.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is a 25% tip on a $202.27 bill?"
},
{
"role": "assistant",
"content": "```python\nbill = 202.27\ntip_rate = 25 / 100 # 0.25\ntip = bill * tip_rate # 50.5675\nprint(f\"{tip:.2f}\")\n```\nThat prints: 50.57\n\nThe tip is $50.57."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "50.57", "printed": "50.57", "notation": null} |
nlprog_det-setting-0058289 | <|start|><|user|>
Joelle buys 6 boxes of 12 rulers each and gives away 10 rulers. How many rulers are left?<|eot|>
<|assistant|>
```python
boxes = 6
per_box = 12
given_away = 10
left = boxes * per_box - given_away # 62
print(left)
```
This prints 62.
That leaves 62 rulers.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Joelle buys 6 boxes of 12 rulers each and gives away 10 rulers. How many rulers are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 6\nper_box = 12\ngiven_away = 10\nleft = boxes * per_box - given_away # 62\nprint(left)\n```\nThis prints 62.\n\nThat... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "62", "printed": "62", "notation": null} |
nlprog_det-setting-0058290 | <|start|><|system|>
Give the answer first.<|eot|>
<|user|>
Marek drove 596 miles for work. Mileage is reimbursed at 62 cents a mile. How much is the reimbursement?<|eot|>
<|assistant|>
miles = 596
rate = 0.62
reimbursement = miles * rate # 369.52
print(f"{reimbursement:.2f}")
This prints 369.52, as exp... | chat | [
{
"role": "system",
"content": "Give the answer first."
},
{
"role": "user",
"content": "Marek drove 596 miles for work. Mileage is reimbursed at 62 cents a mile. How much is the reimbursement?"
},
{
"role": "assistant",
"content": " miles = 596\n rate = 0.62\n reimbursement... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "369.52", "printed": "369.52", "notation": null} |
nlprog_det-setting-0058291 | Helga earns a 5% commission on $79,185 of sales. What is the commission?
```python
sales = 79185
rate = 5 / 100 # 0.05
commission = sales * rate # 3959.25
print(f"{commission:.2f}")
```
The run gives 3959.25.
Helga earns $3,959.25. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "3959.25", "printed": "3959.25", "notation": null} |
nlprog_det-setting-0058292 | An invoice lists 24 paper reams at $6 each, plus 7% sales tax. What is the invoice total?
A Python solution:
```python
quantity = 24
unit_price = 6
subtotal = quantity * unit_price # 144
total = subtotal * (1 + 7 / 100) # 154.08
print(f"{total:.2f}")
```
stdout = 154.08
The invoice total is $154.08. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "154.08", "printed": "154.08", "notation": null} |
nlprog_det-setting-0058293 | Fines run at $250 per day up to a maximum of $1,000. How much after 36 days?
Let's compute it with Python.
```python
per_day = 250
days = 36
cap = 1000
fine = min(per_day * days, cap) # 1000
print(fine)
```
Run output — 1000
The fine is $1,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0058294 | Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 53 hours?
Here is a short program for it.
```python
rate = 16.0
hours = 53
regular = 40 * rate # 640.0
overtime = (hours - 40) * rate * 1.5 # 312.0
pay = regular + overtime # 952.0
print(f"{pay:.2f}")
```
The code prints: 952.00
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "952.00", "printed": "952.00", "notation": null} |
nlprog_det-setting-0058295 | A recipe for 8 people uses 150 grams of oats. How many grams are needed for 12 people?
Code:
grams = 150
serves = 8
needed_for = 12
scaled = grams * needed_for // serves # 225
print(scaled)
Output — 225
Use 225 g of oats. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "225", "printed": "225", "notation": null} |
nlprog_det-setting-0058296 | Notice was given on December 2, 2021. The notice period is 14 days. When does it run out?
Coded up:
```python
from datetime import date, timedelta
start = date(2021, 12, 2) # datetime.date(2021, 12, 2)
end = start + timedelta(days=14) # datetime.date(2021, 12, 16)
print(end.isoformat())
```
Shell output: 2021-12-16
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "2021-12-16", "printed": "2021-12-16", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.