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-0076035 | <|start|><|user|>
A $3,600 loan carries 5% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|>
<|assistant|>
```python
principal = 3600
annual_rate = 5 / 100 # 0.05
months = 12
interest = principal * annual_rate * months / 12 # 180.0
payment... | chat | [
{
"role": "user",
"content": "A $3,600 loan carries 5% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 3600\nannual_rate = 5 / 100 # 0.05\nmonths = 12\ninteres... | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "315.00", "printed": "315.00", "notation": null} |
nlprog_det-setting-0076036 | Equipment costs $12,000, has a salvage value of $3,000, and a useful life of 6 years. What is the straight-line depreciation per year?
The computation:
```python
cost = 12000
salvage = 3000
years = 6
per_year = (cost - salvage) / years # 1500.0
print(f"{per_year:.2f}")
```
Output — 1500.00
$1,500.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "1500.00", "printed": "1500.00", "notation": null} |
nlprog_det-setting-0076037 | <|start|><|user|>
Leon has 13 documents to file, and each filing costs $405. How much are the filing fees in total?<|eot|>
<|assistant|>
fee = 405
filings = 13
total = fee * filings # 5265
print(total)
(Run result: 5265)
The total fee is $5,265.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Leon has 13 documents to file, and each filing costs $405. How much are the filing fees in total?"
},
{
"role": "assistant",
"content": " fee = 405\n filings = 13\n total = fee * filings # 5265\n print(total)\n(Run result: 5265)\n\nThe total fee is $5,2... | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "5265", "printed": "5265", "notation": null} |
nlprog_det-setting-0076038 | With 18 rows of 23 chairs and 36 empty chairs, how many chairs are taken?
The computation:
```python
rows = 18
per_row = 23
empty = 36
seated = rows * per_row - empty # 378
print(seated)
```
On running, it outputs: 378
378 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "378", "printed": "378", "notation": null} |
nlprog_det-setting-0076039 | A customer buys 2 labels at $19 each, 6 toner kits at $3 each and pays with $100. How much change is due?
items = [(2, 19), (6, 3)]
total = sum(q * p for q, p in items) # 56
paid = 100
change = paid - total # 44
print(change)
(Printed result: 44)
$44 comes back. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "44", "printed": "44", "notation": null} |
nlprog_det-setting-0076040 | Monthly: $29. Annual: $336. What is saved per year by paying annually?
Set it up in Python:
```python
monthly = 29
yearly = 336
savings = monthly * 12 - yearly # 12
print(savings)
```
Run it and it prints 12.
The annual plan saves $12. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0076041 | <|start|><|user|>
A 6-day trip pays $64 a day for meals and $175 a night for lodging (5 nights). What is the total allowance?<|eot|>
<|assistant|>
That comes to $1,259.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 6-day trip pays $64 a day for meals and $175 a night for lodging (5 nights). What is the total allowance?"
},
{
"role": "assistant",
"content": "That comes to $1,259."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 53 | {"gold": "1259", "printed": "1259", "notation": null} |
nlprog_det-setting-0076042 | A $120 dinner bill gets a 18% tip, and 5 people share the cost equally. What is each person's share?
Code:
```python
bill = 120
tip_rate = 18 / 100 # 0.18
people = 5
each = bill * (1 + tip_rate) / people # 28.32
print(f"{each:.2f}")
```
Python prints 28.32.
The share is $28.32 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "28.32", "printed": "28.32", "notation": null} |
nlprog_det-setting-0076043 | At 1% a month (simple), what interest builds on $7,500 over 3 months?
```python
balance = 7500
monthly_rate = 1 / 100 # 0.01
months = 3
interest = balance * monthly_rate * months # 225.0
print(f"{interest:.2f}")
```
Executed, it shows 225.00.
$225.00 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "225.00", "printed": "225.00", "notation": null} |
nlprog_det-setting-0076044 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "run_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "busines... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"run_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source cod... | nlprog_det | setting | original | null | deterministic | [] | [] | 338 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0076045 | A 325-mile drive at a steady 65 mph takes how many minutes?
A few lines of Python do it:
```python
distance = 325
speed = 65
minutes = distance / speed * 60 # 300.0
print(round(minutes))
```
Run result — 300
300 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0076046 | <|start|><|user|>
Sales went from 2,500 to 3,500. What is the percent change?<|eot|>
<|assistant|>
```python
old = 2500
new = 3500
change = (new - old) / old * 100 # 40.0
print(round(change))
```
stdout = 40
The change is 40%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Sales went from 2,500 to 3,500. What is the percent change?"
},
{
"role": "assistant",
"content": "```python\nold = 2500\nnew = 3500\nchange = (new - old) / old * 100 # 40.0\nprint(round(change))\n```\nstdout = 40\n\nThe change is 40%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0076047 | <|start|><|system|>
You help people work with structured data.<|eot|>
<|user|>
The landlord deducts $75, $45 and $60 from a $1,500 deposit. What is returned to the tenant?<|eot|>
<|assistant|>
```python
deposit = 1500
deductions = [75, 45, 60]
refund = deposit - sum(deductions) # 1320
print(refund)
```
# printed resul... | chat | [
{
"role": "system",
"content": "You help people work with structured data."
},
{
"role": "user",
"content": "The landlord deducts $75, $45 and $60 from a $1,500 deposit. What is returned to the tenant?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 1500\ndeductions = [75... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "1320", "printed": "1320", "notation": null} |
nlprog_det-setting-0076048 | Goran earns $22.40 an hour and time and a half for hours over 40. What is the pay for a 47-hour week?
Computation in Python:
```python
rate = 22.4
hours = 47
regular = 40 * rate # 896.0
overtime = (hours - 40) * rate * 1.5 # 235.2
pay = regular + overtime # 1131.2
print(f"{pay:.2f}")
```
The code prints: 1131.20
T... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "1131.20", "printed": "1131.20", "notation": null} |
nlprog_det-setting-0076049 | 3 friends split a $180 bill plus a 20% tip evenly. How much does each pay?
Coded up:
```python
bill = 180
tip_rate = 20 / 100 # 0.2
people = 3
each = bill * (1 + tip_rate) / people # 72.0
print(f"{each:.2f}")
```
Out:
72.00
The share is $72.00 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "72.00", "printed": "72.00", "notation": null} |
nlprog_det-setting-0076050 | Count the days between August 24, 2020 and January 22, 2021.
```python
from datetime import date
first = date(2020, 8, 24) # datetime.date(2020, 8, 24)
second = date(2021, 1, 22) # datetime.date(2021, 1, 22)
print((second - first).days)
```
Execution prints 151.
It is 151 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "151", "printed": "151", "notation": null} |
nlprog_det-setting-0076051 | Buying 1 toner kits at $10 each, 1 clipboards at $21 each, 3 envelopes at $21 each, 6 badges at $23 each, someone hands over $250. What change comes back?
Python does the arithmetic:
items = [(1, 10), (1, 21), (3, 21), (6, 23)]
total = sum(q * p for q, p in items) # 232
paid = 250
change = paid - tota... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0076052 | <|start|><|user|>
Lena's scores were 63, 52 and 89. What is the average score?<|eot|>
<|assistant|>
```python
scores = [63, 52, 89]
average = sum(scores) // len(scores)
print(average)
```
The program prints 68.
The average score is 68.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Lena's scores were 63, 52 and 89. What is the average score?"
},
{
"role": "assistant",
"content": "```python\nscores = [63, 52, 89]\naverage = sum(scores) // len(scores)\nprint(average)\n```\nThe program prints 68.\n\nThe average score is 68."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "68", "printed": "68", "notation": null} |
nlprog_det-setting-0076053 | What commission does Sofia make on $70,108 in sales at 3%?
As a program:
sales = 70108
rate = 3 / 100 # 0.03
commission = sales * rate # 2103.24
print(f"{commission:.2f}")
Run result — 2103.24
The commission is $2,103.24. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "2103.24", "printed": "2103.24", "notation": null} |
nlprog_det-setting-0076054 | With $4,000 in costs and $8,000 in revenue, what percent of revenue is profit? Round to one decimal.
Python version:
```python
revenue = 8000
costs = 4000
profit = revenue - costs # 4000
margin = profit / revenue * 100 # 50.0
print(round(margin, 1))
```
Output of the run — 50.0
Profit is 50.0% of revenue. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "50.0", "printed": "50.0", "notation": null} |
nlprog_det-setting-0076055 | Monthly: $15. Annual: $168. What is saved per year by paying annually?
Set it up in Python:
```python
monthly = 15
yearly = 168
savings = monthly * 12 - yearly # 12
print(savings)
```
Executing it gives 12, as expected.
The annual plan saves $12. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0076056 | How many 1-foot square tiles cover a 13 ft by 3 ft floor (round up)?
A few lines of Python do it:
import math
length = 13
width = 3
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 39
print(tiles)
stdout = 39
39 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "39", "printed": "39", "notation": null} |
nlprog_det-setting-0076057 | Monthly rent is $900. A tenant moves in with 7 days left in a 31-day month. What is the prorated rent?
Python does the arithmetic:
```python
rent = 900
days_in_month = 31
days_occupied = 7
prorated = rent * days_occupied / days_in_month # 203.2258064516129
print(f"{prorated:.2f}")
```
The program outputs 203.23.
The... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "203.23", "printed": "203.23", "notation": null} |
nlprog_det-setting-0076058 | A claim accrued on January 16, 2012. The limitations period is 6 years. On what date does it expire?
The period expires on January 16, 2018. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "2018-01-16", "printed": "2018-01-16", "notation": null} |
nlprog_det-setting-0076059 | How many 2-foot square tiles cover a 19 ft by 8 ft floor (round up)?
Script:
```python
import math
length = 19
width = 8
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 38
print(tiles)
```
# run result: 38
It takes 38 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "38", "printed": "38", "notation": null} |
nlprog_det-setting-0076060 | <|start|><|user|>
Convert 5,890 GBP to USD at 1 GBP = 1.12 USD.<|eot|>
<|assistant|>
```python
amount = 5890
rate = 1.12
converted = amount * rate # 6596.8
print(f"{converted:.2f}")
```
# printed: 6596.80
It converts to 6,596.80 USD.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 5,890 GBP to USD at 1 GBP = 1.12 USD."
},
{
"role": "assistant",
"content": "```python\namount = 5890\nrate = 1.12\nconverted = amount * rate # 6596.8\nprint(f\"{converted:.2f}\")\n```\n# printed: 6596.80\n\nIt converts to 6,596.80 USD."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "6596.80", "printed": "6596.80", "notation": null} |
nlprog_det-setting-0076061 | <|start|><|user|>
If a 105-minute appointment begins at 11:20 AM, what time does it finish?<|eot|>
<|assistant|>
```python
start = 11 * 60 + 20
end = start + 105
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
When run, it prints 1:05 PM.
The appointment fi... | chat | [
{
"role": "user",
"content": "If a 105-minute appointment begins at 11:20 AM, what time does it finish?"
},
{
"role": "assistant",
"content": "```python\nstart = 11 * 60 + 20\nend = start + 105\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else '... | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "1:05 PM", "printed": "1:05 PM", "notation": null} |
nlprog_det-setting-0076062 | 6 bike rides at 350 calories each burn how many calories in total?
Let the code do the arithmetic:
per_session = 350
sessions = 6
total = per_session * sessions # 2100
print(total)
The script prints 2100, as expected.
That burns 2100 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "2100", "printed": "2100", "notation": null} |
nlprog_det-setting-0076063 | After a 25% fee is taken from a $30,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?
```python
award = 30000
fee = award * 25 / 100
remaining = award - fee
per_client = remaining / 3
print(f"{per_client:.2f}")
```
When run, it prints: 7500.00
Each client gets $7,500.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "7500.00", "printed": "7500.00", "notation": null} |
nlprog_det-setting-0076064 | Express 284 hours in days and hours.
Code:
hours = 284
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
This prints: 11 days and 20 hours
That is 11 days and 20 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 71 | {"gold": "11 days and 20 hours", "printed": "11 days and 20 hours", "notation": null} |
nlprog_det-setting-0076065 | <|start|><|system|>
Tool definitions:
{"name": "calculator", "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"]}}
{"name": "lookup_statute", "descriptio... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"calculator\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 333 | {"gold": "1187.50", "printed": "1187.50", "notation": null} |
nlprog_det-setting-0076066 | Notice was given on December 8, 2019. The notice period is 30 days. When does it run out?
Here's the code.
```python
from datetime import date, timedelta
start = date(2019, 12, 8) # datetime.date(2019, 12, 8)
end = start + timedelta(days=30) # datetime.date(2020, 1, 7)
print(end.isoformat())
```
The interpreter prin... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "2020-01-07", "printed": "2020-01-07", "notation": null} |
nlprog_det-setting-0076067 | <|start|><|system|>
You are a precise assistant.<|eot|>
<|user|>
Rosa drove 441 miles for work. Mileage is reimbursed at 67 cents a mile. How much is the reimbursement?<|eot|>
<|assistant|>
```python
miles = 441
rate = 0.67
reimbursement = miles * rate # 295.47
print(f"{reimbursement:.2f}")
```
Running it prints 295.4... | chat | [
{
"role": "system",
"content": "You are a precise assistant."
},
{
"role": "user",
"content": "Rosa drove 441 miles for work. Mileage is reimbursed at 67 cents a mile. How much is the reimbursement?"
},
{
"role": "assistant",
"content": "```python\nmiles = 441\nrate = 0.67\nreimburse... | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "295.47", "printed": "295.47", "notation": null} |
nlprog_det-setting-0076068 | 2 books come back 5 days late, at $0.25 a day each. What is the fine?
Script:
```python
per_day = 0.25
days_late = 5
books = 2
fine = per_day * days_late * books
print(f"{fine:.2f}")
```
Printed — 2.50
The fine is $2.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "2.50", "printed": "2.50", "notation": null} |
nlprog_det-setting-0076069 | Joelle drove 207 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement?
Joelle is owed $120.06. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "120.06", "printed": "120.06", "notation": null} |
nlprog_det-setting-0076070 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
{"name": "run_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|>... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"run_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Pytho... | nlprog_det | setting | original | null | deterministic | [] | [] | 212 | {"gold": "237", "printed": "237", "notation": null} |
nlprog_det-setting-0076071 | How many of 210 votes make 67% (round up)?
Python code:
```python
import math
voters = 210
needed = math.ceil(voters * 67 / 100)
print(needed)
```
Console output — 141
At least 141 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "141", "printed": "141", "notation": null} |
nlprog_det-setting-0076072 | <|start|><|user|>
Equipment costs $18,000, has a salvage value of $2,000, and a useful life of 4 years. What is the straight-line depreciation per year?<|eot|>
<|assistant|>
cost = 18000
salvage = 2000
years = 4
per_year = (cost - salvage) / years # 4000.0
print(f"{per_year:.2f}")
Console:
4000.00
... | chat | [
{
"role": "user",
"content": "Equipment costs $18,000, has a salvage value of $2,000, and a useful life of 4 years. What is the straight-line depreciation per year?"
},
{
"role": "assistant",
"content": " cost = 18000\n salvage = 2000\n years = 4\n per_year = (cost - salvage) / years... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "4000.00", "printed": "4000.00", "notation": null} |
nlprog_det-setting-0076073 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "python_exec", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"python_exec\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \... | nlprog_det | setting | original | null | deterministic | [] | [] | 220 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0076074 | 12 hours of work at $300 an hour: what is the total charge?
```python
hours = 12
rate = 300
bill = hours * rate # 3600
print(f"{bill:.2f}")
```
When run, it prints: 3600.00
The bill is $3,600.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "3600.00", "printed": "3600.00", "notation": null} |
nlprog_det-setting-0076075 | Fines run at $100 per day up to a maximum of $2,500. How much after 28 days?
As a program:
```python
per_day = 100
days = 28
cap = 2500
fine = min(per_day * days, cap) # 2500
print(fine)
```
It outputs 2500.
$2,500 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "2500", "printed": "2500", "notation": null} |
nlprog_det-setting-0076076 | <|start|><|user|>
A measure needs at least 67% of 252 votes. How many votes is that, rounded up?<|eot|>
<|assistant|>
```python
import math
voters = 252
needed = math.ceil(voters * 67 / 100) # 169
print(needed)
```
# printed: 169
169 votes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A measure needs at least 67% of 252 votes. How many votes is that, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 252\nneeded = math.ceil(voters * 67 / 100) # 169\nprint(needed)\n```\n# printed: 169\n\n169 votes are needed."
}... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "169", "printed": "169", "notation": null} |
nlprog_det-setting-0076077 | <|start|><|user|>
A water bill is $18 plus $5.10 per thousand gallons beyond the first 3 thousand. What is the bill for 3 thousand gallons?<|eot|>
<|assistant|>
```python
base = 18
rate = 5.1
used = 3
free = 3
bill = base + rate * max(0, used - free) # 18.0
print(f"{bill:.2f}")
```
stdout:
18.00
$18.00 is owed.<|eot|... | chat | [
{
"role": "user",
"content": "A water bill is $18 plus $5.10 per thousand gallons beyond the first 3 thousand. What is the bill for 3 thousand gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 18\nrate = 5.1\nused = 3\nfree = 3\nbill = base + rate * max(0, used - free) # 18.0\np... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "18.00", "printed": "18.00", "notation": null} |
nlprog_det-setting-0076078 | To read 144 pages in 4 days, how many pages per day are needed?
Coded up:
```python
pages = 144
days = 4
per_day = pages // days # 36
print(per_day)
```
The interpreter prints: 36
That is 36 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0076079 | A film lasted 2 hours and 51 minutes. How many minutes is that?
Let the code do the arithmetic:
```python
hours = 2
minutes = 51
total_minutes = hours * 60 + minutes # 171
print(total_minutes)
```
Output of the run: 171
That is 171 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "171", "printed": "171", "notation": null} |
nlprog_det-setting-0076080 | A 16 × 12 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?
Computing it:
```python
import math
length = 16
width = 12
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 48
print(tiles)
```
Executing it gives: 48
48 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0076081 | <|start|><|user|>
Express 67 hours in days and hours.<|eot|>
<|assistant|>
67 hours is 2 days and 19 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Express 67 hours in days and hours."
},
{
"role": "assistant",
"content": "67 hours is 2 days and 19 hours."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 28 | {"gold": "2 days and 19 hours", "printed": "2 days and 19 hours", "notation": null} |
nlprog_det-setting-0076082 | <|start|><|system|>
Functions:
{"name": "python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|>
<|user|>
Each of Idris's walks b... | chat | [
{
"role": "system",
"content": "Functions:\n{\"name\": \"python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": ... | nlprog_det | setting | original | null | deterministic | [] | [] | 207 | {"gold": "2100", "printed": "2100", "notation": null} |
nlprog_det-setting-0076083 | How many 1-foot square tiles cover a 11 ft by 10 ft floor (round up)?
Coded up:
```python
import math
length = 11
width = 10
tile = 1
tiles = math.ceil(length * width / (tile * tile))
print(tiles)
```
Output of the run — 110
It takes 110 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "110", "printed": "110", "notation": null} |
nlprog_det-setting-0076084 | 122 volunteers are split into 3 equal teams. How many are on each team, and how many are left over?
Python makes this quick:
```python
total = 122
groups = 3
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Running it prints 40 each, 2 left over, as expected.
The answ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "40 each, 2 left over", "printed": "40 each, 2 left over", "notation": null} |
nlprog_det-setting-0076085 | <|start|><|user|>
Papers were served by mail on October 4, 2018. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date?<|eot|>
<|assistant|>
from datetime import date, timedelta
served = date(2018, 10, 4) # datetime.date(2018, 10, 4)
response_days = 28
mail_days =... | chat | [
{
"role": "user",
"content": "Papers were served by mail on October 4, 2018. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date?"
},
{
"role": "assistant",
"content": " from datetime import date, timedelta\n served = date(2018, 10, 4) # datetime.d... | nlprog_det | setting | original | null | deterministic | [] | [] | 163 | {"gold": "2018-11-04", "printed": "2018-11-04", "notation": null} |
nlprog_det-setting-0076086 | One can of paint covers 300 square feet. How many cans are needed for 1322 square feet of wall?
Let the code do the arithmetic:
```python
import math
area = 1322
coverage = 300
cans = math.ceil(area / coverage) # 5
print(cans)
```
The run gives: 5
Buy 5 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0076088 | <|start|><|user|>
At a 7% tax rate, what is the tax on $343.19?<|eot|>
<|assistant|>
```python
price = 343.19
tax_rate = 7 / 100 # 0.07
tax = price * tax_rate # 24.023300000000003
print(f"{tax:.2f}")
```
Result = 24.02
The tax is $24.02.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At a 7% tax rate, what is the tax on $343.19?"
},
{
"role": "assistant",
"content": "```python\nprice = 343.19\ntax_rate = 7 / 100 # 0.07\ntax = price * tax_rate # 24.023300000000003\nprint(f\"{tax:.2f}\")\n```\nResult = 24.02\n\nThe tax is $24.02."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "24.02", "printed": "24.02", "notation": null} |
nlprog_det-setting-0076089 | Copies cost $15 plus $0.50 for each page beyond 20. How much for 14 pages?
One way, in code:
pages = 14
base = 15
per_page = 0.5
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page # 15.0
print(f"{cost:.2f}")
(stdout: 15.00)
The total is $15.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "15.00", "printed": "15.00", "notation": null} |
nlprog_det-setting-0076090 | <|start|><|user|>
Express 268 hours in days and hours.<|eot|>
<|assistant|>
```python
hours = 268
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
When run, it prints: 11 days and 4 hours
That is 11 days and 4 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Express 268 hours in days and hours."
},
{
"role": "assistant",
"content": "```python\nhours = 268\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nWhen run, it prints: 11 days and 4 hours\n\nThat is 11 days and 4 hours."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "11 days and 4 hours", "printed": "11 days and 4 hours", "notation": null} |
nlprog_det-setting-0076091 | <|start|><|user|>
Fixed costs are $6,000. Each unit sells for $40 and costs $34 to make. How many units must be sold to break even?<|eot|>
<|assistant|>
import math
fixed = 6000
price = 40
variable = 34
units = math.ceil(fixed / (price - variable)) # 1000
print(units)
Console output: 1000
Brea... | chat | [
{
"role": "user",
"content": "Fixed costs are $6,000. Each unit sells for $40 and costs $34 to make. How many units must be sold to break even?"
},
{
"role": "assistant",
"content": " import math\n fixed = 6000\n price = 40\n variable = 34\n units = math.ceil(fixed / (price - vari... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0076092 | What does $1,000 grow to in 3 years at 5% annual compounding?
principal = 1000
rate = 5 / 100 # 0.05
years = 3
value = principal * (1 + rate) ** years # 1157.6250000000002
print(f"{value:.2f}")
Running it prints 1157.63.
The balance is $1,157.63. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "1157.63", "printed": "1157.63", "notation": null} |
nlprog_det-setting-0076094 | 67 of 80 members attended. What percent attended?
A Python solution:
```python
present = 67
total = 80
percent = present / total * 100 # 83.75
print(round(percent, 1))
```
stdout:
83.8
83.8% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "83.8", "printed": "83.8", "notation": null} |
nlprog_det-setting-0076095 | Goods bought on July 8, 2021 carry a 12-month warranty. When does it expire?
Code:
```python
from datetime import date
start = date(2021, 7, 8)
months = 12
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
Output of the run —... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "2022-07-08", "printed": "2022-07-08", "notation": null} |
nlprog_det-setting-0076096 | <|start|><|system|>
You check calculations for an accounting team.<|eot|>
<|user|>
A garage charges $3 an hour, never more than $20 a day. How much for 2 hours?<|eot|>
<|assistant|>
rate = 3
hours = 2
daily_max = 20
cost = min(rate * hours, daily_max) # 6
print(cost)
It prints 6, as expected.
The ... | chat | [
{
"role": "system",
"content": "You check calculations for an accounting team."
},
{
"role": "user",
"content": "A garage charges $3 an hour, never more than $20 a day. How much for 2 hours?"
},
{
"role": "assistant",
"content": " rate = 3\n hours = 2\n daily_max = 20\n c... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0076097 | Revenue is $6,000 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)?
Translated to Python:
revenue = 6000
costs = 4000
profit = revenue - costs # 2000
margin = profit / revenue * 100 # 33.33333333333333
print(round(margin, 1))
Run output — 33.3
The margin is 3... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "33.3", "printed": "33.3", "notation": null} |
nlprog_det-setting-0076099 | Attendance was 27 out of 40. Express it as a percent.
Coded up:
```python
present = 27
total = 40
percent = present / total * 100
print(round(percent, 1))
```
Python prints 67.5, as expected.
67.5% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "67.5", "printed": "67.5", "notation": null} |
nlprog_det-setting-0076100 | <|start|><|user|>
5 friends split a $210 bill plus a 18% tip evenly. How much does each pay?<|eot|>
<|assistant|>
```python
bill = 210
tip_rate = 18 / 100 # 0.18
people = 5
each = bill * (1 + tip_rate) / people # 49.559999999999995
print(f"{each:.2f}")
```
Shell output — 49.56
Each person pays $49.56.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "5 friends split a $210 bill plus a 18% tip evenly. How much does each pay?"
},
{
"role": "assistant",
"content": "```python\nbill = 210\ntip_rate = 18 / 100 # 0.18\npeople = 5\neach = bill * (1 + tip_rate) / people # 49.559999999999995\nprint(f\"{each:.2f}\")\n```... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "49.56", "printed": "49.56", "notation": null} |
nlprog_det-setting-0076101 | What percentage of $2,000 is $400?
The program:
budget = 2000
spent = 400
percent = spent / budget * 100 # 20.0
print(round(percent, 1))
The run gives 20.0, as expected.
20.0% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 68 | {"gold": "20.0", "printed": "20.0", "notation": null} |
nlprog_det-setting-0076102 | A 4% increase is applied to $1,100 monthly rent. What is the new amount?
Computing it:
```python
rent = 1100
increase = 4 / 100 # 0.04
new_rent = rent * (1 + increase) # 1144.0
print(f"{new_rent:.2f}")
```
The interpreter prints: 1144.00
The new rent is $1,144.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "1144.00", "printed": "1144.00", "notation": null} |
nlprog_det-setting-0076103 | <|start|><|user|>
Buying 4 sticky pads at $9 each, 5 toner kits at $23 each, someone hands over $200. What change comes back?<|eot|>
<|assistant|>
$49 comes back.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Buying 4 sticky pads at $9 each, 5 toner kits at $23 each, someone hands over $200. What change comes back?"
},
{
"role": "assistant",
"content": "$49 comes back."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 49 | {"gold": "49", "printed": "49", "notation": null} |
nlprog_det-setting-0076104 | Convert 61.3 km to meters.
In code:
```python
km = 61.3
meters = km * 1000 # 61300.0
print(round(meters))
```
Out = 61300
That is 61,300 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "61300", "printed": "61300", "notation": null} |
nlprog_det-setting-0076105 | <|start|><|system|>
You check calculations for an accounting team.<|eot|>
<|user|>
How many of 189 votes make 67% (round up)?<|eot|>
<|assistant|>
```python
import math
voters = 189
needed = math.ceil(voters * 67 / 100) # 127
print(needed)
```
The interpreter prints 127.
127 votes are needed.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You check calculations for an accounting team."
},
{
"role": "user",
"content": "How many of 189 votes make 67% (round up)?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 189\nneeded = math.ceil(voters * 67 / 100) # 127\nprint... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "127", "printed": "127", "notation": null} |
nlprog_det-setting-0076106 | <|start|><|system|>
You are a careful assistant.<|eot|>
<|user|>
A service costs $19 a month or $198 a year. How much does the yearly plan save over 12 monthly payments?<|eot|>
<|assistant|>
```python
monthly = 19
yearly = 198
savings = monthly * 12 - yearly # 30
print(savings)
```
Output of the run: 30
The annual pl... | chat | [
{
"role": "system",
"content": "You are a careful assistant."
},
{
"role": "user",
"content": "A service costs $19 a month or $198 a year. How much does the yearly plan save over 12 monthly payments?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 19\nyearly = 198\nsaving... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0076107 | <|start|><|system|>
You may call the tools below.
{"name": "math_engine", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|>
<|user|>
Water costs $18 a mo... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n{\"name\": \"math_engine\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\... | nlprog_det | setting | original | null | deterministic | [] | [] | 251 | {"gold": "91.50", "printed": "91.50", "notation": null} |
nlprog_det-setting-0076108 | A 20 × 5 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?
We write it as a program:
```python
import math
length = 20
width = 5
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 25
print(tiles)
```
This prints 25.
It takes 25 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0076109 | <|start|><|user|>
Pay is $22.40/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 55 hours?<|eot|>
<|assistant|>
The weekly pay is $1,400.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Pay is $22.40/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 55 hours?"
},
{
"role": "assistant",
"content": "The weekly pay is $1,400.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 53 | {"gold": "1400.00", "printed": "1400.00", "notation": null} |
nlprog_det-setting-0076111 | Counting the first and last day, how many days are there from January 24, 2018 through January 29, 2018?
Translated to Python:
```python
from datetime import date
first = date(2018, 1, 24) # datetime.date(2018, 1, 24)
last = date(2018, 1, 29) # datetime.date(2018, 1, 29)
days = (last - first).days + 1 # 6
print(day... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0076112 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "compute", "description": "Evaluates Python and returns the printed output.", ... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"compute\", \"descriptio... | nlprog_det | setting | original | null | deterministic | [] | [] | 277 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0076113 | Goods bought on August 26, 2023 carry a 24-month warranty. When does it expire?
In Python:
```python
from datetime import date
start = date(2023, 8, 26)
months = 24
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
The script... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "2025-08-26", "printed": "2025-08-26", "notation": null} |
nlprog_det-setting-0076114 | An invoice lists 25 calendars at $7 each, plus 7% sales tax. What is the invoice total?
```python
quantity = 25
unit_price = 7
subtotal = quantity * unit_price # 175
total = subtotal * (1 + 7 / 100) # 187.25
print(f"{total:.2f}")
```
The program prints: 187.25
The total with tax is $187.25. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "187.25", "printed": "187.25", "notation": null} |
nlprog_det-setting-0076115 | Ines drove 60 miles for work. Mileage is reimbursed at 67 cents a mile. How much is the reimbursement?
Python makes this quick:
```python
miles = 60
rate = 0.67
reimbursement = miles * rate # 40.2
print(f"{reimbursement:.2f}")
```
Executed, it shows: 40.20
Ines is owed $40.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "40.20", "printed": "40.20", "notation": null} |
nlprog_det-setting-0076116 | <|start|><|user|>
Starting from $8,000, the team spends $3,766, $3,618. What remains?<|eot|>
<|assistant|>
```python
budget = 8000
expenses = [3766, 3618]
left = budget - sum(expenses) # 616
print(left)
```
# stdout: 616
The remaining budget is $616.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting from $8,000, the team spends $3,766, $3,618. What remains?"
},
{
"role": "assistant",
"content": "```python\nbudget = 8000\nexpenses = [3766, 3618]\nleft = budget - sum(expenses) # 616\nprint(left)\n```\n# stdout: 616\n\nThe remaining budget is $616."
}
... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "616", "printed": "616", "notation": null} |
nlprog_det-setting-0076117 | <|start|><|user|>
3 books come back 8 days late, at $0.10 a day each. What is the fine?<|eot|>
<|assistant|>
per_day = 0.1
days_late = 8
books = 3
fine = per_day * days_late * books # 2.4000000000000004
print(f"{fine:.2f}")
Executing it gives: 2.40
$2.40 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "3 books come back 8 days late, at $0.10 a day each. What is the fine?"
},
{
"role": "assistant",
"content": " per_day = 0.1\n days_late = 8\n books = 3\n fine = per_day * days_late * books # 2.4000000000000004\n print(f\"{fine:.2f}\")\nExecuting it g... | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "2.40", "printed": "2.40", "notation": null} |
nlprog_det-setting-0076118 | Convert 1 h 39 min (the length of a workshop) to minutes. The workshop lasted 99 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 26 | {"gold": "99", "printed": "99", "notation": null} |
nlprog_det-setting-0076119 | A measure needs at least 67% of 246 votes. How many votes is that, rounded up?
Translated to Python:
```python
import math
voters = 246
needed = math.ceil(voters * 67 / 100) # 165
print(needed)
```
Executed, it shows: 165
At least 165 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "165", "printed": "165", "notation": null} |
nlprog_det-setting-0076120 | <|start|><|system|>
Keep explanations short.<|eot|>
<|user|>
How many 1-foot square tiles cover a 10 ft by 3 ft floor (round up)?<|eot|>
<|assistant|>
```python
import math
length = 10
width = 3
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 30
print(tiles)
```
Out: 30
It takes 30 tiles.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Keep explanations short."
},
{
"role": "user",
"content": "How many 1-foot square tiles cover a 10 ft by 3 ft floor (round up)?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 10\nwidth = 3\ntile = 1\ntiles = math.ceil(length * ... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0076121 | From 2024 to 2032, how many years is that?
A short script:
```python
start_year = 2024
end_year = 2032
print(end_year - start_year)
```
(Run result: 8)
8 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 67 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0076122 | <|start|><|system|>
Tools you may use:
[{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "compute", "description": "Python sandbox for calcul... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"target\"]}}, {\... | nlprog_det | setting | original | null | deterministic | [] | [] | 281 | {"gold": "83.0", "printed": "83.0", "notation": null} |
nlprog_det-setting-0076123 | <|start|><|system|>
Respond clearly and to the point.<|eot|>
<|user|>
A lease runs for 24 months at $850 per month. How much rent is paid over the whole term?<|eot|>
<|assistant|>
In total, $20,400 is paid.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Respond clearly and to the point."
},
{
"role": "user",
"content": "A lease runs for 24 months at $850 per month. How much rent is paid over the whole term?"
},
{
"role": "assistant",
"content": "In total, $20,400 is paid."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 52 | {"gold": "20400", "printed": "20400", "notation": null} |
nlprog_det-setting-0076124 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
From a $7,500 retainer, 6 hours at $200/hour have been drawn. What remains?<|eot|>
<|assistant|>
```python
retainer = 7500
hours = 6
rate = 200
left = retainer - hours * rate # 6300
print(left)
```
When run, it prints 6300.
$6,300 of the retainer is lef... | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "From a $7,500 retainer, 6 hours at $200/hour have been drawn. What remains?"
},
{
"role": "assistant",
"content": "```python\nretainer = 7500\nhours = 6\nrate = 200\nleft = retainer - hours... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "6300", "printed": "6300", "notation": null} |
nlprog_det-setting-0076125 | Revenue is $15,000 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)?
The computation:
revenue = 15000
costs = 12500
profit = revenue - costs # 2500
margin = profit / revenue * 100 # 16.666666666666664
print(round(margin, 1))
Run result: 16.7
Profit is 16.7% ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "16.7", "printed": "16.7", "notation": null} |
nlprog_det-setting-0076126 | A 4-day trip pays $69 a day for meals and $140 a night for lodging (3 nights). What is the total allowance?
In code:
```python
days = 4
meal_rate = 69
lodging_rate = 140
nights = days - 1 # 3
total = days * meal_rate + nights * lodging_rate # 696
print(total)
```
# console output: 696
The allowance is $696. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "696", "printed": "696", "notation": null} |
nlprog_det-setting-0076127 | <|start|><|user|>
A meal costs $206.11. How much is a 20% tip?<|eot|>
<|assistant|>
```python
bill = 206.11
tip_rate = 20 / 100 # 0.2
tip = bill * tip_rate # 41.22200000000001
print(f"{tip:.2f}")
```
Python prints 41.22.
Leave $41.22.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A meal costs $206.11. How much is a 20% tip?"
},
{
"role": "assistant",
"content": "```python\nbill = 206.11\ntip_rate = 20 / 100 # 0.2\ntip = bill * tip_rate # 41.22200000000001\nprint(f\"{tip:.2f}\")\n```\nPython prints 41.22.\n\nLeave $41.22."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "41.22", "printed": "41.22", "notation": null} |
nlprog_det-setting-0076128 | <|start|><|user|>
17 of 25 members attended. What percent attended?<|eot|>
<|assistant|>
```python
present = 17
total = 25
percent = present / total * 100 # 68.0
print(round(percent, 1))
```
Run result = 68.0
68.0% attended.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "17 of 25 members attended. What percent attended?"
},
{
"role": "assistant",
"content": "```python\npresent = 17\ntotal = 25\npercent = present / total * 100 # 68.0\nprint(round(percent, 1))\n```\nRun result = 68.0\n\n68.0% attended."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "68.0", "printed": "68.0", "notation": null} |
nlprog_det-setting-0076130 | A lease runs for 6 months at $3,250 per month. How much rent is paid over the whole term?
Coded up:
```python
monthly_rent = 3250
months = 6
total = monthly_rent * months # 19500
print(total)
```
(Printed: 19500)
The rent over the term is $19,500. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "19500", "printed": "19500", "notation": null} |
nlprog_det-setting-0076131 | An attorney bills 6.5 hours at $180 per hour. What is the bill?
The bill is $1,170.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "1170.00", "printed": "1170.00", "notation": null} |
nlprog_det-setting-0076132 | An office budget of $20,000 has expenses of $2,321, $3,590, $1,431, $2,720. How much of the budget is left?
Python:
```python
budget = 20000
expenses = [2321, 3590, 1431, 2720]
left = budget - sum(expenses) # 9938
print(left)
```
stdout:
9938
$9,938 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "9938", "printed": "9938", "notation": null} |
nlprog_det-setting-0076133 | <|start|><|user|>
What commission does Nadia make on $110,498 in sales at 3%?<|eot|>
<|assistant|>
sales = 110498
rate = 3 / 100
commission = sales * rate
print(f"{commission:.2f}")
Run result = 3314.94
Nadia earns $3,314.94.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What commission does Nadia make on $110,498 in sales at 3%?"
},
{
"role": "assistant",
"content": " sales = 110498\n rate = 3 / 100\n commission = sales * rate\n print(f\"{commission:.2f}\")\nRun result = 3314.94\n\nNadia earns $3,314.94."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "3314.94", "printed": "3314.94", "notation": null} |
nlprog_det-setting-0076134 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
Notice was given on Au... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\":... | nlprog_det | setting | original | null | deterministic | [] | [] | 242 | {"gold": "2024-08-31", "printed": "2024-08-31", "notation": null} |
nlprog_det-setting-0076135 | 5 friends split a $180 bill plus a 20% tip evenly. How much does each pay?
Python version:
```python
bill = 180
tip_rate = 20 / 100
people = 5
each = bill * (1 + tip_rate) / people
print(f"{each:.2f}")
```
(Printed result: 43.20)
The share is $43.20 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "43.20", "printed": "43.20", "notation": null} |
nlprog_det-setting-0076136 | <|start|><|user|>
Parking is $5 per hour with a daily maximum of $24. What do 3 hours cost?<|eot|>
<|assistant|>
Parking costs $15.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Parking is $5 per hour with a daily maximum of $24. What do 3 hours cost?"
},
{
"role": "assistant",
"content": "Parking costs $15."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0076138 | A shift starts at 8:30 AM and lasts 25 minutes. When does it end?
```python
start = 8 * 60 + 30
end = start + 25
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
The run gives: 8:55 AM
The shift finishes at 8:55 AM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "8:55 AM", "printed": "8:55 AM", "notation": null} |
nlprog_det-setting-0076139 | At an exchange rate of 0.74 EUR per USD, how many EUR is 2,122 USD?
```python
amount = 2122
rate = 0.74
converted = amount * rate # 1570.28
print(f"{converted:.2f}")
```
The code prints: 1570.28
That is 1,570.28 EUR. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "1570.28", "printed": "1570.28", "notation": null} |
nlprog_det-setting-0076140 | <|start|><|user|>
A party has 14 days to respond to a motion served on April 3, 2023, with 3 days added because service was by mail. When is the response due?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
served = date(2023, 4, 3) # datetime.date(2023, 4, 3)
response_days = 14
mail_days = 3
due =... | chat | [
{
"role": "user",
"content": "A party has 14 days to respond to a motion served on April 3, 2023, with 3 days added because service was by mail. When is the response due?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nserved = date(2023, 4, 3) # datetime... | nlprog_det | setting | original | null | deterministic | [] | [] | 174 | {"gold": "2023-04-20", "printed": "2023-04-20", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.