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-0066709 | <|start|><|user|>
A trial runs from August 12, 2025 to August 24, 2025, counting both days. How many calendar days is that?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2025, 8, 12) # datetime.date(2025, 8, 12)
last = date(2025, 8, 24) # datetime.date(2025, 8, 24)
days = (last - first).days +... | chat | [
{
"role": "user",
"content": "A trial runs from August 12, 2025 to August 24, 2025, counting both days. How many calendar days is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2025, 8, 12) # datetime.date(2025, 8, 12)\nlast = date(2025, 8, 24) ... | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0066710 | <|start|><|user|>
Equipment costs $18,000, has a salvage value of $2,000, and a useful life of 5 years. What is the straight-line depreciation per year?<|eot|>
<|assistant|>
$3,200.00 a year.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Equipment costs $18,000, has a salvage value of $2,000, and a useful life of 5 years. What is the straight-line depreciation per year?"
},
{
"role": "assistant",
"content": "$3,200.00 a year."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 55 | {"gold": "3200.00", "printed": "3200.00", "notation": null} |
nlprog_det-setting-0066711 | Convert 1,346 GBP to USD at 1 GBP = 0.92 USD.
In code:
amount = 1346
rate = 0.92
converted = amount * rate # 1238.3200000000002
print(f"{converted:.2f}")
The run gives: 1238.32
That is 1,238.32 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "1238.32", "printed": "1238.32", "notation": null} |
nlprog_det-setting-0066712 | Of a $4,000 budget, $2,500 has been spent. What percent is that?
```python
budget = 4000
spent = 2500
percent = spent / budget * 100 # 62.5
print(round(percent, 1))
```
Executing it gives 62.5.
62.5% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "62.5", "printed": "62.5", "notation": null} |
nlprog_det-setting-0066713 | The paralegal logged 12 hours at a rate of $410. How much is billed?
As a program:
hours = 12
rate = 410
bill = hours * rate # 4920
print(f"{bill:.2f}")
Result = 4920.00
The bill is $4,920.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "4920.00", "printed": "4920.00", "notation": null} |
nlprog_det-setting-0066714 | Convert 52.4 km to meters.
```python
km = 52.4
meters = km * 1000 # 52400.0
print(round(meters))
```
Executed, it shows: 52400
That is 52,400 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "52400", "printed": "52400", "notation": null} |
nlprog_det-setting-0066715 | With 9 rows of 14 chairs and 28 empty chairs, how many chairs are taken?
One way, in code:
```python
rows = 9
per_row = 14
empty = 28
seated = rows * per_row - empty # 98
print(seated)
```
Result = 98
98 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "98", "printed": "98", "notation": null} |
nlprog_det-setting-0066716 | A $96 dinner bill gets a 18% tip, and 5 people share the cost equally. What is each person's share?
We can compute it in Python.
```python
bill = 96
tip_rate = 18 / 100 # 0.18
people = 5
each = bill * (1 + tip_rate) / people # 22.656
print(f"{each:.2f}")
```
Run it and it prints: 22.66
Each person pays $22.66. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "22.66", "printed": "22.66", "notation": null} |
nlprog_det-setting-0066717 | A court charges $5 per request plus $0.10 per page after the first 20 pages. What does a 20-page copy cost?
Set it up in Python:
```python
pages = 20
base = 5
per_page = 0.1
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page # 5.0
print(f"{cost:.2f}")
```
Python prints 5.00, as expected.
The total i... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "5.00", "printed": "5.00", "notation": null} |
nlprog_det-setting-0066718 | At 1.5% a month (simple), what interest builds on $2,500 over 4 months?
$150.00 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "150.00", "printed": "150.00", "notation": null} |
nlprog_det-setting-0066719 | Of a $10,000 budget, $1,000 has been spent. What percent is that?
Written as code:
budget = 10000
spent = 1000
percent = spent / budget * 100 # 10.0
print(round(percent, 1))
Execution prints 10.0, as expected.
That is 10.0% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "10.0", "printed": "10.0", "notation": null} |
nlprog_det-setting-0066720 | A meeting starts at 9:40 AM and lasts 25 minutes. When does it end?
Let the code do the arithmetic:
```python
start = 9 * 60 + 40
end = start + 25
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
(Execution result: 10:05 AM)
The meeting finishes at 10:05 AM... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "10:05 AM", "printed": "10:05 AM", "notation": null} |
nlprog_det-setting-0066721 | A customer buys 3 keyboards at $14 each, 3 binders at $12 each, 6 batteries at $29 each, 6 cables at $17 each and pays with $400. How much change is due?
We can compute it in Python.
```python
items = [(3, 14), (3, 12), (6, 29), (6, 17)]
total = sum(q * p for q, p in items) # 354
paid = 400
change = paid - total # 4... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "46", "printed": "46", "notation": null} |
nlprog_det-setting-0066722 | A $96 dinner bill gets a 20% tip, and 3 people share the cost equally. What is each person's share?
Python code:
```python
bill = 96
tip_rate = 20 / 100 # 0.2
people = 3
each = bill * (1 + tip_rate) / people # 38.4
print(f"{each:.2f}")
```
(Console output: 38.40)
Each person pays $38.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "38.40", "printed": "38.40", "notation": null} |
nlprog_det-setting-0066723 | <|start|><|user|>
A count moves from 1,000 to 1,050. By what percent did it change (use a minus sign for a drop)?<|eot|>
<|assistant|>
```python
old = 1000
new = 1050
change = (new - old) / old * 100 # 5.0
print(round(change))
```
It prints 5.
The change is 5%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A count moves from 1,000 to 1,050. By what percent did it change (use a minus sign for a drop)?"
},
{
"role": "assistant",
"content": "```python\nold = 1000\nnew = 1050\nchange = (new - old) / old * 100 # 5.0\nprint(round(change))\n```\nIt prints 5.\n\nThe change i... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0066724 | A meeting lasted 4 hours and 8 minutes. How many minutes is that?
We write it as a program:
```python
hours = 4
minutes = 8
total_minutes = hours * 60 + minutes # 248
print(total_minutes)
```
On running, it outputs: 248
The meeting lasted 248 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "248", "printed": "248", "notation": null} |
nlprog_det-setting-0066725 | <|start|><|user|>
4 clients win $96,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?<|eot|>
<|assistant|>
```python
award = 96000
fee = award * 30 / 100 # 28800.0
remaining = award - fee # 67200.0
per_client = remaining / 4 # 16800.0
print(f"{per_client:.2f}")
```
The interpre... | chat | [
{
"role": "user",
"content": "4 clients win $96,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?"
},
{
"role": "assistant",
"content": "```python\naward = 96000\nfee = award * 30 / 100 # 28800.0\nremaining = award - fee # 67200.0\nper_client = remaining ... | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "16800.00", "printed": "16800.00", "notation": null} |
nlprog_det-setting-0066726 | Each of Diego's bike rides burns 400 calories. How many calories over 3 bike rides?
As Python:
```python
per_session = 400
sessions = 3
total = per_session * sessions # 1200
print(total)
```
Printed result — 1200
That burns 1200 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "1200", "printed": "1200", "notation": null} |
nlprog_det-setting-0066727 | What does $2,000 grow to in 4 years at 5% annual compounding?
Script:
```python
principal = 2000
rate = 5 / 100 # 0.05
years = 4
value = principal * (1 + rate) ** years # 2431.0125000000003
print(f"{value:.2f}")
```
It prints 2431.01, as expected.
The balance is $2,431.01. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "2431.01", "printed": "2431.01", "notation": null} |
nlprog_det-setting-0066728 | <|start|><|user|>
Parking is $2 per hour with a daily maximum of $18. What do 6 hours cost?<|eot|>
<|assistant|>
```python
rate = 2
hours = 6
daily_max = 18
cost = min(rate * hours, daily_max) # 12
print(cost)
```
Output — 12
The charge is $12.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Parking is $2 per hour with a daily maximum of $18. What do 6 hours cost?"
},
{
"role": "assistant",
"content": "```python\nrate = 2\nhours = 6\ndaily_max = 18\ncost = min(rate * hours, daily_max) # 12\nprint(cost)\n```\nOutput — 12\n\nThe charge is $12."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0066729 | Of a $10,000 budget, $1,700 has been spent. What percent is that?
Programmatically:
budget = 10000
spent = 1700
percent = spent / budget * 100 # 17.0
print(round(percent, 1))
When run, it prints: 17.0
17.0% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "17.0", "printed": "17.0", "notation": null} |
nlprog_det-setting-0066730 | The bridge was finished in 2000. How many years had passed by 2030?
A short script:
```python
start_year = 2000
end_year = 2030
print(end_year - start_year)
```
Printed:
30
30 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 71 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0066731 | Walls total 942 sq ft and each can covers 350 sq ft. How many cans should be bought?
We can compute it in Python.
```python
import math
area = 942
coverage = 350
cans = math.ceil(area / coverage) # 3
print(cans)
```
It prints 3.
3 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0066732 | A hall has 19 rows of 23 seats, and 26 seats are empty. How many people are seated?
Coded up:
```python
rows = 19
per_row = 23
empty = 26
seated = rows * per_row - empty
print(seated)
```
stdout = 411
411 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "411", "printed": "411", "notation": null} |
nlprog_det-setting-0066733 | <|start|><|system|>
Tools (call with JSON):
{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_unit", "to_unit"]}}
{"name":... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\": \"string\"}... | nlprog_det | setting | original | null | deterministic | [] | [] | 353 | {"gold": "1125", "printed": "1125", "notation": null} |
nlprog_det-setting-0066734 | Shipping costs $12 plus $1.50 per pound. What does a 40-pound parcel cost to ship?
We can compute it in Python.
```python
base = 12
per_pound = 1.5
weight = 40
cost = base + per_pound * weight # 72.0
print(f"{cost:.2f}")
```
Run result = 72.00
Shipping costs $72.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "72.00", "printed": "72.00", "notation": null} |
nlprog_det-setting-0066735 | Ines earns $22.40 an hour and time and a half for hours over 40. What is the pay for a 52-hour week?
As Python:
```python
rate = 22.4
hours = 52
regular = 40 * rate # 896.0
overtime = (hours - 40) * rate * 1.5 # 403.19999999999993
pay = regular + overtime # 1299.1999999999998
print(f"{pay:.2f}")
```
(Printed: 1299.... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 154 | {"gold": "1299.20", "printed": "1299.20", "notation": null} |
nlprog_det-setting-0066736 | What average speed covers 78 miles in 2 hours?
The average speed is 39 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 22 | {"gold": "39", "printed": "39", "notation": null} |
nlprog_det-setting-0066737 | After a 25% fee is taken from a $30,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?
```python
award = 30000
fee = award * 25 / 100 # 7500.0
remaining = award - fee # 22500.0
per_client = remaining / 3 # 7500.0
print(f"{per_client:.2f}")
```
The program outputs 7500.00.
Each ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "7500.00", "printed": "7500.00", "notation": null} |
nlprog_det-setting-0066738 | <|start|><|user|>
A $12,000 grant pays $0 up front and the rest in 12 equal installments. How large is each installment?<|eot|>
<|assistant|>
```python
grant = 12000
up_front = 0
installments = 12
each = (grant - up_front) / installments # 1000.0
print(f"{each:.2f}")
```
It outputs 1000.00.
Each installment is $1,000... | chat | [
{
"role": "user",
"content": "A $12,000 grant pays $0 up front and the rest in 12 equal installments. How large is each installment?"
},
{
"role": "assistant",
"content": "```python\ngrant = 12000\nup_front = 0\ninstallments = 12\neach = (grant - up_front) / installments # 1000.0\nprint(f\"{eac... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "1000.00", "printed": "1000.00", "notation": null} |
nlprog_det-setting-0066739 | Find the mean of these test scores: 85, 80, 69, 98, 65, 52 and 76.
The average score is 75. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "75", "printed": "75", "notation": null} |
nlprog_det-setting-0066740 | <|start|><|user|>
Counting the first and last day, how many days are there from February 28, 2027 through March 23, 2027?<|eot|>
<|assistant|>
24 calendar days.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Counting the first and last day, how many days are there from February 28, 2027 through March 23, 2027?"
},
{
"role": "assistant",
"content": "24 calendar days."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0066741 | <|start|><|system|>
Tools you may use:
{"name": "run_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}
{"name": "lookup_statute", "descr... | chat | [
{
"role": "system",
"content": "Tools you may use:\n{\"name\": \"run_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"req... | nlprog_det | setting | original | null | deterministic | [] | [] | 332 | {"gold": "123.90", "printed": "123.90", "notation": null} |
nlprog_det-setting-0066742 | <|start|><|user|>
A 676-page report must be reviewed in 13 days. How many pages a day is that, evenly?<|eot|>
<|assistant|>
```python
pages = 676
days = 13
per_day = pages // days # 52
print(per_day)
```
(stdout: 52)
52 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 676-page report must be reviewed in 13 days. How many pages a day is that, evenly?"
},
{
"role": "assistant",
"content": "```python\npages = 676\ndays = 13\nper_day = pages // days # 52\nprint(per_day)\n```\n(stdout: 52)\n\n52 pages a day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "52", "printed": "52", "notation": null} |
nlprog_det-setting-0066743 | Notice was given on February 5, 2023. The notice period is 60 days. When does it run out?
Let the code do the arithmetic:
```python
from datetime import date, timedelta
start = date(2023, 2, 5) # datetime.date(2023, 2, 5)
end = start + timedelta(days=60) # datetime.date(2023, 4, 6)
print(end.isoformat())
```
# print... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "2023-04-06", "printed": "2023-04-06", "notation": null} |
nlprog_det-setting-0066744 | A 18 × 3 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?
Python makes this quick:
```python
import math
length = 18
width = 3
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 54
print(tiles)
```
When run, it prints: 54
54 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "54", "printed": "54", "notation": null} |
nlprog_det-setting-0066745 | Revenue is $12,000 and costs are $8,000. What is the profit margin as a percent of revenue (one decimal)?
Python:
```python
revenue = 12000
costs = 8000
profit = revenue - costs # 4000
margin = profit / revenue * 100 # 33.33333333333333
print(round(margin, 1))
```
It outputs 33.3.
The margin is 33.3%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "33.3", "printed": "33.3", "notation": null} |
nlprog_det-setting-0066747 | A claim accrued on February 6, 2019. The limitations period is 6 years. On what date does it expire?
The period expires on February 6, 2025. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "2025-02-06", "printed": "2025-02-06", "notation": null} |
nlprog_det-setting-0066748 | <|start|><|system|>
Keep explanations short.<|eot|>
<|user|>
115 copies of a 39-page packet are printed at $0.15 per page. What is the cost?<|eot|>
<|assistant|>
```python
pages = 39
copies = 115
cost_per_page = 0.15
cost = pages * copies * cost_per_page # 672.75
print(f"{cost:.2f}")
```
Execution result: 672.75
Prin... | chat | [
{
"role": "system",
"content": "Keep explanations short."
},
{
"role": "user",
"content": "115 copies of a 39-page packet are printed at $0.15 per page. What is the cost?"
},
{
"role": "assistant",
"content": "```python\npages = 39\ncopies = 115\ncost_per_page = 0.15\ncost = pages * ... | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "672.75", "printed": "672.75", "notation": null} |
nlprog_det-setting-0066749 | An unpaid balance of $7,500 accrues 2% simple interest per month. How much interest accrues in 2 months?
The interest is $300.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "300.00", "printed": "300.00", "notation": null} |
nlprog_det-setting-0066750 | Revenue is $38,500 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?
Python code:
revenue = 38500
costs = 36000
profit = revenue - costs # 2500
margin = profit / revenue * 100 # 6.493506493506493
print(round(margin, 1))
It prints: 6.5
The margin is 6.5%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "6.5", "printed": "6.5", "notation": null} |
nlprog_det-setting-0066752 | Convert 2,466 USD to CAD at 1 USD = 0.74 CAD.
```python
amount = 2466
rate = 0.74
converted = amount * rate # 1824.84
print(f"{converted:.2f}")
```
It prints 1824.84.
That is 1,824.84 CAD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "1824.84", "printed": "1824.84", "notation": null} |
nlprog_det-setting-0066753 | <|start|><|user|>
A 4 × 7 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?<|eot|>
<|assistant|>
```python
import math
length = 4
width = 7
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 28
print(tiles)
```
The program outputs: 28
It takes 28 tiles.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 4 × 7 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 4\nwidth = 7\ntile = 1\ntiles = math.ceil(length * width / (tile * tile)) # 28\nprint(tiles)\n```\nThe program ou... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "28", "printed": "28", "notation": null} |
nlprog_det-setting-0066754 | <|start|><|user|>
Convert -5 °C to Fahrenheit.<|eot|>
<|assistant|>
It equals 23 degrees Fahrenheit.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert -5 °C to Fahrenheit."
},
{
"role": "assistant",
"content": "It equals 23 degrees Fahrenheit."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0066755 | A class starts at 4:10 PM and lasts 75 minutes. When does it end?
The Python version:
```python
start = 16 * 60 + 10
end = start + 75
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
This prints 5:25 PM.
It ends at 5:25 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "5:25 PM", "printed": "5:25 PM", "notation": null} |
nlprog_det-setting-0066756 | Which is cheaper per unit: 8 for $3.17 (A) or 15 for $23.98 (B)? A has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0066757 | <|start|><|user|>
On which weekday does May 16, 2008 fall?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(2008, 5, 16)
print(hearing.strftime("%A"))
```
It outputs Friday.
May 16, 2008 is a Friday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "On which weekday does May 16, 2008 fall?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(2008, 5, 16)\nprint(hearing.strftime(\"%A\"))\n```\nIt outputs Friday.\n\nMay 16, 2008 is a Friday."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "Friday", "printed": "Friday", "notation": null} |
nlprog_det-setting-0066758 | An attorney bills 4 hours at $150 per hour. What is the bill?
As Python:
```python
hours = 4
rate = 150
bill = hours * rate # 600
print(f"{bill:.2f}")
```
The printout reads: 600.00
That comes to $600.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "600.00", "printed": "600.00", "notation": null} |
nlprog_det-setting-0066759 | <|start|><|user|>
A measure needs at least 60% of 98 votes. How many votes is that, rounded up?<|eot|>
<|assistant|>
```python
import math
voters = 98
needed = math.ceil(voters * 60 / 100) # 59
print(needed)
```
The script prints: 59
59 votes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A measure needs at least 60% of 98 votes. How many votes is that, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 98\nneeded = math.ceil(voters * 60 / 100) # 59\nprint(needed)\n```\nThe script prints: 59\n\n59 votes are needed."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "59", "printed": "59", "notation": null} |
nlprog_det-setting-0066760 | At an exchange rate of 0.74 USD per EUR, how many USD is 2,893 EUR?
Code:
```python
amount = 2893
rate = 0.74
converted = amount * rate # 2140.82
print(f"{converted:.2f}")
```
Console output — 2140.82
It converts to 2,140.82 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "2140.82", "printed": "2140.82", "notation": null} |
nlprog_det-setting-0066762 | A party has 30 days to respond to a motion served on September 10, 2020, with 3 days added because service was by mail. When is the response due?
The response is due on October 13, 2020. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "2020-10-13", "printed": "2020-10-13", "notation": null} |
nlprog_det-setting-0066763 | <|start|><|user|>
Convert 5 h 34 min (the length of a training session) to minutes.<|eot|>
<|assistant|>
That is 334 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 5 h 34 min (the length of a training session) to minutes."
},
{
"role": "assistant",
"content": "That is 334 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "334", "printed": "334", "notation": null} |
nlprog_det-setting-0066764 | <|start|><|user|>
Walls total 1360 sq ft and each can covers 250 sq ft. How many cans should be bought?<|eot|>
<|assistant|>
6 cans are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Walls total 1360 sq ft and each can covers 250 sq ft. How many cans should be bought?"
},
{
"role": "assistant",
"content": "6 cans are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0066765 | Vera earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 42-hour week?
A few lines of Python do it:
```python
rate = 20.0
hours = 42
regular = 40 * rate
overtime = (hours - 40) * rate * 1.5
pay = regular + overtime
print(f"{pay:.2f}")
```
The program prints: 860.00
Vera earns $860.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "860.00", "printed": "860.00", "notation": null} |
nlprog_det-setting-0066766 | Monthly rent is $2,400. A tenant moves in with 9 days left in a 30-day month. What is the prorated rent?
A few lines of Python do it:
rent = 2400
days_in_month = 30
days_occupied = 9
prorated = rent * days_occupied / days_in_month # 720.0
print(f"{prorated:.2f}")
Output of the run: 720.00
The ten... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "720.00", "printed": "720.00", "notation": null} |
nlprog_det-setting-0066767 | <|start|><|user|>
How many 1-foot square tiles cover a 12 ft by 9 ft floor (round up)?<|eot|>
<|assistant|>
```python
import math
length = 12
width = 9
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 108
print(tiles)
```
(Printed result: 108)
It takes 108 tiles.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many 1-foot square tiles cover a 12 ft by 9 ft floor (round up)?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 12\nwidth = 9\ntile = 1\ntiles = math.ceil(length * width / (tile * tile)) # 108\nprint(tiles)\n```\n(Printed result: 108)\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "108", "printed": "108", "notation": null} |
nlprog_det-setting-0066768 | Monthly: $12. Annual: $114. What is saved per year by paying annually?
Here is a short program for it.
monthly = 12
yearly = 114
savings = monthly * 12 - yearly # 30
print(savings)
Result: 30
The annual plan saves $30. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0066769 | Starting with 1505 tape rolls and using 20 per day, how many remain after 18 days?
1145 tape rolls are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "1145", "printed": "1145", "notation": null} |
nlprog_det-setting-0066770 | <|start|><|user|>
Divide 197 items among 5 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|>
<|assistant|>
```python
total = 197
groups = 5
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Interpreter output — 39 each, 2 lef... | chat | [
{
"role": "user",
"content": "Divide 197 items among 5 groups as evenly as possible with equal groups. How many per group, and how many remain?"
},
{
"role": "assistant",
"content": "```python\ntotal = 197\ngroups = 5\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {rem... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "39 each, 2 left over", "printed": "39 each, 2 left over", "notation": null} |
nlprog_det-setting-0066771 | The rules require 3/5 of 47 members (round up) to be present. How many is that?
In Python:
import math
members = 47
quorum = math.ceil(members * 3 / 5) # 29
print(quorum)
Execution prints 29, as expected.
29 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "29", "printed": "29", "notation": null} |
nlprog_det-setting-0066772 | <|start|><|user|>
Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 43 hours?<|eot|>
<|assistant|>
```python
rate = 20.0
hours = 43
regular = 40 * rate # 800.0
overtime = (hours - 40) * rate * 1.5 # 90.0
pay = regular + overtime # 890.0
print(f"{pay:.2f}")
```
This prints 890.00,... | chat | [
{
"role": "user",
"content": "Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 43 hours?"
},
{
"role": "assistant",
"content": "```python\nrate = 20.0\nhours = 43\nregular = 40 * rate # 800.0\novertime = (hours - 40) * rate * 1.5 # 90.0\npay = regular + ov... | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "890.00", "printed": "890.00", "notation": null} |
nlprog_det-setting-0066773 | Under a 30% contingency agreement, what fee is owed on a $150,000 award?
Translated to Python:
```python
recovery = 150000
rate = 30 / 100 # 0.3
fee = recovery * rate # 45000.0
print(f"{fee:.2f}")
```
The printout reads 45000.00.
The lawyer's fee comes to $45,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "45000.00", "printed": "45000.00", "notation": null} |
nlprog_det-setting-0066774 | 2 clients win $96,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?
Python makes this quick:
```python
award = 96000
fee = award * 40 / 100 # 38400.0
remaining = award - fee # 57600.0
per_client = remaining / 2 # 28800.0
print(f"{per_client:.2f}")
```
When run, it prints 28800... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "28800.00", "printed": "28800.00", "notation": null} |
nlprog_det-setting-0066775 | Papers were served by mail on May 15, 2028. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date?
The Python version:
```python
from datetime import date, timedelta
served = date(2028, 5, 15) # datetime.date(2028, 5, 15)
response_days = 21
mail_days = 3
due = served + timedelta... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 183 | {"gold": "2028-06-08", "printed": "2028-06-08", "notation": null} |
nlprog_det-setting-0066776 | A measure needs at least 75% of 290 votes. How many votes is that, rounded up?
As a program:
import math
voters = 290
needed = math.ceil(voters * 75 / 100) # 218
print(needed)
Running this gives: 218
218 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "218", "printed": "218", "notation": null} |
nlprog_det-setting-0066777 | How many units at $15 each (variable cost $9) cover $1,200 of fixed costs?
Let the code do the arithmetic:
```python
import math
fixed = 1200
price = 15
variable = 9
units = math.ceil(fixed / (price - variable))
print(units)
```
# program output: 200
200 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "200", "printed": "200", "notation": null} |
nlprog_det-setting-0066778 | <|start|><|user|>
Quinn has 2 documents to file, and each filing costs $45. How much are the filing fees in total?<|eot|>
<|assistant|>
fee = 45
filings = 2
total = fee * filings # 90
print(total)
Interpreter output — 90
The filings cost $90 in all.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Quinn has 2 documents to file, and each filing costs $45. How much are the filing fees in total?"
},
{
"role": "assistant",
"content": " fee = 45\n filings = 2\n total = fee * filings # 90\n print(total)\nInterpreter output — 90\n\nThe filings cost $90 ... | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "90", "printed": "90", "notation": null} |
nlprog_det-setting-0066779 | <|start|><|user|>
What is the total rent on a 24-month lease at $2,875 a month?<|eot|>
<|assistant|>
```python
monthly_rent = 2875
months = 24
total = monthly_rent * months # 69000
print(total)
```
(Printed result: 69000)
In total, $69,000 is paid.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is the total rent on a 24-month lease at $2,875 a month?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 2875\nmonths = 24\ntotal = monthly_rent * months # 69000\nprint(total)\n```\n(Printed result: 69000)\n\nIn total, $69,000 is paid."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "69000", "printed": "69000", "notation": null} |
nlprog_det-setting-0066780 | 28 of 50 members attended. What percent attended?
In code:
```python
present = 28
total = 50
percent = present / total * 100 # 56.00000000000001
print(round(percent, 1))
```
Executing it gives: 56.0
Attendance was 56.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "56.0", "printed": "56.0", "notation": null} |
nlprog_det-setting-0066781 | <|start|><|system|>
You may call the tools below.
{"name": "run_python", "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"]}}<|eot|>
<|user|>
Yusuf dr... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n{\"name\": \"run_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}},... | nlprog_det | setting | original | null | deterministic | [] | [] | 232 | {"gold": "413.40", "printed": "413.40", "notation": null} |
nlprog_det-setting-0066782 | <|start|><|user|>
Counting only Monday through Friday, how many business days are there after January 26, 2019 through March 3, 2019?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2019, 1, 26)
end = date(2019, 3, 3)
count = 0
for k in range(1, (end - start).days + 1):
if (start + ... | chat | [
{
"role": "user",
"content": "Counting only Monday through Friday, how many business days are there after January 26, 2019 through March 3, 2019?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2019, 1, 26)\nend = date(2019, 3, 3)\ncount = 0\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 157 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0066784 | <|start|><|user|>
8 hours of work at $410 an hour: what is the total charge?<|eot|>
<|assistant|>
```python
hours = 8
rate = 410
bill = hours * rate # 3280
print(f"{bill:.2f}")
```
Executing it gives 3280.00.
The bill is $3,280.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "8 hours of work at $410 an hour: what is the total charge?"
},
{
"role": "assistant",
"content": "```python\nhours = 8\nrate = 410\nbill = hours * rate # 3280\nprint(f\"{bill:.2f}\")\n```\nExecuting it gives 3280.00.\n\nThe bill is $3,280.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "3280.00", "printed": "3280.00", "notation": null} |
nlprog_det-setting-0066785 | Convert 3,747 EUR to USD at 1 EUR = 1.27 USD.
In code:
```python
amount = 3747
rate = 1.27
converted = amount * rate
print(f"{converted:.2f}")
```
stdout:
4758.69
It converts to 4,758.69 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "4758.69", "printed": "4758.69", "notation": null} |
nlprog_det-setting-0066786 | A $96 dinner bill gets a 18% tip, and 3 people share the cost equally. What is each person's share?
```python
bill = 96
tip_rate = 18 / 100 # 0.18
people = 3
each = bill * (1 + tip_rate) / people # 37.76
print(f"{each:.2f}")
```
This prints 37.76.
Each person pays $37.76. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "37.76", "printed": "37.76", "notation": null} |
nlprog_det-setting-0066788 | Of a $5,000 budget, $700 has been spent. What percent is that?
A Python solution:
```python
budget = 5000
spent = 700
percent = spent / budget * 100 # 14.000000000000002
print(round(percent, 1))
```
The program prints: 14.0
That is 14.0% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "14.0", "printed": "14.0", "notation": null} |
nlprog_det-setting-0066789 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "py_exec", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
Prorate $900 of m... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"py_exec\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir... | nlprog_det | setting | original | null | deterministic | [] | [] | 242 | {"gold": "667.74", "printed": "667.74", "notation": null} |
nlprog_det-setting-0066790 | Buying 6 desk lamps at $13 each, 1 markers at $9 each, 1 mugs at $22 each, 6 scissors at $25 each, someone hands over $300. What change comes back?
Here is the program.
```python
items = [(6, 13), (1, 9), (1, 22), (6, 25)]
total = sum(q * p for q, p in items) # 259
paid = 300
change = paid - total # 41
print(change)... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "41", "printed": "41", "notation": null} |
nlprog_det-setting-0066791 | <|start|><|user|>
What does $5,000 grow to in 5 years at 5% annual compounding?<|eot|>
<|assistant|>
```python
principal = 5000
rate = 5 / 100 # 0.05
years = 5
value = principal * (1 + rate) ** years # 6381.4078125000015
print(f"{value:.2f}")
```
That prints: 6381.41
The balance is $6,381.41.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What does $5,000 grow to in 5 years at 5% annual compounding?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 5000\nrate = 5 / 100 # 0.05\nyears = 5\nvalue = principal * (1 + rate) ** years # 6381.4078125000015\nprint(f\"{value:.2f}\")\n```\nThat pri... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "6381.41", "printed": "6381.41", "notation": null} |
nlprog_det-setting-0066792 | Parking is $4 per hour with a daily maximum of $20. What do 5 hours cost?
Programmatically:
```python
rate = 4
hours = 5
daily_max = 20
cost = min(rate * hours, daily_max) # 20
print(cost)
```
# printed: 20
The charge is $20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0066793 | <|start|><|user|>
How many minutes pass from 8:10 AM to 9:48 AM on the same day?<|eot|>
<|assistant|>
```python
start = 8 * 60 + 10
end = 9 * 60 + 48
print(end - start)
```
On running, it outputs 98.
It is 98 minutes long.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many minutes pass from 8:10 AM to 9:48 AM on the same day?"
},
{
"role": "assistant",
"content": "```python\nstart = 8 * 60 + 10\nend = 9 * 60 + 48\nprint(end - start)\n```\nOn running, it outputs 98.\n\nIt is 98 minutes long."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "98", "printed": "98", "notation": null} |
nlprog_det-setting-0066795 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "calculator", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
2 boo... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"calculator\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 232 | {"gold": "5.00", "printed": "5.00", "notation": null} |
nlprog_det-setting-0066796 | Someone born April 5, 1953 turns how old by January 7, 2025? Give the age in whole years.
A Python solution:
```python
from datetime import date
born = date(1953, 4, 5) # datetime.date(1953, 4, 5)
on = date(2025, 1, 7) # datetime.date(2025, 1, 7)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.da... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 161 | {"gold": "71", "printed": "71", "notation": null} |
nlprog_det-setting-0066797 | <|start|><|user|>
Fines run at $250 per day up to a maximum of $5,000. How much after 17 days?<|eot|>
<|assistant|>
```python
per_day = 250
days = 17
cap = 5000
fine = min(per_day * days, cap) # 4250
print(fine)
```
Execution result: 4250
The fine is $4,250.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Fines run at $250 per day up to a maximum of $5,000. How much after 17 days?"
},
{
"role": "assistant",
"content": "```python\nper_day = 250\ndays = 17\ncap = 5000\nfine = min(per_day * days, cap) # 4250\nprint(fine)\n```\nExecution result: 4250\n\nThe fine is $4,2... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "4250", "printed": "4250", "notation": null} |
nlprog_det-setting-0066798 | Meals are $69 per day and lodging $110 per night. What is the allowance for 3 days and 2 nights?
Let's compute it with Python.
days = 3
meal_rate = 69
lodging_rate = 110
nights = days - 1 # 2
total = days * meal_rate + nights * lodging_rate # 427
print(total)
What it prints: 427
The allowanc... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "427", "printed": "427", "notation": null} |
nlprog_det-setting-0066799 | <|start|><|user|>
What is a 20% tip on a $45.69 bill?<|eot|>
<|assistant|>
```python
bill = 45.69
tip_rate = 20 / 100 # 0.2
tip = bill * tip_rate # 9.138
print(f"{tip:.2f}")
```
It prints 9.14, as expected.
The tip is $9.14.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is a 20% tip on a $45.69 bill?"
},
{
"role": "assistant",
"content": "```python\nbill = 45.69\ntip_rate = 20 / 100 # 0.2\ntip = bill * tip_rate # 9.138\nprint(f\"{tip:.2f}\")\n```\nIt prints 9.14, as expected.\n\nThe tip is $9.14."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "9.14", "printed": "9.14", "notation": null} |
nlprog_det-setting-0066800 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "interpreter", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"interpreter\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source co... | nlprog_det | setting | original | null | deterministic | [] | [] | 251 | {"gold": "2019-04-25", "printed": "2019-04-25", "notation": null} |
nlprog_det-setting-0066801 | How many weekdays (Monday to Friday) fall after June 16, 2023 up to and including July 21, 2023?
Here is a short program for it.
```python
from datetime import date, timedelta
start = date(2023, 6, 16)
end = date(2023, 7, 21)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekd... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0066803 | <|start|><|user|>
Equipment costs $45,000, has a salvage value of $6,000, and a useful life of 5 years. What is the straight-line depreciation per year?<|eot|>
<|assistant|>
```python
cost = 45000
salvage = 6000
years = 5
per_year = (cost - salvage) / years # 7800.0
print(f"{per_year:.2f}")
```
Execution prints 7800.0... | chat | [
{
"role": "user",
"content": "Equipment costs $45,000, has a salvage value of $6,000, and a useful life of 5 years. What is the straight-line depreciation per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 45000\nsalvage = 6000\nyears = 5\nper_year = (cost - salvage) / years # 7... | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "7800.00", "printed": "7800.00", "notation": null} |
nlprog_det-setting-0066804 | What average speed covers 238 miles in 2 hours?
As a program:
```python
distance = 238
hours = 2
speed = distance / hours
print(round(speed))
```
Run result — 119
It averages 119 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 73 | {"gold": "119", "printed": "119", "notation": null} |
nlprog_det-setting-0066805 | <|start|><|user|>
At $26.90 an hour, what does 36 hours of work pay?<|eot|>
<|assistant|>
```python
rate = 26.9
hours = 36
earnings = rate * hours # 968.4
print(f"{earnings:.2f}")
```
The script prints 968.40, as expected.
The pay is $968.40.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $26.90 an hour, what does 36 hours of work pay?"
},
{
"role": "assistant",
"content": "```python\nrate = 26.9\nhours = 36\nearnings = rate * hours # 968.4\nprint(f\"{earnings:.2f}\")\n```\nThe script prints 968.40, as expected.\n\nThe pay is $968.40."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "968.40", "printed": "968.40", "notation": null} |
nlprog_det-setting-0066806 | Convert 20 °C to Fahrenheit.
Let the code do the arithmetic:
celsius = 20
fahrenheit = celsius * 9 / 5 + 32 # 68.0
print(round(fahrenheit))
stdout — 68
That is 68 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "68", "printed": "68", "notation": null} |
nlprog_det-setting-0066807 | Which is cheaper per unit: 12 for $8.90 (A) or 15 for $28.05 (B)?
As Python:
```python
pack_a = 8.9 / 12 # 0.7416666666666667
pack_b = 28.05 / 15 # 1.87
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
On running, it outputs: A
A has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0066808 | <|start|><|user|>
A desk lamp costs $75. It is 30% off. What is the sale price?<|eot|>
<|assistant|>
```python
price = 75
discount = 30 / 100 # 0.3
sale_price = price * (1 - discount) # 52.5
print(f"{sale_price:.2f}")
```
Output: 52.50
It costs $52.50.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A desk lamp costs $75. It is 30% off. What is the sale price?"
},
{
"role": "assistant",
"content": "```python\nprice = 75\ndiscount = 30 / 100 # 0.3\nsale_price = price * (1 - discount) # 52.5\nprint(f\"{sale_price:.2f}\")\n```\nOutput: 52.50\n\nIt costs $52.50."... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "52.50", "printed": "52.50", "notation": null} |
nlprog_det-setting-0066809 | <|start|><|user|>
5 friends split a $84 bill plus a 20% tip evenly. How much does each pay?<|eot|>
<|assistant|>
The share is $20.16 each.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "5 friends split a $84 bill plus a 20% tip evenly. How much does each pay?"
},
{
"role": "assistant",
"content": "The share is $20.16 each."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "20.16", "printed": "20.16", "notation": null} |
nlprog_det-setting-0066810 | Shipping costs $12 plus $0.75 per pound. What does a 13-pound parcel cost to ship?
A short script:
```python
base = 12
per_pound = 0.75
weight = 13
cost = base + per_pound * weight # 21.75
print(f"{cost:.2f}")
```
Out — 21.75
The charge is $21.75. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "21.75", "printed": "21.75", "notation": null} |
nlprog_det-setting-0066811 | <|start|><|user|>
A deposition lasted 5 hours and 27 minutes. How many minutes is that?<|eot|>
<|assistant|>
```python
hours = 5
minutes = 27
total_minutes = hours * 60 + minutes # 327
print(total_minutes)
```
The script prints 327, as expected.
The deposition lasted 327 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A deposition lasted 5 hours and 27 minutes. How many minutes is that?"
},
{
"role": "assistant",
"content": "```python\nhours = 5\nminutes = 27\ntotal_minutes = hours * 60 + minutes # 327\nprint(total_minutes)\n```\nThe script prints 327, as expected.\n\nThe deposi... | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "327", "printed": "327", "notation": null} |
nlprog_det-setting-0066812 | <|start|><|system|>
Tools (call with JSON):
[{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_unit", "to_unit"]}}, {"name... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\": \"string\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 344 | {"gold": "6083.26", "printed": "6083.26", "notation": null} |
nlprog_det-setting-0066813 | At 60 miles per hour, how many minutes does a 200-mile trip take?
Let's compute it with Python.
```python
distance = 200
speed = 60
minutes = distance / speed * 60 # 200.0
print(round(minutes))
```
Interpreter output: 200
The trip takes 200 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "200", "printed": "200", "notation": null} |
nlprog_det-setting-0066814 | A trial runs from October 5, 2026 to October 24, 2026, counting both days. How many calendar days is that?
Code:
```python
from datetime import date
first = date(2026, 10, 5) # datetime.date(2026, 10, 5)
last = date(2026, 10, 24) # datetime.date(2026, 10, 24)
days = (last - first).days + 1 # 20
print(days)
```
That... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0066815 | A 130-mile drive at a steady 65 mph takes how many minutes?
Programmatically:
distance = 130
speed = 65
minutes = distance / speed * 60 # 120.0
print(round(minutes))
(Result: 120)
The trip takes 120 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 69 | {"gold": "120", "printed": "120", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.