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-0066392 | <|start|><|user|>
Revenue is $14,500 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)?<|eot|>
<|assistant|>
The margin is 13.8%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Revenue is $14,500 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)?"
},
{
"role": "assistant",
"content": "The margin is 13.8%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "13.8", "printed": "13.8", "notation": null} |
nlprog_det-setting-0066393 | Straight-line depreciation: cost $18,000, salvage $6,000, 3 years. How much per year?
In code:
```python
cost = 18000
salvage = 6000
years = 3
per_year = (cost - salvage) / years # 4000.0
print(f"{per_year:.2f}")
```
When run, it prints 4000.00.
Depreciation is $4,000.00 per year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "4000.00", "printed": "4000.00", "notation": null} |
nlprog_det-setting-0066394 | Rent of $900 goes up 5%. What is the new rent?
Set it up in Python:
```python
rent = 900
increase = 5 / 100 # 0.05
new_rent = rent * (1 + increase) # 945.0
print(f"{new_rent:.2f}")
```
# out: 945.00
The new rent is $945.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "945.00", "printed": "945.00", "notation": null} |
nlprog_det-setting-0066395 | 100 volunteers are split into 3 equal teams. How many are on each team, and how many are left over?
Programmatically:
```python
total = 100
groups = 3
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Output: 33 each, 1 left over
The answer: 33 each, 1 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "33 each, 1 left over", "printed": "33 each, 1 left over", "notation": null} |
nlprog_det-setting-0066396 | <|start|><|user|>
An office budget of $5,000 has expenses of $1,796, $2,642. How much of the budget is left?<|eot|>
<|assistant|>
```python
budget = 5000
expenses = [1796, 2642]
left = budget - sum(expenses) # 562
print(left)
```
stdout:
562
The remaining budget is $562.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An office budget of $5,000 has expenses of $1,796, $2,642. How much of the budget is left?"
},
{
"role": "assistant",
"content": "```python\nbudget = 5000\nexpenses = [1796, 2642]\nleft = budget - sum(expenses) # 562\nprint(left)\n```\nstdout:\n562\n\nThe remaining... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "562", "printed": "562", "notation": null} |
nlprog_det-setting-0066397 | A customer buys 2 cables at $17 each, 6 scissors at $11 each, 4 hard drives at $5 each, 4 mugs at $3 each and pays with $150. How much change is due?
Coded up:
items = [(2, 17), (6, 11), (4, 5), (4, 3)]
total = sum(q * p for q, p in items) # 132
paid = 150
change = paid - total # 18
print(change)... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0066398 | <|start|><|system|>
Be concise.<|eot|>
<|user|>
A 10 × 8 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?<|eot|>
<|assistant|>
```python
import math
length = 10
width = 8
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 80
print(tiles)
```
stdout — 80
80 tiles are needed.<|eot|>
<|e... | chat | [
{
"role": "system",
"content": "Be concise."
},
{
"role": "user",
"content": "A 10 × 8 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 10\nwidth = 8\ntile = 1\ntiles = math.ceil(length * w... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "80", "printed": "80", "notation": null} |
nlprog_det-setting-0066399 | A party has 30 days to respond to a motion served on October 13, 2018, with 3 days added because service was by mail. When is the response due?
Python code:
```python
from datetime import date, timedelta
served = date(2018, 10, 13) # datetime.date(2018, 10, 13)
response_days = 30
mail_days = 3
due = served + timedelt... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 176 | {"gold": "2018-11-15", "printed": "2018-11-15", "notation": null} |
nlprog_det-setting-0066400 | Farah has 17 documents to file, and each filing costs $25. How much are the filing fees in total?
Computation in Python:
```python
fee = 25
filings = 17
total = fee * filings
print(total)
```
It prints 425, as expected.
The total fee is $425. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "425", "printed": "425", "notation": null} |
nlprog_det-setting-0066401 | <|start|><|user|>
A 10-day notice period begins on January 4, 2023. On what date does it end?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2023, 1, 4) # datetime.date(2023, 1, 4)
end = start + timedelta(days=10) # datetime.date(2023, 1, 14)
print(end.isoformat())
```
Printed — 2023... | chat | [
{
"role": "user",
"content": "A 10-day notice period begins on January 4, 2023. On what date does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2023, 1, 4) # datetime.date(2023, 1, 4)\nend = start + timedelta(days=10) # datetime.da... | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "2023-01-14", "printed": "2023-01-14", "notation": null} |
nlprog_det-setting-0066402 | One can of paint covers 400 square feet. How many cans are needed for 481 square feet of wall?
2 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0066403 | <|start|><|user|>
An unpaid balance of $1,000 accrues 2% simple interest per month. How much interest accrues in 4 months?<|eot|>
<|assistant|>
The interest is $80.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An unpaid balance of $1,000 accrues 2% simple interest per month. How much interest accrues in 4 months?"
},
{
"role": "assistant",
"content": "The interest is $80.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "80.00", "printed": "80.00", "notation": null} |
nlprog_det-setting-0066405 | <|start|><|user|>
Printing costs 10 cents a page. What does it cost to print 10 copies of a 41-page handout?<|eot|>
<|assistant|>
```python
pages = 41
copies = 10
cost_per_page = 0.1
cost = pages * copies * cost_per_page # 41.0
print(f"{cost:.2f}")
```
# console output: 41.00
The job costs $41.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Printing costs 10 cents a page. What does it cost to print 10 copies of a 41-page handout?"
},
{
"role": "assistant",
"content": "```python\npages = 41\ncopies = 10\ncost_per_page = 0.1\ncost = pages * copies * cost_per_page # 41.0\nprint(f\"{cost:.2f}\")\n```\n# c... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "41.00", "printed": "41.00", "notation": null} |
nlprog_det-setting-0066406 | What is the total rent on a 24-month lease at $850 a month?
Program:
monthly_rent = 850
months = 24
total = monthly_rent * months # 20400
print(total)
# printed result: 20400
In total, $20,400 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "20400", "printed": "20400", "notation": null} |
nlprog_det-setting-0066407 | <|start|><|user|>
How long, in days, is it from June 12, 2018 until June 3, 2019?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2018, 6, 12) # datetime.date(2018, 6, 12)
second = date(2019, 6, 3) # datetime.date(2019, 6, 3)
print((second - first).days)
```
It prints 356.
There are 356 days be... | chat | [
{
"role": "user",
"content": "How long, in days, is it from June 12, 2018 until June 3, 2019?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2018, 6, 12) # datetime.date(2018, 6, 12)\nsecond = date(2019, 6, 3) # datetime.date(2019, 6, 3)\nprint((secon... | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "356", "printed": "356", "notation": null} |
nlprog_det-setting-0066408 | <|start|><|user|>
Mei and Olga share $2,520 in the ratio 3:5. How much does Mei get?<|eot|>
<|assistant|>
```python
total = 2520
parts_a = 3
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 945
print(share_a)
```
The script prints 945.
Mei gets $945.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Mei and Olga share $2,520 in the ratio 3:5. How much does Mei get?"
},
{
"role": "assistant",
"content": "```python\ntotal = 2520\nparts_a = 3\nparts_b = 5\nshare_a = total * parts_a // (parts_a + parts_b) # 945\nprint(share_a)\n```\nThe script prints 945.\n\nMei g... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "945", "printed": "945", "notation": null} |
nlprog_det-setting-0066409 | <|start|><|user|>
From a $7,500 retainer, 4 hours at $150/hour have been drawn. What remains?<|eot|>
<|assistant|>
The remaining balance is $6,900.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From a $7,500 retainer, 4 hours at $150/hour have been drawn. What remains?"
},
{
"role": "assistant",
"content": "The remaining balance is $6,900."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "6900", "printed": "6900", "notation": null} |
nlprog_det-setting-0066410 | <|start|><|user|>
The rules require 3/5 of 44 members (round up) to be present. How many is that?<|eot|>
<|assistant|>
import math
members = 44
quorum = math.ceil(members * 3 / 5) # 27
print(quorum)
Running this gives: 27
That is 27 members.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The rules require 3/5 of 44 members (round up) to be present. How many is that?"
},
{
"role": "assistant",
"content": " import math\n members = 44\n quorum = math.ceil(members * 3 / 5) # 27\n print(quorum)\nRunning this gives: 27\n\nThat is 27 members."... | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "27", "printed": "27", "notation": null} |
nlprog_det-setting-0066411 | 8 boxes hold 8 keyboards each. After 14 are handed out, how many are left?
Python code:
boxes = 8
per_box = 8
given_away = 14
left = boxes * per_box - given_away # 50
print(left)
Executed, it shows 50.
That leaves 50 keyboards. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0066412 | At $0.65 per mile, what is the reimbursement for 351 miles?
Script:
miles = 351
rate = 0.65
reimbursement = miles * rate # 228.15
print(f"{reimbursement:.2f}")
Executing it gives 228.15.
The reimbursement is $228.15. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "228.15", "printed": "228.15", "notation": null} |
nlprog_det-setting-0066413 | <|start|><|user|>
A meal costs $19.86. How much is a 18% tip?<|eot|>
<|assistant|>
The tip is $3.57.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A meal costs $19.86. How much is a 18% tip?"
},
{
"role": "assistant",
"content": "The tip is $3.57."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "3.57", "printed": "3.57", "notation": null} |
nlprog_det-setting-0066414 | A trial runs from August 6, 2020 to August 25, 2020, counting both days. How many calendar days is that?
Here is the program.
```python
from datetime import date
first = date(2020, 8, 6) # datetime.date(2020, 8, 6)
last = date(2020, 8, 25) # datetime.date(2020, 8, 25)
days = (last - first).days + 1 # 20
print(days)... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0066415 | 2 books come back 24 days late, at $0.50 a day each. What is the fine?
Here's the code.
```python
per_day = 0.5
days_late = 24
books = 2
fine = per_day * days_late * books
print(f"{fine:.2f}")
```
Interpreter output — 24.00
The fine is $24.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "24.00", "printed": "24.00", "notation": null} |
nlprog_det-setting-0066416 | What is a 10% tip on a $182.57 bill?
Written as code:
```python
bill = 182.57
tip_rate = 10 / 100 # 0.1
tip = bill * tip_rate # 18.257
print(f"{tip:.2f}")
```
(Output: 18.26)
Leave $18.26. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "18.26", "printed": "18.26", "notation": null} |
nlprog_det-setting-0066417 | A settlement of $7,350 is split equally among 2 parties. How much does each party receive?
Let the code do the arithmetic:
```python
settlement = 7350
parties = 2
share = settlement // parties # 3675
print(share)
```
It outputs: 3675
Each share is $3,675. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "3675", "printed": "3675", "notation": null} |
nlprog_det-setting-0066418 | <|start|><|user|>
Shipping costs $5 plus $0.75 per pound. What does a 39-pound parcel cost to ship?<|eot|>
<|assistant|>
```python
base = 5
per_pound = 0.75
weight = 39
cost = base + per_pound * weight # 34.25
print(f"{cost:.2f}")
```
(Out: 34.25)
The charge is $34.25.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Shipping costs $5 plus $0.75 per pound. What does a 39-pound parcel cost to ship?"
},
{
"role": "assistant",
"content": "```python\nbase = 5\nper_pound = 0.75\nweight = 39\ncost = base + per_pound * weight # 34.25\nprint(f\"{cost:.2f}\")\n```\n(Out: 34.25)\n\nThe c... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "34.25", "printed": "34.25", "notation": null} |
nlprog_det-setting-0066419 | <|start|><|user|>
A 20 × 9 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?<|eot|>
<|assistant|>
import math
length = 20
width = 9
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 180
print(tiles)
# out: 180
180 tiles are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 20 × 9 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?"
},
{
"role": "assistant",
"content": " import math\n length = 20\n width = 9\n tile = 1\n tiles = math.ceil(length * width / (tile * tile)) # 180\n print(tiles)\n# o... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "180", "printed": "180", "notation": null} |
nlprog_det-setting-0066420 | <|start|><|user|>
With $36,000 in costs and $36,500 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|>
<|assistant|>
revenue = 36500
costs = 36000
profit = revenue - costs # 500
margin = profit / revenue * 100 # 1.36986301369863
print(round(margin, 1))
The interpreter prin... | chat | [
{
"role": "user",
"content": "With $36,000 in costs and $36,500 in revenue, what percent of revenue is profit? Round to one decimal."
},
{
"role": "assistant",
"content": " revenue = 36500\n costs = 36000\n profit = revenue - costs # 500\n margin = profit / revenue * 100 # 1.369863... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "1.4", "printed": "1.4", "notation": null} |
nlprog_det-setting-0066421 | <|start|><|user|>
A quorum is 2/3 of the 16 members, rounded up. How many members make a quorum?<|eot|>
<|assistant|>
```python
import math
members = 16
quorum = math.ceil(members * 2 / 3) # 11
print(quorum)
```
# console output: 11
11 members are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A quorum is 2/3 of the 16 members, rounded up. How many members make a quorum?"
},
{
"role": "assistant",
"content": "```python\nimport math\nmembers = 16\nquorum = math.ceil(members * 2 / 3) # 11\nprint(quorum)\n```\n# console output: 11\n\n11 members are needed."... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "11", "printed": "11", "notation": null} |
nlprog_det-setting-0066422 | Convert 3 h 33 min (the length of a deposition) to minutes.
Computing it:
```python
hours = 3
minutes = 33
total_minutes = hours * 60 + minutes # 213
print(total_minutes)
```
Output:
213
The deposition lasted 213 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "213", "printed": "213", "notation": null} |
nlprog_det-setting-0066423 | A $60,000 grant pays $2,000 up front and the rest in 6 equal installments. How large is each installment?
```python
grant = 60000
up_front = 2000
installments = 6
each = (grant - up_front) / installments # 9666.666666666666
print(f"{each:.2f}")
```
It prints 9666.67.
Each installment is $9,666.67. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "9666.67", "printed": "9666.67", "notation": null} |
nlprog_det-setting-0066424 | A 338-page report must be reviewed in 13 days. How many pages a day is that, evenly?
Here is the program.
```python
pages = 338
days = 13
per_day = pages // days # 26
print(per_day)
```
What it prints: 26
That is 26 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0066425 | <|start|><|user|>
Parking is $2 per hour with a daily maximum of $15. What do 4 hours cost?<|eot|>
<|assistant|>
```python
rate = 2
hours = 4
daily_max = 15
cost = min(rate * hours, daily_max) # 8
print(cost)
```
Running it prints 8, as expected.
Parking costs $8.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Parking is $2 per hour with a daily maximum of $15. What do 4 hours cost?"
},
{
"role": "assistant",
"content": "```python\nrate = 2\nhours = 4\ndaily_max = 15\ncost = min(rate * hours, daily_max) # 8\nprint(cost)\n```\nRunning it prints 8, as expected.\n\nParking ... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0066426 | <|start|><|system|>
Tool definitions:
[{"name": "run_python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
A hearing is set for Jul... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"run_python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\... | nlprog_det | setting | original | null | deterministic | [] | [] | 212 | {"gold": "Wednesday", "printed": "Wednesday", "notation": null} |
nlprog_det-setting-0066427 | <|start|><|user|>
Straight-line depreciation: cost $24,000, salvage $3,000, 6 years. How much per year?<|eot|>
<|assistant|>
```python
cost = 24000
salvage = 3000
years = 6
per_year = (cost - salvage) / years # 3500.0
print(f"{per_year:.2f}")
```
Printed:
3500.00
$3,500.00 a year.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Straight-line depreciation: cost $24,000, salvage $3,000, 6 years. How much per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 24000\nsalvage = 3000\nyears = 6\nper_year = (cost - salvage) / years # 3500.0\nprint(f\"{per_year:.2f}\")\n```\nPrinted:\... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "3500.00", "printed": "3500.00", "notation": null} |
nlprog_det-setting-0066428 | Starting with 352 desk lamps and using 40 per day, how many remain after 7 days?
Computation in Python:
```python
stock = 352
per_day = 40
days = 7
left = stock - per_day * days # 72
print(left)
```
Run result = 72
72 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "72", "printed": "72", "notation": null} |
nlprog_det-setting-0066430 | What simple interest does $8,000 earn at 4% a year over 3 years?
A short script:
```python
principal = 8000
rate = 4 / 100 # 0.04
years = 3
interest = principal * rate * years # 960.0
print(f"{interest:.2f}")
```
Running this gives: 960.00
The interest is $960.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "960.00", "printed": "960.00", "notation": null} |
nlprog_det-setting-0066431 | An attorney bills 12 hours at $250 per hour. What is the bill?
We write it as a program:
```python
hours = 12
rate = 250
bill = hours * rate # 3000
print(f"{bill:.2f}")
```
The run gives 3000.00.
That comes to $3,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "3000.00", "printed": "3000.00", "notation": null} |
nlprog_det-setting-0066432 | Scale 450 g of oats from 8 servings to 4 servings.
```python
grams = 450
serves = 8
needed_for = 4
scaled = grams * needed_for // serves # 225
print(scaled)
```
It outputs 225.
225 grams of oats are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "225", "printed": "225", "notation": null} |
nlprog_det-setting-0066433 | How many whole days and leftover hours are in 332 hours?
One way, in code:
```python
hours = 332
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
On running, it outputs 13 days and 20 hours.
That is 13 days and 20 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "13 days and 20 hours", "printed": "13 days and 20 hours", "notation": null} |
nlprog_det-setting-0066434 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "search_cases", "description... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required... | nlprog_det | setting | original | null | deterministic | [] | [] | 306 | {"gold": "385.02", "printed": "385.02", "notation": null} |
nlprog_det-setting-0066436 | Pack A has 8 items for $12.14. Pack B has 15 items for $23.15. Which has the lower price per item?
Let's compute it with Python.
```python
pack_a = 12.14 / 8 # 1.5175
pack_b = 23.15 / 15 # 1.5433333333333332
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
It outputs A.
Pack A is cheaper per item... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0066437 | A penalty of $100 a day accrues, capped at $2,500. What is owed after 54 days?
per_day = 100
days = 54
cap = 2500
fine = min(per_day * days, cap) # 2500
print(fine)
Executed, it shows 2500.
The fine is $2,500. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "2500", "printed": "2500", "notation": null} |
nlprog_det-setting-0066438 | An unpaid balance of $12,000 accrues 1% simple interest per month. How much interest accrues in 4 months?
The interest is $480.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "480.00", "printed": "480.00", "notation": null} |
nlprog_det-setting-0066439 | <|start|><|user|>
To read 252 pages in 14 days, how many pages per day are needed?<|eot|>
<|assistant|>
That is 18 pages per day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "To read 252 pages in 14 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": "That is 18 pages per day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0066440 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "run_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"run_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source ... | nlprog_det | setting | original | null | deterministic | [] | [] | 253 | {"gold": "450.00", "printed": "450.00", "notation": null} |
nlprog_det-setting-0066441 | A 30 lb package ships at $10 base plus $2.00/lb. What is the charge?
```python
base = 10
per_pound = 2.0
weight = 30
cost = base + per_pound * weight # 70.0
print(f"{cost:.2f}")
```
# run result: 70.00
The charge is $70.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "70.00", "printed": "70.00", "notation": null} |
nlprog_det-setting-0066442 | <|start|><|user|>
Shipping costs $8 plus $1.50 per pound. What does a 9-pound parcel cost to ship?<|eot|>
<|assistant|>
```python
base = 8
per_pound = 1.5
weight = 9
cost = base + per_pound * weight # 21.5
print(f"{cost:.2f}")
```
It outputs: 21.50
Shipping costs $21.50.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Shipping costs $8 plus $1.50 per pound. What does a 9-pound parcel cost to ship?"
},
{
"role": "assistant",
"content": "```python\nbase = 8\nper_pound = 1.5\nweight = 9\ncost = base + per_pound * weight # 21.5\nprint(f\"{cost:.2f}\")\n```\nIt outputs: 21.50\n\nShip... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "21.50", "printed": "21.50", "notation": null} |
nlprog_det-setting-0066443 | 6 bike rides at 400 calories each burn how many calories in total?
Computing it:
per_session = 400
sessions = 6
total = per_session * sessions # 2400
print(total)
It prints 2400, as expected.
That burns 2400 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "2400", "printed": "2400", "notation": null} |
nlprog_det-setting-0066444 | With $4,000 in costs and $5,000 in revenue, what percent of revenue is profit? Round to one decimal.
Here is the program.
revenue = 5000
costs = 4000
profit = revenue - costs # 1000
margin = profit / revenue * 100 # 20.0
print(round(margin, 1))
Running this gives 20.0.
Profit is 20.0% of revenue... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "20.0", "printed": "20.0", "notation": null} |
nlprog_det-setting-0066445 | Convert 0 °C to Fahrenheit.
We can compute it in Python.
```python
celsius = 0
fahrenheit = celsius * 9 / 5 + 32 # 32.0
print(round(fahrenheit))
```
The run gives: 32
It equals 32 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0066446 | What simple interest does $12,000 earn at 5% a year over 2 years?
We write it as a program:
principal = 12000
rate = 5 / 100 # 0.05
years = 2
interest = principal * rate * years # 1200.0
print(f"{interest:.2f}")
The script prints 1200.00, as expected.
The interest is $1,200.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "1200.00", "printed": "1200.00", "notation": null} |
nlprog_det-setting-0066447 | A 20 × 15 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?
The program:
```python
import math
length = 20
width = 15
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 300
print(tiles)
```
Running this gives 300.
300 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0066448 | <|start|><|user|>
Starting from $25,000, the team spends $3,506, $3,134, $667. What remains?<|eot|>
<|assistant|>
budget = 25000
expenses = [3506, 3134, 667]
left = budget - sum(expenses) # 17693
print(left)
Out: 17693
$17,693 is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting from $25,000, the team spends $3,506, $3,134, $667. What remains?"
},
{
"role": "assistant",
"content": " budget = 25000\n expenses = [3506, 3134, 667]\n left = budget - sum(expenses) # 17693\n print(left)\nOut: 17693\n\n$17,693 is left."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "17693", "printed": "17693", "notation": null} |
nlprog_det-setting-0066449 | A penalty of $100 a day accrues, capped at $5,000. What is owed after 53 days?
The fine is $5,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "5000", "printed": "5000", "notation": null} |
nlprog_det-setting-0066450 | At 2% a month (simple), what interest builds on $4,000 over 4 months?
Code:
```python
balance = 4000
monthly_rate = 2 / 100 # 0.02
months = 4
interest = balance * monthly_rate * months # 320.0
print(f"{interest:.2f}")
```
Executed, it shows 320.00.
$320.00 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "320.00", "printed": "320.00", "notation": null} |
nlprog_det-setting-0066451 | <|start|><|system|>
You have access to these functions:
[{"name": "run_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|u... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"run_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python so... | nlprog_det | setting | original | null | deterministic | [] | [] | 201 | {"gold": "31", "printed": "31", "notation": null} |
nlprog_det-setting-0066453 | Ada's scores were 98, 99, 51, 80, 68, 50 and 72. What is the average score?
```python
scores = [98, 99, 51, 80, 68, 50, 72]
average = sum(scores) // len(scores) # 74
print(average)
```
# program output: 74
The average score is 74. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "74", "printed": "74", "notation": null} |
nlprog_det-setting-0066454 | A meal costs $160.14. How much is a 22% tip?
Programmatically:
bill = 160.14
tip_rate = 22 / 100
tip = bill * tip_rate
print(f"{tip:.2f}")
The printout reads: 35.23
Leave $35.23. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "35.23", "printed": "35.23", "notation": null} |
nlprog_det-setting-0066455 | An invoice lists 27 folders at $7 each, plus 10% sales tax. What is the invoice total?
Translated to Python:
```python
quantity = 27
unit_price = 7
subtotal = quantity * unit_price # 189
total = subtotal * (1 + 10 / 100) # 207.9
print(f"{total:.2f}")
```
(Printed: 207.90)
The total with tax is $207.90. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "207.90", "printed": "207.90", "notation": null} |
nlprog_det-setting-0066456 | A 14 × 3 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?
```python
import math
length = 14
width = 3
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 42
print(tiles)
```
stdout = 42
42 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "42", "printed": "42", "notation": null} |
nlprog_det-setting-0066457 | <|start|><|user|>
A $1,000 security deposit has deductions of $60. How much is refunded?<|eot|>
<|assistant|>
```python
deposit = 1000
deductions = [60]
refund = deposit - sum(deductions)
print(refund)
```
Program output — 940
The refund is $940.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A $1,000 security deposit has deductions of $60. How much is refunded?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 1000\ndeductions = [60]\nrefund = deposit - sum(deductions)\nprint(refund)\n```\nProgram output — 940\n\nThe refund is $940."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "940", "printed": "940", "notation": null} |
nlprog_det-setting-0066458 | <|start|><|system|>
You are a patient tutor.<|eot|>
<|user|>
A $12,000 grant pays $3,000 up front and the rest in 12 equal installments. How large is each installment?<|eot|>
<|assistant|>
$750.00 per installment.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a patient tutor."
},
{
"role": "user",
"content": "A $12,000 grant pays $3,000 up front and the rest in 12 equal installments. How large is each installment?"
},
{
"role": "assistant",
"content": "$750.00 per installment."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 60 | {"gold": "750.00", "printed": "750.00", "notation": null} |
nlprog_det-setting-0066459 | <|start|><|user|>
Attendance was 44 out of 80. Express it as a percent.<|eot|>
<|assistant|>
```python
present = 44
total = 80
percent = present / total * 100
print(round(percent, 1))
```
Python prints 55.0.
Attendance was 55.0%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Attendance was 44 out of 80. Express it as a percent."
},
{
"role": "assistant",
"content": "```python\npresent = 44\ntotal = 80\npercent = present / total * 100\nprint(round(percent, 1))\n```\nPython prints 55.0.\n\nAttendance was 55.0%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "55.0", "printed": "55.0", "notation": null} |
nlprog_det-setting-0066460 | <|start|><|user|>
8 claimants share a $18,000 settlement equally. What is each share?<|eot|>
<|assistant|>
Each party receives $2,250.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "8 claimants share a $18,000 settlement equally. What is each share?"
},
{
"role": "assistant",
"content": "Each party receives $2,250."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "2250", "printed": "2250", "notation": null} |
nlprog_det-setting-0066461 | A 18-month warranty starts on November 4, 2024. On what date does it end?
Translated to Python:
from datetime import date
start = date(2024, 11, 4)
months = 18
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoforma... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "2026-05-04", "printed": "2026-05-04", "notation": null} |
nlprog_det-setting-0066462 | A service costs $12 a month or $108 a year. How much does the yearly plan save over 12 monthly payments?
Written as code:
```python
monthly = 12
yearly = 108
savings = monthly * 12 - yearly # 36
print(savings)
```
Program output: 36
The annual plan saves $36. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0066463 | <|start|><|system|>
Be exact with numbers.<|eot|>
<|user|>
Which is cheaper per unit: 6 for $7.45 (A) or 24 for $16.32 (B)?<|eot|>
<|assistant|>
B has the lower unit price.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be exact with numbers."
},
{
"role": "user",
"content": "Which is cheaper per unit: 6 for $7.45 (A) or 24 for $16.32 (B)?"
},
{
"role": "assistant",
"content": "B has the lower unit price."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 50 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0066464 | If a 5-year limitations period starts on July 25, 2017, when does it end?
As Python:
```python
from datetime import date
accrued = date(2017, 7, 25) # datetime.date(2017, 7, 25)
years = 5
expires = accrued.replace(year=accrued.year + years) # datetime.date(2022, 7, 25)
print(expires.isoformat())
```
Printed: 2022-07... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "2022-07-25", "printed": "2022-07-25", "notation": null} |
nlprog_det-setting-0066465 | $2,000 is invested at 3% compounded yearly. What is it worth after 3 years?
Python:
```python
principal = 2000
rate = 3 / 100 # 0.03
years = 3
value = principal * (1 + rate) ** years # 2185.454
print(f"{value:.2f}")
```
(stdout: 2185.45)
The balance is $2,185.45. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "2185.45", "printed": "2185.45", "notation": null} |
nlprog_det-setting-0066466 | On which weekday does November 22, 2008 fall?
```python
from datetime import date
hearing = date(2008, 11, 22) # datetime.date(2008, 11, 22)
print(hearing.strftime("%A"))
```
Output = Saturday
November 22, 2008 is a Saturday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "Saturday", "printed": "Saturday", "notation": null} |
nlprog_det-setting-0066467 | At a 5% tax rate, what is the tax on $621.69?
The computation:
```python
price = 621.69
tax_rate = 5 / 100 # 0.05
tax = price * tax_rate # 31.084500000000006
print(f"{tax:.2f}")
```
On running, it outputs: 31.08
The tax is $31.08. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "31.08", "printed": "31.08", "notation": null} |
nlprog_det-setting-0066468 | <|start|><|user|>
A 12 lb package ships at $5 base plus $0.75/lb. What is the charge?<|eot|>
<|assistant|>
```python
base = 5
per_pound = 0.75
weight = 12
cost = base + per_pound * weight # 14.0
print(f"{cost:.2f}")
```
Program output — 14.00
The charge is $14.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 12 lb package ships at $5 base plus $0.75/lb. What is the charge?"
},
{
"role": "assistant",
"content": "```python\nbase = 5\nper_pound = 0.75\nweight = 12\ncost = base + per_pound * weight # 14.0\nprint(f\"{cost:.2f}\")\n```\nProgram output — 14.00\n\nThe charge... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "14.00", "printed": "14.00", "notation": null} |
nlprog_det-setting-0066469 | Count 30 days forward from February 22, 2023. What date is that?
```python
from datetime import date, timedelta
start = date(2023, 2, 22) # datetime.date(2023, 2, 22)
end = start + timedelta(days=30) # datetime.date(2023, 3, 24)
print(end.isoformat())
```
The code prints: 2023-03-24
That date is March 24, 2023. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "2023-03-24", "printed": "2023-03-24", "notation": null} |
nlprog_det-setting-0066470 | What does $10,000 grow to in 4 years at 4% annual compounding?
Python:
```python
principal = 10000
rate = 4 / 100 # 0.04
years = 4
value = principal * (1 + rate) ** years # 11698.585600000002
print(f"{value:.2f}")
```
The code prints: 11698.59
The balance is $11,698.59. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "11698.59", "printed": "11698.59", "notation": null} |
nlprog_det-setting-0066471 | A recipe for 2 people uses 150 grams of lentils. How many grams are needed for 3 people?
225 grams of lentils are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "225", "printed": "225", "notation": null} |
nlprog_det-setting-0066472 | Equal monthly payments repay $6,000 plus 8% simple yearly interest over 24 months. How large is a payment?
In Python:
```python
principal = 6000
annual_rate = 8 / 100 # 0.08
months = 24
interest = principal * annual_rate * months / 12 # 960.0
payment = (principal + interest) / months # 290.0
print(f"{payment:.2f}")... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "290.00", "printed": "290.00", "notation": null} |
nlprog_det-setting-0066473 | A hearing is set for December 22, 2020. What day of the week is that?
Computation in Python:
```python
from datetime import date
hearing = date(2020, 12, 22) # datetime.date(2020, 12, 22)
print(hearing.strftime("%A"))
```
Printed = Tuesday
It is a Tuesday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "Tuesday", "printed": "Tuesday", "notation": null} |
nlprog_det-setting-0066474 | <|start|><|system|>
You are a teaching assistant.<|eot|>
<|user|>
Count the days between March 4, 2022 and April 2, 2023.<|eot|>
<|assistant|>
It is 394 days.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a teaching assistant."
},
{
"role": "user",
"content": "Count the days between March 4, 2022 and April 2, 2023."
},
{
"role": "assistant",
"content": "It is 394 days."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "394", "printed": "394", "notation": null} |
nlprog_det-setting-0066475 | What simple interest does $2,500 earn at 2% a year over 3 years?
Python code:
```python
principal = 2500
rate = 2 / 100 # 0.02
years = 3
interest = principal * rate * years # 150.0
print(f"{interest:.2f}")
```
Printed result: 150.00
It earns $150.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "150.00", "printed": "150.00", "notation": null} |
nlprog_det-setting-0066476 | <|start|><|user|>
A recipe for 4 people uses 150 grams of sugar. How many grams are needed for 6 people?<|eot|>
<|assistant|>
Use 225 g of sugar.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A recipe for 4 people uses 150 grams of sugar. How many grams are needed for 6 people?"
},
{
"role": "assistant",
"content": "Use 225 g of sugar."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "225", "printed": "225", "notation": null} |
nlprog_det-setting-0066477 | <|start|><|user|>
Of a $5,000 budget, $3,800 has been spent. What percent is that?<|eot|>
<|assistant|>
budget = 5000
spent = 3800
percent = spent / budget * 100 # 76.0
print(round(percent, 1))
Result:
76.0
76.0% has been spent.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Of a $5,000 budget, $3,800 has been spent. What percent is that?"
},
{
"role": "assistant",
"content": " budget = 5000\n spent = 3800\n percent = spent / budget * 100 # 76.0\n print(round(percent, 1))\nResult:\n76.0\n\n76.0% has been spent."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "76.0", "printed": "76.0", "notation": null} |
nlprog_det-setting-0066478 | 34 of 40 members attended. What percent attended?
Script:
```python
present = 34
total = 40
percent = present / total * 100
print(round(percent, 1))
```
Run result: 85.0
Attendance was 85.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "85.0", "printed": "85.0", "notation": null} |
nlprog_det-setting-0066479 | Of a $5,000 budget, $1,500 has been spent. What percent is that?
Python does the arithmetic:
```python
budget = 5000
spent = 1500
percent = spent / budget * 100 # 30.0
print(round(percent, 1))
```
The run gives 30.0.
That is 30.0% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "30.0", "printed": "30.0", "notation": null} |
nlprog_det-setting-0066480 | Equipment costs $24,000, has a salvage value of $3,000, and a useful life of 8 years. What is the straight-line depreciation per year?
Let's compute it with Python.
```python
cost = 24000
salvage = 3000
years = 8
per_year = (cost - salvage) / years # 2625.0
print(f"{per_year:.2f}")
```
The script prints 2625.00.
$2,... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "2625.00", "printed": "2625.00", "notation": null} |
nlprog_det-setting-0066481 | 93 copies of a 59-page packet are printed at $0.12 per page. What is the cost?
We can compute it in Python.
```python
pages = 59
copies = 93
cost_per_page = 0.12
cost = pages * copies * cost_per_page # 658.4399999999999
print(f"{cost:.2f}")
```
stdout = 658.44
The job costs $658.44. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "658.44", "printed": "658.44", "notation": null} |
nlprog_det-setting-0066482 | <|start|><|user|>
Count the days between April 23, 2022 and July 8, 2022.<|eot|>
<|assistant|>
There are 76 days between the two dates.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Count the days between April 23, 2022 and July 8, 2022."
},
{
"role": "assistant",
"content": "There are 76 days between the two dates."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "76", "printed": "76", "notation": null} |
nlprog_det-setting-0066483 | Walls total 322 sq ft and each can covers 350 sq ft. How many cans should be bought?
As Python:
```python
import math
area = 322
coverage = 350
cans = math.ceil(area / coverage) # 1
print(cans)
```
(Console output: 1)
Buy 1 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "1", "printed": "1", "notation": null} |
nlprog_det-setting-0066484 | <|start|><|user|>
A storeroom has 1476 labels. The office uses 22 a day. How many are left after 15 days?<|eot|>
<|assistant|>
```python
stock = 1476
per_day = 22
days = 15
left = stock - per_day * days # 1146
print(left)
```
(Console output: 1146)
1146 remain.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A storeroom has 1476 labels. The office uses 22 a day. How many are left after 15 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 1476\nper_day = 22\ndays = 15\nleft = stock - per_day * days # 1146\nprint(left)\n```\n(Console output: 1146)\n\n1146 r... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "1146", "printed": "1146", "notation": null} |
nlprog_det-setting-0066485 | <|start|><|user|>
A lawyer's fee is 40% of a $150,000 recovery. How large is the fee?<|eot|>
<|assistant|>
```python
recovery = 150000
rate = 40 / 100
fee = recovery * rate
print(f"{fee:.2f}")
```
(Out: 60000.00)
The fee is $60,000.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lawyer's fee is 40% of a $150,000 recovery. How large is the fee?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 150000\nrate = 40 / 100\nfee = recovery * rate\nprint(f\"{fee:.2f}\")\n```\n(Out: 60000.00)\n\nThe fee is $60,000.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "60000.00", "printed": "60000.00", "notation": null} |
nlprog_det-setting-0066486 | What average speed covers 45 miles in 5 hours?
```python
distance = 45
hours = 5
speed = distance / hours # 9.0
print(round(speed))
```
Execution result — 9
It averages 9 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0066487 | <|start|><|user|>
What is the total rent on a 18-month lease at $850 a month?<|eot|>
<|assistant|>
The rent over the term is $15,300.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is the total rent on a 18-month lease at $850 a month?"
},
{
"role": "assistant",
"content": "The rent over the term is $15,300."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "15300", "printed": "15300", "notation": null} |
nlprog_det-setting-0066488 | Equipment costs $30,000, has a salvage value of $0, and a useful life of 3 years. What is the straight-line depreciation per year?
Python:
cost = 30000
salvage = 0
years = 3
per_year = (cost - salvage) / years # 10000.0
print(f"{per_year:.2f}")
(Program output: 10000.00)
$10,000.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "10000.00", "printed": "10000.00", "notation": null} |
nlprog_det-setting-0066489 | Count the days between November 16, 2020 and January 7, 2021.
```python
from datetime import date
first = date(2020, 11, 16) # datetime.date(2020, 11, 16)
second = date(2021, 1, 7) # datetime.date(2021, 1, 7)
print((second - first).days)
```
(Output: 52)
It is 52 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "52", "printed": "52", "notation": null} |
nlprog_det-setting-0066490 | <|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\": \"stri... | nlprog_det | setting | original | null | deterministic | [] | [] | 337 | {"gold": "4200.00", "printed": "4200.00", "notation": null} |
nlprog_det-setting-0066492 | <|start|><|system|>
You help with homework problems.<|eot|>
<|user|>
A lease runs for 36 months at $1,640 per month. How much rent is paid over the whole term?<|eot|>
<|assistant|>
The rent over the term is $59,040.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help with homework problems."
},
{
"role": "user",
"content": "A lease runs for 36 months at $1,640 per month. How much rent is paid over the whole term?"
},
{
"role": "assistant",
"content": "The rent over the term is $59,040."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 57 | {"gold": "59040", "printed": "59040", "notation": null} |
nlprog_det-setting-0066493 | <|start|><|user|>
A clerk's office charges $25 for each filing. Tariq submits 18 filings. What is the total fee?<|eot|>
<|assistant|>
fee = 25
filings = 18
total = fee * filings # 450
print(total)
Execution prints 450.
$450 in filing fees.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A clerk's office charges $25 for each filing. Tariq submits 18 filings. What is the total fee?"
},
{
"role": "assistant",
"content": " fee = 25\n filings = 18\n total = fee * filings # 450\n print(total)\nExecution prints 450.\n\n$450 in filing fees."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "450", "printed": "450", "notation": null} |
nlprog_det-setting-0066494 | Goods bought on October 22, 2018 carry a 12-month warranty. When does it expire?
Here is a short program for it.
```python
from datetime import date
start = date(2018, 10, 22)
months = 12
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isof... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "2019-10-22", "printed": "2019-10-22", "notation": null} |
nlprog_det-setting-0066496 | <|start|><|system|>
You help with homework problems.<|eot|>
<|user|>
An office budget of $20,000 has expenses of $3,958, $2,123, $934. How much of the budget is left?<|eot|>
<|assistant|>
```python
budget = 20000
expenses = [3958, 2123, 934]
left = budget - sum(expenses) # 12985
print(left)
```
Result:
12985
The rema... | chat | [
{
"role": "system",
"content": "You help with homework problems."
},
{
"role": "user",
"content": "An office budget of $20,000 has expenses of $3,958, $2,123, $934. How much of the budget is left?"
},
{
"role": "assistant",
"content": "```python\nbudget = 20000\nexpenses = [3958, 212... | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "12985", "printed": "12985", "notation": null} |
nlprog_det-setting-0066497 | <|start|><|user|>
After a 30% fee is taken from a $72,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|>
<|assistant|>
```python
award = 72000
fee = award * 30 / 100 # 21600.0
remaining = award - fee # 50400.0
per_client = remaining / 3 # 16800.0
print(f"{per_client:.2f}")... | chat | [
{
"role": "user",
"content": "After a 30% fee is taken from a $72,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?"
},
{
"role": "assistant",
"content": "```python\naward = 72000\nfee = award * 30 / 100 # 21600.0\nremaining = award - fee # 50400.0\nper_cl... | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "16800.00", "printed": "16800.00", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.