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-0056683 | <|start|><|system|>
You are a careful assistant.<|eot|>
<|user|>
Notice was given on August 6, 2025. The notice period is 14 days. When does it run out?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2025, 8, 6) # datetime.date(2025, 8, 6)
end = start + timedelta(days=14) # datetime.... | chat | [
{
"role": "system",
"content": "You are a careful assistant."
},
{
"role": "user",
"content": "Notice was given on August 6, 2025. The notice period is 14 days. When does it run out?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(... | nlprog_det | setting | original | null | deterministic | [] | [] | 159 | {"gold": "2025-08-20", "printed": "2025-08-20", "notation": null} |
nlprog_det-setting-0056684 | A shift starts at 4:00 PM and lasts 135 minutes. When does it end?
Python code:
```python
start = 16 * 60 + 0
end = start + 135
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
What it prints: 6:15 PM
The shift finishes at 6:15 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "6:15 PM", "printed": "6:15 PM", "notation": null} |
nlprog_det-setting-0056685 | Someone born April 27, 2001 turns how old by December 4, 2027? Give the age in whole years.
Programmatically:
```python
from datetime import date
born = date(2001, 4, 27) # datetime.date(2001, 4, 27)
on = date(2027, 12, 4) # datetime.date(2027, 12, 4)
age = on.year - born.year - ((on.month, on.day) < (born.month, bo... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 154 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0056686 | <|start|><|user|>
At an exchange rate of 0.92 EUR per USD, how many EUR is 4,526 USD?<|eot|>
<|assistant|>
It converts to 4,163.92 EUR.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At an exchange rate of 0.92 EUR per USD, how many EUR is 4,526 USD?"
},
{
"role": "assistant",
"content": "It converts to 4,163.92 EUR."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 48 | {"gold": "4163.92", "printed": "4163.92", "notation": null} |
nlprog_det-setting-0056687 | Papers were served by mail on February 8, 2018. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?
Programmatically:
```python
from datetime import date, timedelta
served = date(2018, 2, 8) # datetime.date(2018, 2, 8)
response_days = 14
mail_days = 3
due = served + timedelta... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 180 | {"gold": "2018-02-25", "printed": "2018-02-25", "notation": null} |
nlprog_det-setting-0056688 | Goods bought on September 16, 2022 carry a 6-month warranty. When does it expire?
One way, in code:
```python
from datetime import date
start = date(2022, 9, 16)
months = 6
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
# ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "2023-03-16", "printed": "2023-03-16", "notation": null} |
nlprog_det-setting-0056689 | <|start|><|user|>
A measure needs at least 60% of 46 votes. How many votes is that, rounded up?<|eot|>
<|assistant|>
```python
import math
voters = 46
needed = math.ceil(voters * 60 / 100) # 28
print(needed)
```
Python prints: 28
At least 28 votes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A measure needs at least 60% of 46 votes. How many votes is that, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 46\nneeded = math.ceil(voters * 60 / 100) # 28\nprint(needed)\n```\nPython prints: 28\n\nAt least 28 votes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "28", "printed": "28", "notation": null} |
nlprog_det-setting-0056690 | <|start|><|system|>
You have access to these functions:
[{"name": "python_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
Walls total 1045 sq ... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"python_exec\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 221 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0056691 | Under a 30% contingency agreement, what fee is owed on a $40,000 award?
Here's the code.
```python
recovery = 40000
rate = 30 / 100 # 0.3
fee = recovery * rate # 12000.0
print(f"{fee:.2f}")
```
# execution result: 12000.00
The lawyer's fee comes to $12,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "12000.00", "printed": "12000.00", "notation": null} |
nlprog_det-setting-0056692 | From 2007 to 2043, how many years is that?
Here is the program.
```python
start_year = 2007
end_year = 2043
print(end_year - start_year)
```
What it prints — 36
36 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 68 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0056693 | <|start|><|user|>
How many 1-foot square tiles cover a 18 ft by 15 ft floor (round up)?<|eot|>
<|assistant|>
```python
import math
length = 18
width = 15
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 270
print(tiles)
```
(Result: 270)
270 tiles are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many 1-foot square tiles cover a 18 ft by 15 ft floor (round up)?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 18\nwidth = 15\ntile = 1\ntiles = math.ceil(length * width / (tile * tile)) # 270\nprint(tiles)\n```\n(Result: 270)\n\n270 ... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "270", "printed": "270", "notation": null} |
nlprog_det-setting-0056694 | A 13 × 10 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?
33 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "33", "printed": "33", "notation": null} |
nlprog_det-setting-0056695 | <|start|><|user|>
How many weekdays (Monday to Friday) fall after October 5, 2019 up to and including October 21, 2019?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2019, 10, 5)
end = date(2019, 10, 21)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(da... | chat | [
{
"role": "user",
"content": "How many weekdays (Monday to Friday) fall after October 5, 2019 up to and including October 21, 2019?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2019, 10, 5)\nend = date(2019, 10, 21)\ncount = 0\nfor k in ran... | nlprog_det | setting | original | null | deterministic | [] | [] | 152 | {"gold": "11", "printed": "11", "notation": null} |
nlprog_det-setting-0056696 | <|start|><|user|>
How much sales tax is charged on a $364.09 purchase at 4%?<|eot|>
<|assistant|>
```python
price = 364.09
tax_rate = 4 / 100 # 0.04
tax = price * tax_rate # 14.5636
print(f"{tax:.2f}")
```
The program prints 14.56, as expected.
The tax is $14.56.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How much sales tax is charged on a $364.09 purchase at 4%?"
},
{
"role": "assistant",
"content": "```python\nprice = 364.09\ntax_rate = 4 / 100 # 0.04\ntax = price * tax_rate # 14.5636\nprint(f\"{tax:.2f}\")\n```\nThe program prints 14.56, as expected.\n\nThe tax ... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "14.56", "printed": "14.56", "notation": null} |
nlprog_det-setting-0056697 | <|start|><|user|>
What average speed covers 318 miles in 2 hours?<|eot|>
<|assistant|>
```python
distance = 318
hours = 2
speed = distance / hours # 159.0
print(round(speed))
```
The code prints: 159
It averages 159 miles per hour.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What average speed covers 318 miles in 2 hours?"
},
{
"role": "assistant",
"content": "```python\ndistance = 318\nhours = 2\nspeed = distance / hours # 159.0\nprint(round(speed))\n```\nThe code prints: 159\n\nIt averages 159 miles per hour."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "159", "printed": "159", "notation": null} |
nlprog_det-setting-0056699 | <|start|><|user|>
Kofi's scores were 60, 50, 96, 86 and 58. What is the average score?<|eot|>
<|assistant|>
scores = [60, 50, 96, 86, 58]
average = sum(scores) // len(scores) # 70
print(average)
Run output — 70
The mean is 70.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Kofi's scores were 60, 50, 96, 86 and 58. What is the average score?"
},
{
"role": "assistant",
"content": " scores = [60, 50, 96, 86, 58]\n average = sum(scores) // len(scores) # 70\n print(average)\nRun output — 70\n\nThe mean is 70."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "70", "printed": "70", "notation": null} |
nlprog_det-setting-0056700 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
Under a 33% contingency agreement, what fee is owed on a $90,000 award?<|eot|>
<|assistant|>
```python
recovery = 90000
rate = 33 / 100 # 0.33
fee = recovery * rate # 29700.0
print(f"{fee:.2f}")
```
The program prints 29700.00, as expected.
The fee is ... | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Under a 33% contingency agreement, what fee is owed on a $90,000 award?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 90000\nrate = 33 / 100 # 0.33\nfee = recovery * rate #... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "29700.00", "printed": "29700.00", "notation": null} |
nlprog_det-setting-0056701 | Prorate $1,500 of monthly rent for 9 days of a 31-day month.
We write it as a program:
rent = 1500
days_in_month = 31
days_occupied = 9
prorated = rent * days_occupied / days_in_month # 435.48387096774195
print(f"{prorated:.2f}")
Output of the run — 435.48
The prorated rent is $435.48. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "435.48", "printed": "435.48", "notation": null} |
nlprog_det-setting-0056703 | <|start|><|user|>
3 swims at 300 calories each burn how many calories in total?<|eot|>
<|assistant|>
```python
per_session = 300
sessions = 3
total = per_session * sessions # 900
print(total)
```
Result — 900
900 calories in total.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "3 swims at 300 calories each burn how many calories in total?"
},
{
"role": "assistant",
"content": "```python\nper_session = 300\nsessions = 3\ntotal = per_session * sessions # 900\nprint(total)\n```\nResult — 900\n\n900 calories in total."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0056704 | What is a 18% tip on a $112.55 bill?
A few lines of Python do it:
```python
bill = 112.55
tip_rate = 18 / 100 # 0.18
tip = bill * tip_rate # 20.259
print(f"{tip:.2f}")
```
The printout reads: 20.26
The tip is $20.26. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "20.26", "printed": "20.26", "notation": null} |
nlprog_det-setting-0056706 | Grace lends $8,000 at 6% simple interest per year for 6 years. How much interest is earned?
Let's compute it with Python.
```python
principal = 8000
rate = 6 / 100 # 0.06
years = 6
interest = principal * rate * years # 2880.0
print(f"{interest:.2f}")
```
When run, it prints 2880.00.
It earns $2,880.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "2880.00", "printed": "2880.00", "notation": null} |
nlprog_det-setting-0056707 | <|start|><|user|>
15 scissors cost $6 apiece. With 7% tax added, what is the total?<|eot|>
<|assistant|>
```python
quantity = 15
unit_price = 6
subtotal = quantity * unit_price # 90
total = subtotal * (1 + 7 / 100) # 96.30000000000001
print(f"{total:.2f}")
```
# out: 96.30
The total with tax is $96.30.<|eot|>
<|end|... | chat | [
{
"role": "user",
"content": "15 scissors cost $6 apiece. With 7% tax added, what is the total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 15\nunit_price = 6\nsubtotal = quantity * unit_price # 90\ntotal = subtotal * (1 + 7 / 100) # 96.30000000000001\nprint(f\"{total:.2f}\")\... | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "96.30", "printed": "96.30", "notation": null} |
nlprog_det-setting-0056708 | <|start|><|system|>
Be exact with numbers.<|eot|>
<|user|>
3 books come back 25 days late, at $0.25 a day each. What is the fine?<|eot|>
<|assistant|>
per_day = 0.25
days_late = 25
books = 3
fine = per_day * days_late * books # 18.75
print(f"{fine:.2f}")
What it prints: 18.75
The fine is $18.75.<|... | chat | [
{
"role": "system",
"content": "Be exact with numbers."
},
{
"role": "user",
"content": "3 books come back 25 days late, at $0.25 a day each. What is the fine?"
},
{
"role": "assistant",
"content": " per_day = 0.25\n days_late = 25\n books = 3\n fine = per_day * days_late... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "18.75", "printed": "18.75", "notation": null} |
nlprog_det-setting-0056709 | How many meters are in 74 kilometers?
Written as code:
```python
km = 74
meters = km * 1000 # 74000
print(round(meters))
```
# output: 74000
74,000 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "74000", "printed": "74000", "notation": null} |
nlprog_det-setting-0056710 | A measure needs at least 75% of 199 votes. How many votes is that, rounded up?
import math
voters = 199
needed = math.ceil(voters * 75 / 100) # 150
print(needed)
Shell output — 150
150 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 70 | {"gold": "150", "printed": "150", "notation": null} |
nlprog_det-setting-0056711 | A recipe for 8 people uses 200 grams of lentils. How many grams are needed for 3 people?
Computation in Python:
grams = 200
serves = 8
needed_for = 3
scaled = grams * needed_for // serves # 75
print(scaled)
Run it and it prints 75.
75 grams of lentils are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "75", "printed": "75", "notation": null} |
nlprog_det-setting-0056712 | Attendance was 14 out of 20. Express it as a percent.
Here's the code.
```python
present = 14
total = 20
percent = present / total * 100 # 70.0
print(round(percent, 1))
```
On running, it outputs: 70.0
70.0% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "70.0", "printed": "70.0", "notation": null} |
nlprog_det-setting-0056713 | Equal monthly payments repay $2,400 plus 8% simple yearly interest over 12 months. How large is a payment?
A few lines of Python do it:
```python
principal = 2400
annual_rate = 8 / 100 # 0.08
months = 12
interest = principal * annual_rate * months / 12 # 192.0
payment = (principal + interest) / months # 216.0
print... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "216.00", "printed": "216.00", "notation": null} |
nlprog_det-setting-0056714 | A 8% increase is applied to $1,250 monthly rent. What is the new amount?
Here is the program.
rent = 1250
increase = 8 / 100 # 0.08
new_rent = rent * (1 + increase) # 1350.0
print(f"{new_rent:.2f}")
Shell output — 1350.00
It rises to $1,350.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "1350.00", "printed": "1350.00", "notation": null} |
nlprog_det-setting-0056715 | <|start|><|user|>
A 325-mile drive at a steady 65 mph takes how many minutes?<|eot|>
<|assistant|>
```python
distance = 325
speed = 65
minutes = distance / speed * 60 # 300.0
print(round(minutes))
```
# run result: 300
300 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 325-mile drive at a steady 65 mph takes how many minutes?"
},
{
"role": "assistant",
"content": "```python\ndistance = 325\nspeed = 65\nminutes = distance / speed * 60 # 300.0\nprint(round(minutes))\n```\n# run result: 300\n\n300 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0056716 | Filing fees are $90 per document. What do 8 filings cost?
Programmatically:
```python
fee = 90
filings = 8
total = fee * filings # 720
print(total)
```
Running this gives: 720
The filings cost $720 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "720", "printed": "720", "notation": null} |
nlprog_det-setting-0056717 | Of a $8,000 budget, $2,000 has been spent. What percent is that?
```python
budget = 8000
spent = 2000
percent = spent / budget * 100 # 25.0
print(round(percent, 1))
```
It prints 25.0, as expected.
That is 25.0% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "25.0", "printed": "25.0", "notation": null} |
nlprog_det-setting-0056718 | Prorate $900 of monthly rent for 13 days of a 30-day month.
The prorated rent is $390.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "390.00", "printed": "390.00", "notation": null} |
nlprog_det-setting-0056719 | With 25% off, what does a $120 jacket cost?
Here's the code.
```python
price = 120
discount = 25 / 100
sale_price = price * (1 - discount)
print(f"{sale_price:.2f}")
```
Result:
90.00
It costs $90.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "90.00", "printed": "90.00", "notation": null} |
nlprog_det-setting-0056720 | Ana's scores were 74, 73, 97, 60, 67 and 85. What is the average score?
Python code:
```python
scores = [74, 73, 97, 60, 67, 85]
average = sum(scores) // len(scores) # 76
print(average)
```
stdout = 76
The mean is 76. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "76", "printed": "76", "notation": null} |
nlprog_det-setting-0056721 | <|start|><|system|>
Give the answer first.<|eot|>
<|user|>
Printing costs 8 cents a page. What does it cost to print 112 copies of a 51-page handout?<|eot|>
<|assistant|>
The job costs $456.96.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Give the answer first."
},
{
"role": "user",
"content": "Printing costs 8 cents a page. What does it cost to print 112 copies of a 51-page handout?"
},
{
"role": "assistant",
"content": "The job costs $456.96."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 55 | {"gold": "456.96", "printed": "456.96", "notation": null} |
nlprog_det-setting-0056722 | Diego buys 5 boxes of 24 envelopes each and gives away 20 envelopes. How many envelopes are left?
Written as code:
```python
boxes = 5
per_box = 24
given_away = 20
left = boxes * per_box - given_away # 100
print(left)
```
(Printed: 100)
100 envelopes are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "100", "printed": "100", "notation": null} |
nlprog_det-setting-0056723 | A claim accrued on January 21, 2024. The limitations period is 2 years. On what date does it expire?
Python does the arithmetic:
```python
from datetime import date
accrued = date(2024, 1, 21) # datetime.date(2024, 1, 21)
years = 2
expires = accrued.replace(year=accrued.year + years) # datetime.date(2026, 1, 21)
pri... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 155 | {"gold": "2026-01-21", "printed": "2026-01-21", "notation": null} |
nlprog_det-setting-0056724 | 12 hours of work at $180 an hour: what is the total charge?
The program:
```python
hours = 12
rate = 180
bill = hours * rate
print(f"{bill:.2f}")
```
Executed, it shows 2160.00.
That comes to $2,160.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "2160.00", "printed": "2160.00", "notation": null} |
nlprog_det-setting-0056725 | <|start|><|system|>
You are a careful assistant.<|eot|>
<|user|>
How many weekdays (Monday to Friday) fall after September 15, 2018 up to and including October 4, 2018?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2018, 9, 15)
end = date(2018, 10, 4)
count = 0
for k in range(1, (end ... | chat | [
{
"role": "system",
"content": "You are a careful assistant."
},
{
"role": "user",
"content": "How many weekdays (Monday to Friday) fall after September 15, 2018 up to and including October 4, 2018?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelt... | nlprog_det | setting | original | null | deterministic | [] | [] | 166 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0056726 | Monthly: $9. Annual: $60. What is saved per year by paying annually?
Python code:
```python
monthly = 9
yearly = 60
savings = monthly * 12 - yearly # 48
print(savings)
```
What it prints — 48
$48 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0056727 | <|start|><|user|>
Which is cheaper per unit: 6 for $7.71 (A) or 18 for $13.78 (B)?<|eot|>
<|assistant|>
pack_a = 7.71 / 6 # 1.285
pack_b = 13.78 / 18 # 0.7655555555555555
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
Run output: B
B has the lower unit price.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Which is cheaper per unit: 6 for $7.71 (A) or 18 for $13.78 (B)?"
},
{
"role": "assistant",
"content": " pack_a = 7.71 / 6 # 1.285\n pack_b = 13.78 / 18 # 0.7655555555555555\n cheaper = \"A\" if pack_a < pack_b else \"B\" # 'B'\n print(cheaper)\nRun o... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0056728 | <|start|><|user|>
Of a $10,000 budget, $500 has been spent. What percent is that?<|eot|>
<|assistant|>
```python
budget = 10000
spent = 500
percent = spent / budget * 100 # 5.0
print(round(percent, 1))
```
On running, it outputs: 5.0
That is 5.0% of the budget.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Of a $10,000 budget, $500 has been spent. What percent is that?"
},
{
"role": "assistant",
"content": "```python\nbudget = 10000\nspent = 500\npercent = spent / budget * 100 # 5.0\nprint(round(percent, 1))\n```\nOn running, it outputs: 5.0\n\nThat is 5.0% of the bu... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "5.0", "printed": "5.0", "notation": null} |
nlprog_det-setting-0056729 | <|start|><|system|>
You can call tools. Available tools:
{"name": "py_exec", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}
{"name": "fetch_fi... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"py_exec\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source ... | nlprog_det | setting | original | null | deterministic | [] | [] | 404 | {"gold": "19.82", "printed": "19.82", "notation": null} |
nlprog_det-setting-0056730 | Buying 5 chairs at $13 each, 1 flash drives at $23 each, 1 paper reams at $3 each, 2 folders at $27 each, someone hands over $150. What change comes back?
One way, in code:
```python
items = [(5, 13), (1, 23), (1, 3), (2, 27)]
total = sum(q * p for q, p in items) # 145
paid = 150
change = paid - total # 5
print(chan... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0056731 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
Convert 4 h 44 min (the length of a deposition) to minutes.<|eot|>
<|assistant|>
hours = 4
minutes = 44
total_minutes = hours * 60 + minutes # 284
print(total_minutes)
Out:
284
The deposition lasted 284 minutes.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "Convert 4 h 44 min (the length of a deposition) to minutes."
},
{
"role": "assistant",
"content": " hours = 4\n minutes = 44\n total_minutes = hours * 60 + minutes # 284... | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "284", "printed": "284", "notation": null} |
nlprog_det-setting-0056732 | <|start|><|system|>
Tools (call with JSON):
[{"name": "calculator", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "get_weather"... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"calculator\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}... | nlprog_det | setting | original | null | deterministic | [] | [] | 324 | {"gold": "216.67", "printed": "216.67", "notation": null} |
nlprog_det-setting-0056733 | <|start|><|system|>
Tools (call with JSON):
[{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "eval_python", "description": "Run Python code in a sandbox; the result... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"name\": \"eval_python\", \... | nlprog_det | setting | original | null | deterministic | [] | [] | 294 | {"gold": "81", "printed": "81", "notation": null} |
nlprog_det-setting-0056734 | An office budget of $8,000 has expenses of $2,955, $1,344, $3,286, $3,467. How much of the budget is left?
Here's the code.
```python
budget = 8000
expenses = [2955, 1344, 3286, 3467]
left = budget - sum(expenses) # -3052
print(left)
```
This prints -3052.
The remaining budget is -$3,052. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "-3052", "printed": "-3052", "notation": null} |
nlprog_det-setting-0056735 | At $22.15 an hour, what does 24 hours of work pay?
```python
rate = 22.15
hours = 24
earnings = rate * hours
print(f"{earnings:.2f}")
```
Shell output: 531.60
The pay is $531.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "531.60", "printed": "531.60", "notation": null} |
nlprog_det-setting-0056736 | The building opened in 2015. How many years had passed by 2019?
The program:
```python
start_year = 2015
end_year = 2019
print(end_year - start_year)
```
# result: 4
That is 4 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 68 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0056737 | Divide 264 items among 6 groups as evenly as possible with equal groups. How many per group, and how many remain?
The answer: 44 each, 0 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "44 each, 0 left over", "printed": "44 each, 0 left over", "notation": null} |
nlprog_det-setting-0056738 | Noor was born on January 27, 1971. How old is Noor on May 8, 2022?
Here's the code.
```python
from datetime import date
born = date(1971, 1, 27) # datetime.date(1971, 1, 27)
on = date(2022, 5, 8) # datetime.date(2022, 5, 8)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 51
print(age)
``... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "51", "printed": "51", "notation": null} |
nlprog_det-setting-0056739 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "eval_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"eval_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"descriptio... | nlprog_det | setting | original | null | deterministic | [] | [] | 349 | {"gold": "5.30", "printed": "5.30", "notation": null} |
nlprog_det-setting-0056740 | Express 190 hours in days and hours.
```python
hours = 190
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
The program outputs 7 days and 22 hours.
190 hours is 7 days and 22 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "7 days and 22 hours", "printed": "7 days and 22 hours", "notation": null} |
nlprog_det-setting-0056741 | <|start|><|system|>
You may call the tools below.
[{"name": "calculator", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
A recipe... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"calculator\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}},... | nlprog_det | setting | original | null | deterministic | [] | [] | 219 | {"gold": "1500", "printed": "1500", "notation": null} |
nlprog_det-setting-0056742 | How many weekdays (Monday to Friday) fall after October 24, 2020 up to and including December 2, 2020?
```python
from datetime import date, timedelta
start = date(2020, 10, 24)
end = date(2020, 12, 2)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekday() < 5:
count +... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "28", "printed": "28", "notation": null} |
nlprog_det-setting-0056743 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
What simple interest does $5,000 earn at 2% a year over 2 years?<|eot|>
<|assistant|>
```python
principal = 5000
rate = 2 / 100
years = 2
interest = principal * rate * years
print(f"{interest:.2f}")
```
The script prints 200.00, as expected.
Th... | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "What simple interest does $5,000 earn at 2% a year over 2 years?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 5000\nrate = 2 / 100\nyears = 2\ninterest = principa... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "200.00", "printed": "200.00", "notation": null} |
nlprog_det-setting-0056744 | A party has 21 days to respond to a motion served on April 3, 2026, with 3 days added because service was by mail. When is the response due?
Code:
```python
from datetime import date, timedelta
served = date(2026, 4, 3) # datetime.date(2026, 4, 3)
response_days = 21
mail_days = 3
due = served + timedelta(days=respons... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 176 | {"gold": "2026-04-27", "printed": "2026-04-27", "notation": null} |
nlprog_det-setting-0056745 | After a 25% fee is taken from a $72,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?
Let's compute it with Python.
```python
award = 72000
fee = award * 25 / 100 # 18000.0
remaining = award - fee # 54000.0
per_client = remaining / 3 # 18000.0
print(f"{per_client:.2f}")
```
The... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "18000.00", "printed": "18000.00", "notation": null} |
nlprog_det-setting-0056746 | Notice was given on March 1, 2023. The notice period is 10 days. When does it run out?
Let the code do the arithmetic:
```python
from datetime import date, timedelta
start = date(2023, 3, 1) # datetime.date(2023, 3, 1)
end = start + timedelta(days=10) # datetime.date(2023, 3, 11)
print(end.isoformat())
```
# stdout:... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "2023-03-11", "printed": "2023-03-11", "notation": null} |
nlprog_det-setting-0056747 | A service costs $15 a month or $162 a year. How much does the yearly plan save over 12 monthly payments?
Programmatically:
```python
monthly = 15
yearly = 162
savings = monthly * 12 - yearly # 18
print(savings)
```
On running, it outputs 18.
The annual plan saves $18. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0056748 | Flooring at $3/sq ft for a 15 ft × 6 ft room costs how much?
The flooring costs $270. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "270", "printed": "270", "notation": null} |
nlprog_det-setting-0056749 | A customer buys 5 flash drives at $7 each, 2 labels at $7 each and pays with $50. How much change is due?
Let the code do the arithmetic:
```python
items = [(5, 7), (2, 7)]
total = sum(q * p for q, p in items) # 49
paid = 50
change = paid - total # 1
print(change)
```
stdout — 1
The change is $1. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "1", "printed": "1", "notation": null} |
nlprog_det-setting-0056750 | <|start|><|system|>
You check calculations for an accounting team.<|eot|>
<|user|>
Split $875 between Tobias and Grace in the ratio 2 to 3. What is Tobias's share?<|eot|>
<|assistant|>
```python
total = 875
parts_a = 2
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b) # 350
print(share_a)
```
# execution re... | chat | [
{
"role": "system",
"content": "You check calculations for an accounting team."
},
{
"role": "user",
"content": "Split $875 between Tobias and Grace in the ratio 2 to 3. What is Tobias's share?"
},
{
"role": "assistant",
"content": "```python\ntotal = 875\nparts_a = 2\nparts_b = 3\ns... | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "350", "printed": "350", "notation": null} |
nlprog_det-setting-0056751 | A $6,000 loan carries 10% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?
A short script:
principal = 6000
annual_rate = 10 / 100 # 0.1
months = 24
interest = principal * annual_rate * months / 12 # 1200.0
payment = (princi... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "300.00", "printed": "300.00", "notation": null} |
nlprog_det-setting-0056752 | Express 97 hours in days and hours.
```python
hours = 97
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Console:
4 days and 1 hours
97 hours is 4 days and 1 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "4 days and 1 hours", "printed": "4 days and 1 hours", "notation": null} |
nlprog_det-setting-0056754 | <|start|><|system|>
Functions:
{"name": "calculator", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}
{"name": "get_weather", "description": "Get the weather for a city... | chat | [
{
"role": "system",
"content": "Functions:\n{\"name\": \"calculator\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}\n{\"name\":... | nlprog_det | setting | original | null | deterministic | [] | [] | 277 | {"gold": "735", "printed": "735", "notation": null} |
nlprog_det-setting-0056755 | A pack of 4 calendars sells for $180. What does each cost?
In Python:
```python
total = 180
count = 4
per_item = total // count # 45
print(per_item)
```
The interpreter prints: 45
The unit price is $45. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "45", "printed": "45", "notation": null} |
nlprog_det-setting-0056756 | A claim accrued on June 1, 2021. The limitations period is 4 years. On what date does it expire?
Computing it:
```python
from datetime import date
accrued = date(2021, 6, 1) # datetime.date(2021, 6, 1)
years = 4
expires = accrued.replace(year=accrued.year + years) # datetime.date(2025, 6, 1)
print(expires.isoformat(... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 150 | {"gold": "2025-06-01", "printed": "2025-06-01", "notation": null} |
nlprog_det-setting-0056757 | <|start|><|user|>
At $0.62 per mile, what is the reimbursement for 262 miles?<|eot|>
<|assistant|>
The reimbursement is $162.44.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $0.62 per mile, what is the reimbursement for 262 miles?"
},
{
"role": "assistant",
"content": "The reimbursement is $162.44."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "162.44", "printed": "162.44", "notation": null} |
nlprog_det-setting-0056758 | Scale 100 g of pasta from 2 servings to 12 servings.
Python code:
grams = 100
serves = 2
needed_for = 12
scaled = grams * needed_for // serves # 600
print(scaled)
Execution prints 600, as expected.
Use 600 g of pasta. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0056759 | Monthly: $15. Annual: $144. What is saved per year by paying annually?
monthly = 15
yearly = 144
savings = monthly * 12 - yearly # 36
print(savings)
Running it prints 36, as expected.
$36 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 73 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0056760 | Rafael's scores were 98, 75, 56, 50, 99 and 84. What is the average score?
```python
scores = [98, 75, 56, 50, 99, 84]
average = sum(scores) // len(scores) # 77
print(average)
```
Program output — 77
The mean is 77. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "77", "printed": "77", "notation": null} |
nlprog_det-setting-0056761 | Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 48 hours?
A Python solution:
```python
rate = 16.0
hours = 48
regular = 40 * rate # 640.0
overtime = (hours - 40) * rate * 1.5 # 192.0
pay = regular + overtime # 832.0
print(f"{pay:.2f}")
```
(Printed: 832.00)
The weekly pay is ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "832.00", "printed": "832.00", "notation": null} |
nlprog_det-setting-0056762 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "code_runner", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
If a 2-year limitations per... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"code_runner\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\... | nlprog_det | setting | original | null | deterministic | [] | [] | 244 | {"gold": "2017-10-27", "printed": "2017-10-27", "notation": null} |
nlprog_det-setting-0056763 | <|start|><|user|>
Each of Bruna's bike rides burns 250 calories. How many calories over 3 bike rides?<|eot|>
<|assistant|>
```python
per_session = 250
sessions = 3
total = per_session * sessions
print(total)
```
Python prints: 750
750 calories in total.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each of Bruna's bike rides burns 250 calories. How many calories over 3 bike rides?"
},
{
"role": "assistant",
"content": "```python\nper_session = 250\nsessions = 3\ntotal = per_session * sessions\nprint(total)\n```\nPython prints: 750\n\n750 calories in total."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "750", "printed": "750", "notation": null} |
nlprog_det-setting-0056764 | <|start|><|user|>
A board has 22 members. A majority is more than half. How many votes make a majority?<|eot|>
<|assistant|>
```python
members = 22
majority = members // 2 + 1 # 12
print(majority)
```
# printed result: 12
That is 12 members.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A board has 22 members. A majority is more than half. How many votes make a majority?"
},
{
"role": "assistant",
"content": "```python\nmembers = 22\nmajority = members // 2 + 1 # 12\nprint(majority)\n```\n# printed result: 12\n\nThat is 12 members."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0056765 | <|start|><|user|>
Convert 5,153 CHF to USD at 1 CHF = 1.12 USD.<|eot|>
<|assistant|>
```python
amount = 5153
rate = 1.12
converted = amount * rate # 5771.360000000001
print(f"{converted:.2f}")
```
What it prints: 5771.36
It converts to 5,771.36 USD.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 5,153 CHF to USD at 1 CHF = 1.12 USD."
},
{
"role": "assistant",
"content": "```python\namount = 5153\nrate = 1.12\nconverted = amount * rate # 5771.360000000001\nprint(f\"{converted:.2f}\")\n```\nWhat it prints: 5771.36\n\nIt converts to 5,771.36 USD."
}... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "5771.36", "printed": "5771.36", "notation": null} |
nlprog_det-setting-0056766 | <|start|><|user|>
A 24-month warranty starts on June 11, 2027. On what date does it end?<|eot|>
<|assistant|>
```python
from datetime import date
start = date(2027, 6, 11)
months = 24
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat... | chat | [
{
"role": "user",
"content": "A 24-month warranty starts on June 11, 2027. On what date does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nstart = date(2027, 6, 11)\nmonths = 24\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(start.ye... | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "2029-06-11", "printed": "2029-06-11", "notation": null} |
nlprog_det-setting-0056767 | <|start|><|user|>
Printing costs 10 cents a page. What does it cost to print 76 copies of a 57-page handout?<|eot|>
<|assistant|>
```python
pages = 57
copies = 76
cost_per_page = 0.1
cost = pages * copies * cost_per_page # 433.20000000000005
print(f"{cost:.2f}")
```
That prints 433.20.
Printing costs $433.20.<|eot|>
... | chat | [
{
"role": "user",
"content": "Printing costs 10 cents a page. What does it cost to print 76 copies of a 57-page handout?"
},
{
"role": "assistant",
"content": "```python\npages = 57\ncopies = 76\ncost_per_page = 0.1\ncost = pages * copies * cost_per_page # 433.20000000000005\nprint(f\"{cost:.2f... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "433.20", "printed": "433.20", "notation": null} |
nlprog_det-setting-0056768 | Convert 5,928 EUR to USD at 1 EUR = 1.35 USD.
Let's compute it with Python.
```python
amount = 5928
rate = 1.35
converted = amount * rate # 8002.8
print(f"{converted:.2f}")
```
The interpreter prints 8002.80.
That is 8,002.80 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "8002.80", "printed": "8002.80", "notation": null} |
nlprog_det-setting-0056769 | A workshop lasted 4 hours and 11 minutes. How many minutes is that?
Here's the code.
```python
hours = 4
minutes = 11
total_minutes = hours * 60 + minutes # 251
print(total_minutes)
```
It outputs: 251
That is 251 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "251", "printed": "251", "notation": null} |
nlprog_det-setting-0056770 | <|start|><|system|>
You are a math tutor.<|eot|>
<|user|>
How many whole days and leftover hours are in 50 hours?<|eot|>
<|assistant|>
```python
hours = 50
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Out: 2 days and 2 hours
50 hours is 2 days and 2 hours.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a math tutor."
},
{
"role": "user",
"content": "How many whole days and leftover hours are in 50 hours?"
},
{
"role": "assistant",
"content": "```python\nhours = 50\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "2 days and 2 hours", "printed": "2 days and 2 hours", "notation": null} |
nlprog_det-setting-0056771 | <|start|><|user|>
Goran buys 9 boxes of 24 hard drives each and gives away 9 hard drives. How many hard drives are left?<|eot|>
<|assistant|>
```python
boxes = 9
per_box = 24
given_away = 9
left = boxes * per_box - given_away # 207
print(left)
```
The code prints 207.
207 hard drives are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Goran buys 9 boxes of 24 hard drives each and gives away 9 hard drives. How many hard drives are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 9\nper_box = 24\ngiven_away = 9\nleft = boxes * per_box - given_away # 207\nprint(left)\n```\nThe code p... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "207", "printed": "207", "notation": null} |
nlprog_det-setting-0056772 | A meal costs $75.38. How much is a 10% tip?
We can compute it in Python.
```python
bill = 75.38
tip_rate = 10 / 100 # 0.1
tip = bill * tip_rate # 7.538
print(f"{tip:.2f}")
```
The printout reads: 7.54
Leave $7.54. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "7.54", "printed": "7.54", "notation": null} |
nlprog_det-setting-0056773 | <|start|><|system|>
Show working only when it helps.<|eot|>
<|user|>
The landlord deducts $45 from a $1,000 deposit. What is returned to the tenant?<|eot|>
<|assistant|>
```python
deposit = 1000
deductions = [45]
refund = deposit - sum(deductions) # 955
print(refund)
```
Run result — 955
The refund is $955.<|eot|>
<|... | chat | [
{
"role": "system",
"content": "Show working only when it helps."
},
{
"role": "user",
"content": "The landlord deducts $45 from a $1,000 deposit. What is returned to the tenant?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 1000\ndeductions = [45]\nrefund = deposit - s... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "955", "printed": "955", "notation": null} |
nlprog_det-setting-0056774 | 38 ink cartridges cost $24 apiece. With 6% tax added, what is the total?
```python
quantity = 38
unit_price = 24
subtotal = quantity * unit_price # 912
total = subtotal * (1 + 6 / 100) # 966.72
print(f"{total:.2f}")
```
That prints 966.72.
The total with tax is $966.72. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "966.72", "printed": "966.72", "notation": null} |
nlprog_det-setting-0056775 | A shift runs from 7:42 AM to 8:44 AM. How long is it in minutes?
A few lines of Python do it:
```python
start = 7 * 60 + 42 # 462
end = 8 * 60 + 44 # 524
print(end - start)
```
Printed result — 62
It is 62 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "62", "printed": "62", "notation": null} |
nlprog_det-setting-0056776 | A 8% increase is applied to $1,250 monthly rent. What is the new amount?
rent = 1250
increase = 8 / 100 # 0.08
new_rent = rent * (1 + increase) # 1350.0
print(f"{new_rent:.2f}")
The printout reads: 1350.00
The new rent is $1,350.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "1350.00", "printed": "1350.00", "notation": null} |
nlprog_det-setting-0056777 | A hearing starts at 2:20 PM and lasts 25 minutes. When does it end?
Script:
start = 14 * 60 + 20
end = start + 25
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
# run result: 2:45 PM
It ends at 2:45 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "2:45 PM", "printed": "2:45 PM", "notation": null} |
nlprog_det-setting-0056778 | A claim accrued on December 6, 2018. The limitations period is 4 years. On what date does it expire?
The period expires on December 6, 2022. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "2022-12-06", "printed": "2022-12-06", "notation": null} |
nlprog_det-setting-0056779 | <|start|><|user|>
Meals are $69 per day and lodging $140 per night. What is the allowance for 7 days and 6 nights?<|eot|>
<|assistant|>
days = 7
meal_rate = 69
lodging_rate = 140
nights = days - 1 # 6
total = days * meal_rate + nights * lodging_rate # 1323
print(total)
Printed = 1323
That com... | chat | [
{
"role": "user",
"content": "Meals are $69 per day and lodging $140 per night. What is the allowance for 7 days and 6 nights?"
},
{
"role": "assistant",
"content": " days = 7\n meal_rate = 69\n lodging_rate = 140\n nights = days - 1 # 6\n total = days * meal_rate + nights * lodg... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "1323", "printed": "1323", "notation": null} |
nlprog_det-setting-0056780 | <|start|><|system|>
Functions:
[{"name": "interpreter", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "fetch_filing", "description": "Fetch an SEC filing ... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"interpreter\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\"]}}, {\"nam... | nlprog_det | setting | original | null | deterministic | [] | [] | 411 | {"gold": "350.00", "printed": "350.00", "notation": null} |
nlprog_det-setting-0056781 | A car travels 374 miles in 1 hours. What is its average speed in miles per hour?
Here's the code.
```python
distance = 374
hours = 1
speed = distance / hours # 374.0
print(round(speed))
```
# stdout: 374
The average speed is 374 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "374", "printed": "374", "notation": null} |
nlprog_det-setting-0056782 | <|start|><|user|>
A count moves from 2,500 to 3,000. By what percent did it change (use a minus sign for a drop)?<|eot|>
<|assistant|>
```python
old = 2500
new = 3000
change = (new - old) / old * 100 # 20.0
print(round(change))
```
The run gives 20, as expected.
The change is 20%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A count moves from 2,500 to 3,000. By what percent did it change (use a minus sign for a drop)?"
},
{
"role": "assistant",
"content": "```python\nold = 2500\nnew = 3000\nchange = (new - old) / old * 100 # 20.0\nprint(round(change))\n```\nThe run gives 20, as expect... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0056783 | What does $10,000 grow to in 5 years at 3% annual compounding?
A few lines of Python do it:
```python
principal = 10000
rate = 3 / 100
years = 5
value = principal * (1 + rate) ** years
print(f"{value:.2f}")
```
The script prints 11592.74.
It is worth $11,592.74. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "11592.74", "printed": "11592.74", "notation": null} |
nlprog_det-setting-0056784 | <|start|><|system|>
You check calculations for an accounting team.<|eot|>
<|user|>
Walls total 782 sq ft and each can covers 400 sq ft. How many cans should be bought?<|eot|>
<|assistant|>
```python
import math
area = 782
coverage = 400
cans = math.ceil(area / coverage) # 2
print(cans)
```
Run output: 2
Buy 2 cans.<|... | chat | [
{
"role": "system",
"content": "You check calculations for an accounting team."
},
{
"role": "user",
"content": "Walls total 782 sq ft and each can covers 400 sq ft. How many cans should be bought?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 782\ncoverage = ... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0056785 | <|start|><|user|>
Fixed costs are $2,500. Each unit sells for $15 and costs $7 to make. How many units must be sold to break even?<|eot|>
<|assistant|>
import math
fixed = 2500
price = 15
variable = 7
units = math.ceil(fixed / (price - variable)) # 313
print(units)
(Result: 313)
Break-even is ... | chat | [
{
"role": "user",
"content": "Fixed costs are $2,500. Each unit sells for $15 and costs $7 to make. How many units must be sold to break even?"
},
{
"role": "assistant",
"content": " import math\n fixed = 2500\n price = 15\n variable = 7\n units = math.ceil(fixed / (price - variab... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "313", "printed": "313", "notation": null} |
nlprog_det-setting-0056786 | A pack of 25 notebooks sells for $1125. What does each cost?
Written as code:
total = 1125
count = 25
per_item = total // count # 45
print(per_item)
# console output: 45
Each one costs $45. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "45", "printed": "45", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.