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-0078600 | <|start|><|user|>
One can of paint covers 300 square feet. How many cans are needed for 367 square feet of wall?<|eot|>
<|assistant|>
Buy 2 cans.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "One can of paint covers 300 square feet. How many cans are needed for 367 square feet of wall?"
},
{
"role": "assistant",
"content": "Buy 2 cans."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0078601 | <|start|><|system|>
You check calculations for an accounting team.<|eot|>
<|user|>
A lease runs for 18 months at $3,250 per month. How much rent is paid over the whole term?<|eot|>
<|assistant|>
```python
monthly_rent = 3250
months = 18
total = monthly_rent * months
print(total)
```
(Console output: 58500)
The rent ov... | chat | [
{
"role": "system",
"content": "You check calculations for an accounting team."
},
{
"role": "user",
"content": "A lease runs for 18 months at $3,250 per month. How much rent is paid over the whole term?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 3250\nmonths = ... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "58500", "printed": "58500", "notation": null} |
nlprog_det-setting-0078602 | <|start|><|user|>
Straight-line depreciation: cost $24,000, salvage $6,000, 8 years. How much per year?<|eot|>
<|assistant|>
```python
cost = 24000
salvage = 6000
years = 8
per_year = (cost - salvage) / years # 2250.0
print(f"{per_year:.2f}")
```
Interpreter output: 2250.00
$2,250.00 a year.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Straight-line depreciation: cost $24,000, salvage $6,000, 8 years. How much per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 24000\nsalvage = 6000\nyears = 8\nper_year = (cost - salvage) / years # 2250.0\nprint(f\"{per_year:.2f}\")\n```\nInterpret... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "2250.00", "printed": "2250.00", "notation": null} |
nlprog_det-setting-0078603 | A settlement of $84,000 is split equally among 8 parties. How much does each party receive?
Python does the arithmetic:
```python
settlement = 84000
parties = 8
share = settlement // parties # 10500
print(share)
```
# output: 10500
Each share is $10,500. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "10500", "printed": "10500", "notation": null} |
nlprog_det-setting-0078604 | With $12,500 in costs and $15,000 in revenue, what percent of revenue is profit? Round to one decimal.
Let's compute it with Python.
```python
revenue = 15000
costs = 12500
profit = revenue - costs # 2500
margin = profit / revenue * 100 # 16.666666666666664
print(round(margin, 1))
```
Shell output — 16.7
The margin... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "16.7", "printed": "16.7", "notation": null} |
nlprog_det-setting-0078605 | 203 volunteers are split into 9 equal teams. How many are on each team, and how many are left over?
Python, step by step:
```python
total = 203
groups = 9
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Shell output — 22 each, 5 left over
The answer: 22 each, 5 left ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "22 each, 5 left over", "printed": "22 each, 5 left over", "notation": null} |
nlprog_det-setting-0078606 | How many meters are in 44 kilometers? 44,000 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 18 | {"gold": "44000", "printed": "44000", "notation": null} |
nlprog_det-setting-0078607 | <|start|><|user|>
Goods bought on June 17, 2025 carry a 12-month warranty. When does it expire?<|eot|>
<|assistant|>
```python
from datetime import date
start = date(2025, 6, 17)
months = 12
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.is... | chat | [
{
"role": "user",
"content": "Goods bought on June 17, 2025 carry a 12-month warranty. When does it expire?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nstart = date(2025, 6, 17)\nmonths = 12\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(s... | nlprog_det | setting | original | null | deterministic | [] | [] | 150 | {"gold": "2026-06-17", "printed": "2026-06-17", "notation": null} |
nlprog_det-setting-0078608 | How much sales tax is charged on a $459.98 purchase at 6%?
Written as code:
```python
price = 459.98
tax_rate = 6 / 100 # 0.06
tax = price * tax_rate # 27.5988
print(f"{tax:.2f}")
```
(Printed: 27.60)
$27.60 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "27.60", "printed": "27.60", "notation": null} |
nlprog_det-setting-0078609 | Notice was given on July 28, 2026. The notice period is 45 days. When does it run out?
Python, step by step:
from datetime import date, timedelta
start = date(2026, 7, 28) # datetime.date(2026, 7, 28)
end = start + timedelta(days=45) # datetime.date(2026, 9, 11)
print(end.isoformat())
The program pri... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "2026-09-11", "printed": "2026-09-11", "notation": null} |
nlprog_det-setting-0078610 | <|start|><|user|>
Divide 166 items among 5 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|>
<|assistant|>
```python
total = 166
groups = 5
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
When run, it prints 33 each, 1 left... | chat | [
{
"role": "user",
"content": "Divide 166 items among 5 groups as evenly as possible with equal groups. How many per group, and how many remain?"
},
{
"role": "assistant",
"content": "```python\ntotal = 166\ngroups = 5\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {rem... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "33 each, 1 left over", "printed": "33 each, 1 left over", "notation": null} |
nlprog_det-setting-0078611 | A 10-day notice period begins on November 21, 2018. On what date does it end?
Program:
```python
from datetime import date, timedelta
start = date(2018, 11, 21) # datetime.date(2018, 11, 21)
end = start + timedelta(days=10) # datetime.date(2018, 12, 1)
print(end.isoformat())
```
It prints 2018-12-01.
It ends on Dec... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "2018-12-01", "printed": "2018-12-01", "notation": null} |
nlprog_det-setting-0078612 | 6 claimants share a $4,500 settlement equally. What is each share?
Here's the code.
```python
settlement = 4500
parties = 6
share = settlement // parties # 750
print(share)
```
Result = 750
Each party receives $750. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "750", "printed": "750", "notation": null} |
nlprog_det-setting-0078613 | Equipment costs $18,000, has a salvage value of $3,000, and a useful life of 3 years. What is the straight-line depreciation per year?
```python
cost = 18000
salvage = 3000
years = 3
per_year = (cost - salvage) / years # 5000.0
print(f"{per_year:.2f}")
```
Execution prints 5000.00, as expected.
$5,000.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "5000.00", "printed": "5000.00", "notation": null} |
nlprog_det-setting-0078614 | Zoe and Delia share $1,011 in the ratio 1:2. How much does Zoe get?
Python makes this quick:
total = 1011
parts_a = 1
parts_b = 2
share_a = total * parts_a // (parts_a + parts_b)
print(share_a)
This prints: 337
Zoe's share is $337. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "337", "printed": "337", "notation": null} |
nlprog_det-setting-0078615 | One can of paint covers 250 square feet. How many cans are needed for 693 square feet of wall?
```python
import math
area = 693
coverage = 250
cans = math.ceil(area / coverage) # 3
print(cans)
```
What it prints: 3
3 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0078616 | A meal costs $93.16. How much is a 18% tip?
Script:
```python
bill = 93.16
tip_rate = 18 / 100 # 0.18
tip = bill * tip_rate # 16.7688
print(f"{tip:.2f}")
```
Out: 16.77
The tip is $16.77. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "16.77", "printed": "16.77", "notation": null} |
nlprog_det-setting-0078617 | <|start|><|system|>
You help with homework problems.<|eot|>
<|user|>
A 8% increase is applied to $1,100 monthly rent. What is the new amount?<|eot|>
<|assistant|>
It rises to $1,188.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help with homework problems."
},
{
"role": "user",
"content": "A 8% increase is applied to $1,100 monthly rent. What is the new amount?"
},
{
"role": "assistant",
"content": "It rises to $1,188.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 52 | {"gold": "1188.00", "printed": "1188.00", "notation": null} |
nlprog_det-setting-0078618 | <|start|><|user|>
A penalty of $100 a day accrues, capped at $2,500. What is owed after 43 days?<|eot|>
<|assistant|>
```python
per_day = 100
days = 43
cap = 2500
fine = min(per_day * days, cap) # 2500
print(fine)
```
The script prints 2500, as expected.
$2,500 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A penalty of $100 a day accrues, capped at $2,500. What is owed after 43 days?"
},
{
"role": "assistant",
"content": "```python\nper_day = 100\ndays = 43\ncap = 2500\nfine = min(per_day * days, cap) # 2500\nprint(fine)\n```\nThe script prints 2500, as expected.\n\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "2500", "printed": "2500", "notation": null} |
nlprog_det-setting-0078619 | <|start|><|user|>
A 350-page report must be reviewed in 10 days. How many pages a day is that, evenly?<|eot|>
<|assistant|>
```python
pages = 350
days = 10
per_day = pages // days # 35
print(per_day)
```
Shell output: 35
That is 35 pages per day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 350-page report must be reviewed in 10 days. How many pages a day is that, evenly?"
},
{
"role": "assistant",
"content": "```python\npages = 350\ndays = 10\nper_day = pages // days # 35\nprint(per_day)\n```\nShell output: 35\n\nThat is 35 pages per day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "35", "printed": "35", "notation": null} |
nlprog_det-setting-0078620 | A penalty of $50 a day accrues, capped at $2,500. What is owed after 46 days?
We can compute it in Python.
```python
per_day = 50
days = 46
cap = 2500
fine = min(per_day * days, cap) # 2300
print(fine)
```
stdout = 2300
$2,300 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "2300", "printed": "2300", "notation": null} |
nlprog_det-setting-0078621 | If a 25-minute seminar begins at 2:15 PM, what time does it finish?
Python version:
```python
start = 14 * 60 + 15
end = start + 25
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
# printed result: 2:40 PM
The seminar finishes at 2:40 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "2:40 PM", "printed": "2:40 PM", "notation": null} |
nlprog_det-setting-0078622 | A service costs $12 a month or $108 a year. How much does the yearly plan save over 12 monthly payments?
Coded up:
```python
monthly = 12
yearly = 108
savings = monthly * 12 - yearly # 36
print(savings)
```
stdout — 36
The annual plan saves $36. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0078623 | The rules require 3/5 of 15 members (round up) to be present. How many is that?
Computing it:
```python
import math
members = 15
quorum = math.ceil(members * 3 / 5)
print(quorum)
```
(Run result: 9)
That is 9 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0078624 | <|start|><|user|>
The rules require 1/3 of 19 members (round up) to be present. How many is that?<|eot|>
<|assistant|>
import math
members = 19
quorum = math.ceil(members * 1 / 3) # 7
print(quorum)
It prints 7.
7 members are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The rules require 1/3 of 19 members (round up) to be present. How many is that?"
},
{
"role": "assistant",
"content": " import math\n members = 19\n quorum = math.ceil(members * 1 / 3) # 7\n print(quorum)\nIt prints 7.\n\n7 members are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0078625 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"name": "interpreter", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"interpreter\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"... | nlprog_det | setting | original | null | deterministic | [] | [] | 226 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0078626 | Lucia lends $5,000 at 6% simple interest per year for 4 years. How much interest is earned?
Python, step by step:
```python
principal = 5000
rate = 6 / 100 # 0.06
years = 4
interest = principal * rate * years # 1200.0
print(f"{interest:.2f}")
```
It prints: 1200.00
It earns $1,200.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "1200.00", "printed": "1200.00", "notation": null} |
nlprog_det-setting-0078627 | Notice was given on April 9, 2019. The notice period is 60 days. When does it run out?
```python
from datetime import date, timedelta
start = date(2019, 4, 9) # datetime.date(2019, 4, 9)
end = start + timedelta(days=60) # datetime.date(2019, 6, 8)
print(end.isoformat())
```
Out: 2019-06-08
The period ends on June 8... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "2019-06-08", "printed": "2019-06-08", "notation": null} |
nlprog_det-setting-0078628 | <|start|><|user|>
Revenue is $38,500 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|>
<|assistant|>
```python
revenue = 38500
costs = 36000
profit = revenue - costs
margin = profit / revenue * 100
print(round(margin, 1))
```
Running it prints 6.5.
The margin is 6.5%.<|eot|... | chat | [
{
"role": "user",
"content": "Revenue is $38,500 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?"
},
{
"role": "assistant",
"content": "```python\nrevenue = 38500\ncosts = 36000\nprofit = revenue - costs\nmargin = profit / revenue * 100\nprint(round(margin... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "6.5", "printed": "6.5", "notation": null} |
nlprog_det-setting-0078629 | Revenue is $4,500 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)?
Let's compute it with Python.
```python
revenue = 4500
costs = 4000
profit = revenue - costs # 500
margin = profit / revenue * 100 # 11.11111111111111
print(round(margin, 1))
```
# program output: 11.1
Profit is... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "11.1", "printed": "11.1", "notation": null} |
nlprog_det-setting-0078631 | <|start|><|system|>
You may call the tools below.
[{"name": "run_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "convert_units", "description": "Con... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"run_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"sou... | nlprog_det | setting | original | null | deterministic | [] | [] | 328 | {"gold": "60", "printed": "60", "notation": null} |
nlprog_det-setting-0078632 | <|start|><|user|>
At a 9% tax rate, what is the tax on $532.74?<|eot|>
<|assistant|>
```python
price = 532.74
tax_rate = 9 / 100 # 0.09
tax = price * tax_rate # 47.9466
print(f"{tax:.2f}")
```
When run, it prints 47.95.
$47.95 in tax.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At a 9% tax rate, what is the tax on $532.74?"
},
{
"role": "assistant",
"content": "```python\nprice = 532.74\ntax_rate = 9 / 100 # 0.09\ntax = price * tax_rate # 47.9466\nprint(f\"{tax:.2f}\")\n```\nWhen run, it prints 47.95.\n\n$47.95 in tax."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "47.95", "printed": "47.95", "notation": null} |
nlprog_det-setting-0078633 | How many weekdays (Monday to Friday) fall after May 7, 2020 up to and including May 22, 2020?
Written as code:
```python
from datetime import date, timedelta
start = date(2020, 5, 7)
end = date(2020, 5, 22)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekday() < 5:
c... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "11", "printed": "11", "notation": null} |
nlprog_det-setting-0078634 | A lawyer's fee is 33% of a $90,000 recovery. How large is the fee?
Here is the program.
recovery = 90000
rate = 33 / 100 # 0.33
fee = recovery * rate # 29700.0
print(f"{fee:.2f}")
# output: 29700.00
The lawyer's fee comes to $29,700.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "29700.00", "printed": "29700.00", "notation": null} |
nlprog_det-setting-0078635 | Rent of $1,500 goes up 8%. What is the new rent?
Script:
```python
rent = 1500
increase = 8 / 100 # 0.08
new_rent = rent * (1 + increase) # 1620.0
print(f"{new_rent:.2f}")
```
Execution result — 1620.00
The new rent is $1,620.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "1620.00", "printed": "1620.00", "notation": null} |
nlprog_det-setting-0078636 | Someone born August 21, 1978 turns how old by August 24, 2029? Give the age in whole years.
As Python:
```python
from datetime import date
born = date(1978, 8, 21) # datetime.date(1978, 8, 21)
on = date(2029, 8, 24) # datetime.date(2029, 8, 24)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 161 | {"gold": "51", "printed": "51", "notation": null} |
nlprog_det-setting-0078637 | Femi earns a 2% commission on $66,513 of sales. What is the commission?
Written as code:
```python
sales = 66513
rate = 2 / 100 # 0.02
commission = sales * rate # 1330.26
print(f"{commission:.2f}")
```
# result: 1330.26
The commission is $1,330.26. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "1330.26", "printed": "1330.26", "notation": null} |
nlprog_det-setting-0078639 | Of a $5,000 budget, $3,400 has been spent. What percent is that?
The program:
```python
budget = 5000
spent = 3400
percent = spent / budget * 100 # 68.0
print(round(percent, 1))
```
Out = 68.0
That is 68.0% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "68.0", "printed": "68.0", "notation": null} |
nlprog_det-setting-0078640 | <|start|><|user|>
A lease runs for 18 months at $2,875 per month. How much rent is paid over the whole term?<|eot|>
<|assistant|>
```python
monthly_rent = 2875
months = 18
total = monthly_rent * months # 51750
print(total)
```
Printed: 51750
In total, $51,750 is paid.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lease runs for 18 months at $2,875 per month. How much rent is paid over the whole term?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 2875\nmonths = 18\ntotal = monthly_rent * months # 51750\nprint(total)\n```\nPrinted: 51750\n\nIn total, $51,... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "51750", "printed": "51750", "notation": null} |
nlprog_det-setting-0078641 | How many units at $30 each (variable cost $26) cover $2,500 of fixed costs?
Python, step by step:
```python
import math
fixed = 2500
price = 30
variable = 26
units = math.ceil(fixed / (price - variable)) # 625
print(units)
```
The program prints 625.
625 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "625", "printed": "625", "notation": null} |
nlprog_det-setting-0078642 | <|start|><|user|>
$1,000 is invested at 4% compounded yearly. What is it worth after 2 years?<|eot|>
<|assistant|>
```python
principal = 1000
rate = 4 / 100 # 0.04
years = 2
value = principal * (1 + rate) ** years # 1081.6000000000001
print(f"{value:.2f}")
```
# out: 1081.60
It is worth $1,081.60.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "$1,000 is invested at 4% compounded yearly. What is it worth after 2 years?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 1000\nrate = 4 / 100 # 0.04\nyears = 2\nvalue = principal * (1 + rate) ** years # 1081.6000000000001\nprint(f\"{value:.2f}\")\... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "1081.60", "printed": "1081.60", "notation": null} |
nlprog_det-setting-0078643 | How many meters are in 63 kilometers?
Python code:
```python
km = 63
meters = km * 1000
print(round(meters))
```
Run it and it prints: 63000
That is 63,000 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "63000", "printed": "63000", "notation": null} |
nlprog_det-setting-0078644 | <|start|><|system|>
You are a study helper for students.<|eot|>
<|user|>
Papers were served by mail on August 8, 2020. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?<|eot|>
<|assistant|>
from datetime import date, timedelta
served = date(2020, 8, 8) # datetime.dat... | chat | [
{
"role": "system",
"content": "You are a study helper for students."
},
{
"role": "user",
"content": "Papers were served by mail on August 8, 2020. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?"
},
{
"role": "assistant",
"content": " ... | nlprog_det | setting | original | null | deterministic | [] | [] | 178 | {"gold": "2020-08-25", "printed": "2020-08-25", "notation": null} |
nlprog_det-setting-0078645 | <|start|><|user|>
A measure needs at least 67% of 144 votes. How many votes is that, rounded up?<|eot|>
<|assistant|>
import math
voters = 144
needed = math.ceil(voters * 67 / 100) # 97
print(needed)
(Printed: 97)
97 votes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A measure needs at least 67% of 144 votes. How many votes is that, rounded up?"
},
{
"role": "assistant",
"content": " import math\n voters = 144\n needed = math.ceil(voters * 67 / 100) # 97\n print(needed)\n(Printed: 97)\n\n97 votes are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "97", "printed": "97", "notation": null} |
nlprog_det-setting-0078646 | <|start|><|user|>
A client paid a $10,000 retainer. The firm has billed 2 hours at $275 per hour. How much of the retainer is left?<|eot|>
<|assistant|>
```python
retainer = 10000
hours = 2
rate = 275
left = retainer - hours * rate # 9450
print(left)
```
Running it prints 9450, as expected.
The remaining balance is $... | chat | [
{
"role": "user",
"content": "A client paid a $10,000 retainer. The firm has billed 2 hours at $275 per hour. How much of the retainer is left?"
},
{
"role": "assistant",
"content": "```python\nretainer = 10000\nhours = 2\nrate = 275\nleft = retainer - hours * rate # 9450\nprint(left)\n```\nRun... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "9450", "printed": "9450", "notation": null} |
nlprog_det-setting-0078647 | A 195-mile drive at a steady 45 mph takes how many minutes?
Python, step by step:
```python
distance = 195
speed = 45
minutes = distance / speed * 60 # 260.0
print(round(minutes))
```
The program outputs: 260
The trip takes 260 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "260", "printed": "260", "notation": null} |
nlprog_det-setting-0078649 | Xavier was born on June 18, 1952. How old is Xavier on November 2, 2022?
The Python version:
```python
from datetime import date
born = date(1952, 6, 18) # datetime.date(1952, 6, 18)
on = date(2022, 11, 2) # datetime.date(2022, 11, 2)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 70
pr... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 157 | {"gold": "70", "printed": "70", "notation": null} |
nlprog_det-setting-0078650 | <|start|><|user|>
118 files go into boxes of 24. How many boxes does that take?<|eot|>
<|assistant|>
```python
import math
files = 118
per_box = 24
boxes = math.ceil(files / per_box) # 5
print(boxes)
```
Printed = 5
5 boxes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "118 files go into boxes of 24. How many boxes does that take?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 118\nper_box = 24\nboxes = math.ceil(files / per_box) # 5\nprint(boxes)\n```\nPrinted = 5\n\n5 boxes are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0078651 | At 65 miles per hour, how many minutes does a 260-mile trip take?
Let the code do the arithmetic:
```python
distance = 260
speed = 65
minutes = distance / speed * 60 # 240.0
print(round(minutes))
```
Out = 240
240 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "240", "printed": "240", "notation": null} |
nlprog_det-setting-0078652 | <|start|><|user|>
Starting from $8,000, the team spends $1,178, $939, $1,614, $3,461. What remains?<|eot|>
<|assistant|>
$808 is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting from $8,000, the team spends $1,178, $939, $1,614, $3,461. What remains?"
},
{
"role": "assistant",
"content": "$808 is left."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 53 | {"gold": "808", "printed": "808", "notation": null} |
nlprog_det-setting-0078653 | How many meters are in 13 kilometers?
A short script:
km = 13
meters = km * 1000 # 13000
print(round(meters))
Program output: 13000
That is 13,000 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 65 | {"gold": "13000", "printed": "13000", "notation": null} |
nlprog_det-setting-0078654 | From 2015 to 2051, how many years is that?
The computation:
```python
start_year = 2015
end_year = 2051
print(end_year - start_year)
```
# run result: 36
36 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 65 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0078655 | Straight-line depreciation: cost $18,000, salvage $2,000, 4 years. How much per year?
A few lines of Python do it:
cost = 18000
salvage = 2000
years = 4
per_year = (cost - salvage) / years # 4000.0
print(f"{per_year:.2f}")
Execution prints: 4000.00
$4,000.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "4000.00", "printed": "4000.00", "notation": null} |
nlprog_det-setting-0078657 | <|start|><|user|>
A hearing is set for September 13, 1994. What day of the week is that?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(1994, 9, 13) # datetime.date(1994, 9, 13)
print(hearing.strftime("%A"))
```
# printed: Tuesday
It is a Tuesday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hearing is set for September 13, 1994. What day of the week is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(1994, 9, 13) # datetime.date(1994, 9, 13)\nprint(hearing.strftime(\"%A\"))\n```\n# printed: Tuesday\n\... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "Tuesday", "printed": "Tuesday", "notation": null} |
nlprog_det-setting-0078658 | An attorney bills 6.5 hours at $410 per hour. What is the bill?
Python version:
```python
hours = 6.5
rate = 410
bill = hours * rate # 2665.0
print(f"{bill:.2f}")
```
Run output: 2665.00
That comes to $2,665.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "2665.00", "printed": "2665.00", "notation": null} |
nlprog_det-setting-0078659 | One can of paint covers 400 square feet. How many cans are needed for 1096 square feet of wall?
One way, in code:
import math
area = 1096
coverage = 400
cans = math.ceil(area / coverage) # 3
print(cans)
It prints 3.
Buy 3 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0078660 | 646 files go into boxes of 50. How many boxes does that take?
Python makes this quick:
```python
import math
files = 646
per_box = 50
boxes = math.ceil(files / per_box) # 13
print(boxes)
```
stdout = 13
It takes 13 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0078661 | <|start|><|system|>
You have access to these functions:
{"name": "sandbox_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|>
<|user|>
A meal costs $158... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"sandbox_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"req... | nlprog_det | setting | original | null | deterministic | [] | [] | 222 | {"gold": "23.76", "printed": "23.76", "notation": null} |
nlprog_det-setting-0078663 | What is a 22% tip on a $46.46 bill?
In code:
```python
bill = 46.46
tip_rate = 22 / 100 # 0.22
tip = bill * tip_rate # 10.2212
print(f"{tip:.2f}")
```
Python prints 10.22, as expected.
Leave $10.22. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "10.22", "printed": "10.22", "notation": null} |
nlprog_det-setting-0078664 | What percentage of $5,000 is $3,500?
```python
budget = 5000
spent = 3500
percent = spent / budget * 100 # 70.0
print(round(percent, 1))
```
(Result: 70.0)
That is 70.0% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "70.0", "printed": "70.0", "notation": null} |
nlprog_det-setting-0078665 | <|start|><|system|>
You check calculations for an accounting team.<|eot|>
<|user|>
A jacket costs $45. It is 40% off. What is the sale price?<|eot|>
<|assistant|>
```python
price = 45
discount = 40 / 100 # 0.4
sale_price = price * (1 - discount) # 27.0
print(f"{sale_price:.2f}")
```
# console output: 27.00
It costs ... | chat | [
{
"role": "system",
"content": "You check calculations for an accounting team."
},
{
"role": "user",
"content": "A jacket costs $45. It is 40% off. What is the sale price?"
},
{
"role": "assistant",
"content": "```python\nprice = 45\ndiscount = 40 / 100 # 0.4\nsale_price = price * (... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "27.00", "printed": "27.00", "notation": null} |
nlprog_det-setting-0078666 | If a 135-minute meeting begins at 1:10 PM, what time does it finish?
Translated to Python:
```python
start = 13 * 60 + 10
end = start + 135
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
It outputs: 3:25 PM
The meeting finishes at 3:25 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "3:25 PM", "printed": "3:25 PM", "notation": null} |
nlprog_det-setting-0078667 | A car travels 247 miles in 0.5 hours. What is its average speed in miles per hour?
Python does the arithmetic:
```python
distance = 247
hours = 0.5
speed = distance / hours # 494.0
print(round(speed))
```
Execution result: 494
The average speed is 494 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "494", "printed": "494", "notation": null} |
nlprog_det-setting-0078668 | <|start|><|user|>
A shift runs from 7:55 AM to 12:07 PM. How long is it in minutes?<|eot|>
<|assistant|>
It is 252 minutes long.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A shift runs from 7:55 AM to 12:07 PM. How long is it in minutes?"
},
{
"role": "assistant",
"content": "It is 252 minutes long."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "252", "printed": "252", "notation": null} |
nlprog_det-setting-0078669 | Pack A has 12 items for $9.22. Pack B has 30 items for $29.87. Which has the lower price per item?
```python
pack_a = 9.22 / 12 # 0.7683333333333334
pack_b = 29.87 / 30 # 0.9956666666666667
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
The code prints: A
A has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0078670 | Someone born February 25, 1978 turns how old by September 7, 2024? Give the age in whole years.
Computation in Python:
```python
from datetime import date
born = date(1978, 2, 25) # datetime.date(1978, 2, 25)
on = date(2024, 9, 7) # datetime.date(2024, 9, 7)
age = on.year - born.year - ((on.month, on.day) < (born.mo... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 161 | {"gold": "46", "printed": "46", "notation": null} |
nlprog_det-setting-0078671 | <|start|><|user|>
A $1,500 security deposit has deductions of $75 and $200. How much is refunded?<|eot|>
<|assistant|>
```python
deposit = 1500
deductions = [75, 200]
refund = deposit - sum(deductions) # 1225
print(refund)
```
Executing it gives 1225, as expected.
The refund is $1,225.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A $1,500 security deposit has deductions of $75 and $200. How much is refunded?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 1500\ndeductions = [75, 200]\nrefund = deposit - sum(deductions) # 1225\nprint(refund)\n```\nExecuting it gives 1225, as expe... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "1225", "printed": "1225", "notation": null} |
nlprog_det-setting-0078672 | <|start|><|user|>
A trial runs from April 5, 2020 to April 13, 2020, counting both days. How many calendar days is that?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2020, 4, 5) # datetime.date(2020, 4, 5)
last = date(2020, 4, 13) # datetime.date(2020, 4, 13)
days = (last - first).days + 1 #... | chat | [
{
"role": "user",
"content": "A trial runs from April 5, 2020 to April 13, 2020, counting both days. How many calendar days is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2020, 4, 5) # datetime.date(2020, 4, 5)\nlast = date(2020, 4, 13) # dat... | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0078673 | <|start|><|system|>
Tools (call with JSON):
{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}
{"name": "sandbox_python", "description": "A Python interpreter. Returns standard ... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}\n{\"name\": \"sandbox_python\",... | nlprog_det | setting | original | null | deterministic | [] | [] | 334 | {"gold": "1220.00", "printed": "1220.00", "notation": null} |
nlprog_det-setting-0078674 | Parking is $4 per hour with a daily maximum of $15. What do 5 hours cost?
```python
rate = 4
hours = 5
daily_max = 15
cost = min(rate * hours, daily_max) # 15
print(cost)
```
The script prints 15, as expected.
Parking costs $15. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0078675 | A claim accrued on July 2, 2013. The limitations period is 2 years. On what date does it expire?
A few lines of Python do it:
```python
from datetime import date
accrued = date(2013, 7, 2) # datetime.date(2013, 7, 2)
years = 2
expires = accrued.replace(year=accrued.year + years) # datetime.date(2015, 7, 2)
print(exp... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 150 | {"gold": "2015-07-02", "printed": "2015-07-02", "notation": null} |
nlprog_det-setting-0078676 | What average speed covers 469 miles in 1 hours?
A short script:
```python
distance = 469
hours = 1
speed = distance / hours # 469.0
print(round(speed))
```
Out:
469
The average speed is 469 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "469", "printed": "469", "notation": null} |
nlprog_det-setting-0078677 | 22 mugs cost $9 apiece. With 10% tax added, what is the total?
As a program:
```python
quantity = 22
unit_price = 9
subtotal = quantity * unit_price # 198
total = subtotal * (1 + 10 / 100) # 217.8
print(f"{total:.2f}")
```
That prints: 217.80
The invoice total is $217.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "217.80", "printed": "217.80", "notation": null} |
nlprog_det-setting-0078678 | 6 boxes hold 12 scissors each. After 12 are handed out, how many are left?
Python:
```python
boxes = 6
per_box = 12
given_away = 12
left = boxes * per_box - given_away # 60
print(left)
```
Running this gives 60.
60 scissors are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "60", "printed": "60", "notation": null} |
nlprog_det-setting-0078679 | Rent of $2,200 goes up 5%. What is the new rent?
Set it up in Python:
```python
rent = 2200
increase = 5 / 100 # 0.05
new_rent = rent * (1 + increase) # 2310.0
print(f"{new_rent:.2f}")
```
Running it prints 2310.00, as expected.
The new rent is $2,310.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "2310.00", "printed": "2310.00", "notation": null} |
nlprog_det-setting-0078680 | <|start|><|user|>
Someone works 30 hours at $25.95 per hour. What are the earnings?<|eot|>
<|assistant|>
```python
rate = 25.95
hours = 30
earnings = rate * hours
print(f"{earnings:.2f}")
```
# console output: 778.50
That earns $778.50.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Someone works 30 hours at $25.95 per hour. What are the earnings?"
},
{
"role": "assistant",
"content": "```python\nrate = 25.95\nhours = 30\nearnings = rate * hours\nprint(f\"{earnings:.2f}\")\n```\n# console output: 778.50\n\nThat earns $778.50."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "778.50", "printed": "778.50", "notation": null} |
nlprog_det-setting-0078681 | <|start|><|user|>
With 10% off, what does a $45 desk lamp cost?<|eot|>
<|assistant|>
It costs $40.50.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 10% off, what does a $45 desk lamp cost?"
},
{
"role": "assistant",
"content": "It costs $40.50."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "40.50", "printed": "40.50", "notation": null} |
nlprog_det-setting-0078682 | Monthly rent is $1,200. A tenant moves in with 19 days left in a 30-day month. What is the prorated rent?
Python:
rent = 1200
days_in_month = 30
days_occupied = 19
prorated = rent * days_occupied / days_in_month # 760.0
print(f"{prorated:.2f}")
Printed — 760.00
The tenant owes $760.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "760.00", "printed": "760.00", "notation": null} |
nlprog_det-setting-0078683 | <|start|><|user|>
6 friends split a $120 bill plus a 20% tip evenly. How much does each pay?<|eot|>
<|assistant|>
Each person pays $24.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "6 friends split a $120 bill plus a 20% tip evenly. How much does each pay?"
},
{
"role": "assistant",
"content": "Each person pays $24.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "24.00", "printed": "24.00", "notation": null} |
nlprog_det-setting-0078684 | <|start|><|system|>
Functions:
[{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "eval_python", "description": "Use for arithmetic and date ... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\", \"end\"]}}, {\"name\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 304 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0078685 | <|start|><|user|>
Convert 92.2 km to meters.<|eot|>
<|assistant|>
That is 92,200 meters.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 92.2 km to meters."
},
{
"role": "assistant",
"content": "That is 92,200 meters."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "92200", "printed": "92200", "notation": null} |
nlprog_det-setting-0078686 | Tobias's scores were 66, 89 and 58. What is the average score?
Programmatically:
```python
scores = [66, 89, 58]
average = sum(scores) // len(scores) # 71
print(average)
```
When run, it prints 71, as expected.
The mean is 71. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "71", "printed": "71", "notation": null} |
nlprog_det-setting-0078688 | 262 volunteers are split into 8 equal teams. How many are on each team, and how many are left over?
A few lines of Python do it:
total = 262
groups = 8
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
The printout reads: 32 each, 6 left over
32 each, 6 lef... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "32 each, 6 left over", "printed": "32 each, 6 left over", "notation": null} |
nlprog_det-setting-0078689 | Split $2,535 between Emeka and Hugo in the ratio 1 to 2. What is Emeka's share?
Emeka gets $845. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "845", "printed": "845", "notation": null} |
nlprog_det-setting-0078690 | With 10% off, what does a $90 desk lamp cost?
Computation in Python:
```python
price = 90
discount = 10 / 100 # 0.1
sale_price = price * (1 - discount) # 81.0
print(f"{sale_price:.2f}")
```
Printed result: 81.00
The sale price is $81.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "81.00", "printed": "81.00", "notation": null} |
nlprog_det-setting-0078691 | A service costs $12 a month or $120 a year. How much does the yearly plan save over 12 monthly payments?
$24 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0078692 | What average speed covers 474 miles in 2 hours?
Written as code:
```python
distance = 474
hours = 2
speed = distance / hours # 237.0
print(round(speed))
```
Console output: 237
It averages 237 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "237", "printed": "237", "notation": null} |
nlprog_det-setting-0078693 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
A shift runs from 9:49 AM to 11:27 AM. How long is it in minutes?<|eot|>
<|assistant|>
```python
start = 9 * 60 + 49 # 589
end = 11 * 60 + 27 # 687
print(end - start)
```
When run, it prints 98, as expected.
It is 98 minutes long.<|eot|>
<|en... | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "A shift runs from 9:49 AM to 11:27 AM. How long is it in minutes?"
},
{
"role": "assistant",
"content": "```python\nstart = 9 * 60 + 49 # 589\nend = 11 * 60 + 27 # 687\nprint(en... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "98", "printed": "98", "notation": null} |
nlprog_det-setting-0078694 | <|start|><|user|>
Equipment costs $45,000, has a salvage value of $3,000, and a useful life of 3 years. What is the straight-line depreciation per year?<|eot|>
<|assistant|>
$14,000.00 a year.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Equipment costs $45,000, has a salvage value of $3,000, and a useful life of 3 years. What is the straight-line depreciation per year?"
},
{
"role": "assistant",
"content": "$14,000.00 a year."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 55 | {"gold": "14000.00", "printed": "14000.00", "notation": null} |
nlprog_det-setting-0078695 | <|start|><|system|>
You help with homework problems.<|eot|>
<|user|>
An invoice lists 13 tape rolls at $12 each, plus 6% sales tax. What is the invoice total?<|eot|>
<|assistant|>
```python
quantity = 13
unit_price = 12
subtotal = quantity * unit_price # 156
total = subtotal * (1 + 6 / 100) # 165.36
print(f"{total:.2... | chat | [
{
"role": "system",
"content": "You help with homework problems."
},
{
"role": "user",
"content": "An invoice lists 13 tape rolls at $12 each, plus 6% sales tax. What is the invoice total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 13\nunit_price = 12\nsubtotal = qu... | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "165.36", "printed": "165.36", "notation": null} |
nlprog_det-setting-0078696 | From 1994 to 2020, how many years is that?
26 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 16 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0078697 | <|start|><|user|>
Find the mean of these test scores: 84, 70, 96 and 90.<|eot|>
<|assistant|>
```python
scores = [84, 70, 96, 90]
average = sum(scores) // len(scores) # 85
print(average)
```
The run gives 85.
The average score is 85.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Find the mean of these test scores: 84, 70, 96 and 90."
},
{
"role": "assistant",
"content": "```python\nscores = [84, 70, 96, 90]\naverage = sum(scores) // len(scores) # 85\nprint(average)\n```\nThe run gives 85.\n\nThe average score is 85."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "85", "printed": "85", "notation": null} |
nlprog_det-setting-0078698 | A jacket costs $60. It is 30% off. What is the sale price?
A Python solution:
```python
price = 60
discount = 30 / 100 # 0.3
sale_price = price * (1 - discount) # 42.0
print(f"{sale_price:.2f}")
```
Printed: 42.00
It costs $42.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "42.00", "printed": "42.00", "notation": null} |
nlprog_det-setting-0078699 | <|start|><|system|>
You have access to these functions:
{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}
{"name": "run_python", "description": "A Python interpreter. Returns standard output.", "pa... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}\n{\"name\": \"run_python\", \"descriptio... | nlprog_det | setting | original | null | deterministic | [] | [] | 313 | {"gold": "4000.00", "printed": "4000.00", "notation": null} |
nlprog_det-setting-0078700 | How much sales tax is charged on a $478.99 purchase at 5%?
```python
price = 478.99
tax_rate = 5 / 100 # 0.05
tax = price * tax_rate # 23.9495
print(f"{tax:.2f}")
```
Run result = 23.95
The tax is $23.95. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "23.95", "printed": "23.95", "notation": null} |
nlprog_det-setting-0078701 | How many units at $20 each (variable cost $10) cover $2,500 of fixed costs?
Computing it:
```python
import math
fixed = 2500
price = 20
variable = 10
units = math.ceil(fixed / (price - variable)) # 250
print(units)
```
Printed — 250
250 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "250", "printed": "250", "notation": null} |
nlprog_det-setting-0078702 | <|start|><|user|>
A recipe for 6 people uses 300 grams of pasta. How many grams are needed for 8 people?<|eot|>
<|assistant|>
```python
grams = 300
serves = 6
needed_for = 8
scaled = grams * needed_for // serves # 400
print(scaled)
```
# result: 400
Use 400 g of pasta.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A recipe for 6 people uses 300 grams of pasta. How many grams are needed for 8 people?"
},
{
"role": "assistant",
"content": "```python\ngrams = 300\nserves = 6\nneeded_for = 8\nscaled = grams * needed_for // serves # 400\nprint(scaled)\n```\n# result: 400\n\nUse 4... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "400", "printed": "400", "notation": null} |
nlprog_det-setting-0078703 | Equipment costs $45,000, has a salvage value of $0, and a useful life of 10 years. What is the straight-line depreciation per year?
```python
cost = 45000
salvage = 0
years = 10
per_year = (cost - salvage) / years
print(f"{per_year:.2f}")
```
Python prints 4500.00.
Depreciation is $4,500.00 per year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "4500.00", "printed": "4500.00", "notation": null} |
nlprog_det-setting-0078705 | What is the total rent on a 24-month lease at $1,200 a month?
One way, in code:
```python
monthly_rent = 1200
months = 24
total = monthly_rent * months # 28800
print(total)
```
(Out: 28800)
The rent over the term is $28,800. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "28800", "printed": "28800", "notation": null} |
nlprog_det-setting-0078706 | Counting the first and last day, how many days are there from August 8, 2023 through August 29, 2023?
The computation:
```python
from datetime import date
first = date(2023, 8, 8) # datetime.date(2023, 8, 8)
last = date(2023, 8, 29) # datetime.date(2023, 8, 29)
days = (last - first).days + 1 # 22
print(days)
```
Ru... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "22", "printed": "22", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.