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-0052809 | A court charges $10 per request plus $0.10 per page after the first 10 pages. What does a 9-page copy cost?
Python, step by step:
```python
pages = 9
base = 10
per_page = 0.1
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 10.0
print(f"{cost:.2f}")
```
When run, it prints 10.00.
The copy costs ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "10.00", "printed": "10.00", "notation": null} |
nlprog_det-setting-0052810 | An attorney bills 2 hours at $300 per hour. What is the bill?
Computation in Python:
```python
hours = 2
rate = 300
bill = hours * rate # 600
print(f"{bill:.2f}")
```
# out: 600.00
That comes to $600.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "600.00", "printed": "600.00", "notation": null} |
nlprog_det-setting-0052811 | <|start|><|user|>
After a 25% fee is taken from a $30,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|>
<|assistant|>
```python
award = 30000
fee = award * 25 / 100 # 7500.0
remaining = award - fee # 22500.0
per_client = remaining / 3 # 7500.0
print(f"{per_client:.2f}")
`... | chat | [
{
"role": "user",
"content": "After a 25% fee is taken from a $30,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?"
},
{
"role": "assistant",
"content": "```python\naward = 30000\nfee = award * 25 / 100 # 7500.0\nremaining = award - fee # 22500.0\nper_cli... | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "7500.00", "printed": "7500.00", "notation": null} |
nlprog_det-setting-0052812 | Counting the first and last day, how many days are there from August 19, 2023 through August 31, 2023?
13 calendar days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0052813 | 64 volunteers are split into 4 equal teams. How many are on each team, and how many are left over?
A few lines of Python do it:
```python
total = 64
groups = 4
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
That prints 16 each, 0 left over.
16 each, 0 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "16 each, 0 left over", "printed": "16 each, 0 left over", "notation": null} |
nlprog_det-setting-0052814 | A pack of 5 markers sells for $210. What does each cost?
Script:
total = 210
count = 5
per_item = total // count # 42
print(per_item)
Result:
42
The unit price is $42. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 69 | {"gold": "42", "printed": "42", "notation": null} |
nlprog_det-setting-0052815 | With 14 rows of 14 chairs and 12 empty chairs, how many chairs are taken?
A few lines of Python do it:
rows = 14
per_row = 14
empty = 12
seated = rows * per_row - empty # 184
print(seated)
The program outputs: 184
184 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "184", "printed": "184", "notation": null} |
nlprog_det-setting-0052816 | <|start|><|user|>
Counting only Monday through Friday, how many business days are there after January 26, 2019 through February 13, 2019?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2019, 1, 26)
end = date(2019, 2, 13)
count = 0
for k in range(1, (end - start).days + 1):
if (sta... | chat | [
{
"role": "user",
"content": "Counting only Monday through Friday, how many business days are there after January 26, 2019 through February 13, 2019?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2019, 1, 26)\nend = date(2019, 2, 13)\ncount ... | nlprog_det | setting | original | null | deterministic | [] | [] | 155 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0052817 | Which is cheaper per unit: 6 for $7.88 (A) or 15 for $29.71 (B)?
```python
pack_a = 7.88 / 6 # 1.3133333333333332
pack_b = 29.71 / 15 # 1.9806666666666668
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
Out:
A
A has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0052818 | What percentage of $4,000 is $300?
The computation:
```python
budget = 4000
spent = 300
percent = spent / budget * 100 # 7.5
print(round(percent, 1))
```
Running it prints 7.5.
That is 7.5% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "7.5", "printed": "7.5", "notation": null} |
nlprog_det-setting-0052819 | <|start|><|user|>
At $18.95 an hour, what does 36 hours of work pay?<|eot|>
<|assistant|>
rate = 18.95
hours = 36
earnings = rate * hours # 682.1999999999999
print(f"{earnings:.2f}")
Running this gives: 682.20
The pay is $682.20.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $18.95 an hour, what does 36 hours of work pay?"
},
{
"role": "assistant",
"content": " rate = 18.95\n hours = 36\n earnings = rate * hours # 682.1999999999999\n print(f\"{earnings:.2f}\")\nRunning this gives: 682.20\n\nThe pay is $682.20."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "682.20", "printed": "682.20", "notation": null} |
nlprog_det-setting-0052820 | <|start|><|user|>
How many 1-foot square tiles cover a 4 ft by 7 ft floor (round up)?<|eot|>
<|assistant|>
```python
import math
length = 4
width = 7
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 28
print(tiles)
```
Out: 28
It takes 28 tiles.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many 1-foot square tiles cover a 4 ft by 7 ft floor (round up)?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 4\nwidth = 7\ntile = 1\ntiles = math.ceil(length * width / (tile * tile)) # 28\nprint(tiles)\n```\nOut: 28\n\nIt takes 28 til... | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "28", "printed": "28", "notation": null} |
nlprog_det-setting-0052821 | What simple interest does $5,000 earn at 3% a year over 5 years? It earns $750.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "750.00", "printed": "750.00", "notation": null} |
nlprog_det-setting-0052822 | <|start|><|user|>
Rania earns a 10% commission on $18,938 of sales. What is the commission?<|eot|>
<|assistant|>
sales = 18938
rate = 10 / 100 # 0.1
commission = sales * rate # 1893.8000000000002
print(f"{commission:.2f}")
# out: 1893.80
Rania earns $1,893.80.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Rania earns a 10% commission on $18,938 of sales. What is the commission?"
},
{
"role": "assistant",
"content": " sales = 18938\n rate = 10 / 100 # 0.1\n commission = sales * rate # 1893.8000000000002\n print(f\"{commission:.2f}\")\n# out: 1893.80\n\nR... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "1893.80", "printed": "1893.80", "notation": null} |
nlprog_det-setting-0052823 | <|start|><|system|>
Be concise.<|eot|>
<|user|>
Papers were served by mail on June 27, 2021. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date?<|eot|>
<|assistant|>
It is due July 21, 2021.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be concise."
},
{
"role": "user",
"content": "Papers were served by mail on June 27, 2021. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date?"
},
{
"role": "assistant",
"content": "It is due July 21, 2021."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 57 | {"gold": "2021-07-21", "printed": "2021-07-21", "notation": null} |
nlprog_det-setting-0052824 | Monthly rent is $2,400. A tenant moves in with 17 days left in a 30-day month. What is the prorated rent?
The Python version:
rent = 2400
days_in_month = 30
days_occupied = 17
prorated = rent * days_occupied / days_in_month # 1360.0
print(f"{prorated:.2f}")
It prints 1360.00, as expected.
The pro... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "1360.00", "printed": "1360.00", "notation": null} |
nlprog_det-setting-0052825 | The rules require 3/5 of 59 members (round up) to be present. How many is that?
The program:
```python
import math
members = 59
quorum = math.ceil(members * 3 / 5) # 36
print(quorum)
```
Execution result — 36
That is 36 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0052826 | <|start|><|user|>
An attorney bills 1.5 hours at $180 per hour. What is the bill?<|eot|>
<|assistant|>
That comes to $270.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An attorney bills 1.5 hours at $180 per hour. What is the bill?"
},
{
"role": "assistant",
"content": "That comes to $270.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "270.00", "printed": "270.00", "notation": null} |
nlprog_det-setting-0052827 | Revenue is $9,000 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)?
Here is a short program for it.
```python
revenue = 9000
costs = 4000
profit = revenue - costs # 5000
margin = profit / revenue * 100 # 55.55555555555556
print(round(margin, 1))
```
(stdout: 55.6)
Profit is 55.6... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "55.6", "printed": "55.6", "notation": null} |
nlprog_det-setting-0052828 | From 1995 to 2034, how many years is that?
We can compute it in Python.
```python
start_year = 1995
end_year = 2034
print(end_year - start_year)
```
Printed result: 39
That is 39 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "39", "printed": "39", "notation": null} |
nlprog_det-setting-0052829 | The paralegal logged 8 hours at a rate of $350. How much is billed?
Python code:
hours = 8
rate = 350
bill = hours * rate # 2800
print(f"{bill:.2f}")
That prints 2800.00.
The bill is $2,800.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "2800.00", "printed": "2800.00", "notation": null} |
nlprog_det-setting-0052830 | <|start|><|user|>
How many minutes pass from 11:38 AM to 12:14 PM on the same day?<|eot|>
<|assistant|>
```python
start = 11 * 60 + 38 # 698
end = 12 * 60 + 14 # 734
print(end - start)
```
Execution prints 36.
It is 36 minutes long.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many minutes pass from 11:38 AM to 12:14 PM on the same day?"
},
{
"role": "assistant",
"content": "```python\nstart = 11 * 60 + 38 # 698\nend = 12 * 60 + 14 # 734\nprint(end - start)\n```\nExecution prints 36.\n\nIt is 36 minutes long."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0052831 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "python_exec", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|u... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"python_exec\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python sou... | nlprog_det | setting | original | null | deterministic | [] | [] | 204 | {"gold": "47", "printed": "47", "notation": null} |
nlprog_det-setting-0052832 | <|start|><|user|>
Each of Wen's runs burns 350 calories. How many calories over 5 runs?<|eot|>
<|assistant|>
```python
per_session = 350
sessions = 5
total = per_session * sessions # 1750
print(total)
```
This prints 1750.
That burns 1750 calories.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each of Wen's runs burns 350 calories. How many calories over 5 runs?"
},
{
"role": "assistant",
"content": "```python\nper_session = 350\nsessions = 5\ntotal = per_session * sessions # 1750\nprint(total)\n```\nThis prints 1750.\n\nThat burns 1750 calories."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "1750", "printed": "1750", "notation": null} |
nlprog_det-setting-0052833 | Carmen earns a 5% commission on $23,607 of sales. What is the commission?
A Python solution:
```python
sales = 23607
rate = 5 / 100
commission = sales * rate
print(f"{commission:.2f}")
```
Executed, it shows 1180.35.
Carmen earns $1,180.35. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "1180.35", "printed": "1180.35", "notation": null} |
nlprog_det-setting-0052835 | <|start|><|user|>
78 of 80 members attended. What percent attended?<|eot|>
<|assistant|>
```python
present = 78
total = 80
percent = present / total * 100 # 97.5
print(round(percent, 1))
```
(Out: 97.5)
Attendance was 97.5%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "78 of 80 members attended. What percent attended?"
},
{
"role": "assistant",
"content": "```python\npresent = 78\ntotal = 80\npercent = present / total * 100 # 97.5\nprint(round(percent, 1))\n```\n(Out: 97.5)\n\nAttendance was 97.5%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "97.5", "printed": "97.5", "notation": null} |
nlprog_det-setting-0052838 | If a 4-year limitations period starts on April 14, 2016, when does it end?
We write it as a program:
from datetime import date
accrued = date(2016, 4, 14) # datetime.date(2016, 4, 14)
years = 4
expires = accrued.replace(year=accrued.year + years) # datetime.date(2020, 4, 14)
print(expires.isoform... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "2020-04-14", "printed": "2020-04-14", "notation": null} |
nlprog_det-setting-0052839 | <|start|><|user|>
Kemal buys 9 boxes of 12 flash drives each and gives away 3 flash drives. How many flash drives are left?<|eot|>
<|assistant|>
```python
boxes = 9
per_box = 12
given_away = 3
left = boxes * per_box - given_away # 105
print(left)
```
The run gives 105.
105 flash drives are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Kemal buys 9 boxes of 12 flash drives each and gives away 3 flash drives. How many flash drives are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 9\nper_box = 12\ngiven_away = 3\nleft = boxes * per_box - given_away # 105\nprint(left)\n```\nThe run... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "105", "printed": "105", "notation": null} |
nlprog_det-setting-0052841 | A count moves from 2,500 to 2,875. By what percent did it change (use a minus sign for a drop)?
```python
old = 2500
new = 2875
change = (new - old) / old * 100
print(round(change))
```
Printed result: 15
The change is 15%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0052842 | <|start|><|user|>
How many days are there from November 8, 2023 to May 19, 2024?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2023, 11, 8) # datetime.date(2023, 11, 8)
second = date(2024, 5, 19) # datetime.date(2024, 5, 19)
print((second - first).days)
```
Output of the run: 193
It is 193 da... | chat | [
{
"role": "user",
"content": "How many days are there from November 8, 2023 to May 19, 2024?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2023, 11, 8) # datetime.date(2023, 11, 8)\nsecond = date(2024, 5, 19) # datetime.date(2024, 5, 19)\nprint((seco... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "193", "printed": "193", "notation": null} |
nlprog_det-setting-0052844 | <|start|><|system|>
You are a careful reviewer of figures.<|eot|>
<|user|>
To read 180 pages in 6 days, how many pages per day are needed?<|eot|>
<|assistant|>
```python
pages = 180
days = 6
per_day = pages // days # 30
print(per_day)
```
Out — 30
That is 30 pages per day.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a careful reviewer of figures."
},
{
"role": "user",
"content": "To read 180 pages in 6 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": "```python\npages = 180\ndays = 6\nper_day = pages // days # 30\nprint(per_d... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0052845 | How many whole days and leftover hours are in 225 hours?
225 hours is 9 days and 9 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "9 days and 9 hours", "printed": "9 days and 9 hours", "notation": null} |
nlprog_det-setting-0052846 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
1 books come back 9 days late, at $0.50 a day each. What is the fine?<|eot|>
<|assistant|>
```python
per_day = 0.5
days_late = 9
books = 1
fine = per_day * days_late * books # 4.5
print(f"{fine:.2f}")
```
Out:
4.50
$4.50 is owed.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "1 books come back 9 days late, at $0.50 a day each. What is the fine?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.5\ndays_late = 9\nbooks = 1\nfine = per_day * days_late *... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "4.50", "printed": "4.50", "notation": null} |
nlprog_det-setting-0052847 | <|start|><|system|>
Tools you may use:
{"name": "python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|>
<|user|>
Bruna lends $2,500 at 8% simple intere... | chat | [
{
"role": "system",
"content": "Tools you may use:\n{\"name\": \"python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\"]}}... | nlprog_det | setting | original | null | deterministic | [] | [] | 233 | {"gold": "1200.00", "printed": "1200.00", "notation": null} |
nlprog_det-setting-0052848 | A court charges $15 per request plus $0.25 per page after the first 10 pages. What does a 34-page copy cost?
Here is a short program for it.
```python
pages = 34
base = 15
per_page = 0.25
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 21.0
print(f"{cost:.2f}")
```
This prints: 21.00
The total ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "21.00", "printed": "21.00", "notation": null} |
nlprog_det-setting-0052849 | The landlord deducts $150 and $200 from a $1,000 deposit. What is returned to the tenant?
In code:
```python
deposit = 1000
deductions = [150, 200]
refund = deposit - sum(deductions) # 650
print(refund)
```
Run result: 650
$650 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "650", "printed": "650", "notation": null} |
nlprog_det-setting-0052850 | Mateo buys 12 boxes of 10 desk lamps each and gives away 20 desk lamps. How many desk lamps are left?
A short script:
```python
boxes = 12
per_box = 10
given_away = 20
left = boxes * per_box - given_away # 100
print(left)
```
What it prints: 100
100 desk lamps are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "100", "printed": "100", "notation": null} |
nlprog_det-setting-0052851 | Papers were served by mail on November 27, 2020. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?
In code:
```python
from datetime import date, timedelta
served = date(2020, 11, 27) # datetime.date(2020, 11, 27)
response_days = 14
mail_days = 3
due = served + timedelta(day... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 174 | {"gold": "2020-12-14", "printed": "2020-12-14", "notation": null} |
nlprog_det-setting-0052852 | A garage charges $2 an hour, never more than $18 a day. How much for 7 hours? Parking costs $14. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0052853 | Each storage box holds 50 files. How many boxes are needed for 676 files?
```python
import math
files = 676
per_box = 50
boxes = math.ceil(files / per_box) # 14
print(boxes)
```
# run result: 14
14 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0052854 | <|start|><|user|>
After a 25% fee is taken from a $96,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|>
<|assistant|>
```python
award = 96000
fee = award * 25 / 100 # 24000.0
remaining = award - fee # 72000.0
per_client = remaining / 2 # 36000.0
print(f"{per_client:.2f}")... | chat | [
{
"role": "user",
"content": "After a 25% fee is taken from a $96,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?"
},
{
"role": "assistant",
"content": "```python\naward = 96000\nfee = award * 25 / 100 # 24000.0\nremaining = award - fee # 72000.0\nper_cl... | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "36000.00", "printed": "36000.00", "notation": null} |
nlprog_det-setting-0052855 | Walls total 1386 sq ft and each can covers 250 sq ft. How many cans should be bought?
Python makes this quick:
```python
import math
area = 1386
coverage = 250
cans = math.ceil(area / coverage) # 6
print(cans)
```
The script prints 6, as expected.
6 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0052856 | One can of paint covers 400 square feet. How many cans are needed for 198 square feet of wall?
The program:
```python
import math
area = 198
coverage = 400
cans = math.ceil(area / coverage) # 1
print(cans)
```
The script prints 1.
Buy 1 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "1", "printed": "1", "notation": null} |
nlprog_det-setting-0052857 | <|start|><|user|>
How many meters are in 33.5 kilometers?<|eot|>
<|assistant|>
```python
km = 33.5
meters = km * 1000
print(round(meters))
```
stdout:
33500
That is 33,500 meters.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many meters are in 33.5 kilometers?"
},
{
"role": "assistant",
"content": "```python\nkm = 33.5\nmeters = km * 1000\nprint(round(meters))\n```\nstdout:\n33500\n\nThat is 33,500 meters."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "33500", "printed": "33500", "notation": null} |
nlprog_det-setting-0052858 | An office budget of $12,000 has expenses of $2,126, $2,980. How much of the budget is left?
A few lines of Python do it:
budget = 12000
expenses = [2126, 2980]
left = budget - sum(expenses) # 6894
print(left)
When run, it prints 6894, as expected.
$6,894 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "6894", "printed": "6894", "notation": null} |
nlprog_det-setting-0052859 | 37 of 50 members attended. What percent attended?
Translated to Python:
```python
present = 37
total = 50
percent = present / total * 100 # 74.0
print(round(percent, 1))
```
(Printed result: 74.0)
Attendance was 74.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "74.0", "printed": "74.0", "notation": null} |
nlprog_det-setting-0052860 | <|start|><|user|>
Meals are $79 per day and lodging $110 per night. What is the allowance for 7 days and 6 nights?<|eot|>
<|assistant|>
```python
days = 7
meal_rate = 79
lodging_rate = 110
nights = days - 1 # 6
total = days * meal_rate + nights * lodging_rate # 1213
print(total)
```
The program prints 1213, as expect... | chat | [
{
"role": "user",
"content": "Meals are $79 per day and lodging $110 per night. What is the allowance for 7 days and 6 nights?"
},
{
"role": "assistant",
"content": "```python\ndays = 7\nmeal_rate = 79\nlodging_rate = 110\nnights = days - 1 # 6\ntotal = days * meal_rate + nights * lodging_rate ... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "1213", "printed": "1213", "notation": null} |
nlprog_det-setting-0052861 | <|start|><|system|>
You are a careful reviewer of figures.<|eot|>
<|user|>
What commission does Marek make on $39,692 in sales at 3%?<|eot|>
<|assistant|>
```python
sales = 39692
rate = 3 / 100 # 0.03
commission = sales * rate # 1190.76
print(f"{commission:.2f}")
```
Out — 1190.76
The commission is $1,190.76.<|eot|>... | chat | [
{
"role": "system",
"content": "You are a careful reviewer of figures."
},
{
"role": "user",
"content": "What commission does Marek make on $39,692 in sales at 3%?"
},
{
"role": "assistant",
"content": "```python\nsales = 39692\nrate = 3 / 100 # 0.03\ncommission = sales * rate # 11... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "1190.76", "printed": "1190.76", "notation": null} |
nlprog_det-setting-0052862 | Flooring at $5/sq ft for a 11 ft × 15 ft room costs how much? It costs $825. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "825", "printed": "825", "notation": null} |
nlprog_det-setting-0052863 | <|start|><|user|>
A trial runs from May 7, 2020 to May 14, 2020, counting both days. How many calendar days is that?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2020, 5, 7) # datetime.date(2020, 5, 7)
last = date(2020, 5, 14) # datetime.date(2020, 5, 14)
days = (last - first).days + 1 # 8
p... | chat | [
{
"role": "user",
"content": "A trial runs from May 7, 2020 to May 14, 2020, counting both days. How many calendar days is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2020, 5, 7) # datetime.date(2020, 5, 7)\nlast = date(2020, 5, 14) # datetim... | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0052864 | <|start|><|user|>
12 hours of work at $150 an hour: what is the total charge?<|eot|>
<|assistant|>
```python
hours = 12
rate = 150
bill = hours * rate
print(f"{bill:.2f}")
```
On running, it outputs: 1800.00
The bill is $1,800.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "12 hours of work at $150 an hour: what is the total charge?"
},
{
"role": "assistant",
"content": "```python\nhours = 12\nrate = 150\nbill = hours * rate\nprint(f\"{bill:.2f}\")\n```\nOn running, it outputs: 1800.00\n\nThe bill is $1,800.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "1800.00", "printed": "1800.00", "notation": null} |
nlprog_det-setting-0052865 | What day of the week is July 16, 2030?
A few lines of Python do it:
```python
from datetime import date
hearing = date(2030, 7, 16) # datetime.date(2030, 7, 16)
print(hearing.strftime("%A"))
```
Result = Tuesday
It is a Tuesday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "Tuesday", "printed": "Tuesday", "notation": null} |
nlprog_det-setting-0052867 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "interpreter", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"interpreter\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source co... | nlprog_det | setting | original | null | deterministic | [] | [] | 225 | {"gold": "6141.26", "printed": "6141.26", "notation": null} |
nlprog_det-setting-0052868 | <|start|><|user|>
What percentage of $5,000 is $1,500?<|eot|>
<|assistant|>
budget = 5000
spent = 1500
percent = spent / budget * 100
print(round(percent, 1))
Output of the run: 30.0
That is 30.0% of the budget.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What percentage of $5,000 is $1,500?"
},
{
"role": "assistant",
"content": " budget = 5000\n spent = 1500\n percent = spent / budget * 100\n print(round(percent, 1))\nOutput of the run: 30.0\n\nThat is 30.0% of the budget."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 71 | {"gold": "30.0", "printed": "30.0", "notation": null} |
nlprog_det-setting-0052869 | Filing fees are $125 per document. What do 12 filings cost? The filings cost $1,500 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 29 | {"gold": "1500", "printed": "1500", "notation": null} |
nlprog_det-setting-0052870 | <|start|><|user|>
Jamal drove 613 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement?<|eot|>
<|assistant|>
```python
miles = 613
rate = 0.58
reimbursement = miles * rate
print(f"{reimbursement:.2f}")
```
When run, it prints 355.54.
The reimbursement is $355.54.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Jamal drove 613 miles for work. Mileage is reimbursed at 58 cents a mile. How much is the reimbursement?"
},
{
"role": "assistant",
"content": "```python\nmiles = 613\nrate = 0.58\nreimbursement = miles * rate\nprint(f\"{reimbursement:.2f}\")\n```\nWhen run, it prin... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "355.54", "printed": "355.54", "notation": null} |
nlprog_det-setting-0052871 | Olga drove 351 miles for work. Mileage is reimbursed at 70 cents a mile. How much is the reimbursement?
```python
miles = 351
rate = 0.7
reimbursement = miles * rate # 245.7
print(f"{reimbursement:.2f}")
```
Result:
245.70
The reimbursement is $245.70. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "245.70", "printed": "245.70", "notation": null} |
nlprog_det-setting-0052872 | <|start|><|user|>
A clerk's office charges $405 for each filing. Quinn submits 9 filings. What is the total fee?<|eot|>
<|assistant|>
```python
fee = 405
filings = 9
total = fee * filings # 3645
print(total)
```
It prints 3645, as expected.
The filings cost $3,645 in all.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A clerk's office charges $405 for each filing. Quinn submits 9 filings. What is the total fee?"
},
{
"role": "assistant",
"content": "```python\nfee = 405\nfilings = 9\ntotal = fee * filings # 3645\nprint(total)\n```\nIt prints 3645, as expected.\n\nThe filings cos... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "3645", "printed": "3645", "notation": null} |
nlprog_det-setting-0052873 | <|start|><|user|>
What day of the week is June 23, 2029?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(2029, 6, 23) # datetime.date(2029, 6, 23)
print(hearing.strftime("%A"))
```
The interpreter prints Saturday.
June 23, 2029 is a Saturday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What day of the week is June 23, 2029?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(2029, 6, 23) # datetime.date(2029, 6, 23)\nprint(hearing.strftime(\"%A\"))\n```\nThe interpreter prints Saturday.\n\nJune 23, 2029 is ... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "Saturday", "printed": "Saturday", "notation": null} |
nlprog_det-setting-0052874 | How many units at $25 each (variable cost $21) cover $4,000 of fixed costs?
Here is the program.
```python
import math
fixed = 4000
price = 25
variable = 21
units = math.ceil(fixed / (price - variable)) # 1000
print(units)
```
Printed: 1000
1000 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0052876 | What is a 15% tip on a $57.94 bill?
A few lines of Python do it:
```python
bill = 57.94
tip_rate = 15 / 100 # 0.15
tip = bill * tip_rate # 8.690999999999999
print(f"{tip:.2f}")
```
Out — 8.69
The tip is $8.69. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "8.69", "printed": "8.69", "notation": null} |
nlprog_det-setting-0052877 | A quorum is 3/5 of the 40 members, rounded up. How many members make a quorum?
A few lines of Python do it:
```python
import math
members = 40
quorum = math.ceil(members * 3 / 5) # 24
print(quorum)
```
Run output — 24
24 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0052878 | 6 bike rides at 200 calories each burn how many calories in total?
Here is a short program for it.
per_session = 200
sessions = 6
total = per_session * sessions # 1200
print(total)
Out — 1200
That burns 1200 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "1200", "printed": "1200", "notation": null} |
nlprog_det-setting-0052879 | What average speed covers 88 miles in 2 hours?
Set it up in Python:
```python
distance = 88
hours = 2
speed = distance / hours # 44.0
print(round(speed))
```
(Printed: 44)
The average speed is 44 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "44", "printed": "44", "notation": null} |
nlprog_det-setting-0052881 | 44 copies of a 46-page packet are printed at $0.12 per page. What is the cost? Printing costs $242.88. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "242.88", "printed": "242.88", "notation": null} |
nlprog_det-setting-0052882 | A settlement of $960 is split equally among 6 parties. How much does each party receive?
Each party receives $160. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "160", "printed": "160", "notation": null} |
nlprog_det-setting-0052883 | <|start|><|user|>
With 20% off, what does a $180 bicycle helmet cost?<|eot|>
<|assistant|>
```python
price = 180
discount = 20 / 100 # 0.2
sale_price = price * (1 - discount) # 144.0
print(f"{sale_price:.2f}")
```
The interpreter prints 144.00.
It costs $144.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 20% off, what does a $180 bicycle helmet cost?"
},
{
"role": "assistant",
"content": "```python\nprice = 180\ndiscount = 20 / 100 # 0.2\nsale_price = price * (1 - discount) # 144.0\nprint(f\"{sale_price:.2f}\")\n```\nThe interpreter prints 144.00.\n\nIt costs... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "144.00", "printed": "144.00", "notation": null} |
nlprog_det-setting-0052884 | Someone born October 15, 2009 turns how old by May 27, 2027? Give the age in whole years.
Let the code do the arithmetic:
from datetime import date
born = date(2009, 10, 15) # datetime.date(2009, 10, 15)
on = date(2027, 5, 27) # datetime.date(2027, 5, 27)
age = on.year - born.year - ((on.month, on.da... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0052885 | 8 sticky pads cost $24 apiece. With 7% tax added, what is the total?
Program:
```python
quantity = 8
unit_price = 24
subtotal = quantity * unit_price # 192
total = subtotal * (1 + 7 / 100) # 205.44
print(f"{total:.2f}")
```
Out: 205.44
The invoice total is $205.44. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "205.44", "printed": "205.44", "notation": null} |
nlprog_det-setting-0052886 | A claim accrued on October 14, 2021. The limitations period is 4 years. On what date does it expire?
It runs out on October 14, 2025. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "2025-10-14", "printed": "2025-10-14", "notation": null} |
nlprog_det-setting-0052887 | <|start|><|user|>
Under a 25% contingency agreement, what fee is owed on a $60,000 award?<|eot|>
<|assistant|>
recovery = 60000
rate = 25 / 100 # 0.25
fee = recovery * rate # 15000.0
print(f"{fee:.2f}")
The script prints: 15000.00
The lawyer's fee comes to $15,000.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Under a 25% contingency agreement, what fee is owed on a $60,000 award?"
},
{
"role": "assistant",
"content": " recovery = 60000\n rate = 25 / 100 # 0.25\n fee = recovery * rate # 15000.0\n print(f\"{fee:.2f}\")\nThe script prints: 15000.00\n\nThe lawy... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "15000.00", "printed": "15000.00", "notation": null} |
nlprog_det-setting-0052888 | <|start|><|user|>
189 volunteers are split into 6 equal teams. How many are on each team, and how many are left over?<|eot|>
<|assistant|>
```python
total = 189
groups = 6
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
(Printed: 31 each, 3 left over)
31 each, 3 left ... | chat | [
{
"role": "user",
"content": "189 volunteers are split into 6 equal teams. How many are on each team, and how many are left over?"
},
{
"role": "assistant",
"content": "```python\ntotal = 189\ngroups = 6\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remainder} left o... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "31 each, 3 left over", "printed": "31 each, 3 left over", "notation": null} |
nlprog_det-setting-0052889 | <|start|><|user|>
A 120-day notice period begins on September 27, 2021. On what date does it end?<|eot|>
<|assistant|>
from datetime import date, timedelta
start = date(2021, 9, 27) # datetime.date(2021, 9, 27)
end = start + timedelta(days=120) # datetime.date(2022, 1, 25)
print(end.isoformat())
Run o... | chat | [
{
"role": "user",
"content": "A 120-day notice period begins on September 27, 2021. On what date does it end?"
},
{
"role": "assistant",
"content": " from datetime import date, timedelta\n start = date(2021, 9, 27) # datetime.date(2021, 9, 27)\n end = start + timedelta(days=120) # dat... | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "2022-01-25", "printed": "2022-01-25", "notation": null} |
nlprog_det-setting-0052890 | An invoice lists 20 water bottles at $6 each, plus 8% sales tax. What is the invoice total?
We write it as a program:
quantity = 20
unit_price = 6
subtotal = quantity * unit_price # 120
total = subtotal * (1 + 8 / 100) # 129.60000000000002
print(f"{total:.2f}")
# output: 129.60
The invoice total... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "129.60", "printed": "129.60", "notation": null} |
nlprog_det-setting-0052891 | <|start|><|user|>
At 2% a month (simple), what interest builds on $4,000 over 6 months?<|eot|>
<|assistant|>
```python
balance = 4000
monthly_rate = 2 / 100 # 0.02
months = 6
interest = balance * monthly_rate * months # 480.0
print(f"{interest:.2f}")
```
Program output: 480.00
The interest is $480.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At 2% a month (simple), what interest builds on $4,000 over 6 months?"
},
{
"role": "assistant",
"content": "```python\nbalance = 4000\nmonthly_rate = 2 / 100 # 0.02\nmonths = 6\ninterest = balance * monthly_rate * months # 480.0\nprint(f\"{interest:.2f}\")\n```\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "480.00", "printed": "480.00", "notation": null} |
nlprog_det-setting-0052892 | <|start|><|user|>
How long, in days, is it from December 3, 2025 until September 5, 2026?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2025, 12, 3) # datetime.date(2025, 12, 3)
second = date(2026, 9, 5) # datetime.date(2026, 9, 5)
print((second - first).days)
```
It outputs: 276
There are 27... | chat | [
{
"role": "user",
"content": "How long, in days, is it from December 3, 2025 until September 5, 2026?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2025, 12, 3) # datetime.date(2025, 12, 3)\nsecond = date(2026, 9, 5) # datetime.date(2026, 9, 5)\nprin... | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "276", "printed": "276", "notation": null} |
nlprog_det-setting-0052893 | After an initial $6,000, the remainder of a $12,000 grant is paid in 12 equal parts. What is each part?
Each installment is $500.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "500.00", "printed": "500.00", "notation": null} |
nlprog_det-setting-0052894 | <|start|><|user|>
Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 55 hours?<|eot|>
<|assistant|>
```python
rate = 25.0
hours = 55
regular = 40 * rate # 1000.0
overtime = (hours - 40) * rate * 1.5 # 562.5
pay = regular + overtime # 1562.5
print(f"{pay:.2f}")
```
# result: 1562.5... | chat | [
{
"role": "user",
"content": "Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 55 hours?"
},
{
"role": "assistant",
"content": "```python\nrate = 25.0\nhours = 55\nregular = 40 * rate # 1000.0\novertime = (hours - 40) * rate * 1.5 # 562.5\npay = regular + ... | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "1562.50", "printed": "1562.50", "notation": null} |
nlprog_det-setting-0052895 | At an exchange rate of 1.12 USD per GBP, how many USD is 6,815 GBP?
Script:
```python
amount = 6815
rate = 1.12
converted = amount * rate # 7632.800000000001
print(f"{converted:.2f}")
```
It outputs: 7632.80
That is 7,632.80 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "7632.80", "printed": "7632.80", "notation": null} |
nlprog_det-setting-0052896 | A service costs $15 a month or $144 a year. How much does the yearly plan save over 12 monthly payments?
The program:
```python
monthly = 15
yearly = 144
savings = monthly * 12 - yearly # 36
print(savings)
```
Execution result — 36
$36 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0052897 | Which is cheaper per unit: 8 for $3.45 (A) or 20 for $21.62 (B)?
In Python:
```python
pack_a = 3.45 / 8 # 0.43125
pack_b = 21.62 / 20 # 1.081
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
Run output — A
A has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0052898 | Goods bought on August 26, 2027 carry a 12-month warranty. When does it expire?
Let's compute it with Python.
```python
from datetime import date
start = date(2027, 8, 26)
months = 12
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoforma... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 157 | {"gold": "2028-08-26", "printed": "2028-08-26", "notation": null} |
nlprog_det-setting-0052899 | Attendance was 25 out of 40. Express it as a percent.
Computation in Python:
```python
present = 25
total = 40
percent = present / total * 100
print(round(percent, 1))
```
It prints 62.5, as expected.
62.5% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "62.5", "printed": "62.5", "notation": null} |
nlprog_det-setting-0052901 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
Revenue is $20,500 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|>
<|assistant|>
Profit is 2.4% of revenue.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "Revenue is $20,500 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?"
},
{
"role": "assistant",
"content": "Profit is 2.4% of revenue."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 63 | {"gold": "2.4", "printed": "2.4", "notation": null} |
nlprog_det-setting-0052902 | A 5 lb package ships at $5 base plus $2.50/lb. What is the charge?
Python makes this quick:
```python
base = 5
per_pound = 2.5
weight = 5
cost = base + per_pound * weight
print(f"{cost:.2f}")
```
# run result: 17.50
Shipping costs $17.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "17.50", "printed": "17.50", "notation": null} |
nlprog_det-setting-0052903 | Notice was given on October 9, 2026. The notice period is 10 days. When does it run out?
Written as code:
```python
from datetime import date, timedelta
start = date(2026, 10, 9) # datetime.date(2026, 10, 9)
end = start + timedelta(days=10) # datetime.date(2026, 10, 19)
print(end.isoformat())
```
# execution result:... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "2026-10-19", "printed": "2026-10-19", "notation": null} |
nlprog_det-setting-0052904 | If a 150-minute appointment begins at 1:30 PM, what time does it finish?
Computing it:
```python
start = 13 * 60 + 30
end = start + 150
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Execution prints: 4:00 PM
The appointment finishes at 4:00 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "4:00 PM", "printed": "4:00 PM", "notation": null} |
nlprog_det-setting-0052905 | A $150 dinner bill gets a 18% tip, and 2 people share the cost equally. What is each person's share?
Translated to Python:
```python
bill = 150
tip_rate = 18 / 100 # 0.18
people = 2
each = bill * (1 + tip_rate) / people # 88.5
print(f"{each:.2f}")
```
stdout = 88.50
The share is $88.50 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "88.50", "printed": "88.50", "notation": null} |
nlprog_det-setting-0052906 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
846 files go into boxes of 50. How many boxes does that take?<|eot|>
<|assistant|>
import math
files = 846
per_box = 50
boxes = math.ceil(files / per_box) # 17
print(boxes)
(Console output: 17)
It takes 17 boxes.<|eot|>
<|e... | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "846 files go into boxes of 50. How many boxes does that take?"
},
{
"role": "assistant",
"content": " import math\n files = 846\n per_box = 50\n boxes = math.ceil(file... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0052907 | <|start|><|system|>
Tool definitions:
{"name": "interpreter", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|>
<|user|>
Delia has 17 documents to ... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"interpreter\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 196 | {"gold": "765", "printed": "765", "notation": null} |
nlprog_det-setting-0052908 | With 25% off, what does a $60 kettle cost?
Python code:
price = 60
discount = 25 / 100 # 0.25
sale_price = price * (1 - discount) # 45.0
print(f"{sale_price:.2f}")
That prints: 45.00
It costs $45.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "45.00", "printed": "45.00", "notation": null} |
nlprog_det-setting-0052909 | What simple interest does $20,000 earn at 6% a year over 3 years?
It earns $3,600.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "3600.00", "printed": "3600.00", "notation": null} |
nlprog_det-setting-0052910 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "interpreter", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"interpreter\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"descriptio... | nlprog_det | setting | original | null | deterministic | [] | [] | 286 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0052911 | A quorum is 3/5 of the 18 members, rounded up. How many members make a quorum?
Python:
```python
import math
members = 18
quorum = math.ceil(members * 3 / 5) # 11
print(quorum)
```
That prints 11.
That is 11 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "11", "printed": "11", "notation": null} |
nlprog_det-setting-0052914 | <|start|><|user|>
93 copies of a 42-page packet are printed at $0.05 per page. What is the cost?<|eot|>
<|assistant|>
```python
pages = 42
copies = 93
cost_per_page = 0.05
cost = pages * copies * cost_per_page # 195.3
print(f"{cost:.2f}")
```
The code prints: 195.30
The job costs $195.30.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "93 copies of a 42-page packet are printed at $0.05 per page. What is the cost?"
},
{
"role": "assistant",
"content": "```python\npages = 42\ncopies = 93\ncost_per_page = 0.05\ncost = pages * copies * cost_per_page # 195.3\nprint(f\"{cost:.2f}\")\n```\nThe code prin... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "195.30", "printed": "195.30", "notation": null} |
nlprog_det-setting-0052915 | 95 of 100 members attended. What percent attended?
We can compute it in Python.
present = 95
total = 100
percent = present / total * 100 # 95.0
print(round(percent, 1))
What it prints: 95.0
95.0% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "95.0", "printed": "95.0", "notation": null} |
nlprog_det-setting-0052916 | Monthly: $9. Annual: $78. What is saved per year by paying annually? The annual plan saves $30. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0052917 | <|start|><|user|>
A pack of 25 staplers sells for $1375. What does each cost?<|eot|>
<|assistant|>
The unit price is $55.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A pack of 25 staplers sells for $1375. What does each cost?"
},
{
"role": "assistant",
"content": "The unit price is $55."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "55", "printed": "55", "notation": null} |
nlprog_det-setting-0052918 | A client paid a $2,500 retainer. The firm has billed 10 hours at $250 per hour. How much of the retainer is left?
Coded up:
```python
retainer = 2500
hours = 10
rate = 250
left = retainer - hours * rate
print(left)
```
When run, it prints: 0
$0 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "0", "printed": "0", "notation": null} |
nlprog_det-setting-0052919 | How many 2-foot square tiles cover a 6 ft by 5 ft floor (round up)?
We can compute it in Python.
```python
import math
length = 6
width = 5
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 8
print(tiles)
```
Shell output — 8
It takes 8 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "8", "printed": "8", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.