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-0067242 | <|start|><|user|>
6 claimants share a $7,350 settlement equally. What is each share?<|eot|>
<|assistant|>
```python
settlement = 7350
parties = 6
share = settlement // parties # 1225
print(share)
```
Running it prints: 1225
Each party receives $1,225.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "6 claimants share a $7,350 settlement equally. What is each share?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 7350\nparties = 6\nshare = settlement // parties # 1225\nprint(share)\n```\nRunning it prints: 1225\n\nEach party receives $1,225."
}... | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "1225", "printed": "1225", "notation": null} |
nlprog_det-setting-0067243 | <|start|><|user|>
Copies cost $5 plus $0.25 for each page beyond 20. How much for 63 pages?<|eot|>
<|assistant|>
```python
pages = 63
base = 5
per_page = 0.25
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page # 15.75
print(f"{cost:.2f}")
```
That prints: 15.75
The copy costs $15.75.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Copies cost $5 plus $0.25 for each page beyond 20. How much for 63 pages?"
},
{
"role": "assistant",
"content": "```python\npages = 63\nbase = 5\nper_page = 0.25\nfree_pages = 20\ncost = base + max(0, pages - free_pages) * per_page # 15.75\nprint(f\"{cost:.2f}\")\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "15.75", "printed": "15.75", "notation": null} |
nlprog_det-setting-0067244 | How many meters are in 92.9 kilometers?
Python:
```python
km = 92.9
meters = km * 1000 # 92900.0
print(round(meters))
```
Printed:
92900
That is 92,900 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "92900", "printed": "92900", "notation": null} |
nlprog_det-setting-0067245 | With 30% off, what does a $250 jacket cost?
We write it as a program:
```python
price = 250
discount = 30 / 100 # 0.3
sale_price = price * (1 - discount) # 175.0
print(f"{sale_price:.2f}")
```
Python prints 175.00.
It costs $175.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "175.00", "printed": "175.00", "notation": null} |
nlprog_det-setting-0067246 | A party has 21 days to respond to a motion served on October 2, 2018, with 3 days added because service was by mail. When is the response due?
It is due October 26, 2018. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "2018-10-26", "printed": "2018-10-26", "notation": null} |
nlprog_det-setting-0067247 | A 6-month warranty starts on December 5, 2028. On what date does it end?
The Python version:
```python
from datetime import date
start = date(2028, 12, 5)
months = 6
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
Python pr... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 150 | {"gold": "2029-06-05", "printed": "2029-06-05", "notation": null} |
nlprog_det-setting-0067248 | <|start|><|system|>
Tools you may use:
{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}
{"name": "calculator", "description": "Runs a short Python snippet and returns what it prints.", "parameters... | chat | [
{
"role": "system",
"content": "Tools you may use:\n{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}\n{\"name\": \"calculator\", \"description\": \"Runs a sho... | nlprog_det | setting | original | null | deterministic | [] | [] | 301 | {"gold": "200", "printed": "200", "notation": null} |
nlprog_det-setting-0067250 | <|start|><|user|>
A 120-day notice period begins on November 11, 2024. On what date does it end?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2024, 11, 11) # datetime.date(2024, 11, 11)
end = start + timedelta(days=120) # datetime.date(2025, 3, 11)
print(end.isoformat())
```
Result... | chat | [
{
"role": "user",
"content": "A 120-day notice period begins on November 11, 2024. On what date does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2024, 11, 11) # datetime.date(2024, 11, 11)\nend = start + timedelta(days=120) # dat... | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "2025-03-11", "printed": "2025-03-11", "notation": null} |
nlprog_det-setting-0067251 | <|start|><|user|>
Fines run at $25 per day up to a maximum of $1,000. How much after 45 days?<|eot|>
<|assistant|>
```python
per_day = 25
days = 45
cap = 1000
fine = min(per_day * days, cap) # 1000
print(fine)
```
# printed: 1000
The fine is $1,000.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Fines run at $25 per day up to a maximum of $1,000. How much after 45 days?"
},
{
"role": "assistant",
"content": "```python\nper_day = 25\ndays = 45\ncap = 1000\nfine = min(per_day * days, cap) # 1000\nprint(fine)\n```\n# printed: 1000\n\nThe fine is $1,000."
}
... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0067252 | An invoice lists 16 file boxes at $4 each, plus 5% sales tax. What is the invoice total?
The total with tax is $67.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "67.20", "printed": "67.20", "notation": null} |
nlprog_det-setting-0067253 | Someone born January 11, 1982 turns how old by June 5, 2023? Give the age in whole years.
Python version:
from datetime import date
born = date(1982, 1, 11) # datetime.date(1982, 1, 11)
on = date(2023, 6, 5) # datetime.date(2023, 6, 5)
age = on.year - born.year - ((on.month, on.day) < (born.month, bo... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "41", "printed": "41", "notation": null} |
nlprog_det-setting-0067254 | 409 files go into boxes of 50. How many boxes does that take?
```python
import math
files = 409
per_box = 50
boxes = math.ceil(files / per_box) # 9
print(boxes)
```
The program prints 9.
It takes 9 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0067255 | A 8-day trip pays $74 a day for meals and $110 a night for lodging (7 nights). What is the total allowance?
Programmatically:
```python
days = 8
meal_rate = 74
lodging_rate = 110
nights = days - 1 # 7
total = days * meal_rate + nights * lodging_rate # 1362
print(total)
```
Run result: 1362
The allowance is $1,362. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "1362", "printed": "1362", "notation": null} |
nlprog_det-setting-0067256 | Of a $5,000 budget, $1,700 has been spent. What percent is that?
That is 34.0% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "34.0", "printed": "34.0", "notation": null} |
nlprog_det-setting-0067257 | Which is cheaper per unit: 8 for $6.40 (A) or 20 for $25.13 (B)?
Pack A is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0067258 | <|start|><|user|>
A water bill is $12 plus $3.50 per thousand gallons beyond the first 0 thousand. What is the bill for 3 thousand gallons?<|eot|>
<|assistant|>
```python
base = 12
rate = 3.5
used = 3
free = 0
bill = base + rate * max(0, used - free) # 22.5
print(f"{bill:.2f}")
```
Output — 22.50
The bill is $22.50.<... | chat | [
{
"role": "user",
"content": "A water bill is $12 plus $3.50 per thousand gallons beyond the first 0 thousand. What is the bill for 3 thousand gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 12\nrate = 3.5\nused = 3\nfree = 0\nbill = base + rate * max(0, used - free) # 22.5\np... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "22.50", "printed": "22.50", "notation": null} |
nlprog_det-setting-0067259 | One can of paint covers 250 square feet. How many cans are needed for 530 square feet of wall?
The program:
```python
import math
area = 530
coverage = 250
cans = math.ceil(area / coverage) # 3
print(cans)
```
(Program output: 3)
3 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0067261 | <|start|><|user|>
16 sticky pads cost $6 apiece. With 7% tax added, what is the total?<|eot|>
<|assistant|>
```python
quantity = 16
unit_price = 6
subtotal = quantity * unit_price
total = subtotal * (1 + 7 / 100)
print(f"{total:.2f}")
```
Output = 102.72
The invoice total is $102.72.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "16 sticky pads cost $6 apiece. With 7% tax added, what is the total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 16\nunit_price = 6\nsubtotal = quantity * unit_price\ntotal = subtotal * (1 + 7 / 100)\nprint(f\"{total:.2f}\")\n```\nOutput = 102.72\n\... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "102.72", "printed": "102.72", "notation": null} |
nlprog_det-setting-0067262 | A measure needs at least 60% of 109 votes. How many votes is that, rounded up?
Computation in Python:
```python
import math
voters = 109
needed = math.ceil(voters * 60 / 100) # 66
print(needed)
```
It outputs 66.
66 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "66", "printed": "66", "notation": null} |
nlprog_det-setting-0067263 | <|start|><|system|>
You are a logic tutor.<|eot|>
<|user|>
Counting the first and last day, how many days are there from January 18, 2026 through January 26, 2026?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2026, 1, 18) # datetime.date(2026, 1, 18)
last = date(2026, 1, 26) # datetime.date(2... | chat | [
{
"role": "system",
"content": "You are a logic tutor."
},
{
"role": "user",
"content": "Counting the first and last day, how many days are there from January 18, 2026 through January 26, 2026?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(... | nlprog_det | setting | original | null | deterministic | [] | [] | 156 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0067264 | How many days are there from December 28, 2018 to May 11, 2019?
One way, in code:
```python
from datetime import date
first = date(2018, 12, 28) # datetime.date(2018, 12, 28)
second = date(2019, 5, 11) # datetime.date(2019, 5, 11)
print((second - first).days)
```
Running this gives 134.
It is 134 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "134", "printed": "134", "notation": null} |
nlprog_det-setting-0067265 | <|start|><|user|>
With 25% off, what does a $45 backpack cost?<|eot|>
<|assistant|>
price = 45
discount = 25 / 100 # 0.25
sale_price = price * (1 - discount) # 33.75
print(f"{sale_price:.2f}")
Python prints: 33.75
The sale price is $33.75.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 25% off, what does a $45 backpack cost?"
},
{
"role": "assistant",
"content": " price = 45\n discount = 25 / 100 # 0.25\n sale_price = price * (1 - discount) # 33.75\n print(f\"{sale_price:.2f}\")\nPython prints: 33.75\n\nThe sale price is $33.75.... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "33.75", "printed": "33.75", "notation": null} |
nlprog_det-setting-0067266 | A room is 15 feet by 15 feet. Flooring costs $12 per square foot. What does it cost to floor the room?
It costs $2,700. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "2700", "printed": "2700", "notation": null} |
nlprog_det-setting-0067267 | A workshop lasted 5 hours and 49 minutes. How many minutes is that?
Let's compute it with Python.
```python
hours = 5
minutes = 49
total_minutes = hours * 60 + minutes # 349
print(total_minutes)
```
Shell output: 349
That is 349 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "349", "printed": "349", "notation": null} |
nlprog_det-setting-0067268 | The landlord deducts $200 from a $800 deposit. What is returned to the tenant?
As a program:
```python
deposit = 800
deductions = [200]
refund = deposit - sum(deductions)
print(refund)
```
Run result = 600
The refund is $600. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0067269 | Convert 80.1 km to meters.
Computation in Python:
```python
km = 80.1
meters = km * 1000 # 80100.0
print(round(meters))
```
This prints 80100.
80,100 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "80100", "printed": "80100", "notation": null} |
nlprog_det-setting-0067270 | <|start|><|user|>
How many of 93 votes make 60% (round up)?<|eot|>
<|assistant|>
```python
import math
voters = 93
needed = math.ceil(voters * 60 / 100) # 56
print(needed)
```
Running it prints: 56
At least 56 votes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many of 93 votes make 60% (round up)?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 93\nneeded = math.ceil(voters * 60 / 100) # 56\nprint(needed)\n```\nRunning it prints: 56\n\nAt least 56 votes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "56", "printed": "56", "notation": null} |
nlprog_det-setting-0067272 | 2 claimants share a $15,000 settlement equally. What is each share?
```python
settlement = 15000
parties = 2
share = settlement // parties # 7500
print(share)
```
Run result — 7500
Each party receives $7,500. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "7500", "printed": "7500", "notation": null} |
nlprog_det-setting-0067273 | <|start|><|user|>
What commission does Zainab make on $8,367 in sales at 4%?<|eot|>
<|assistant|>
```python
sales = 8367
rate = 4 / 100
commission = sales * rate
print(f"{commission:.2f}")
```
Out: 334.68
The commission is $334.68.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What commission does Zainab make on $8,367 in sales at 4%?"
},
{
"role": "assistant",
"content": "```python\nsales = 8367\nrate = 4 / 100\ncommission = sales * rate\nprint(f\"{commission:.2f}\")\n```\nOut: 334.68\n\nThe commission is $334.68."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "334.68", "printed": "334.68", "notation": null} |
nlprog_det-setting-0067275 | A penalty of $250 a day accrues, capped at $1,000. What is owed after 39 days?
As a program:
```python
per_day = 250
days = 39
cap = 1000
fine = min(per_day * days, cap) # 1000
print(fine)
```
Program output — 1000
$1,000 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0067276 | <|start|><|user|>
A 300-mile drive at a steady 50 mph takes how many minutes?<|eot|>
<|assistant|>
```python
distance = 300
speed = 50
minutes = distance / speed * 60 # 360.0
print(round(minutes))
```
Run result = 360
360 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 300-mile drive at a steady 50 mph takes how many minutes?"
},
{
"role": "assistant",
"content": "```python\ndistance = 300\nspeed = 50\nminutes = distance / speed * 60 # 360.0\nprint(round(minutes))\n```\nRun result = 360\n\n360 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "360", "printed": "360", "notation": null} |
nlprog_det-setting-0067277 | How many of 185 votes make 67% (round up)?
import math
voters = 185
needed = math.ceil(voters * 67 / 100) # 124
print(needed)
(Printed: 124)
At least 124 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 68 | {"gold": "124", "printed": "124", "notation": null} |
nlprog_det-setting-0067278 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|use... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python sourc... | nlprog_det | setting | original | null | deterministic | [] | [] | 218 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0067279 | Equipment costs $45,000, has a salvage value of $3,000, and a useful life of 10 years. What is the straight-line depreciation per year?
Python version:
```python
cost = 45000
salvage = 3000
years = 10
per_year = (cost - salvage) / years # 4200.0
print(f"{per_year:.2f}")
```
The program outputs: 4200.00
Depreciation ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "4200.00", "printed": "4200.00", "notation": null} |
nlprog_det-setting-0067280 | Sales went from 800 to 480. What is the percent change?
Coded up:
```python
old = 800
new = 480
change = (new - old) / old * 100 # -40.0
print(round(change))
```
Printed result: -40
It changed by -40%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "-40", "printed": "-40", "notation": null} |
nlprog_det-setting-0067281 | <|start|><|system|>
Tool definitions:
[{"name": "math_engine", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
Buying 6 ... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"math_engine\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \... | nlprog_det | setting | original | null | deterministic | [] | [] | 250 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0067283 | Fixed costs are $1,200. Each unit sells for $20 and costs $15 to make. How many units must be sold to break even?
Let the code do the arithmetic:
```python
import math
fixed = 1200
price = 20
variable = 15
units = math.ceil(fixed / (price - variable)) # 240
print(units)
```
Running this gives 240.
240 units are need... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "240", "printed": "240", "notation": null} |
nlprog_det-setting-0067284 | 45 of 80 members attended. What percent attended?
Program:
```python
present = 45
total = 80
percent = present / total * 100 # 56.25
print(round(percent, 1))
```
This prints 56.2, as expected.
Attendance was 56.2%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "56.2", "printed": "56.2", "notation": null} |
nlprog_det-setting-0067285 | <|start|><|user|>
From a $7,500 retainer, 3 hours at $250/hour have been drawn. What remains?<|eot|>
<|assistant|>
The remaining balance is $6,750.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From a $7,500 retainer, 3 hours at $250/hour have been drawn. What remains?"
},
{
"role": "assistant",
"content": "The remaining balance is $6,750."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "6750", "printed": "6750", "notation": null} |
nlprog_det-setting-0067286 | <|start|><|user|>
Convert 1,493 EUR to USD at 1 EUR = 0.74 USD.<|eot|>
<|assistant|>
```python
amount = 1493
rate = 0.74
converted = amount * rate # 1104.82
print(f"{converted:.2f}")
```
(Printed: 1104.82)
It converts to 1,104.82 USD.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 1,493 EUR to USD at 1 EUR = 0.74 USD."
},
{
"role": "assistant",
"content": "```python\namount = 1493\nrate = 0.74\nconverted = amount * rate # 1104.82\nprint(f\"{converted:.2f}\")\n```\n(Printed: 1104.82)\n\nIt converts to 1,104.82 USD."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "1104.82", "printed": "1104.82", "notation": null} |
nlprog_det-setting-0067287 | <|start|><|user|>
4 swims at 350 calories each burn how many calories in total?<|eot|>
<|assistant|>
```python
per_session = 350
sessions = 4
total = per_session * sessions # 1400
print(total)
```
It outputs 1400.
1400 calories in total.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "4 swims at 350 calories each burn how many calories in total?"
},
{
"role": "assistant",
"content": "```python\nper_session = 350\nsessions = 4\ntotal = per_session * sessions # 1400\nprint(total)\n```\nIt outputs 1400.\n\n1400 calories in total."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "1400", "printed": "1400", "notation": null} |
nlprog_det-setting-0067288 | 3 boxes hold 25 sticky pads each. After 7 are handed out, how many are left?
The computation:
```python
boxes = 3
per_box = 25
given_away = 7
left = boxes * per_box - given_away # 68
print(left)
```
It prints: 68
68 sticky pads are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "68", "printed": "68", "notation": null} |
nlprog_det-setting-0067289 | <|start|><|user|>
A recipe for 2 people uses 450 grams of flour. How many grams are needed for 10 people?<|eot|>
<|assistant|>
```python
grams = 450
serves = 2
needed_for = 10
scaled = grams * needed_for // serves # 2250
print(scaled)
```
Execution result — 2250
Use 2250 g of flour.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A recipe for 2 people uses 450 grams of flour. How many grams are needed for 10 people?"
},
{
"role": "assistant",
"content": "```python\ngrams = 450\nserves = 2\nneeded_for = 10\nscaled = grams * needed_for // serves # 2250\nprint(scaled)\n```\nExecution result — ... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "2250", "printed": "2250", "notation": null} |
nlprog_det-setting-0067291 | A measure needs at least 75% of 57 votes. How many votes is that, rounded up?
43 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 29 | {"gold": "43", "printed": "43", "notation": null} |
nlprog_det-setting-0067292 | <|start|><|user|>
Convert 3 h 21 min (the length of a film) to minutes.<|eot|>
<|assistant|>
```python
hours = 3
minutes = 21
total_minutes = hours * 60 + minutes # 201
print(total_minutes)
```
Out: 201
The film lasted 201 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 3 h 21 min (the length of a film) to minutes."
},
{
"role": "assistant",
"content": "```python\nhours = 3\nminutes = 21\ntotal_minutes = hours * 60 + minutes # 201\nprint(total_minutes)\n```\nOut: 201\n\nThe film lasted 201 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "201", "printed": "201", "notation": null} |
nlprog_det-setting-0067293 | A meal costs $194.51. How much is a 25% tip?
In code:
```python
bill = 194.51
tip_rate = 25 / 100 # 0.25
tip = bill * tip_rate # 48.6275
print(f"{tip:.2f}")
```
Printed result — 48.63
The tip is $48.63. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "48.63", "printed": "48.63", "notation": null} |
nlprog_det-setting-0067295 | <|start|><|user|>
Ivan earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 51-hour week?<|eot|>
<|assistant|>
```python
rate = 18.5
hours = 51
regular = 40 * rate # 740.0
overtime = (hours - 40) * rate * 1.5 # 305.25
pay = regular + overtime # 1045.25
print(f"{pay:.2f}")
```
# program o... | chat | [
{
"role": "user",
"content": "Ivan earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 51-hour week?"
},
{
"role": "assistant",
"content": "```python\nrate = 18.5\nhours = 51\nregular = 40 * rate # 740.0\novertime = (hours - 40) * rate * 1.5 # 305.25\npay = regula... | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "1045.25", "printed": "1045.25", "notation": null} |
nlprog_det-setting-0067296 | The paralegal logged 7 hours at a rate of $180. How much is billed?
Computation in Python:
```python
hours = 7
rate = 180
bill = hours * rate # 1260
print(f"{bill:.2f}")
```
(Program output: 1260.00)
The bill is $1,260.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "1260.00", "printed": "1260.00", "notation": null} |
nlprog_det-setting-0067297 | <|start|><|user|>
How many units at $25 each (variable cost $21) cover $6,000 of fixed costs?<|eot|>
<|assistant|>
1500 units are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many units at $25 each (variable cost $21) cover $6,000 of fixed costs?"
},
{
"role": "assistant",
"content": "1500 units are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "1500", "printed": "1500", "notation": null} |
nlprog_det-setting-0067298 | A 10-day notice period begins on April 16, 2021. On what date does it end?
As Python:
```python
from datetime import date, timedelta
start = date(2021, 4, 16) # datetime.date(2021, 4, 16)
end = start + timedelta(days=10) # datetime.date(2021, 4, 26)
print(end.isoformat())
```
Run result — 2021-04-26
The period ends... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "2021-04-26", "printed": "2021-04-26", "notation": null} |
nlprog_det-setting-0067299 | Someone born January 6, 1982 turns how old by April 26, 2022? Give the age in whole years.
```python
from datetime import date
born = date(1982, 1, 6) # datetime.date(1982, 1, 6)
on = date(2022, 4, 26) # datetime.date(2022, 4, 26)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 40
print(... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0067300 | <|start|><|user|>
Convert 1,219 CHF to USD at 1 CHF = 0.74 USD.<|eot|>
<|assistant|>
```python
amount = 1219
rate = 0.74
converted = amount * rate # 902.06
print(f"{converted:.2f}")
```
Run it and it prints: 902.06
It converts to 902.06 USD.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 1,219 CHF to USD at 1 CHF = 0.74 USD."
},
{
"role": "assistant",
"content": "```python\namount = 1219\nrate = 0.74\nconverted = amount * rate # 902.06\nprint(f\"{converted:.2f}\")\n```\nRun it and it prints: 902.06\n\nIt converts to 902.06 USD."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "902.06", "printed": "902.06", "notation": null} |
nlprog_det-setting-0067301 | <|start|><|user|>
A 3-day trip pays $74 a day for meals and $175 a night for lodging (2 nights). What is the total allowance?<|eot|>
<|assistant|>
```python
days = 3
meal_rate = 74
lodging_rate = 175
nights = days - 1 # 2
total = days * meal_rate + nights * lodging_rate # 572
print(total)
```
(Printed result: 572)
T... | chat | [
{
"role": "user",
"content": "A 3-day trip pays $74 a day for meals and $175 a night for lodging (2 nights). What is the total allowance?"
},
{
"role": "assistant",
"content": "```python\ndays = 3\nmeal_rate = 74\nlodging_rate = 175\nnights = days - 1 # 2\ntotal = days * meal_rate + nights * lo... | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "572", "printed": "572", "notation": null} |
nlprog_det-setting-0067302 | Which is cheaper per unit: 10 for $8.76 (A) or 20 for $26.42 (B)?
We can compute it in Python.
```python
pack_a = 8.76 / 10 # 0.876
pack_b = 26.42 / 20 # 1.3210000000000002
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
(Program output: A)
A has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0067303 | <|start|><|user|>
Prorate $2,400 of monthly rent for 10 days of a 31-day month.<|eot|>
<|assistant|>
rent = 2400
days_in_month = 31
days_occupied = 10
prorated = rent * days_occupied / days_in_month # 774.1935483870968
print(f"{prorated:.2f}")
stdout: 774.19
The prorated rent is $774.19.<|eot|>
<|... | chat | [
{
"role": "user",
"content": "Prorate $2,400 of monthly rent for 10 days of a 31-day month."
},
{
"role": "assistant",
"content": " rent = 2400\n days_in_month = 31\n days_occupied = 10\n prorated = rent * days_occupied / days_in_month # 774.1935483870968\n print(f\"{prorated:.2f... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "774.19", "printed": "774.19", "notation": null} |
nlprog_det-setting-0067304 | A settlement of $525 is split equally among 5 parties. How much does each party receive?
We write it as a program:
```python
settlement = 525
parties = 5
share = settlement // parties # 105
print(share)
```
Execution prints: 105
Each share is $105. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "105", "printed": "105", "notation": null} |
nlprog_det-setting-0067305 | <|start|><|user|>
Monthly: $12. Annual: $108. What is saved per year by paying annually?<|eot|>
<|assistant|>
```python
monthly = 12
yearly = 108
savings = monthly * 12 - yearly # 36
print(savings)
```
Output of the run: 36
$36 is saved.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Monthly: $12. Annual: $108. What is saved per year by paying annually?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 12\nyearly = 108\nsavings = monthly * 12 - yearly # 36\nprint(savings)\n```\nOutput of the run: 36\n\n$36 is saved."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0067306 | <|start|><|system|>
Answer accurately and briefly.<|eot|>
<|user|>
A hearing is set for June 23, 2008. What day of the week is that?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(2008, 6, 23) # datetime.date(2008, 6, 23)
print(hearing.strftime("%A"))
```
The program prints Monday.
It is a Mo... | chat | [
{
"role": "system",
"content": "Answer accurately and briefly."
},
{
"role": "user",
"content": "A hearing is set for June 23, 2008. What day of the week is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(2008, 6, 23) # datetime.date... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "Monday", "printed": "Monday", "notation": null} |
nlprog_det-setting-0067307 | A hall has 19 rows of 17 seats, and 6 seats are empty. How many people are seated?
A Python solution:
```python
rows = 19
per_row = 17
empty = 6
seated = rows * per_row - empty # 317
print(seated)
```
Running this gives 317.
317 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "317", "printed": "317", "notation": null} |
nlprog_det-setting-0067308 | <|start|><|user|>
A storeroom has 796 envelopes. The office uses 26 a day. How many are left after 18 days?<|eot|>
<|assistant|>
```python
stock = 796
per_day = 26
days = 18
left = stock - per_day * days # 328
print(left)
```
# console output: 328
328 envelopes are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A storeroom has 796 envelopes. The office uses 26 a day. How many are left after 18 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 796\nper_day = 26\ndays = 18\nleft = stock - per_day * days # 328\nprint(left)\n```\n# console output: 328\n\n328 env... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "328", "printed": "328", "notation": null} |
nlprog_det-setting-0067309 | How many days are there from June 20, 2027 to June 5, 2028?
The computation:
```python
from datetime import date
first = date(2027, 6, 20) # datetime.date(2027, 6, 20)
second = date(2028, 6, 5) # datetime.date(2028, 6, 5)
print((second - first).days)
```
Result = 351
There are 351 days between the two dates. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "351", "printed": "351", "notation": null} |
nlprog_det-setting-0067310 | 3 clients win $60,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?
Program:
```python
award = 60000
fee = award * 30 / 100
remaining = award - fee
per_client = remaining / 3
print(f"{per_client:.2f}")
```
Out — 14000.00
Each client gets $14,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "14000.00", "printed": "14000.00", "notation": null} |
nlprog_det-setting-0067312 | After an initial $3,000, the remainder of a $12,000 grant is paid in 3 equal parts. What is each part?
Here's the code.
```python
grant = 12000
up_front = 3000
installments = 3
each = (grant - up_front) / installments # 3000.0
print(f"{each:.2f}")
```
Run result: 3000.00
Each installment is $3,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "3000.00", "printed": "3000.00", "notation": null} |
nlprog_det-setting-0067313 | A backpack costs $75. It is 40% off. What is the sale price?
Python code:
```python
price = 75
discount = 40 / 100 # 0.4
sale_price = price * (1 - discount) # 45.0
print(f"{sale_price:.2f}")
```
# execution result: 45.00
The sale price is $45.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "45.00", "printed": "45.00", "notation": null} |
nlprog_det-setting-0067314 | Each storage box holds 50 files. How many boxes are needed for 623 files?
Here's the code.
```python
import math
files = 623
per_box = 50
boxes = math.ceil(files / per_box) # 13
print(boxes)
```
(Console output: 13)
It takes 13 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0067315 | <|start|><|user|>
Parking is $3 per hour with a daily maximum of $18. What do 5 hours cost?<|eot|>
<|assistant|>
```python
rate = 3
hours = 5
daily_max = 18
cost = min(rate * hours, daily_max) # 15
print(cost)
```
It prints: 15
The charge is $15.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Parking is $3 per hour with a daily maximum of $18. What do 5 hours cost?"
},
{
"role": "assistant",
"content": "```python\nrate = 3\nhours = 5\ndaily_max = 18\ncost = min(rate * hours, daily_max) # 15\nprint(cost)\n```\nIt prints: 15\n\nThe charge is $15."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0067316 | How many weekdays (Monday to Friday) fall after January 13, 2028 up to and including January 24, 2028?
There are 7 business days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0067317 | How many meters are in 52.5 kilometers?
A short script:
km = 52.5
meters = km * 1000 # 52500.0
print(round(meters))
Executed, it shows 52500.
52,500 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 70 | {"gold": "52500", "printed": "52500", "notation": null} |
nlprog_det-setting-0067318 | If a 5-year limitations period starts on September 18, 2018, when does it end?
Python makes this quick:
```python
from datetime import date
accrued = date(2018, 9, 18) # datetime.date(2018, 9, 18)
years = 5
expires = accrued.replace(year=accrued.year + years) # datetime.date(2023, 9, 18)
print(expires.isoformat())
`... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "2023-09-18", "printed": "2023-09-18", "notation": null} |
nlprog_det-setting-0067319 | A count moves from 2,000 to 1,600. By what percent did it change (use a minus sign for a drop)?
One way, in code:
```python
old = 2000
new = 1600
change = (new - old) / old * 100 # -20.0
print(round(change))
```
What it prints: -20
The change is -20%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "-20", "printed": "-20", "notation": null} |
nlprog_det-setting-0067320 | Parking is $4 per hour with a daily maximum of $20. What do 6 hours cost?
Program:
```python
rate = 4
hours = 6
daily_max = 20
cost = min(rate * hours, daily_max) # 20
print(cost)
```
Result: 20
Parking costs $20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0067321 | 5 swims at 300 calories each burn how many calories in total?
Python does the arithmetic:
```python
per_session = 300
sessions = 5
total = per_session * sessions # 1500
print(total)
```
(Result: 1500)
1500 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "1500", "printed": "1500", "notation": null} |
nlprog_det-setting-0067322 | <|start|><|user|>
Sales went from 500 to 425. What is the percent change?<|eot|>
<|assistant|>
```python
old = 500
new = 425
change = (new - old) / old * 100 # -15.0
print(round(change))
```
Running it prints: -15
The change is -15%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Sales went from 500 to 425. What is the percent change?"
},
{
"role": "assistant",
"content": "```python\nold = 500\nnew = 425\nchange = (new - old) / old * 100 # -15.0\nprint(round(change))\n```\nRunning it prints: -15\n\nThe change is -15%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "-15", "printed": "-15", "notation": null} |
nlprog_det-setting-0067323 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"name": "py_exec", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"py_exec\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": ... | nlprog_det | setting | original | null | deterministic | [] | [] | 232 | {"gold": "12.50", "printed": "12.50", "notation": null} |
nlprog_det-setting-0067324 | A $96 dinner bill gets a 15% tip, and 6 people share the cost equally. What is each person's share?
One way, in code:
```python
bill = 96
tip_rate = 15 / 100 # 0.15
people = 6
each = bill * (1 + tip_rate) / people # 18.4
print(f"{each:.2f}")
```
# program output: 18.40
Each person pays $18.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "18.40", "printed": "18.40", "notation": null} |
nlprog_det-setting-0067325 | An invoice lists 7 markers at $6 each, plus 7% sales tax. What is the invoice total?
Python, step by step:
```python
quantity = 7
unit_price = 6
subtotal = quantity * unit_price # 42
total = subtotal * (1 + 7 / 100) # 44.940000000000005
print(f"{total:.2f}")
```
Run it and it prints: 44.94
The invoice total is $44.... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "44.94", "printed": "44.94", "notation": null} |
nlprog_det-setting-0067326 | Starting from $8,000, the team spends $1,597, $3,674. What remains?
Translated to Python:
```python
budget = 8000
expenses = [1597, 3674]
left = budget - sum(expenses) # 2729
print(left)
```
It outputs 2729.
$2,729 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "2729", "printed": "2729", "notation": null} |
nlprog_det-setting-0067327 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "calc", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
Monthly: $25. Annua... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"calc\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required... | nlprog_det | setting | original | null | deterministic | [] | [] | 209 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0067328 | <|start|><|system|>
You are a careful reviewer of figures.<|eot|>
<|user|>
A $48,000 grant pays $3,000 up front and the rest in 4 equal installments. How large is each installment?<|eot|>
<|assistant|>
```python
grant = 48000
up_front = 3000
installments = 4
each = (grant - up_front) / installments # 11250.0
print(f"{... | chat | [
{
"role": "system",
"content": "You are a careful reviewer of figures."
},
{
"role": "user",
"content": "A $48,000 grant pays $3,000 up front and the rest in 4 equal installments. How large is each installment?"
},
{
"role": "assistant",
"content": "```python\ngrant = 48000\nup_front... | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "11250.00", "printed": "11250.00", "notation": null} |
nlprog_det-setting-0067329 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
{"name": "sandbox_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|>
<|user|>
Pay i... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"sandbox_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source cod... | nlprog_det | setting | original | null | deterministic | [] | [] | 262 | {"gold": "1220.00", "printed": "1220.00", "notation": null} |
nlprog_det-setting-0067330 | What commission does Oskar make on $76,657 in sales at 8%?
The computation:
```python
sales = 76657
rate = 8 / 100 # 0.08
commission = sales * rate # 6132.56
print(f"{commission:.2f}")
```
Executing it gives: 6132.56
The commission is $6,132.56. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "6132.56", "printed": "6132.56", "notation": null} |
nlprog_det-setting-0067331 | Of a $10,000 budget, $2,500 has been spent. What percent is that?
Programmatically:
```python
budget = 10000
spent = 2500
percent = spent / budget * 100 # 25.0
print(round(percent, 1))
```
# output: 25.0
That is 25.0% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "25.0", "printed": "25.0", "notation": null} |
nlprog_det-setting-0067332 | An office budget of $12,000 has expenses of $2,087, $1,509, $1,295, $1,110. How much of the budget is left?
One way, in code:
```python
budget = 12000
expenses = [2087, 1509, 1295, 1110]
left = budget - sum(expenses) # 5999
print(left)
```
Output = 5999
The remaining budget is $5,999. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "5999", "printed": "5999", "notation": null} |
nlprog_det-setting-0067333 | Papers were served by mail on July 26, 2018. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date?
Python version:
```python
from datetime import date, timedelta
served = date(2018, 7, 26) # datetime.date(2018, 7, 26)
response_days = 21
mail_days = 3
due = served + timedelta(da... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 176 | {"gold": "2018-08-19", "printed": "2018-08-19", "notation": null} |
nlprog_det-setting-0067334 | <|start|><|user|>
A measure needs at least 75% of 160 votes. How many votes is that, rounded up?<|eot|>
<|assistant|>
```python
import math
voters = 160
needed = math.ceil(voters * 75 / 100) # 120
print(needed)
```
Printed:
120
At least 120 votes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A measure needs at least 75% of 160 votes. How many votes is that, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 160\nneeded = math.ceil(voters * 75 / 100) # 120\nprint(needed)\n```\nPrinted:\n120\n\nAt least 120 votes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "120", "printed": "120", "notation": null} |
nlprog_det-setting-0067335 | Counting the first and last day, how many days are there from March 26, 2025 through April 8, 2025?
14 calendar days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0067336 | A storeroom has 1224 binders. The office uses 34 a day. How many are left after 10 days?
A few lines of Python do it:
```python
stock = 1224
per_day = 34
days = 10
left = stock - per_day * days # 884
print(left)
```
Execution prints 884, as expected.
884 binders are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "884", "printed": "884", "notation": null} |
nlprog_det-setting-0067337 | <|start|><|system|>
Be concise.<|eot|>
<|user|>
Starting with 651 file boxes and using 11 per day, how many remain after 20 days?<|eot|>
<|assistant|>
```python
stock = 651
per_day = 11
days = 20
left = stock - per_day * days # 431
print(left)
```
Run result — 431
431 remain.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be concise."
},
{
"role": "user",
"content": "Starting with 651 file boxes and using 11 per day, how many remain after 20 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 651\nper_day = 11\ndays = 20\nleft = stock - per_day * days # 431... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "431", "printed": "431", "notation": null} |
nlprog_det-setting-0067338 | A film lasted 2 hours and 45 minutes. How many minutes is that?
Python does the arithmetic:
```python
hours = 2
minutes = 45
total_minutes = hours * 60 + minutes # 165
print(total_minutes)
```
When run, it prints: 165
The film lasted 165 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "165", "printed": "165", "notation": null} |
nlprog_det-setting-0067340 | <|start|><|user|>
Equipment costs $18,000, has a salvage value of $3,000, and a useful life of 6 years. What is the straight-line depreciation per year?<|eot|>
<|assistant|>
```python
cost = 18000
salvage = 3000
years = 6
per_year = (cost - salvage) / years # 2500.0
print(f"{per_year:.2f}")
```
The run gives 2500.00.
... | chat | [
{
"role": "user",
"content": "Equipment costs $18,000, has a salvage value of $3,000, and a useful life of 6 years. What is the straight-line depreciation per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 18000\nsalvage = 3000\nyears = 6\nper_year = (cost - salvage) / years # 2... | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "2500.00", "printed": "2500.00", "notation": null} |
nlprog_det-setting-0067341 | 10.5 hours of work at $225 an hour: what is the total charge?
Written as code:
```python
hours = 10.5
rate = 225
bill = hours * rate # 2362.5
print(f"{bill:.2f}")
```
Output of the run — 2362.50
The bill is $2,362.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "2362.50", "printed": "2362.50", "notation": null} |
nlprog_det-setting-0067342 | A meeting starts at 10:30 AM and lasts 40 minutes. When does it end?
Python:
```python
start = 10 * 60 + 30
end = start + 40
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Result:
11:10 AM
The meeting finishes at 11:10 AM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "11:10 AM", "printed": "11:10 AM", "notation": null} |
nlprog_det-setting-0067343 | The building opened in 2005. How many years had passed by 2031?
Computation in Python:
```python
start_year = 2005
end_year = 2031
print(end_year - start_year)
```
Console output — 26
26 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0067344 | <|start|><|user|>
Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 47 hours?<|eot|>
<|assistant|>
The weekly pay is $934.25.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 47 hours?"
},
{
"role": "assistant",
"content": "The weekly pay is $934.25."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 52 | {"gold": "934.25", "printed": "934.25", "notation": null} |
nlprog_det-setting-0067345 | What is 5 degrees Celsius in Fahrenheit?
The computation:
celsius = 5
fahrenheit = celsius * 9 / 5 + 32 # 41.0
print(round(fahrenheit))
The script prints 41.
It equals 41 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "41", "printed": "41", "notation": null} |
nlprog_det-setting-0067346 | A 512-page report must be reviewed in 16 days. How many pages a day is that, evenly?
```python
pages = 512
days = 16
per_day = pages // days # 32
print(per_day)
```
The program prints 32.
32 pages a day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0067347 | An office budget of $12,000 has expenses of $2,785, $738, $1,160. How much of the budget is left?
As Python:
```python
budget = 12000
expenses = [2785, 738, 1160]
left = budget - sum(expenses) # 7317
print(left)
```
Run result — 7317
$7,317 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "7317", "printed": "7317", "notation": null} |
nlprog_det-setting-0067348 | <|start|><|user|>
A water bill is $12 plus $3.50 per thousand gallons beyond the first 3 thousand. What is the bill for 8 thousand gallons?<|eot|>
<|assistant|>
```python
base = 12
rate = 3.5
used = 8
free = 3
bill = base + rate * max(0, used - free) # 29.5
print(f"{bill:.2f}")
```
This prints: 29.50
The bill is $29.... | chat | [
{
"role": "user",
"content": "A water bill is $12 plus $3.50 per thousand gallons beyond the first 3 thousand. What is the bill for 8 thousand gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 12\nrate = 3.5\nused = 8\nfree = 3\nbill = base + rate * max(0, used - free) # 29.5\np... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "29.50", "printed": "29.50", "notation": null} |
nlprog_det-setting-0067349 | <|start|><|user|>
A hall has 25 rows of 24 seats, and 9 seats are empty. How many people are seated?<|eot|>
<|assistant|>
```python
rows = 25
per_row = 24
empty = 9
seated = rows * per_row - empty # 591
print(seated)
```
Run result — 591
591 seats are taken.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hall has 25 rows of 24 seats, and 9 seats are empty. How many people are seated?"
},
{
"role": "assistant",
"content": "```python\nrows = 25\nper_row = 24\nempty = 9\nseated = rows * per_row - empty # 591\nprint(seated)\n```\nRun result — 591\n\n591 seats are tak... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "591", "printed": "591", "notation": null} |
nlprog_det-setting-0067350 | Chen earns a 2% commission on $6,491 of sales. What is the commission?
A short script:
```python
sales = 6491
rate = 2 / 100 # 0.02
commission = sales * rate # 129.82
print(f"{commission:.2f}")
```
(Run result: 129.82)
Chen earns $129.82. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "129.82", "printed": "129.82", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.