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-0049258 | 2 claimants share a $84,000 settlement equally. What is each share?
Python version:
```python
settlement = 84000
parties = 2
share = settlement // parties # 42000
print(share)
```
Run result: 42000
Each party receives $42,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "42000", "printed": "42000", "notation": null} |
nlprog_det-setting-0049259 | <|start|><|user|>
A measure needs at least 67% of 212 votes. How many votes is that, rounded up?<|eot|>
<|assistant|>
At least 143 votes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A measure needs at least 67% of 212 votes. How many votes is that, rounded up?"
},
{
"role": "assistant",
"content": "At least 143 votes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "143", "printed": "143", "notation": null} |
nlprog_det-setting-0049260 | How many 2-foot square tiles cover a 17 ft by 7 ft floor (round up)?
```python
import math
length = 17
width = 7
tile = 2
tiles = math.ceil(length * width / (tile * tile))
print(tiles)
```
# output: 30
30 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0049261 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "lookup_statute", "description": "Look up the text of a U.S. Code se... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"lookup_statut... | nlprog_det | setting | original | null | deterministic | [] | [] | 364 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0049262 | Lucia was born on May 26, 1991. How old is Lucia on September 28, 2021?
Code:
```python
from datetime import date
born = date(1991, 5, 26) # datetime.date(1991, 5, 26)
on = date(2021, 9, 28) # datetime.date(2021, 9, 28)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 30
print(age)
```
Ou... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0049263 | From a $5,000 retainer, 5 hours at $275/hour have been drawn. What remains?
```python
retainer = 5000
hours = 5
rate = 275
left = retainer - hours * rate # 3625
print(left)
```
When run, it prints: 3625
$3,625 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "3625", "printed": "3625", "notation": null} |
nlprog_det-setting-0049264 | Convert -5 °C to Fahrenheit. It equals 23 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0049265 | With 40% off, what does a $75 backpack cost?
Python, step by step:
```python
price = 75
discount = 40 / 100 # 0.4
sale_price = price * (1 - discount) # 45.0
print(f"{sale_price:.2f}")
```
Execution result: 45.00
It costs $45.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "45.00", "printed": "45.00", "notation": null} |
nlprog_det-setting-0049266 | <|start|><|user|>
Split $355 between Malik and Sara in the ratio 2 to 3. What is Malik's share?<|eot|>
<|assistant|>
total = 355
parts_a = 2
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b) # 142
print(share_a)
Executed, it shows: 142
Malik gets $142.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Split $355 between Malik and Sara in the ratio 2 to 3. What is Malik's share?"
},
{
"role": "assistant",
"content": " total = 355\n parts_a = 2\n parts_b = 3\n share_a = total * parts_a // (parts_a + parts_b) # 142\n print(share_a)\nExecuted, it show... | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "142", "printed": "142", "notation": null} |
nlprog_det-setting-0049267 | <|start|><|user|>
With $8,000 in costs and $10,000 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|>
<|assistant|>
```python
revenue = 10000
costs = 8000
profit = revenue - costs # 2000
margin = profit / revenue * 100 # 20.0
print(round(margin, 1))
```
It outputs: 20.0
The margin is 20.0%.<... | chat | [
{
"role": "user",
"content": "With $8,000 in costs and $10,000 in revenue, what percent of revenue is profit? Round to one decimal."
},
{
"role": "assistant",
"content": "```python\nrevenue = 10000\ncosts = 8000\nprofit = revenue - costs # 2000\nmargin = profit / revenue * 100 # 20.0\nprint(ro... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "20.0", "printed": "20.0", "notation": null} |
nlprog_det-setting-0049268 | A 6 lb package ships at $8 base plus $2.00/lb. What is the charge?
Python version:
```python
base = 8
per_pound = 2.0
weight = 6
cost = base + per_pound * weight # 20.0
print(f"{cost:.2f}")
```
Execution result: 20.00
The charge is $20.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "20.00", "printed": "20.00", "notation": null} |
nlprog_det-setting-0049269 | <|start|><|user|>
Convert 51.9 km to meters.<|eot|>
<|assistant|>
51,900 m.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 51.9 km to meters."
},
{
"role": "assistant",
"content": "51,900 m."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "51900", "printed": "51900", "notation": null} |
nlprog_det-setting-0049270 | What day of the week is July 22, 2026?
July 22, 2026 is a Wednesday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 26 | {"gold": "Wednesday", "printed": "Wednesday", "notation": null} |
nlprog_det-setting-0049272 | A 6-month warranty starts on December 3, 2025. On what date does it end?
from datetime import date
start = date(2025, 12, 3)
months = 6
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
stdout = 2026-06-03... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "2026-06-03", "printed": "2026-06-03", "notation": null} |
nlprog_det-setting-0049273 | An office budget of $20,000 has expenses of $2,139, $1,364, $2,312, $3,992. How much of the budget is left?
Coded up:
```python
budget = 20000
expenses = [2139, 1364, 2312, 3992]
left = budget - sum(expenses) # 10193
print(left)
```
(Run result: 10193)
The remaining budget is $10,193. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "10193", "printed": "10193", "notation": null} |
nlprog_det-setting-0049274 | $10,000 is invested at 3% compounded yearly. What is it worth after 3 years?
Python:
```python
principal = 10000
rate = 3 / 100 # 0.03
years = 3
value = principal * (1 + rate) ** years # 10927.27
print(f"{value:.2f}")
```
# result: 10927.27
It is worth $10,927.27. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "10927.27", "printed": "10927.27", "notation": null} |
nlprog_det-setting-0049275 | Equipment costs $12,000, has a salvage value of $2,000, and a useful life of 6 years. What is the straight-line depreciation per year?
Set it up in Python:
```python
cost = 12000
salvage = 2000
years = 6
per_year = (cost - salvage) / years # 1666.6666666666667
print(f"{per_year:.2f}")
```
Running it prints 1666.67.
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "1666.67", "printed": "1666.67", "notation": null} |
nlprog_det-setting-0049276 | <|start|><|user|>
Convert 10 °C to Fahrenheit.<|eot|>
<|assistant|>
```python
celsius = 10
fahrenheit = celsius * 9 / 5 + 32 # 50.0
print(round(fahrenheit))
```
The interpreter prints 50.
That is 50 °F.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 10 °C to Fahrenheit."
},
{
"role": "assistant",
"content": "```python\ncelsius = 10\nfahrenheit = celsius * 9 / 5 + 32 # 50.0\nprint(round(fahrenheit))\n```\nThe interpreter prints 50.\n\nThat is 50 °F."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0049277 | <|start|><|user|>
A 5% increase is applied to $1,250 monthly rent. What is the new amount?<|eot|>
<|assistant|>
```python
rent = 1250
increase = 5 / 100 # 0.05
new_rent = rent * (1 + increase) # 1312.5
print(f"{new_rent:.2f}")
```
Printed:
1312.50
The new rent is $1,312.50.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 5% increase is applied to $1,250 monthly rent. What is the new amount?"
},
{
"role": "assistant",
"content": "```python\nrent = 1250\nincrease = 5 / 100 # 0.05\nnew_rent = rent * (1 + increase) # 1312.5\nprint(f\"{new_rent:.2f}\")\n```\nPrinted:\n1312.50\n\nThe ... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "1312.50", "printed": "1312.50", "notation": null} |
nlprog_det-setting-0049278 | What is 20 degrees Celsius in Fahrenheit?
One way, in code:
```python
celsius = 20
fahrenheit = celsius * 9 / 5 + 32 # 68.0
print(round(fahrenheit))
```
# program output: 68
It equals 68 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "68", "printed": "68", "notation": null} |
nlprog_det-setting-0049279 | <|start|><|user|>
How many whole days and leftover hours are in 131 hours?<|eot|>
<|assistant|>
```python
hours = 131
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Out: 5 days and 11 hours
That is 5 days and 11 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many whole days and leftover hours are in 131 hours?"
},
{
"role": "assistant",
"content": "```python\nhours = 131\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nOut: 5 days and 11 hours\n\nThat is 5 days and 11 hours."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "5 days and 11 hours", "printed": "5 days and 11 hours", "notation": null} |
nlprog_det-setting-0049280 | How many 1-foot square tiles cover a 7 ft by 5 ft floor (round up)?
Let's compute it with Python.
```python
import math
length = 7
width = 5
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 35
print(tiles)
```
This prints 35, as expected.
It takes 35 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "35", "printed": "35", "notation": null} |
nlprog_det-setting-0049281 | <|start|><|user|>
161 volunteers are split into 3 equal teams. How many are on each team, and how many are left over?<|eot|>
<|assistant|>
```python
total = 161
groups = 3
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Output = 53 each, 2 left over
The answer: 53 eac... | chat | [
{
"role": "user",
"content": "161 volunteers are split into 3 equal teams. How many are on each team, and how many are left over?"
},
{
"role": "assistant",
"content": "```python\ntotal = 161\ngroups = 3\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remainder} left o... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "53 each, 2 left over", "printed": "53 each, 2 left over", "notation": null} |
nlprog_det-setting-0049282 | <|start|><|user|>
Find the mean of these test scores: 74, 66 and 94.<|eot|>
<|assistant|>
```python
scores = [74, 66, 94]
average = sum(scores) // len(scores) # 78
print(average)
```
# out: 78
The average score is 78.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Find the mean of these test scores: 74, 66 and 94."
},
{
"role": "assistant",
"content": "```python\nscores = [74, 66, 94]\naverage = sum(scores) // len(scores) # 78\nprint(average)\n```\n# out: 78\n\nThe average score is 78."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "78", "printed": "78", "notation": null} |
nlprog_det-setting-0049284 | Find the mean of these test scores: 64, 50, 97, 84, 70 and 85.
We write it as a program:
```python
scores = [64, 50, 97, 84, 70, 85]
average = sum(scores) // len(scores)
print(average)
```
The program prints 75.
The average score is 75. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "75", "printed": "75", "notation": null} |
nlprog_det-setting-0049285 | Shipping costs $12 plus $2.00 per pound. What does a 5-pound parcel cost to ship?
One way, in code:
```python
base = 12
per_pound = 2.0
weight = 5
cost = base + per_pound * weight # 22.0
print(f"{cost:.2f}")
```
Interpreter output — 22.00
Shipping costs $22.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "22.00", "printed": "22.00", "notation": null} |
nlprog_det-setting-0049286 | Scale 240 g of flour from 2 servings to 4 servings.
We write it as a program:
```python
grams = 240
serves = 2
needed_for = 4
scaled = grams * needed_for // serves # 480
print(scaled)
```
Running this gives: 480
480 grams of flour are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "480", "printed": "480", "notation": null} |
nlprog_det-setting-0049287 | $10,000 is invested at 3% compounded yearly. What is it worth after 3 years?
As a program:
```python
principal = 10000
rate = 3 / 100 # 0.03
years = 3
value = principal * (1 + rate) ** years # 10927.27
print(f"{value:.2f}")
```
Executed, it shows: 10927.27
It is worth $10,927.27. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "10927.27", "printed": "10927.27", "notation": null} |
nlprog_det-setting-0049288 | 8 claimants share a $4,496 settlement equally. What is each share?
Let's compute it with Python.
```python
settlement = 4496
parties = 8
share = settlement // parties # 562
print(share)
```
Result:
562
Each party receives $562. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "562", "printed": "562", "notation": null} |
nlprog_det-setting-0049289 | A lease runs for 36 months at $1,640 per month. How much rent is paid over the whole term?
Coded up:
```python
monthly_rent = 1640
months = 36
total = monthly_rent * months # 59040
print(total)
```
Run result — 59040
The rent over the term is $59,040. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "59040", "printed": "59040", "notation": null} |
nlprog_det-setting-0049290 | A 29 lb package ships at $10 base plus $1.20/lb. What is the charge?
One way, in code:
```python
base = 10
per_pound = 1.2
weight = 29
cost = base + per_pound * weight
print(f"{cost:.2f}")
```
When run, it prints 44.80, as expected.
The charge is $44.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "44.80", "printed": "44.80", "notation": null} |
nlprog_det-setting-0049291 | <|start|><|user|>
A pack of 24 rulers sells for $1344. What does each cost?<|eot|>
<|assistant|>
```python
total = 1344
count = 24
per_item = total // count # 56
print(per_item)
```
Out = 56
The unit price is $56.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A pack of 24 rulers sells for $1344. What does each cost?"
},
{
"role": "assistant",
"content": "```python\ntotal = 1344\ncount = 24\nper_item = total // count # 56\nprint(per_item)\n```\nOut = 56\n\nThe unit price is $56."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "56", "printed": "56", "notation": null} |
nlprog_det-setting-0049292 | <|start|><|user|>
3 friends split a $120 bill plus a 15% tip evenly. How much does each pay?<|eot|>
<|assistant|>
bill = 120
tip_rate = 15 / 100 # 0.15
people = 3
each = bill * (1 + tip_rate) / people # 46.0
print(f"{each:.2f}")
This prints 46.00.
The share is $46.00 each.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "3 friends split a $120 bill plus a 15% tip evenly. How much does each pay?"
},
{
"role": "assistant",
"content": " bill = 120\n tip_rate = 15 / 100 # 0.15\n people = 3\n each = bill * (1 + tip_rate) / people # 46.0\n print(f\"{each:.2f}\")\nThis pri... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "46.00", "printed": "46.00", "notation": null} |
nlprog_det-setting-0049293 | Convert 8,847 CHF to USD at 1 CHF = 1.31 USD.
It converts to 11,589.57 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "11589.57", "printed": "11589.57", "notation": null} |
nlprog_det-setting-0049294 | <|start|><|system|>
You may call the tools below.
[{"name": "python_exec", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "translate", "description"... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"python_exec\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required... | nlprog_det | setting | original | null | deterministic | [] | [] | 392 | {"gold": "8350", "printed": "8350", "notation": null} |
nlprog_det-setting-0049295 | <|start|><|user|>
A water bill is $12 plus $4.75 per thousand gallons beyond the first 0 thousand. What is the bill for 14 thousand gallons?<|eot|>
<|assistant|>
```python
base = 12
rate = 4.75
used = 14
free = 0
bill = base + rate * max(0, used - free) # 78.5
print(f"{bill:.2f}")
```
# out: 78.50
The bill is $78.50.... | chat | [
{
"role": "user",
"content": "A water bill is $12 plus $4.75 per thousand gallons beyond the first 0 thousand. What is the bill for 14 thousand gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 12\nrate = 4.75\nused = 14\nfree = 0\nbill = base + rate * max(0, used - free) # 78.5... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "78.50", "printed": "78.50", "notation": null} |
nlprog_det-setting-0049296 | Revenue is $5,000 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)?
The program:
```python
revenue = 5000
costs = 4000
profit = revenue - costs # 1000
margin = profit / revenue * 100 # 20.0
print(round(margin, 1))
```
The program outputs 20.0.
The margin is 20.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "20.0", "printed": "20.0", "notation": null} |
nlprog_det-setting-0049297 | A workshop lasted 3 hours and 22 minutes. How many minutes is that?
Coded up:
```python
hours = 3
minutes = 22
total_minutes = hours * 60 + minutes # 202
print(total_minutes)
```
Output:
202
The workshop lasted 202 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "202", "printed": "202", "notation": null} |
nlprog_det-setting-0049298 | <|start|><|user|>
A 100-page report must be reviewed in 4 days. How many pages a day is that, evenly?<|eot|>
<|assistant|>
pages = 100
days = 4
per_day = pages // days # 25
print(per_day)
# execution result: 25
That is 25 pages per day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 100-page report must be reviewed in 4 days. How many pages a day is that, evenly?"
},
{
"role": "assistant",
"content": " pages = 100\n days = 4\n per_day = pages // days # 25\n print(per_day)\n# execution result: 25\n\nThat is 25 pages per day."
}
... | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0049299 | A lawyer's fee is 40% of a $12,000 recovery. How large is the fee?
We can compute it in Python.
```python
recovery = 12000
rate = 40 / 100 # 0.4
fee = recovery * rate # 4800.0
print(f"{fee:.2f}")
```
Result — 4800.00
The lawyer's fee comes to $4,800.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "4800.00", "printed": "4800.00", "notation": null} |
nlprog_det-setting-0049301 | Equal monthly payments repay $6,000 plus 10% simple yearly interest over 36 months. How large is a payment?
One way, in code:
```python
principal = 6000
annual_rate = 10 / 100 # 0.1
months = 36
interest = principal * annual_rate * months / 12 # 1800.0
payment = (principal + interest) / months # 216.66666666666666
p... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "216.67", "printed": "216.67", "notation": null} |
nlprog_det-setting-0049302 | <|start|><|user|>
A garage charges $2 an hour, never more than $15 a day. How much for 5 hours?<|eot|>
<|assistant|>
```python
rate = 2
hours = 5
daily_max = 15
cost = min(rate * hours, daily_max) # 10
print(cost)
```
Console:
10
The charge is $10.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A garage charges $2 an hour, never more than $15 a day. How much for 5 hours?"
},
{
"role": "assistant",
"content": "```python\nrate = 2\nhours = 5\ndaily_max = 15\ncost = min(rate * hours, daily_max) # 10\nprint(cost)\n```\nConsole:\n10\n\nThe charge is $10."
}
... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0049305 | A $2,500 security deposit has deductions of $200 and $200. How much is refunded?
```python
deposit = 2500
deductions = [200, 200]
refund = deposit - sum(deductions) # 2100
print(refund)
```
Executing it gives 2100.
The refund is $2,100. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "2100", "printed": "2100", "notation": null} |
nlprog_det-setting-0049306 | <|start|><|user|>
A seminar starts at 8:15 AM and lasts 90 minutes. When does it end?<|eot|>
<|assistant|>
```python
start = 8 * 60 + 15
end = start + 90
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
(stdout: 9:45 AM)
The seminar finishes at 9:45 AM.<|eot... | chat | [
{
"role": "user",
"content": "A seminar starts at 8:15 AM and lasts 90 minutes. When does it end?"
},
{
"role": "assistant",
"content": "```python\nstart = 8 * 60 + 15\nend = start + 90\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}\")\... | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "9:45 AM", "printed": "9:45 AM", "notation": null} |
nlprog_det-setting-0049307 | At $0.62 per mile, what is the reimbursement for 581 miles?
We can compute it in Python.
```python
miles = 581
rate = 0.62
reimbursement = miles * rate # 360.21999999999997
print(f"{reimbursement:.2f}")
```
Execution prints 360.22, as expected.
Reza is owed $360.22. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "360.22", "printed": "360.22", "notation": null} |
nlprog_det-setting-0049308 | Nikhil earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 42-hour week?
Coded up:
```python
rate = 16.0
hours = 42
regular = 40 * rate # 640.0
overtime = (hours - 40) * rate * 1.5 # 48.0
pay = regular + overtime # 688.0
print(f"{pay:.2f}")
```
(stdout: 688.00)
The weekly pay is $688.... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "688.00", "printed": "688.00", "notation": null} |
nlprog_det-setting-0049309 | Fines run at $250 per day up to a maximum of $1,000. How much after 18 days?
In code:
```python
per_day = 250
days = 18
cap = 1000
fine = min(per_day * days, cap) # 1000
print(fine)
```
Printed — 1000
$1,000 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0049310 | A 14-day notice period begins on January 19, 2022. On what date does it end?
Computation in Python:
```python
from datetime import date, timedelta
start = date(2022, 1, 19) # datetime.date(2022, 1, 19)
end = start + timedelta(days=14) # datetime.date(2022, 2, 2)
print(end.isoformat())
```
# printed: 2022-02-02
It e... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "2022-02-02", "printed": "2022-02-02", "notation": null} |
nlprog_det-setting-0049311 | A 16 × 5 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?
Let the code do the arithmetic:
```python
import math
length = 16
width = 5
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 80
print(tiles)
```
Program output — 80
It takes 80 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "80", "printed": "80", "notation": null} |
nlprog_det-setting-0049312 | Monthly rent is $1,200. A tenant moves in with 13 days left in a 30-day month. What is the prorated rent?
Computing it:
```python
rent = 1200
days_in_month = 30
days_occupied = 13
prorated = rent * days_occupied / days_in_month # 520.0
print(f"{prorated:.2f}")
```
The printout reads 520.00.
The prorated rent is $520... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "520.00", "printed": "520.00", "notation": null} |
nlprog_det-setting-0049313 | Convert 5 h 44 min (the length of a workshop) to minutes.
```python
hours = 5
minutes = 44
total_minutes = hours * 60 + minutes # 344
print(total_minutes)
```
The code prints 344.
The workshop lasted 344 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "344", "printed": "344", "notation": null} |
nlprog_det-setting-0049314 | <|start|><|system|>
Write short, precise answers.<|eot|>
<|user|>
A court charges $15 per request plus $0.50 per page after the first 10 pages. What does a 73-page copy cost?<|eot|>
<|assistant|>
pages = 73
base = 15
per_page = 0.5
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page ... | chat | [
{
"role": "system",
"content": "Write short, precise answers."
},
{
"role": "user",
"content": "A court charges $15 per request plus $0.50 per page after the first 10 pages. What does a 73-page copy cost?"
},
{
"role": "assistant",
"content": " pages = 73\n base = 15\n per_p... | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "46.50", "printed": "46.50", "notation": null} |
nlprog_det-setting-0049315 | What is the total rent on a 36-month lease at $850 a month?
```python
monthly_rent = 850
months = 36
total = monthly_rent * months
print(total)
```
Output: 30600
The rent over the term is $30,600. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "30600", "printed": "30600", "notation": null} |
nlprog_det-setting-0049316 | A meal costs $121.23. How much is a 15% tip?
Set it up in Python:
```python
bill = 121.23
tip_rate = 15 / 100 # 0.15
tip = bill * tip_rate # 18.1845
print(f"{tip:.2f}")
```
Python prints 18.18.
The tip is $18.18. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "18.18", "printed": "18.18", "notation": null} |
nlprog_det-setting-0049317 | After a 40% fee is taken from a $48,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?
Each client gets $7,200.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "7200.00", "printed": "7200.00", "notation": null} |
nlprog_det-setting-0049318 | A trial runs from January 14, 2022 to January 29, 2022, counting both days. How many calendar days is that?
Python, step by step:
```python
from datetime import date
first = date(2022, 1, 14) # datetime.date(2022, 1, 14)
last = date(2022, 1, 29) # datetime.date(2022, 1, 29)
days = (last - first).days + 1 # 16
print... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0049319 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "py_exec", "description": "A Python interpreter. Returns sta... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"name\": \"py_ex... | nlprog_det | setting | original | null | deterministic | [] | [] | 366 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0049320 | How many meters are in 1.7 kilometers?
The computation:
```python
km = 1.7
meters = km * 1000 # 1700.0
print(round(meters))
```
On running, it outputs: 1700
1,700 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "1700", "printed": "1700", "notation": null} |
nlprog_det-setting-0049321 | A pack of 5 lanyards sells for $205. What does each cost?
```python
total = 205
count = 5
per_item = total // count # 41
print(per_item)
```
(Execution result: 41)
Each one costs $41. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "41", "printed": "41", "notation": null} |
nlprog_det-setting-0049322 | <|start|><|user|>
A library charges $0.25 per book per day late. What is the fine for 4 books that are 7 days late?<|eot|>
<|assistant|>
per_day = 0.25
days_late = 7
books = 4
fine = per_day * days_late * books # 7.0
print(f"{fine:.2f}")
stdout — 7.00
$7.00 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A library charges $0.25 per book per day late. What is the fine for 4 books that are 7 days late?"
},
{
"role": "assistant",
"content": " per_day = 0.25\n days_late = 7\n books = 4\n fine = per_day * days_late * books # 7.0\n print(f\"{fine:.2f}\")\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "7.00", "printed": "7.00", "notation": null} |
nlprog_det-setting-0049323 | <|start|><|user|>
Sales went from 1,200 to 1,260. What is the percent change?<|eot|>
<|assistant|>
```python
old = 1200
new = 1260
change = (new - old) / old * 100 # 5.0
print(round(change))
```
When run, it prints: 5
It changed by 5%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Sales went from 1,200 to 1,260. What is the percent change?"
},
{
"role": "assistant",
"content": "```python\nold = 1200\nnew = 1260\nchange = (new - old) / old * 100 # 5.0\nprint(round(change))\n```\nWhen run, it prints: 5\n\nIt changed by 5%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0049324 | If a 5-year limitations period starts on December 12, 2017, when does it end?
```python
from datetime import date
accrued = date(2017, 12, 12) # datetime.date(2017, 12, 12)
years = 5
expires = accrued.replace(year=accrued.year + years) # datetime.date(2022, 12, 12)
print(expires.isoformat())
```
The program prints: ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "2022-12-12", "printed": "2022-12-12", "notation": null} |
nlprog_det-setting-0049325 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "compute", "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"]}}, {"name": ... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"compute\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python s... | nlprog_det | setting | original | null | deterministic | [] | [] | 356 | {"gold": "23.50", "printed": "23.50", "notation": null} |
nlprog_det-setting-0049326 | A client paid a $7,500 retainer. The firm has billed 6 hours at $275 per hour. How much of the retainer is left?
A short script:
```python
retainer = 7500
hours = 6
rate = 275
left = retainer - hours * rate # 5850
print(left)
```
# program output: 5850
The remaining balance is $5,850. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "5850", "printed": "5850", "notation": null} |
nlprog_det-setting-0049327 | A settlement of $18,000 is split equally among 4 parties. How much does each party receive?
Computing it:
```python
settlement = 18000
parties = 4
share = settlement // parties
print(share)
```
Execution prints 4500.
Each party receives $4,500. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "4500", "printed": "4500", "notation": null} |
nlprog_det-setting-0049328 | <|start|><|user|>
A meeting lasted 2 hours and 50 minutes. How many minutes is that?<|eot|>
<|assistant|>
```python
hours = 2
minutes = 50
total_minutes = hours * 60 + minutes # 170
print(total_minutes)
```
Running it prints: 170
That is 170 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A meeting lasted 2 hours and 50 minutes. How many minutes is that?"
},
{
"role": "assistant",
"content": "```python\nhours = 2\nminutes = 50\ntotal_minutes = hours * 60 + minutes # 170\nprint(total_minutes)\n```\nRunning it prints: 170\n\nThat is 170 minutes."
}
... | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "170", "printed": "170", "notation": null} |
nlprog_det-setting-0049329 | <|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": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]... | 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\": {\"program\": {\"type\": \"string\", \"description\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 231 | {"gold": "9600.00", "printed": "9600.00", "notation": null} |
nlprog_det-setting-0049330 | <|start|><|user|>
Split $350 between Fiona and Wen in the ratio 2 to 5. What is Fiona's share?<|eot|>
<|assistant|>
```python
total = 350
parts_a = 2
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 100
print(share_a)
```
Result = 100
Fiona gets $100.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Split $350 between Fiona and Wen in the ratio 2 to 5. What is Fiona's share?"
},
{
"role": "assistant",
"content": "```python\ntotal = 350\nparts_a = 2\nparts_b = 5\nshare_a = total * parts_a // (parts_a + parts_b) # 100\nprint(share_a)\n```\nResult = 100\n\nFiona ... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "100", "printed": "100", "notation": null} |
nlprog_det-setting-0049331 | Each of Jamal's bike rides burns 300 calories. How many calories over 6 bike rides?
Let the code do the arithmetic:
per_session = 300
sessions = 6
total = per_session * sessions # 1800
print(total)
Execution result — 1800
1800 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "1800", "printed": "1800", "notation": null} |
nlprog_det-setting-0049332 | Someone born June 12, 1952 turns how old by March 11, 2020? Give the age in whole years.
We write it as a program:
```python
from datetime import date
born = date(1952, 6, 12)
on = date(2020, 3, 11)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day))
print(age)
```
Run output: 67
Ana is 67. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "67", "printed": "67", "notation": null} |
nlprog_det-setting-0049333 | <|start|><|user|>
169 copies of a 44-page packet are printed at $0.12 per page. What is the cost?<|eot|>
<|assistant|>
Printing costs $892.32.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "169 copies of a 44-page packet are printed at $0.12 per page. What is the cost?"
},
{
"role": "assistant",
"content": "Printing costs $892.32."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "892.32", "printed": "892.32", "notation": null} |
nlprog_det-setting-0049334 | <|start|><|system|>
Show working only when it helps.<|eot|>
<|user|>
A $30,000 grant pays $0 up front and the rest in 6 equal installments. How large is each installment?<|eot|>
<|assistant|>
```python
grant = 30000
up_front = 0
installments = 6
each = (grant - up_front) / installments # 5000.0
print(f"{each:.2f}")
``... | chat | [
{
"role": "system",
"content": "Show working only when it helps."
},
{
"role": "user",
"content": "A $30,000 grant pays $0 up front and the rest in 6 equal installments. How large is each installment?"
},
{
"role": "assistant",
"content": "```python\ngrant = 30000\nup_front = 0\ninst... | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "5000.00", "printed": "5000.00", "notation": null} |
nlprog_det-setting-0049335 | A 10-day notice period begins on July 12, 2023. On what date does it end?
Coded up:
```python
from datetime import date, timedelta
start = date(2023, 7, 12) # datetime.date(2023, 7, 12)
end = start + timedelta(days=10) # datetime.date(2023, 7, 22)
print(end.isoformat())
```
It prints 2023-07-22.
That date is July 2... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "2023-07-22", "printed": "2023-07-22", "notation": null} |
nlprog_det-setting-0049336 | A trial runs from April 25, 2025 to May 5, 2025, counting both days. How many calendar days is that?
Here is the program.
```python
from datetime import date
first = date(2025, 4, 25) # datetime.date(2025, 4, 25)
last = date(2025, 5, 5) # datetime.date(2025, 5, 5)
days = (last - first).days + 1 # 11
print(days)
```... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "11", "printed": "11", "notation": null} |
nlprog_det-setting-0049337 | <|start|><|user|>
Cyrus and Yusuf share $1,516 in the ratio 1:3. How much does Cyrus get?<|eot|>
<|assistant|>
```python
total = 1516
parts_a = 1
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b) # 379
print(share_a)
```
# output: 379
Cyrus gets $379.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Cyrus and Yusuf share $1,516 in the ratio 1:3. How much does Cyrus get?"
},
{
"role": "assistant",
"content": "```python\ntotal = 1516\nparts_a = 1\nparts_b = 3\nshare_a = total * parts_a // (parts_a + parts_b) # 379\nprint(share_a)\n```\n# output: 379\n\nCyrus get... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "379", "printed": "379", "notation": null} |
nlprog_det-setting-0049338 | Equal monthly payments repay $2,400 plus 5% simple yearly interest over 36 months. How large is a payment?
We can compute it in Python.
```python
principal = 2400
annual_rate = 5 / 100 # 0.05
months = 36
interest = principal * annual_rate * months / 12 # 360.0
payment = (principal + interest) / months # 76.66666666... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "76.67", "printed": "76.67", "notation": null} |
nlprog_det-setting-0049340 | A $24,000 grant pays $6,000 up front and the rest in 3 equal installments. How large is each installment?
Code:
```python
grant = 24000
up_front = 6000
installments = 3
each = (grant - up_front) / installments
print(f"{each:.2f}")
```
Execution prints: 6000.00
Each installment is $6,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "6000.00", "printed": "6000.00", "notation": null} |
nlprog_det-setting-0049341 | <|start|><|user|>
214 volunteers are split into 8 equal teams. How many are on each team, and how many are left over?<|eot|>
<|assistant|>
```python
total = 214
groups = 8
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Output — 26 each, 6 left over
26 each, 6 left ov... | chat | [
{
"role": "user",
"content": "214 volunteers are split into 8 equal teams. How many are on each team, and how many are left over?"
},
{
"role": "assistant",
"content": "```python\ntotal = 214\ngroups = 8\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remainder} left o... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "26 each, 6 left over", "printed": "26 each, 6 left over", "notation": null} |
nlprog_det-setting-0049342 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}, {"name":... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"str... | nlprog_det | setting | original | null | deterministic | [] | [] | 397 | {"gold": "1200", "printed": "1200", "notation": null} |
nlprog_det-setting-0049343 | Revenue is $24,000 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?
Set it up in Python:
```python
revenue = 24000
costs = 20000
profit = revenue - costs # 4000
margin = profit / revenue * 100 # 16.666666666666664
print(round(margin, 1))
```
Program output — 16.7
The margin is... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "16.7", "printed": "16.7", "notation": null} |
nlprog_det-setting-0049344 | A quorum is 3/5 of the 59 members, rounded up. How many members make a quorum?
```python
import math
members = 59
quorum = math.ceil(members * 3 / 5) # 36
print(quorum)
```
(Result: 36)
36 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0049346 | <|start|><|system|>
Tools you may use:
[{"name": "py_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|>
A 4 lb package ships at $10 ... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"py_exec\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"sc... | nlprog_det | setting | original | null | deterministic | [] | [] | 230 | {"gold": "18.00", "printed": "18.00", "notation": null} |
nlprog_det-setting-0049347 | Rent of $1,250 goes up 6%. What is the new rent?
```python
rent = 1250
increase = 6 / 100 # 0.06
new_rent = rent * (1 + increase) # 1325.0
print(f"{new_rent:.2f}")
```
Run result = 1325.00
It rises to $1,325.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "1325.00", "printed": "1325.00", "notation": null} |
nlprog_det-setting-0049348 | Rent of $1,100 goes up 6%. What is the new rent?
Program:
```python
rent = 1100
increase = 6 / 100 # 0.06
new_rent = rent * (1 + increase) # 1166.0
print(f"{new_rent:.2f}")
```
Interpreter output — 1166.00
The new rent is $1,166.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "1166.00", "printed": "1166.00", "notation": null} |
nlprog_det-setting-0049349 | <|start|><|user|>
A quorum is 1/3 of the 19 members, rounded up. How many members make a quorum?<|eot|>
<|assistant|>
import math
members = 19
quorum = math.ceil(members * 1 / 3) # 7
print(quorum)
Executed, it shows: 7
7 members are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A quorum is 1/3 of the 19 members, rounded up. How many members make a quorum?"
},
{
"role": "assistant",
"content": " import math\n members = 19\n quorum = math.ceil(members * 1 / 3) # 7\n print(quorum)\nExecuted, it shows: 7\n\n7 members are needed."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0049350 | <|start|><|system|>
Be brief and correct.<|eot|>
<|user|>
What day of the week is August 3, 1995?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(1995, 8, 3) # datetime.date(1995, 8, 3)
print(hearing.strftime("%A"))
```
Out = Thursday
It is a Thursday.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be brief and correct."
},
{
"role": "user",
"content": "What day of the week is August 3, 1995?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(1995, 8, 3) # datetime.date(1995, 8, 3)\nprint(hearing.strftime... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "Thursday", "printed": "Thursday", "notation": null} |
nlprog_det-setting-0049351 | <|start|><|user|>
Notice was given on May 6, 2018. The notice period is 21 days. When does it run out?<|eot|>
<|assistant|>
from datetime import date, timedelta
start = date(2018, 5, 6) # datetime.date(2018, 5, 6)
end = start + timedelta(days=21) # datetime.date(2018, 5, 27)
print(end.isoformat())
Out... | chat | [
{
"role": "user",
"content": "Notice was given on May 6, 2018. The notice period is 21 days. When does it run out?"
},
{
"role": "assistant",
"content": " from datetime import date, timedelta\n start = date(2018, 5, 6) # datetime.date(2018, 5, 6)\n end = start + timedelta(days=21) # d... | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "2018-05-27", "printed": "2018-05-27", "notation": null} |
nlprog_det-setting-0049352 | From a $5,000 retainer, 5 hours at $250/hour have been drawn. What remains?
We can compute it in Python.
retainer = 5000
hours = 5
rate = 250
left = retainer - hours * rate # 3750
print(left)
Running it prints: 3750
$3,750 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "3750", "printed": "3750", "notation": null} |
nlprog_det-setting-0049353 | A court charges $5 per request plus $0.25 per page after the first 10 pages. What does a 63-page copy cost?
Here is a short program for it.
```python
pages = 63
base = 5
per_page = 0.25
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 18.25
print(f"{cost:.2f}")
```
Running this gives: 18.25
The ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "18.25", "printed": "18.25", "notation": null} |
nlprog_det-setting-0049354 | Goran drove 47 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement?
Here is a short program for it.
```python
miles = 47
rate = 0.58
reimbursement = miles * rate # 27.259999999999998
print(f"{reimbursement:.2f}")
```
When run, it prints 27.26.
The reimbursement is $27.26. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "27.26", "printed": "27.26", "notation": null} |
nlprog_det-setting-0049355 | How much sales tax is charged on a $773.02 purchase at 9%?
Script:
```python
price = 773.02
tax_rate = 9 / 100 # 0.09
tax = price * tax_rate # 69.5718
print(f"{tax:.2f}")
```
# printed: 69.57
$69.57 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "69.57", "printed": "69.57", "notation": null} |
nlprog_det-setting-0049356 | <|start|><|user|>
Under a 40% contingency agreement, what fee is owed on a $25,000 award?<|eot|>
<|assistant|>
```python
recovery = 25000
rate = 40 / 100 # 0.4
fee = recovery * rate # 10000.0
print(f"{fee:.2f}")
```
Python prints 10000.00, as expected.
The fee is $10,000.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Under a 40% contingency agreement, what fee is owed on a $25,000 award?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 25000\nrate = 40 / 100 # 0.4\nfee = recovery * rate # 10000.0\nprint(f\"{fee:.2f}\")\n```\nPython prints 10000.00, as expected.\n\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "10000.00", "printed": "10000.00", "notation": null} |
nlprog_det-setting-0049357 | Starting with 540 file boxes and using 18 per day, how many remain after 17 days?
Script:
```python
stock = 540
per_day = 18
days = 17
left = stock - per_day * days # 234
print(left)
```
The printout reads 234.
234 file boxes are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "234", "printed": "234", "notation": null} |
nlprog_det-setting-0049358 | A hearing is set for May 20, 2000. What day of the week is that?
A few lines of Python do it:
```python
from datetime import date
hearing = date(2000, 5, 20) # datetime.date(2000, 5, 20)
print(hearing.strftime("%A"))
```
(stdout: Saturday)
May 20, 2000 is a Saturday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "Saturday", "printed": "Saturday", "notation": null} |
nlprog_det-setting-0049359 | 13 tape rolls cost $2 apiece. With 10% tax added, what is the total?
The Python version:
```python
quantity = 13
unit_price = 2
subtotal = quantity * unit_price # 26
total = subtotal * (1 + 10 / 100) # 28.6
print(f"{total:.2f}")
```
Running it prints 28.60, as expected.
The invoice total is $28.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "28.60", "printed": "28.60", "notation": null} |
nlprog_det-setting-0049360 | <|start|><|system|>
Tool definitions:
{"name": "compute", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|>
<|user|>
How much sales tax is charged on... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"compute\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"sourc... | nlprog_det | setting | original | null | deterministic | [] | [] | 207 | {"gold": "42.73", "printed": "42.73", "notation": null} |
nlprog_det-setting-0049361 | Each storage box holds 40 files. How many boxes are needed for 333 files?
One way, in code:
```python
import math
files = 333
per_box = 40
boxes = math.ceil(files / per_box) # 9
print(boxes)
```
Execution prints: 9
It takes 9 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0049362 | <|start|><|user|>
Counting the first and last day, how many days are there from November 5, 2027 through November 28, 2027?<|eot|>
<|assistant|>
from datetime import date
first = date(2027, 11, 5) # datetime.date(2027, 11, 5)
last = date(2027, 11, 28) # datetime.date(2027, 11, 28)
days = (last - first... | chat | [
{
"role": "user",
"content": "Counting the first and last day, how many days are there from November 5, 2027 through November 28, 2027?"
},
{
"role": "assistant",
"content": " from datetime import date\n first = date(2027, 11, 5) # datetime.date(2027, 11, 5)\n last = date(2027, 11, 28)... | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0049363 | To read 376 pages in 8 days, how many pages per day are needed? 47 pages a day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 24 | {"gold": "47", "printed": "47", "notation": null} |
nlprog_det-setting-0049364 | How much is a $64 daily meal allowance over 8 days?
The allowance is $512. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 23 | {"gold": "512", "printed": "512", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.