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-0070788 | A garage charges $4 an hour, never more than $15 a day. How much for 3 hours?
Programmatically:
```python
rate = 4
hours = 3
daily_max = 15
cost = min(rate * hours, daily_max) # 12
print(cost)
```
Executed, it shows: 12
The charge is $12. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0070789 | Prorate $1,800 of monthly rent for 12 days of a 30-day month.
```python
rent = 1800
days_in_month = 30
days_occupied = 12
prorated = rent * days_occupied / days_in_month # 720.0
print(f"{prorated:.2f}")
```
# console output: 720.00
The prorated rent is $720.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "720.00", "printed": "720.00", "notation": null} |
nlprog_det-setting-0070790 | <|start|><|user|>
8 hours of work at $300 an hour: what is the total charge?<|eot|>
<|assistant|>
```python
hours = 8
rate = 300
bill = hours * rate # 2400
print(f"{bill:.2f}")
```
(stdout: 2400.00)
The bill is $2,400.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "8 hours of work at $300 an hour: what is the total charge?"
},
{
"role": "assistant",
"content": "```python\nhours = 8\nrate = 300\nbill = hours * rate # 2400\nprint(f\"{bill:.2f}\")\n```\n(stdout: 2400.00)\n\nThe bill is $2,400.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "2400.00", "printed": "2400.00", "notation": null} |
nlprog_det-setting-0070791 | A recipe for 2 people uses 240 grams of oats. How many grams are needed for 10 people?
As a program:
```python
grams = 240
serves = 2
needed_for = 10
scaled = grams * needed_for // serves # 1200
print(scaled)
```
Run output — 1200
1200 grams of oats are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "1200", "printed": "1200", "notation": null} |
nlprog_det-setting-0070792 | A car travels 478 miles in 2 hours. What is its average speed in miles per hour?
The Python version:
distance = 478
hours = 2
speed = distance / hours # 239.0
print(round(speed))
This prints 239, as expected.
The average speed is 239 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "239", "printed": "239", "notation": null} |
nlprog_det-setting-0070794 | Someone born November 20, 1951 turns how old by March 27, 2027? Give the age in whole years.
Python version:
```python
from datetime import date
born = date(1951, 11, 20) # datetime.date(1951, 11, 20)
on = date(2027, 3, 27) # datetime.date(2027, 3, 27)
age = on.year - born.year - ((on.month, on.day) < (born.month, b... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 159 | {"gold": "75", "printed": "75", "notation": null} |
nlprog_det-setting-0070795 | Pack A has 8 items for $14.38. Pack B has 18 items for $6.20. Which has the lower price per item?
B has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0070796 | At an exchange rate of 0.74 USD per GBP, how many USD is 2,956 GBP?
Computation in Python:
```python
amount = 2956
rate = 0.74
converted = amount * rate # 2187.44
print(f"{converted:.2f}")
```
Out = 2187.44
That is 2,187.44 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "2187.44", "printed": "2187.44", "notation": null} |
nlprog_det-setting-0070797 | A claim accrued on January 25, 2020. The limitations period is 6 years. On what date does it expire?
```python
from datetime import date
accrued = date(2020, 1, 25) # datetime.date(2020, 1, 25)
years = 6
expires = accrued.replace(year=accrued.year + years) # datetime.date(2026, 1, 25)
print(expires.isoformat())
```
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "2026-01-25", "printed": "2026-01-25", "notation": null} |
nlprog_det-setting-0070798 | A lawyer's fee is 35% of a $25,000 recovery. How large is the fee?
As a program:
```python
recovery = 25000
rate = 35 / 100 # 0.35
fee = recovery * rate # 8750.0
print(f"{fee:.2f}")
```
Program output: 8750.00
The fee is $8,750.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "8750.00", "printed": "8750.00", "notation": null} |
nlprog_det-setting-0070799 | <|start|><|user|>
Each storage box holds 24 files. How many boxes are needed for 670 files?<|eot|>
<|assistant|>
```python
import math
files = 670
per_box = 24
boxes = math.ceil(files / per_box) # 28
print(boxes)
```
stdout — 28
28 boxes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each storage box holds 24 files. How many boxes are needed for 670 files?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 670\nper_box = 24\nboxes = math.ceil(files / per_box) # 28\nprint(boxes)\n```\nstdout — 28\n\n28 boxes are needed."
}
... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "28", "printed": "28", "notation": null} |
nlprog_det-setting-0070800 | <|start|><|system|>
Tools (call with JSON):
{"name": "calc", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|>
<|user|>
Divide 102 items among 4 groups ... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n{\"name\": \"calc\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"progra... | nlprog_det | setting | original | null | deterministic | [] | [] | 231 | {"gold": "25 each, 2 left over", "printed": "25 each, 2 left over", "notation": null} |
nlprog_det-setting-0070801 | <|start|><|user|>
What percentage of $10,000 is $3,400?<|eot|>
<|assistant|>
```python
budget = 10000
spent = 3400
percent = spent / budget * 100 # 34.0
print(round(percent, 1))
```
(Program output: 34.0)
34.0% has been spent.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What percentage of $10,000 is $3,400?"
},
{
"role": "assistant",
"content": "```python\nbudget = 10000\nspent = 3400\npercent = spent / budget * 100 # 34.0\nprint(round(percent, 1))\n```\n(Program output: 34.0)\n\n34.0% has been spent."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "34.0", "printed": "34.0", "notation": null} |
nlprog_det-setting-0070802 | At a 5% tax rate, what is the tax on $299.73?
One way, in code:
```python
price = 299.73
tax_rate = 5 / 100 # 0.05
tax = price * tax_rate # 14.986500000000001
print(f"{tax:.2f}")
```
Printed: 14.99
$14.99 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "14.99", "printed": "14.99", "notation": null} |
nlprog_det-setting-0070803 | Express 61 hours in days and hours.
The computation:
```python
hours = 61
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
The printout reads 2 days and 13 hours.
That is 2 days and 13 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "2 days and 13 hours", "printed": "2 days and 13 hours", "notation": null} |
nlprog_det-setting-0070804 | How many meters are in 33.9 kilometers?
Written as code:
```python
km = 33.9
meters = km * 1000
print(round(meters))
```
Executed, it shows: 33900
33,900 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "33900", "printed": "33900", "notation": null} |
nlprog_det-setting-0070805 | A car travels 220 miles in 2.5 hours. What is its average speed in miles per hour?
It averages 88 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "88", "printed": "88", "notation": null} |
nlprog_det-setting-0070806 | <|start|><|user|>
Goods bought on June 19, 2018 carry a 6-month warranty. When does it expire?<|eot|>
<|assistant|>
```python
from datetime import date
start = date(2018, 6, 19)
months = 6
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isof... | chat | [
{
"role": "user",
"content": "Goods bought on June 19, 2018 carry a 6-month warranty. When does it expire?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nstart = date(2018, 6, 19)\nmonths = 6\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(sta... | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "2018-12-19", "printed": "2018-12-19", "notation": null} |
nlprog_det-setting-0070807 | Fixed costs are $6,000. Each unit sells for $15 and costs $9 to make. How many units must be sold to break even?
Script:
```python
import math
fixed = 6000
price = 15
variable = 9
units = math.ceil(fixed / (price - variable)) # 1000
print(units)
```
Printed — 1000
Break-even is 1000 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0070808 | What commission does Tobias make on $83,060 in sales at 2%?
Python:
```python
sales = 83060
rate = 2 / 100 # 0.02
commission = sales * rate # 1661.2
print(f"{commission:.2f}")
```
Result: 1661.20
Tobias earns $1,661.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "1661.20", "printed": "1661.20", "notation": null} |
nlprog_det-setting-0070809 | <|start|><|user|>
After an initial $2,000, the remainder of a $24,000 grant is paid in 3 equal parts. What is each part?<|eot|>
<|assistant|>
```python
grant = 24000
up_front = 2000
installments = 3
each = (grant - up_front) / installments # 7333.333333333333
print(f"{each:.2f}")
```
Output — 7333.33
$7,333.33 per in... | chat | [
{
"role": "user",
"content": "After an initial $2,000, the remainder of a $24,000 grant is paid in 3 equal parts. What is each part?"
},
{
"role": "assistant",
"content": "```python\ngrant = 24000\nup_front = 2000\ninstallments = 3\neach = (grant - up_front) / installments # 7333.333333333333\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "7333.33", "printed": "7333.33", "notation": null} |
nlprog_det-setting-0070810 | <|start|><|user|>
With 10% off, what does a $120 jacket cost?<|eot|>
<|assistant|>
```python
price = 120
discount = 10 / 100 # 0.1
sale_price = price * (1 - discount) # 108.0
print(f"{sale_price:.2f}")
```
Executing it gives 108.00.
The sale price is $108.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 10% off, what does a $120 jacket cost?"
},
{
"role": "assistant",
"content": "```python\nprice = 120\ndiscount = 10 / 100 # 0.1\nsale_price = price * (1 - discount) # 108.0\nprint(f\"{sale_price:.2f}\")\n```\nExecuting it gives 108.00.\n\nThe sale price is $1... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "108.00", "printed": "108.00", "notation": null} |
nlprog_det-setting-0070811 | Of a $5,000 budget, $400 has been spent. What percent is that?
```python
budget = 5000
spent = 400
percent = spent / budget * 100 # 8.0
print(round(percent, 1))
```
(Printed result: 8.0)
8.0% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "8.0", "printed": "8.0", "notation": null} |
nlprog_det-setting-0070812 | A bicycle helmet costs $300. It is 20% off. What is the sale price?
Let's compute it with Python.
```python
price = 300
discount = 20 / 100 # 0.2
sale_price = price * (1 - discount) # 240.0
print(f"{sale_price:.2f}")
```
Printed = 240.00
It costs $240.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "240.00", "printed": "240.00", "notation": null} |
nlprog_det-setting-0070813 | <|start|><|user|>
11 boxes hold 25 headsets each. After 8 are handed out, how many are left?<|eot|>
<|assistant|>
That leaves 267 headsets.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "11 boxes hold 25 headsets each. After 8 are handed out, how many are left?"
},
{
"role": "assistant",
"content": "That leaves 267 headsets."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "267", "printed": "267", "notation": null} |
nlprog_det-setting-0070814 | <|start|><|system|>
You help paralegals with routine tasks.<|eot|>
<|user|>
A 34 lb package ships at $8 base plus $2.50/lb. What is the charge?<|eot|>
<|assistant|>
```python
base = 8
per_pound = 2.5
weight = 34
cost = base + per_pound * weight # 93.0
print(f"{cost:.2f}")
```
Executed, it shows 93.00.
The charge is $... | chat | [
{
"role": "system",
"content": "You help paralegals with routine tasks."
},
{
"role": "user",
"content": "A 34 lb package ships at $8 base plus $2.50/lb. What is the charge?"
},
{
"role": "assistant",
"content": "```python\nbase = 8\nper_pound = 2.5\nweight = 34\ncost = base + per_po... | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "93.00", "printed": "93.00", "notation": null} |
nlprog_det-setting-0070815 | Starting with 1451 notebooks and using 17 per day, how many remain after 5 days?
Computing it:
```python
stock = 1451
per_day = 17
days = 5
left = stock - per_day * days # 1366
print(left)
```
stdout = 1366
1366 notebooks are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "1366", "printed": "1366", "notation": null} |
nlprog_det-setting-0070816 | <|start|><|user|>
Under a 33% contingency agreement, what fee is owed on a $25,000 award?<|eot|>
<|assistant|>
The fee is $8,250.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Under a 33% contingency agreement, what fee is owed on a $25,000 award?"
},
{
"role": "assistant",
"content": "The fee is $8,250.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "8250.00", "printed": "8250.00", "notation": null} |
nlprog_det-setting-0070817 | <|start|><|system|>
You are a teaching assistant.<|eot|>
<|user|>
434 files go into boxes of 15. How many boxes does that take?<|eot|>
<|assistant|>
```python
import math
files = 434
per_box = 15
boxes = math.ceil(files / per_box) # 29
print(boxes)
```
Output = 29
It takes 29 boxes.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a teaching assistant."
},
{
"role": "user",
"content": "434 files go into boxes of 15. How many boxes does that take?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 434\nper_box = 15\nboxes = math.ceil(files / per_box) ... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "29", "printed": "29", "notation": null} |
nlprog_det-setting-0070818 | <|start|><|user|>
Papers were served by mail on October 6, 2019. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
served = date(2019, 10, 6) # datetime.date(2019, 10, 6)
response_days = 21
mail_days = 3
due... | chat | [
{
"role": "user",
"content": "Papers were served by mail on October 6, 2019. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nserved = date(2019, 10, 6) # datetim... | nlprog_det | setting | original | null | deterministic | [] | [] | 179 | {"gold": "2019-10-30", "printed": "2019-10-30", "notation": null} |
nlprog_det-setting-0070819 | What does $2,000 grow to in 3 years at 3% annual compounding?
As a program:
principal = 2000
rate = 3 / 100 # 0.03
years = 3
value = principal * (1 + rate) ** years # 2185.454
print(f"{value:.2f}")
That prints 2185.45.
It is worth $2,185.45. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "2185.45", "printed": "2185.45", "notation": null} |
nlprog_det-setting-0070820 | A workshop lasted 5 hours and 23 minutes. How many minutes is that?
```python
hours = 5
minutes = 23
total_minutes = hours * 60 + minutes # 323
print(total_minutes)
```
It prints: 323
That is 323 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "323", "printed": "323", "notation": null} |
nlprog_det-setting-0070821 | How many weekdays (Monday to Friday) fall after September 27, 2028 up to and including November 3, 2028?
A short script:
```python
from datetime import date, timedelta
start = date(2028, 9, 27)
end = date(2028, 11, 3)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekday() < 5... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 155 | {"gold": "27", "printed": "27", "notation": null} |
nlprog_det-setting-0070822 | <|start|><|user|>
Someone born August 3, 1951 turns how old by January 26, 2027? Give the age in whole years.<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1951, 8, 3) # datetime.date(1951, 8, 3)
on = date(2027, 1, 26) # datetime.date(2027, 1, 26)
age = on.year - born.year - ((on.month, on.day)... | chat | [
{
"role": "user",
"content": "Someone born August 3, 1951 turns how old by January 26, 2027? Give the age in whole years."
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1951, 8, 3) # datetime.date(1951, 8, 3)\non = date(2027, 1, 26) # datetime.date(202... | nlprog_det | setting | original | null | deterministic | [] | [] | 160 | {"gold": "75", "printed": "75", "notation": null} |
nlprog_det-setting-0070823 | <|start|><|user|>
Fines run at $25 per day up to a maximum of $5,000. How much after 10 days?<|eot|>
<|assistant|>
```python
per_day = 25
days = 10
cap = 5000
fine = min(per_day * days, cap) # 250
print(fine)
```
Run it and it prints 250.
$250 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Fines run at $25 per day up to a maximum of $5,000. How much after 10 days?"
},
{
"role": "assistant",
"content": "```python\nper_day = 25\ndays = 10\ncap = 5000\nfine = min(per_day * days, cap) # 250\nprint(fine)\n```\nRun it and it prints 250.\n\n$250 is owed."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "250", "printed": "250", "notation": null} |
nlprog_det-setting-0070824 | Attendance was 28 out of 50. Express it as a percent.
In code:
```python
present = 28
total = 50
percent = present / total * 100 # 56.00000000000001
print(round(percent, 1))
```
The script prints: 56.0
Attendance was 56.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "56.0", "printed": "56.0", "notation": null} |
nlprog_det-setting-0070825 | Prorate $1,800 of monthly rent for 16 days of a 30-day month.
rent = 1800
days_in_month = 30
days_occupied = 16
prorated = rent * days_occupied / days_in_month # 960.0
print(f"{prorated:.2f}")
Run it and it prints 960.00.
The tenant owes $960.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "960.00", "printed": "960.00", "notation": null} |
nlprog_det-setting-0070826 | <|start|><|user|>
What is a 15% tip on a $47.77 bill?<|eot|>
<|assistant|>
```python
bill = 47.77
tip_rate = 15 / 100 # 0.15
tip = bill * tip_rate # 7.165500000000001
print(f"{tip:.2f}")
```
Execution result — 7.17
The tip is $7.17.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is a 15% tip on a $47.77 bill?"
},
{
"role": "assistant",
"content": "```python\nbill = 47.77\ntip_rate = 15 / 100 # 0.15\ntip = bill * tip_rate # 7.165500000000001\nprint(f\"{tip:.2f}\")\n```\nExecution result — 7.17\n\nThe tip is $7.17."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "7.17", "printed": "7.17", "notation": null} |
nlprog_det-setting-0070827 | <|start|><|user|>
Count 45 days forward from October 17, 2027. What date is that?<|eot|>
<|assistant|>
from datetime import date, timedelta
start = date(2027, 10, 17) # datetime.date(2027, 10, 17)
end = start + timedelta(days=45) # datetime.date(2027, 12, 1)
print(end.isoformat())
(Run result: 2027-12... | chat | [
{
"role": "user",
"content": "Count 45 days forward from October 17, 2027. What date is that?"
},
{
"role": "assistant",
"content": " from datetime import date, timedelta\n start = date(2027, 10, 17) # datetime.date(2027, 10, 17)\n end = start + timedelta(days=45) # datetime.date(2027... | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "2027-12-01", "printed": "2027-12-01", "notation": null} |
nlprog_det-setting-0070828 | <|start|><|system|>
You have access to these functions:
[{"name": "eval_python", "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|>
What ... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"eval_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code... | nlprog_det | setting | original | null | deterministic | [] | [] | 235 | {"gold": "11255.09", "printed": "11255.09", "notation": null} |
nlprog_det-setting-0070829 | What is a 15% tip on a $62.46 bill?
Programmatically:
```python
bill = 62.46
tip_rate = 15 / 100 # 0.15
tip = bill * tip_rate # 9.369
print(f"{tip:.2f}")
```
Execution prints 9.37, as expected.
The tip is $9.37. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "9.37", "printed": "9.37", "notation": null} |
nlprog_det-setting-0070830 | <|start|><|user|>
At 50 miles per hour, how many minutes does a 75-mile trip take?<|eot|>
<|assistant|>
```python
distance = 75
speed = 50
minutes = distance / speed * 60 # 90.0
print(round(minutes))
```
Output of the run — 90
The trip takes 90 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At 50 miles per hour, how many minutes does a 75-mile trip take?"
},
{
"role": "assistant",
"content": "```python\ndistance = 75\nspeed = 50\nminutes = distance / speed * 60 # 90.0\nprint(round(minutes))\n```\nOutput of the run — 90\n\nThe trip takes 90 minutes."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "90", "printed": "90", "notation": null} |
nlprog_det-setting-0070831 | How long, in days, is it from February 14, 2026 until November 6, 2026?
Python does the arithmetic:
from datetime import date
first = date(2026, 2, 14) # datetime.date(2026, 2, 14)
second = date(2026, 11, 6) # datetime.date(2026, 11, 6)
print((second - first).days)
It outputs: 265
There are 265 days... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "265", "printed": "265", "notation": null} |
nlprog_det-setting-0070832 | Copies cost $15 plus $0.10 for each page beyond 20. How much for 74 pages?
Translated to Python:
pages = 74
base = 15
per_page = 0.1
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page
print(f"{cost:.2f}")
Printed — 20.40
The total is $20.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "20.40", "printed": "20.40", "notation": null} |
nlprog_det-setting-0070833 | <|start|><|user|>
A trial runs from June 4, 2018 to June 7, 2018, counting both days. How many calendar days is that?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2018, 6, 4) # datetime.date(2018, 6, 4)
last = date(2018, 6, 7) # datetime.date(2018, 6, 7)
days = (last - first).days + 1 # 4
pr... | chat | [
{
"role": "user",
"content": "A trial runs from June 4, 2018 to June 7, 2018, counting both days. How many calendar days is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2018, 6, 4) # datetime.date(2018, 6, 4)\nlast = date(2018, 6, 7) # datetim... | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0070835 | 4 clients win $48,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?
Written as code:
```python
award = 48000
fee = award * 40 / 100 # 19200.0
remaining = award - fee # 28800.0
per_client = remaining / 4 # 7200.0
print(f"{per_client:.2f}")
```
# result: 7200.00
Each share is $... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "7200.00", "printed": "7200.00", "notation": null} |
nlprog_det-setting-0070836 | <|start|><|system|>
You are a puzzle helper.<|eot|>
<|user|>
A 19 × 13 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?<|eot|>
<|assistant|>
```python
import math
length = 19
width = 13
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 62
print(tiles)
```
Output of the run — 62
62 ti... | chat | [
{
"role": "system",
"content": "You are a puzzle helper."
},
{
"role": "user",
"content": "A 19 × 13 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 19\nwidth = 13\ntile = 2\ntiles = math.... | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "62", "printed": "62", "notation": null} |
nlprog_det-setting-0070837 | Express 353 hours in days and hours.
A short script:
```python
hours = 353
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
It outputs 14 days and 17 hours.
353 hours is 14 days and 17 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "14 days and 17 hours", "printed": "14 days and 17 hours", "notation": null} |
nlprog_det-setting-0070838 | Split $1,016 between Priya and Viktor in the ratio 3 to 5. What is Priya's share?
Priya's share is $381. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "381", "printed": "381", "notation": null} |
nlprog_det-setting-0070839 | What percentage of $5,000 is $3,800?
As Python:
```python
budget = 5000
spent = 3800
percent = spent / budget * 100 # 76.0
print(round(percent, 1))
```
Result = 76.0
That is 76.0% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "76.0", "printed": "76.0", "notation": null} |
nlprog_det-setting-0070840 | At $25.42 an hour, what does 16 hours of work pay?
Python:
rate = 25.42
hours = 16
earnings = rate * hours # 406.72
print(f"{earnings:.2f}")
Executing it gives 406.72.
The pay is $406.72. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "406.72", "printed": "406.72", "notation": null} |
nlprog_det-setting-0070841 | A $1,500 security deposit has deductions of $200. How much is refunded?
```python
deposit = 1500
deductions = [200]
refund = deposit - sum(deductions) # 1300
print(refund)
```
The script prints 1300, as expected.
The refund is $1,300. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "1300", "printed": "1300", "notation": null} |
nlprog_det-setting-0070842 | Fines run at $250 per day up to a maximum of $1,000. How much after 33 days?
The fine is $1,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0070844 | <|start|><|user|>
To read 531 pages in 9 days, how many pages per day are needed?<|eot|>
<|assistant|>
```python
pages = 531
days = 9
per_day = pages // days # 59
print(per_day)
```
# stdout: 59
That is 59 pages per day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "To read 531 pages in 9 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": "```python\npages = 531\ndays = 9\nper_day = pages // days # 59\nprint(per_day)\n```\n# stdout: 59\n\nThat is 59 pages per day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "59", "printed": "59", "notation": null} |
nlprog_det-setting-0070845 | Convert 3,540 USD to EUR at 1 USD = 1.35 EUR.
Python version:
```python
amount = 3540
rate = 1.35
converted = amount * rate # 4779.0
print(f"{converted:.2f}")
```
Result = 4779.00
It converts to 4,779.00 EUR. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "4779.00", "printed": "4779.00", "notation": null} |
nlprog_det-setting-0070846 | A trial runs from October 15, 2027 to October 31, 2027, counting both days. How many calendar days is that?
As a program:
```python
from datetime import date
first = date(2027, 10, 15) # datetime.date(2027, 10, 15)
last = date(2027, 10, 31) # datetime.date(2027, 10, 31)
days = (last - first).days + 1 # 17
print(day... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0070847 | <|start|><|user|>
On which weekday does August 13, 1999 fall?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(1999, 8, 13)
print(hearing.strftime("%A"))
```
Interpreter output: Friday
August 13, 1999 is a Friday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "On which weekday does August 13, 1999 fall?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(1999, 8, 13)\nprint(hearing.strftime(\"%A\"))\n```\nInterpreter output: Friday\n\nAugust 13, 1999 is a Friday."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "Friday", "printed": "Friday", "notation": null} |
nlprog_det-setting-0070848 | Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 44 hours?
The computation:
```python
rate = 20.0
hours = 44
regular = 40 * rate # 800.0
overtime = (hours - 40) * rate * 1.5 # 120.0
pay = regular + overtime # 920.0
print(f"{pay:.2f}")
```
The run gives 920.00.
The weekly pay i... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "920.00", "printed": "920.00", "notation": null} |
nlprog_det-setting-0070849 | <|start|><|user|>
At $0.67 per mile, what is the reimbursement for 87 miles?<|eot|>
<|assistant|>
```python
miles = 87
rate = 0.67
reimbursement = miles * rate # 58.290000000000006
print(f"{reimbursement:.2f}")
```
The code prints: 58.29
The reimbursement is $58.29.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $0.67 per mile, what is the reimbursement for 87 miles?"
},
{
"role": "assistant",
"content": "```python\nmiles = 87\nrate = 0.67\nreimbursement = miles * rate # 58.290000000000006\nprint(f\"{reimbursement:.2f}\")\n```\nThe code prints: 58.29\n\nThe reimbursemen... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "58.29", "printed": "58.29", "notation": null} |
nlprog_det-setting-0070850 | Straight-line depreciation: cost $30,000, salvage $2,000, 10 years. How much per year?
We write it as a program:
cost = 30000
salvage = 2000
years = 10
per_year = (cost - salvage) / years # 2800.0
print(f"{per_year:.2f}")
Result:
2800.00
$2,800.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "2800.00", "printed": "2800.00", "notation": null} |
nlprog_det-setting-0070851 | An invoice lists 19 cables at $6 each, plus 5% sales tax. What is the invoice total?
A few lines of Python do it:
```python
quantity = 19
unit_price = 6
subtotal = quantity * unit_price # 114
total = subtotal * (1 + 5 / 100) # 119.7
print(f"{total:.2f}")
```
Result:
119.70
The total with tax is $119.70. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "119.70", "printed": "119.70", "notation": null} |
nlprog_det-setting-0070852 | A hearing is set for March 2, 2011. What day of the week is that?
Set it up in Python:
```python
from datetime import date
hearing = date(2011, 3, 2) # datetime.date(2011, 3, 2)
print(hearing.strftime("%A"))
```
(Console output: Wednesday)
March 2, 2011 is a Wednesday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "Wednesday", "printed": "Wednesday", "notation": null} |
nlprog_det-setting-0070853 | Straight-line depreciation: cost $12,000, salvage $0, 3 years. How much per year?
Let's compute it with Python.
cost = 12000
salvage = 0
years = 3
per_year = (cost - salvage) / years # 4000.0
print(f"{per_year:.2f}")
The run gives: 4000.00
$4,000.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "4000.00", "printed": "4000.00", "notation": null} |
nlprog_det-setting-0070854 | 198 volunteers are split into 5 equal teams. How many are on each team, and how many are left over?
39 each, 3 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "39 each, 3 left over", "printed": "39 each, 3 left over", "notation": null} |
nlprog_det-setting-0070855 | <|start|><|user|>
After an initial $2,000, the remainder of a $30,000 grant is paid in 4 equal parts. What is each part?<|eot|>
<|assistant|>
grant = 30000
up_front = 2000
installments = 4
each = (grant - up_front) / installments # 7000.0
print(f"{each:.2f}")
The interpreter prints 7000.00.
Each i... | chat | [
{
"role": "user",
"content": "After an initial $2,000, the remainder of a $30,000 grant is paid in 4 equal parts. What is each part?"
},
{
"role": "assistant",
"content": " grant = 30000\n up_front = 2000\n installments = 4\n each = (grant - up_front) / installments # 7000.0\n pr... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "7000.00", "printed": "7000.00", "notation": null} |
nlprog_det-setting-0070856 | <|start|><|system|>
You help people work with structured data.<|eot|>
<|user|>
Sales went from 1,000 to 750. What is the percent change?<|eot|>
<|assistant|>
```python
old = 1000
new = 750
change = (new - old) / old * 100 # -25.0
print(round(change))
```
This prints -25.
The change is -25%.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help people work with structured data."
},
{
"role": "user",
"content": "Sales went from 1,000 to 750. What is the percent change?"
},
{
"role": "assistant",
"content": "```python\nold = 1000\nnew = 750\nchange = (new - old) / old * 100 # -25.0\np... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "-25", "printed": "-25", "notation": null} |
nlprog_det-setting-0070857 | 326 files go into boxes of 15. How many boxes does that take?
Here is a short program for it.
```python
import math
files = 326
per_box = 15
boxes = math.ceil(files / per_box) # 22
print(boxes)
```
Printed:
22
It takes 22 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0070858 | <|start|><|user|>
A library charges $0.10 per book per day late. What is the fine for 2 books that are 29 days late?<|eot|>
<|assistant|>
$5.80 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A library charges $0.10 per book per day late. What is the fine for 2 books that are 29 days late?"
},
{
"role": "assistant",
"content": "$5.80 is owed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "5.80", "printed": "5.80", "notation": null} |
nlprog_det-setting-0070859 | <|start|><|user|>
28 toner kits cost $6 apiece. With 8% tax added, what is the total?<|eot|>
<|assistant|>
The total with tax is $181.44.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "28 toner kits cost $6 apiece. With 8% tax added, what is the total?"
},
{
"role": "assistant",
"content": "The total with tax is $181.44."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "181.44", "printed": "181.44", "notation": null} |
nlprog_det-setting-0070860 | <|start|><|system|>
Functions:
[{"name": "math_engine", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
A hearing is set for October 10, 2003. Wh... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"math_engine\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}]"
... | nlprog_det | setting | original | null | deterministic | [] | [] | 209 | {"gold": "Friday", "printed": "Friday", "notation": null} |
nlprog_det-setting-0070861 | <|start|><|user|>
A 14 × 10 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?<|eot|>
<|assistant|>
```python
import math
length = 14
width = 10
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 35
print(tiles)
```
On running, it outputs: 35
35 tiles are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 14 × 10 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 14\nwidth = 10\ntile = 2\ntiles = math.ceil(length * width / (tile * tile)) # 35\nprint(tiles)\n```\nOn running... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "35", "printed": "35", "notation": null} |
nlprog_det-setting-0070862 | <|start|><|user|>
Under a 25% contingency agreement, what fee is owed on a $12,000 award?<|eot|>
<|assistant|>
The lawyer's fee comes to $3,000.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Under a 25% contingency agreement, what fee is owed on a $12,000 award?"
},
{
"role": "assistant",
"content": "The lawyer's fee comes to $3,000.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "3000.00", "printed": "3000.00", "notation": null} |
nlprog_det-setting-0070863 | Attendance was 34 out of 50. Express it as a percent.
The computation:
```python
present = 34
total = 50
percent = present / total * 100
print(round(percent, 1))
```
This prints 68.0, as expected.
Attendance was 68.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "68.0", "printed": "68.0", "notation": null} |
nlprog_det-setting-0070864 | <|start|><|system|>
You are a logic tutor.<|eot|>
<|user|>
From 1991 to 2002, how many years is that?<|eot|>
<|assistant|>
That is 11 years.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a logic tutor."
},
{
"role": "user",
"content": "From 1991 to 2002, how many years is that?"
},
{
"role": "assistant",
"content": "That is 11 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "11", "printed": "11", "notation": null} |
nlprog_det-setting-0070865 | <|start|><|user|>
Which is cheaper per unit: 12 for $7.32 (A) or 18 for $10.43 (B)?<|eot|>
<|assistant|>
B has the lower unit price.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Which is cheaper per unit: 12 for $7.32 (A) or 18 for $10.43 (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-0070866 | One can of paint covers 300 square feet. How many cans are needed for 266 square feet of wall?
Python, step by step:
```python
import math
area = 266
coverage = 300
cans = math.ceil(area / coverage) # 1
print(cans)
```
It prints: 1
1 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "1", "printed": "1", "notation": null} |
nlprog_det-setting-0070867 | A count moves from 200 to 240. By what percent did it change (use a minus sign for a drop)?
The Python version:
```python
old = 200
new = 240
change = (new - old) / old * 100 # 20.0
print(round(change))
```
(Result: 20)
It changed by 20%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0070868 | <|start|><|user|>
A hearing is set for September 2, 2014. What day of the week is that?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(2014, 9, 2) # datetime.date(2014, 9, 2)
print(hearing.strftime("%A"))
```
(Printed: Tuesday)
It is a Tuesday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hearing is set for September 2, 2014. What day of the week is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(2014, 9, 2) # datetime.date(2014, 9, 2)\nprint(hearing.strftime(\"%A\"))\n```\n(Printed: Tuesday)\n\nIt... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "Tuesday", "printed": "Tuesday", "notation": null} |
nlprog_det-setting-0070869 | <|start|><|user|>
If a 25-minute shift begins at 8:15 AM, what time does it finish?<|eot|>
<|assistant|>
```python
start = 8 * 60 + 15
end = start + 25
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
(Printed: 8:40 AM)
The shift finishes at 8:40 AM.<|eot|>
... | chat | [
{
"role": "user",
"content": "If a 25-minute shift begins at 8:15 AM, what time does it finish?"
},
{
"role": "assistant",
"content": "```python\nstart = 8 * 60 + 15\nend = start + 25\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}\")\n`... | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "8:40 AM", "printed": "8:40 AM", "notation": null} |
nlprog_det-setting-0070870 | Counting only Monday through Friday, how many business days are there after September 27, 2025 through October 22, 2025?
```python
from datetime import date, timedelta
start = date(2025, 9, 27)
end = date(2025, 10, 22)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekday() < ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0070871 | <|start|><|user|>
10 boxes hold 12 badges each. After 20 are handed out, how many are left?<|eot|>
<|assistant|>
```python
boxes = 10
per_box = 12
given_away = 20
left = boxes * per_box - given_away # 100
print(left)
```
When run, it prints: 100
That leaves 100 badges.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "10 boxes hold 12 badges each. After 20 are handed out, how many are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 10\nper_box = 12\ngiven_away = 20\nleft = boxes * per_box - given_away # 100\nprint(left)\n```\nWhen run, it prints: 100\n\nThat leav... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "100", "printed": "100", "notation": null} |
nlprog_det-setting-0070872 | A library charges $0.50 per book per day late. What is the fine for 1 books that are 9 days late?
Code:
per_day = 0.5
days_late = 9
books = 1
fine = per_day * days_late * books # 4.5
print(f"{fine:.2f}")
Result: 4.50
The fine is $4.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "4.50", "printed": "4.50", "notation": null} |
nlprog_det-setting-0070873 | What percentage of $8,000 is $7,600?
Python, step by step:
```python
budget = 8000
spent = 7600
percent = spent / budget * 100 # 95.0
print(round(percent, 1))
```
(Result: 95.0)
That is 95.0% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "95.0", "printed": "95.0", "notation": null} |
nlprog_det-setting-0070874 | A lease runs for 24 months at $2,100 per month. How much rent is paid over the whole term?
Python makes this quick:
monthly_rent = 2100
months = 24
total = monthly_rent * months # 50400
print(total)
# stdout: 50400
The rent over the term is $50,400. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "50400", "printed": "50400", "notation": null} |
nlprog_det-setting-0070875 | <|start|><|system|>
Keep answers short and correct.<|eot|>
<|user|>
With 20 rows of 16 chairs and 8 empty chairs, how many chairs are taken?<|eot|>
<|assistant|>
312 people are seated.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Keep answers short and correct."
},
{
"role": "user",
"content": "With 20 rows of 16 chairs and 8 empty chairs, how many chairs are taken?"
},
{
"role": "assistant",
"content": "312 people are seated."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 49 | {"gold": "312", "printed": "312", "notation": null} |
nlprog_det-setting-0070877 | One can of paint covers 350 square feet. How many cans are needed for 1328 square feet of wall?
```python
import math
area = 1328
coverage = 350
cans = math.ceil(area / coverage) # 4
print(cans)
```
# printed: 4
4 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0070878 | If a 5-year limitations period starts on December 7, 2014, when does it end?
A short script:
```python
from datetime import date
accrued = date(2014, 12, 7) # datetime.date(2014, 12, 7)
years = 5
expires = accrued.replace(year=accrued.year + years) # datetime.date(2019, 12, 7)
print(expires.isoformat())
```
That pri... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "2019-12-07", "printed": "2019-12-07", "notation": null} |
nlprog_det-setting-0070879 | 140 of 200 members attended. What percent attended?
Python, step by step:
```python
present = 140
total = 200
percent = present / total * 100 # 70.0
print(round(percent, 1))
```
(Run result: 70.0)
Attendance was 70.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "70.0", "printed": "70.0", "notation": null} |
nlprog_det-setting-0070881 | With 12 rows of 13 chairs and 27 empty chairs, how many chairs are taken?
Let's compute it with Python.
```python
rows = 12
per_row = 13
empty = 27
seated = rows * per_row - empty # 129
print(seated)
```
Printed result: 129
129 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "129", "printed": "129", "notation": null} |
nlprog_det-setting-0070882 | <|start|><|system|>
You help with homework problems.<|eot|>
<|user|>
Tobias lends $2,500 at 2% simple interest per year for 4 years. How much interest is earned?<|eot|>
<|assistant|>
```python
principal = 2500
rate = 2 / 100 # 0.02
years = 4
interest = principal * rate * years # 200.0
print(f"{interest:.2f}")
```
(Pr... | chat | [
{
"role": "system",
"content": "You help with homework problems."
},
{
"role": "user",
"content": "Tobias lends $2,500 at 2% simple interest per year for 4 years. How much interest is earned?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 2500\nrate = 2 / 100 # 0.02\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "200.00", "printed": "200.00", "notation": null} |
nlprog_det-setting-0070883 | What is 10 degrees Celsius in Fahrenheit?
It equals 50 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0070884 | <|start|><|system|>
Avoid unnecessary detail.<|eot|>
<|user|>
What is a 10% tip on a $51.62 bill?<|eot|>
<|assistant|>
```python
bill = 51.62
tip_rate = 10 / 100 # 0.1
tip = bill * tip_rate # 5.162
print(f"{tip:.2f}")
```
Result = 5.16
The tip is $5.16.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Avoid unnecessary detail."
},
{
"role": "user",
"content": "What is a 10% tip on a $51.62 bill?"
},
{
"role": "assistant",
"content": "```python\nbill = 51.62\ntip_rate = 10 / 100 # 0.1\ntip = bill * tip_rate # 5.162\nprint(f\"{tip:.2f}\")\n```\nResu... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "5.16", "printed": "5.16", "notation": null} |
nlprog_det-setting-0070885 | At an exchange rate of 1.27 USD per GBP, how many USD is 5,081 GBP?
Coded up:
```python
amount = 5081
rate = 1.27
converted = amount * rate
print(f"{converted:.2f}")
```
Console output: 6452.87
That is 6,452.87 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "6452.87", "printed": "6452.87", "notation": null} |
nlprog_det-setting-0070886 | <|start|><|user|>
A garage charges $2 an hour, never more than $18 a day. How much for 5 hours?<|eot|>
<|assistant|>
```python
rate = 2
hours = 5
daily_max = 18
cost = min(rate * hours, daily_max)
print(cost)
```
Console:
10
Parking costs $10.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A garage charges $2 an hour, never more than $18 a day. How much for 5 hours?"
},
{
"role": "assistant",
"content": "```python\nrate = 2\nhours = 5\ndaily_max = 18\ncost = min(rate * hours, daily_max)\nprint(cost)\n```\nConsole:\n10\n\nParking costs $10."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0070887 | <|start|><|user|>
Count the days between December 17, 2025 and July 14, 2026.<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2025, 12, 17) # datetime.date(2025, 12, 17)
second = date(2026, 7, 14) # datetime.date(2026, 7, 14)
print((second - first).days)
```
# output: 209
There are 209 days bet... | chat | [
{
"role": "user",
"content": "Count the days between December 17, 2025 and July 14, 2026."
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2025, 12, 17) # datetime.date(2025, 12, 17)\nsecond = date(2026, 7, 14) # datetime.date(2026, 7, 14)\nprint((secon... | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "209", "printed": "209", "notation": null} |
nlprog_det-setting-0070888 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"name": "python_exec", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}
{"name": ... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"python_exec\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python ... | nlprog_det | setting | original | null | deterministic | [] | [] | 277 | {"gold": "66", "printed": "66", "notation": null} |
nlprog_det-setting-0070889 | <|start|><|user|>
857 files go into boxes of 15. How many boxes does that take?<|eot|>
<|assistant|>
```python
import math
files = 857
per_box = 15
boxes = math.ceil(files / per_box) # 58
print(boxes)
```
The run gives 58, as expected.
It takes 58 boxes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "857 files go into boxes of 15. How many boxes does that take?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 857\nper_box = 15\nboxes = math.ceil(files / per_box) # 58\nprint(boxes)\n```\nThe run gives 58, as expected.\n\nIt takes 58 boxes."... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "58", "printed": "58", "notation": null} |
nlprog_det-setting-0070890 | One can of paint covers 250 square feet. How many cans are needed for 189 square feet of wall?
One way, in code:
```python
import math
area = 189
coverage = 250
cans = math.ceil(area / coverage) # 1
print(cans)
```
# program output: 1
Buy 1 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "1", "printed": "1", "notation": null} |
nlprog_det-setting-0070891 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
A count moves from 1,200 to 900. By what percent did it change (use a minus sign for a drop)?<|eot|>
<|assistant|>
It changed by -25%.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "A count moves from 1,200 to 900. By what percent did it change (use a minus sign for a drop)?"
},
{
"role": "assistant",
"content": "It changed by -25%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 59 | {"gold": "-25", "printed": "-25", "notation": null} |
nlprog_det-setting-0070892 | <|start|><|system|>
Respond clearly and to the point.<|eot|>
<|user|>
Walls total 342 sq ft and each can covers 250 sq ft. How many cans should be bought?<|eot|>
<|assistant|>
```python
import math
area = 342
coverage = 250
cans = math.ceil(area / coverage) # 2
print(cans)
```
When run, it prints 2, as expected.
Buy ... | chat | [
{
"role": "system",
"content": "Respond clearly and to the point."
},
{
"role": "user",
"content": "Walls total 342 sq ft and each can covers 250 sq ft. How many cans should be bought?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 342\ncoverage = 250\ncans = m... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "2", "printed": "2", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.