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-0054746 | Under a 30% contingency agreement, what fee is owed on a $25,000 award?
Here is the program.
recovery = 25000
rate = 30 / 100 # 0.3
fee = recovery * rate # 7500.0
print(f"{fee:.2f}")
What it prints: 7500.00
The lawyer's fee comes to $7,500.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "7500.00", "printed": "7500.00", "notation": null} |
nlprog_det-setting-0054747 | <|start|><|user|>
With 25% off, what does a $300 filing cabinet cost?<|eot|>
<|assistant|>
```python
price = 300
discount = 25 / 100 # 0.25
sale_price = price * (1 - discount) # 225.0
print(f"{sale_price:.2f}")
```
Console output: 225.00
The sale price is $225.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 25% off, what does a $300 filing cabinet cost?"
},
{
"role": "assistant",
"content": "```python\nprice = 300\ndiscount = 25 / 100 # 0.25\nsale_price = price * (1 - discount) # 225.0\nprint(f\"{sale_price:.2f}\")\n```\nConsole output: 225.00\n\nThe sale price ... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "225.00", "printed": "225.00", "notation": null} |
nlprog_det-setting-0054748 | A meal costs $169.24. How much is a 20% tip?
In Python:
```python
bill = 169.24
tip_rate = 20 / 100
tip = bill * tip_rate
print(f"{tip:.2f}")
```
Shell output: 33.85
Leave $33.85. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "33.85", "printed": "33.85", "notation": null} |
nlprog_det-setting-0054749 | The meal allowance is $64 per day. What is it for 9 days? That comes to $576. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 24 | {"gold": "576", "printed": "576", "notation": null} |
nlprog_det-setting-0054750 | <|start|><|user|>
Buying 4 ink cartridges at $7 each, 2 water bottles at $6 each, 1 paper reams at $12 each, someone hands over $100. What change comes back?<|eot|>
<|assistant|>
The change is $48.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Buying 4 ink cartridges at $7 each, 2 water bottles at $6 each, 1 paper reams at $12 each, someone hands over $100. What change comes back?"
},
{
"role": "assistant",
"content": "The change is $48."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 58 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0054751 | <|start|><|user|>
A room is 9 feet by 17 feet. Flooring costs $3 per square foot. What does it cost to floor the room?<|eot|>
<|assistant|>
It costs $459.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A room is 9 feet by 17 feet. Flooring costs $3 per square foot. What does it cost to floor the room?"
},
{
"role": "assistant",
"content": "It costs $459."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "459", "printed": "459", "notation": null} |
nlprog_det-setting-0054752 | <|start|><|system|>
Answer the user's question directly.<|eot|>
<|user|>
Someone works 38 hours at $29.96 per hour. What are the earnings?<|eot|>
<|assistant|>
That earns $1,138.48.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer the user's question directly."
},
{
"role": "user",
"content": "Someone works 38 hours at $29.96 per hour. What are the earnings?"
},
{
"role": "assistant",
"content": "That earns $1,138.48."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 52 | {"gold": "1138.48", "printed": "1138.48", "notation": null} |
nlprog_det-setting-0054753 | <|start|><|user|>
51 copies of a 34-page packet are printed at $0.15 per page. What is the cost?<|eot|>
<|assistant|>
```python
pages = 34
copies = 51
cost_per_page = 0.15
cost = pages * copies * cost_per_page
print(f"{cost:.2f}")
```
Executing it gives 260.10, as expected.
Printing costs $260.10.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "51 copies of a 34-page packet are printed at $0.15 per page. What is the cost?"
},
{
"role": "assistant",
"content": "```python\npages = 34\ncopies = 51\ncost_per_page = 0.15\ncost = pages * copies * cost_per_page\nprint(f\"{cost:.2f}\")\n```\nExecuting it gives 260... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "260.10", "printed": "260.10", "notation": null} |
nlprog_det-setting-0054754 | Equipment costs $12,000, has a salvage value of $3,000, and a useful life of 4 years. What is the straight-line depreciation per year?
Script:
```python
cost = 12000
salvage = 3000
years = 4
per_year = (cost - salvage) / years # 2250.0
print(f"{per_year:.2f}")
```
Execution prints 2250.00.
Depreciation is $2,250.00 ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "2250.00", "printed": "2250.00", "notation": null} |
nlprog_det-setting-0054755 | <|start|><|system|>
Functions:
[{"name": "python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "get_weather", "description": "Get the weath... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}... | nlprog_det | setting | original | null | deterministic | [] | [] | 307 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0054756 | <|start|><|system|>
Avoid unnecessary detail.<|eot|>
<|user|>
A $150 dinner bill gets a 20% tip, and 6 people share the cost equally. What is each person's share?<|eot|>
<|assistant|>
```python
bill = 150
tip_rate = 20 / 100 # 0.2
people = 6
each = bill * (1 + tip_rate) / people # 30.0
print(f"{each:.2f}")
```
(stdou... | chat | [
{
"role": "system",
"content": "Avoid unnecessary detail."
},
{
"role": "user",
"content": "A $150 dinner bill gets a 20% tip, and 6 people share the cost equally. What is each person's share?"
},
{
"role": "assistant",
"content": "```python\nbill = 150\ntip_rate = 20 / 100 # 0.2\np... | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "30.00", "printed": "30.00", "notation": null} |
nlprog_det-setting-0054757 | With 25% off, what does a $90 kettle cost?
Set it up in Python:
```python
price = 90
discount = 25 / 100 # 0.25
sale_price = price * (1 - discount) # 67.5
print(f"{sale_price:.2f}")
```
Execution prints 67.50.
It costs $67.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "67.50", "printed": "67.50", "notation": null} |
nlprog_det-setting-0054758 | <|start|><|user|>
Filing fees are $405 per document. What do 13 filings cost?<|eot|>
<|assistant|>
```python
fee = 405
filings = 13
total = fee * filings # 5265
print(total)
```
Out — 5265
$5,265 in filing fees.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Filing fees are $405 per document. What do 13 filings cost?"
},
{
"role": "assistant",
"content": "```python\nfee = 405\nfilings = 13\ntotal = fee * filings # 5265\nprint(total)\n```\nOut — 5265\n\n$5,265 in filing fees."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "5265", "printed": "5265", "notation": null} |
nlprog_det-setting-0054759 | Scale 150 g of lentils from 2 servings to 3 servings.
225 grams of lentils are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "225", "printed": "225", "notation": null} |
nlprog_det-setting-0054760 | <|start|><|user|>
Equal monthly payments repay $9,000 plus 6% simple yearly interest over 12 months. How large is a payment?<|eot|>
<|assistant|>
```python
principal = 9000
annual_rate = 6 / 100 # 0.06
months = 12
interest = principal * annual_rate * months / 12 # 540.0
payment = (principal + interest) / months # 79... | chat | [
{
"role": "user",
"content": "Equal monthly payments repay $9,000 plus 6% simple yearly interest over 12 months. How large is a payment?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 9000\nannual_rate = 6 / 100 # 0.06\nmonths = 12\ninterest = principal * annual_rate * months / 1... | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "795.00", "printed": "795.00", "notation": null} |
nlprog_det-setting-0054761 | <|start|><|user|>
A 9-day trip pays $64 a day for meals and $175 a night for lodging (8 nights). What is the total allowance?<|eot|>
<|assistant|>
```python
days = 9
meal_rate = 64
lodging_rate = 175
nights = days - 1 # 8
total = days * meal_rate + nights * lodging_rate # 1976
print(total)
```
It outputs 1976.
That ... | chat | [
{
"role": "user",
"content": "A 9-day trip pays $64 a day for meals and $175 a night for lodging (8 nights). What is the total allowance?"
},
{
"role": "assistant",
"content": "```python\ndays = 9\nmeal_rate = 64\nlodging_rate = 175\nnights = days - 1 # 8\ntotal = days * meal_rate + nights * lo... | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "1976", "printed": "1976", "notation": null} |
nlprog_det-setting-0054762 | A storeroom has 750 binders. The office uses 26 a day. How many are left after 12 days?
As a program:
```python
stock = 750
per_day = 26
days = 12
left = stock - per_day * days
print(left)
```
Printed: 438
438 binders are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "438", "printed": "438", "notation": null} |
nlprog_det-setting-0054763 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "interpreter", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|>
<|user|>
38 c... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"interpreter\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code... | nlprog_det | setting | original | null | deterministic | [] | [] | 233 | {"gold": "51.30", "printed": "51.30", "notation": null} |
nlprog_det-setting-0054764 | A 4 × 7 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up? 7 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0054765 | <|start|><|user|>
Quinn drove 168 miles for work. Mileage is reimbursed at 70 cents a mile. How much is the reimbursement?<|eot|>
<|assistant|>
```python
miles = 168
rate = 0.7
reimbursement = miles * rate # 117.6
print(f"{reimbursement:.2f}")
```
Run result — 117.60
Quinn is owed $117.60.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Quinn drove 168 miles for work. Mileage is reimbursed at 70 cents a mile. How much is the reimbursement?"
},
{
"role": "assistant",
"content": "```python\nmiles = 168\nrate = 0.7\nreimbursement = miles * rate # 117.6\nprint(f\"{reimbursement:.2f}\")\n```\nRun resul... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "117.60", "printed": "117.60", "notation": null} |
nlprog_det-setting-0054766 | 50 files go into boxes of 12. How many boxes does that take?
Program:
```python
import math
files = 50
per_box = 12
boxes = math.ceil(files / per_box) # 5
print(boxes)
```
Running it prints: 5
5 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0054767 | An office budget of $25,000 has expenses of $3,902, $309. How much of the budget is left?
Let's compute it with Python.
```python
budget = 25000
expenses = [3902, 309]
left = budget - sum(expenses) # 20789
print(left)
```
Result:
20789
$20,789 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "20789", "printed": "20789", "notation": null} |
nlprog_det-setting-0054768 | A penalty of $100 a day accrues, capped at $5,000. What is owed after 6 days?
The computation:
per_day = 100
days = 6
cap = 5000
fine = min(per_day * days, cap) # 600
print(fine)
Out — 600
The fine is $600. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0054769 | <|start|><|user|>
A count moves from 800 to 880. By what percent did it change (use a minus sign for a drop)?<|eot|>
<|assistant|>
The change is 10%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A count moves from 800 to 880. By what percent did it change (use a minus sign for a drop)?"
},
{
"role": "assistant",
"content": "The change is 10%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0054770 | <|start|><|system|>
Be concise.<|eot|>
<|user|>
How much sales tax is charged on a $624.79 purchase at 7%?<|eot|>
<|assistant|>
```python
price = 624.79
tax_rate = 7 / 100 # 0.07
tax = price * tax_rate # 43.7353
print(f"{tax:.2f}")
```
# run result: 43.74
$43.74 in tax.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be concise."
},
{
"role": "user",
"content": "How much sales tax is charged on a $624.79 purchase at 7%?"
},
{
"role": "assistant",
"content": "```python\nprice = 624.79\ntax_rate = 7 / 100 # 0.07\ntax = price * tax_rate # 43.7353\nprint(f\"{tax:.2f}... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "43.74", "printed": "43.74", "notation": null} |
nlprog_det-setting-0054771 | Diego has 5 documents to file, and each filing costs $350. How much are the filing fees in total?
One way, in code:
```python
fee = 350
filings = 5
total = fee * filings # 1750
print(total)
```
Execution prints: 1750
$1,750 in filing fees. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "1750", "printed": "1750", "notation": null} |
nlprog_det-setting-0054772 | Split $2,541 between Paula and Ada in the ratio 1 to 2. What is Paula's share?
```python
total = 2541
parts_a = 1
parts_b = 2
share_a = total * parts_a // (parts_a + parts_b) # 847
print(share_a)
```
Execution prints: 847
Paula gets $847. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "847", "printed": "847", "notation": null} |
nlprog_det-setting-0054773 | <|start|><|user|>
A jacket costs $80. It is 20% off. What is the sale price?<|eot|>
<|assistant|>
```python
price = 80
discount = 20 / 100 # 0.2
sale_price = price * (1 - discount) # 64.0
print(f"{sale_price:.2f}")
```
What it prints — 64.00
The sale price is $64.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A jacket costs $80. It is 20% off. What is the sale price?"
},
{
"role": "assistant",
"content": "```python\nprice = 80\ndiscount = 20 / 100 # 0.2\nsale_price = price * (1 - discount) # 64.0\nprint(f\"{sale_price:.2f}\")\n```\nWhat it prints — 64.00\n\nThe sale pr... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "64.00", "printed": "64.00", "notation": null} |
nlprog_det-setting-0054774 | A garage charges $4 an hour, never more than $18 a day. How much for 12 hours?
One way, in code:
```python
rate = 4
hours = 12
daily_max = 18
cost = min(rate * hours, daily_max) # 18
print(cost)
```
Printed result: 18
The charge is $18. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0054775 | After an initial $2,000, the remainder of a $60,000 grant is paid in 12 equal parts. What is each part?
```python
grant = 60000
up_front = 2000
installments = 12
each = (grant - up_front) / installments # 4833.333333333333
print(f"{each:.2f}")
```
Result — 4833.33
Each installment is $4,833.33. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "4833.33", "printed": "4833.33", "notation": null} |
nlprog_det-setting-0054776 | <|start|><|user|>
A lease runs for 18 months at $3,250 per month. How much rent is paid over the whole term?<|eot|>
<|assistant|>
The rent over the term is $58,500.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lease runs for 18 months at $3,250 per month. How much rent is paid over the whole term?"
},
{
"role": "assistant",
"content": "The rent over the term is $58,500."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "58500", "printed": "58500", "notation": null} |
nlprog_det-setting-0054777 | How many 1-foot square tiles cover a 11 ft by 11 ft floor (round up)? 121 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "121", "printed": "121", "notation": null} |
nlprog_det-setting-0054778 | Express 319 hours in days and hours.
The program:
```python
hours = 319
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
The run gives 13 days and 7 hours.
319 hours is 13 days and 7 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "13 days and 7 hours", "printed": "13 days and 7 hours", "notation": null} |
nlprog_det-setting-0054780 | Femi's scores were 56, 58, 98, 60, 56 and 62. What is the average score?
Let the code do the arithmetic:
```python
scores = [56, 58, 98, 60, 56, 62]
average = sum(scores) // len(scores) # 65
print(average)
```
Output of the run: 65
The average score is 65. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "65", "printed": "65", "notation": null} |
nlprog_det-setting-0054781 | How many weekdays (Monday to Friday) fall after August 26, 2025 up to and including September 29, 2025?
Python code:
```python
from datetime import date, timedelta
start = date(2025, 8, 26)
end = date(2025, 9, 29)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekday() < 5:
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 157 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0054783 | Shipping costs $8 plus $1.50 per pound. What does a 35-pound parcel cost to ship?
As a program:
base = 8
per_pound = 1.5
weight = 35
cost = base + per_pound * weight # 60.5
print(f"{cost:.2f}")
Execution result — 60.50
The charge is $60.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "60.50", "printed": "60.50", "notation": null} |
nlprog_det-setting-0054784 | <|start|><|user|>
A storeroom has 255 headsets. The office uses 32 a day. How many are left after 4 days?<|eot|>
<|assistant|>
```python
stock = 255
per_day = 32
days = 4
left = stock - per_day * days # 127
print(left)
```
Result — 127
127 remain.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A storeroom has 255 headsets. The office uses 32 a day. How many are left after 4 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 255\nper_day = 32\ndays = 4\nleft = stock - per_day * days # 127\nprint(left)\n```\nResult — 127\n\n127 remain."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "127", "printed": "127", "notation": null} |
nlprog_det-setting-0054785 | <|start|><|user|>
Yoko has 4 documents to file, and each filing costs $350. How much are the filing fees in total?<|eot|>
<|assistant|>
```python
fee = 350
filings = 4
total = fee * filings
print(total)
```
The script prints: 1400
The filings cost $1,400 in all.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Yoko has 4 documents to file, and each filing costs $350. How much are the filing fees in total?"
},
{
"role": "assistant",
"content": "```python\nfee = 350\nfilings = 4\ntotal = fee * filings\nprint(total)\n```\nThe script prints: 1400\n\nThe filings cost $1,400 in... | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "1400", "printed": "1400", "notation": null} |
nlprog_det-setting-0054786 | Wanjiru lends $12,000 at 2% simple interest per year for 4 years. How much interest is earned?
The program:
```python
principal = 12000
rate = 2 / 100 # 0.02
years = 4
interest = principal * rate * years # 960.0
print(f"{interest:.2f}")
```
Run result — 960.00
The interest is $960.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "960.00", "printed": "960.00", "notation": null} |
nlprog_det-setting-0054787 | <|start|><|user|>
Attendance was 55 out of 80. Express it as a percent.<|eot|>
<|assistant|>
present = 55
total = 80
percent = present / total * 100
print(round(percent, 1))
Out:
68.8
68.8% attended.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Attendance was 55 out of 80. Express it as a percent."
},
{
"role": "assistant",
"content": " present = 55\n total = 80\n percent = present / total * 100\n print(round(percent, 1))\nOut:\n68.8\n\n68.8% attended."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 64 | {"gold": "68.8", "printed": "68.8", "notation": null} |
nlprog_det-setting-0054788 | A quorum is 1/3 of the 36 members, rounded up. How many members make a quorum?
A short script:
import math
members = 36
quorum = math.ceil(members * 1 / 3) # 12
print(quorum)
Output: 12
12 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0054789 | <|start|><|user|>
Equipment costs $24,000, has a salvage value of $3,000, and a useful life of 3 years. What is the straight-line depreciation per year?<|eot|>
<|assistant|>
```python
cost = 24000
salvage = 3000
years = 3
per_year = (cost - salvage) / years # 7000.0
print(f"{per_year:.2f}")
```
Out: 7000.00
Depreciat... | chat | [
{
"role": "user",
"content": "Equipment costs $24,000, has a salvage value of $3,000, and a useful life of 3 years. What is the straight-line depreciation per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 24000\nsalvage = 3000\nyears = 3\nper_year = (cost - salvage) / years # 7... | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "7000.00", "printed": "7000.00", "notation": null} |
nlprog_det-setting-0054790 | Rosa and Tariq share $828 in the ratio 1:2. How much does Rosa get?
Computing it:
```python
total = 828
parts_a = 1
parts_b = 2
share_a = total * parts_a // (parts_a + parts_b) # 276
print(share_a)
```
Out:
276
Rosa's share is $276. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "276", "printed": "276", "notation": null} |
nlprog_det-setting-0054791 | On which weekday does August 4, 1995 fall?
Python version:
```python
from datetime import date
hearing = date(1995, 8, 4) # datetime.date(1995, 8, 4)
print(hearing.strftime("%A"))
```
Printed — Friday
August 4, 1995 is a Friday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "Friday", "printed": "Friday", "notation": null} |
nlprog_det-setting-0054792 | <|start|><|user|>
Straight-line depreciation: cost $12,000, salvage $6,000, 6 years. How much per year?<|eot|>
<|assistant|>
```python
cost = 12000
salvage = 6000
years = 6
per_year = (cost - salvage) / years # 1000.0
print(f"{per_year:.2f}")
```
What it prints — 1000.00
$1,000.00 a year.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Straight-line depreciation: cost $12,000, salvage $6,000, 6 years. How much per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 12000\nsalvage = 6000\nyears = 6\nper_year = (cost - salvage) / years # 1000.0\nprint(f\"{per_year:.2f}\")\n```\nWhat it p... | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "1000.00", "printed": "1000.00", "notation": null} |
nlprog_det-setting-0054793 | A quorum is 1/3 of the 60 members, rounded up. How many members make a quorum?
Python code:
```python
import math
members = 60
quorum = math.ceil(members * 1 / 3) # 20
print(quorum)
```
Running this gives 20.
20 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0054794 | Copies cost $10 plus $0.25 for each page beyond 10. How much for 67 pages?
The computation:
```python
pages = 67
base = 10
per_page = 0.25
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 24.25
print(f"{cost:.2f}")
```
Executing it gives 24.25, as expected.
The copy costs $24.25. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "24.25", "printed": "24.25", "notation": null} |
nlprog_det-setting-0054795 | <|start|><|system|>
You help people work with structured data.<|eot|>
<|user|>
Divide 68 items among 4 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|>
<|assistant|>
```python
total = 68
groups = 4
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {rem... | chat | [
{
"role": "system",
"content": "You help people work with structured data."
},
{
"role": "user",
"content": "Divide 68 items among 4 groups as evenly as possible with equal groups. How many per group, and how many remain?"
},
{
"role": "assistant",
"content": "```python\ntotal = 68\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "17 each, 0 left over", "printed": "17 each, 0 left over", "notation": null} |
nlprog_det-setting-0054796 | <|start|><|user|>
Water costs $15 a month plus $4.75 for each 1,000 gallons over 3,000. What is owed for 14,000 gallons?<|eot|>
<|assistant|>
```python
base = 15
rate = 4.75
used = 14
free = 3
bill = base + rate * max(0, used - free) # 67.25
print(f"{bill:.2f}")
```
The program outputs: 67.25
The bill is $67.25.<|eot... | chat | [
{
"role": "user",
"content": "Water costs $15 a month plus $4.75 for each 1,000 gallons over 3,000. What is owed for 14,000 gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 15\nrate = 4.75\nused = 14\nfree = 3\nbill = base + rate * max(0, used - free) # 67.25\nprint(f\"{bill:.2... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "67.25", "printed": "67.25", "notation": null} |
nlprog_det-setting-0054797 | Convert 4 h 19 min (the length of a film) to minutes.
One way, in code:
```python
hours = 4
minutes = 19
total_minutes = hours * 60 + minutes # 259
print(total_minutes)
```
Execution result: 259
The film lasted 259 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "259", "printed": "259", "notation": null} |
nlprog_det-setting-0054798 | <|start|><|user|>
What is -20 degrees Celsius in Fahrenheit?<|eot|>
<|assistant|>
```python
celsius = -20
fahrenheit = celsius * 9 / 5 + 32 # -4.0
print(round(fahrenheit))
```
The program prints -4.
It equals -4 degrees Fahrenheit.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is -20 degrees Celsius in Fahrenheit?"
},
{
"role": "assistant",
"content": "```python\ncelsius = -20\nfahrenheit = celsius * 9 / 5 + 32 # -4.0\nprint(round(fahrenheit))\n```\nThe program prints -4.\n\nIt equals -4 degrees Fahrenheit."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "-4", "printed": "-4", "notation": null} |
nlprog_det-setting-0054799 | A 612-page report must be reviewed in 12 days. How many pages a day is that, evenly?
Translated to Python:
```python
pages = 612
days = 12
per_day = pages // days # 51
print(per_day)
```
Execution result — 51
That is 51 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "51", "printed": "51", "notation": null} |
nlprog_det-setting-0054800 | A clerk's office charges $75 for each filing. Olga submits 7 filings. What is the total fee?
Python does the arithmetic:
```python
fee = 75
filings = 7
total = fee * filings # 525
print(total)
```
stdout: 525
The filings cost $525 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "525", "printed": "525", "notation": null} |
nlprog_det-setting-0054801 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}
{"name": "python", "description":... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\... | nlprog_det | setting | original | null | deterministic | [] | [] | 373 | {"gold": "484", "printed": "484", "notation": null} |
nlprog_det-setting-0054802 | One can of paint covers 250 square feet. How many cans are needed for 1037 square feet of wall?
In Python:
```python
import math
area = 1037
coverage = 250
cans = math.ceil(area / coverage) # 5
print(cans)
```
Running it prints 5, as expected.
Buy 5 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0054803 | A meal costs $227.46. How much is a 22% tip?
Python makes this quick:
```python
bill = 227.46
tip_rate = 22 / 100
tip = bill * tip_rate
print(f"{tip:.2f}")
```
Console output: 50.04
The tip is $50.04. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "50.04", "printed": "50.04", "notation": null} |
nlprog_det-setting-0054804 | A penalty of $25 a day accrues, capped at $5,000. What is owed after 11 days? The fine is $275. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "275", "printed": "275", "notation": null} |
nlprog_det-setting-0054807 | A water bill is $18 plus $4.20 per thousand gallons beyond the first 0 thousand. What is the bill for 21 thousand gallons?
Let the code do the arithmetic:
```python
base = 18
rate = 4.2
used = 21
free = 0
bill = base + rate * max(0, used - free) # 106.2
print(f"{bill:.2f}")
```
Printed result: 106.20
$106.20 is owed... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "106.20", "printed": "106.20", "notation": null} |
nlprog_det-setting-0054808 | A 159-page report must be reviewed in 3 days. How many pages a day is that, evenly?
As Python:
```python
pages = 159
days = 3
per_day = pages // days # 53
print(per_day)
```
Python prints 53, as expected.
53 pages a day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "53", "printed": "53", "notation": null} |
nlprog_det-setting-0054809 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "eval_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"eval_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python sour... | nlprog_det | setting | original | null | deterministic | [] | [] | 225 | {"gold": "12.0", "printed": "12.0", "notation": null} |
nlprog_det-setting-0054810 | Express 116 hours in days and hours.
In code:
```python
hours = 116
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Out = 4 days and 20 hours
116 hours is 4 days and 20 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "4 days and 20 hours", "printed": "4 days and 20 hours", "notation": null} |
nlprog_det-setting-0054812 | <|start|><|system|>
You may call the tools below.
{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}
{"name": "math_engine", "description": "A Python in... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\", \"e... | nlprog_det | setting | original | null | deterministic | [] | [] | 367 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0054813 | <|start|><|user|>
Shipping costs $12 plus $0.75 per pound. What does a 23-pound parcel cost to ship?<|eot|>
<|assistant|>
```python
base = 12
per_pound = 0.75
weight = 23
cost = base + per_pound * weight # 29.25
print(f"{cost:.2f}")
```
It prints 29.25, as expected.
The charge is $29.25.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Shipping costs $12 plus $0.75 per pound. What does a 23-pound parcel cost to ship?"
},
{
"role": "assistant",
"content": "```python\nbase = 12\nper_pound = 0.75\nweight = 23\ncost = base + per_pound * weight # 29.25\nprint(f\"{cost:.2f}\")\n```\nIt prints 29.25, as... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "29.25", "printed": "29.25", "notation": null} |
nlprog_det-setting-0054814 | A hearing starts at 12:15 PM and lasts 40 minutes. When does it end?
A short script:
```python
start = 12 * 60 + 15
end = start + 40
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
The run gives: 12:55 PM
The hearing finishes at 12:55 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "12:55 PM", "printed": "12:55 PM", "notation": null} |
nlprog_det-setting-0054815 | A 340-page report must be reviewed in 10 days. How many pages a day is that, evenly?
That is 34 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "34", "printed": "34", "notation": null} |
nlprog_det-setting-0054816 | What average speed covers 565 miles in 5 hours?
Python, step by step:
```python
distance = 565
hours = 5
speed = distance / hours # 113.0
print(round(speed))
```
The printout reads 113.
It averages 113 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "113", "printed": "113", "notation": null} |
nlprog_det-setting-0054817 | After an initial $6,000, the remainder of a $48,000 grant is paid in 6 equal parts. What is each part?
One way, in code:
```python
grant = 48000
up_front = 6000
installments = 6
each = (grant - up_front) / installments
print(f"{each:.2f}")
```
# printed result: 7000.00
Each installment is $7,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "7000.00", "printed": "7000.00", "notation": null} |
nlprog_det-setting-0054818 | <|start|><|system|>
You are a logic tutor.<|eot|>
<|user|>
With 10 rows of 16 chairs and 38 empty chairs, how many chairs are taken?<|eot|>
<|assistant|>
rows = 10
per_row = 16
empty = 38
seated = rows * per_row - empty # 122
print(seated)
Run result = 122
122 seats are taken.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a logic tutor."
},
{
"role": "user",
"content": "With 10 rows of 16 chairs and 38 empty chairs, how many chairs are taken?"
},
{
"role": "assistant",
"content": " rows = 10\n per_row = 16\n empty = 38\n seated = rows * per_row - emp... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "122", "printed": "122", "notation": null} |
nlprog_det-setting-0054819 | <|start|><|user|>
After a 40% fee is taken from a $72,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|>
<|assistant|>
```python
award = 72000
fee = award * 40 / 100 # 28800.0
remaining = award - fee # 43200.0
per_client = remaining / 3 # 14400.0
print(f"{per_client:.2f}")... | chat | [
{
"role": "user",
"content": "After a 40% fee is taken from a $72,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?"
},
{
"role": "assistant",
"content": "```python\naward = 72000\nfee = award * 40 / 100 # 28800.0\nremaining = award - fee # 43200.0\nper_cl... | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "14400.00", "printed": "14400.00", "notation": null} |
nlprog_det-setting-0054820 | <|start|><|user|>
How much sales tax is charged on a $873.46 purchase at 6%?<|eot|>
<|assistant|>
```python
price = 873.46
tax_rate = 6 / 100 # 0.06
tax = price * tax_rate # 52.4076
print(f"{tax:.2f}")
```
When run, it prints: 52.41
$52.41 in tax.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How much sales tax is charged on a $873.46 purchase at 6%?"
},
{
"role": "assistant",
"content": "```python\nprice = 873.46\ntax_rate = 6 / 100 # 0.06\ntax = price * tax_rate # 52.4076\nprint(f\"{tax:.2f}\")\n```\nWhen run, it prints: 52.41\n\n$52.41 in tax."
}
... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "52.41", "printed": "52.41", "notation": null} |
nlprog_det-setting-0054821 | <|start|><|user|>
How long, in days, is it from September 24, 2020 until July 13, 2021?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2020, 9, 24) # datetime.date(2020, 9, 24)
second = date(2021, 7, 13) # datetime.date(2021, 7, 13)
print((second - first).days)
```
stdout: 292
It is 292 days.<... | chat | [
{
"role": "user",
"content": "How long, in days, is it from September 24, 2020 until July 13, 2021?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2020, 9, 24) # datetime.date(2020, 9, 24)\nsecond = date(2021, 7, 13) # datetime.date(2021, 7, 13)\nprin... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "292", "printed": "292", "notation": null} |
nlprog_det-setting-0054822 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "calculator", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "ge... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"calculator\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python sour... | nlprog_det | setting | original | null | deterministic | [] | [] | 305 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0054824 | A clerk's office charges $150 for each filing. Viktor submits 7 filings. What is the total fee?
Written as code:
```python
fee = 150
filings = 7
total = fee * filings # 1050
print(total)
```
# stdout: 1050
The total fee is $1,050. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "1050", "printed": "1050", "notation": null} |
nlprog_det-setting-0054825 | <|start|><|system|>
Keep answers short and correct.<|eot|>
<|user|>
Filing fees are $45 per document. What do 15 filings cost?<|eot|>
<|assistant|>
```python
fee = 45
filings = 15
total = fee * filings
print(total)
```
(Console output: 675)
The filings cost $675 in all.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Keep answers short and correct."
},
{
"role": "user",
"content": "Filing fees are $45 per document. What do 15 filings cost?"
},
{
"role": "assistant",
"content": "```python\nfee = 45\nfilings = 15\ntotal = fee * filings\nprint(total)\n```\n(Console ou... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "675", "printed": "675", "notation": null} |
nlprog_det-setting-0054826 | <|start|><|user|>
What percentage of $2,000 is $100?<|eot|>
<|assistant|>
```python
budget = 2000
spent = 100
percent = spent / budget * 100 # 5.0
print(round(percent, 1))
```
That prints: 5.0
5.0% has been spent.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What percentage of $2,000 is $100?"
},
{
"role": "assistant",
"content": "```python\nbudget = 2000\nspent = 100\npercent = spent / budget * 100 # 5.0\nprint(round(percent, 1))\n```\nThat prints: 5.0\n\n5.0% has been spent."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "5.0", "printed": "5.0", "notation": null} |
nlprog_det-setting-0054827 | <|start|><|system|>
You may call the tools below.
{"name": "eval_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|>
<|user|>
What day ... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n{\"name\": \"eval_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}},... | nlprog_det | setting | original | null | deterministic | [] | [] | 212 | {"gold": "Thursday", "printed": "Thursday", "notation": null} |
nlprog_det-setting-0054828 | <|start|><|user|>
The statute was enacted in 2014. How many years had passed by 2027?<|eot|>
<|assistant|>
13 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The statute was enacted in 2014. How many years had passed by 2027?"
},
{
"role": "assistant",
"content": "13 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 29 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0054829 | <|start|><|user|>
Goran has 18 documents to file, and each filing costs $45. How much are the filing fees in total?<|eot|>
<|assistant|>
```python
fee = 45
filings = 18
total = fee * filings # 810
print(total)
```
It outputs: 810
The total fee is $810.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Goran has 18 documents to file, and each filing costs $45. How much are the filing fees in total?"
},
{
"role": "assistant",
"content": "```python\nfee = 45\nfilings = 18\ntotal = fee * filings # 810\nprint(total)\n```\nIt outputs: 810\n\nThe total fee is $810."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "810", "printed": "810", "notation": null} |
nlprog_det-setting-0054830 | Each storage box holds 20 files. How many boxes are needed for 710 files?
A short script:
```python
import math
files = 710
per_box = 20
boxes = math.ceil(files / per_box) # 36
print(boxes)
```
On running, it outputs 36.
36 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0054831 | Convert -5 °C to Fahrenheit.
As a program:
```python
celsius = -5
fahrenheit = celsius * 9 / 5 + 32 # 23.0
print(round(fahrenheit))
```
What it prints: 23
It equals 23 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0054832 | A penalty of $100 a day accrues, capped at $2,500. What is owed after 42 days?
Here is the program.
```python
per_day = 100
days = 42
cap = 2500
fine = min(per_day * days, cap) # 2500
print(fine)
```
That prints 2500.
The fine is $2,500. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "2500", "printed": "2500", "notation": null} |
nlprog_det-setting-0054833 | Which is cheaper per unit: 8 for $9.82 (A) or 15 for $21.72 (B)?
In code:
```python
pack_a = 9.82 / 8 # 1.2275
pack_b = 21.72 / 15 # 1.448
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
# console output: A
A has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0054834 | A 390-mile drive at a steady 65 mph takes how many minutes?
Let the code do the arithmetic:
```python
distance = 390
speed = 65
minutes = distance / speed * 60 # 360.0
print(round(minutes))
```
(Printed: 360)
The trip takes 360 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "360", "printed": "360", "notation": null} |
nlprog_det-setting-0054835 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "interpreter", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "translate", "de... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"interpreter\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, ... | nlprog_det | setting | original | null | deterministic | [] | [] | 338 | {"gold": "176.40", "printed": "176.40", "notation": null} |
nlprog_det-setting-0054837 | <|start|><|user|>
Bruna was born on March 13, 1986. How old is Bruna on October 2, 2029?<|eot|>
<|assistant|>
Bruna is 43.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Bruna was born on March 13, 1986. How old is Bruna on October 2, 2029?"
},
{
"role": "assistant",
"content": "Bruna is 43."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "43", "printed": "43", "notation": null} |
nlprog_det-setting-0054838 | How many of 170 votes make 67% (round up)?
A short script:
```python
import math
voters = 170
needed = math.ceil(voters * 67 / 100) # 114
print(needed)
```
(Execution result: 114)
114 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "114", "printed": "114", "notation": null} |
nlprog_det-setting-0054839 | At $0.67 per mile, what is the reimbursement for 565 miles?
We can compute it in Python.
```python
miles = 565
rate = 0.67
reimbursement = miles * rate # 378.55
print(f"{reimbursement:.2f}")
```
It prints: 378.55
The reimbursement is $378.55. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "378.55", "printed": "378.55", "notation": null} |
nlprog_det-setting-0054840 | <|start|><|user|>
A clerk's office charges $25 for each filing. Paula submits 15 filings. What is the total fee?<|eot|>
<|assistant|>
The total fee is $375.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A clerk's office charges $25 for each filing. Paula submits 15 filings. What is the total fee?"
},
{
"role": "assistant",
"content": "The total fee is $375."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "375", "printed": "375", "notation": null} |
nlprog_det-setting-0054841 | Mateo has 6 documents to file, and each filing costs $125. How much are the filing fees in total?
```python
fee = 125
filings = 6
total = fee * filings # 750
print(total)
```
(Run result: 750)
$750 in filing fees. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "750", "printed": "750", "notation": null} |
nlprog_det-setting-0054842 | <|start|><|user|>
How many minutes pass from 11:58 AM to 12:58 PM on the same day?<|eot|>
<|assistant|>
start = 11 * 60 + 58 # 718
end = 12 * 60 + 58 # 778
print(end - start)
Result: 60
It is 60 minutes long.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many minutes pass from 11:58 AM to 12:58 PM on the same day?"
},
{
"role": "assistant",
"content": " start = 11 * 60 + 58 # 718\n end = 12 * 60 + 58 # 778\n print(end - start)\nResult: 60\n\nIt is 60 minutes long."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 71 | {"gold": "60", "printed": "60", "notation": null} |
nlprog_det-setting-0054843 | Of a $5,000 budget, $1,200 has been spent. What percent is that?
Computing it:
```python
budget = 5000
spent = 1200
percent = spent / budget * 100 # 24.0
print(round(percent, 1))
```
(Run result: 24.0)
24.0% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "24.0", "printed": "24.0", "notation": null} |
nlprog_det-setting-0054844 | Sales went from 400 to 600. What is the percent change?
We write it as a program:
```python
old = 400
new = 600
change = (new - old) / old * 100 # 50.0
print(round(change))
```
When run, it prints 50.
The change is 50%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0054845 | <|start|><|user|>
Find the mean of these test scores: 59, 77, 85, 91, 71, 98 and 100.<|eot|>
<|assistant|>
The mean is 83.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Find the mean of these test scores: 59, 77, 85, 91, 71, 98 and 100."
},
{
"role": "assistant",
"content": "The mean is 83."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "83", "printed": "83", "notation": null} |
nlprog_det-setting-0054846 | <|start|><|system|>
Be concise.<|eot|>
<|user|>
What simple interest does $5,000 earn at 3% a year over 2 years?<|eot|>
<|assistant|>
```python
principal = 5000
rate = 3 / 100 # 0.03
years = 2
interest = principal * rate * years # 300.0
print(f"{interest:.2f}")
```
Interpreter output — 300.00
The interest is $300.00... | chat | [
{
"role": "system",
"content": "Be concise."
},
{
"role": "user",
"content": "What simple interest does $5,000 earn at 3% a year over 2 years?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 5000\nrate = 3 / 100 # 0.03\nyears = 2\ninterest = principal * rate * years #... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "300.00", "printed": "300.00", "notation": null} |
nlprog_det-setting-0054847 | Starting from $25,000, the team spends $768, $2,442. What remains?
Python makes this quick:
```python
budget = 25000
expenses = [768, 2442]
left = budget - sum(expenses) # 21790
print(left)
```
It prints 21790, as expected.
$21,790 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "21790", "printed": "21790", "notation": null} |
nlprog_det-setting-0054848 | On which weekday does October 1, 2008 fall?
Python code:
```python
from datetime import date
hearing = date(2008, 10, 1) # datetime.date(2008, 10, 1)
print(hearing.strftime("%A"))
```
The printout reads: Wednesday
It is a Wednesday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "Wednesday", "printed": "Wednesday", "notation": null} |
nlprog_det-setting-0054850 | <|start|><|user|>
One can of paint covers 400 square feet. How many cans are needed for 274 square feet of wall?<|eot|>
<|assistant|>
```python
import math
area = 274
coverage = 400
cans = math.ceil(area / coverage)
print(cans)
```
This prints 1, as expected.
Buy 1 cans.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "One can of paint covers 400 square feet. How many cans are needed for 274 square feet of wall?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 274\ncoverage = 400\ncans = math.ceil(area / coverage)\nprint(cans)\n```\nThis prints 1, as expected.... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "1", "printed": "1", "notation": null} |
nlprog_det-setting-0054851 | What is the total rent on a 12-month lease at $975 a month?
In total, $11,700 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "11700", "printed": "11700", "notation": null} |
nlprog_det-setting-0054853 | <|start|><|user|>
After a 40% fee is taken from a $96,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|>
<|assistant|>
```python
award = 96000
fee = award * 40 / 100 # 38400.0
remaining = award - fee # 57600.0
per_client = remaining / 3 # 19200.0
print(f"{per_client:.2f}")... | chat | [
{
"role": "user",
"content": "After a 40% fee is taken from a $96,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?"
},
{
"role": "assistant",
"content": "```python\naward = 96000\nfee = award * 40 / 100 # 38400.0\nremaining = award - fee # 57600.0\nper_cl... | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "19200.00", "printed": "19200.00", "notation": null} |
nlprog_det-setting-0054854 | A 195-page report must be reviewed in 13 days. How many pages a day is that, evenly?
```python
pages = 195
days = 13
per_day = pages // days # 15
print(per_day)
```
The program prints 15, as expected.
That is 15 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "15", "printed": "15", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.