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-0054422 | A client paid a $10,000 retainer. The firm has billed 8 hours at $200 per hour. How much of the retainer is left?
The program:
```python
retainer = 10000
hours = 8
rate = 200
left = retainer - hours * rate # 8400
print(left)
```
Interpreter output — 8400
$8,400 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "8400", "printed": "8400", "notation": null} |
nlprog_det-setting-0054423 | <|start|><|user|>
A client paid a $5,000 retainer. The firm has billed 9 hours at $200 per hour. How much of the retainer is left?<|eot|>
<|assistant|>
```python
retainer = 5000
hours = 9
rate = 200
left = retainer - hours * rate # 3200
print(left)
```
The program prints 3200.
The remaining balance is $3,200.<|eot|>
... | chat | [
{
"role": "user",
"content": "A client paid a $5,000 retainer. The firm has billed 9 hours at $200 per hour. How much of the retainer is left?"
},
{
"role": "assistant",
"content": "```python\nretainer = 5000\nhours = 9\nrate = 200\nleft = retainer - hours * rate # 3200\nprint(left)\n```\nThe p... | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "3200", "printed": "3200", "notation": null} |
nlprog_det-setting-0054424 | A storeroom has 253 headsets. The office uses 13 a day. How many are left after 14 days?
71 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "71", "printed": "71", "notation": null} |
nlprog_det-setting-0054426 | What percentage of $2,000 is $1,600?
Program:
```python
budget = 2000
spent = 1600
percent = spent / budget * 100 # 80.0
print(round(percent, 1))
```
# program output: 80.0
80.0% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "80.0", "printed": "80.0", "notation": null} |
nlprog_det-setting-0054427 | Pack A has 8 items for $5.42. Pack B has 15 items for $14.29. Which has the lower price per item?
We can compute it in Python.
```python
pack_a = 5.42 / 8 # 0.6775
pack_b = 14.29 / 15 # 0.9526666666666667
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
The program outputs: A
A has the lower unit... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0054428 | From 2006 to 2040, how many years is that?
That is 34 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 21 | {"gold": "34", "printed": "34", "notation": null} |
nlprog_det-setting-0054429 | A 11 lb package ships at $10 base plus $1.20/lb. What is the charge?
```python
base = 10
per_pound = 1.2
weight = 11
cost = base + per_pound * weight
print(f"{cost:.2f}")
```
That prints 23.20.
Shipping costs $23.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "23.20", "printed": "23.20", "notation": null} |
nlprog_det-setting-0054430 | 5 bike rides at 350 calories each burn how many calories in total?
In Python:
```python
per_session = 350
sessions = 5
total = per_session * sessions # 1750
print(total)
```
Printed result — 1750
1750 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "1750", "printed": "1750", "notation": null} |
nlprog_det-setting-0054431 | If a 50-minute shift begins at 8:15 AM, what time does it finish?
Set it up in Python:
start = 8 * 60 + 15
end = start + 50
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
Python prints 9:05 AM.
The shift finishes at 9:05 AM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "9:05 AM", "printed": "9:05 AM", "notation": null} |
nlprog_det-setting-0054432 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
At an exchange rate of 0.74 USD per GBP, how many USD is 8,885 GBP?<|eot|>
<|assistant|>
That is 6,574.90 USD.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "At an exchange rate of 0.74 USD per GBP, how many USD is 8,885 GBP?"
},
{
"role": "assistant",
"content": "That is 6,574.90 USD."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 59 | {"gold": "6574.90", "printed": "6574.90", "notation": null} |
nlprog_det-setting-0054433 | A car travels 468 miles in 1 hours. What is its average speed in miles per hour?
```python
distance = 468
hours = 1
speed = distance / hours # 468.0
print(round(speed))
```
stdout — 468
It averages 468 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "468", "printed": "468", "notation": null} |
nlprog_det-setting-0054434 | A customer buys 2 scissors at $17 each, 3 badges at $10 each and pays with $100. How much change is due?
A few lines of Python do it:
```python
items = [(2, 17), (3, 10)]
total = sum(q * p for q, p in items) # 64
paid = 100
change = paid - total # 36
print(change)
```
Running this gives: 36
The change is $36. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0054435 | 4 books come back 9 days late, at $0.25 a day each. What is the fine?
Computing it:
```python
per_day = 0.25
days_late = 9
books = 4
fine = per_day * days_late * books # 9.0
print(f"{fine:.2f}")
```
Executed, it shows: 9.00
The fine is $9.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "9.00", "printed": "9.00", "notation": null} |
nlprog_det-setting-0054436 | Convert 9.8 km to meters. That is 9,800 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 21 | {"gold": "9800", "printed": "9800", "notation": null} |
nlprog_det-setting-0054437 | A 18-month warranty starts on December 14, 2023. On what date does it end?
```python
from datetime import date
start = date(2023, 12, 14)
months = 18
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
Executed, it shows: 2025-... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "2025-06-14", "printed": "2025-06-14", "notation": null} |
nlprog_det-setting-0054438 | Papers were served by mail on November 25, 2028. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date?
Computation in Python:
```python
from datetime import date, timedelta
served = date(2028, 11, 25) # datetime.date(2028, 11, 25)
response_days = 21
mail_days = 3
due = served +... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 184 | {"gold": "2028-12-19", "printed": "2028-12-19", "notation": null} |
nlprog_det-setting-0054439 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "calc", "description": ... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\":... | nlprog_det | setting | original | null | deterministic | [] | [] | 302 | {"gold": "27.13", "printed": "27.13", "notation": null} |
nlprog_det-setting-0054440 | <|start|><|user|>
From 2023 to 2028, how many years is that?<|eot|>
<|assistant|>
```python
start_year = 2023
end_year = 2028
print(end_year - start_year)
```
The run gives 5, as expected.
That is 5 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From 2023 to 2028, how many years is that?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 2023\nend_year = 2028\nprint(end_year - start_year)\n```\nThe run gives 5, as expected.\n\nThat is 5 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0054441 | A pack of 24 hard drives sells for $360. What does each cost?
As a program:
```python
total = 360
count = 24
per_item = total // count # 15
print(per_item)
```
stdout — 15
The unit price is $15. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0054442 | A $48,000 grant pays $2,000 up front and the rest in 12 equal installments. How large is each installment?
Python does the arithmetic:
```python
grant = 48000
up_front = 2000
installments = 12
each = (grant - up_front) / installments # 3833.3333333333335
print(f"{each:.2f}")
```
Printed — 3833.33
Each installment is... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "3833.33", "printed": "3833.33", "notation": null} |
nlprog_det-setting-0054443 | <|start|><|user|>
Water costs $18 a month plus $4.75 for each 1,000 gallons over 0,000. What is owed for 21,000 gallons?<|eot|>
<|assistant|>
```python
base = 18
rate = 4.75
used = 21
free = 0
bill = base + rate * max(0, used - free) # 117.75
print(f"{bill:.2f}")
```
Executing it gives 117.75.
The bill is $117.75.<|e... | chat | [
{
"role": "user",
"content": "Water costs $18 a month plus $4.75 for each 1,000 gallons over 0,000. What is owed for 21,000 gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 18\nrate = 4.75\nused = 21\nfree = 0\nbill = base + rate * max(0, used - free) # 117.75\nprint(f\"{bill:.... | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "117.75", "printed": "117.75", "notation": null} |
nlprog_det-setting-0054444 | Monthly rent is $1,800. A tenant moves in with 19 days left in a 30-day month. What is the prorated rent?
Set it up in Python:
```python
rent = 1800
days_in_month = 30
days_occupied = 19
prorated = rent * days_occupied / days_in_month # 1140.0
print(f"{prorated:.2f}")
```
Printed: 1140.00
The prorated rent is $1,140... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "1140.00", "printed": "1140.00", "notation": null} |
nlprog_det-setting-0054445 | A trial runs from January 8, 2026 to January 20, 2026, counting both days. How many calendar days is that?
Python code:
```python
from datetime import date
first = date(2026, 1, 8) # datetime.date(2026, 1, 8)
last = date(2026, 1, 20) # datetime.date(2026, 1, 20)
days = (last - first).days + 1 # 13
print(days)
```
O... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0054446 | <|start|><|user|>
At an exchange rate of 1.27 USD per GBP, how many USD is 6,474 GBP?<|eot|>
<|assistant|>
```python
amount = 6474
rate = 1.27
converted = amount * rate # 8221.98
print(f"{converted:.2f}")
```
The program outputs: 8221.98
It converts to 8,221.98 USD.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At an exchange rate of 1.27 USD per GBP, how many USD is 6,474 GBP?"
},
{
"role": "assistant",
"content": "```python\namount = 6474\nrate = 1.27\nconverted = amount * rate # 8221.98\nprint(f\"{converted:.2f}\")\n```\nThe program outputs: 8221.98\n\nIt converts to 8... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "8221.98", "printed": "8221.98", "notation": null} |
nlprog_det-setting-0054447 | Revenue is $6,500 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)?
Computation in Python:
```python
revenue = 6500
costs = 4000
profit = revenue - costs # 2500
margin = profit / revenue * 100 # 38.46153846153847
print(round(margin, 1))
```
Result — 38.5
The margin is 38.5%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "38.5", "printed": "38.5", "notation": null} |
nlprog_det-setting-0054448 | Revenue is $40,000 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?
Python, step by step:
```python
revenue = 40000
costs = 36000
profit = revenue - costs # 4000
margin = profit / revenue * 100 # 10.0
print(round(margin, 1))
```
Output of the run: 10.0
The margin is 10.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "10.0", "printed": "10.0", "notation": null} |
nlprog_det-setting-0054450 | <|start|><|system|>
You are a careful assistant.<|eot|>
<|user|>
Someone works 24 hours at $31.95 per hour. What are the earnings?<|eot|>
<|assistant|>
That earns $766.80.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a careful assistant."
},
{
"role": "user",
"content": "Someone works 24 hours at $31.95 per hour. What are the earnings?"
},
{
"role": "assistant",
"content": "That earns $766.80."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 48 | {"gold": "766.80", "printed": "766.80", "notation": null} |
nlprog_det-setting-0054451 | <|start|><|user|>
Counting the first and last day, how many days are there from December 24, 2019 through January 11, 2020?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2019, 12, 24) # datetime.date(2019, 12, 24)
last = date(2020, 1, 11) # datetime.date(2020, 1, 11)
days = (last - first).days... | chat | [
{
"role": "user",
"content": "Counting the first and last day, how many days are there from December 24, 2019 through January 11, 2020?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2019, 12, 24) # datetime.date(2019, 12, 24)\nlast = date(2020, 1, 11)... | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0054452 | A lawyer's fee is 33% of a $150,000 recovery. How large is the fee?
Coded up:
recovery = 150000
rate = 33 / 100 # 0.33
fee = recovery * rate # 49500.0
print(f"{fee:.2f}")
The run gives 49500.00, as expected.
The lawyer's fee comes to $49,500.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "49500.00", "printed": "49500.00", "notation": null} |
nlprog_det-setting-0054453 | <|start|><|user|>
Scale 150 g of lentils from 4 servings to 2 servings.<|eot|>
<|assistant|>
Use 75 g of lentils.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Scale 150 g of lentils from 4 servings to 2 servings."
},
{
"role": "assistant",
"content": "Use 75 g of lentils."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "75", "printed": "75", "notation": null} |
nlprog_det-setting-0054454 | <|start|><|system|>
Write short, precise answers.<|eot|>
<|user|>
Starting from $20,000, the team spends $1,284, $1,628, $486, $1,316. What remains?<|eot|>
<|assistant|>
```python
budget = 20000
expenses = [1284, 1628, 486, 1316]
left = budget - sum(expenses) # 15286
print(left)
```
# console output: 15286
The remain... | chat | [
{
"role": "system",
"content": "Write short, precise answers."
},
{
"role": "user",
"content": "Starting from $20,000, the team spends $1,284, $1,628, $486, $1,316. What remains?"
},
{
"role": "assistant",
"content": "```python\nbudget = 20000\nexpenses = [1284, 1628, 486, 1316]\nlef... | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "15286", "printed": "15286", "notation": null} |
nlprog_det-setting-0054455 | A settlement of $18,000 is split equally among 6 parties. How much does each party receive?
Coded up:
```python
settlement = 18000
parties = 6
share = settlement // parties # 3000
print(share)
```
Result — 3000
Each share is $3,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "3000", "printed": "3000", "notation": null} |
nlprog_det-setting-0054456 | A 300-mile drive at a steady 50 mph takes how many minutes? The trip takes 360 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 25 | {"gold": "360", "printed": "360", "notation": null} |
nlprog_det-setting-0054457 | <|start|><|user|>
The landlord deducts $120 and $45 from a $2,000 deposit. What is returned to the tenant?<|eot|>
<|assistant|>
```python
deposit = 2000
deductions = [120, 45]
refund = deposit - sum(deductions) # 1835
print(refund)
```
It prints 1835.
$1,835 is returned.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The landlord deducts $120 and $45 from a $2,000 deposit. What is returned to the tenant?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 2000\ndeductions = [120, 45]\nrefund = deposit - sum(deductions) # 1835\nprint(refund)\n```\nIt prints 1835.\n\n$1,8... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "1835", "printed": "1835", "notation": null} |
nlprog_det-setting-0054458 | A pack of 8 cables sells for $376. What does each cost?
Code:
```python
total = 376
count = 8
per_item = total // count # 47
print(per_item)
```
The script prints 47, as expected.
Each one costs $47. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "47", "printed": "47", "notation": null} |
nlprog_det-setting-0054459 | Convert 0.6 km to meters.
One way, in code:
km = 0.6
meters = km * 1000 # 600.0
print(round(meters))
(Output: 600)
That is 600 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 71 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0054460 | Which is cheaper per unit: 12 for $10.21 (A) or 20 for $12.34 (B)?
As Python:
```python
pack_a = 10.21 / 12 # 0.8508333333333334
pack_b = 12.34 / 20 # 0.617
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
Result — B
Pack B is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0054461 | <|start|><|user|>
What average speed covers 58 miles in 2 hours?<|eot|>
<|assistant|>
The average speed is 29 mph.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What average speed covers 58 miles in 2 hours?"
},
{
"role": "assistant",
"content": "The average speed is 29 mph."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 29 | {"gold": "29", "printed": "29", "notation": null} |
nlprog_det-setting-0054462 | <|start|><|user|>
A workshop lasted 3 hours and 37 minutes. How many minutes is that?<|eot|>
<|assistant|>
hours = 3
minutes = 37
total_minutes = hours * 60 + minutes # 217
print(total_minutes)
Printed result: 217
The workshop lasted 217 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A workshop lasted 3 hours and 37 minutes. How many minutes is that?"
},
{
"role": "assistant",
"content": " hours = 3\n minutes = 37\n total_minutes = hours * 60 + minutes # 217\n print(total_minutes)\nPrinted result: 217\n\nThe workshop lasted 217 minu... | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "217", "printed": "217", "notation": null} |
nlprog_det-setting-0054463 | A water bill is $18 plus $5.10 per thousand gallons beyond the first 0 thousand. What is the bill for 24 thousand gallons?
The program:
```python
base = 18
rate = 5.1
used = 24
free = 0
bill = base + rate * max(0, used - free) # 140.39999999999998
print(f"{bill:.2f}")
```
When run, it prints 140.40, as expected.
$14... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "140.40", "printed": "140.40", "notation": null} |
nlprog_det-setting-0054464 | 35 folders cost $8 apiece. With 10% tax added, what is the total?
A short script:
quantity = 35
unit_price = 8
subtotal = quantity * unit_price # 280
total = subtotal * (1 + 10 / 100) # 308.0
print(f"{total:.2f}")
Output of the run — 308.00
The total with tax is $308.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "308.00", "printed": "308.00", "notation": null} |
nlprog_det-setting-0054465 | <|start|><|user|>
A $9,000 loan carries 8% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|>
<|assistant|>
```python
principal = 9000
annual_rate = 8 / 100 # 0.08
months = 24
interest = principal * annual_rate * months / 12 # 1440.0
paymen... | chat | [
{
"role": "user",
"content": "A $9,000 loan carries 8% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 9000\nannual_rate = 8 / 100 # 0.08\nmonths = 24\ninteres... | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "435.00", "printed": "435.00", "notation": null} |
nlprog_det-setting-0054466 | <|start|><|user|>
A meal costs $155.75. How much is a 25% tip?<|eot|>
<|assistant|>
```python
bill = 155.75
tip_rate = 25 / 100 # 0.25
tip = bill * tip_rate # 38.9375
print(f"{tip:.2f}")
```
Run it and it prints: 38.94
Leave $38.94.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A meal costs $155.75. How much is a 25% tip?"
},
{
"role": "assistant",
"content": "```python\nbill = 155.75\ntip_rate = 25 / 100 # 0.25\ntip = bill * tip_rate # 38.9375\nprint(f\"{tip:.2f}\")\n```\nRun it and it prints: 38.94\n\nLeave $38.94."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "38.94", "printed": "38.94", "notation": null} |
nlprog_det-setting-0054467 | <|start|><|user|>
Goods bought on May 19, 2028 carry a 36-month warranty. When does it expire?<|eot|>
<|assistant|>
from datetime import date
start = date(2028, 5, 19)
months = 36
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
... | chat | [
{
"role": "user",
"content": "Goods bought on May 19, 2028 carry a 36-month warranty. When does it expire?"
},
{
"role": "assistant",
"content": " from datetime import date\n start = date(2028, 5, 19)\n months = 36\n years, month_index = divmod(start.month - 1 + months, 12)\n end ... | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "2031-05-19", "printed": "2031-05-19", "notation": null} |
nlprog_det-setting-0054468 | <|start|><|user|>
Monthly rent is $900. A tenant moves in with 6 days left in a 31-day month. What is the prorated rent?<|eot|>
<|assistant|>
The prorated rent is $174.19.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Monthly rent is $900. A tenant moves in with 6 days left in a 31-day month. What is the prorated rent?"
},
{
"role": "assistant",
"content": "The prorated rent is $174.19."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 53 | {"gold": "174.19", "printed": "174.19", "notation": null} |
nlprog_det-setting-0054469 | Shipping costs $8 plus $0.75 per pound. What does a 20-pound parcel cost to ship?
Program:
```python
base = 8
per_pound = 0.75
weight = 20
cost = base + per_pound * weight # 23.0
print(f"{cost:.2f}")
```
Execution prints: 23.00
Shipping costs $23.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "23.00", "printed": "23.00", "notation": null} |
nlprog_det-setting-0054470 | What simple interest does $8,000 earn at 4% a year over 6 years?
```python
principal = 8000
rate = 4 / 100 # 0.04
years = 6
interest = principal * rate * years # 1920.0
print(f"{interest:.2f}")
```
(Out: 1920.00)
It earns $1,920.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "1920.00", "printed": "1920.00", "notation": null} |
nlprog_det-setting-0054471 | Divide 145 items among 3 groups as evenly as possible with equal groups. How many per group, and how many remain?
Python makes this quick:
```python
total = 145
groups = 3
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
On running, it outputs 48 each, 1 left over.
Th... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "48 each, 1 left over", "printed": "48 each, 1 left over", "notation": null} |
nlprog_det-setting-0054472 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "eval_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
The landlord deduc... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"eval_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requi... | nlprog_det | setting | original | null | deterministic | [] | [] | 225 | {"gold": "1350", "printed": "1350", "notation": null} |
nlprog_det-setting-0054473 | Divide 207 items among 9 groups as evenly as possible with equal groups. How many per group, and how many remain?
Computation in Python:
```python
total = 207
groups = 9
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Run output: 23 each, 0 left over
23 each, 0 left ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "23 each, 0 left over", "printed": "23 each, 0 left over", "notation": null} |
nlprog_det-setting-0054474 | <|start|><|user|>
8 headsets cost $3 apiece. With 10% tax added, what is the total?<|eot|>
<|assistant|>
```python
quantity = 8
unit_price = 3
subtotal = quantity * unit_price # 24
total = subtotal * (1 + 10 / 100) # 26.400000000000002
print(f"{total:.2f}")
```
The run gives: 26.40
The invoice total is $26.40.<|eot|... | chat | [
{
"role": "user",
"content": "8 headsets cost $3 apiece. With 10% tax added, what is the total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 8\nunit_price = 3\nsubtotal = quantity * unit_price # 24\ntotal = subtotal * (1 + 10 / 100) # 26.400000000000002\nprint(f\"{total:.2f}\")... | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "26.40", "printed": "26.40", "notation": null} |
nlprog_det-setting-0054475 | A water bill is $12 plus $5.10 per thousand gallons beyond the first 0 thousand. What is the bill for 13 thousand gallons?
Set it up in Python:
```python
base = 12
rate = 5.1
used = 13
free = 0
bill = base + rate * max(0, used - free)
print(f"{bill:.2f}")
```
Output — 78.30
The bill is $78.30. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "78.30", "printed": "78.30", "notation": null} |
nlprog_det-setting-0054476 | <|start|><|user|>
Pack A has 10 items for $13.73. Pack B has 20 items for $14.27. Which has the lower price per item?<|eot|>
<|assistant|>
```python
pack_a = 13.73 / 10 # 1.373
pack_b = 14.27 / 20 # 0.7135
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
(stdout: B)
B has the lower unit price.<|eo... | chat | [
{
"role": "user",
"content": "Pack A has 10 items for $13.73. Pack B has 20 items for $14.27. Which has the lower price per item?"
},
{
"role": "assistant",
"content": "```python\npack_a = 13.73 / 10 # 1.373\npack_b = 14.27 / 20 # 0.7135\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'B'\np... | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0054477 | Someone born July 25, 1963 turns how old by October 26, 2022? Give the age in whole years.
```python
from datetime import date
born = date(1963, 7, 25) # datetime.date(1963, 7, 25)
on = date(2022, 10, 26) # datetime.date(2022, 10, 26)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 59
pr... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "59", "printed": "59", "notation": null} |
nlprog_det-setting-0054478 | At 2% a month (simple), what interest builds on $2,500 over 3 months? The interest is $150.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "150.00", "printed": "150.00", "notation": null} |
nlprog_det-setting-0054479 | <|start|><|user|>
Scale 450 g of sugar from 4 servings to 8 servings.<|eot|>
<|assistant|>
```python
grams = 450
serves = 4
needed_for = 8
scaled = grams * needed_for // serves # 900
print(scaled)
```
(Result: 900)
Use 900 g of sugar.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Scale 450 g of sugar from 4 servings to 8 servings."
},
{
"role": "assistant",
"content": "```python\ngrams = 450\nserves = 4\nneeded_for = 8\nscaled = grams * needed_for // serves # 900\nprint(scaled)\n```\n(Result: 900)\n\nUse 900 g of sugar."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0054480 | Sara's scores were 51, 50, 66, 62, 97 and 82. What is the average score? The mean is 68. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "68", "printed": "68", "notation": null} |
nlprog_det-setting-0054481 | A $120 dinner bill gets a 20% tip, and 3 people share the cost equally. What is each person's share?
A short script:
bill = 120
tip_rate = 20 / 100 # 0.2
people = 3
each = bill * (1 + tip_rate) / people # 48.0
print(f"{each:.2f}")
The interpreter prints 48.00.
Each person pays $48.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "48.00", "printed": "48.00", "notation": null} |
nlprog_det-setting-0054482 | How long, in days, is it from June 22, 2018 until June 19, 2019?
```python
from datetime import date
first = date(2018, 6, 22)
second = date(2019, 6, 19)
print((second - first).days)
```
Run output: 362
It is 362 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "362", "printed": "362", "notation": null} |
nlprog_det-setting-0054483 | An unpaid balance of $7,500 accrues 1% simple interest per month. How much interest accrues in 4 months?
We write it as a program:
```python
balance = 7500
monthly_rate = 1 / 100 # 0.01
months = 4
interest = balance * monthly_rate * months # 300.0
print(f"{interest:.2f}")
```
Run output — 300.00
The interest is $30... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "300.00", "printed": "300.00", "notation": null} |
nlprog_det-setting-0054484 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "math_engine", "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"]}}]<|eot|>
<|user|>
Sign... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"math_engine\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source cod... | nlprog_det | setting | original | null | deterministic | [] | [] | 226 | {"gold": "898.88", "printed": "898.88", "notation": null} |
nlprog_det-setting-0054485 | <|start|><|user|>
Of a $10,000 budget, $3,200 has been spent. What percent is that?<|eot|>
<|assistant|>
32.0% has been spent.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Of a $10,000 budget, $3,200 has been spent. What percent is that?"
},
{
"role": "assistant",
"content": "32.0% has been spent."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "32.0", "printed": "32.0", "notation": null} |
nlprog_det-setting-0054486 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "calc", "des... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"... | nlprog_det | setting | original | null | deterministic | [] | [] | 310 | {"gold": "136", "printed": "136", "notation": null} |
nlprog_det-setting-0054487 | Kaito buys 7 boxes of 24 markers each and gives away 5 markers. How many markers are left?
The computation:
```python
boxes = 7
per_box = 24
given_away = 5
left = boxes * per_box - given_away # 163
print(left)
```
Run output — 163
That leaves 163 markers. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "163", "printed": "163", "notation": null} |
nlprog_det-setting-0054488 | 3 clients win $48,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?
Computing it:
award = 48000
fee = award * 25 / 100 # 12000.0
remaining = award - fee # 36000.0
per_client = remaining / 3 # 12000.0
print(f"{per_client:.2f}")
Console output: 12000.00
Each... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "12000.00", "printed": "12000.00", "notation": null} |
nlprog_det-setting-0054489 | <|start|><|user|>
Scale 300 g of flour from 8 servings to 2 servings.<|eot|>
<|assistant|>
```python
grams = 300
serves = 8
needed_for = 2
scaled = grams * needed_for // serves # 75
print(scaled)
```
Run it and it prints: 75
75 grams of flour are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Scale 300 g of flour from 8 servings to 2 servings."
},
{
"role": "assistant",
"content": "```python\ngrams = 300\nserves = 8\nneeded_for = 2\nscaled = grams * needed_for // serves # 75\nprint(scaled)\n```\nRun it and it prints: 75\n\n75 grams of flour are needed."... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "75", "printed": "75", "notation": null} |
nlprog_det-setting-0054490 | A shift starts at 2:20 PM and lasts 105 minutes. When does it end?
Python version:
```python
start = 14 * 60 + 20
end = start + 105
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Output: 4:05 PM
It ends at 4:05 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "4:05 PM", "printed": "4:05 PM", "notation": null} |
nlprog_det-setting-0054491 | <|start|><|system|>
Tools (call with JSON):
{"name": "compute", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|>
<|user|>
How many of 32 members form a... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n{\"name\": \"compute\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 191 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0054492 | <|start|><|system|>
Keep explanations short.<|eot|>
<|user|>
Counting only Monday through Friday, how many business days are there after March 21, 2019 through April 9, 2019?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2019, 3, 21)
end = date(2019, 4, 9)
count = 0
for k in range(1, ... | chat | [
{
"role": "system",
"content": "Keep explanations short."
},
{
"role": "user",
"content": "Counting only Monday through Friday, how many business days are there after March 21, 2019 through April 9, 2019?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, ti... | nlprog_det | setting | original | null | deterministic | [] | [] | 163 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0054493 | A 18-month warranty starts on April 15, 2028. On what date does it end?
Here's the code.
```python
from datetime import date
start = date(2028, 4, 15)
months = 18
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
Console:
202... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "2029-10-15", "printed": "2029-10-15", "notation": null} |
nlprog_det-setting-0054495 | <|start|><|user|>
Each of Emeka's runs burns 400 calories. How many calories over 6 runs?<|eot|>
<|assistant|>
per_session = 400
sessions = 6
total = per_session * sessions # 2400
print(total)
Program output: 2400
That burns 2400 calories.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each of Emeka's runs burns 400 calories. How many calories over 6 runs?"
},
{
"role": "assistant",
"content": " per_session = 400\n sessions = 6\n total = per_session * sessions # 2400\n print(total)\nProgram output: 2400\n\nThat burns 2400 calories."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "2400", "printed": "2400", "notation": null} |
nlprog_det-setting-0054496 | Shipping costs $8 plus $2.00 per pound. What does a 36-pound parcel cost to ship?
We can compute it in Python.
```python
base = 8
per_pound = 2.0
weight = 36
cost = base + per_pound * weight # 80.0
print(f"{cost:.2f}")
```
When run, it prints: 80.00
The charge is $80.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "80.00", "printed": "80.00", "notation": null} |
nlprog_det-setting-0054497 | Which is cheaper per unit: 12 for $3.74 (A) or 15 for $9.12 (B)?
A has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0054498 | <|start|><|system|>
Tools (call with JSON):
{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}
{"name": "python_exec", "description": "Executes a Python program and returns its output.", "parameter... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}\n{\"name\": \"python_exec\", \"description\": \"Exe... | nlprog_det | setting | original | null | deterministic | [] | [] | 411 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0054499 | 4 friends split a $120 bill plus a 15% tip evenly. How much does each pay?
```python
bill = 120
tip_rate = 15 / 100 # 0.15
people = 4
each = bill * (1 + tip_rate) / people # 34.5
print(f"{each:.2f}")
```
Executed, it shows 34.50.
Each person pays $34.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "34.50", "printed": "34.50", "notation": null} |
nlprog_det-setting-0054500 | 7 hours of work at $410 an hour: what is the total charge?
Programmatically:
hours = 7
rate = 410
bill = hours * rate # 2870
print(f"{bill:.2f}")
Shell output: 2870.00
The bill is $2,870.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "2870.00", "printed": "2870.00", "notation": null} |
nlprog_det-setting-0054501 | <|start|><|user|>
A $800 security deposit has deductions of $60, $75 and $45. How much is refunded?<|eot|>
<|assistant|>
The refund is $620.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A $800 security deposit has deductions of $60, $75 and $45. How much is refunded?"
},
{
"role": "assistant",
"content": "The refund is $620."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "620", "printed": "620", "notation": null} |
nlprog_det-setting-0054502 | <|start|><|system|>
Tools (call with JSON):
[{"name": "math_engine", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
A meal costs $61.56. How ... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"math_engine\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\... | nlprog_det | setting | original | null | deterministic | [] | [] | 220 | {"gold": "9.23", "printed": "9.23", "notation": null} |
nlprog_det-setting-0054503 | Parking is $3 per hour with a daily maximum of $24. What do 9 hours cost?
A short script:
```python
rate = 3
hours = 9
daily_max = 24
cost = min(rate * hours, daily_max) # 24
print(cost)
```
Running this gives 24.
The charge is $24. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0054504 | <|start|><|user|>
Prorate $900 of monthly rent for 16 days of a 31-day month.<|eot|>
<|assistant|>
```python
rent = 900
days_in_month = 31
days_occupied = 16
prorated = rent * days_occupied / days_in_month # 464.51612903225805
print(f"{prorated:.2f}")
```
Execution prints 464.52.
The tenant owes $464.52.<|eot|>
<|end... | chat | [
{
"role": "user",
"content": "Prorate $900 of monthly rent for 16 days of a 31-day month."
},
{
"role": "assistant",
"content": "```python\nrent = 900\ndays_in_month = 31\ndays_occupied = 16\nprorated = rent * days_occupied / days_in_month # 464.51612903225805\nprint(f\"{prorated:.2f}\")\n```\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "464.52", "printed": "464.52", "notation": null} |
nlprog_det-setting-0054505 | <|start|><|system|>
Avoid unnecessary detail.<|eot|>
<|user|>
Starting from $20,000, the team spends $2,697, $3,641, $1,767, $1,248. What remains?<|eot|>
<|assistant|>
```python
budget = 20000
expenses = [2697, 3641, 1767, 1248]
left = budget - sum(expenses) # 10647
print(left)
```
# result: 10647
$10,647 is left.<|e... | chat | [
{
"role": "system",
"content": "Avoid unnecessary detail."
},
{
"role": "user",
"content": "Starting from $20,000, the team spends $2,697, $3,641, $1,767, $1,248. What remains?"
},
{
"role": "assistant",
"content": "```python\nbudget = 20000\nexpenses = [2697, 3641, 1767, 1248]\nleft... | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "10647", "printed": "10647", "notation": null} |
nlprog_det-setting-0054506 | A shift runs from 10:37 AM to 11:16 AM. How long is it in minutes?
Code:
```python
start = 10 * 60 + 37 # 637
end = 11 * 60 + 16 # 676
print(end - start)
```
(Execution result: 39)
39 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "39", "printed": "39", "notation": null} |
nlprog_det-setting-0054507 | A 9 × 5 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?
Here's the code.
```python
import math
length = 9
width = 5
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 12
print(tiles)
```
Execution result: 12
It takes 12 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0054508 | Equipment costs $30,000, has a salvage value of $0, and a useful life of 6 years. What is the straight-line depreciation per year?
Computation in Python:
```python
cost = 30000
salvage = 0
years = 6
per_year = (cost - salvage) / years # 5000.0
print(f"{per_year:.2f}")
```
Printed = 5000.00
Depreciation is $5,000.00 ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "5000.00", "printed": "5000.00", "notation": null} |
nlprog_det-setting-0054509 | Convert 1,434 EUR to USD at 1 EUR = 1.31 USD.
Computation in Python:
```python
amount = 1434
rate = 1.31
converted = amount * rate # 1878.54
print(f"{converted:.2f}")
```
Program output: 1878.54
It converts to 1,878.54 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "1878.54", "printed": "1878.54", "notation": null} |
nlprog_det-setting-0054510 | 12 boxes hold 10 water bottles each. After 10 are handed out, how many are left?
Python code:
```python
boxes = 12
per_box = 10
given_away = 10
left = boxes * per_box - given_away # 110
print(left)
```
The interpreter prints: 110
110 water bottles are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "110", "printed": "110", "notation": null} |
nlprog_det-setting-0054511 | Count the days between February 25, 2019 and March 2, 2020. There are 371 days between the two dates. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 25 | {"gold": "371", "printed": "371", "notation": null} |
nlprog_det-setting-0054512 | <|start|><|user|>
277 volunteers are split into 3 equal teams. How many are on each team, and how many are left over?<|eot|>
<|assistant|>
```python
total = 277
groups = 3
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
That prints: 92 each, 1 left over
The answer: 92... | chat | [
{
"role": "user",
"content": "277 volunteers are split into 3 equal teams. How many are on each team, and how many are left over?"
},
{
"role": "assistant",
"content": "```python\ntotal = 277\ngroups = 3\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remainder} left o... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "92 each, 1 left over", "printed": "92 each, 1 left over", "notation": null} |
nlprog_det-setting-0054514 | <|start|><|user|>
With 10% off, what does a $300 chair cost?<|eot|>
<|assistant|>
```python
price = 300
discount = 10 / 100 # 0.1
sale_price = price * (1 - discount) # 270.0
print(f"{sale_price:.2f}")
```
Console:
270.00
The sale price is $270.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 10% off, what does a $300 chair cost?"
},
{
"role": "assistant",
"content": "```python\nprice = 300\ndiscount = 10 / 100 # 0.1\nsale_price = price * (1 - discount) # 270.0\nprint(f\"{sale_price:.2f}\")\n```\nConsole:\n270.00\n\nThe sale price is $270.00."
}... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "270.00", "printed": "270.00", "notation": null} |
nlprog_det-setting-0054515 | A quorum is 3/5 of the 30 members, rounded up. How many members make a quorum?
We can compute it in Python.
```python
import math
members = 30
quorum = math.ceil(members * 3 / 5) # 18
print(quorum)
```
Printed = 18
18 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0054516 | What is a 20% tip on a $122.79 bill?
In Python:
```python
bill = 122.79
tip_rate = 20 / 100 # 0.2
tip = bill * tip_rate # 24.558000000000003
print(f"{tip:.2f}")
```
The run gives 24.56.
Leave $24.56. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "24.56", "printed": "24.56", "notation": null} |
nlprog_det-setting-0054517 | To read 540 pages in 12 days, how many pages per day are needed?
Python does the arithmetic:
```python
pages = 540
days = 12
per_day = pages // days # 45
print(per_day)
```
Interpreter output: 45
That is 45 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "45", "printed": "45", "notation": null} |
nlprog_det-setting-0054518 | Someone born May 8, 1988 turns how old by March 22, 2024? Give the age in whole years.
Computation in Python:
```python
from datetime import date
born = date(1988, 5, 8)
on = date(2024, 3, 22)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day))
print(age)
```
Run result — 35
The age is 35 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "35", "printed": "35", "notation": null} |
nlprog_det-setting-0054519 | 4 swims at 200 calories each burn how many calories in total?
Python version:
```python
per_session = 200
sessions = 4
total = per_session * sessions # 800
print(total)
```
(Printed result: 800)
800 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "800", "printed": "800", "notation": null} |
nlprog_det-setting-0054520 | <|start|><|system|>
Tools (call with JSON):
{"name": "sandbox_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|user|>
Counting only Monda... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n{\"name\": \"sandbox_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require... | nlprog_det | setting | original | null | deterministic | [] | [] | 297 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0054521 | <|start|><|user|>
Which is cheaper per unit: 12 for $7.41 (A) or 30 for $18.03 (B)?<|eot|>
<|assistant|>
B has the lower unit price.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Which is cheaper per unit: 12 for $7.41 (A) or 30 for $18.03 (B)?"
},
{
"role": "assistant",
"content": "B has the lower unit price."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0054522 | A count moves from 1,000 to 1,100. By what percent did it change (use a minus sign for a drop)?
We can compute it in Python.
```python
old = 1000
new = 1100
change = (new - old) / old * 100 # 10.0
print(round(change))
```
Run result = 10
It changed by 10%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0054523 | <|start|><|user|>
A storeroom has 519 water bottles. The office uses 31 a day. How many are left after 16 days?<|eot|>
<|assistant|>
```python
stock = 519
per_day = 31
days = 16
left = stock - per_day * days # 23
print(left)
```
It prints 23.
23 water bottles are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A storeroom has 519 water bottles. The office uses 31 a day. How many are left after 16 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 519\nper_day = 31\ndays = 16\nleft = stock - per_day * days # 23\nprint(left)\n```\nIt prints 23.\n\n23 water bot... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0054524 | <|start|><|system|>
Respond clearly and to the point.<|eot|>
<|user|>
Fixed costs are $4,000. Each unit sells for $30 and costs $26 to make. How many units must be sold to break even?<|eot|>
<|assistant|>
Break-even is 1000 units.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Respond clearly and to the point."
},
{
"role": "user",
"content": "Fixed costs are $4,000. Each unit sells for $30 and costs $26 to make. How many units must be sold to break even?"
},
{
"role": "assistant",
"content": "Break-even is 1000 units."
}
... | nlprog_det | setting | original | null | deterministic | [] | [] | 61 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0054525 | A customer buys 1 desk lamps at $22 each, 3 file boxes at $22 each, 3 clipboards at $15 each and pays with $150. How much change is due?
Script:
```python
items = [(1, 22), (3, 22), (3, 15)]
total = sum(q * p for q, p in items) # 133
paid = 150
change = paid - total # 17
print(change)
```
Running it prints: 17
The ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "17", "printed": "17", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.