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-0057868 | Equipment costs $18,000, has a salvage value of $2,000, and a useful life of 8 years. What is the straight-line depreciation per year?
Python version:
cost = 18000
salvage = 2000
years = 8
per_year = (cost - salvage) / years # 2000.0
print(f"{per_year:.2f}")
(Output: 2000.00)
$2,000.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "2000.00", "printed": "2000.00", "notation": null} |
nlprog_det-setting-0057869 | A quorum is 3/5 of the 39 members, rounded up. How many members make a quorum?
One way, in code:
```python
import math
members = 39
quorum = math.ceil(members * 3 / 5)
print(quorum)
```
(Result: 24)
24 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0057870 | <|start|><|user|>
A 200-page report must be reviewed in 8 days. How many pages a day is that, evenly?<|eot|>
<|assistant|>
25 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 200-page report must be reviewed in 8 days. How many pages a day is that, evenly?"
},
{
"role": "assistant",
"content": "25 pages a day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0057871 | <|start|><|user|>
What average speed covers 328 miles in 2 hours?<|eot|>
<|assistant|>
It averages 164 miles per hour.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What average speed covers 328 miles in 2 hours?"
},
{
"role": "assistant",
"content": "It averages 164 miles per hour."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "164", "printed": "164", "notation": null} |
nlprog_det-setting-0057872 | A claim accrued on March 4, 2013. The limitations period is 4 years. On what date does it expire?
Here is the program.
```python
from datetime import date
accrued = date(2013, 3, 4) # datetime.date(2013, 3, 4)
years = 4
expires = accrued.replace(year=accrued.year + years) # datetime.date(2017, 3, 4)
print(expires.is... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "2017-03-04", "printed": "2017-03-04", "notation": null} |
nlprog_det-setting-0057873 | Goods bought on February 3, 2023 carry a 18-month warranty. When does it expire?
The computation:
```python
from datetime import date
start = date(2023, 2, 3)
months = 18
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
Exec... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "2024-08-03", "printed": "2024-08-03", "notation": null} |
nlprog_det-setting-0057874 | <|start|><|user|>
Equal monthly payments repay $6,000 plus 8% simple yearly interest over 36 months. How large is a payment?<|eot|>
<|assistant|>
```python
principal = 6000
annual_rate = 8 / 100 # 0.08
months = 36
interest = principal * annual_rate * months / 12 # 1440.0
payment = (principal + interest) / months # 2... | chat | [
{
"role": "user",
"content": "Equal monthly payments repay $6,000 plus 8% simple yearly interest over 36 months. How large is a payment?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 6000\nannual_rate = 8 / 100 # 0.08\nmonths = 36\ninterest = principal * annual_rate * months / 1... | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "206.67", "printed": "206.67", "notation": null} |
nlprog_det-setting-0057875 | What is a 10% tip on a $120.54 bill?
Computation in Python:
```python
bill = 120.54
tip_rate = 10 / 100 # 0.1
tip = bill * tip_rate # 12.054000000000002
print(f"{tip:.2f}")
```
When run, it prints 12.05, as expected.
Leave $12.05. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "12.05", "printed": "12.05", "notation": null} |
nlprog_det-setting-0057876 | An invoice lists 18 cables at $24 each, plus 5% sales tax. What is the invoice total?
Python does the arithmetic:
```python
quantity = 18
unit_price = 24
subtotal = quantity * unit_price # 432
total = subtotal * (1 + 5 / 100) # 453.6
print(f"{total:.2f}")
```
Run it and it prints 453.60.
The invoice total is $453.6... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "453.60", "printed": "453.60", "notation": null} |
nlprog_det-setting-0057877 | <|start|><|user|>
Parking is $5 per hour with a daily maximum of $18. What do 8 hours cost?<|eot|>
<|assistant|>
```python
rate = 5
hours = 8
daily_max = 18
cost = min(rate * hours, daily_max) # 18
print(cost)
```
Execution result — 18
The charge is $18.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Parking is $5 per hour with a daily maximum of $18. What do 8 hours cost?"
},
{
"role": "assistant",
"content": "```python\nrate = 5\nhours = 8\ndaily_max = 18\ncost = min(rate * hours, daily_max) # 18\nprint(cost)\n```\nExecution result — 18\n\nThe charge is $18."... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0057878 | <|start|><|system|>
Functions:
{"name": "python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|>
<|user|>
One can of paint covers 3... | chat | [
{
"role": "system",
"content": "Functions:\n{\"name\": \"python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [... | nlprog_det | setting | original | null | deterministic | [] | [] | 218 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0057879 | Monthly rent is $1,800. A tenant moves in with 16 days left in a 31-day month. What is the prorated rent?
Here is a short program for it.
```python
rent = 1800
days_in_month = 31
days_occupied = 16
prorated = rent * days_occupied / days_in_month # 929.0322580645161
print(f"{prorated:.2f}")
```
That prints: 929.03
Th... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "929.03", "printed": "929.03", "notation": null} |
nlprog_det-setting-0057880 | <|start|><|user|>
Each of Xavier's runs burns 300 calories. How many calories over 4 runs?<|eot|>
<|assistant|>
per_session = 300
sessions = 4
total = per_session * sessions # 1200
print(total)
On running, it outputs 1200.
1200 calories in total.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each of Xavier's runs burns 300 calories. How many calories over 4 runs?"
},
{
"role": "assistant",
"content": " per_session = 300\n sessions = 4\n total = per_session * sessions # 1200\n print(total)\nOn running, it outputs 1200.\n\n1200 calories in to... | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "1200", "printed": "1200", "notation": null} |
nlprog_det-setting-0057881 | <|start|><|system|>
You check calculations for an accounting team.<|eot|>
<|user|>
Equipment costs $18,000, has a salvage value of $6,000, and a useful life of 5 years. What is the straight-line depreciation per year?<|eot|>
<|assistant|>
```python
cost = 18000
salvage = 6000
years = 5
per_year = (cost - salvage) / yea... | chat | [
{
"role": "system",
"content": "You check calculations for an accounting team."
},
{
"role": "user",
"content": "Equipment costs $18,000, has a salvage value of $6,000, and a useful life of 5 years. What is the straight-line depreciation per year?"
},
{
"role": "assistant",
"content"... | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "2400.00", "printed": "2400.00", "notation": null} |
nlprog_det-setting-0057882 | <|start|><|system|>
You are a puzzle helper.<|eot|>
<|user|>
Parking is $3 per hour with a daily maximum of $15. What do 4 hours cost?<|eot|>
<|assistant|>
```python
rate = 3
hours = 4
daily_max = 15
cost = min(rate * hours, daily_max) # 12
print(cost)
```
Execution result: 12
The charge is $12.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a puzzle helper."
},
{
"role": "user",
"content": "Parking is $3 per hour with a daily maximum of $15. What do 4 hours cost?"
},
{
"role": "assistant",
"content": "```python\nrate = 3\nhours = 4\ndaily_max = 15\ncost = min(rate * hours, daily_m... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0057883 | Kaito's scores were 96, 76, 55, 99, 68, 76 and 62. What is the average score?
The average score is 76. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "76", "printed": "76", "notation": null} |
nlprog_det-setting-0057884 | <|start|><|system|>
Tool definitions:
[{"name": "sandbox_python", "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"]}}]<|eot|>
<|user|>
A 16 lb pack... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"sandbox_python\", \"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\"}}, \... | nlprog_det | setting | original | null | deterministic | [] | [] | 236 | {"gold": "22.00", "printed": "22.00", "notation": null} |
nlprog_det-setting-0057885 | Express 374 hours in days and hours.
```python
hours = 374
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
When run, it prints 15 days and 14 hours.
That is 15 days and 14 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "15 days and 14 hours", "printed": "15 days and 14 hours", "notation": null} |
nlprog_det-setting-0057886 | <|start|><|system|>
You are an assistant for a small office.<|eot|>
<|user|>
8 hours of work at $410 an hour: what is the total charge?<|eot|>
<|assistant|>
```python
hours = 8
rate = 410
bill = hours * rate # 3280
print(f"{bill:.2f}")
```
(Result: 3280.00)
That comes to $3,280.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are an assistant for a small office."
},
{
"role": "user",
"content": "8 hours of work at $410 an hour: what is the total charge?"
},
{
"role": "assistant",
"content": "```python\nhours = 8\nrate = 410\nbill = hours * rate # 3280\nprint(f\"{bill:.... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "3280.00", "printed": "3280.00", "notation": null} |
nlprog_det-setting-0057887 | <|start|><|user|>
A storeroom has 1835 toner kits. The office uses 13 a day. How many are left after 4 days?<|eot|>
<|assistant|>
1783 toner kits are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A storeroom has 1835 toner kits. The office uses 13 a day. How many are left after 4 days?"
},
{
"role": "assistant",
"content": "1783 toner kits are left."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "1783", "printed": "1783", "notation": null} |
nlprog_det-setting-0057888 | A 90-day notice period begins on January 15, 2025. On what date does it end?
We write it as a program:
from datetime import date, timedelta
start = date(2025, 1, 15) # datetime.date(2025, 1, 15)
end = start + timedelta(days=90) # datetime.date(2025, 4, 15)
print(end.isoformat())
The run gives 2025-04... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "2025-04-15", "printed": "2025-04-15", "notation": null} |
nlprog_det-setting-0057889 | What commission does Zainab make on $23,908 in sales at 4%?
The program:
```python
sales = 23908
rate = 4 / 100
commission = sales * rate
print(f"{commission:.2f}")
```
Out:
956.32
The commission is $956.32. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "956.32", "printed": "956.32", "notation": null} |
nlprog_det-setting-0057890 | $10,000 is invested at 4% compounded yearly. What is it worth after 3 years?
The computation:
```python
principal = 10000
rate = 4 / 100
years = 3
value = principal * (1 + rate) ** years
print(f"{value:.2f}")
```
Result: 11248.64
It is worth $11,248.64. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "11248.64", "printed": "11248.64", "notation": null} |
nlprog_det-setting-0057891 | Jae was born on March 17, 1983. How old is Jae on August 20, 2026?
Code:
```python
from datetime import date
born = date(1983, 3, 17) # datetime.date(1983, 3, 17)
on = date(2026, 8, 20) # datetime.date(2026, 8, 20)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 43
print(age)
```
Program... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 150 | {"gold": "43", "printed": "43", "notation": null} |
nlprog_det-setting-0057892 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
{"name": "py_exec", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|>
<|user|>
A 90-... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"py_exec\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 244 | {"gold": "2021-06-30", "printed": "2021-06-30", "notation": null} |
nlprog_det-setting-0057893 | A 37 lb package ships at $10 base plus $2.00/lb. What is the charge?
Here's the code.
```python
base = 10
per_pound = 2.0
weight = 37
cost = base + per_pound * weight # 84.0
print(f"{cost:.2f}")
```
What it prints: 84.00
Shipping costs $84.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "84.00", "printed": "84.00", "notation": null} |
nlprog_det-setting-0057894 | A measure needs at least 60% of 35 votes. How many votes is that, rounded up?
Python code:
```python
import math
voters = 35
needed = math.ceil(voters * 60 / 100)
print(needed)
```
Printed result: 21
At least 21 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "21", "printed": "21", "notation": null} |
nlprog_det-setting-0057895 | Counting only Monday through Friday, how many business days are there after June 22, 2025 through July 4, 2025?
Program:
```python
from datetime import date, timedelta
start = date(2025, 6, 22)
end = date(2025, 7, 4)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekday() < 5:... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 156 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0057896 | <|start|><|user|>
475 files go into boxes of 40. How many boxes does that take?<|eot|>
<|assistant|>
```python
import math
files = 475
per_box = 40
boxes = math.ceil(files / per_box) # 12
print(boxes)
```
On running, it outputs: 12
It takes 12 boxes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "475 files go into boxes of 40. How many boxes does that take?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 475\nper_box = 40\nboxes = math.ceil(files / per_box) # 12\nprint(boxes)\n```\nOn running, it outputs: 12\n\nIt takes 12 boxes."
}... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0057897 | Printing costs 12 cents a page. What does it cost to print 200 copies of a 5-page handout?
Python code:
```python
pages = 5
copies = 200
cost_per_page = 0.12
cost = pages * copies * cost_per_page # 120.0
print(f"{cost:.2f}")
```
Executed, it shows 120.00.
The job costs $120.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "120.00", "printed": "120.00", "notation": null} |
nlprog_det-setting-0057898 | <|start|><|user|>
One can of paint covers 400 square feet. How many cans are needed for 261 square feet of wall?<|eot|>
<|assistant|>
```python
import math
area = 261
coverage = 400
cans = math.ceil(area / coverage) # 1
print(cans)
```
That prints 1.
Buy 1 cans.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "One can of paint covers 400 square feet. How many cans are needed for 261 square feet of wall?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 261\ncoverage = 400\ncans = math.ceil(area / coverage) # 1\nprint(cans)\n```\nThat prints 1.\n\nBuy ... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "1", "printed": "1", "notation": null} |
nlprog_det-setting-0057899 | <|start|><|user|>
The rules require 2/3 of 15 members (round up) to be present. How many is that?<|eot|>
<|assistant|>
import math
members = 15
quorum = math.ceil(members * 2 / 3) # 10
print(quorum)
Python prints 10.
That is 10 members.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The rules require 2/3 of 15 members (round up) to be present. How many is that?"
},
{
"role": "assistant",
"content": " import math\n members = 15\n quorum = math.ceil(members * 2 / 3) # 10\n print(quorum)\nPython prints 10.\n\nThat is 10 members."
}
... | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0057900 | A room is 20 feet by 8 feet. Flooring costs $6 per square foot. What does it cost to floor the room?
The flooring costs $960. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "960", "printed": "960", "notation": null} |
nlprog_det-setting-0057901 | <|start|><|system|>
Tools (call with JSON):
{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}
{"name": "python", "description": "Use for arithmetic and date math; returns stdout of the code.", "par... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}\n{\"name\": \"python\", \"description\": \"Use for a... | nlprog_det | setting | original | null | deterministic | [] | [] | 300 | {"gold": "80", "printed": "80", "notation": null} |
nlprog_det-setting-0057902 | Monthly rent is $900. A tenant moves in with 11 days left in a 31-day month. What is the prorated rent?
Code:
```python
rent = 900
days_in_month = 31
days_occupied = 11
prorated = rent * days_occupied / days_in_month # 319.35483870967744
print(f"{prorated:.2f}")
```
Console output — 319.35
The tenant owes $319.35. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "319.35", "printed": "319.35", "notation": null} |
nlprog_det-setting-0057904 | Leon drove 190 miles for work. Mileage is reimbursed at 67 cents a mile. How much is the reimbursement?
The program:
miles = 190
rate = 0.67
reimbursement = miles * rate # 127.30000000000001
print(f"{reimbursement:.2f}")
What it prints: 127.30
The reimbursement is $127.30. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "127.30", "printed": "127.30", "notation": null} |
nlprog_det-setting-0057905 | From a $2,500 retainer, 9 hours at $200/hour have been drawn. What remains?
$700 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "700", "printed": "700", "notation": null} |
nlprog_det-setting-0057906 | Equipment costs $12,000, has a salvage value of $2,000, and a useful life of 5 years. What is the straight-line depreciation per year?
In code:
```python
cost = 12000
salvage = 2000
years = 5
per_year = (cost - salvage) / years
print(f"{per_year:.2f}")
```
The run gives: 2000.00
Depreciation is $2,000.00 per year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "2000.00", "printed": "2000.00", "notation": null} |
nlprog_det-setting-0057907 | Someone works 40 hours at $18.72 per hour. What are the earnings?
As Python:
```python
rate = 18.72
hours = 40
earnings = rate * hours # 748.8
print(f"{earnings:.2f}")
```
Result — 748.80
The pay is $748.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "748.80", "printed": "748.80", "notation": null} |
nlprog_det-setting-0057908 | <|start|><|user|>
How many days are there from July 23, 2025 to January 26, 2026?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2025, 7, 23)
second = date(2026, 1, 26)
print((second - first).days)
```
Run result = 187
There are 187 days between the two dates.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many days are there from July 23, 2025 to January 26, 2026?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2025, 7, 23)\nsecond = date(2026, 1, 26)\nprint((second - first).days)\n```\nRun result = 187\n\nThere are 187 d... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "187", "printed": "187", "notation": null} |
nlprog_det-setting-0057909 | <|start|><|user|>
A $60,000 grant pays $6,000 up front and the rest in 4 equal installments. How large is each installment?<|eot|>
<|assistant|>
```python
grant = 60000
up_front = 6000
installments = 4
each = (grant - up_front) / installments # 13500.0
print(f"{each:.2f}")
```
Run output — 13500.00
$13,500.00 per ins... | chat | [
{
"role": "user",
"content": "A $60,000 grant pays $6,000 up front and the rest in 4 equal installments. How large is each installment?"
},
{
"role": "assistant",
"content": "```python\ngrant = 60000\nup_front = 6000\ninstallments = 4\neach = (grant - up_front) / installments # 13500.0\nprint(f... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "13500.00", "printed": "13500.00", "notation": null} |
nlprog_det-setting-0057910 | <|start|><|user|>
With 30% off, what does a $120 kettle cost?<|eot|>
<|assistant|>
```python
price = 120
discount = 30 / 100 # 0.3
sale_price = price * (1 - discount) # 84.0
print(f"{sale_price:.2f}")
```
The run gives: 84.00
The sale price is $84.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 30% off, what does a $120 kettle cost?"
},
{
"role": "assistant",
"content": "```python\nprice = 120\ndiscount = 30 / 100 # 0.3\nsale_price = price * (1 - discount) # 84.0\nprint(f\"{sale_price:.2f}\")\n```\nThe run gives: 84.00\n\nThe sale price is $84.00."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "84.00", "printed": "84.00", "notation": null} |
nlprog_det-setting-0057911 | <|start|><|system|>
You are a careful reviewer of figures.<|eot|>
<|user|>
Split $6,824 between Joelle and Nilufar in the ratio 3 to 5. What is Joelle's share?<|eot|>
<|assistant|>
Joelle's share is $2,559.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a careful reviewer of figures."
},
{
"role": "user",
"content": "Split $6,824 between Joelle and Nilufar in the ratio 3 to 5. What is Joelle's share?"
},
{
"role": "assistant",
"content": "Joelle's share is $2,559."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 67 | {"gold": "2559", "printed": "2559", "notation": null} |
nlprog_det-setting-0057912 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "search_cases", "description": "S... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 293 | {"gold": "980", "printed": "980", "notation": null} |
nlprog_det-setting-0057913 | <|start|><|user|>
Which is cheaper per unit: 12 for $5.35 (A) or 30 for $12.19 (B)?<|eot|>
<|assistant|>
pack_a = 5.35 / 12 # 0.4458333333333333
pack_b = 12.19 / 30 # 0.4063333333333333
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
Printed result: B
B has the lower unit price.<|eot|... | chat | [
{
"role": "user",
"content": "Which is cheaper per unit: 12 for $5.35 (A) or 30 for $12.19 (B)?"
},
{
"role": "assistant",
"content": " pack_a = 5.35 / 12 # 0.4458333333333333\n pack_b = 12.19 / 30 # 0.4063333333333333\n cheaper = \"A\" if pack_a < pack_b else \"B\" # 'B'\n print(... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0057914 | A 2% increase is applied to $1,100 monthly rent. What is the new amount?
Computing it:
rent = 1100
increase = 2 / 100 # 0.02
new_rent = rent * (1 + increase) # 1122.0
print(f"{new_rent:.2f}")
Executed, it shows 1122.00.
It rises to $1,122.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "1122.00", "printed": "1122.00", "notation": null} |
nlprog_det-setting-0057915 | 11 boxes hold 24 batteries each. After 18 are handed out, how many are left?
Script:
```python
boxes = 11
per_box = 24
given_away = 18
left = boxes * per_box - given_away # 246
print(left)
```
# printed: 246
246 batteries are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "246", "printed": "246", "notation": null} |
nlprog_det-setting-0057916 | <|start|><|system|>
You are a careful reviewer of figures.<|eot|>
<|user|>
How many meters are in 16.8 kilometers?<|eot|>
<|assistant|>
```python
km = 16.8
meters = km * 1000 # 16800.0
print(round(meters))
```
Run it and it prints 16800.
16,800 m.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a careful reviewer of figures."
},
{
"role": "user",
"content": "How many meters are in 16.8 kilometers?"
},
{
"role": "assistant",
"content": "```python\nkm = 16.8\nmeters = km * 1000 # 16800.0\nprint(round(meters))\n```\nRun it and it prints... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "16800", "printed": "16800", "notation": null} |
nlprog_det-setting-0057917 | A court charges $5 per request plus $0.50 per page after the first 20 pages. What does a 23-page copy cost?
Python version:
pages = 23
base = 5
per_page = 0.5
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page
print(f"{cost:.2f}")
Output — 6.50
The total is $6.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "6.50", "printed": "6.50", "notation": null} |
nlprog_det-setting-0057918 | Convert 8,429 GBP to USD at 1 GBP = 1.27 USD.
As Python:
```python
amount = 8429
rate = 1.27
converted = amount * rate # 10704.83
print(f"{converted:.2f}")
```
# result: 10704.83
That is 10,704.83 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "10704.83", "printed": "10704.83", "notation": null} |
nlprog_det-setting-0057919 | Rafael lends $5,000 at 3% simple interest per year for 6 years. How much interest is earned?
One way, in code:
principal = 5000
rate = 3 / 100 # 0.03
years = 6
interest = principal * rate * years # 900.0
print(f"{interest:.2f}")
On running, it outputs 900.00.
The interest is $900.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "900.00", "printed": "900.00", "notation": null} |
nlprog_det-setting-0057920 | Count 60 days forward from September 18, 2022. What date is that?
A Python solution:
```python
from datetime import date, timedelta
start = date(2022, 9, 18)
end = start + timedelta(days=60)
print(end.isoformat())
```
That prints 2022-11-17.
That date is November 17, 2022. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "2022-11-17", "printed": "2022-11-17", "notation": null} |
nlprog_det-setting-0057921 | If a 3-year limitations period starts on September 3, 2023, when does it end?
A few lines of Python do it:
```python
from datetime import date
accrued = date(2023, 9, 3) # datetime.date(2023, 9, 3)
years = 3
expires = accrued.replace(year=accrued.year + years) # datetime.date(2026, 9, 3)
print(expires.isoformat())
`... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 155 | {"gold": "2026-09-03", "printed": "2026-09-03", "notation": null} |
nlprog_det-setting-0057922 | <|start|><|user|>
Pay is $22.40/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 41 hours?<|eot|>
<|assistant|>
```python
rate = 22.4
hours = 41
regular = 40 * rate # 896.0
overtime = (hours - 40) * rate * 1.5 # 33.599999999999994
pay = regular + overtime # 929.6
print(f"{pay:.2f}")
```
stdou... | chat | [
{
"role": "user",
"content": "Pay is $22.40/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 41 hours?"
},
{
"role": "assistant",
"content": "```python\nrate = 22.4\nhours = 41\nregular = 40 * rate # 896.0\novertime = (hours - 40) * rate * 1.5 # 33.599999999999994\npay ... | nlprog_det | setting | original | null | deterministic | [] | [] | 152 | {"gold": "929.60", "printed": "929.60", "notation": null} |
nlprog_det-setting-0057923 | A customer buys 5 binders at $28 each, 6 cables at $15 each and pays with $250. How much change is due?
The Python version:
```python
items = [(5, 28), (6, 15)]
total = sum(q * p for q, p in items)
paid = 250
change = paid - total
print(change)
```
When run, it prints 20.
$20 comes back. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0057924 | A lease runs for 36 months at $1,200 per month. How much rent is paid over the whole term?
```python
monthly_rent = 1200
months = 36
total = monthly_rent * months
print(total)
```
The program prints: 43200
In total, $43,200 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "43200", "printed": "43200", "notation": null} |
nlprog_det-setting-0057925 | <|start|><|user|>
At an exchange rate of 1.12 USD per EUR, how many USD is 6,533 EUR?<|eot|>
<|assistant|>
That is 7,316.96 USD.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At an exchange rate of 1.12 USD per EUR, how many USD is 6,533 EUR?"
},
{
"role": "assistant",
"content": "That is 7,316.96 USD."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "7316.96", "printed": "7316.96", "notation": null} |
nlprog_det-setting-0057926 | <|start|><|user|>
How many 2-foot square tiles cover a 6 ft by 3 ft floor (round up)?<|eot|>
<|assistant|>
```python
import math
length = 6
width = 3
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 5
print(tiles)
```
Python prints: 5
It takes 5 tiles.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many 2-foot square tiles cover a 6 ft by 3 ft floor (round up)?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 6\nwidth = 3\ntile = 2\ntiles = math.ceil(length * width / (tile * tile)) # 5\nprint(tiles)\n```\nPython prints: 5\n\nIt take... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0057927 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "calc", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "get_weather", "descript... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"calc\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requ... | nlprog_det | setting | original | null | deterministic | [] | [] | 343 | {"gold": "2029-04-01", "printed": "2029-04-01", "notation": null} |
nlprog_det-setting-0057929 | At 40 miles per hour, how many minutes does a 150-mile trip take?
Python, step by step:
```python
distance = 150
speed = 40
minutes = distance / speed * 60 # 225.0
print(round(minutes))
```
The program prints 225.
The trip takes 225 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "225", "printed": "225", "notation": null} |
nlprog_det-setting-0057930 | Water costs $20 a month plus $4.75 for each 1,000 gallons over 3,000. What is owed for 12,000 gallons?
One way, in code:
```python
base = 20
rate = 4.75
used = 12
free = 3
bill = base + rate * max(0, used - free) # 62.75
print(f"{bill:.2f}")
```
On running, it outputs: 62.75
The bill is $62.75. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "62.75", "printed": "62.75", "notation": null} |
nlprog_det-setting-0057931 | 3 claimants share a $960 settlement equally. What is each share?
```python
settlement = 960
parties = 3
share = settlement // parties # 320
print(share)
```
Output:
320
Each party receives $320. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "320", "printed": "320", "notation": null} |
nlprog_det-setting-0057932 | A workshop lasted 4 hours and 47 minutes. How many minutes is that?
In code:
```python
hours = 4
minutes = 47
total_minutes = hours * 60 + minutes # 287
print(total_minutes)
```
Console output: 287
The workshop lasted 287 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "287", "printed": "287", "notation": null} |
nlprog_det-setting-0057933 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "calc", "description": "Runs a short Python snippet and returns what it prints.... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"calc\", \"description\":... | nlprog_det | setting | original | null | deterministic | [] | [] | 269 | {"gold": "29200", "printed": "29200", "notation": null} |
nlprog_det-setting-0057935 | A 289-page report must be reviewed in 17 days. How many pages a day is that, evenly?
In Python:
```python
pages = 289
days = 17
per_day = pages // days # 17
print(per_day)
```
The program prints: 17
That is 17 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0057937 | Of a $8,000 budget, $3,400 has been spent. What percent is that?
In Python:
budget = 8000
spent = 3400
percent = spent / budget * 100 # 42.5
print(round(percent, 1))
The program prints 42.5, as expected.
42.5% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "42.5", "printed": "42.5", "notation": null} |
nlprog_det-setting-0057938 | A count moves from 800 to 880. By what percent did it change (use a minus sign for a drop)?
The change is 10%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0057939 | A hall has 18 rows of 20 seats, and 40 seats are empty. How many people are seated?
A Python solution:
```python
rows = 18
per_row = 20
empty = 40
seated = rows * per_row - empty # 320
print(seated)
```
Shell output — 320
320 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "320", "printed": "320", "notation": null} |
nlprog_det-setting-0057940 | <|start|><|user|>
A 20 × 9 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?<|eot|>
<|assistant|>
```python
import math
length = 20
width = 9
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 45
print(tiles)
```
Result: 45
45 tiles are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 20 × 9 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 20\nwidth = 9\ntile = 2\ntiles = math.ceil(length * width / (tile * tile)) # 45\nprint(tiles)\n```\nResult: 45\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "45", "printed": "45", "notation": null} |
nlprog_det-setting-0057941 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "calc", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "fetch_filing", ... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"calc\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \... | nlprog_det | setting | original | null | deterministic | [] | [] | 314 | {"gold": "5627.54", "printed": "5627.54", "notation": null} |
nlprog_det-setting-0057943 | A recipe for 2 people uses 300 grams of flour. How many grams are needed for 4 people?
We write it as a program:
```python
grams = 300
serves = 2
needed_for = 4
scaled = grams * needed_for // serves # 600
print(scaled)
```
Interpreter output: 600
Use 600 g of flour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0057945 | <|start|><|user|>
Starting from $12,000, the team spends $1,297, $3,943, $3,391, $1,452. What remains?<|eot|>
<|assistant|>
```python
budget = 12000
expenses = [1297, 3943, 3391, 1452]
left = budget - sum(expenses) # 1917
print(left)
```
Run result = 1917
The remaining budget is $1,917.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting from $12,000, the team spends $1,297, $3,943, $3,391, $1,452. What remains?"
},
{
"role": "assistant",
"content": "```python\nbudget = 12000\nexpenses = [1297, 3943, 3391, 1452]\nleft = budget - sum(expenses) # 1917\nprint(left)\n```\nRun result = 1917\n\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "1917", "printed": "1917", "notation": null} |
nlprog_det-setting-0057946 | <|start|><|user|>
If a 25-minute shift begins at 12:15 PM, what time does it finish?<|eot|>
<|assistant|>
start = 12 * 60 + 15
end = start + 25
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
The script prints 12:40 PM.
The shift finishes at 12:... | chat | [
{
"role": "user",
"content": "If a 25-minute shift begins at 12:15 PM, what time does it finish?"
},
{
"role": "assistant",
"content": " start = 12 * 60 + 15\n end = start + 25\n hour, minute = divmod(end, 60)\n print(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "12:40 PM", "printed": "12:40 PM", "notation": null} |
nlprog_det-setting-0057947 | How many minutes pass from 7:56 AM to 8:54 AM on the same day?
The program:
```python
start = 7 * 60 + 56 # 476
end = 8 * 60 + 54 # 534
print(end - start)
```
Executing it gives 58, as expected.
58 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "58", "printed": "58", "notation": null} |
nlprog_det-setting-0057948 | <|start|><|user|>
Rent of $1,100 goes up 2%. What is the new rent?<|eot|>
<|assistant|>
```python
rent = 1100
increase = 2 / 100 # 0.02
new_rent = rent * (1 + increase) # 1122.0
print(f"{new_rent:.2f}")
```
It prints: 1122.00
It rises to $1,122.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Rent of $1,100 goes up 2%. What is the new rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 1100\nincrease = 2 / 100 # 0.02\nnew_rent = rent * (1 + increase) # 1122.0\nprint(f\"{new_rent:.2f}\")\n```\nIt prints: 1122.00\n\nIt rises to $1,122.00."
}... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "1122.00", "printed": "1122.00", "notation": null} |
nlprog_det-setting-0057950 | <|start|><|user|>
How many weekdays (Monday to Friday) fall after March 19, 2022 up to and including April 28, 2022?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2022, 3, 19)
end = date(2022, 4, 28)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k... | chat | [
{
"role": "user",
"content": "How many weekdays (Monday to Friday) fall after March 19, 2022 up to and including April 28, 2022?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2022, 3, 19)\nend = date(2022, 4, 28)\ncount = 0\nfor k in range(1... | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "29", "printed": "29", "notation": null} |
nlprog_det-setting-0057951 | <|start|><|system|>
Tools (call with JSON):
{"name": "math_engine", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|>
<|user|>
What ... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n{\"name\": \"math_engine\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 234 | {"gold": "440.54", "printed": "440.54", "notation": null} |
nlprog_det-setting-0057953 | At 45 miles per hour, how many minutes does a 135-mile trip take?
Python does the arithmetic:
```python
distance = 135
speed = 45
minutes = distance / speed * 60 # 180.0
print(round(minutes))
```
Result = 180
The trip takes 180 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "180", "printed": "180", "notation": null} |
nlprog_det-setting-0057954 | To read 182 pages in 7 days, how many pages per day are needed?
As Python:
```python
pages = 182
days = 7
per_day = pages // days # 26
print(per_day)
```
Output of the run — 26
That is 26 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0057955 | A party has 21 days to respond to a motion served on July 5, 2023, with 3 days added because service was by mail. When is the response due?
Here is a short program for it.
```python
from datetime import date, timedelta
served = date(2023, 7, 5) # datetime.date(2023, 7, 5)
response_days = 21
mail_days = 3
due = served... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 177 | {"gold": "2023-07-29", "printed": "2023-07-29", "notation": null} |
nlprog_det-setting-0057956 | <|start|><|user|>
A court charges $15 per request plus $0.50 per page after the first 10 pages. What does a 19-page copy cost?<|eot|>
<|assistant|>
pages = 19
base = 15
per_page = 0.5
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page
print(f"{cost:.2f}")
When run, it prints 19.... | chat | [
{
"role": "user",
"content": "A court charges $15 per request plus $0.50 per page after the first 10 pages. What does a 19-page copy cost?"
},
{
"role": "assistant",
"content": " pages = 19\n base = 15\n per_page = 0.5\n free_pages = 10\n cost = base + max(0, pages - free_pages) *... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "19.50", "printed": "19.50", "notation": null} |
nlprog_det-setting-0057957 | How many of 132 votes make 60% (round up)?
Python:
```python
import math
voters = 132
needed = math.ceil(voters * 60 / 100) # 80
print(needed)
```
That prints 80.
At least 80 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "80", "printed": "80", "notation": null} |
nlprog_det-setting-0057958 | <|start|><|system|>
Keep answers short and correct.<|eot|>
<|user|>
A clerk's office charges $75 for each filing. Sara submits 4 filings. What is the total fee?<|eot|>
<|assistant|>
```python
fee = 75
filings = 4
total = fee * filings # 300
print(total)
```
(Printed result: 300)
The filings cost $300 in all.<|eot|>
<... | chat | [
{
"role": "system",
"content": "Keep answers short and correct."
},
{
"role": "user",
"content": "A clerk's office charges $75 for each filing. Sara submits 4 filings. What is the total fee?"
},
{
"role": "assistant",
"content": "```python\nfee = 75\nfilings = 4\ntotal = fee * filing... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0057959 | <|start|><|user|>
Prorate $2,400 of monthly rent for 22 days of a 31-day month.<|eot|>
<|assistant|>
The tenant owes $1,703.23.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Prorate $2,400 of monthly rent for 22 days of a 31-day month."
},
{
"role": "assistant",
"content": "The tenant owes $1,703.23."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "1703.23", "printed": "1703.23", "notation": null} |
nlprog_det-setting-0057960 | 8 claimants share a $36,000 settlement equally. What is each share?
We write it as a program:
```python
settlement = 36000
parties = 8
share = settlement // parties # 4500
print(share)
```
Run output — 4500
Each share is $4,500. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "4500", "printed": "4500", "notation": null} |
nlprog_det-setting-0057961 | Walls total 616 sq ft and each can covers 300 sq ft. How many cans should be bought?
Let the code do the arithmetic:
```python
import math
area = 616
coverage = 300
cans = math.ceil(area / coverage)
print(cans)
```
Printed:
3
3 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0057962 | A 18-month warranty starts on September 28, 2027. On what date does it end?
Python version:
```python
from datetime import date
start = date(2027, 9, 28)
months = 18
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
# result:... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "2029-03-28", "printed": "2029-03-28", "notation": null} |
nlprog_det-setting-0057963 | With 20% off, what does a $180 bicycle helmet cost?
Program:
```python
price = 180
discount = 20 / 100 # 0.2
sale_price = price * (1 - discount) # 144.0
print(f"{sale_price:.2f}")
```
That prints: 144.00
The sale price is $144.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "144.00", "printed": "144.00", "notation": null} |
nlprog_det-setting-0057964 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "python_exec", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
Printi... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"python_exec\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}... | nlprog_det | setting | original | null | deterministic | [] | [] | 253 | {"gold": "918.00", "printed": "918.00", "notation": null} |
nlprog_det-setting-0057965 | A board has 13 members. A majority is more than half. How many votes make a majority?
Python, step by step:
members = 13
majority = members // 2 + 1
print(majority)
(Printed: 7)
7 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 67 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0057966 | <|start|><|user|>
Prorate $2,400 of monthly rent for 10 days of a 30-day month.<|eot|>
<|assistant|>
The tenant owes $800.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Prorate $2,400 of monthly rent for 10 days of a 30-day month."
},
{
"role": "assistant",
"content": "The tenant owes $800.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "800.00", "printed": "800.00", "notation": null} |
nlprog_det-setting-0057967 | Divide 282 items among 5 groups as evenly as possible with equal groups. How many per group, and how many remain?
Programmatically:
```python
total = 282
groups = 5
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
This prints 56 each, 2 left over, as expected.
56 each... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "56 each, 2 left over", "printed": "56 each, 2 left over", "notation": null} |
nlprog_det-setting-0057968 | If a 135-minute seminar begins at 8:20 AM, what time does it finish?
Python does the arithmetic:
```python
start = 8 * 60 + 20
end = start + 135
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
On running, it outputs 10:35 AM.
It ends at 10:35 AM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "10:35 AM", "printed": "10:35 AM", "notation": null} |
nlprog_det-setting-0057969 | <|start|><|user|>
The rules require 3/5 of 22 members (round up) to be present. How many is that?<|eot|>
<|assistant|>
```python
import math
members = 22
quorum = math.ceil(members * 3 / 5) # 14
print(quorum)
```
Output — 14
14 members are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The rules require 3/5 of 22 members (round up) to be present. How many is that?"
},
{
"role": "assistant",
"content": "```python\nimport math\nmembers = 22\nquorum = math.ceil(members * 3 / 5) # 14\nprint(quorum)\n```\nOutput — 14\n\n14 members are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0057970 | A claim accrued on March 5, 2022. The limitations period is 5 years. On what date does it expire?
Python code:
```python
from datetime import date
accrued = date(2022, 3, 5) # datetime.date(2022, 3, 5)
years = 5
expires = accrued.replace(year=accrued.year + years) # datetime.date(2027, 3, 5)
print(expires.isoformat(... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "2027-03-05", "printed": "2027-03-05", "notation": null} |
nlprog_det-setting-0057971 | Each storage box holds 25 files. How many boxes are needed for 141 files?
6 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 28 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0057972 | <|start|><|system|>
You are a puzzle helper.<|eot|>
<|user|>
What does $1,000 grow to in 5 years at 5% annual compounding?<|eot|>
<|assistant|>
principal = 1000
rate = 5 / 100 # 0.05
years = 5
value = principal * (1 + rate) ** years # 1276.2815625000003
print(f"{value:.2f}")
Printed:
1276.28
It i... | chat | [
{
"role": "system",
"content": "You are a puzzle helper."
},
{
"role": "user",
"content": "What does $1,000 grow to in 5 years at 5% annual compounding?"
},
{
"role": "assistant",
"content": " principal = 1000\n rate = 5 / 100 # 0.05\n years = 5\n value = principal * (1 ... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "1276.28", "printed": "1276.28", "notation": null} |
nlprog_det-setting-0057973 | <|start|><|system|>
You are a data assistant.<|eot|>
<|user|>
Convert 5.3 km to meters.<|eot|>
<|assistant|>
```python
km = 5.3
meters = km * 1000
print(round(meters))
```
Executed, it shows: 5300
That is 5,300 meters.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a data assistant."
},
{
"role": "user",
"content": "Convert 5.3 km to meters."
},
{
"role": "assistant",
"content": "```python\nkm = 5.3\nmeters = km * 1000\nprint(round(meters))\n```\nExecuted, it shows: 5300\n\nThat is 5,300 meters."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "5300", "printed": "5300", "notation": null} |
nlprog_det-setting-0057974 | 5 boxes hold 12 hard drives each. After 16 are handed out, how many are left?
```python
boxes = 5
per_box = 12
given_away = 16
left = boxes * per_box - given_away # 44
print(left)
```
Run result = 44
44 hard drives are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "44", "printed": "44", "notation": null} |
nlprog_det-setting-0057975 | 7 walks at 250 calories each burn how many calories in total?
Here's the code.
```python
per_session = 250
sessions = 7
total = per_session * sessions # 1750
print(total)
```
The script prints 1750.
1750 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "1750", "printed": "1750", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.