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-0064046 | How much sales tax is charged on a $379.01 purchase at 5%?
In Python:
```python
price = 379.01
tax_rate = 5 / 100 # 0.05
tax = price * tax_rate # 18.9505
print(f"{tax:.2f}")
```
# result: 18.95
The tax is $18.95. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "18.95", "printed": "18.95", "notation": null} |
nlprog_det-setting-0064047 | The paralegal logged 8 hours at a rate of $150. How much is billed?
Computation in Python:
hours = 8
rate = 150
bill = hours * rate
print(f"{bill:.2f}")
This prints: 1200.00
That comes to $1,200.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "1200.00", "printed": "1200.00", "notation": null} |
nlprog_det-setting-0064048 | <|start|><|system|>
Answer accurately and briefly.<|eot|>
<|user|>
To read 168 pages in 6 days, how many pages per day are needed?<|eot|>
<|assistant|>
28 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer accurately and briefly."
},
{
"role": "user",
"content": "To read 168 pages in 6 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": "28 pages a day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "28", "printed": "28", "notation": null} |
nlprog_det-setting-0064049 | Straight-line depreciation: cost $12,000, salvage $0, 10 years. How much per year?
A Python solution:
```python
cost = 12000
salvage = 0
years = 10
per_year = (cost - salvage) / years # 1200.0
print(f"{per_year:.2f}")
```
stdout — 1200.00
$1,200.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "1200.00", "printed": "1200.00", "notation": null} |
nlprog_det-setting-0064050 | How much sales tax is charged on a $464.21 purchase at 7%?
Let the code do the arithmetic:
```python
price = 464.21
tax_rate = 7 / 100 # 0.07
tax = price * tax_rate # 32.4947
print(f"{tax:.2f}")
```
Out — 32.49
The tax is $32.49. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "32.49", "printed": "32.49", "notation": null} |
nlprog_det-setting-0064051 | <|start|><|user|>
How many units at $15 each (variable cost $10) cover $6,000 of fixed costs?<|eot|>
<|assistant|>
```python
import math
fixed = 6000
price = 15
variable = 10
units = math.ceil(fixed / (price - variable)) # 1200
print(units)
```
# output: 1200
1200 units are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many units at $15 each (variable cost $10) cover $6,000 of fixed costs?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 6000\nprice = 15\nvariable = 10\nunits = math.ceil(fixed / (price - variable)) # 1200\nprint(units)\n```\n# output: 12... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "1200", "printed": "1200", "notation": null} |
nlprog_det-setting-0064052 | <|start|><|system|>
Tool definitions:
{"name": "python_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|>
<|user|>
Wanjiru buys 6 boxes of 6 staplers each ... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"python_exec\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\"]}}"
... | nlprog_det | setting | original | null | deterministic | [] | [] | 235 | {"gold": "29", "printed": "29", "notation": null} |
nlprog_det-setting-0064053 | <|start|><|user|>
Walls total 471 sq ft and each can covers 400 sq ft. How many cans should be bought?<|eot|>
<|assistant|>
import math
area = 471
coverage = 400
cans = math.ceil(area / coverage) # 2
print(cans)
Python prints 2, as expected.
2 cans are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Walls total 471 sq ft and each can covers 400 sq ft. How many cans should be bought?"
},
{
"role": "assistant",
"content": " import math\n area = 471\n coverage = 400\n cans = math.ceil(area / coverage) # 2\n print(cans)\nPython prints 2, as expected... | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0064054 | An attorney bills 8 hours at $180 per hour. What is the bill?
One way, in code:
hours = 8
rate = 180
bill = hours * rate # 1440
print(f"{bill:.2f}")
On running, it outputs 1440.00.
That comes to $1,440.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "1440.00", "printed": "1440.00", "notation": null} |
nlprog_det-setting-0064055 | Express 188 hours in days and hours.
hours = 188
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
Result:
7 days and 20 hours
188 hours is 7 days and 20 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 68 | {"gold": "7 days and 20 hours", "printed": "7 days and 20 hours", "notation": null} |
nlprog_det-setting-0064056 | If a 4-year limitations period starts on October 14, 2018, when does it end?
Program:
```python
from datetime import date
accrued = date(2018, 10, 14) # datetime.date(2018, 10, 14)
years = 4
expires = accrued.replace(year=accrued.year + years) # datetime.date(2022, 10, 14)
print(expires.isoformat())
```
The program ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "2022-10-14", "printed": "2022-10-14", "notation": null} |
nlprog_det-setting-0064057 | <|start|><|system|>
Functions:
{"name": "math_engine", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}
{"name": "convert_units", "description": "Convert... | chat | [
{
"role": "system",
"content": "Functions:\n{\"name\": \"math_engine\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program... | nlprog_det | setting | original | null | deterministic | [] | [] | 387 | {"gold": "943.60", "printed": "943.60", "notation": null} |
nlprog_det-setting-0064059 | <|start|><|user|>
Straight-line depreciation: cost $45,000, salvage $6,000, 10 years. How much per year?<|eot|>
<|assistant|>
cost = 45000
salvage = 6000
years = 10
per_year = (cost - salvage) / years # 3900.0
print(f"{per_year:.2f}")
(Printed: 3900.00)
$3,900.00 a year.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Straight-line depreciation: cost $45,000, salvage $6,000, 10 years. How much per year?"
},
{
"role": "assistant",
"content": " cost = 45000\n salvage = 6000\n years = 10\n per_year = (cost - salvage) / years # 3900.0\n print(f\"{per_year:.2f}\")\n(Pr... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "3900.00", "printed": "3900.00", "notation": null} |
nlprog_det-setting-0064060 | <|start|><|user|>
A client paid a $5,000 retainer. The firm has billed 4 hours at $150 per hour. How much of the retainer is left?<|eot|>
<|assistant|>
```python
retainer = 5000
hours = 4
rate = 150
left = retainer - hours * rate # 4400
print(left)
```
(Printed: 4400)
The remaining balance is $4,400.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A client paid a $5,000 retainer. The firm has billed 4 hours at $150 per hour. How much of the retainer is left?"
},
{
"role": "assistant",
"content": "```python\nretainer = 5000\nhours = 4\nrate = 150\nleft = retainer - hours * rate # 4400\nprint(left)\n```\n(Prin... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "4400", "printed": "4400", "notation": null} |
nlprog_det-setting-0064061 | <|start|><|user|>
Prorate $2,400 of monthly rent for 22 days of a 31-day month.<|eot|>
<|assistant|>
```python
rent = 2400
days_in_month = 31
days_occupied = 22
prorated = rent * days_occupied / days_in_month # 1703.225806451613
print(f"{prorated:.2f}")
```
stdout = 1703.23
The tenant owes $1,703.23.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Prorate $2,400 of monthly rent for 22 days of a 31-day month."
},
{
"role": "assistant",
"content": "```python\nrent = 2400\ndays_in_month = 31\ndays_occupied = 22\nprorated = rent * days_occupied / days_in_month # 1703.225806451613\nprint(f\"{prorated:.2f}\")\n```... | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "1703.23", "printed": "1703.23", "notation": null} |
nlprog_det-setting-0064062 | <|start|><|system|>
You are a careful reviewer of figures.<|eot|>
<|user|>
Find the mean of these test scores: 90, 87 and 54.<|eot|>
<|assistant|>
scores = [90, 87, 54]
average = sum(scores) // len(scores) # 77
print(average)
The script prints 77.
The mean is 77.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a careful reviewer of figures."
},
{
"role": "user",
"content": "Find the mean of these test scores: 90, 87 and 54."
},
{
"role": "assistant",
"content": " scores = [90, 87, 54]\n average = sum(scores) // len(scores) # 77\n print(aver... | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "77", "printed": "77", "notation": null} |
nlprog_det-setting-0064063 | A hearing is set for September 3, 2012. What day of the week is that?
As a program:
from datetime import date
hearing = date(2012, 9, 3) # datetime.date(2012, 9, 3)
print(hearing.strftime("%A"))
(Output: Monday)
It is a Monday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "Monday", "printed": "Monday", "notation": null} |
nlprog_det-setting-0064064 | Straight-line depreciation: cost $45,000, salvage $3,000, 8 years. How much per year?
Let the code do the arithmetic:
cost = 45000
salvage = 3000
years = 8
per_year = (cost - salvage) / years # 5250.0
print(f"{per_year:.2f}")
Run result: 5250.00
Depreciation is $5,250.00 per year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "5250.00", "printed": "5250.00", "notation": null} |
nlprog_det-setting-0064065 | How many meters are in 68.4 kilometers?
```python
km = 68.4
meters = km * 1000 # 68400.0
print(round(meters))
```
The interpreter prints 68400.
68,400 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "68400", "printed": "68400", "notation": null} |
nlprog_det-setting-0064066 | A water bill is $20 plus $5.10 per thousand gallons beyond the first 2 thousand. What is the bill for 18 thousand gallons?
Python does the arithmetic:
```python
base = 20
rate = 5.1
used = 18
free = 2
bill = base + rate * max(0, used - free) # 101.6
print(f"{bill:.2f}")
```
Executing it gives 101.60, as expected.
Th... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "101.60", "printed": "101.60", "notation": null} |
nlprog_det-setting-0064068 | <|start|><|user|>
Straight-line depreciation: cost $24,000, salvage $3,000, 4 years. How much per year?<|eot|>
<|assistant|>
```python
cost = 24000
salvage = 3000
years = 4
per_year = (cost - salvage) / years # 5250.0
print(f"{per_year:.2f}")
```
Result = 5250.00
Depreciation is $5,250.00 per year.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Straight-line depreciation: cost $24,000, salvage $3,000, 4 years. How much per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 24000\nsalvage = 3000\nyears = 4\nper_year = (cost - salvage) / years # 5250.0\nprint(f\"{per_year:.2f}\")\n```\nResult = ... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "5250.00", "printed": "5250.00", "notation": null} |
nlprog_det-setting-0064069 | <|start|><|system|>
Respond clearly and to the point.<|eot|>
<|user|>
The landlord deducts $60 from a $1,000 deposit. What is returned to the tenant?<|eot|>
<|assistant|>
```python
deposit = 1000
deductions = [60]
refund = deposit - sum(deductions) # 940
print(refund)
```
# output: 940
The refund is $940.<|eot|>
<|en... | chat | [
{
"role": "system",
"content": "Respond clearly and to the point."
},
{
"role": "user",
"content": "The landlord deducts $60 from a $1,000 deposit. What is returned to the tenant?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 1000\ndeductions = [60]\nrefund = deposit - ... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "940", "printed": "940", "notation": null} |
nlprog_det-setting-0064070 | <|start|><|system|>
Give the answer first.<|eot|>
<|user|>
Starting from $8,000, the team spends $2,156, $3,714, $2,796. What remains?<|eot|>
<|assistant|>
```python
budget = 8000
expenses = [2156, 3714, 2796]
left = budget - sum(expenses) # -666
print(left)
```
The script prints -666.
The remaining budget is -$666.<... | chat | [
{
"role": "system",
"content": "Give the answer first."
},
{
"role": "user",
"content": "Starting from $8,000, the team spends $2,156, $3,714, $2,796. What remains?"
},
{
"role": "assistant",
"content": "```python\nbudget = 8000\nexpenses = [2156, 3714, 2796]\nleft = budget - sum(exp... | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "-666", "printed": "-666", "notation": null} |
nlprog_det-setting-0064071 | <|start|><|system|>
You are an assistant for a small office.<|eot|>
<|user|>
Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 54 hours?<|eot|>
<|assistant|>
Quinn earns $1,128.50.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are an assistant for a small office."
},
{
"role": "user",
"content": "Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 54 hours?"
},
{
"role": "assistant",
"content": "Quinn earns $1,128.50."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 67 | {"gold": "1128.50", "printed": "1128.50", "notation": null} |
nlprog_det-setting-0064072 | An attorney bills 2 hours at $150 per hour. What is the bill? The bill is $300.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 25 | {"gold": "300.00", "printed": "300.00", "notation": null} |
nlprog_det-setting-0064074 | <|start|><|user|>
Wanjiru has 8 documents to file, and each filing costs $75. How much are the filing fees in total?<|eot|>
<|assistant|>
The total fee is $600.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Wanjiru has 8 documents to file, and each filing costs $75. How much are the filing fees in total?"
},
{
"role": "assistant",
"content": "The total fee is $600."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0064075 | <|start|><|user|>
At 2% a month (simple), what interest builds on $7,500 over 6 months?<|eot|>
<|assistant|>
balance = 7500
monthly_rate = 2 / 100 # 0.02
months = 6
interest = balance * monthly_rate * months # 900.0
print(f"{interest:.2f}")
Run output: 900.00
The interest is $900.00.<|eot|>
<|end... | chat | [
{
"role": "user",
"content": "At 2% a month (simple), what interest builds on $7,500 over 6 months?"
},
{
"role": "assistant",
"content": " balance = 7500\n monthly_rate = 2 / 100 # 0.02\n months = 6\n interest = balance * monthly_rate * months # 900.0\n print(f\"{interest:.2f}\... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "900.00", "printed": "900.00", "notation": null} |
nlprog_det-setting-0064076 | <|start|><|system|>
Tools you may use:
[{"name": "interpreter", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
A $150 dinner bill gets... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"interpreter\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [... | nlprog_det | setting | original | null | deterministic | [] | [] | 240 | {"gold": "59.00", "printed": "59.00", "notation": null} |
nlprog_det-setting-0064077 | <|start|><|user|>
At an exchange rate of 0.74 CAD per USD, how many CAD is 816 USD?<|eot|>
<|assistant|>
That is 603.84 CAD.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At an exchange rate of 0.74 CAD per USD, how many CAD is 816 USD?"
},
{
"role": "assistant",
"content": "That is 603.84 CAD."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "603.84", "printed": "603.84", "notation": null} |
nlprog_det-setting-0064078 | <|start|><|user|>
Starting with 1357 markers and using 35 per day, how many remain after 14 days?<|eot|>
<|assistant|>
stock = 1357
per_day = 35
days = 14
left = stock - per_day * days # 867
print(left)
Running it prints 867, as expected.
867 markers are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting with 1357 markers and using 35 per day, how many remain after 14 days?"
},
{
"role": "assistant",
"content": " stock = 1357\n per_day = 35\n days = 14\n left = stock - per_day * days # 867\n print(left)\nRunning it prints 867, as expected.\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "867", "printed": "867", "notation": null} |
nlprog_det-setting-0064079 | <|start|><|user|>
A 5% increase is applied to $1,100 monthly rent. What is the new amount?<|eot|>
<|assistant|>
```python
rent = 1100
increase = 5 / 100 # 0.05
new_rent = rent * (1 + increase) # 1155.0
print(f"{new_rent:.2f}")
```
The script prints 1155.00.
The new rent is $1,155.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 5% increase is applied to $1,100 monthly rent. What is the new amount?"
},
{
"role": "assistant",
"content": "```python\nrent = 1100\nincrease = 5 / 100 # 0.05\nnew_rent = rent * (1 + increase) # 1155.0\nprint(f\"{new_rent:.2f}\")\n```\nThe script prints 1155.00... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "1155.00", "printed": "1155.00", "notation": null} |
nlprog_det-setting-0064081 | Find the mean of these test scores: 59, 77, 66 and 54.
Computation in Python:
```python
scores = [59, 77, 66, 54]
average = sum(scores) // len(scores) # 64
print(average)
```
It prints 64.
The average score is 64. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "64", "printed": "64", "notation": null} |
nlprog_det-setting-0064082 | Convert 2 h 45 min (the length of a training session) to minutes.
```python
hours = 2
minutes = 45
total_minutes = hours * 60 + minutes # 165
print(total_minutes)
```
The program prints 165, as expected.
The training session lasted 165 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "165", "printed": "165", "notation": null} |
nlprog_det-setting-0064083 | A clerk's office charges $90 for each filing. Maren submits 5 filings. What is the total fee?
In code:
```python
fee = 90
filings = 5
total = fee * filings
print(total)
```
Result:
450
The filings cost $450 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "450", "printed": "450", "notation": null} |
nlprog_det-setting-0064084 | A lease runs for 18 months at $1,640 per month. How much rent is paid over the whole term?
In total, $29,520 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "29520", "printed": "29520", "notation": null} |
nlprog_det-setting-0064085 | A client paid a $7,500 retainer. The firm has billed 3 hours at $275 per hour. How much of the retainer is left?
Program:
```python
retainer = 7500
hours = 3
rate = 275
left = retainer - hours * rate # 6675
print(left)
```
The interpreter prints 6675.
$6,675 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "6675", "printed": "6675", "notation": null} |
nlprog_det-setting-0064086 | Shipping costs $8 plus $2.50 per pound. What does a 36-pound parcel cost to ship?
Python code:
base = 8
per_pound = 2.5
weight = 36
cost = base + per_pound * weight # 98.0
print(f"{cost:.2f}")
That prints: 98.00
Shipping costs $98.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "98.00", "printed": "98.00", "notation": null} |
nlprog_det-setting-0064087 | A $6,000 loan carries 6% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?
Computation in Python:
principal = 6000
annual_rate = 6 / 100 # 0.06
months = 24
interest = principal * annual_rate * months / 12 # 720.0
payment = (p... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "280.00", "printed": "280.00", "notation": null} |
nlprog_det-setting-0064088 | Equal monthly payments repay $1,200 plus 8% simple yearly interest over 24 months. How large is a payment?
Programmatically:
```python
principal = 1200
annual_rate = 8 / 100 # 0.08
months = 24
interest = principal * annual_rate * months / 12 # 192.0
payment = (principal + interest) / months # 58.0
print(f"{payment:... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "58.00", "printed": "58.00", "notation": null} |
nlprog_det-setting-0064089 | <|start|><|user|>
An unpaid balance of $1,000 accrues 1.5% simple interest per month. How much interest accrues in 6 months?<|eot|>
<|assistant|>
```python
balance = 1000
monthly_rate = 1.5 / 100
months = 6
interest = balance * monthly_rate * months
print(f"{interest:.2f}")
```
Printed: 90.00
$90.00 accrues.<|eot|>
<|... | chat | [
{
"role": "user",
"content": "An unpaid balance of $1,000 accrues 1.5% simple interest per month. How much interest accrues in 6 months?"
},
{
"role": "assistant",
"content": "```python\nbalance = 1000\nmonthly_rate = 1.5 / 100\nmonths = 6\ninterest = balance * monthly_rate * months\nprint(f\"{i... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "90.00", "printed": "90.00", "notation": null} |
nlprog_det-setting-0064090 | <|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"]}}]<|eot|>
<|user|>
From ... | 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 | [] | [] | 189 | {"gold": "33", "printed": "33", "notation": null} |
nlprog_det-setting-0064091 | 7 walks at 300 calories each burn how many calories in total?
The program:
```python
per_session = 300
sessions = 7
total = per_session * sessions # 2100
print(total)
```
Run it and it prints: 2100
That burns 2100 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "2100", "printed": "2100", "notation": null} |
nlprog_det-setting-0064092 | Goods bought on October 17, 2020 carry a 18-month warranty. When does it expire?
As a program:
```python
from datetime import date
start = date(2020, 10, 17)
months = 18
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
(Prog... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "2022-04-17", "printed": "2022-04-17", "notation": null} |
nlprog_det-setting-0064093 | A claim accrued on October 22, 2017. The limitations period is 2 years. On what date does it expire?
```python
from datetime import date
accrued = date(2017, 10, 22) # datetime.date(2017, 10, 22)
years = 2
expires = accrued.replace(year=accrued.year + years) # datetime.date(2019, 10, 22)
print(expires.isoformat())
`... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "2019-10-22", "printed": "2019-10-22", "notation": null} |
nlprog_det-setting-0064094 | At 45 miles per hour, how many minutes does a 225-mile trip take?
A short script:
```python
distance = 225
speed = 45
minutes = distance / speed * 60 # 300.0
print(round(minutes))
```
Result:
300
The trip takes 300 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0064095 | <|start|><|user|>
An attorney bills 7 hours at $150 per hour. What is the bill?<|eot|>
<|assistant|>
```python
hours = 7
rate = 150
bill = hours * rate # 1050
print(f"{bill:.2f}")
```
Out — 1050.00
That comes to $1,050.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An attorney bills 7 hours at $150 per hour. What is the bill?"
},
{
"role": "assistant",
"content": "```python\nhours = 7\nrate = 150\nbill = hours * rate # 1050\nprint(f\"{bill:.2f}\")\n```\nOut — 1050.00\n\nThat comes to $1,050.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "1050.00", "printed": "1050.00", "notation": null} |
nlprog_det-setting-0064096 | Buying 4 notebooks at $29 each, 3 mugs at $4 each, 3 cables at $13 each, someone hands over $200. What change comes back?
Let the code do the arithmetic:
```python
items = [(4, 29), (3, 4), (3, 13)]
total = sum(q * p for q, p in items) # 167
paid = 200
change = paid - total # 33
print(change)
```
Printed = 33
$33 c... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "33", "printed": "33", "notation": null} |
nlprog_det-setting-0064098 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "run_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
Pay is $25.00/hour, ... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"run_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 266 | {"gold": "1112.50", "printed": "1112.50", "notation": null} |
nlprog_det-setting-0064099 | A client paid a $7,500 retainer. The firm has billed 10 hours at $150 per hour. How much of the retainer is left?
We write it as a program:
```python
retainer = 7500
hours = 10
rate = 150
left = retainer - hours * rate # 6000
print(left)
```
It outputs 6000.
The remaining balance is $6,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "6000", "printed": "6000", "notation": null} |
nlprog_det-setting-0064101 | <|start|><|user|>
How much sales tax is charged on a $711.42 purchase at 7%?<|eot|>
<|assistant|>
```python
price = 711.42
tax_rate = 7 / 100 # 0.07
tax = price * tax_rate # 49.7994
print(f"{tax:.2f}")
```
The code prints 49.80.
The tax is $49.80.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How much sales tax is charged on a $711.42 purchase at 7%?"
},
{
"role": "assistant",
"content": "```python\nprice = 711.42\ntax_rate = 7 / 100 # 0.07\ntax = price * tax_rate # 49.7994\nprint(f\"{tax:.2f}\")\n```\nThe code prints 49.80.\n\nThe tax is $49.80."
}
... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "49.80", "printed": "49.80", "notation": null} |
nlprog_det-setting-0064102 | Convert 15 °C to Fahrenheit.
A few lines of Python do it:
```python
celsius = 15
fahrenheit = celsius * 9 / 5 + 32 # 59.0
print(round(fahrenheit))
```
Printed:
59
It equals 59 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "59", "printed": "59", "notation": null} |
nlprog_det-setting-0064103 | Filing fees are $75 per document. What do 17 filings cost?
Let the code do the arithmetic:
```python
fee = 75
filings = 17
total = fee * filings # 1275
print(total)
```
# execution result: 1275
The total fee is $1,275. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "1275", "printed": "1275", "notation": null} |
nlprog_det-setting-0064104 | <|start|><|user|>
What is a 20% tip on a $108.48 bill?<|eot|>
<|assistant|>
```python
bill = 108.48
tip_rate = 20 / 100 # 0.2
tip = bill * tip_rate # 21.696
print(f"{tip:.2f}")
```
Result — 21.70
Leave $21.70.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is a 20% tip on a $108.48 bill?"
},
{
"role": "assistant",
"content": "```python\nbill = 108.48\ntip_rate = 20 / 100 # 0.2\ntip = bill * tip_rate # 21.696\nprint(f\"{tip:.2f}\")\n```\nResult — 21.70\n\nLeave $21.70."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "21.70", "printed": "21.70", "notation": null} |
nlprog_det-setting-0064106 | Straight-line depreciation: cost $24,000, salvage $6,000, 5 years. How much per year?
Here is a short program for it.
cost = 24000
salvage = 6000
years = 5
per_year = (cost - salvage) / years # 3600.0
print(f"{per_year:.2f}")
Running this gives 3600.00.
Depreciation is $3,600.00 per year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "3600.00", "printed": "3600.00", "notation": null} |
nlprog_det-setting-0064107 | Buying 6 chairs at $15 each, 2 desk lamps at $24 each, 4 envelopes at $5 each, someone hands over $200. What change comes back?
As a program:
```python
items = [(6, 15), (2, 24), (4, 5)]
total = sum(q * p for q, p in items) # 158
paid = 200
change = paid - total # 42
print(change)
```
Result:
42
$42 comes back. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "42", "printed": "42", "notation": null} |
nlprog_det-setting-0064108 | A count moves from 500 to 575. By what percent did it change (use a minus sign for a drop)?
Python makes this quick:
```python
old = 500
new = 575
change = (new - old) / old * 100 # 15.0
print(round(change))
```
Printed result — 15
It changed by 15%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0064109 | <|start|><|system|>
You can call tools. Available tools:
{"name": "py_exec", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|>
<|user|>
At 65 miles per hour, h... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"py_exec\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\... | nlprog_det | setting | original | null | deterministic | [] | [] | 209 | {"gold": "360", "printed": "360", "notation": null} |
nlprog_det-setting-0064110 | <|start|><|system|>
Tool definitions:
{"name": "run_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|>
<|user|>
A 34 lb package ships at $10 base p... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"run_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 232 | {"gold": "78.00", "printed": "78.00", "notation": null} |
nlprog_det-setting-0064111 | Divide 37 items among 3 groups as evenly as possible with equal groups. How many per group, and how many remain?
We can compute it in Python.
```python
total = 37
groups = 3
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Printed:
12 each, 1 left over
12 each, 1 left... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "12 each, 1 left over", "printed": "12 each, 1 left over", "notation": null} |
nlprog_det-setting-0064112 | Joelle drove 238 miles for work. Mileage is reimbursed at 62 cents a mile. How much is the reimbursement?
One way, in code:
```python
miles = 238
rate = 0.62
reimbursement = miles * rate # 147.56
print(f"{reimbursement:.2f}")
```
Printed: 147.56
Joelle is owed $147.56. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "147.56", "printed": "147.56", "notation": null} |
nlprog_det-setting-0064113 | Monthly: $12. Annual: $132. What is saved per year by paying annually?
In code:
```python
monthly = 12
yearly = 132
savings = monthly * 12 - yearly
print(savings)
```
Running it prints: 12
$12 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0064114 | <|start|><|user|>
The bridge was finished in 1999. How many years had passed by 2020?<|eot|>
<|assistant|>
start_year = 1999
end_year = 2020
print(end_year - start_year)
Program output: 21
That is 21 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The bridge was finished in 1999. How many years had passed by 2020?"
},
{
"role": "assistant",
"content": " start_year = 1999\n end_year = 2020\n print(end_year - start_year)\nProgram output: 21\n\nThat is 21 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 61 | {"gold": "21", "printed": "21", "notation": null} |
nlprog_det-setting-0064115 | 127 copies of a 18-page packet are printed at $0.12 per page. What is the cost?
Coded up:
```python
pages = 18
copies = 127
cost_per_page = 0.12
cost = pages * copies * cost_per_page # 274.32
print(f"{cost:.2f}")
```
(Printed result: 274.32)
The job costs $274.32. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "274.32", "printed": "274.32", "notation": null} |
nlprog_det-setting-0064116 | What percentage of $4,000 is $1,400?
Computation in Python:
```python
budget = 4000
spent = 1400
percent = spent / budget * 100 # 35.0
print(round(percent, 1))
```
That prints: 35.0
That is 35.0% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "35.0", "printed": "35.0", "notation": null} |
nlprog_det-setting-0064117 | <|start|><|system|>
You are a patient tutor.<|eot|>
<|user|>
A claim accrued on June 17, 2016. The limitations period is 2 years. On what date does it expire?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2016, 6, 17) # datetime.date(2016, 6, 17)
years = 2
expires = accrued.replace(year=accru... | chat | [
{
"role": "system",
"content": "You are a patient tutor."
},
{
"role": "user",
"content": "A claim accrued on June 17, 2016. The limitations period is 2 years. On what date does it expire?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrued = date(201... | nlprog_det | setting | original | null | deterministic | [] | [] | 156 | {"gold": "2018-06-17", "printed": "2018-06-17", "notation": null} |
nlprog_det-setting-0064118 | <|start|><|user|>
A car travels 418 miles in 2 hours. What is its average speed in miles per hour?<|eot|>
<|assistant|>
The average speed is 209 mph.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A car travels 418 miles in 2 hours. What is its average speed in miles per hour?"
},
{
"role": "assistant",
"content": "The average speed is 209 mph."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "209", "printed": "209", "notation": null} |
nlprog_det-setting-0064119 | Notice was given on February 28, 2025. The notice period is 14 days. When does it run out?
Python:
```python
from datetime import date, timedelta
start = date(2025, 2, 28) # datetime.date(2025, 2, 28)
end = start + timedelta(days=14) # datetime.date(2025, 3, 14)
print(end.isoformat())
```
It prints 2025-03-14, as ex... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "2025-03-14", "printed": "2025-03-14", "notation": null} |
nlprog_det-setting-0064120 | <|start|><|user|>
A water bill is $20 plus $5.10 per thousand gallons beyond the first 0 thousand. What is the bill for 9 thousand gallons?<|eot|>
<|assistant|>
$65.90 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A water bill is $20 plus $5.10 per thousand gallons beyond the first 0 thousand. What is the bill for 9 thousand gallons?"
},
{
"role": "assistant",
"content": "$65.90 is owed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "65.90", "printed": "65.90", "notation": null} |
nlprog_det-setting-0064122 | Joelle earns a 2% commission on $11,985 of sales. What is the commission?
Here is a short program for it.
```python
sales = 11985
rate = 2 / 100 # 0.02
commission = sales * rate # 239.70000000000002
print(f"{commission:.2f}")
```
Printed:
239.70
The commission is $239.70. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "239.70", "printed": "239.70", "notation": null} |
nlprog_det-setting-0064123 | A client paid a $2,500 retainer. The firm has billed 9 hours at $275 per hour. How much of the retainer is left?
The computation:
```python
retainer = 2500
hours = 9
rate = 275
left = retainer - hours * rate # 25
print(left)
```
The program prints 25, as expected.
$25 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0064124 | <|start|><|user|>
$10,000 is invested at 3% compounded yearly. What is it worth after 3 years?<|eot|>
<|assistant|>
```python
principal = 10000
rate = 3 / 100 # 0.03
years = 3
value = principal * (1 + rate) ** years # 10927.27
print(f"{value:.2f}")
```
Execution prints 10927.27, as expected.
It is worth $10,927.27.<... | chat | [
{
"role": "user",
"content": "$10,000 is invested at 3% compounded yearly. What is it worth after 3 years?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 10000\nrate = 3 / 100 # 0.03\nyears = 3\nvalue = principal * (1 + rate) ** years # 10927.27\nprint(f\"{value:.2f}\")\n```\nEx... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "10927.27", "printed": "10927.27", "notation": null} |
nlprog_det-setting-0064125 | How many units at $15 each (variable cost $11) cover $2,500 of fixed costs?
Python code:
```python
import math
fixed = 2500
price = 15
variable = 11
units = math.ceil(fixed / (price - variable)) # 625
print(units)
```
# printed: 625
625 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "625", "printed": "625", "notation": null} |
nlprog_det-setting-0064126 | Idris earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 49-hour week?
The weekly pay is $856.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "856.00", "printed": "856.00", "notation": null} |
nlprog_det-setting-0064127 | Water costs $12 a month plus $4.20 for each 1,000 gallons over 0,000. What is owed for 9,000 gallons?
```python
base = 12
rate = 4.2
used = 9
free = 0
bill = base + rate * max(0, used - free) # 49.800000000000004
print(f"{bill:.2f}")
```
The script prints: 49.80
The bill is $49.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "49.80", "printed": "49.80", "notation": null} |
nlprog_det-setting-0064128 | <|start|><|user|>
Starting with 1893 desk lamps and using 31 per day, how many remain after 12 days?<|eot|>
<|assistant|>
```python
stock = 1893
per_day = 31
days = 12
left = stock - per_day * days # 1521
print(left)
```
On running, it outputs: 1521
1521 remain.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting with 1893 desk lamps and using 31 per day, how many remain after 12 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 1893\nper_day = 31\ndays = 12\nleft = stock - per_day * days # 1521\nprint(left)\n```\nOn running, it outputs: 1521\n\n1521 ... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "1521", "printed": "1521", "notation": null} |
nlprog_det-setting-0064129 | After a 30% fee is taken from a $60,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?
Let's compute it with Python.
```python
award = 60000
fee = award * 30 / 100 # 18000.0
remaining = award - fee # 42000.0
per_client = remaining / 3 # 14000.0
print(f"{per_client:.2f}")
```
Exe... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 150 | {"gold": "14000.00", "printed": "14000.00", "notation": null} |
nlprog_det-setting-0064130 | <|start|><|system|>
Answer in plain English.<|eot|>
<|user|>
Of a $10,000 budget, $400 has been spent. What percent is that?<|eot|>
<|assistant|>
```python
budget = 10000
spent = 400
percent = spent / budget * 100 # 4.0
print(round(percent, 1))
```
Result:
4.0
That is 4.0% of the budget.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer in plain English."
},
{
"role": "user",
"content": "Of a $10,000 budget, $400 has been spent. What percent is that?"
},
{
"role": "assistant",
"content": "```python\nbudget = 10000\nspent = 400\npercent = spent / budget * 100 # 4.0\nprint(round... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "4.0", "printed": "4.0", "notation": null} |
nlprog_det-setting-0064132 | <|start|><|user|>
Notice was given on March 6, 2024. The notice period is 120 days. When does it run out?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2024, 3, 6) # datetime.date(2024, 3, 6)
end = start + timedelta(days=120) # datetime.date(2024, 7, 4)
print(end.isoformat())
```
(P... | chat | [
{
"role": "user",
"content": "Notice was given on March 6, 2024. The notice period is 120 days. When does it run out?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2024, 3, 6) # datetime.date(2024, 3, 6)\nend = start + timedelta(days=120) ... | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "2024-07-04", "printed": "2024-07-04", "notation": null} |
nlprog_det-setting-0064133 | 2 clients win $72,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?
A few lines of Python do it:
```python
award = 72000
fee = award * 40 / 100 # 28800.0
remaining = award - fee # 43200.0
per_client = remaining / 2 # 21600.0
print(f"{per_client:.2f}")
```
Console output: 21600... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "21600.00", "printed": "21600.00", "notation": null} |
nlprog_det-setting-0064134 | <|start|><|system|>
You have access to these functions:
[{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "para... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"fetch_filing\", \"descrip... | nlprog_det | setting | original | null | deterministic | [] | [] | 375 | {"gold": "720.00", "printed": "720.00", "notation": null} |
nlprog_det-setting-0064135 | The rules require 1/3 of 19 members (round up) to be present. How many is that?
As Python:
```python
import math
members = 19
quorum = math.ceil(members * 1 / 3) # 7
print(quorum)
```
(Run result: 7)
That is 7 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0064137 | From a $5,000 retainer, 14 hours at $150/hour have been drawn. What remains?
Programmatically:
```python
retainer = 5000
hours = 14
rate = 150
left = retainer - hours * rate # 2900
print(left)
```
The printout reads 2900.
The remaining balance is $2,900. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "2900", "printed": "2900", "notation": null} |
nlprog_det-setting-0064138 | <|start|><|user|>
Each storage box holds 40 files. How many boxes are needed for 875 files?<|eot|>
<|assistant|>
```python
import math
files = 875
per_box = 40
boxes = math.ceil(files / per_box) # 22
print(boxes)
```
The program outputs 22.
It takes 22 boxes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each storage box holds 40 files. How many boxes are needed for 875 files?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 875\nper_box = 40\nboxes = math.ceil(files / per_box) # 22\nprint(boxes)\n```\nThe program outputs 22.\n\nIt takes 22 bo... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0064139 | At $0.58 per mile, what is the reimbursement for 194 miles?
Python:
```python
miles = 194
rate = 0.58
reimbursement = miles * rate # 112.52
print(f"{reimbursement:.2f}")
```
Execution prints 112.52.
Rania is owed $112.52. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "112.52", "printed": "112.52", "notation": null} |
nlprog_det-setting-0064140 | <|start|><|user|>
Convert -20 °C to Fahrenheit.<|eot|>
<|assistant|>
```python
celsius = -20
fahrenheit = celsius * 9 / 5 + 32 # -4.0
print(round(fahrenheit))
```
Result = -4
That is -4 °F.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert -20 °C to Fahrenheit."
},
{
"role": "assistant",
"content": "```python\ncelsius = -20\nfahrenheit = celsius * 9 / 5 + 32 # -4.0\nprint(round(fahrenheit))\n```\nResult = -4\n\nThat is -4 °F."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "-4", "printed": "-4", "notation": null} |
nlprog_det-setting-0064141 | <|start|><|user|>
A hearing is set for October 18, 2018. What day of the week is that?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(2018, 10, 18)
print(hearing.strftime("%A"))
```
Run result — Thursday
October 18, 2018 is a Thursday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hearing is set for October 18, 2018. What day of the week is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(2018, 10, 18)\nprint(hearing.strftime(\"%A\"))\n```\nRun result — Thursday\n\nOctober 18, 2018 is a Thurs... | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "Thursday", "printed": "Thursday", "notation": null} |
nlprog_det-setting-0064142 | What simple interest does $20,000 earn at 8% a year over 5 years?
Here is the program.
```python
principal = 20000
rate = 8 / 100 # 0.08
years = 5
interest = principal * rate * years # 8000.0
print(f"{interest:.2f}")
```
The run gives 8000.00.
The interest is $8,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "8000.00", "printed": "8000.00", "notation": null} |
nlprog_det-setting-0064143 | 2 claimants share a $36,000 settlement equally. What is each share?
Set it up in Python:
```python
settlement = 36000
parties = 2
share = settlement // parties # 18000
print(share)
```
Executing it gives 18000.
Each party receives $18,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "18000", "printed": "18000", "notation": null} |
nlprog_det-setting-0064144 | At $0.67 per mile, what is the reimbursement for 613 miles?
A short script:
```python
miles = 613
rate = 0.67
reimbursement = miles * rate # 410.71000000000004
print(f"{reimbursement:.2f}")
```
Executed, it shows 410.71.
Joelle is owed $410.71. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "410.71", "printed": "410.71", "notation": null} |
nlprog_det-setting-0064145 | What does $10,000 grow to in 4 years at 4% annual compounding?
Python version:
```python
principal = 10000
rate = 4 / 100 # 0.04
years = 4
value = principal * (1 + rate) ** years # 11698.585600000002
print(f"{value:.2f}")
```
stdout = 11698.59
It is worth $11,698.59. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "11698.59", "printed": "11698.59", "notation": null} |
nlprog_det-setting-0064147 | Of a $10,000 budget, $1,400 has been spent. What percent is that?
Script:
```python
budget = 10000
spent = 1400
percent = spent / budget * 100
print(round(percent, 1))
```
Printed = 14.0
That is 14.0% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "14.0", "printed": "14.0", "notation": null} |
nlprog_det-setting-0064148 | <|start|><|user|>
Prorate $1,500 of monthly rent for 9 days of a 31-day month.<|eot|>
<|assistant|>
```python
rent = 1500
days_in_month = 31
days_occupied = 9
prorated = rent * days_occupied / days_in_month # 435.48387096774195
print(f"{prorated:.2f}")
```
Interpreter output — 435.48
The prorated rent is $435.48.<|eo... | chat | [
{
"role": "user",
"content": "Prorate $1,500 of monthly rent for 9 days of a 31-day month."
},
{
"role": "assistant",
"content": "```python\nrent = 1500\ndays_in_month = 31\ndays_occupied = 9\nprorated = rent * days_occupied / days_in_month # 435.48387096774195\nprint(f\"{prorated:.2f}\")\n```\... | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "435.48", "printed": "435.48", "notation": null} |
nlprog_det-setting-0064149 | Rafael was born on April 19, 2008. How old is Rafael on June 11, 2027?
Python does the arithmetic:
```python
from datetime import date
born = date(2008, 4, 19) # datetime.date(2008, 4, 19)
on = date(2027, 6, 11) # datetime.date(2027, 6, 11)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) #... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 162 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0064151 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
{"name": "run_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|>
<|user|>
A c... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"run_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code... | nlprog_det | setting | original | null | deterministic | [] | [] | 251 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0064152 | A printer costs $75. It is 30% off. What is the sale price?
```python
price = 75
discount = 30 / 100 # 0.3
sale_price = price * (1 - discount) # 52.5
print(f"{sale_price:.2f}")
```
Output — 52.50
The sale price is $52.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "52.50", "printed": "52.50", "notation": null} |
nlprog_det-setting-0064153 | <|start|><|system|>
You may call the tools below.
[{"name": "run_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
Convert 3 h 43 min (... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"run_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\... | nlprog_det | setting | original | null | deterministic | [] | [] | 209 | {"gold": "223", "printed": "223", "notation": null} |
nlprog_det-setting-0064154 | What is the total rent on a 12-month lease at $3,250 a month?
Script:
```python
monthly_rent = 3250
months = 12
total = monthly_rent * months # 39000
print(total)
```
Python prints: 39000
The rent over the term is $39,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "39000", "printed": "39000", "notation": null} |
nlprog_det-setting-0064155 | <|start|><|user|>
What commission does Zoe make on $77,222 in sales at 6%?<|eot|>
<|assistant|>
```python
sales = 77222
rate = 6 / 100 # 0.06
commission = sales * rate # 4633.32
print(f"{commission:.2f}")
```
The program prints 4633.32, as expected.
The commission is $4,633.32.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What commission does Zoe make on $77,222 in sales at 6%?"
},
{
"role": "assistant",
"content": "```python\nsales = 77222\nrate = 6 / 100 # 0.06\ncommission = sales * rate # 4633.32\nprint(f\"{commission:.2f}\")\n```\nThe program prints 4633.32, as expected.\n\nThe... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "4633.32", "printed": "4633.32", "notation": null} |
nlprog_det-setting-0064156 | <|start|><|user|>
A storeroom has 524 headsets. The office uses 20 a day. How many are left after 4 days?<|eot|>
<|assistant|>
```python
stock = 524
per_day = 20
days = 4
left = stock - per_day * days # 444
print(left)
```
(Execution result: 444)
444 remain.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A storeroom has 524 headsets. The office uses 20 a day. How many are left after 4 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 524\nper_day = 20\ndays = 4\nleft = stock - per_day * days # 444\nprint(left)\n```\n(Execution result: 444)\n\n444 rema... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "444", "printed": "444", "notation": null} |
nlprog_det-setting-0064157 | With 20% off, what does a $180 bicycle helmet cost?
Programmatically:
price = 180
discount = 20 / 100 # 0.2
sale_price = price * (1 - discount) # 144.0
print(f"{sale_price:.2f}")
This prints 144.00, as expected.
It costs $144.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "144.00", "printed": "144.00", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.