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-0073024 | A party has 30 days to respond to a motion served on February 13, 2028, with 3 days added because service was by mail. When is the response due?
We write it as a program:
from datetime import date, timedelta
served = date(2028, 2, 13) # datetime.date(2028, 2, 13)
response_days = 30
mail_days = 3
d... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 167 | {"gold": "2028-03-17", "printed": "2028-03-17", "notation": null} |
nlprog_det-setting-0073025 | <|start|><|system|>
Keep answers short and correct.<|eot|>
<|user|>
3 clients win $60,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?<|eot|>
<|assistant|>
```python
award = 60000
fee = award * 25 / 100 # 15000.0
remaining = award - fee # 45000.0
per_client = remaining / 3 # 1... | chat | [
{
"role": "system",
"content": "Keep answers short and correct."
},
{
"role": "user",
"content": "3 clients win $60,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?"
},
{
"role": "assistant",
"content": "```python\naward = 60000\nfee = award * ... | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "15000.00", "printed": "15000.00", "notation": null} |
nlprog_det-setting-0073026 | <|start|><|user|>
Parking is $3 per hour with a daily maximum of $18. What do 3 hours cost?<|eot|>
<|assistant|>
```python
rate = 3
hours = 3
daily_max = 18
cost = min(rate * hours, daily_max)
print(cost)
```
It prints: 9
The charge is $9.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Parking is $3 per hour with a daily maximum of $18. What do 3 hours cost?"
},
{
"role": "assistant",
"content": "```python\nrate = 3\nhours = 3\ndaily_max = 18\ncost = min(rate * hours, daily_max)\nprint(cost)\n```\nIt prints: 9\n\nThe charge is $9."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0073027 | A court charges $10 per request plus $0.50 per page after the first 20 pages. What does a 6-page copy cost?
A Python solution:
```python
pages = 6
base = 10
per_page = 0.5
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page # 10.0
print(f"{cost:.2f}")
```
Execution result: 10.00
The total is $10.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "10.00", "printed": "10.00", "notation": null} |
nlprog_det-setting-0073028 | 4 runs at 150 calories each burn how many calories in total?
```python
per_session = 150
sessions = 4
total = per_session * sessions # 600
print(total)
```
Run output: 600
600 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0073029 | <|start|><|user|>
How long, in days, is it from June 9, 2027 until March 4, 2028?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2027, 6, 9) # datetime.date(2027, 6, 9)
second = date(2028, 3, 4) # datetime.date(2028, 3, 4)
print((second - first).days)
```
Printed: 269
It is 269 days.<|eot|>
<|... | chat | [
{
"role": "user",
"content": "How long, in days, is it from June 9, 2027 until March 4, 2028?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2027, 6, 9) # datetime.date(2027, 6, 9)\nsecond = date(2028, 3, 4) # datetime.date(2028, 3, 4)\nprint((second ... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "269", "printed": "269", "notation": null} |
nlprog_det-setting-0073030 | <|start|><|user|>
What is a 25% tip on a $210.23 bill?<|eot|>
<|assistant|>
```python
bill = 210.23
tip_rate = 25 / 100 # 0.25
tip = bill * tip_rate # 52.5575
print(f"{tip:.2f}")
```
This prints 52.56.
The tip is $52.56.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is a 25% tip on a $210.23 bill?"
},
{
"role": "assistant",
"content": "```python\nbill = 210.23\ntip_rate = 25 / 100 # 0.25\ntip = bill * tip_rate # 52.5575\nprint(f\"{tip:.2f}\")\n```\nThis prints 52.56.\n\nThe tip is $52.56."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "52.56", "printed": "52.56", "notation": null} |
nlprog_det-setting-0073031 | From a $2,500 retainer, 8 hours at $250/hour have been drawn. What remains? The remaining balance is $500. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "500", "printed": "500", "notation": null} |
nlprog_det-setting-0073032 | <|start|><|user|>
5 swims at 250 calories each burn how many calories in total?<|eot|>
<|assistant|>
```python
per_session = 250
sessions = 5
total = per_session * sessions # 1250
print(total)
```
This prints: 1250
1250 calories in total.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "5 swims at 250 calories each burn how many calories in total?"
},
{
"role": "assistant",
"content": "```python\nper_session = 250\nsessions = 5\ntotal = per_session * sessions # 1250\nprint(total)\n```\nThis prints: 1250\n\n1250 calories in total."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "1250", "printed": "1250", "notation": null} |
nlprog_det-setting-0073033 | <|start|><|system|>
You are a data assistant.<|eot|>
<|user|>
The landlord deducts $85 from a $800 deposit. What is returned to the tenant?<|eot|>
<|assistant|>
```python
deposit = 800
deductions = [85]
refund = deposit - sum(deductions) # 715
print(refund)
```
Output of the run: 715
$715 is returned.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a data assistant."
},
{
"role": "user",
"content": "The landlord deducts $85 from a $800 deposit. What is returned to the tenant?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 800\ndeductions = [85]\nrefund = deposit - sum(deducti... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "715", "printed": "715", "notation": null} |
nlprog_det-setting-0073034 | From 2001 to 2020, how many years is that?
19 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 17 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0073035 | What is 30 degrees Celsius in Fahrenheit?
As Python:
```python
celsius = 30
fahrenheit = celsius * 9 / 5 + 32 # 86.0
print(round(fahrenheit))
```
(Execution result: 86)
It equals 86 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "86", "printed": "86", "notation": null} |
nlprog_det-setting-0073036 | <|start|><|user|>
A car travels 300 miles in 3 hours. What is its average speed in miles per hour?<|eot|>
<|assistant|>
```python
distance = 300
hours = 3
speed = distance / hours # 100.0
print(round(speed))
```
Printed = 100
The average speed is 100 mph.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A car travels 300 miles in 3 hours. What is its average speed in miles per hour?"
},
{
"role": "assistant",
"content": "```python\ndistance = 300\nhours = 3\nspeed = distance / hours # 100.0\nprint(round(speed))\n```\nPrinted = 100\n\nThe average speed is 100 mph."... | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "100", "printed": "100", "notation": null} |
nlprog_det-setting-0073037 | Which is cheaper per unit: 6 for $4.66 (A) or 20 for $22.03 (B)?
Translated to Python:
```python
pack_a = 4.66 / 6 # 0.7766666666666667
pack_b = 22.03 / 20 # 1.1015000000000001
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
(Result: A)
A has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0073038 | <|start|><|user|>
A trial runs from February 15, 2028 to February 29, 2028, counting both days. How many calendar days is that?<|eot|>
<|assistant|>
That is 15 days.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A trial runs from February 15, 2028 to February 29, 2028, counting both days. How many calendar days is that?"
},
{
"role": "assistant",
"content": "That is 15 days."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0073039 | Counting only Monday through Friday, how many business days are there after September 9, 2028 through October 2, 2028?
Python makes this quick:
```python
from datetime import date, timedelta
start = date(2028, 9, 9)
end = date(2028, 10, 2)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 160 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0073040 | 6 bike rides at 250 calories each burn how many calories in total?
Computation in Python:
```python
per_session = 250
sessions = 6
total = per_session * sessions # 1500
print(total)
```
Shell output: 1500
1500 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "1500", "printed": "1500", "notation": null} |
nlprog_det-setting-0073041 | <|start|><|user|>
At a 5% tax rate, what is the tax on $208.60?<|eot|>
<|assistant|>
```python
price = 208.6
tax_rate = 5 / 100 # 0.05
tax = price * tax_rate # 10.43
print(f"{tax:.2f}")
```
Out: 10.43
The tax is $10.43.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At a 5% tax rate, what is the tax on $208.60?"
},
{
"role": "assistant",
"content": "```python\nprice = 208.6\ntax_rate = 5 / 100 # 0.05\ntax = price * tax_rate # 10.43\nprint(f\"{tax:.2f}\")\n```\nOut: 10.43\n\nThe tax is $10.43."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "10.43", "printed": "10.43", "notation": null} |
nlprog_det-setting-0073042 | Count 14 days forward from November 21, 2024. What date is that?
As Python:
```python
from datetime import date, timedelta
start = date(2024, 11, 21) # datetime.date(2024, 11, 21)
end = start + timedelta(days=14) # datetime.date(2024, 12, 5)
print(end.isoformat())
```
It prints: 2024-12-05
The period ends on Decemb... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "2024-12-05", "printed": "2024-12-05", "notation": null} |
nlprog_det-setting-0073043 | <|start|><|user|>
The landlord deducts $75 from a $1,500 deposit. What is returned to the tenant?<|eot|>
<|assistant|>
```python
deposit = 1500
deductions = [75]
refund = deposit - sum(deductions) # 1425
print(refund)
```
When run, it prints: 1425
$1,425 is returned.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The landlord deducts $75 from a $1,500 deposit. What is returned to the tenant?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 1500\ndeductions = [75]\nrefund = deposit - sum(deductions) # 1425\nprint(refund)\n```\nWhen run, it prints: 1425\n\n$1,425 i... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "1425", "printed": "1425", "notation": null} |
nlprog_det-setting-0073044 | <|start|><|user|>
Someone born March 20, 1958 turns how old by July 8, 2025? Give the age in whole years.<|eot|>
<|assistant|>
The age is 67 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Someone born March 20, 1958 turns how old by July 8, 2025? Give the age in whole years."
},
{
"role": "assistant",
"content": "The age is 67 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "67", "printed": "67", "notation": null} |
nlprog_det-setting-0073045 | <|start|><|system|>
You may call the tools below.
[{"name": "python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
At an exchange rate of ... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [... | nlprog_det | setting | original | null | deterministic | [] | [] | 225 | {"gold": "2143.60", "printed": "2143.60", "notation": null} |
nlprog_det-setting-0073046 | At 30 miles per hour, how many minutes does a 120-mile trip take?
Let's compute it with Python.
```python
distance = 120
speed = 30
minutes = distance / speed * 60 # 240.0
print(round(minutes))
```
The run gives: 240
240 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "240", "printed": "240", "notation": null} |
nlprog_det-setting-0073047 | At $0.70 per mile, what is the reimbursement for 424 miles?
miles = 424
rate = 0.7
reimbursement = miles * rate
print(f"{reimbursement:.2f}")
Printed: 296.80
Ana is owed $296.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 73 | {"gold": "296.80", "printed": "296.80", "notation": null} |
nlprog_det-setting-0073048 | <|start|><|user|>
Express 277 hours in days and hours.<|eot|>
<|assistant|>
hours = 277
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
It outputs 11 days and 13 hours.
That is 11 days and 13 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Express 277 hours in days and hours."
},
{
"role": "assistant",
"content": " hours = 277\n days, rest = divmod(hours, 24)\n print(f\"{days} days and {rest} hours\")\nIt outputs 11 days and 13 hours.\n\nThat is 11 days and 13 hours."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 73 | {"gold": "11 days and 13 hours", "printed": "11 days and 13 hours", "notation": null} |
nlprog_det-setting-0073049 | 152 copies of a 19-page packet are printed at $0.12 per page. What is the cost?
```python
pages = 19
copies = 152
cost_per_page = 0.12
cost = pages * copies * cost_per_page # 346.56
print(f"{cost:.2f}")
```
Output — 346.56
The job costs $346.56. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "346.56", "printed": "346.56", "notation": null} |
nlprog_det-setting-0073050 | A recipe for 8 people uses 200 grams of oats. How many grams are needed for 3 people?
Computing it:
```python
grams = 200
serves = 8
needed_for = 3
scaled = grams * needed_for // serves # 75
print(scaled)
```
Out: 75
75 grams of oats are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "75", "printed": "75", "notation": null} |
nlprog_det-setting-0073052 | An unpaid balance of $7,500 accrues 1% simple interest per month. How much interest accrues in 4 months?
Code:
balance = 7500
monthly_rate = 1 / 100 # 0.01
months = 4
interest = balance * monthly_rate * months # 300.0
print(f"{interest:.2f}")
The code prints: 300.00
$300.00 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "300.00", "printed": "300.00", "notation": null} |
nlprog_det-setting-0073053 | <|start|><|user|>
At 50 miles per hour, how many minutes does a 125-mile trip take?<|eot|>
<|assistant|>
```python
distance = 125
speed = 50
minutes = distance / speed * 60 # 150.0
print(round(minutes))
```
Console:
150
The trip takes 150 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At 50 miles per hour, how many minutes does a 125-mile trip take?"
},
{
"role": "assistant",
"content": "```python\ndistance = 125\nspeed = 50\nminutes = distance / speed * 60 # 150.0\nprint(round(minutes))\n```\nConsole:\n150\n\nThe trip takes 150 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "150", "printed": "150", "notation": null} |
nlprog_det-setting-0073055 | <|start|><|user|>
Starting with 1912 lanyards and using 11 per day, how many remain after 4 days?<|eot|>
<|assistant|>
```python
stock = 1912
per_day = 11
days = 4
left = stock - per_day * days # 1868
print(left)
```
Console output: 1868
1868 remain.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting with 1912 lanyards and using 11 per day, how many remain after 4 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 1912\nper_day = 11\ndays = 4\nleft = stock - per_day * days # 1868\nprint(left)\n```\nConsole output: 1868\n\n1868 remain."
}... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "1868", "printed": "1868", "notation": null} |
nlprog_det-setting-0073056 | A clerk's office charges $45 for each filing. Paula submits 16 filings. What is the total fee?
Here's the code.
```python
fee = 45
filings = 16
total = fee * filings # 720
print(total)
```
stdout: 720
$720 in filing fees. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "720", "printed": "720", "notation": null} |
nlprog_det-setting-0073057 | <|start|><|user|>
A customer buys 5 calendars at $14 each, 2 ink cartridges at $21 each, 6 flash drives at $27 each, 2 notebooks at $23 each and pays with $350. How much change is due?<|eot|>
<|assistant|>
$30 comes back.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A customer buys 5 calendars at $14 each, 2 ink cartridges at $21 each, 6 flash drives at $27 each, 2 notebooks at $23 each and pays with $350. How much change is due?"
},
{
"role": "assistant",
"content": "$30 comes back."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 69 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0073058 | <|start|><|user|>
How many weekdays (Monday to Friday) fall after November 12, 2028 up to and including December 9, 2028?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2028, 11, 12)
end = date(2028, 12, 9)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(... | chat | [
{
"role": "user",
"content": "How many weekdays (Monday to Friday) fall after November 12, 2028 up to and including December 9, 2028?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2028, 11, 12)\nend = date(2028, 12, 9)\ncount = 0\nfor k in r... | nlprog_det | setting | original | null | deterministic | [] | [] | 157 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0073059 | <|start|><|user|>
To read 480 pages in 16 days, how many pages per day are needed?<|eot|>
<|assistant|>
```python
pages = 480
days = 16
per_day = pages // days # 30
print(per_day)
```
Console output — 30
That is 30 pages per day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "To read 480 pages in 16 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": "```python\npages = 480\ndays = 16\nper_day = pages // days # 30\nprint(per_day)\n```\nConsole output — 30\n\nThat is 30 pages per day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0073060 | <|start|><|user|>
What average speed covers 436 miles in 4 hours?<|eot|>
<|assistant|>
```python
distance = 436
hours = 4
speed = distance / hours # 109.0
print(round(speed))
```
stdout: 109
The average speed is 109 mph.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What average speed covers 436 miles in 4 hours?"
},
{
"role": "assistant",
"content": "```python\ndistance = 436\nhours = 4\nspeed = distance / hours # 109.0\nprint(round(speed))\n```\nstdout: 109\n\nThe average speed is 109 mph."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "109", "printed": "109", "notation": null} |
nlprog_det-setting-0073061 | <|start|><|user|>
With $36,000 in costs and $38,000 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|>
<|assistant|>
```python
revenue = 38000
costs = 36000
profit = revenue - costs # 2000
margin = profit / revenue * 100 # 5.263157894736842
print(round(margin, 1))
```
Printed:
5.3
The margin... | chat | [
{
"role": "user",
"content": "With $36,000 in costs and $38,000 in revenue, what percent of revenue is profit? Round to one decimal."
},
{
"role": "assistant",
"content": "```python\nrevenue = 38000\ncosts = 36000\nprofit = revenue - costs # 2000\nmargin = profit / revenue * 100 # 5.2631578947... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "5.3", "printed": "5.3", "notation": null} |
nlprog_det-setting-0073062 | Hugo lends $20,000 at 6% simple interest per year for 3 years. How much interest is earned?
Let the code do the arithmetic:
principal = 20000
rate = 6 / 100 # 0.06
years = 3
interest = principal * rate * years # 3600.0
print(f"{interest:.2f}")
Run result: 3600.00
It earns $3,600.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "3600.00", "printed": "3600.00", "notation": null} |
nlprog_det-setting-0073063 | <|start|><|system|>
Tools (call with JSON):
[{"name": "eval_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
Which is cheaper per unit: 1... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"eval_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"so... | nlprog_det | setting | original | null | deterministic | [] | [] | 246 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0073064 | 51 volunteers are split into 5 equal teams. How many are on each team, and how many are left over?
total = 51
groups = 5
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
Console output — 10 each, 1 left over
The answer: 10 each, 1 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "10 each, 1 left over", "printed": "10 each, 1 left over", "notation": null} |
nlprog_det-setting-0073065 | <|start|><|user|>
3 boxes hold 25 scissors each. After 2 are handed out, how many are left?<|eot|>
<|assistant|>
```python
boxes = 3
per_box = 25
given_away = 2
left = boxes * per_box - given_away
print(left)
```
Running it prints: 73
73 scissors are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "3 boxes hold 25 scissors each. After 2 are handed out, how many are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 3\nper_box = 25\ngiven_away = 2\nleft = boxes * per_box - given_away\nprint(left)\n```\nRunning it prints: 73\n\n73 scissors are left.... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "73", "printed": "73", "notation": null} |
nlprog_det-setting-0073066 | Jonas was born on December 3, 1985. How old is Jonas on December 18, 2028?
```python
from datetime import date
born = date(1985, 12, 3) # datetime.date(1985, 12, 3)
on = date(2028, 12, 18) # datetime.date(2028, 12, 18)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 43
print(age)
```
The... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "43", "printed": "43", "notation": null} |
nlprog_det-setting-0073067 | How much sales tax is charged on a $376.69 purchase at 7%?
Program:
price = 376.69
tax_rate = 7 / 100 # 0.07
tax = price * tax_rate # 26.3683
print(f"{tax:.2f}")
Console output — 26.37
$26.37 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "26.37", "printed": "26.37", "notation": null} |
nlprog_det-setting-0073068 | <|start|><|user|>
Divide 184 items among 9 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|>
<|assistant|>
```python
total = 184
groups = 9
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
# stdout: 20 each, 4 left over
20 ... | chat | [
{
"role": "user",
"content": "Divide 184 items among 9 groups as evenly as possible with equal groups. How many per group, and how many remain?"
},
{
"role": "assistant",
"content": "```python\ntotal = 184\ngroups = 9\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {rem... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "20 each, 4 left over", "printed": "20 each, 4 left over", "notation": null} |
nlprog_det-setting-0073069 | One can of paint covers 400 square feet. How many cans are needed for 282 square feet of wall?
The computation:
```python
import math
area = 282
coverage = 400
cans = math.ceil(area / coverage) # 1
print(cans)
```
What it prints — 1
1 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "1", "printed": "1", "notation": null} |
nlprog_det-setting-0073070 | <|start|><|user|>
Straight-line depreciation: cost $12,000, salvage $6,000, 3 years. How much per year?<|eot|>
<|assistant|>
```python
cost = 12000
salvage = 6000
years = 3
per_year = (cost - salvage) / years # 2000.0
print(f"{per_year:.2f}")
```
# run result: 2000.00
$2,000.00 a year.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Straight-line depreciation: cost $12,000, salvage $6,000, 3 years. How much per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 12000\nsalvage = 6000\nyears = 3\nper_year = (cost - salvage) / years # 2000.0\nprint(f\"{per_year:.2f}\")\n```\n# run res... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "2000.00", "printed": "2000.00", "notation": null} |
nlprog_det-setting-0073071 | <|start|><|user|>
What is a 22% tip on a $20.23 bill?<|eot|>
<|assistant|>
bill = 20.23
tip_rate = 22 / 100 # 0.22
tip = bill * tip_rate # 4.4506000000000006
print(f"{tip:.2f}")
Output of the run: 4.45
Leave $4.45.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is a 22% tip on a $20.23 bill?"
},
{
"role": "assistant",
"content": " bill = 20.23\n tip_rate = 22 / 100 # 0.22\n tip = bill * tip_rate # 4.4506000000000006\n print(f\"{tip:.2f}\")\nOutput of the run: 4.45\n\nLeave $4.45."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "4.45", "printed": "4.45", "notation": null} |
nlprog_det-setting-0073073 | <|start|><|system|>
You may call the tools below.
{"name": "code_runner", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}
{"name": "search_cases", "des... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n{\"name\": \"code_runner\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"re... | nlprog_det | setting | original | null | deterministic | [] | [] | 302 | {"gold": "1545.00", "printed": "1545.00", "notation": null} |
nlprog_det-setting-0073074 | <|start|><|system|>
Respond clearly and to the point.<|eot|>
<|user|>
The building opened in 2009. How many years had passed by 2014?<|eot|>
<|assistant|>
start_year = 2009
end_year = 2014
print(end_year - start_year)
That prints 5.
That is 5 years.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Respond clearly and to the point."
},
{
"role": "user",
"content": "The building opened in 2009. How many years had passed by 2014?"
},
{
"role": "assistant",
"content": " start_year = 2009\n end_year = 2014\n print(end_year - start_year)\nTha... | nlprog_det | setting | original | null | deterministic | [] | [] | 71 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0073076 | At 2% a month (simple), what interest builds on $1,000 over 6 months?
Computation in Python:
```python
balance = 1000
monthly_rate = 2 / 100
months = 6
interest = balance * monthly_rate * months
print(f"{interest:.2f}")
```
Run result — 120.00
The interest is $120.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "120.00", "printed": "120.00", "notation": null} |
nlprog_det-setting-0073077 | From a $5,000 retainer, 6 hours at $200/hour have been drawn. What remains?
Programmatically:
```python
retainer = 5000
hours = 6
rate = 200
left = retainer - hours * rate # 3800
print(left)
```
It outputs: 3800
$3,800 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "3800", "printed": "3800", "notation": null} |
nlprog_det-setting-0073078 | <|start|><|user|>
A 13 × 10 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?<|eot|>
<|assistant|>
```python
import math
length = 13
width = 10
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 33
print(tiles)
```
Printed result: 33
33 tiles are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 13 × 10 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 13\nwidth = 10\ntile = 2\ntiles = math.ceil(length * width / (tile * tile)) # 33\nprint(tiles)\n```\nPrinted re... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "33", "printed": "33", "notation": null} |
nlprog_det-setting-0073079 | <|start|><|user|>
To read 323 pages in 17 days, how many pages per day are needed?<|eot|>
<|assistant|>
```python
pages = 323
days = 17
per_day = pages // days # 19
print(per_day)
```
Run result = 19
That is 19 pages per day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "To read 323 pages in 17 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": "```python\npages = 323\ndays = 17\nper_day = pages // days # 19\nprint(per_day)\n```\nRun result = 19\n\nThat is 19 pages per day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0073080 | Xavier was born on February 17, 1971. How old is Xavier on December 7, 2025?
Python makes this quick:
```python
from datetime import date
born = date(1971, 2, 17) # datetime.date(1971, 2, 17)
on = date(2025, 12, 7) # datetime.date(2025, 12, 7)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day))... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 160 | {"gold": "54", "printed": "54", "notation": null} |
nlprog_det-setting-0073081 | <|start|><|user|>
With 10 rows of 20 chairs and 21 empty chairs, how many chairs are taken?<|eot|>
<|assistant|>
rows = 10
per_row = 20
empty = 21
seated = rows * per_row - empty # 179
print(seated)
Out: 179
179 seats are taken.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 10 rows of 20 chairs and 21 empty chairs, how many chairs are taken?"
},
{
"role": "assistant",
"content": " rows = 10\n per_row = 20\n empty = 21\n seated = rows * per_row - empty # 179\n print(seated)\nOut: 179\n\n179 seats are taken."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "179", "printed": "179", "notation": null} |
nlprog_det-setting-0073082 | Hana and Abel share $972 in the ratio 1:3. How much does Hana get?
```python
total = 972
parts_a = 1
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b) # 243
print(share_a)
```
(Execution result: 243)
Hana's share is $243. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "243", "printed": "243", "notation": null} |
nlprog_det-setting-0073084 | Monthly rent is $900. A tenant moves in with 9 days left in a 30-day month. What is the prorated rent?
A few lines of Python do it:
```python
rent = 900
days_in_month = 30
days_occupied = 9
prorated = rent * days_occupied / days_in_month # 270.0
print(f"{prorated:.2f}")
```
That prints: 270.00
The prorated rent is $... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "270.00", "printed": "270.00", "notation": null} |
nlprog_det-setting-0073085 | What percentage of $5,000 is $2,100?
Python does the arithmetic:
```python
budget = 5000
spent = 2100
percent = spent / budget * 100 # 42.0
print(round(percent, 1))
```
(Run result: 42.0)
That is 42.0% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "42.0", "printed": "42.0", "notation": null} |
nlprog_det-setting-0073086 | Convert 6,476 USD to EUR at 1 USD = 0.74 EUR.
One way, in code:
```python
amount = 6476
rate = 0.74
converted = amount * rate # 4792.24
print(f"{converted:.2f}")
```
Python prints: 4792.24
It converts to 4,792.24 EUR. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "4792.24", "printed": "4792.24", "notation": null} |
nlprog_det-setting-0073087 | 3 books come back 28 days late, at $0.25 a day each. What is the fine?
Here is a short program for it.
```python
per_day = 0.25
days_late = 28
books = 3
fine = per_day * days_late * books # 21.0
print(f"{fine:.2f}")
```
It prints 21.00, as expected.
The fine is $21.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "21.00", "printed": "21.00", "notation": null} |
nlprog_det-setting-0073088 | 16 pens cost $6 apiece. With 7% tax added, what is the total?
Here's the code.
```python
quantity = 16
unit_price = 6
subtotal = quantity * unit_price # 96
total = subtotal * (1 + 7 / 100) # 102.72
print(f"{total:.2f}")
```
The interpreter prints 102.72.
The invoice total is $102.72. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "102.72", "printed": "102.72", "notation": null} |
nlprog_det-setting-0073089 | <|start|><|system|>
You may call the tools below.
[{"name": "math_engine", "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|>
535 fil... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"math_engine\", \"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 | [] | [] | 215 | {"gold": "45", "printed": "45", "notation": null} |
nlprog_det-setting-0073090 | An office budget of $12,000 has expenses of $1,420, $2,378, $1,488, $2,263. How much of the budget is left?
Python makes this quick:
```python
budget = 12000
expenses = [1420, 2378, 1488, 2263]
left = budget - sum(expenses) # 4451
print(left)
```
Out: 4451
The remaining budget is $4,451. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "4451", "printed": "4451", "notation": null} |
nlprog_det-setting-0073091 | One can of paint covers 350 square feet. How many cans are needed for 142 square feet of wall?
Let the code do the arithmetic:
```python
import math
area = 142
coverage = 350
cans = math.ceil(area / coverage) # 1
print(cans)
```
# execution result: 1
Buy 1 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "1", "printed": "1", "notation": null} |
nlprog_det-setting-0073092 | Hana's scores were 67, 73, 100, 87, 74, 85 and 95. What is the average score?
Programmatically:
```python
scores = [67, 73, 100, 87, 74, 85, 95]
average = sum(scores) // len(scores) # 83
print(average)
```
Console:
83
The average score is 83. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "83", "printed": "83", "notation": null} |
nlprog_det-setting-0073093 | Water costs $18 a month plus $5.10 for each 1,000 gallons over 0,000. What is owed for 19,000 gallons?
$114.90 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "114.90", "printed": "114.90", "notation": null} |
nlprog_det-setting-0073094 | To read 147 pages in 3 days, how many pages per day are needed?
As Python:
```python
pages = 147
days = 3
per_day = pages // days # 49
print(per_day)
```
The interpreter prints: 49
That is 49 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "49", "printed": "49", "notation": null} |
nlprog_det-setting-0073095 | <|start|><|user|>
A 15 × 8 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?<|eot|>
<|assistant|>
import math
length = 15
width = 8
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 120
print(tiles)
Run output — 120
120 tiles are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 15 × 8 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?"
},
{
"role": "assistant",
"content": " import math\n length = 15\n width = 8\n tile = 1\n tiles = math.ceil(length * width / (tile * tile)) # 120\n print(tiles)\nRun... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "120", "printed": "120", "notation": null} |
nlprog_det-setting-0073096 | <|start|><|system|>
You may call the tools below.
[{"name": "calculator", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
Noor earns $1... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"calculator\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"req... | nlprog_det | setting | original | null | deterministic | [] | [] | 253 | {"gold": "904.00", "printed": "904.00", "notation": null} |
nlprog_det-setting-0073097 | After an initial $0, the remainder of a $48,000 grant is paid in 4 equal parts. What is each part?
Computation in Python:
```python
grant = 48000
up_front = 0
installments = 4
each = (grant - up_front) / installments # 12000.0
print(f"{each:.2f}")
```
Executing it gives 12000.00.
$12,000.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "12000.00", "printed": "12000.00", "notation": null} |
nlprog_det-setting-0073098 | <|start|><|user|>
222 files go into boxes of 24. How many boxes does that take?<|eot|>
<|assistant|>
```python
import math
files = 222
per_box = 24
boxes = math.ceil(files / per_box) # 10
print(boxes)
```
Output of the run — 10
It takes 10 boxes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "222 files go into boxes of 24. How many boxes does that take?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 222\nper_box = 24\nboxes = math.ceil(files / per_box) # 10\nprint(boxes)\n```\nOutput of the run — 10\n\nIt takes 10 boxes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0073099 | Express 127 hours in days and hours.
Here's the code.
hours = 127
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
Executed, it shows 5 days and 7 hours.
That is 5 days and 7 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "5 days and 7 hours", "printed": "5 days and 7 hours", "notation": null} |
nlprog_det-setting-0073100 | A 12-month warranty starts on July 3, 2022. On what date does it end?
Computing it:
```python
from datetime import date
start = date(2022, 7, 3)
months = 12
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
Execution result: ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "2023-07-03", "printed": "2023-07-03", "notation": null} |
nlprog_det-setting-0073101 | A measure needs at least 60% of 45 votes. How many votes is that, rounded up?
A Python solution:
```python
import math
voters = 45
needed = math.ceil(voters * 60 / 100) # 27
print(needed)
```
Printed — 27
At least 27 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "27", "printed": "27", "notation": null} |
nlprog_det-setting-0073102 | <|start|><|user|>
4 walks at 400 calories each burn how many calories in total?<|eot|>
<|assistant|>
```python
per_session = 400
sessions = 4
total = per_session * sessions # 1600
print(total)
```
Console output: 1600
That burns 1600 calories.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "4 walks at 400 calories each burn how many calories in total?"
},
{
"role": "assistant",
"content": "```python\nper_session = 400\nsessions = 4\ntotal = per_session * sessions # 1600\nprint(total)\n```\nConsole output: 1600\n\nThat burns 1600 calories."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "1600", "printed": "1600", "notation": null} |
nlprog_det-setting-0073104 | <|start|><|user|>
A car travels 166 miles in 2 hours. What is its average speed in miles per hour?<|eot|>
<|assistant|>
```python
distance = 166
hours = 2
speed = distance / hours # 83.0
print(round(speed))
```
# run result: 83
It averages 83 miles per hour.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A car travels 166 miles in 2 hours. What is its average speed in miles per hour?"
},
{
"role": "assistant",
"content": "```python\ndistance = 166\nhours = 2\nspeed = distance / hours # 83.0\nprint(round(speed))\n```\n# run result: 83\n\nIt averages 83 miles per hou... | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "83", "printed": "83", "notation": null} |
nlprog_det-setting-0073105 | How long, in days, is it from September 6, 2021 until December 26, 2021?
Here's the code.
```python
from datetime import date
first = date(2021, 9, 6) # datetime.date(2021, 9, 6)
second = date(2021, 12, 26) # datetime.date(2021, 12, 26)
print((second - first).days)
```
On running, it outputs 111.
There are 111 days... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "111", "printed": "111", "notation": null} |
nlprog_det-setting-0073106 | What simple interest does $1,000 earn at 8% a year over 4 years?
```python
principal = 1000
rate = 8 / 100 # 0.08
years = 4
interest = principal * rate * years # 320.0
print(f"{interest:.2f}")
```
Console output: 320.00
It earns $320.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "320.00", "printed": "320.00", "notation": null} |
nlprog_det-setting-0073107 | <|start|><|user|>
Rent of $1,800 goes up 6%. What is the new rent?<|eot|>
<|assistant|>
```python
rent = 1800
increase = 6 / 100 # 0.06
new_rent = rent * (1 + increase) # 1908.0
print(f"{new_rent:.2f}")
```
Interpreter output: 1908.00
The new rent is $1,908.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Rent of $1,800 goes up 6%. What is the new rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 1800\nincrease = 6 / 100 # 0.06\nnew_rent = rent * (1 + increase) # 1908.0\nprint(f\"{new_rent:.2f}\")\n```\nInterpreter output: 1908.00\n\nThe new rent is $1... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "1908.00", "printed": "1908.00", "notation": null} |
nlprog_det-setting-0073108 | Express 327 hours in days and hours.
Python makes this quick:
```python
hours = 327
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Printed = 13 days and 15 hours
327 hours is 13 days and 15 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "13 days and 15 hours", "printed": "13 days and 15 hours", "notation": null} |
nlprog_det-setting-0073109 | A settlement of $84,000 is split equally among 4 parties. How much does each party receive?
Here is a short program for it.
settlement = 84000
parties = 4
share = settlement // parties # 21000
print(share)
Running this gives 21000.
Each share is $21,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "21000", "printed": "21000", "notation": null} |
nlprog_det-setting-0073110 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "sandbox_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|e... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"sandbox_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \... | nlprog_det | setting | original | null | deterministic | [] | [] | 281 | {"gold": "29", "printed": "29", "notation": null} |
nlprog_det-setting-0073111 | <|start|><|user|>
A trial runs from December 7, 2018 to December 22, 2018, counting both days. How many calendar days is that?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2018, 12, 7)
last = date(2018, 12, 22)
days = (last - first).days + 1
print(days)
```
Shell output — 16
That is 16 days.<|... | chat | [
{
"role": "user",
"content": "A trial runs from December 7, 2018 to December 22, 2018, counting both days. How many calendar days is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2018, 12, 7)\nlast = date(2018, 12, 22)\ndays = (last - first).days... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0073112 | <|start|><|user|>
Convert 2 h 23 min (the length of a film) to minutes.<|eot|>
<|assistant|>
```python
hours = 2
minutes = 23
total_minutes = hours * 60 + minutes
print(total_minutes)
```
Run output — 143
That is 143 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 2 h 23 min (the length of a film) to minutes."
},
{
"role": "assistant",
"content": "```python\nhours = 2\nminutes = 23\ntotal_minutes = hours * 60 + minutes\nprint(total_minutes)\n```\nRun output — 143\n\nThat is 143 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "143", "printed": "143", "notation": null} |
nlprog_det-setting-0073113 | Viktor earns a 5% commission on $80,456 of sales. What is the commission?
The Python version:
```python
sales = 80456
rate = 5 / 100 # 0.05
commission = sales * rate # 4022.8
print(f"{commission:.2f}")
```
The program outputs: 4022.80
Viktor earns $4,022.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "4022.80", "printed": "4022.80", "notation": null} |
nlprog_det-setting-0073114 | How many days are there from December 8, 2022 to March 13, 2023?
Python makes this quick:
```python
from datetime import date
first = date(2022, 12, 8) # datetime.date(2022, 12, 8)
second = date(2023, 3, 13) # datetime.date(2023, 3, 13)
print((second - first).days)
```
Console output — 95
There are 95 days between ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "95", "printed": "95", "notation": null} |
nlprog_det-setting-0073115 | One can of paint covers 250 square feet. How many cans are needed for 1378 square feet of wall?
6 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0073116 | Prorate $1,200 of monthly rent for 22 days of a 30-day month.
A short script:
```python
rent = 1200
days_in_month = 30
days_occupied = 22
prorated = rent * days_occupied / days_in_month # 880.0
print(f"{prorated:.2f}")
```
Python prints 880.00, as expected.
The tenant owes $880.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "880.00", "printed": "880.00", "notation": null} |
nlprog_det-setting-0073117 | Attendance was 26 out of 40. Express it as a percent.
Let's compute it with Python.
```python
present = 26
total = 40
percent = present / total * 100 # 65.0
print(round(percent, 1))
```
stdout — 65.0
Attendance was 65.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "65.0", "printed": "65.0", "notation": null} |
nlprog_det-setting-0073118 | Divide 134 items among 6 groups as evenly as possible with equal groups. How many per group, and how many remain?
Computation in Python:
```python
total = 134
groups = 6
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
It outputs 22 each, 2 left over.
The answer: 22 e... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "22 each, 2 left over", "printed": "22 each, 2 left over", "notation": null} |
nlprog_det-setting-0073119 | Count 14 days forward from March 4, 2028. What date is that?
In Python:
```python
from datetime import date, timedelta
start = date(2028, 3, 4) # datetime.date(2028, 3, 4)
end = start + timedelta(days=14) # datetime.date(2028, 3, 18)
print(end.isoformat())
```
This prints 2028-03-18, as expected.
That date is March... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "2028-03-18", "printed": "2028-03-18", "notation": null} |
nlprog_det-setting-0073120 | <|start|><|user|>
Equipment costs $30,000, has a salvage value of $2,000, and a useful life of 5 years. What is the straight-line depreciation per year?<|eot|>
<|assistant|>
```python
cost = 30000
salvage = 2000
years = 5
per_year = (cost - salvage) / years # 5600.0
print(f"{per_year:.2f}")
```
stdout = 5600.00
$5,60... | chat | [
{
"role": "user",
"content": "Equipment costs $30,000, has a salvage value of $2,000, and a useful life of 5 years. What is the straight-line depreciation per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 30000\nsalvage = 2000\nyears = 5\nper_year = (cost - salvage) / years # 5... | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "5600.00", "printed": "5600.00", "notation": null} |
nlprog_det-setting-0073121 | A customer buys 2 toner kits at $15 each, 4 calendars at $17 each, 1 envelopes at $5 each and pays with $150. How much change is due?
As Python:
```python
items = [(2, 15), (4, 17), (1, 5)]
total = sum(q * p for q, p in items) # 103
paid = 150
change = paid - total # 47
print(change)
```
Execution prints 47.
The ch... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "47", "printed": "47", "notation": null} |
nlprog_det-setting-0073122 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "eval_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"eval_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source co... | nlprog_det | setting | original | null | deterministic | [] | [] | 255 | {"gold": "984.96", "printed": "984.96", "notation": null} |
nlprog_det-setting-0073123 | <|start|><|system|>
Avoid unnecessary detail.<|eot|>
<|user|>
Attendance was 176 out of 200. Express it as a percent.<|eot|>
<|assistant|>
```python
present = 176
total = 200
percent = present / total * 100 # 88.0
print(round(percent, 1))
```
It outputs: 88.0
88.0% attended.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Avoid unnecessary detail."
},
{
"role": "user",
"content": "Attendance was 176 out of 200. Express it as a percent."
},
{
"role": "assistant",
"content": "```python\npresent = 176\ntotal = 200\npercent = present / total * 100 # 88.0\nprint(round(perce... | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "88.0", "printed": "88.0", "notation": null} |
nlprog_det-setting-0073124 | Equal monthly payments repay $1,200 plus 10% simple yearly interest over 24 months. How large is a payment?
Code:
principal = 1200
annual_rate = 10 / 100 # 0.1
months = 24
interest = principal * annual_rate * months / 12 # 240.0
payment = (principal + interest) / months # 60.0
print(f"{payme... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "60.00", "printed": "60.00", "notation": null} |
nlprog_det-setting-0073125 | <|start|><|user|>
A $12,000 grant pays $0 up front and the rest in 4 equal installments. How large is each installment?<|eot|>
<|assistant|>
grant = 12000
up_front = 0
installments = 4
each = (grant - up_front) / installments # 3000.0
print(f"{each:.2f}")
The script prints 3000.00, as expected.
$3... | chat | [
{
"role": "user",
"content": "A $12,000 grant pays $0 up front and the rest in 4 equal installments. How large is each installment?"
},
{
"role": "assistant",
"content": " grant = 12000\n up_front = 0\n installments = 4\n each = (grant - up_front) / installments # 3000.0\n print(... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "3000.00", "printed": "3000.00", "notation": null} |
nlprog_det-setting-0073126 | What commission does Priya make on $117,085 in sales at 10%?
Computation in Python:
```python
sales = 117085
rate = 10 / 100 # 0.1
commission = sales * rate # 11708.5
print(f"{commission:.2f}")
```
Python prints 11708.50, as expected.
Priya earns $11,708.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "11708.50", "printed": "11708.50", "notation": null} |
nlprog_det-setting-0073128 | Of a $8,000 budget, $4,800 has been spent. What percent is that?
60.0% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "60.0", "printed": "60.0", "notation": null} |
nlprog_det-setting-0073129 | Count the days between July 20, 2020 and June 28, 2021.
Python version:
```python
from datetime import date
first = date(2020, 7, 20)
second = date(2021, 6, 28)
print((second - first).days)
```
What it prints: 343
It is 343 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "343", "printed": "343", "notation": null} |
nlprog_det-setting-0073130 | A car gets 24 miles per gallon. Gas is $4.59 a gallon. What does fuel cost for a 360-mile trip?
The trip uses $68.85 of gas. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "68.85", "printed": "68.85", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.