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-0073882 | Counting the first and last day, how many days are there from May 12, 2024 through May 29, 2024?
Written as code:
from datetime import date
first = date(2024, 5, 12)
last = date(2024, 5, 29)
days = (last - first).days + 1
print(days)
Console:
18
18 calendar days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0073883 | <|start|><|system|>
Respond clearly and to the point.<|eot|>
<|user|>
Yara drove 445 miles for work. Mileage is reimbursed at 62 cents a mile. How much is the reimbursement?<|eot|>
<|assistant|>
miles = 445
rate = 0.62
reimbursement = miles * rate # 275.9
print(f"{reimbursement:.2f}")
The script prints... | chat | [
{
"role": "system",
"content": "Respond clearly and to the point."
},
{
"role": "user",
"content": "Yara drove 445 miles for work. Mileage is reimbursed at 62 cents a mile. How much is the reimbursement?"
},
{
"role": "assistant",
"content": " miles = 445\n rate = 0.62\n rei... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "275.90", "printed": "275.90", "notation": null} |
nlprog_det-setting-0073884 | A meal costs $57.53. How much is a 18% tip?
Translated to Python:
```python
bill = 57.53
tip_rate = 18 / 100 # 0.18
tip = bill * tip_rate # 10.3554
print(f"{tip:.2f}")
```
Run result — 10.36
Leave $10.36. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "10.36", "printed": "10.36", "notation": null} |
nlprog_det-setting-0073885 | <|start|><|user|>
A trial runs from December 3, 2019 to December 18, 2019, counting both days. How many calendar days is that?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2019, 12, 3) # datetime.date(2019, 12, 3)
last = date(2019, 12, 18) # datetime.date(2019, 12, 18)
days = (last - first).d... | chat | [
{
"role": "user",
"content": "A trial runs from December 3, 2019 to December 18, 2019, counting both days. How many calendar days is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2019, 12, 3) # datetime.date(2019, 12, 3)\nlast = date(2019, 12, 1... | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0073887 | At $23.92 an hour, what does 20 hours of work pay?
In code:
```python
rate = 23.92
hours = 20
earnings = rate * hours
print(f"{earnings:.2f}")
```
(Out: 478.40)
The pay is $478.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "478.40", "printed": "478.40", "notation": null} |
nlprog_det-setting-0073888 | A recipe for 8 people uses 450 grams of pasta. How many grams are needed for 12 people?
Python code:
```python
grams = 450
serves = 8
needed_for = 12
scaled = grams * needed_for // serves # 675
print(scaled)
```
It prints 675, as expected.
Use 675 g of pasta. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "675", "printed": "675", "notation": null} |
nlprog_det-setting-0073889 | <|start|><|user|>
An unpaid balance of $2,500 accrues 1% simple interest per month. How much interest accrues in 2 months?<|eot|>
<|assistant|>
```python
balance = 2500
monthly_rate = 1 / 100 # 0.01
months = 2
interest = balance * monthly_rate * months # 50.0
print(f"{interest:.2f}")
```
Run result — 50.00
$50.00 ac... | chat | [
{
"role": "user",
"content": "An unpaid balance of $2,500 accrues 1% simple interest per month. How much interest accrues in 2 months?"
},
{
"role": "assistant",
"content": "```python\nbalance = 2500\nmonthly_rate = 1 / 100 # 0.01\nmonths = 2\ninterest = balance * monthly_rate * months # 50.0\... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "50.00", "printed": "50.00", "notation": null} |
nlprog_det-setting-0073890 | 5 friends split a $84 bill plus a 20% tip evenly. How much does each pay?
Script:
```python
bill = 84
tip_rate = 20 / 100 # 0.2
people = 5
each = bill * (1 + tip_rate) / people # 20.16
print(f"{each:.2f}")
```
The script prints: 20.16
The share is $20.16 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "20.16", "printed": "20.16", "notation": null} |
nlprog_det-setting-0073891 | What is the total rent on a 24-month lease at $1,200 a month?
The rent over the term is $28,800. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "28800", "printed": "28800", "notation": null} |
nlprog_det-setting-0073892 | <|start|><|user|>
A car travels 190 miles in 2 hours. What is its average speed in miles per hour?<|eot|>
<|assistant|>
```python
distance = 190
hours = 2
speed = distance / hours # 95.0
print(round(speed))
```
Interpreter output — 95
It averages 95 miles per hour.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A car travels 190 miles in 2 hours. What is its average speed in miles per hour?"
},
{
"role": "assistant",
"content": "```python\ndistance = 190\nhours = 2\nspeed = distance / hours # 95.0\nprint(round(speed))\n```\nInterpreter output — 95\n\nIt averages 95 miles ... | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "95", "printed": "95", "notation": null} |
nlprog_det-setting-0073893 | 32 water bottles cost $24 apiece. With 10% tax added, what is the total?
We can compute it in Python.
```python
quantity = 32
unit_price = 24
subtotal = quantity * unit_price # 768
total = subtotal * (1 + 10 / 100) # 844.8000000000001
print(f"{total:.2f}")
```
stdout — 844.80
The total with tax is $844.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "844.80", "printed": "844.80", "notation": null} |
nlprog_det-setting-0073894 | A hall has 29 rows of 23 seats, and 29 seats are empty. How many people are seated?
```python
rows = 29
per_row = 23
empty = 29
seated = rows * per_row - empty # 638
print(seated)
```
Result:
638
638 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "638", "printed": "638", "notation": null} |
nlprog_det-setting-0073895 | 6 friends split a $150 bill plus a 15% tip evenly. How much does each pay?
```python
bill = 150
tip_rate = 15 / 100 # 0.15
people = 6
each = bill * (1 + tip_rate) / people # 28.75
print(f"{each:.2f}")
```
(Printed: 28.75)
The share is $28.75 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "28.75", "printed": "28.75", "notation": null} |
nlprog_det-setting-0073896 | Express 149 hours in days and hours.
Script:
```python
hours = 149
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Console:
6 days and 5 hours
149 hours is 6 days and 5 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "6 days and 5 hours", "printed": "6 days and 5 hours", "notation": null} |
nlprog_det-setting-0073897 | <|start|><|user|>
How many weekdays (Monday to Friday) fall after June 16, 2018 up to and including June 27, 2018?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2018, 6, 16)
end = date(2018, 6, 27)
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 June 16, 2018 up to and including June 27, 2018?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2018, 6, 16)\nend = date(2018, 6, 27)\ncount = 0\nfor k in range(1, ... | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0073898 | A water bill is $20 plus $3.50 per thousand gallons beyond the first 2 thousand. What is the bill for 15 thousand gallons?
We write it as a program:
```python
base = 20
rate = 3.5
used = 15
free = 2
bill = base + rate * max(0, used - free) # 65.5
print(f"{bill:.2f}")
```
The interpreter prints 65.50.
$65.50 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "65.50", "printed": "65.50", "notation": null} |
nlprog_det-setting-0073899 | How many minutes pass from 8:06 AM to 9:26 AM on the same day?
The Python version:
```python
start = 8 * 60 + 6 # 486
end = 9 * 60 + 26 # 566
print(end - start)
```
Program output: 80
80 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "80", "printed": "80", "notation": null} |
nlprog_det-setting-0073900 | <|start|><|user|>
To read 306 pages in 6 days, how many pages per day are needed?<|eot|>
<|assistant|>
```python
pages = 306
days = 6
per_day = pages // days # 51
print(per_day)
```
When run, it prints 51, as expected.
That is 51 pages per day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "To read 306 pages in 6 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": "```python\npages = 306\ndays = 6\nper_day = pages // days # 51\nprint(per_day)\n```\nWhen run, it prints 51, as expected.\n\nThat is 51 pages per day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "51", "printed": "51", "notation": null} |
nlprog_det-setting-0073901 | <|start|><|user|>
Signe and Kemal share $6,265 in the ratio 2:5. How much does Signe get?<|eot|>
<|assistant|>
```python
total = 6265
parts_a = 2
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 1790
print(share_a)
```
stdout = 1790
Signe gets $1,790.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Signe and Kemal share $6,265 in the ratio 2:5. How much does Signe get?"
},
{
"role": "assistant",
"content": "```python\ntotal = 6265\nparts_a = 2\nparts_b = 5\nshare_a = total * parts_a // (parts_a + parts_b) # 1790\nprint(share_a)\n```\nstdout = 1790\n\nSigne ge... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "1790", "printed": "1790", "notation": null} |
nlprog_det-setting-0073902 | At an exchange rate of 1.35 USD per EUR, how many USD is 7,838 EUR?
Python, step by step:
```python
amount = 7838
rate = 1.35
converted = amount * rate # 10581.300000000001
print(f"{converted:.2f}")
```
# printed: 10581.30
That is 10,581.30 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "10581.30", "printed": "10581.30", "notation": null} |
nlprog_det-setting-0073903 | <|start|><|system|>
You are a puzzle helper.<|eot|>
<|user|>
Rafael's scores were 71, 76, 69 and 68. What is the average score?<|eot|>
<|assistant|>
```python
scores = [71, 76, 69, 68]
average = sum(scores) // len(scores) # 71
print(average)
```
Run output — 71
The mean is 71.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a puzzle helper."
},
{
"role": "user",
"content": "Rafael's scores were 71, 76, 69 and 68. What is the average score?"
},
{
"role": "assistant",
"content": "```python\nscores = [71, 76, 69, 68]\naverage = sum(scores) // len(scores) # 71\nprint... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "71", "printed": "71", "notation": null} |
nlprog_det-setting-0073904 | A 14-day notice period begins on August 22, 2027. On what date does it end?
Here's the code.
```python
from datetime import date, timedelta
start = date(2027, 8, 22) # datetime.date(2027, 8, 22)
end = start + timedelta(days=14) # datetime.date(2027, 9, 5)
print(end.isoformat())
```
The run gives 2027-09-05, as expec... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "2027-09-05", "printed": "2027-09-05", "notation": null} |
nlprog_det-setting-0073905 | <|start|><|user|>
An attorney bills 12 hours at $225 per hour. What is the bill?<|eot|>
<|assistant|>
```python
hours = 12
rate = 225
bill = hours * rate # 2700
print(f"{bill:.2f}")
```
Out — 2700.00
The bill is $2,700.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An attorney bills 12 hours at $225 per hour. What is the bill?"
},
{
"role": "assistant",
"content": "```python\nhours = 12\nrate = 225\nbill = hours * rate # 2700\nprint(f\"{bill:.2f}\")\n```\nOut — 2700.00\n\nThe bill is $2,700.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "2700.00", "printed": "2700.00", "notation": null} |
nlprog_det-setting-0073906 | <|start|><|system|>
Give the answer first.<|eot|>
<|user|>
Copies cost $5 plus $0.25 for each page beyond 0. How much for 64 pages?<|eot|>
<|assistant|>
```python
pages = 64
base = 5
per_page = 0.25
free_pages = 0
cost = base + max(0, pages - free_pages) * per_page # 21.0
print(f"{cost:.2f}")
```
What it prints: 21.00... | chat | [
{
"role": "system",
"content": "Give the answer first."
},
{
"role": "user",
"content": "Copies cost $5 plus $0.25 for each page beyond 0. How much for 64 pages?"
},
{
"role": "assistant",
"content": "```python\npages = 64\nbase = 5\nper_page = 0.25\nfree_pages = 0\ncost = base + max... | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "21.00", "printed": "21.00", "notation": null} |
nlprog_det-setting-0073907 | <|start|><|user|>
3 claimants share a $1,200 settlement equally. What is each share?<|eot|>
<|assistant|>
settlement = 1200
parties = 3
share = settlement // parties # 400
print(share)
Console:
400
Each share is $400.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "3 claimants share a $1,200 settlement equally. What is each share?"
},
{
"role": "assistant",
"content": " settlement = 1200\n parties = 3\n share = settlement // parties # 400\n print(share)\nConsole:\n400\n\nEach share is $400."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 66 | {"gold": "400", "printed": "400", "notation": null} |
nlprog_det-setting-0073908 | What does $1,000 grow to in 4 years at 5% annual compounding?
Python:
```python
principal = 1000
rate = 5 / 100
years = 4
value = principal * (1 + rate) ** years
print(f"{value:.2f}")
```
Printed: 1215.51
It is worth $1,215.51. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "1215.51", "printed": "1215.51", "notation": null} |
nlprog_det-setting-0073909 | After an initial $0, the remainder of a $12,000 grant is paid in 12 equal parts. What is each part?
A Python solution:
grant = 12000
up_front = 0
installments = 12
each = (grant - up_front) / installments # 1000.0
print(f"{each:.2f}")
That prints: 1000.00
$1,000.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "1000.00", "printed": "1000.00", "notation": null} |
nlprog_det-setting-0073910 | Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 43 hours?
Python:
```python
rate = 16.0
hours = 43
regular = 40 * rate # 640.0
overtime = (hours - 40) * rate * 1.5 # 72.0
pay = regular + overtime # 712.0
print(f"{pay:.2f}")
```
(stdout: 712.00)
The weekly pay is $712.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "712.00", "printed": "712.00", "notation": null} |
nlprog_det-setting-0073911 | <|start|><|user|>
A storeroom has 1103 toner kits. The office uses 29 a day. How many are left after 19 days?<|eot|>
<|assistant|>
552 remain.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A storeroom has 1103 toner kits. The office uses 29 a day. How many are left after 19 days?"
},
{
"role": "assistant",
"content": "552 remain."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "552", "printed": "552", "notation": null} |
nlprog_det-setting-0073912 | A class starts at 1:20 PM and lasts 40 minutes. When does it end?
A short script:
```python
start = 13 * 60 + 20
end = start + 40
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
The program outputs 2:00 PM.
It ends at 2:00 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "2:00 PM", "printed": "2:00 PM", "notation": null} |
nlprog_det-setting-0073913 | Filing fees are $50 per document. What do 10 filings cost?
In code:
```python
fee = 50
filings = 10
total = fee * filings # 500
print(total)
```
This prints: 500
The total fee is $500. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "500", "printed": "500", "notation": null} |
nlprog_det-setting-0073914 | A claim accrued on February 21, 2013. The limitations period is 2 years. On what date does it expire?
Coded up:
```python
from datetime import date
accrued = date(2013, 2, 21) # datetime.date(2013, 2, 21)
years = 2
expires = accrued.replace(year=accrued.year + years) # datetime.date(2015, 2, 21)
print(expires.isofor... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "2015-02-21", "printed": "2015-02-21", "notation": null} |
nlprog_det-setting-0073915 | A settlement of $7,350 is split equally among 3 parties. How much does each party receive?
The Python version:
```python
settlement = 7350
parties = 3
share = settlement // parties
print(share)
```
(Printed result: 2450)
Each party receives $2,450. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "2450", "printed": "2450", "notation": null} |
nlprog_det-setting-0073916 | <|start|><|system|>
You have access to these functions:
[{"name": "math_engine", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "fetch_filing", "descriptio... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"math_engine\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 284 | {"gold": "1650", "printed": "1650", "notation": null} |
nlprog_det-setting-0073917 | <|start|><|user|>
Goran's scores were 59, 98, 63, 65, 74 and 79. What is the average score?<|eot|>
<|assistant|>
The mean is 73.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Goran's scores were 59, 98, 63, 65, 74 and 79. What is the average score?"
},
{
"role": "assistant",
"content": "The mean is 73."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "73", "printed": "73", "notation": null} |
nlprog_det-setting-0073918 | With 16 rows of 8 chairs and 11 empty chairs, how many chairs are taken?
117 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "117", "printed": "117", "notation": null} |
nlprog_det-setting-0073919 | An unpaid balance of $7,500 accrues 1.5% simple interest per month. How much interest accrues in 3 months?
As Python:
```python
balance = 7500
monthly_rate = 1.5 / 100 # 0.015
months = 3
interest = balance * monthly_rate * months # 337.5
print(f"{interest:.2f}")
```
Running it prints 337.50.
The interest is $337.50... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "337.50", "printed": "337.50", "notation": null} |
nlprog_det-setting-0073920 | A penalty of $250 a day accrues, capped at $5,000. What is owed after 8 days?
The computation:
```python
per_day = 250
days = 8
cap = 5000
fine = min(per_day * days, cap) # 2000
print(fine)
```
The printout reads 2000.
The fine is $2,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "2000", "printed": "2000", "notation": null} |
nlprog_det-setting-0073921 | Pay is $22.40/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 43 hours?
Script:
```python
rate = 22.4
hours = 43
regular = 40 * rate # 896.0
overtime = (hours - 40) * rate * 1.5 # 100.79999999999998
pay = regular + overtime # 996.8
print(f"{pay:.2f}")
```
Executed, it shows 996.80.
Diego e... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 150 | {"gold": "996.80", "printed": "996.80", "notation": null} |
nlprog_det-setting-0073922 | How much sales tax is charged on a $791.27 purchase at 5%? $39.56 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 26 | {"gold": "39.56", "printed": "39.56", "notation": null} |
nlprog_det-setting-0073923 | <|start|><|user|>
What is a 18% tip on a $235.31 bill?<|eot|>
<|assistant|>
The tip is $42.36.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is a 18% tip on a $235.31 bill?"
},
{
"role": "assistant",
"content": "The tip is $42.36."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "42.36", "printed": "42.36", "notation": null} |
nlprog_det-setting-0073925 | Priya drove 469 miles for work. Mileage is reimbursed at 70 cents a mile. How much is the reimbursement?
Computation in Python:
```python
miles = 469
rate = 0.7
reimbursement = miles * rate # 328.29999999999995
print(f"{reimbursement:.2f}")
```
Executed, it shows: 328.30
The reimbursement is $328.30. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "328.30", "printed": "328.30", "notation": null} |
nlprog_det-setting-0073926 | <|start|><|user|>
If a 4-year limitations period starts on March 28, 2020, when does it end?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2020, 3, 28) # datetime.date(2020, 3, 28)
years = 4
expires = accrued.replace(year=accrued.year + years) # datetime.date(2024, 3, 28)
print(expires.isofo... | chat | [
{
"role": "user",
"content": "If a 4-year limitations period starts on March 28, 2020, when does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrued = date(2020, 3, 28) # datetime.date(2020, 3, 28)\nyears = 4\nexpires = accrued.replace(year=accrued.year ... | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "2024-03-28", "printed": "2024-03-28", "notation": null} |
nlprog_det-setting-0073927 | <|start|><|user|>
Monthly rent is $900. A tenant moves in with 9 days left in a 31-day month. What is the prorated rent?<|eot|>
<|assistant|>
```python
rent = 900
days_in_month = 31
days_occupied = 9
prorated = rent * days_occupied / days_in_month # 261.2903225806452
print(f"{prorated:.2f}")
```
Output of the run — 26... | chat | [
{
"role": "user",
"content": "Monthly rent is $900. A tenant moves in with 9 days left in a 31-day month. What is the prorated rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 900\ndays_in_month = 31\ndays_occupied = 9\nprorated = rent * days_occupied / days_in_month # 261.2903225... | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "261.29", "printed": "261.29", "notation": null} |
nlprog_det-setting-0073928 | 50 of 100 members attended. What percent attended?
A few lines of Python do it:
```python
present = 50
total = 100
percent = present / total * 100 # 50.0
print(round(percent, 1))
```
# output: 50.0
50.0% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "50.0", "printed": "50.0", "notation": null} |
nlprog_det-setting-0073929 | <|start|><|user|>
At $29.00 an hour, what does 12 hours of work pay?<|eot|>
<|assistant|>
```python
rate = 29.0
hours = 12
earnings = rate * hours # 348.0
print(f"{earnings:.2f}")
```
The program outputs: 348.00
The pay is $348.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $29.00 an hour, what does 12 hours of work pay?"
},
{
"role": "assistant",
"content": "```python\nrate = 29.0\nhours = 12\nearnings = rate * hours # 348.0\nprint(f\"{earnings:.2f}\")\n```\nThe program outputs: 348.00\n\nThe pay is $348.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "348.00", "printed": "348.00", "notation": null} |
nlprog_det-setting-0073930 | At a 7% tax rate, what is the tax on $896.34?
Let's compute it with Python.
```python
price = 896.34
tax_rate = 7 / 100 # 0.07
tax = price * tax_rate # 62.74380000000001
print(f"{tax:.2f}")
```
The printout reads: 62.74
$62.74 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "62.74", "printed": "62.74", "notation": null} |
nlprog_det-setting-0073933 | <|start|><|user|>
How many meters are in 58.7 kilometers?<|eot|>
<|assistant|>
```python
km = 58.7
meters = km * 1000 # 58700.0
print(round(meters))
```
Executed, it shows: 58700
58,700 m.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many meters are in 58.7 kilometers?"
},
{
"role": "assistant",
"content": "```python\nkm = 58.7\nmeters = km * 1000 # 58700.0\nprint(round(meters))\n```\nExecuted, it shows: 58700\n\n58,700 m."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "58700", "printed": "58700", "notation": null} |
nlprog_det-setting-0073934 | Sofia's scores were 84, 67, 63, 87 and 79. What is the average score?
Computing it:
```python
scores = [84, 67, 63, 87, 79]
average = sum(scores) // len(scores) # 76
print(average)
```
The program outputs: 76
The average score is 76. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "76", "printed": "76", "notation": null} |
nlprog_det-setting-0073935 | Split $275 between Abel and Liesel in the ratio 2 to 3. What is Abel's share?
As Python:
```python
total = 275
parts_a = 2
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b) # 110
print(share_a)
```
Console output: 110
Abel gets $110. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "110", "printed": "110", "notation": null} |
nlprog_det-setting-0073937 | Buying 4 desk lamps at $20 each, 5 rulers at $14 each, 3 paper reams at $28 each, 1 tape rolls at $13 each, someone hands over $250. What change comes back?
```python
items = [(4, 20), (5, 14), (3, 28), (1, 13)]
total = sum(q * p for q, p in items) # 247
paid = 250
change = paid - total # 3
print(change)
```
It prin... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0073938 | An office budget of $5,000 has expenses of $1,602, $2,946. How much of the budget is left?
A short script:
```python
budget = 5000
expenses = [1602, 2946]
left = budget - sum(expenses) # 452
print(left)
```
This prints: 452
The remaining budget is $452. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "452", "printed": "452", "notation": null} |
nlprog_det-setting-0073939 | An unpaid balance of $12,000 accrues 2% simple interest per month. How much interest accrues in 4 months?
A Python solution:
```python
balance = 12000
monthly_rate = 2 / 100 # 0.02
months = 4
interest = balance * monthly_rate * months # 960.0
print(f"{interest:.2f}")
```
Output = 960.00
$960.00 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "960.00", "printed": "960.00", "notation": null} |
nlprog_det-setting-0073940 | <|start|><|system|>
Avoid unnecessary detail.<|eot|>
<|user|>
Notice was given on March 2, 2018. The notice period is 10 days. When does it run out?<|eot|>
<|assistant|>
It ends on March 12, 2018.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Avoid unnecessary detail."
},
{
"role": "user",
"content": "Notice was given on March 2, 2018. The notice period is 10 days. When does it run out?"
},
{
"role": "assistant",
"content": "It ends on March 12, 2018."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 49 | {"gold": "2018-03-12", "printed": "2018-03-12", "notation": null} |
nlprog_det-setting-0073941 | <|start|><|user|>
A penalty of $100 a day accrues, capped at $5,000. What is owed after 20 days?<|eot|>
<|assistant|>
per_day = 100
days = 20
cap = 5000
fine = min(per_day * days, cap) # 2000
print(fine)
Run result = 2000
The fine is $2,000.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A penalty of $100 a day accrues, capped at $5,000. What is owed after 20 days?"
},
{
"role": "assistant",
"content": " per_day = 100\n days = 20\n cap = 5000\n fine = min(per_day * days, cap) # 2000\n print(fine)\nRun result = 2000\n\nThe fine is $2,... | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "2000", "printed": "2000", "notation": null} |
nlprog_det-setting-0073943 | What average speed covers 598 miles in 2 hours?
Python does the arithmetic:
```python
distance = 598
hours = 2
speed = distance / hours
print(round(speed))
```
The run gives 299, as expected.
The average speed is 299 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "299", "printed": "299", "notation": null} |
nlprog_det-setting-0073944 | An attorney bills 12 hours at $300 per hour. What is the bill?
Python code:
hours = 12
rate = 300
bill = hours * rate # 3600
print(f"{bill:.2f}")
Run result: 3600.00
The bill is $3,600.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "3600.00", "printed": "3600.00", "notation": null} |
nlprog_det-setting-0073945 | A trial runs from April 24, 2025 to April 27, 2025, counting both days. How many calendar days is that?
Python code:
```python
from datetime import date
first = date(2025, 4, 24) # datetime.date(2025, 4, 24)
last = date(2025, 4, 27) # datetime.date(2025, 4, 27)
days = (last - first).days + 1 # 4
print(days)
```
Exe... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0073946 | A storeroom has 1885 batteries. The office uses 12 a day. How many are left after 17 days?
Programmatically:
```python
stock = 1885
per_day = 12
days = 17
left = stock - per_day * days # 1681
print(left)
```
Run it and it prints 1681.
1681 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "1681", "printed": "1681", "notation": null} |
nlprog_det-setting-0073947 | <|start|><|user|>
Ines lends $2,500 at 5% simple interest per year for 6 years. How much interest is earned?<|eot|>
<|assistant|>
```python
principal = 2500
rate = 5 / 100 # 0.05
years = 6
interest = principal * rate * years # 750.0
print(f"{interest:.2f}")
```
Execution prints: 750.00
It earns $750.00.<|eot|>
<|end... | chat | [
{
"role": "user",
"content": "Ines lends $2,500 at 5% simple interest per year for 6 years. How much interest is earned?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 2500\nrate = 5 / 100 # 0.05\nyears = 6\ninterest = principal * rate * years # 750.0\nprint(f\"{interest:.2f}\")... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "750.00", "printed": "750.00", "notation": null} |
nlprog_det-setting-0073949 | <|start|><|user|>
An unpaid balance of $7,500 accrues 1% simple interest per month. How much interest accrues in 6 months?<|eot|>
<|assistant|>
The interest is $450.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An unpaid balance of $7,500 accrues 1% simple interest per month. How much interest accrues in 6 months?"
},
{
"role": "assistant",
"content": "The interest is $450.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 47 | {"gold": "450.00", "printed": "450.00", "notation": null} |
nlprog_det-setting-0073950 | What is a 10% tip on a $94.58 bill?
A short script:
```python
bill = 94.58
tip_rate = 10 / 100 # 0.1
tip = bill * tip_rate # 9.458
print(f"{tip:.2f}")
```
This prints 9.46, as expected.
The tip is $9.46. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "9.46", "printed": "9.46", "notation": null} |
nlprog_det-setting-0073951 | 54 volunteers are split into 4 equal teams. How many are on each team, and how many are left over?
Translated to Python:
```python
total = 54
groups = 4
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
The run gives 13 each, 2 left over, as expected.
The answer: 13 ea... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "13 each, 2 left over", "printed": "13 each, 2 left over", "notation": null} |
nlprog_det-setting-0073952 | A 45-day notice period begins on April 23, 2025. On what date does it end?
A Python solution:
```python
from datetime import date, timedelta
start = date(2025, 4, 23) # datetime.date(2025, 4, 23)
end = start + timedelta(days=45) # datetime.date(2025, 6, 7)
print(end.isoformat())
```
It prints: 2025-06-07
It ends on... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "2025-06-07", "printed": "2025-06-07", "notation": null} |
nlprog_det-setting-0073953 | <|start|><|system|>
You are a careful reviewer of figures.<|eot|>
<|user|>
Hugo's scores were 92, 56, 88, 92, 63 and 59. What is the average score?<|eot|>
<|assistant|>
scores = [92, 56, 88, 92, 63, 59]
average = sum(scores) // len(scores) # 75
print(average)
This prints 75.
The mean is 75.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a careful reviewer of figures."
},
{
"role": "user",
"content": "Hugo's scores were 92, 56, 88, 92, 63 and 59. What is the average score?"
},
{
"role": "assistant",
"content": " scores = [92, 56, 88, 92, 63, 59]\n average = sum(scores) //... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "75", "printed": "75", "notation": null} |
nlprog_det-setting-0073954 | Buying 4 ink cartridges at $23 each, 2 desk lamps at $13 each, someone hands over $150. What change comes back?
Here's the code.
```python
items = [(4, 23), (2, 13)]
total = sum(q * p for q, p in items) # 118
paid = 150
change = paid - total # 32
print(change)
```
Output: 32
The change is $32. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0073955 | <|start|><|system|>
Tools you may use:
{"name": "interpreter", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|>
<|user|>
At $19.70 an hour,... | chat | [
{
"role": "system",
"content": "Tools you may use:\n{\"name\": \"interpreter\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require... | nlprog_det | setting | original | null | deterministic | [] | [] | 203 | {"gold": "472.80", "printed": "472.80", "notation": null} |
nlprog_det-setting-0073956 | A storeroom has 655 folders. The office uses 40 a day. How many are left after 16 days?
Written as code:
stock = 655
per_day = 40
days = 16
left = stock - per_day * days # 15
print(left)
Result:
15
15 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0073957 | <|start|><|user|>
175 copies of a 53-page packet are printed at $0.15 per page. What is the cost?<|eot|>
<|assistant|>
```python
pages = 53
copies = 175
cost_per_page = 0.15
cost = pages * copies * cost_per_page # 1391.25
print(f"{cost:.2f}")
```
stdout = 1391.25
Printing costs $1,391.25.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "175 copies of a 53-page packet are printed at $0.15 per page. What is the cost?"
},
{
"role": "assistant",
"content": "```python\npages = 53\ncopies = 175\ncost_per_page = 0.15\ncost = pages * copies * cost_per_page # 1391.25\nprint(f\"{cost:.2f}\")\n```\nstdout = ... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "1391.25", "printed": "1391.25", "notation": null} |
nlprog_det-setting-0073958 | After an initial $6,000, the remainder of a $48,000 grant is paid in 12 equal parts. What is each part?
Here is a short program for it.
```python
grant = 48000
up_front = 6000
installments = 12
each = (grant - up_front) / installments # 3500.0
print(f"{each:.2f}")
```
# run result: 3500.00
$3,500.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "3500.00", "printed": "3500.00", "notation": null} |
nlprog_det-setting-0073959 | <|start|><|system|>
You are a math tutor.<|eot|>
<|user|>
A $150 dinner bill gets a 20% tip, and 2 people share the cost equally. What is each person's share?<|eot|>
<|assistant|>
```python
bill = 150
tip_rate = 20 / 100 # 0.2
people = 2
each = bill * (1 + tip_rate) / people # 90.0
print(f"{each:.2f}")
```
Run result... | chat | [
{
"role": "system",
"content": "You are a math tutor."
},
{
"role": "user",
"content": "A $150 dinner bill gets a 20% tip, and 2 people share the cost equally. What is each person's share?"
},
{
"role": "assistant",
"content": "```python\nbill = 150\ntip_rate = 20 / 100 # 0.2\npeopl... | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "90.00", "printed": "90.00", "notation": null} |
nlprog_det-setting-0073961 | How much is a $79 daily meal allowance over 8 days?
One way, in code:
```python
days = 8
meal_rate = 79
total = days * meal_rate # 632
print(total)
```
# out: 632
That comes to $632. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "632", "printed": "632", "notation": null} |
nlprog_det-setting-0073962 | The statute was enacted in 2023. How many years had passed by 2033?
In code:
start_year = 2023
end_year = 2033
print(end_year - start_year)
Printed:
10
That is 10 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 62 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0073963 | <|start|><|user|>
Equal monthly payments repay $2,400 plus 6% simple yearly interest over 12 months. How large is a payment?<|eot|>
<|assistant|>
```python
principal = 2400
annual_rate = 6 / 100 # 0.06
months = 12
interest = principal * annual_rate * months / 12 # 144.0
payment = (principal + interest) / months # 21... | chat | [
{
"role": "user",
"content": "Equal monthly payments repay $2,400 plus 6% simple yearly interest over 12 months. How large is a payment?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 2400\nannual_rate = 6 / 100 # 0.06\nmonths = 12\ninterest = principal * annual_rate * months / 1... | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "212.00", "printed": "212.00", "notation": null} |
nlprog_det-setting-0073964 | <|start|><|user|>
Convert 3 h 37 min (the length of a film) to minutes.<|eot|>
<|assistant|>
```python
hours = 3
minutes = 37
total_minutes = hours * 60 + minutes # 217
print(total_minutes)
```
Result = 217
That is 217 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 3 h 37 min (the length of a film) to minutes."
},
{
"role": "assistant",
"content": "```python\nhours = 3\nminutes = 37\ntotal_minutes = hours * 60 + minutes # 217\nprint(total_minutes)\n```\nResult = 217\n\nThat is 217 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "217", "printed": "217", "notation": null} |
nlprog_det-setting-0073965 | Starting with 1847 staplers and using 27 per day, how many remain after 4 days?
In Python:
```python
stock = 1847
per_day = 27
days = 4
left = stock - per_day * days # 1739
print(left)
```
The interpreter prints: 1739
1739 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "1739", "printed": "1739", "notation": null} |
nlprog_det-setting-0073967 | Scale 450 g of flour from 6 servings to 3 servings.
Programmatically:
```python
grams = 450
serves = 6
needed_for = 3
scaled = grams * needed_for // serves # 225
print(scaled)
```
Executed, it shows: 225
225 grams of flour are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "225", "printed": "225", "notation": null} |
nlprog_det-setting-0073968 | A court charges $10 per request plus $0.25 per page after the first 0 pages. What does a 11-page copy cost?
Computation in Python:
```python
pages = 11
base = 10
per_page = 0.25
free_pages = 0
cost = base + max(0, pages - free_pages) * per_page # 12.75
print(f"{cost:.2f}")
```
(Out: 12.75)
The copy costs $12.75. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "12.75", "printed": "12.75", "notation": null} |
nlprog_det-setting-0073969 | 18 copies of a 58-page packet are printed at $0.10 per page. What is the cost?
Set it up in Python:
pages = 58
copies = 18
cost_per_page = 0.1
cost = pages * copies * cost_per_page # 104.4
print(f"{cost:.2f}")
The program prints: 104.40
The job costs $104.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "104.40", "printed": "104.40", "notation": null} |
nlprog_det-setting-0073970 | <|start|><|user|>
Convert 20 °C to Fahrenheit.<|eot|>
<|assistant|>
```python
celsius = 20
fahrenheit = celsius * 9 / 5 + 32
print(round(fahrenheit))
```
(Output: 68)
It equals 68 degrees Fahrenheit.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 20 °C to Fahrenheit."
},
{
"role": "assistant",
"content": "```python\ncelsius = 20\nfahrenheit = celsius * 9 / 5 + 32\nprint(round(fahrenheit))\n```\n(Output: 68)\n\nIt equals 68 degrees Fahrenheit."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "68", "printed": "68", "notation": null} |
nlprog_det-setting-0073971 | <|start|><|user|>
A hall has 28 rows of 18 seats, and 16 seats are empty. How many people are seated?<|eot|>
<|assistant|>
```python
rows = 28
per_row = 18
empty = 16
seated = rows * per_row - empty # 488
print(seated)
```
(Console output: 488)
488 people are seated.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hall has 28 rows of 18 seats, and 16 seats are empty. How many people are seated?"
},
{
"role": "assistant",
"content": "```python\nrows = 28\nper_row = 18\nempty = 16\nseated = rows * per_row - empty # 488\nprint(seated)\n```\n(Console output: 488)\n\n488 people... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "488", "printed": "488", "notation": null} |
nlprog_det-setting-0073972 | From 1996 to 2020, how many years is that?
The computation:
start_year = 1996
end_year = 2020
print(end_year - start_year)
Printed result — 24
That is 24 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 56 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0073973 | <|start|><|system|>
Tools (call with JSON):
[{"name": "py_exec", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
If a 6-year limitations peri... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"py_exec\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 245 | {"gold": "2023-03-08", "printed": "2023-03-08", "notation": null} |
nlprog_det-setting-0073974 | 367 files go into boxes of 25. How many boxes does that take?
A Python solution:
```python
import math
files = 367
per_box = 25
boxes = math.ceil(files / per_box) # 15
print(boxes)
```
Output of the run: 15
15 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0073975 | Printing costs 15 cents a page. What does it cost to print 20 copies of a 21-page handout?
Translated to Python:
```python
pages = 21
copies = 20
cost_per_page = 0.15
cost = pages * copies * cost_per_page # 63.0
print(f"{cost:.2f}")
```
(Program output: 63.00)
The job costs $63.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "63.00", "printed": "63.00", "notation": null} |
nlprog_det-setting-0073976 | <|start|><|user|>
11 boxes hold 12 file boxes each. After 20 are handed out, how many are left?<|eot|>
<|assistant|>
```python
boxes = 11
per_box = 12
given_away = 20
left = boxes * per_box - given_away # 112
print(left)
```
The program prints 112.
That leaves 112 file boxes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "11 boxes hold 12 file boxes each. After 20 are handed out, how many are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 11\nper_box = 12\ngiven_away = 20\nleft = boxes * per_box - given_away # 112\nprint(left)\n```\nThe program prints 112.\n\nThat l... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "112", "printed": "112", "notation": null} |
nlprog_det-setting-0073977 | 19 calendars cost $15 apiece. With 8% tax added, what is the total?
We can compute it in Python.
```python
quantity = 19
unit_price = 15
subtotal = quantity * unit_price # 285
total = subtotal * (1 + 8 / 100) # 307.8
print(f"{total:.2f}")
```
Program output — 307.80
The total with tax is $307.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "307.80", "printed": "307.80", "notation": null} |
nlprog_det-setting-0073978 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
Counting only Monday through Friday, how many business days are there after October 2, 2024 through October 15, 2024?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2024, 10, 2)
end = date(2024, 10, 15)
count = 0
for k in... | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Counting only Monday through Friday, how many business days are there after October 2, 2024 through October 15, 2024?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import ... | nlprog_det | setting | original | null | deterministic | [] | [] | 166 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0073979 | <|start|><|system|>
Be exact with numbers.<|eot|>
<|user|>
Equipment costs $18,000, has a salvage value of $0, and a useful life of 8 years. What is the straight-line depreciation per year?<|eot|>
<|assistant|>
```python
cost = 18000
salvage = 0
years = 8
per_year = (cost - salvage) / years # 2250.0
print(f"{per_year:... | chat | [
{
"role": "system",
"content": "Be exact with numbers."
},
{
"role": "user",
"content": "Equipment costs $18,000, has a salvage value of $0, and a useful life of 8 years. What is the straight-line depreciation per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 18000\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "2250.00", "printed": "2250.00", "notation": null} |
nlprog_det-setting-0073980 | <|start|><|user|>
Equal monthly payments repay $3,600 plus 8% simple yearly interest over 24 months. How large is a payment?<|eot|>
<|assistant|>
```python
principal = 3600
annual_rate = 8 / 100 # 0.08
months = 24
interest = principal * annual_rate * months / 12 # 576.0
payment = (principal + interest) / months # 17... | chat | [
{
"role": "user",
"content": "Equal monthly payments repay $3,600 plus 8% simple yearly interest over 24 months. How large is a payment?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 3600\nannual_rate = 8 / 100 # 0.08\nmonths = 24\ninterest = principal * annual_rate * months / 1... | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "174.00", "printed": "174.00", "notation": null} |
nlprog_det-setting-0073981 | <|start|><|user|>
Each storage box holds 25 files. How many boxes are needed for 571 files?<|eot|>
<|assistant|>
```python
import math
files = 571
per_box = 25
boxes = math.ceil(files / per_box) # 23
print(boxes)
```
Program output: 23
23 boxes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each storage box holds 25 files. How many boxes are needed for 571 files?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 571\nper_box = 25\nboxes = math.ceil(files / per_box) # 23\nprint(boxes)\n```\nProgram output: 23\n\n23 boxes are needed... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0073982 | Filing fees are $25 per document. What do 16 filings cost?
Coded up:
```python
fee = 25
filings = 16
total = fee * filings # 400
print(total)
```
(Result: 400)
$400 in filing fees. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "400", "printed": "400", "notation": null} |
nlprog_det-setting-0073983 | A $3,600 loan carries 8% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?
Translated to Python:
```python
principal = 3600
annual_rate = 8 / 100 # 0.08
months = 24
interest = principal * annual_rate * months / 12 # 576.0
payment = (principal + ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 154 | {"gold": "174.00", "printed": "174.00", "notation": null} |
nlprog_det-setting-0073984 | <|start|><|user|>
An unpaid balance of $1,000 accrues 1.5% simple interest per month. How much interest accrues in 2 months?<|eot|>
<|assistant|>
balance = 1000
monthly_rate = 1.5 / 100 # 0.015
months = 2
interest = balance * monthly_rate * months # 30.0
print(f"{interest:.2f}")
Interpreter output... | chat | [
{
"role": "user",
"content": "An unpaid balance of $1,000 accrues 1.5% simple interest per month. How much interest accrues in 2 months?"
},
{
"role": "assistant",
"content": " balance = 1000\n monthly_rate = 1.5 / 100 # 0.015\n months = 2\n interest = balance * monthly_rate * month... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "30.00", "printed": "30.00", "notation": null} |
nlprog_det-setting-0073985 | 11 boxes hold 8 clipboards each. After 5 are handed out, how many are left?
A Python solution:
```python
boxes = 11
per_box = 8
given_away = 5
left = boxes * per_box - given_away # 83
print(left)
```
# stdout: 83
83 clipboards are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "83", "printed": "83", "notation": null} |
nlprog_det-setting-0073986 | <|start|><|user|>
What percentage of $5,000 is $400?<|eot|>
<|assistant|>
```python
budget = 5000
spent = 400
percent = spent / budget * 100 # 8.0
print(round(percent, 1))
```
Run it and it prints: 8.0
That is 8.0% of the budget.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What percentage of $5,000 is $400?"
},
{
"role": "assistant",
"content": "```python\nbudget = 5000\nspent = 400\npercent = spent / budget * 100 # 8.0\nprint(round(percent, 1))\n```\nRun it and it prints: 8.0\n\nThat is 8.0% of the budget."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "8.0", "printed": "8.0", "notation": null} |
nlprog_det-setting-0073987 | <|start|><|user|>
A hearing lasted 1 hours and 37 minutes. How many minutes is that?<|eot|>
<|assistant|>
```python
hours = 1
minutes = 37
total_minutes = hours * 60 + minutes # 97
print(total_minutes)
```
(Execution result: 97)
That is 97 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hearing lasted 1 hours and 37 minutes. How many minutes is that?"
},
{
"role": "assistant",
"content": "```python\nhours = 1\nminutes = 37\ntotal_minutes = hours * 60 + minutes # 97\nprint(total_minutes)\n```\n(Execution result: 97)\n\nThat is 97 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "97", "printed": "97", "notation": null} |
nlprog_det-setting-0073988 | Copies cost $5 plus $0.25 for each page beyond 20. How much for 16 pages?
Translated to Python:
```python
pages = 16
base = 5
per_page = 0.25
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page
print(f"{cost:.2f}")
```
Running it prints 5.00, as expected.
The copy costs $5.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "5.00", "printed": "5.00", "notation": null} |
nlprog_det-setting-0073989 | <|start|><|user|>
A lease runs for 36 months at $1,475 per month. How much rent is paid over the whole term?<|eot|>
<|assistant|>
```python
monthly_rent = 1475
months = 36
total = monthly_rent * months # 53100
print(total)
```
Run it and it prints: 53100
The rent over the term is $53,100.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lease runs for 36 months at $1,475 per month. How much rent is paid over the whole term?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 1475\nmonths = 36\ntotal = monthly_rent * months # 53100\nprint(total)\n```\nRun it and it prints: 53100\n\nT... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "53100", "printed": "53100", "notation": null} |
nlprog_det-setting-0073990 | What does $1,000 grow to in 4 years at 5% annual compounding?
In code:
```python
principal = 1000
rate = 5 / 100 # 0.05
years = 4
value = principal * (1 + rate) ** years # 1215.5062500000001
print(f"{value:.2f}")
```
# result: 1215.51
The balance is $1,215.51. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "1215.51", "printed": "1215.51", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.