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-0069813 | A settlement of $15,000 is split equally among 8 parties. How much does each party receive?
A few lines of Python do it:
```python
settlement = 15000
parties = 8
share = settlement // parties # 1875
print(share)
```
(Run result: 1875)
Each party receives $1,875. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "1875", "printed": "1875", "notation": null} |
nlprog_det-setting-0069814 | 1 books come back 12 days late, at $0.50 a day each. What is the fine?
In Python:
```python
per_day = 0.5
days_late = 12
books = 1
fine = per_day * days_late * books # 6.0
print(f"{fine:.2f}")
```
Printed: 6.00
$6.00 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "6.00", "printed": "6.00", "notation": null} |
nlprog_det-setting-0069815 | Bruna earns a 6% commission on $105,894 of sales. What is the commission?
Script:
```python
sales = 105894
rate = 6 / 100 # 0.06
commission = sales * rate # 6353.639999999999
print(f"{commission:.2f}")
```
When run, it prints 6353.64.
The commission is $6,353.64. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "6353.64", "printed": "6353.64", "notation": null} |
nlprog_det-setting-0069816 | At 1% a month (simple), what interest builds on $2,500 over 4 months?
One way, in code:
```python
balance = 2500
monthly_rate = 1 / 100 # 0.01
months = 4
interest = balance * monthly_rate * months # 100.0
print(f"{interest:.2f}")
```
# output: 100.00
The interest is $100.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "100.00", "printed": "100.00", "notation": null} |
nlprog_det-setting-0069818 | An attorney bills 10.5 hours at $300 per hour. What is the bill?
Python version:
```python
hours = 10.5
rate = 300
bill = hours * rate # 3150.0
print(f"{bill:.2f}")
```
Run it and it prints 3150.00.
That comes to $3,150.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "3150.00", "printed": "3150.00", "notation": null} |
nlprog_det-setting-0069819 | Prorate $2,400 of monthly rent for 16 days of a 30-day month.
Coded up:
```python
rent = 2400
days_in_month = 30
days_occupied = 16
prorated = rent * days_occupied / days_in_month # 1280.0
print(f"{prorated:.2f}")
```
stdout: 1280.00
The tenant owes $1,280.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "1280.00", "printed": "1280.00", "notation": null} |
nlprog_det-setting-0069820 | Express 321 hours in days and hours.
That is 13 days and 9 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 23 | {"gold": "13 days and 9 hours", "printed": "13 days and 9 hours", "notation": null} |
nlprog_det-setting-0069821 | <|start|><|system|>
You are a careful reviewer of figures.<|eot|>
<|user|>
A 846-page report must be reviewed in 18 days. How many pages a day is that, evenly?<|eot|>
<|assistant|>
47 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a careful reviewer of figures."
},
{
"role": "user",
"content": "A 846-page report must be reviewed in 18 days. How many pages a day is that, evenly?"
},
{
"role": "assistant",
"content": "47 pages a day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 51 | {"gold": "47", "printed": "47", "notation": null} |
nlprog_det-setting-0069822 | What simple interest does $20,000 earn at 4% a year over 2 years?
principal = 20000
rate = 4 / 100 # 0.04
years = 2
interest = principal * rate * years # 1600.0
print(f"{interest:.2f}")
Execution prints 1600.00, as expected.
The interest is $1,600.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "1600.00", "printed": "1600.00", "notation": null} |
nlprog_det-setting-0069823 | A 18-month warranty starts on December 20, 2020. On what date does it end?
Let's compute it with Python.
```python
from datetime import date
start = date(2020, 12, 20)
months = 18
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "2022-06-20", "printed": "2022-06-20", "notation": null} |
nlprog_det-setting-0069824 | Fixed costs are $4,000. Each unit sells for $25 and costs $19 to make. How many units must be sold to break even?
Computation in Python:
```python
import math
fixed = 4000
price = 25
variable = 19
units = math.ceil(fixed / (price - variable)) # 667
print(units)
```
Program output: 667
667 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "667", "printed": "667", "notation": null} |
nlprog_det-setting-0069825 | <|start|><|user|>
Express 345 hours in days and hours.<|eot|>
<|assistant|>
345 hours is 14 days and 9 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Express 345 hours in days and hours."
},
{
"role": "assistant",
"content": "345 hours is 14 days and 9 hours."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "14 days and 9 hours", "printed": "14 days and 9 hours", "notation": null} |
nlprog_det-setting-0069826 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"name": "math_engine", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}
{"n... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"math_engine\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"P... | nlprog_det | setting | original | null | deterministic | [] | [] | 354 | {"gold": "4.83", "printed": "4.83", "notation": null} |
nlprog_det-setting-0069827 | 171 volunteers are split into 6 equal teams. How many are on each team, and how many are left over?
Let's compute it with Python.
total = 171
groups = 6
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
# execution result: 28 each, 3 left over
The answer: 2... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "28 each, 3 left over", "printed": "28 each, 3 left over", "notation": null} |
nlprog_det-setting-0069828 | 11 of 20 members attended. What percent attended?
Translated to Python:
present = 11
total = 20
percent = present / total * 100 # 55.00000000000001
print(round(percent, 1))
# program output: 55.0
Attendance was 55.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "55.0", "printed": "55.0", "notation": null} |
nlprog_det-setting-0069829 | <|start|><|system|>
You may call the tools below.
[{"name": "sandbox_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
$1,000 is inve... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"sandbox_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requ... | nlprog_det | setting | original | null | deterministic | [] | [] | 246 | {"gold": "1104.08", "printed": "1104.08", "notation": null} |
nlprog_det-setting-0069830 | Equipment costs $24,000, has a salvage value of $0, and a useful life of 10 years. What is the straight-line depreciation per year?
Programmatically:
```python
cost = 24000
salvage = 0
years = 10
per_year = (cost - salvage) / years # 2400.0
print(f"{per_year:.2f}")
```
The code prints: 2400.00
Depreciation is $2,400... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "2400.00", "printed": "2400.00", "notation": null} |
nlprog_det-setting-0069831 | <|start|><|user|>
A count moves from 1,200 to 600. By what percent did it change (use a minus sign for a drop)?<|eot|>
<|assistant|>
```python
old = 1200
new = 600
change = (new - old) / old * 100 # -50.0
print(round(change))
```
It prints -50, as expected.
It changed by -50%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A count moves from 1,200 to 600. By what percent did it change (use a minus sign for a drop)?"
},
{
"role": "assistant",
"content": "```python\nold = 1200\nnew = 600\nchange = (new - old) / old * 100 # -50.0\nprint(round(change))\n```\nIt prints -50, as expected.\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "-50", "printed": "-50", "notation": null} |
nlprog_det-setting-0069832 | Sales went from 2,000 to 1,900. What is the percent change?
Script:
```python
old = 2000
new = 1900
change = (new - old) / old * 100
print(round(change))
```
Python prints -5, as expected.
The change is -5%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "-5", "printed": "-5", "notation": null} |
nlprog_det-setting-0069833 | <|start|><|system|>
You help paralegals with routine tasks.<|eot|>
<|user|>
An office budget of $25,000 has expenses of $3,238, $367, $3,676, $2,339. How much of the budget is left?<|eot|>
<|assistant|>
```python
budget = 25000
expenses = [3238, 367, 3676, 2339]
left = budget - sum(expenses) # 15380
print(left)
```
Ex... | chat | [
{
"role": "system",
"content": "You help paralegals with routine tasks."
},
{
"role": "user",
"content": "An office budget of $25,000 has expenses of $3,238, $367, $3,676, $2,339. How much of the budget is left?"
},
{
"role": "assistant",
"content": "```python\nbudget = 25000\nexpens... | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "15380", "printed": "15380", "notation": null} |
nlprog_det-setting-0069834 | A meal costs $117.66. How much is a 15% tip?
Set it up in Python:
```python
bill = 117.66
tip_rate = 15 / 100 # 0.15
tip = bill * tip_rate # 17.648999999999997
print(f"{tip:.2f}")
```
Run output: 17.65
The tip is $17.65. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "17.65", "printed": "17.65", "notation": null} |
nlprog_det-setting-0069835 | Count the days between November 3, 2018 and March 10, 2019.
Here is the program.
from datetime import date
first = date(2018, 11, 3) # datetime.date(2018, 11, 3)
second = date(2019, 3, 10) # datetime.date(2019, 3, 10)
print((second - first).days)
That prints 127.
It is 127 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "127", "printed": "127", "notation": null} |
nlprog_det-setting-0069836 | <|start|><|user|>
A hall has 8 rows of 21 seats, and 34 seats are empty. How many people are seated?<|eot|>
<|assistant|>
```python
rows = 8
per_row = 21
empty = 34
seated = rows * per_row - empty # 134
print(seated)
```
Running it prints: 134
134 people are seated.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hall has 8 rows of 21 seats, and 34 seats are empty. How many people are seated?"
},
{
"role": "assistant",
"content": "```python\nrows = 8\nper_row = 21\nempty = 34\nseated = rows * per_row - empty # 134\nprint(seated)\n```\nRunning it prints: 134\n\n134 people ... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "134", "printed": "134", "notation": null} |
nlprog_det-setting-0069837 | <|start|><|system|>
You are a data assistant.<|eot|>
<|user|>
164 of 200 members attended. What percent attended?<|eot|>
<|assistant|>
```python
present = 164
total = 200
percent = present / total * 100 # 82.0
print(round(percent, 1))
```
On running, it outputs 82.0.
82.0% attended.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a data assistant."
},
{
"role": "user",
"content": "164 of 200 members attended. What percent attended?"
},
{
"role": "assistant",
"content": "```python\npresent = 164\ntotal = 200\npercent = present / total * 100 # 82.0\nprint(round(percent, ... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "82.0", "printed": "82.0", "notation": null} |
nlprog_det-setting-0069838 | 5 friends split a $180 bill plus a 15% tip evenly. How much does each pay?
The Python version:
```python
bill = 180
tip_rate = 15 / 100 # 0.15
people = 5
each = bill * (1 + tip_rate) / people # 41.39999999999999
print(f"{each:.2f}")
```
Output of the run — 41.40
The share is $41.40 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "41.40", "printed": "41.40", "notation": null} |
nlprog_det-setting-0069839 | <|start|><|user|>
Papers were served by mail on January 11, 2020. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?<|eot|>
<|assistant|>
It is due January 28, 2020.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Papers were served by mail on January 11, 2020. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?"
},
{
"role": "assistant",
"content": "It is due January 28, 2020."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 50 | {"gold": "2020-01-28", "printed": "2020-01-28", "notation": null} |
nlprog_det-setting-0069840 | Which is cheaper per unit: 10 for $3.24 (A) or 24 for $19.94 (B)?
Program:
```python
pack_a = 3.24 / 10 # 0.324
pack_b = 19.94 / 24 # 0.8308333333333334
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
(Run result: A)
Pack A is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0069841 | 40 file boxes cost $6 apiece. With 6% tax added, what is the total?
The invoice total is $254.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "254.40", "printed": "254.40", "notation": null} |
nlprog_det-setting-0069843 | <|start|><|user|>
A lawyer's fee is 40% of a $25,000 recovery. How large is the fee?<|eot|>
<|assistant|>
```python
recovery = 25000
rate = 40 / 100 # 0.4
fee = recovery * rate # 10000.0
print(f"{fee:.2f}")
```
On running, it outputs: 10000.00
The lawyer's fee comes to $10,000.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lawyer's fee is 40% of a $25,000 recovery. How large is the fee?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 25000\nrate = 40 / 100 # 0.4\nfee = recovery * rate # 10000.0\nprint(f\"{fee:.2f}\")\n```\nOn running, it outputs: 10000.00\n\nThe lawye... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "10000.00", "printed": "10000.00", "notation": null} |
nlprog_det-setting-0069844 | <|start|><|system|>
Tool definitions:
[{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "python", "description": "Use for arithmetic and date math; returns stdout of... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"name\": \"python\", \"descriptio... | nlprog_det | setting | original | null | deterministic | [] | [] | 303 | {"gold": "750", "printed": "750", "notation": null} |
nlprog_det-setting-0069845 | <|start|><|user|>
Express 344 hours in days and hours.<|eot|>
<|assistant|>
```python
hours = 344
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
# result: 14 days and 8 hours
That is 14 days and 8 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Express 344 hours in days and hours."
},
{
"role": "assistant",
"content": "```python\nhours = 344\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\n# result: 14 days and 8 hours\n\nThat is 14 days and 8 hours."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "14 days and 8 hours", "printed": "14 days and 8 hours", "notation": null} |
nlprog_det-setting-0069847 | A 60-day notice period begins on July 13, 2026. On what date does it end?
Program:
```python
from datetime import date, timedelta
start = date(2026, 7, 13) # datetime.date(2026, 7, 13)
end = start + timedelta(days=60) # datetime.date(2026, 9, 11)
print(end.isoformat())
```
Python prints 2026-09-11, as expected.
Tha... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "2026-09-11", "printed": "2026-09-11", "notation": null} |
nlprog_det-setting-0069848 | A garage charges $5 an hour, never more than $24 a day. How much for 3 hours?
We write it as a program:
```python
rate = 5
hours = 3
daily_max = 24
cost = min(rate * hours, daily_max) # 15
print(cost)
```
Output of the run: 15
The charge is $15. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0069849 | $5,000 is invested at 5% compounded yearly. What is it worth after 4 years?
Coded up:
```python
principal = 5000
rate = 5 / 100 # 0.05
years = 4
value = principal * (1 + rate) ** years # 6077.531250000001
print(f"{value:.2f}")
```
This prints 6077.53.
It is worth $6,077.53. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "6077.53", "printed": "6077.53", "notation": null} |
nlprog_det-setting-0069850 | At 60 miles per hour, how many minutes does a 180-mile trip take?
Set it up in Python:
```python
distance = 180
speed = 60
minutes = distance / speed * 60 # 180.0
print(round(minutes))
```
Run output — 180
The trip takes 180 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "180", "printed": "180", "notation": null} |
nlprog_det-setting-0069851 | A quorum is 3/5 of the 52 members, rounded up. How many members make a quorum?
A few lines of Python do it:
```python
import math
members = 52
quorum = math.ceil(members * 3 / 5) # 32
print(quorum)
```
When run, it prints 32, as expected.
32 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0069852 | <|start|><|system|>
You are a precise assistant.<|eot|>
<|user|>
How long, in days, is it from November 23, 2022 until March 22, 2023?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2022, 11, 23) # datetime.date(2022, 11, 23)
second = date(2023, 3, 22) # datetime.date(2023, 3, 22)
print((second... | chat | [
{
"role": "system",
"content": "You are a precise assistant."
},
{
"role": "user",
"content": "How long, in days, is it from November 23, 2022 until March 22, 2023?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2022, 11, 23) # datetime.dat... | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "119", "printed": "119", "notation": null} |
nlprog_det-setting-0069853 | What day of the week is December 2, 2014?
Python, step by step:
```python
from datetime import date
hearing = date(2014, 12, 2)
print(hearing.strftime("%A"))
```
Out = Tuesday
It is a Tuesday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "Tuesday", "printed": "Tuesday", "notation": null} |
nlprog_det-setting-0069854 | Starting from $8,000, the team spends $3,327, $1,723, $3,734. What remains?
Coded up:
```python
budget = 8000
expenses = [3327, 1723, 3734]
left = budget - sum(expenses) # -784
print(left)
```
Out = -784
The remaining budget is -$784. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "-784", "printed": "-784", "notation": null} |
nlprog_det-setting-0069855 | <|start|><|user|>
A customer buys 4 pens at $9 each, 1 hard drives at $6 each, 3 batteries at $11 each, 2 labels at $9 each and pays with $100. How much change is due?<|eot|>
<|assistant|>
```python
items = [(4, 9), (1, 6), (3, 11), (2, 9)]
total = sum(q * p for q, p in items) # 93
paid = 100
change = paid - total # ... | chat | [
{
"role": "user",
"content": "A customer buys 4 pens at $9 each, 1 hard drives at $6 each, 3 batteries at $11 each, 2 labels at $9 each and pays with $100. How much change is due?"
},
{
"role": "assistant",
"content": "```python\nitems = [(4, 9), (1, 6), (3, 11), (2, 9)]\ntotal = sum(q * p for q... | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0069856 | A claim accrued on August 17, 2020. The limitations period is 5 years. On what date does it expire?
Script:
```python
from datetime import date
accrued = date(2020, 8, 17) # datetime.date(2020, 8, 17)
years = 5
expires = accrued.replace(year=accrued.year + years) # datetime.date(2025, 8, 17)
print(expires.isoformat(... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "2025-08-17", "printed": "2025-08-17", "notation": null} |
nlprog_det-setting-0069857 | A storeroom has 1835 water bottles. The office uses 30 a day. How many are left after 14 days?
Python code:
```python
stock = 1835
per_day = 30
days = 14
left = stock - per_day * days # 1415
print(left)
```
It prints 1415.
1415 water bottles are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "1415", "printed": "1415", "notation": null} |
nlprog_det-setting-0069858 | <|start|><|user|>
Printing costs 10 cents a page. What does it cost to print 10 copies of a 11-page handout?<|eot|>
<|assistant|>
Printing costs $11.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Printing costs 10 cents a page. What does it cost to print 10 copies of a 11-page handout?"
},
{
"role": "assistant",
"content": "Printing costs $11.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "11.00", "printed": "11.00", "notation": null} |
nlprog_det-setting-0069859 | <|start|><|system|>
You help paralegals with routine tasks.<|eot|>
<|user|>
80 copies of a 4-page packet are printed at $0.10 per page. What is the cost?<|eot|>
<|assistant|>
pages = 4
copies = 80
cost_per_page = 0.1
cost = pages * copies * cost_per_page # 32.0
print(f"{cost:.2f}")
Console output —... | chat | [
{
"role": "system",
"content": "You help paralegals with routine tasks."
},
{
"role": "user",
"content": "80 copies of a 4-page packet are printed at $0.10 per page. What is the cost?"
},
{
"role": "assistant",
"content": " pages = 4\n copies = 80\n cost_per_page = 0.1\n ... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "32.00", "printed": "32.00", "notation": null} |
nlprog_det-setting-0069860 | A library charges $0.15 per book per day late. What is the fine for 4 books that are 15 days late?
```python
per_day = 0.15
days_late = 15
books = 4
fine = per_day * days_late * books # 9.0
print(f"{fine:.2f}")
```
Output:
9.00
$9.00 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "9.00", "printed": "9.00", "notation": null} |
nlprog_det-setting-0069861 | How many minutes pass from 7:05 AM to 1:39 PM on the same day?
Let the code do the arithmetic:
```python
start = 7 * 60 + 5 # 425
end = 13 * 60 + 39 # 819
print(end - start)
```
The interpreter prints 394.
It is 394 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "394", "printed": "394", "notation": null} |
nlprog_det-setting-0069862 | To read 280 pages in 14 days, how many pages per day are needed?
Let the code do the arithmetic:
```python
pages = 280
days = 14
per_day = pages // days # 20
print(per_day)
```
It prints: 20
That is 20 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0069863 | <|start|><|user|>
At a 7% tax rate, what is the tax on $807.86?<|eot|>
<|assistant|>
$56.55 in tax.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At a 7% tax rate, what is the tax on $807.86?"
},
{
"role": "assistant",
"content": "$56.55 in tax."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "56.55", "printed": "56.55", "notation": null} |
nlprog_det-setting-0069864 | <|start|><|user|>
A 120-day notice period begins on July 2, 2018. On what date does it end?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2018, 7, 2) # datetime.date(2018, 7, 2)
end = start + timedelta(days=120) # datetime.date(2018, 10, 30)
print(end.isoformat())
```
The program pr... | chat | [
{
"role": "user",
"content": "A 120-day notice period begins on July 2, 2018. On what date does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2018, 7, 2) # datetime.date(2018, 7, 2)\nend = start + timedelta(days=120) # datetime.dat... | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "2018-10-30", "printed": "2018-10-30", "notation": null} |
nlprog_det-setting-0069865 | What does $5,000 grow to in 2 years at 2% annual compounding?
Here is a short program for it.
```python
principal = 5000
rate = 2 / 100 # 0.02
years = 2
value = principal * (1 + rate) ** years # 5202.0
print(f"{value:.2f}")
```
(stdout: 5202.00)
The balance is $5,202.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "5202.00", "printed": "5202.00", "notation": null} |
nlprog_det-setting-0069866 | Copies cost $15 plus $0.10 for each page beyond 10. How much for 30 pages?
As Python:
```python
pages = 30
base = 15
per_page = 0.1
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 17.0
print(f"{cost:.2f}")
```
The program prints 17.00, as expected.
The copy costs $17.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "17.00", "printed": "17.00", "notation": null} |
nlprog_det-setting-0069867 | Wanjiru drove 191 miles for work. Mileage is reimbursed at 62 cents a mile. How much is the reimbursement?
Written as code:
```python
miles = 191
rate = 0.62
reimbursement = miles * rate
print(f"{reimbursement:.2f}")
```
Running this gives: 118.42
The reimbursement is $118.42. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "118.42", "printed": "118.42", "notation": null} |
nlprog_det-setting-0069868 | What is a 10% tip on a $42.23 bill?
Python does the arithmetic:
```python
bill = 42.23
tip_rate = 10 / 100 # 0.1
tip = bill * tip_rate # 4.223
print(f"{tip:.2f}")
```
The code prints 4.22.
Leave $4.22. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "4.22", "printed": "4.22", "notation": null} |
nlprog_det-setting-0069869 | A $24,000 grant pays $2,000 up front and the rest in 12 equal installments. How large is each installment?
A Python solution:
```python
grant = 24000
up_front = 2000
installments = 12
each = (grant - up_front) / installments # 1833.3333333333333
print(f"{each:.2f}")
```
Executing it gives 1833.33, as expected.
Each ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "1833.33", "printed": "1833.33", "notation": null} |
nlprog_det-setting-0069870 | Sara earns a 8% commission on $98,290 of sales. What is the commission?
```python
sales = 98290
rate = 8 / 100 # 0.08
commission = sales * rate # 7863.2
print(f"{commission:.2f}")
```
The run gives 7863.20.
Sara earns $7,863.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "7863.20", "printed": "7863.20", "notation": null} |
nlprog_det-setting-0069871 | What percentage of $2,000 is $1,700?
We write it as a program:
```python
budget = 2000
spent = 1700
percent = spent / budget * 100 # 85.0
print(round(percent, 1))
```
Out — 85.0
That is 85.0% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "85.0", "printed": "85.0", "notation": null} |
nlprog_det-setting-0069872 | A measure needs at least 60% of 174 votes. How many votes is that, rounded up?
Here is a short program for it.
```python
import math
voters = 174
needed = math.ceil(voters * 60 / 100) # 105
print(needed)
```
The printout reads: 105
At least 105 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "105", "printed": "105", "notation": null} |
nlprog_det-setting-0069873 | <|start|><|system|>
You help with homework problems.<|eot|>
<|user|>
A storeroom has 641 flash drives. The office uses 30 a day. How many are left after 4 days?<|eot|>
<|assistant|>
```python
stock = 641
per_day = 30
days = 4
left = stock - per_day * days # 521
print(left)
```
Running it prints 521.
521 flash drives ... | chat | [
{
"role": "system",
"content": "You help with homework problems."
},
{
"role": "user",
"content": "A storeroom has 641 flash drives. The office uses 30 a day. How many are left after 4 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 641\nper_day = 30\ndays = 4\nleft =... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "521", "printed": "521", "notation": null} |
nlprog_det-setting-0069874 | Copies cost $10 plus $0.25 for each page beyond 20. How much for 53 pages?
The total is $18.25. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "18.25", "printed": "18.25", "notation": null} |
nlprog_det-setting-0069876 | <|start|><|user|>
With 40% off, what does a $40 jacket cost?<|eot|>
<|assistant|>
```python
price = 40
discount = 40 / 100 # 0.4
sale_price = price * (1 - discount) # 24.0
print(f"{sale_price:.2f}")
```
# output: 24.00
It costs $24.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 40% off, what does a $40 jacket cost?"
},
{
"role": "assistant",
"content": "```python\nprice = 40\ndiscount = 40 / 100 # 0.4\nsale_price = price * (1 - discount) # 24.0\nprint(f\"{sale_price:.2f}\")\n```\n# output: 24.00\n\nIt costs $24.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "24.00", "printed": "24.00", "notation": null} |
nlprog_det-setting-0069877 | <|start|><|system|>
You have access to these functions:
{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}
{"name": "py_exec", "description": "Evaluates ... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \... | nlprog_det | setting | original | null | deterministic | [] | [] | 366 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0069878 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "code_runner", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"code_runner\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python... | nlprog_det | setting | original | null | deterministic | [] | [] | 228 | {"gold": "16000.00", "printed": "16000.00", "notation": null} |
nlprog_det-setting-0069879 | An unpaid balance of $7,500 accrues 1.5% simple interest per month. How much interest accrues in 4 months?
balance = 7500
monthly_rate = 1.5 / 100 # 0.015
months = 4
interest = balance * monthly_rate * months # 450.0
print(f"{interest:.2f}")
The run gives 450.00, as expected.
The interest is $45... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "450.00", "printed": "450.00", "notation": null} |
nlprog_det-setting-0069880 | Paula drove 262 miles for work. Mileage is reimbursed at 70 cents a mile. How much is the reimbursement?
Python:
```python
miles = 262
rate = 0.7
reimbursement = miles * rate # 183.39999999999998
print(f"{reimbursement:.2f}")
```
Run result: 183.40
The reimbursement is $183.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "183.40", "printed": "183.40", "notation": null} |
nlprog_det-setting-0069881 | Fuel for 360 miles at 20 mpg, with gas at $3.45/gallon: what is the cost?
The trip uses $62.10 of gas. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "62.10", "printed": "62.10", "notation": null} |
nlprog_det-setting-0069882 | <|start|><|user|>
At a 8% tax rate, what is the tax on $27.70?<|eot|>
<|assistant|>
The tax is $2.22.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At a 8% tax rate, what is the tax on $27.70?"
},
{
"role": "assistant",
"content": "The tax is $2.22."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "2.22", "printed": "2.22", "notation": null} |
nlprog_det-setting-0069883 | <|start|><|system|>
You are an assistant for a small office.<|eot|>
<|user|>
With $36,000 in costs and $38,000 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|>
<|assistant|>
```python
revenue = 38000
costs = 36000
profit = revenue - costs # 2000
margin = profit / revenue * 100 # 5.263157894... | chat | [
{
"role": "system",
"content": "You are an assistant for a small office."
},
{
"role": "user",
"content": "With $36,000 in costs and $38,000 in revenue, what percent of revenue is profit? Round to one decimal."
},
{
"role": "assistant",
"content": "```python\nrevenue = 38000\ncosts =... | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "5.3", "printed": "5.3", "notation": null} |
nlprog_det-setting-0069884 | Equipment costs $12,000, has a salvage value of $3,000, and a useful life of 10 years. What is the straight-line depreciation per year?
Python version:
```python
cost = 12000
salvage = 3000
years = 10
per_year = (cost - salvage) / years # 900.0
print(f"{per_year:.2f}")
```
Run result — 900.00
$900.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "900.00", "printed": "900.00", "notation": null} |
nlprog_det-setting-0069885 | <|start|><|user|>
An attorney bills 1.5 hours at $410 per hour. What is the bill?<|eot|>
<|assistant|>
```python
hours = 1.5
rate = 410
bill = hours * rate # 615.0
print(f"{bill:.2f}")
```
The script prints: 615.00
That comes to $615.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An attorney bills 1.5 hours at $410 per hour. What is the bill?"
},
{
"role": "assistant",
"content": "```python\nhours = 1.5\nrate = 410\nbill = hours * rate # 615.0\nprint(f\"{bill:.2f}\")\n```\nThe script prints: 615.00\n\nThat comes to $615.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "615.00", "printed": "615.00", "notation": null} |
nlprog_det-setting-0069886 | <|start|><|user|>
A trial runs from February 13, 2028 to February 18, 2028, counting both days. How many calendar days is that?<|eot|>
<|assistant|>
from datetime import date
first = date(2028, 2, 13) # datetime.date(2028, 2, 13)
last = date(2028, 2, 18) # datetime.date(2028, 2, 18)
days = (last - fir... | chat | [
{
"role": "user",
"content": "A trial runs from February 13, 2028 to February 18, 2028, counting both days. How many calendar days is that?"
},
{
"role": "assistant",
"content": " from datetime import date\n first = date(2028, 2, 13) # datetime.date(2028, 2, 13)\n last = date(2028, 2, ... | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0069887 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "run_python", "description": "Python sandbox for calculations. Returns printed ... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"run_python\", \"descript... | nlprog_det | setting | original | null | deterministic | [] | [] | 294 | {"gold": "2375", "printed": "2375", "notation": null} |
nlprog_det-setting-0069888 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "py_exec", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|>
<|user|>
A hearing starts at 10:00 A... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"py_exec\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [... | nlprog_det | setting | original | null | deterministic | [] | [] | 255 | {"gold": "11:15 AM", "printed": "11:15 AM", "notation": null} |
nlprog_det-setting-0069889 | Someone born February 8, 2003 turns how old by July 16, 2028? Give the age in whole years.
Python does the arithmetic:
```python
from datetime import date
born = date(2003, 2, 8) # datetime.date(2003, 2, 8)
on = date(2028, 7, 16) # datetime.date(2028, 7, 16)
age = on.year - born.year - ((on.month, on.day) < (born.mo... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 159 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0069890 | <|start|><|user|>
One can of paint covers 400 square feet. How many cans are needed for 755 square feet of wall?<|eot|>
<|assistant|>
```python
import math
area = 755
coverage = 400
cans = math.ceil(area / coverage) # 2
print(cans)
```
Output of the run — 2
2 cans are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "One can of paint covers 400 square feet. How many cans are needed for 755 square feet of wall?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 755\ncoverage = 400\ncans = math.ceil(area / coverage) # 2\nprint(cans)\n```\nOutput of the run — 2\... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0069891 | <|start|><|system|>
Tool definitions:
{"name": "code_runner", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|>
<|user|>
With 15% off, what does a $45 filing ... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"code_runner\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}... | nlprog_det | setting | original | null | deterministic | [] | [] | 214 | {"gold": "38.25", "printed": "38.25", "notation": null} |
nlprog_det-setting-0069892 | <|start|><|system|>
Functions:
{"name": "calc", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|>
<|user|>
3 books come back 28 days late,... | chat | [
{
"role": "system",
"content": "Functions:\n{\"name\": \"calc\", \"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\": [\"co... | nlprog_det | setting | original | null | deterministic | [] | [] | 223 | {"gold": "12.60", "printed": "12.60", "notation": null} |
nlprog_det-setting-0069893 | Which is cheaper per unit: 6 for $6.81 (A) or 30 for $21.18 (B)?
Program:
```python
pack_a = 6.81 / 6 # 1.135
pack_b = 21.18 / 30 # 0.706
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
The printout reads: B
Pack B is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0069894 | <|start|><|user|>
An attorney bills 2 hours at $350 per hour. What is the bill?<|eot|>
<|assistant|>
```python
hours = 2
rate = 350
bill = hours * rate # 700
print(f"{bill:.2f}")
```
Run result — 700.00
The bill is $700.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An attorney bills 2 hours at $350 per hour. What is the bill?"
},
{
"role": "assistant",
"content": "```python\nhours = 2\nrate = 350\nbill = hours * rate # 700\nprint(f\"{bill:.2f}\")\n```\nRun result — 700.00\n\nThe bill is $700.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "700.00", "printed": "700.00", "notation": null} |
nlprog_det-setting-0069895 | <|start|><|user|>
At a 5% tax rate, what is the tax on $592.98?<|eot|>
<|assistant|>
The tax is $29.65.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At a 5% tax rate, what is the tax on $592.98?"
},
{
"role": "assistant",
"content": "The tax is $29.65."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "29.65", "printed": "29.65", "notation": null} |
nlprog_det-setting-0069896 | <|start|><|user|>
From 2021 to 2029, how many years is that?<|eot|>
<|assistant|>
```python
start_year = 2021
end_year = 2029
print(end_year - start_year)
```
Running it prints 8.
8 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From 2021 to 2029, how many years is that?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 2021\nend_year = 2029\nprint(end_year - start_year)\n```\nRunning it prints 8.\n\n8 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 69 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0069897 | Printing costs 15 cents a page. What does it cost to print 162 copies of a 29-page handout?
Here is the program.
```python
pages = 29
copies = 162
cost_per_page = 0.15
cost = pages * copies * cost_per_page # 704.6999999999999
print(f"{cost:.2f}")
```
Execution prints 704.70, as expected.
The job costs $704.70. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "704.70", "printed": "704.70", "notation": null} |
nlprog_det-setting-0069898 | A penalty of $100 a day accrues, capped at $2,500. What is owed after 21 days?
$2,100 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "2100", "printed": "2100", "notation": null} |
nlprog_det-setting-0069899 | <|start|><|user|>
How many units at $25 each (variable cost $20) cover $4,000 of fixed costs?<|eot|>
<|assistant|>
```python
import math
fixed = 4000
price = 25
variable = 20
units = math.ceil(fixed / (price - variable)) # 800
print(units)
```
Executed, it shows 800.
800 units are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many units at $25 each (variable cost $20) cover $4,000 of fixed costs?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 4000\nprice = 25\nvariable = 20\nunits = math.ceil(fixed / (price - variable)) # 800\nprint(units)\n```\nExecuted, it ... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "800", "printed": "800", "notation": null} |
nlprog_det-setting-0069900 | At 30 miles per hour, how many minutes does a 40-mile trip take?
As Python:
```python
distance = 40
speed = 30
minutes = distance / speed * 60 # 80.0
print(round(minutes))
```
Running it prints 80, as expected.
80 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "80", "printed": "80", "notation": null} |
nlprog_det-setting-0069901 | <|start|><|user|>
A quorum is 2/3 of the 24 members, rounded up. How many members make a quorum?<|eot|>
<|assistant|>
```python
import math
members = 24
quorum = math.ceil(members * 2 / 3) # 16
print(quorum)
```
Printed — 16
That is 16 members.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A quorum is 2/3 of the 24 members, rounded up. How many members make a quorum?"
},
{
"role": "assistant",
"content": "```python\nimport math\nmembers = 24\nquorum = math.ceil(members * 2 / 3) # 16\nprint(quorum)\n```\nPrinted — 16\n\nThat is 16 members."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0069902 | What is 15 degrees Celsius in Fahrenheit?
Code:
```python
celsius = 15
fahrenheit = celsius * 9 / 5 + 32 # 59.0
print(round(fahrenheit))
```
It outputs 59.
It equals 59 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "59", "printed": "59", "notation": null} |
nlprog_det-setting-0069903 | 172 of 200 members attended. What percent attended?
Python code:
```python
present = 172
total = 200
percent = present / total * 100 # 86.0
print(round(percent, 1))
```
Running this gives 86.0.
86.0% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "86.0", "printed": "86.0", "notation": null} |
nlprog_det-setting-0069904 | <|start|><|system|>
Functions:
[{"name": "calculator", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
What commission does Lena make on $101,816... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"calculator\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}]"
... | nlprog_det | setting | original | null | deterministic | [] | [] | 212 | {"gold": "2036.32", "printed": "2036.32", "notation": null} |
nlprog_det-setting-0069905 | 2 friends split a $84 bill plus a 15% tip evenly. How much does each pay?
Python, step by step:
```python
bill = 84
tip_rate = 15 / 100 # 0.15
people = 2
each = bill * (1 + tip_rate) / people # 48.3
print(f"{each:.2f}")
```
# program output: 48.30
Each person pays $48.30. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "48.30", "printed": "48.30", "notation": null} |
nlprog_det-setting-0069906 | <|start|><|user|>
A clerk's office charges $25 for each filing. Olga submits 7 filings. What is the total fee?<|eot|>
<|assistant|>
```python
fee = 25
filings = 7
total = fee * filings # 175
print(total)
```
# printed: 175
The total fee is $175.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A clerk's office charges $25 for each filing. Olga submits 7 filings. What is the total fee?"
},
{
"role": "assistant",
"content": "```python\nfee = 25\nfilings = 7\ntotal = fee * filings # 175\nprint(total)\n```\n# printed: 175\n\nThe total fee is $175."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "175", "printed": "175", "notation": null} |
nlprog_det-setting-0069908 | <|start|><|user|>
A shift runs from 9:51 AM to 10:13 AM. How long is it in minutes?<|eot|>
<|assistant|>
start = 9 * 60 + 51
end = 10 * 60 + 13
print(end - start)
Shell output: 22
It is 22 minutes long.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A shift runs from 9:51 AM to 10:13 AM. How long is it in minutes?"
},
{
"role": "assistant",
"content": " start = 9 * 60 + 51\n end = 10 * 60 + 13\n print(end - start)\nShell output: 22\n\nIt is 22 minutes long."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 66 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0069909 | A film lasted 1 hours and 26 minutes. How many minutes is that?
Script:
```python
hours = 1
minutes = 26
total_minutes = hours * 60 + minutes # 86
print(total_minutes)
```
Running it prints 86.
That is 86 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "86", "printed": "86", "notation": null} |
nlprog_det-setting-0069910 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
{"name": "python_exec", "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|... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"python_exec\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Pyth... | nlprog_det | setting | original | null | deterministic | [] | [] | 226 | {"gold": "Tuesday", "printed": "Tuesday", "notation": null} |
nlprog_det-setting-0069911 | A $12,000 grant pays $3,000 up front and the rest in 4 equal installments. How large is each installment?
Written as code:
```python
grant = 12000
up_front = 3000
installments = 4
each = (grant - up_front) / installments # 2250.0
print(f"{each:.2f}")
```
Run result — 2250.00
Each installment is $2,250.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "2250.00", "printed": "2250.00", "notation": null} |
nlprog_det-setting-0069912 | What is a 10% tip on a $182.64 bill?
Python does the arithmetic:
bill = 182.64
tip_rate = 10 / 100 # 0.1
tip = bill * tip_rate # 18.264
print(f"{tip:.2f}")
Python prints 18.26, as expected.
Leave $18.26. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "18.26", "printed": "18.26", "notation": null} |
nlprog_det-setting-0069913 | What percentage of $10,000 is $100?
```python
budget = 10000
spent = 100
percent = spent / budget * 100 # 1.0
print(round(percent, 1))
```
(Result: 1.0)
1.0% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "1.0", "printed": "1.0", "notation": null} |
nlprog_det-setting-0069914 | <|start|><|user|>
289 volunteers are split into 6 equal teams. How many are on each team, and how many are left over?<|eot|>
<|assistant|>
```python
total = 289
groups = 6
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Run it and it prints: 48 each, 1 left over
48 ea... | chat | [
{
"role": "user",
"content": "289 volunteers are split into 6 equal teams. How many are on each team, and how many are left over?"
},
{
"role": "assistant",
"content": "```python\ntotal = 289\ngroups = 6\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remainder} left o... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "48 each, 1 left over", "printed": "48 each, 1 left over", "notation": null} |
nlprog_det-setting-0069915 | 6.5 hours of work at $150 an hour: what is the total charge?
Python makes this quick:
```python
hours = 6.5
rate = 150
bill = hours * rate # 975.0
print(f"{bill:.2f}")
```
The code prints: 975.00
That comes to $975.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "975.00", "printed": "975.00", "notation": null} |
nlprog_det-setting-0069916 | A court charges $5 per request plus $0.10 per page after the first 10 pages. What does a 84-page copy cost?
A few lines of Python do it:
```python
pages = 84
base = 5
per_page = 0.1
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 12.4
print(f"{cost:.2f}")
```
(Execution result: 12.40)
The copy ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "12.40", "printed": "12.40", "notation": null} |
nlprog_det-setting-0069917 | <|start|><|user|>
Fines run at $25 per day up to a maximum of $5,000. How much after 13 days?<|eot|>
<|assistant|>
```python
per_day = 25
days = 13
cap = 5000
fine = min(per_day * days, cap) # 325
print(fine)
```
Running it prints: 325
The fine is $325.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Fines run at $25 per day up to a maximum of $5,000. How much after 13 days?"
},
{
"role": "assistant",
"content": "```python\nper_day = 25\ndays = 13\ncap = 5000\nfine = min(per_day * days, cap) # 325\nprint(fine)\n```\nRunning it prints: 325\n\nThe fine is $325."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "325", "printed": "325", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.