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-0071430 | A 135-mile drive at a steady 45 mph takes how many minutes?
As a program:
distance = 135
speed = 45
minutes = distance / speed * 60
print(round(minutes))
Printed = 180
180 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 62 | {"gold": "180", "printed": "180", "notation": null} |
nlprog_det-setting-0071431 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
A $9,000 loan carries 5% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|>
<|assistant|>
The monthly payment is $287.50.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "A $9,000 loan carries 5% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?"
},
{
"role": "assistant",
"cont... | nlprog_det | setting | original | null | deterministic | [] | [] | 67 | {"gold": "287.50", "printed": "287.50", "notation": null} |
nlprog_det-setting-0071432 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "interpreter", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|us... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"interpreter\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python sou... | nlprog_det | setting | original | null | deterministic | [] | [] | 241 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0071433 | <|start|><|user|>
A $150 dinner bill gets a 15% tip, and 6 people share the cost equally. What is each person's share?<|eot|>
<|assistant|>
```python
bill = 150
tip_rate = 15 / 100 # 0.15
people = 6
each = bill * (1 + tip_rate) / people # 28.75
print(f"{each:.2f}")
```
The program outputs: 28.75
The share is $28.75 ... | chat | [
{
"role": "user",
"content": "A $150 dinner bill gets a 15% tip, and 6 people share the cost equally. What is each person's share?"
},
{
"role": "assistant",
"content": "```python\nbill = 150\ntip_rate = 15 / 100 # 0.15\npeople = 6\neach = bill * (1 + tip_rate) / people # 28.75\nprint(f\"{each... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "28.75", "printed": "28.75", "notation": null} |
nlprog_det-setting-0071434 | A 13 × 7 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?
In code:
import math
length = 13
width = 7
tile = 1
tiles = math.ceil(length * width / (tile * tile))
print(tiles)
Shell output: 91
It takes 91 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "91", "printed": "91", "notation": null} |
nlprog_det-setting-0071435 | What commission does Olga make on $89,499 in sales at 8%?
Computing it:
```python
sales = 89499
rate = 8 / 100 # 0.08
commission = sales * rate # 7159.92
print(f"{commission:.2f}")
```
Output of the run: 7159.92
Olga earns $7,159.92. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "7159.92", "printed": "7159.92", "notation": null} |
nlprog_det-setting-0071436 | <|start|><|user|>
What is a 25% tip on a $90.93 bill?<|eot|>
<|assistant|>
Leave $22.73.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is a 25% tip on a $90.93 bill?"
},
{
"role": "assistant",
"content": "Leave $22.73."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "22.73", "printed": "22.73", "notation": null} |
nlprog_det-setting-0071437 | What is the total rent on a 6-month lease at $1,475 a month?
Coded up:
```python
monthly_rent = 1475
months = 6
total = monthly_rent * months # 8850
print(total)
```
Running this gives: 8850
The rent over the term is $8,850. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "8850", "printed": "8850", "notation": null} |
nlprog_det-setting-0071438 | <|start|><|user|>
How many weekdays (Monday to Friday) fall after April 7, 2028 up to and including May 10, 2028?<|eot|>
<|assistant|>
from datetime import date, timedelta
start = date(2028, 4, 7)
end = date(2028, 5, 10)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timede... | chat | [
{
"role": "user",
"content": "How many weekdays (Monday to Friday) fall after April 7, 2028 up to and including May 10, 2028?"
},
{
"role": "assistant",
"content": " from datetime import date, timedelta\n start = date(2028, 4, 7)\n end = date(2028, 5, 10)\n count = 0\n for k in ra... | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0071439 | How much sales tax is charged on a $203.98 purchase at 6%?
Here is a short program for it.
```python
price = 203.98
tax_rate = 6 / 100
tax = price * tax_rate
print(f"{tax:.2f}")
```
The program outputs 12.24.
The tax is $12.24. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "12.24", "printed": "12.24", "notation": null} |
nlprog_det-setting-0071440 | Dara lends $20,000 at 6% simple interest per year for 4 years. How much interest is earned?
In code:
```python
principal = 20000
rate = 6 / 100 # 0.06
years = 4
interest = principal * rate * years # 4800.0
print(f"{interest:.2f}")
```
(Program output: 4800.00)
The interest is $4,800.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "4800.00", "printed": "4800.00", "notation": null} |
nlprog_det-setting-0071441 | <|start|><|system|>
Tool definitions:
[{"name": "compute", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
A car travels 536 miles in 2 h... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"compute\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"scri... | nlprog_det | setting | original | null | deterministic | [] | [] | 201 | {"gold": "268", "printed": "268", "notation": null} |
nlprog_det-setting-0071442 | <|start|><|user|>
2 claimants share a $524 settlement equally. What is each share?<|eot|>
<|assistant|>
```python
settlement = 524
parties = 2
share = settlement // parties # 262
print(share)
```
(Printed result: 262)
Each party receives $262.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "2 claimants share a $524 settlement equally. What is each share?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 524\nparties = 2\nshare = settlement // parties # 262\nprint(share)\n```\n(Printed result: 262)\n\nEach party receives $262."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "262", "printed": "262", "notation": null} |
nlprog_det-setting-0071444 | How many minutes pass from 10:31 AM to 1:32 PM on the same day?
Let's compute it with Python.
```python
start = 10 * 60 + 31 # 631
end = 13 * 60 + 32 # 812
print(end - start)
```
stdout: 181
181 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "181", "printed": "181", "notation": null} |
nlprog_det-setting-0071445 | 3 clients win $60,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?
The program:
award = 60000
fee = award * 40 / 100 # 24000.0
remaining = award - fee # 36000.0
per_client = remaining / 3 # 12000.0
print(f"{per_client:.2f}")
Run it and it prints: 12000.00
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "12000.00", "printed": "12000.00", "notation": null} |
nlprog_det-setting-0071446 | <|start|><|system|>
You are a math tutor.<|eot|>
<|user|>
A $96 dinner bill gets a 20% tip, and 5 people share the cost equally. What is each person's share?<|eot|>
<|assistant|>
```python
bill = 96
tip_rate = 20 / 100 # 0.2
people = 5
each = bill * (1 + tip_rate) / people # 23.04
print(f"{each:.2f}")
```
The script ... | chat | [
{
"role": "system",
"content": "You are a math tutor."
},
{
"role": "user",
"content": "A $96 dinner bill gets a 20% tip, and 5 people share the cost equally. What is each person's share?"
},
{
"role": "assistant",
"content": "```python\nbill = 96\ntip_rate = 20 / 100 # 0.2\npeople ... | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "23.04", "printed": "23.04", "notation": null} |
nlprog_det-setting-0071447 | How many whole days and leftover hours are in 50 hours?
As a program:
```python
hours = 50
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Result: 2 days and 2 hours
50 hours is 2 days and 2 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "2 days and 2 hours", "printed": "2 days and 2 hours", "notation": null} |
nlprog_det-setting-0071448 | What commission does Maren make on $59,332 in sales at 10%?
The program:
```python
sales = 59332
rate = 10 / 100 # 0.1
commission = sales * rate # 5933.200000000001
print(f"{commission:.2f}")
```
Execution result: 5933.20
Maren earns $5,933.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "5933.20", "printed": "5933.20", "notation": null} |
nlprog_det-setting-0071449 | <|start|><|system|>
Be exact with numbers.<|eot|>
<|user|>
A 10 lb package ships at $10 base plus $1.50/lb. What is the charge?<|eot|>
<|assistant|>
```python
base = 10
per_pound = 1.5
weight = 10
cost = base + per_pound * weight # 25.0
print(f"{cost:.2f}")
```
Output:
25.00
Shipping costs $25.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be exact with numbers."
},
{
"role": "user",
"content": "A 10 lb package ships at $10 base plus $1.50/lb. What is the charge?"
},
{
"role": "assistant",
"content": "```python\nbase = 10\nper_pound = 1.5\nweight = 10\ncost = base + per_pound * weight #... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "25.00", "printed": "25.00", "notation": null} |
nlprog_det-setting-0071450 | A car travels 466 miles in 2 hours. What is its average speed in miles per hour?
Python, step by step:
```python
distance = 466
hours = 2
speed = distance / hours # 233.0
print(round(speed))
```
Printed = 233
It averages 233 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "233", "printed": "233", "notation": null} |
nlprog_det-setting-0071451 | <|start|><|user|>
After an initial $6,000, the remainder of a $12,000 grant is paid in 12 equal parts. What is each part?<|eot|>
<|assistant|>
```python
grant = 12000
up_front = 6000
installments = 12
each = (grant - up_front) / installments # 500.0
print(f"{each:.2f}")
```
Running this gives 500.00.
Each installment... | chat | [
{
"role": "user",
"content": "After an initial $6,000, the remainder of a $12,000 grant is paid in 12 equal parts. What is each part?"
},
{
"role": "assistant",
"content": "```python\ngrant = 12000\nup_front = 6000\ninstallments = 12\neach = (grant - up_front) / installments # 500.0\nprint(f\"{... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "500.00", "printed": "500.00", "notation": null} |
nlprog_det-setting-0071452 | A 90-day notice period begins on February 21, 2027. On what date does it end?
A Python solution:
```python
from datetime import date, timedelta
start = date(2027, 2, 21) # datetime.date(2027, 2, 21)
end = start + timedelta(days=90) # datetime.date(2027, 5, 22)
print(end.isoformat())
```
The program outputs 2027-05-2... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "2027-05-22", "printed": "2027-05-22", "notation": null} |
nlprog_det-setting-0071453 | <|start|><|system|>
You are a careful assistant.<|eot|>
<|user|>
Filing fees are $125 per document. What do 10 filings cost?<|eot|>
<|assistant|>
```python
fee = 125
filings = 10
total = fee * filings # 1250
print(total)
```
Printed:
1250
The filings cost $1,250 in all.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a careful assistant."
},
{
"role": "user",
"content": "Filing fees are $125 per document. What do 10 filings cost?"
},
{
"role": "assistant",
"content": "```python\nfee = 125\nfilings = 10\ntotal = fee * filings # 1250\nprint(total)\n```\nPrin... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "1250", "printed": "1250", "notation": null} |
nlprog_det-setting-0071454 | <|start|><|user|>
A client paid a $7,500 retainer. The firm has billed 11 hours at $250 per hour. How much of the retainer is left?<|eot|>
<|assistant|>
```python
retainer = 7500
hours = 11
rate = 250
left = retainer - hours * rate
print(left)
```
Printed: 4750
$4,750 of the retainer is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A client paid a $7,500 retainer. The firm has billed 11 hours at $250 per hour. How much of the retainer is left?"
},
{
"role": "assistant",
"content": "```python\nretainer = 7500\nhours = 11\nrate = 250\nleft = retainer - hours * rate\nprint(left)\n```\nPrinted: 47... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "4750", "printed": "4750", "notation": null} |
nlprog_det-setting-0071455 | A clerk's office charges $75 for each filing. Mateo submits 5 filings. What is the total fee?
We can compute it in Python.
fee = 75
filings = 5
total = fee * filings # 375
print(total)
Executed, it shows: 375
The total fee is $375. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "375", "printed": "375", "notation": null} |
nlprog_det-setting-0071456 | If a 90-minute class begins at 11:10 AM, what time does it finish?
It ends at 12:40 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "12:40 PM", "printed": "12:40 PM", "notation": null} |
nlprog_det-setting-0071457 | <|start|><|user|>
A count moves from 2,000 to 2,300. By what percent did it change (use a minus sign for a drop)?<|eot|>
<|assistant|>
The change is 15%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A count moves from 2,000 to 2,300. By what percent did it change (use a minus sign for a drop)?"
},
{
"role": "assistant",
"content": "The change is 15%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0071458 | A water bill is $20 plus $5.10 per thousand gallons beyond the first 2 thousand. What is the bill for 13 thousand gallons?
Python, step by step:
```python
base = 20
rate = 5.1
used = 13
free = 2
bill = base + rate * max(0, used - free) # 76.1
print(f"{bill:.2f}")
```
Run result — 76.10
$76.10 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "76.10", "printed": "76.10", "notation": null} |
nlprog_det-setting-0071459 | <|start|><|user|>
The landlord deducts $200, $75 and $60 from a $2,500 deposit. What is returned to the tenant?<|eot|>
<|assistant|>
```python
deposit = 2500
deductions = [200, 75, 60]
refund = deposit - sum(deductions) # 2165
print(refund)
```
The run gives 2165, as expected.
The refund is $2,165.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The landlord deducts $200, $75 and $60 from a $2,500 deposit. What is returned to the tenant?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 2500\ndeductions = [200, 75, 60]\nrefund = deposit - sum(deductions) # 2165\nprint(refund)\n```\nThe run gives ... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "2165", "printed": "2165", "notation": null} |
nlprog_det-setting-0071460 | How many weekdays (Monday to Friday) fall after June 19, 2026 up to and including July 10, 2026?
The program:
```python
from datetime import date, timedelta
start = date(2026, 6, 19)
end = date(2026, 7, 10)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekday() < 5:
c... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 154 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0071461 | Tariq lends $1,000 at 4% simple interest per year for 6 years. How much interest is earned?
The Python version:
```python
principal = 1000
rate = 4 / 100 # 0.04
years = 6
interest = principal * rate * years # 240.0
print(f"{interest:.2f}")
```
# execution result: 240.00
It earns $240.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "240.00", "printed": "240.00", "notation": null} |
nlprog_det-setting-0071462 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "code_runner", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"code_runner\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\... | nlprog_det | setting | original | null | deterministic | [] | [] | 286 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0071463 | <|start|><|user|>
How many minutes pass from 10:26 AM to 4:56 PM on the same day?<|eot|>
<|assistant|>
```python
start = 10 * 60 + 26 # 626
end = 16 * 60 + 56 # 1016
print(end - start)
```
(Output: 390)
It is 390 minutes long.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many minutes pass from 10:26 AM to 4:56 PM on the same day?"
},
{
"role": "assistant",
"content": "```python\nstart = 10 * 60 + 26 # 626\nend = 16 * 60 + 56 # 1016\nprint(end - start)\n```\n(Output: 390)\n\nIt is 390 minutes long."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "390", "printed": "390", "notation": null} |
nlprog_det-setting-0071464 | At $0.62 per mile, what is the reimbursement for 35 miles?
Python version:
```python
miles = 35
rate = 0.62
reimbursement = miles * rate # 21.7
print(f"{reimbursement:.2f}")
```
Execution prints: 21.70
Omar is owed $21.70. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "21.70", "printed": "21.70", "notation": null} |
nlprog_det-setting-0071465 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
Scale 300 g of pasta from 6 servings to 2 servings.<|eot|>
<|assistant|>
grams = 300
serves = 6
needed_for = 2
scaled = grams * needed_for // serves
print(scaled)
The interpreter prints 100.
100 grams of pasta are needed.<|eot|>
<|end... | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Scale 300 g of pasta from 6 servings to 2 servings."
},
{
"role": "assistant",
"content": " grams = 300\n serves = 6\n needed_for = 2\n scaled = grams * needed_for // serves\n ... | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "100", "printed": "100", "notation": null} |
nlprog_det-setting-0071466 | <|start|><|system|>
Be exact with numbers.<|eot|>
<|user|>
A room is 10 feet by 16 feet. Flooring costs $6 per square foot. What does it cost to floor the room?<|eot|>
<|assistant|>
The flooring costs $960.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be exact with numbers."
},
{
"role": "user",
"content": "A room is 10 feet by 16 feet. Flooring costs $6 per square foot. What does it cost to floor the room?"
},
{
"role": "assistant",
"content": "The flooring costs $960."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 54 | {"gold": "960", "printed": "960", "notation": null} |
nlprog_det-setting-0071467 | <|start|><|user|>
Under a 40% contingency agreement, what fee is owed on a $90,000 award?<|eot|>
<|assistant|>
```python
recovery = 90000
rate = 40 / 100 # 0.4
fee = recovery * rate # 36000.0
print(f"{fee:.2f}")
```
Run result = 36000.00
The fee is $36,000.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Under a 40% contingency agreement, what fee is owed on a $90,000 award?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 90000\nrate = 40 / 100 # 0.4\nfee = recovery * rate # 36000.0\nprint(f\"{fee:.2f}\")\n```\nRun result = 36000.00\n\nThe fee is $36,... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "36000.00", "printed": "36000.00", "notation": null} |
nlprog_det-setting-0071468 | <|start|><|user|>
Shipping costs $8 plus $2.00 per pound. What does a 33-pound parcel cost to ship?<|eot|>
<|assistant|>
```python
base = 8
per_pound = 2.0
weight = 33
cost = base + per_pound * weight # 74.0
print(f"{cost:.2f}")
```
(Out: 74.00)
Shipping costs $74.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Shipping costs $8 plus $2.00 per pound. What does a 33-pound parcel cost to ship?"
},
{
"role": "assistant",
"content": "```python\nbase = 8\nper_pound = 2.0\nweight = 33\ncost = base + per_pound * weight # 74.0\nprint(f\"{cost:.2f}\")\n```\n(Out: 74.00)\n\nShippin... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "74.00", "printed": "74.00", "notation": null} |
nlprog_det-setting-0071469 | Water costs $15 a month plus $4.20 for each 1,000 gallons over 3,000. What is owed for 16,000 gallons?
The program:
```python
base = 15
rate = 4.2
used = 16
free = 3
bill = base + rate * max(0, used - free) # 69.6
print(f"{bill:.2f}")
```
Output: 69.60
$69.60 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "69.60", "printed": "69.60", "notation": null} |
nlprog_det-setting-0071470 | Monthly: $9. Annual: $90. What is saved per year by paying annually?
Here is a short program for it.
```python
monthly = 9
yearly = 90
savings = monthly * 12 - yearly # 18
print(savings)
```
When run, it prints 18.
$18 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0071471 | Buying 6 notebooks at $4 each, 2 markers at $27 each, 1 flash drives at $26 each, 6 file boxes at $24 each, someone hands over $250. What change comes back?
As Python:
```python
items = [(6, 4), (2, 27), (1, 26), (6, 24)]
total = sum(q * p for q, p in items) # 248
paid = 250
change = paid - total # 2
print(change)
`... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 150 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0071472 | A court charges $5 per request plus $0.10 per page after the first 10 pages. What does a 56-page copy cost?
A few lines of Python do it:
pages = 56
base = 5
per_page = 0.1
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 9.600000000000001
print(f"{cost:.2f}")
It prints: 9.... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "9.60", "printed": "9.60", "notation": null} |
nlprog_det-setting-0071473 | What simple interest does $8,000 earn at 3% a year over 2 years?
Here is the program.
```python
principal = 8000
rate = 3 / 100 # 0.03
years = 2
interest = principal * rate * years # 480.0
print(f"{interest:.2f}")
```
Console output: 480.00
The interest is $480.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "480.00", "printed": "480.00", "notation": null} |
nlprog_det-setting-0071475 | <|start|><|system|>
Tools you may use:
[{"name": "calculator", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "fetch_filing", "description": "Fetch... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"calculator\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"co... | nlprog_det | setting | original | null | deterministic | [] | [] | 306 | {"gold": "30.00", "printed": "30.00", "notation": null} |
nlprog_det-setting-0071476 | Convert 0.6 km to meters.
We can compute it in Python.
```python
km = 0.6
meters = km * 1000 # 600.0
print(round(meters))
```
(Console output: 600)
That is 600 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0071477 | <|start|><|user|>
Pack A has 12 items for $12.85. Pack B has 20 items for $30.38. Which has the lower price per item?<|eot|>
<|assistant|>
```python
pack_a = 12.85 / 12 # 1.0708333333333333
pack_b = 30.38 / 20 # 1.519
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
Execution result — A
A has the ... | chat | [
{
"role": "user",
"content": "Pack A has 12 items for $12.85. Pack B has 20 items for $30.38. Which has the lower price per item?"
},
{
"role": "assistant",
"content": "```python\npack_a = 12.85 / 12 # 1.0708333333333333\npack_b = 30.38 / 20 # 1.519\ncheaper = \"A\" if pack_a < pack_b else \"B... | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0071478 | <|start|><|user|>
A 580-page report must be reviewed in 20 days. How many pages a day is that, evenly?<|eot|>
<|assistant|>
29 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 580-page report must be reviewed in 20 days. How many pages a day is that, evenly?"
},
{
"role": "assistant",
"content": "29 pages a day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "29", "printed": "29", "notation": null} |
nlprog_det-setting-0071479 | A desk lamp costs $60. It is 40% off. What is the sale price?
Here is a short program for it.
```python
price = 60
discount = 40 / 100 # 0.4
sale_price = price * (1 - discount) # 36.0
print(f"{sale_price:.2f}")
```
Running it prints 36.00.
It costs $36.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "36.00", "printed": "36.00", "notation": null} |
nlprog_det-setting-0071480 | <|start|><|system|>
Functions:
[{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "calc", "description": "Run Python code in a sandbox; the re... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"target\"]}}, {\"name\":... | nlprog_det | setting | original | null | deterministic | [] | [] | 318 | {"gold": "3 each, 2 left over", "printed": "3 each, 2 left over", "notation": null} |
nlprog_det-setting-0071481 | A claim accrued on February 27, 2021. The limitations period is 4 years. On what date does it expire?
Python:
```python
from datetime import date
accrued = date(2021, 2, 27) # datetime.date(2021, 2, 27)
years = 4
expires = accrued.replace(year=accrued.year + years) # datetime.date(2025, 2, 27)
print(expires.isoforma... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 152 | {"gold": "2025-02-27", "printed": "2025-02-27", "notation": null} |
nlprog_det-setting-0071482 | <|start|><|user|>
143 volunteers are split into 9 equal teams. How many are on each team, and how many are left over?<|eot|>
<|assistant|>
The answer: 15 each, 8 left over.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "143 volunteers are split into 9 equal teams. How many are on each team, and how many are left over?"
},
{
"role": "assistant",
"content": "The answer: 15 each, 8 left over."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "15 each, 8 left over", "printed": "15 each, 8 left over", "notation": null} |
nlprog_det-setting-0071483 | What is the total rent on a 18-month lease at $1,475 a month?
Program:
```python
monthly_rent = 1475
months = 18
total = monthly_rent * months # 26550
print(total)
```
# execution result: 26550
The rent over the term is $26,550. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "26550", "printed": "26550", "notation": null} |
nlprog_det-setting-0071484 | How many units at $30 each (variable cost $25) cover $1,200 of fixed costs?
import math
fixed = 1200
price = 30
variable = 25
units = math.ceil(fixed / (price - variable)) # 240
print(units)
# stdout: 240
240 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "240", "printed": "240", "notation": null} |
nlprog_det-setting-0071485 | At $0.67 per mile, what is the reimbursement for 606 miles?
A Python solution:
```python
miles = 606
rate = 0.67
reimbursement = miles * rate # 406.02000000000004
print(f"{reimbursement:.2f}")
```
(Execution result: 406.02)
Diego is owed $406.02. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "406.02", "printed": "406.02", "notation": null} |
nlprog_det-setting-0071486 | Liesel and Beatriz share $5,502 in the ratio 3:4. How much does Liesel get?
We write it as a program:
```python
total = 5502
parts_a = 3
parts_b = 4
share_a = total * parts_a // (parts_a + parts_b)
print(share_a)
```
(Printed: 2358)
Liesel's share is $2,358. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "2358", "printed": "2358", "notation": null} |
nlprog_det-setting-0071487 | <|start|><|user|>
Scale 450 g of lentils from 6 servings to 4 servings.<|eot|>
<|assistant|>
```python
grams = 450
serves = 6
needed_for = 4
scaled = grams * needed_for // serves # 300
print(scaled)
```
# out: 300
Use 300 g of lentils.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Scale 450 g of lentils from 6 servings to 4 servings."
},
{
"role": "assistant",
"content": "```python\ngrams = 450\nserves = 6\nneeded_for = 4\nscaled = grams * needed_for // serves # 300\nprint(scaled)\n```\n# out: 300\n\nUse 300 g of lentils."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0071488 | <|start|><|user|>
A hearing is set for January 21, 1992. What day of the week is that?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(1992, 1, 21) # datetime.date(1992, 1, 21)
print(hearing.strftime("%A"))
```
Out — Tuesday
January 21, 1992 is a Tuesday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hearing is set for January 21, 1992. What day of the week is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(1992, 1, 21) # datetime.date(1992, 1, 21)\nprint(hearing.strftime(\"%A\"))\n```\nOut — Tuesday\n\nJanuar... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "Tuesday", "printed": "Tuesday", "notation": null} |
nlprog_det-setting-0071489 | <|start|><|user|>
Liesel and Arjun share $966 in the ratio 2:5. How much does Liesel get?<|eot|>
<|assistant|>
```python
total = 966
parts_a = 2
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 276
print(share_a)
```
The code prints: 276
Liesel gets $276.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Liesel and Arjun share $966 in the ratio 2:5. How much does Liesel get?"
},
{
"role": "assistant",
"content": "```python\ntotal = 966\nparts_a = 2\nparts_b = 5\nshare_a = total * parts_a // (parts_a + parts_b) # 276\nprint(share_a)\n```\nThe code prints: 276\n\nLie... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "276", "printed": "276", "notation": null} |
nlprog_det-setting-0071490 | Convert -20 °C to Fahrenheit.
Here's the code.
```python
celsius = -20
fahrenheit = celsius * 9 / 5 + 32 # -4.0
print(round(fahrenheit))
```
Out — -4
It equals -4 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "-4", "printed": "-4", "notation": null} |
nlprog_det-setting-0071492 | How many minutes pass from 9:59 AM to 2:56 PM on the same day?
```python
start = 9 * 60 + 59 # 599
end = 14 * 60 + 56 # 896
print(end - start)
```
# console output: 297
297 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "297", "printed": "297", "notation": null} |
nlprog_det-setting-0071493 | An invoice lists 17 badges at $4 each, plus 10% sales tax. What is the invoice total?
As Python:
```python
quantity = 17
unit_price = 4
subtotal = quantity * unit_price # 68
total = subtotal * (1 + 10 / 100) # 74.80000000000001
print(f"{total:.2f}")
```
Out:
74.80
The total with tax is $74.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "74.80", "printed": "74.80", "notation": null} |
nlprog_det-setting-0071494 | A clerk's office charges $45 for each filing. Lena submits 17 filings. What is the total fee?
Coded up:
```python
fee = 45
filings = 17
total = fee * filings # 765
print(total)
```
Executing it gives: 765
$765 in filing fees. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "765", "printed": "765", "notation": null} |
nlprog_det-setting-0071495 | Sales went from 400 to 320. What is the percent change?
Code:
```python
old = 400
new = 320
change = (new - old) / old * 100 # -20.0
print(round(change))
```
Python prints -20, as expected.
The change is -20%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "-20", "printed": "-20", "notation": null} |
nlprog_det-setting-0071496 | <|start|><|user|>
A $2,000 security deposit has deductions of $120 and $150. How much is refunded?<|eot|>
<|assistant|>
```python
deposit = 2000
deductions = [120, 150]
refund = deposit - sum(deductions)
print(refund)
```
Result:
1730
$1,730 is returned.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A $2,000 security deposit has deductions of $120 and $150. How much is refunded?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 2000\ndeductions = [120, 150]\nrefund = deposit - sum(deductions)\nprint(refund)\n```\nResult:\n1730\n\n$1,730 is returned."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "1730", "printed": "1730", "notation": null} |
nlprog_det-setting-0071497 | Abel earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 44-hour week?
The program:
```python
rate = 18.5
hours = 44
regular = 40 * rate # 740.0
overtime = (hours - 40) * rate * 1.5 # 111.0
pay = regular + overtime # 851.0
print(f"{pay:.2f}")
```
Output of the run — 851.00
The weekly ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "851.00", "printed": "851.00", "notation": null} |
nlprog_det-setting-0071498 | A client paid a $10,000 retainer. The firm has billed 6 hours at $200 per hour. How much of the retainer is left?
$8,800 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "8800", "printed": "8800", "notation": null} |
nlprog_det-setting-0071499 | A trial runs from April 7, 2024 to April 16, 2024, counting both days. How many calendar days is that?
```python
from datetime import date
first = date(2024, 4, 7) # datetime.date(2024, 4, 7)
last = date(2024, 4, 16) # datetime.date(2024, 4, 16)
days = (last - first).days + 1 # 10
print(days)
```
# program output: ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0071500 | <|start|><|user|>
Notice was given on July 20, 2026. The notice period is 120 days. When does it run out?<|eot|>
<|assistant|>
It ends on November 17, 2026.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Notice was given on July 20, 2026. The notice period is 120 days. When does it run out?"
},
{
"role": "assistant",
"content": "It ends on November 17, 2026."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "2026-11-17", "printed": "2026-11-17", "notation": null} |
nlprog_det-setting-0071501 | A meal costs $218.27. How much is a 15% tip?
The program:
```python
bill = 218.27
tip_rate = 15 / 100 # 0.15
tip = bill * tip_rate # 32.7405
print(f"{tip:.2f}")
```
This prints 32.74.
The tip is $32.74. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "32.74", "printed": "32.74", "notation": null} |
nlprog_det-setting-0071502 | Notice was given on July 6, 2019. The notice period is 30 days. When does it run out?
We write it as a program:
```python
from datetime import date, timedelta
start = date(2019, 7, 6) # datetime.date(2019, 7, 6)
end = start + timedelta(days=30) # datetime.date(2019, 8, 5)
print(end.isoformat())
```
The program outpu... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "2019-08-05", "printed": "2019-08-05", "notation": null} |
nlprog_det-setting-0071503 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_unit", "to_unit"]... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\": ... | nlprog_det | setting | original | null | deterministic | [] | [] | 407 | {"gold": "353", "printed": "353", "notation": null} |
nlprog_det-setting-0071504 | Counting the first and last day, how many days are there from September 9, 2024 through September 27, 2024?
We can compute it in Python.
```python
from datetime import date
first = date(2024, 9, 9) # datetime.date(2024, 9, 9)
last = date(2024, 9, 27) # datetime.date(2024, 9, 27)
days = (last - first).days + 1 # 19
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0071505 | <|start|><|user|>
A hearing lasted 2 hours and 49 minutes. How many minutes is that?<|eot|>
<|assistant|>
That is 169 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hearing lasted 2 hours and 49 minutes. How many minutes is that?"
},
{
"role": "assistant",
"content": "That is 169 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "169", "printed": "169", "notation": null} |
nlprog_det-setting-0071507 | <|start|><|user|>
What commission does Hugo make on $6,232 in sales at 5%?<|eot|>
<|assistant|>
```python
sales = 6232
rate = 5 / 100 # 0.05
commission = sales * rate # 311.6
print(f"{commission:.2f}")
```
Running this gives 311.60.
Hugo earns $311.60.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What commission does Hugo make on $6,232 in sales at 5%?"
},
{
"role": "assistant",
"content": "```python\nsales = 6232\nrate = 5 / 100 # 0.05\ncommission = sales * rate # 311.6\nprint(f\"{commission:.2f}\")\n```\nRunning this gives 311.60.\n\nHugo earns $311.60."... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "311.60", "printed": "311.60", "notation": null} |
nlprog_det-setting-0071508 | <|start|><|user|>
A customer buys 3 cables at $2 each, 1 lanyards at $8 each, 6 rulers at $23 each, 2 paper reams at $25 each and pays with $250. How much change is due?<|eot|>
<|assistant|>
items = [(3, 2), (1, 8), (6, 23), (2, 25)]
total = sum(q * p for q, p in items) # 202
paid = 250
change = paid -... | chat | [
{
"role": "user",
"content": "A customer buys 3 cables at $2 each, 1 lanyards at $8 each, 6 rulers at $23 each, 2 paper reams at $25 each and pays with $250. How much change is due?"
},
{
"role": "assistant",
"content": " items = [(3, 2), (1, 8), (6, 23), (2, 25)]\n total = sum(q * p for q... | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0071509 | Revenue is $6,500 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)?
Here is the program.
```python
revenue = 6500
costs = 4000
profit = revenue - costs # 2500
margin = profit / revenue * 100 # 38.46153846153847
print(round(margin, 1))
```
# program output: 38.5
The margin is 38.... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "38.5", "printed": "38.5", "notation": null} |
nlprog_det-setting-0071510 | <|start|><|user|>
Equal monthly payments repay $9,000 plus 10% simple yearly interest over 24 months. How large is a payment?<|eot|>
<|assistant|>
```python
principal = 9000
annual_rate = 10 / 100
months = 24
interest = principal * annual_rate * months / 12
payment = (principal + interest) / months
print(f"{payment:.2f... | chat | [
{
"role": "user",
"content": "Equal monthly payments repay $9,000 plus 10% simple yearly interest over 24 months. How large is a payment?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 9000\nannual_rate = 10 / 100\nmonths = 24\ninterest = principal * annual_rate * months / 12\npay... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "450.00", "printed": "450.00", "notation": null} |
nlprog_det-setting-0071511 | How many meters are in 10.2 kilometers?
A few lines of Python do it:
```python
km = 10.2
meters = km * 1000
print(round(meters))
```
Running it prints: 10200
10,200 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "10200", "printed": "10200", "notation": null} |
nlprog_det-setting-0071512 | A shift runs from 11:43 AM to 6:12 PM. How long is it in minutes?
Python makes this quick:
start = 11 * 60 + 43 # 703
end = 18 * 60 + 12 # 1092
print(end - start)
The run gives 389, as expected.
It is 389 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "389", "printed": "389", "notation": null} |
nlprog_det-setting-0071513 | A $2,400 loan carries 10% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?
One way, in code:
```python
principal = 2400
annual_rate = 10 / 100 # 0.1
months = 12
interest = principal * annual_rate * months / 12 # 240.0
payment = (principal + int... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "220.00", "printed": "220.00", "notation": null} |
nlprog_det-setting-0071514 | A water bill is $15 plus $3.50 per thousand gallons beyond the first 2 thousand. What is the bill for 19 thousand gallons?
Programmatically:
base = 15
rate = 3.5
used = 19
free = 2
bill = base + rate * max(0, used - free) # 74.5
print(f"{bill:.2f}")
(Out: 74.50)
$74.50 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "74.50", "printed": "74.50", "notation": null} |
nlprog_det-setting-0071515 | How many days are there from October 20, 2027 to April 17, 2028?
Written as code:
```python
from datetime import date
first = date(2027, 10, 20) # datetime.date(2027, 10, 20)
second = date(2028, 4, 17) # datetime.date(2028, 4, 17)
print((second - first).days)
```
Output — 180
It is 180 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "180", "printed": "180", "notation": null} |
nlprog_det-setting-0071516 | <|start|><|system|>
You may call the tools below.
[{"name": "sandbox_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
How many meter... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"sandbox_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requ... | nlprog_det | setting | original | null | deterministic | [] | [] | 208 | {"gold": "81100", "printed": "81100", "notation": null} |
nlprog_det-setting-0071517 | <|start|><|user|>
4 claimants share a $7,348 settlement equally. What is each share?<|eot|>
<|assistant|>
```python
settlement = 7348
parties = 4
share = settlement // parties # 1837
print(share)
```
Output: 1837
Each party receives $1,837.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "4 claimants share a $7,348 settlement equally. What is each share?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 7348\nparties = 4\nshare = settlement // parties # 1837\nprint(share)\n```\nOutput: 1837\n\nEach party receives $1,837."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "1837", "printed": "1837", "notation": null} |
nlprog_det-setting-0071518 | <|start|><|user|>
Attendance was 19 out of 25. Express it as a percent.<|eot|>
<|assistant|>
76.0% attended.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Attendance was 19 out of 25. Express it as a percent."
},
{
"role": "assistant",
"content": "76.0% attended."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "76.0", "printed": "76.0", "notation": null} |
nlprog_det-setting-0071519 | <|start|><|user|>
Someone born March 24, 1959 turns how old by August 17, 2028? Give the age in whole years.<|eot|>
<|assistant|>
from datetime import date
born = date(1959, 3, 24) # datetime.date(1959, 3, 24)
on = date(2028, 8, 17) # datetime.date(2028, 8, 17)
age = on.year - born.year - ((on.month, ... | chat | [
{
"role": "user",
"content": "Someone born March 24, 1959 turns how old by August 17, 2028? Give the age in whole years."
},
{
"role": "assistant",
"content": " from datetime import date\n born = date(1959, 3, 24) # datetime.date(1959, 3, 24)\n on = date(2028, 8, 17) # datetime.date(2... | nlprog_det | setting | original | null | deterministic | [] | [] | 152 | {"gold": "69", "printed": "69", "notation": null} |
nlprog_det-setting-0071521 | The landlord deducts $75, $200 and $75 from a $2,500 deposit. What is returned to the tenant?
Here is the program.
```python
deposit = 2500
deductions = [75, 200, 75]
refund = deposit - sum(deductions) # 2150
print(refund)
```
Run output: 2150
The refund is $2,150. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "2150", "printed": "2150", "notation": null} |
nlprog_det-setting-0071523 | 294 files go into boxes of 40. How many boxes does that take?
A short script:
```python
import math
files = 294
per_box = 40
boxes = math.ceil(files / per_box) # 8
print(boxes)
```
Running it prints 8, as expected.
8 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0071524 | <|start|><|user|>
Under a 30% contingency agreement, what fee is owed on a $60,000 award?<|eot|>
<|assistant|>
```python
recovery = 60000
rate = 30 / 100 # 0.3
fee = recovery * rate # 18000.0
print(f"{fee:.2f}")
```
Shell output: 18000.00
The lawyer's fee comes to $18,000.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Under a 30% contingency agreement, what fee is owed on a $60,000 award?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 60000\nrate = 30 / 100 # 0.3\nfee = recovery * rate # 18000.0\nprint(f\"{fee:.2f}\")\n```\nShell output: 18000.00\n\nThe lawyer's f... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "18000.00", "printed": "18000.00", "notation": null} |
nlprog_det-setting-0071525 | <|start|><|user|>
A 546-page report must be reviewed in 14 days. How many pages a day is that, evenly?<|eot|>
<|assistant|>
pages = 546
days = 14
per_day = pages // days # 39
print(per_day)
Printed result: 39
That is 39 pages per day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 546-page report must be reviewed in 14 days. How many pages a day is that, evenly?"
},
{
"role": "assistant",
"content": " pages = 546\n days = 14\n per_day = pages // days # 39\n print(per_day)\nPrinted result: 39\n\nThat is 39 pages per day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "39", "printed": "39", "notation": null} |
nlprog_det-setting-0071526 | <|start|><|system|>
You are a puzzle helper.<|eot|>
<|user|>
Someone born February 9, 1975 turns how old by February 5, 2029? Give the age in whole years.<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1975, 2, 9) # datetime.date(1975, 2, 9)
on = date(2029, 2, 5) # datetime.date(2029, 2, 5)
age ... | chat | [
{
"role": "system",
"content": "You are a puzzle helper."
},
{
"role": "user",
"content": "Someone born February 9, 1975 turns how old by February 5, 2029? Give the age in whole years."
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1975, 2, 9... | nlprog_det | setting | original | null | deterministic | [] | [] | 170 | {"gold": "53", "printed": "53", "notation": null} |
nlprog_det-setting-0071527 | <|start|><|user|>
Count the days between September 24, 2020 and August 14, 2021.<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2020, 9, 24) # datetime.date(2020, 9, 24)
second = date(2021, 8, 14) # datetime.date(2021, 8, 14)
print((second - first).days)
```
Result: 324
It is 324 days.<|eot|>
... | chat | [
{
"role": "user",
"content": "Count the days between September 24, 2020 and August 14, 2021."
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2020, 9, 24) # datetime.date(2020, 9, 24)\nsecond = date(2021, 8, 14) # datetime.date(2021, 8, 14)\nprint((seco... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "324", "printed": "324", "notation": null} |
nlprog_det-setting-0071528 | <|start|><|system|>
Avoid unnecessary detail.<|eot|>
<|user|>
Fines run at $50 per day up to a maximum of $2,500. How much after 44 days?<|eot|>
<|assistant|>
per_day = 50
days = 44
cap = 2500
fine = min(per_day * days, cap) # 2200
print(fine)
What it prints: 2200
$2,200 is owed.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Avoid unnecessary detail."
},
{
"role": "user",
"content": "Fines run at $50 per day up to a maximum of $2,500. How much after 44 days?"
},
{
"role": "assistant",
"content": " per_day = 50\n days = 44\n cap = 2500\n fine = min(per_day * day... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "2200", "printed": "2200", "notation": null} |
nlprog_det-setting-0071529 | Papers were served by mail on October 14, 2020. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date?
In Python:
```python
from datetime import date, timedelta
served = date(2020, 10, 14)
response_days = 21
mail_days = 3
due = served + timedelta(days=response_days + mail_days)
p... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 150 | {"gold": "2020-11-07", "printed": "2020-11-07", "notation": null} |
nlprog_det-setting-0071530 | <|start|><|system|>
Tools you may use:
{"name": "run_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|>
<|user|>
Equipment costs $24,000, h... | chat | [
{
"role": "system",
"content": "Tools you may use:\n{\"name\": \"run_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 259 | {"gold": "4500.00", "printed": "4500.00", "notation": null} |
nlprog_det-setting-0071531 | What is a 15% tip on a $183.30 bill?
Python does the arithmetic:
```python
bill = 183.3
tip_rate = 15 / 100 # 0.15
tip = bill * tip_rate # 27.495
print(f"{tip:.2f}")
```
(Result: 27.50)
Leave $27.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "27.50", "printed": "27.50", "notation": null} |
nlprog_det-setting-0071532 | $5,000 is invested at 3% compounded yearly. What is it worth after 2 years?
The Python version:
```python
principal = 5000
rate = 3 / 100 # 0.03
years = 2
value = principal * (1 + rate) ** years # 5304.5
print(f"{value:.2f}")
```
The printout reads: 5304.50
It is worth $5,304.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "5304.50", "printed": "5304.50", "notation": null} |
nlprog_det-setting-0071533 | <|start|><|user|>
From 2014 to 2041, how many years is that?<|eot|>
<|assistant|>
start_year = 2014
end_year = 2041
print(end_year - start_year)
(Printed: 27)
That is 27 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From 2014 to 2041, how many years is that?"
},
{
"role": "assistant",
"content": " start_year = 2014\n end_year = 2041\n print(end_year - start_year)\n(Printed: 27)\n\nThat is 27 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 60 | {"gold": "27", "printed": "27", "notation": null} |
nlprog_det-setting-0071534 | <|start|><|user|>
An attorney bills 12 hours at $350 per hour. What is the bill?<|eot|>
<|assistant|>
```python
hours = 12
rate = 350
bill = hours * rate # 4200
print(f"{bill:.2f}")
```
Execution result: 4200.00
That comes to $4,200.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An attorney bills 12 hours at $350 per hour. What is the bill?"
},
{
"role": "assistant",
"content": "```python\nhours = 12\nrate = 350\nbill = hours * rate # 4200\nprint(f\"{bill:.2f}\")\n```\nExecution result: 4200.00\n\nThat comes to $4,200.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "4200.00", "printed": "4200.00", "notation": null} |
nlprog_det-setting-0071536 | Buying 6 toner kits at $24 each, 6 water bottles at $27 each, 3 labels at $2 each, someone hands over $350. What change comes back?
The change is $38. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 50 | {"gold": "38", "printed": "38", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.