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-0079569 | <|start|><|user|>
An office budget of $20,000 has expenses of $672, $973, $354. How much of the budget is left?<|eot|>
<|assistant|>
```python
budget = 20000
expenses = [672, 973, 354]
left = budget - sum(expenses) # 18001
print(left)
```
Execution result: 18001
The remaining budget is $18,001.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An office budget of $20,000 has expenses of $672, $973, $354. How much of the budget is left?"
},
{
"role": "assistant",
"content": "```python\nbudget = 20000\nexpenses = [672, 973, 354]\nleft = budget - sum(expenses) # 18001\nprint(left)\n```\nExecution result: 18... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "18001", "printed": "18001", "notation": null} |
nlprog_det-setting-0079571 | A $12,000 grant pays $2,000 up front and the rest in 12 equal installments. How large is each installment?
One way, in code:
```python
grant = 12000
up_front = 2000
installments = 12
each = (grant - up_front) / installments # 833.3333333333334
print(f"{each:.2f}")
```
Executing it gives 833.33.
Each installment is $... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "833.33", "printed": "833.33", "notation": null} |
nlprog_det-setting-0079572 | At $0.70 per mile, what is the reimbursement for 114 miles?
One way, in code:
```python
miles = 114
rate = 0.7
reimbursement = miles * rate # 79.8
print(f"{reimbursement:.2f}")
```
stdout: 79.80
Bilal is owed $79.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "79.80", "printed": "79.80", "notation": null} |
nlprog_det-setting-0079573 | A trial runs from October 3, 2019 to October 15, 2019, counting both days. How many calendar days is that?
Python:
```python
from datetime import date
first = date(2019, 10, 3) # datetime.date(2019, 10, 3)
last = date(2019, 10, 15) # datetime.date(2019, 10, 15)
days = (last - first).days + 1 # 13
print(days)
```
It... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0079574 | How many whole days and leftover hours are in 162 hours?
Translated to Python:
```python
hours = 162
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Running this gives 6 days and 18 hours.
162 hours is 6 days and 18 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "6 days and 18 hours", "printed": "6 days and 18 hours", "notation": null} |
nlprog_det-setting-0079575 | At 40 miles per hour, how many minutes does a 160-mile trip take?
The Python version:
distance = 160
speed = 40
minutes = distance / speed * 60 # 240.0
print(round(minutes))
The printout reads 240.
240 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "240", "printed": "240", "notation": null} |
nlprog_det-setting-0079576 | <|start|><|system|>
Tools you may use:
[{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "calc", "description": "Evaluates Python and returns the printed output.", "parameters": {"type"... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"calc\", \"description\": \"Evaluates Pyth... | nlprog_det | setting | original | null | deterministic | [] | [] | 346 | {"gold": "80", "printed": "80", "notation": null} |
nlprog_det-setting-0079579 | Divide 161 items among 6 groups as evenly as possible with equal groups. How many per group, and how many remain?
The answer: 26 each, 5 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "26 each, 5 left over", "printed": "26 each, 5 left over", "notation": null} |
nlprog_det-setting-0079580 | On which weekday does January 2, 2019 fall?
In code:
from datetime import date
hearing = date(2019, 1, 2) # datetime.date(2019, 1, 2)
print(hearing.strftime("%A"))
On running, it outputs Wednesday.
It is a Wednesday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "Wednesday", "printed": "Wednesday", "notation": null} |
nlprog_det-setting-0079581 | A party has 14 days to respond to a motion served on December 16, 2028, with 3 days added because service was by mail. When is the response due?
Python version:
```python
from datetime import date, timedelta
served = date(2028, 12, 16) # datetime.date(2028, 12, 16)
response_days = 14
mail_days = 3
due = served + time... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 180 | {"gold": "2029-01-02", "printed": "2029-01-02", "notation": null} |
nlprog_det-setting-0079582 | <|start|><|system|>
You help people work with structured data.<|eot|>
<|user|>
Rania lends $5,000 at 3% simple interest per year for 5 years. How much interest is earned?<|eot|>
<|assistant|>
```python
principal = 5000
rate = 3 / 100 # 0.03
years = 5
interest = principal * rate * years # 750.0
print(f"{interest:.2f}"... | chat | [
{
"role": "system",
"content": "You help people work with structured data."
},
{
"role": "user",
"content": "Rania lends $5,000 at 3% simple interest per year for 5 years. How much interest is earned?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 5000\nrate = 3 / 100 ... | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "750.00", "printed": "750.00", "notation": null} |
nlprog_det-setting-0079583 | <|start|><|system|>
You help people work with structured data.<|eot|>
<|user|>
A shift runs from 9:03 AM to 11:16 AM. How long is it in minutes?<|eot|>
<|assistant|>
```python
start = 9 * 60 + 3 # 543
end = 11 * 60 + 16 # 676
print(end - start)
```
Interpreter output: 133
133 minutes pass.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help people work with structured data."
},
{
"role": "user",
"content": "A shift runs from 9:03 AM to 11:16 AM. How long is it in minutes?"
},
{
"role": "assistant",
"content": "```python\nstart = 9 * 60 + 3 # 543\nend = 11 * 60 + 16 # 676\nprint... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "133", "printed": "133", "notation": null} |
nlprog_det-setting-0079584 | <|start|><|user|>
Notice was given on February 26, 2023. The notice period is 10 days. When does it run out?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2023, 2, 26) # datetime.date(2023, 2, 26)
end = start + timedelta(days=10) # datetime.date(2023, 3, 8)
print(end.isoformat())
``... | chat | [
{
"role": "user",
"content": "Notice was given on February 26, 2023. The notice period is 10 days. When does it run out?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2023, 2, 26) # datetime.date(2023, 2, 26)\nend = start + timedelta(days=1... | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "2023-03-08", "printed": "2023-03-08", "notation": null} |
nlprog_det-setting-0079585 | A shift starts at 12:30 PM and lasts 135 minutes. When does it end?
It ends at 2:45 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "2:45 PM", "printed": "2:45 PM", "notation": null} |
nlprog_det-setting-0079586 | An unpaid balance of $7,500 accrues 2% simple interest per month. How much interest accrues in 2 months?
The interest is $300.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "300.00", "printed": "300.00", "notation": null} |
nlprog_det-setting-0079587 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "compute", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
What i... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"compute\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}... | nlprog_det | setting | original | null | deterministic | [] | [] | 209 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0079588 | How many units at $30 each (variable cost $24) cover $1,200 of fixed costs?
Here is a short program for it.
```python
import math
fixed = 1200
price = 30
variable = 24
units = math.ceil(fixed / (price - variable)) # 200
print(units)
```
Python prints 200, as expected.
200 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "200", "printed": "200", "notation": null} |
nlprog_det-setting-0079589 | Goods bought on September 20, 2024 carry a 6-month warranty. When does it expire?
In code:
```python
from datetime import date
start = date(2024, 9, 20)
months = 6
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
Console out... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "2025-03-20", "printed": "2025-03-20", "notation": null} |
nlprog_det-setting-0079590 | <|start|><|user|>
How many 1-foot square tiles cover a 14 ft by 5 ft floor (round up)?<|eot|>
<|assistant|>
```python
import math
length = 14
width = 5
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 70
print(tiles)
```
# stdout: 70
It takes 70 tiles.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many 1-foot square tiles cover a 14 ft by 5 ft floor (round up)?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 14\nwidth = 5\ntile = 1\ntiles = math.ceil(length * width / (tile * tile)) # 70\nprint(tiles)\n```\n# stdout: 70\n\nIt takes... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "70", "printed": "70", "notation": null} |
nlprog_det-setting-0079591 | A pack of 6 rulers sells for $354. What does each cost?
One way, in code:
```python
total = 354
count = 6
per_item = total // count # 59
print(per_item)
```
Out: 59
Each one costs $59. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "59", "printed": "59", "notation": null} |
nlprog_det-setting-0079592 | Prorate $1,500 of monthly rent for 12 days of a 31-day month.
Python, step by step:
```python
rent = 1500
days_in_month = 31
days_occupied = 12
prorated = rent * days_occupied / days_in_month # 580.6451612903226
print(f"{prorated:.2f}")
```
Console output — 580.65
The tenant owes $580.65. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "580.65", "printed": "580.65", "notation": null} |
nlprog_det-setting-0079593 | <|start|><|user|>
How many whole days and leftover hours are in 49 hours?<|eot|>
<|assistant|>
```python
hours = 49
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Console output — 2 days and 1 hours
That is 2 days and 1 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many whole days and leftover hours are in 49 hours?"
},
{
"role": "assistant",
"content": "```python\nhours = 49\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nConsole output — 2 days and 1 hours\n\nThat is 2 days and 1 hours."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "2 days and 1 hours", "printed": "2 days and 1 hours", "notation": null} |
nlprog_det-setting-0079594 | Express 68 hours in days and hours.
Let's compute it with Python.
```python
hours = 68
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
# output: 2 days and 20 hours
68 hours is 2 days and 20 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "2 days and 20 hours", "printed": "2 days and 20 hours", "notation": null} |
nlprog_det-setting-0079595 | Monthly rent is $1,800. A tenant moves in with 25 days left in a 31-day month. What is the prorated rent?
The Python version:
```python
rent = 1800
days_in_month = 31
days_occupied = 25
prorated = rent * days_occupied / days_in_month # 1451.6129032258063
print(f"{prorated:.2f}")
```
Console:
1451.61
The tenant owes ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "1451.61", "printed": "1451.61", "notation": null} |
nlprog_det-setting-0079596 | At 1.5% a month (simple), what interest builds on $7,500 over 2 months?
```python
balance = 7500
monthly_rate = 1.5 / 100 # 0.015
months = 2
interest = balance * monthly_rate * months # 225.0
print(f"{interest:.2f}")
```
Output of the run — 225.00
The interest is $225.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "225.00", "printed": "225.00", "notation": null} |
nlprog_det-setting-0079597 | How many 1-foot square tiles cover a 6 ft by 11 ft floor (round up)?
A short script:
```python
import math
length = 6
width = 11
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 66
print(tiles)
```
# program output: 66
66 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "66", "printed": "66", "notation": null} |
nlprog_det-setting-0079598 | A hall has 20 rows of 18 seats, and 39 seats are empty. How many people are seated?
As Python:
```python
rows = 20
per_row = 18
empty = 39
seated = rows * per_row - empty # 321
print(seated)
```
Output: 321
321 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "321", "printed": "321", "notation": null} |
nlprog_det-setting-0079599 | A hall has 21 rows of 16 seats, and 15 seats are empty. How many people are seated?
One way, in code:
rows = 21
per_row = 16
empty = 15
seated = rows * per_row - empty # 321
print(seated)
(Printed: 321)
321 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "321", "printed": "321", "notation": null} |
nlprog_det-setting-0079600 | After an initial $6,000, the remainder of a $60,000 grant is paid in 12 equal parts. What is each part?
$4,500.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "4500.00", "printed": "4500.00", "notation": null} |
nlprog_det-setting-0079601 | <|start|><|user|>
A library charges $0.50 per book per day late. What is the fine for 1 books that are 27 days late?<|eot|>
<|assistant|>
```python
per_day = 0.5
days_late = 27
books = 1
fine = per_day * days_late * books # 13.5
print(f"{fine:.2f}")
```
stdout — 13.50
The fine is $13.50.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A library charges $0.50 per book per day late. What is the fine for 1 books that are 27 days late?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.5\ndays_late = 27\nbooks = 1\nfine = per_day * days_late * books # 13.5\nprint(f\"{fine:.2f}\")\n```\nst... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "13.50", "printed": "13.50", "notation": null} |
nlprog_det-setting-0079602 | <|start|><|system|>
Keep explanations short.<|eot|>
<|user|>
One can of paint covers 400 square feet. How many cans are needed for 479 square feet of wall?<|eot|>
<|assistant|>
Buy 2 cans.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Keep explanations short."
},
{
"role": "user",
"content": "One can of paint covers 400 square feet. How many cans are needed for 479 square feet of wall?"
},
{
"role": "assistant",
"content": "Buy 2 cans."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 50 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0079603 | <|start|><|user|>
Counting only Monday through Friday, how many business days are there after September 11, 2024 through October 17, 2024?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2024, 9, 11)
end = date(2024, 10, 17)
count = 0
for k in range(1, (end - start).days + 1):
if (s... | chat | [
{
"role": "user",
"content": "Counting only Monday through Friday, how many business days are there after September 11, 2024 through October 17, 2024?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2024, 9, 11)\nend = date(2024, 10, 17)\ncoun... | nlprog_det | setting | original | null | deterministic | [] | [] | 158 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0079604 | A 6 × 14 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?
```python
import math
length = 6
width = 14
tile = 2
tiles = math.ceil(length * width / (tile * tile))
print(tiles)
```
# out: 21
21 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "21", "printed": "21", "notation": null} |
nlprog_det-setting-0079605 | An attorney bills 1.5 hours at $350 per hour. What is the bill?
Program:
hours = 1.5
rate = 350
bill = hours * rate # 525.0
print(f"{bill:.2f}")
Printed: 525.00
That comes to $525.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "525.00", "printed": "525.00", "notation": null} |
nlprog_det-setting-0079606 | A settlement of $18,000 is split equally among 4 parties. How much does each party receive?
Python makes this quick:
```python
settlement = 18000
parties = 4
share = settlement // parties # 4500
print(share)
```
The program prints 4500, as expected.
Each share is $4,500. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "4500", "printed": "4500", "notation": null} |
nlprog_det-setting-0079607 | <|start|><|system|>
You may call the tools below.
[{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "calc", "description": "Evaluates Python and returns the printed ... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"name\": \"calc\", \"... | nlprog_det | setting | original | null | deterministic | [] | [] | 353 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0079608 | A garage charges $3 an hour, never more than $24 a day. How much for 4 hours?
A short script:
```python
rate = 3
hours = 4
daily_max = 24
cost = min(rate * hours, daily_max) # 12
print(cost)
```
(Printed result: 12)
The charge is $12. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0079609 | How many whole days and leftover hours are in 159 hours?
That is 6 days and 15 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "6 days and 15 hours", "printed": "6 days and 15 hours", "notation": null} |
nlprog_det-setting-0079610 | <|start|><|user|>
5 bike rides at 150 calories each burn how many calories in total?<|eot|>
<|assistant|>
```python
per_session = 150
sessions = 5
total = per_session * sessions # 750
print(total)
```
Printed: 750
750 calories in total.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "5 bike rides at 150 calories each burn how many calories in total?"
},
{
"role": "assistant",
"content": "```python\nper_session = 150\nsessions = 5\ntotal = per_session * sessions # 750\nprint(total)\n```\nPrinted: 750\n\n750 calories in total."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "750", "printed": "750", "notation": null} |
nlprog_det-setting-0079611 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value"... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"},... | nlprog_det | setting | original | null | deterministic | [] | [] | 437 | {"gold": "45", "printed": "45", "notation": null} |
nlprog_det-setting-0079612 | Printing costs 5 cents a page. What does it cost to print 55 copies of a 49-page handout?
Programmatically:
```python
pages = 49
copies = 55
cost_per_page = 0.05
cost = pages * copies * cost_per_page # 134.75
print(f"{cost:.2f}")
```
(Console output: 134.75)
Printing costs $134.75. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "134.75", "printed": "134.75", "notation": null} |
nlprog_det-setting-0079613 | At $31.14 an hour, what does 30 hours of work pay?
Python, step by step:
```python
rate = 31.14
hours = 30
earnings = rate * hours # 934.2
print(f"{earnings:.2f}")
```
Execution prints 934.20, as expected.
That earns $934.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "934.20", "printed": "934.20", "notation": null} |
nlprog_det-setting-0079614 | A car travels 164 miles in 2 hours. What is its average speed in miles per hour?
A Python solution:
```python
distance = 164
hours = 2
speed = distance / hours # 82.0
print(round(speed))
```
The run gives 82.
The average speed is 82 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "82", "printed": "82", "notation": null} |
nlprog_det-setting-0079615 | A claim accrued on July 28, 2017. The limitations period is 5 years. On what date does it expire?
```python
from datetime import date
accrued = date(2017, 7, 28) # datetime.date(2017, 7, 28)
years = 5
expires = accrued.replace(year=accrued.year + years) # datetime.date(2022, 7, 28)
print(expires.isoformat())
```
Whe... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "2022-07-28", "printed": "2022-07-28", "notation": null} |
nlprog_det-setting-0079616 | <|start|><|user|>
Parking is $5 per hour with a daily maximum of $15. What do 8 hours cost?<|eot|>
<|assistant|>
rate = 5
hours = 8
daily_max = 15
cost = min(rate * hours, daily_max) # 15
print(cost)
The printout reads 15.
Parking costs $15.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Parking is $5 per hour with a daily maximum of $15. What do 8 hours cost?"
},
{
"role": "assistant",
"content": " rate = 5\n hours = 8\n daily_max = 15\n cost = min(rate * hours, daily_max) # 15\n print(cost)\nThe printout reads 15.\n\nParking costs ... | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0079617 | <|start|><|user|>
Attendance was 40 out of 50. Express it as a percent.<|eot|>
<|assistant|>
```python
present = 40
total = 50
percent = present / total * 100 # 80.0
print(round(percent, 1))
```
Run result = 80.0
Attendance was 80.0%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Attendance was 40 out of 50. Express it as a percent."
},
{
"role": "assistant",
"content": "```python\npresent = 40\ntotal = 50\npercent = present / total * 100 # 80.0\nprint(round(percent, 1))\n```\nRun result = 80.0\n\nAttendance was 80.0%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "80.0", "printed": "80.0", "notation": null} |
nlprog_det-setting-0079618 | <|start|><|user|>
With $4,000 in costs and $6,500 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|>
<|assistant|>
The margin is 38.5%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With $4,000 in costs and $6,500 in revenue, what percent of revenue is profit? Round to one decimal."
},
{
"role": "assistant",
"content": "The margin is 38.5%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "38.5", "printed": "38.5", "notation": null} |
nlprog_det-setting-0079619 | <|start|><|system|>
Tools you may use:
[{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "p... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"get_weather\", \"description\": \"Get the... | nlprog_det | setting | original | null | deterministic | [] | [] | 332 | {"gold": "163", "printed": "163", "notation": null} |
nlprog_det-setting-0079620 | 6 boxes hold 8 lanyards each. After 7 are handed out, how many are left?
Python code:
```python
boxes = 6
per_box = 8
given_away = 7
left = boxes * per_box - given_away
print(left)
```
(Result: 41)
That leaves 41 lanyards. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "41", "printed": "41", "notation": null} |
nlprog_det-setting-0079621 | <|start|><|system|>
You help with homework problems.<|eot|>
<|user|>
Goods bought on April 22, 2024 carry a 36-month warranty. When does it expire?<|eot|>
<|assistant|>
The warranty ends on April 22, 2027.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help with homework problems."
},
{
"role": "user",
"content": "Goods bought on April 22, 2024 carry a 36-month warranty. When does it expire?"
},
{
"role": "assistant",
"content": "The warranty ends on April 22, 2027."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 54 | {"gold": "2027-04-22", "printed": "2027-04-22", "notation": null} |
nlprog_det-setting-0079622 | <|start|><|system|>
You have access to these functions:
{"name": "python_exec", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|>
<|... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"python_exec\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python s... | nlprog_det | setting | original | null | deterministic | [] | [] | 222 | {"gold": "13 days and 5 hours", "printed": "13 days and 5 hours", "notation": null} |
nlprog_det-setting-0079623 | <|start|><|user|>
At $0.65 per mile, what is the reimbursement for 141 miles?<|eot|>
<|assistant|>
```python
miles = 141
rate = 0.65
reimbursement = miles * rate # 91.65
print(f"{reimbursement:.2f}")
```
The printout reads: 91.65
The reimbursement is $91.65.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $0.65 per mile, what is the reimbursement for 141 miles?"
},
{
"role": "assistant",
"content": "```python\nmiles = 141\nrate = 0.65\nreimbursement = miles * rate # 91.65\nprint(f\"{reimbursement:.2f}\")\n```\nThe printout reads: 91.65\n\nThe reimbursement is $91... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "91.65", "printed": "91.65", "notation": null} |
nlprog_det-setting-0079624 | How many days are there from January 26, 2018 to November 10, 2018?
```python
from datetime import date
first = date(2018, 1, 26) # datetime.date(2018, 1, 26)
second = date(2018, 11, 10) # datetime.date(2018, 11, 10)
print((second - first).days)
```
Out: 288
It is 288 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "288", "printed": "288", "notation": null} |
nlprog_det-setting-0079625 | With 10% off, what does a $80 filing cabinet cost?
The computation:
```python
price = 80
discount = 10 / 100 # 0.1
sale_price = price * (1 - discount) # 72.0
print(f"{sale_price:.2f}")
```
# execution result: 72.00
It costs $72.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "72.00", "printed": "72.00", "notation": null} |
nlprog_det-setting-0079626 | <|start|><|user|>
A trial runs from November 13, 2021 to November 30, 2021, counting both days. How many calendar days is that?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2021, 11, 13) # datetime.date(2021, 11, 13)
last = date(2021, 11, 30) # datetime.date(2021, 11, 30)
days = (last - first... | chat | [
{
"role": "user",
"content": "A trial runs from November 13, 2021 to November 30, 2021, counting both days. How many calendar days is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2021, 11, 13) # datetime.date(2021, 11, 13)\nlast = date(2021, 11... | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0079627 | <|start|><|system|>
You help with homework problems.<|eot|>
<|user|>
A claim accrued on June 9, 2024. The limitations period is 4 years. On what date does it expire?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2024, 6, 9) # datetime.date(2024, 6, 9)
years = 4
expires = accrued.replace(year=... | chat | [
{
"role": "system",
"content": "You help with homework problems."
},
{
"role": "user",
"content": "A claim accrued on June 9, 2024. The limitations period is 4 years. On what date does it expire?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrued = d... | nlprog_det | setting | original | null | deterministic | [] | [] | 165 | {"gold": "2028-06-09", "printed": "2028-06-09", "notation": null} |
nlprog_det-setting-0079628 | A court charges $5 per request plus $0.25 per page after the first 20 pages. What does a 111-page copy cost?
The copy costs $27.75. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "27.75", "printed": "27.75", "notation": null} |
nlprog_det-setting-0079630 | Diego was born on October 8, 1963. How old is Diego on November 4, 2022? The age is 59 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "59", "printed": "59", "notation": null} |
nlprog_det-setting-0079631 | On which weekday does October 1, 1991 fall?
The computation:
```python
from datetime import date
hearing = date(1991, 10, 1) # datetime.date(1991, 10, 1)
print(hearing.strftime("%A"))
```
It prints Tuesday.
It is a Tuesday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "Tuesday", "printed": "Tuesday", "notation": null} |
nlprog_det-setting-0079632 | <|start|><|system|>
You have access to these functions:
[{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}, {"name": "calculator", "description": "Python sandbox for calculations. Returns printed text... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}, {\"name\": \"calculator\", \"description\... | nlprog_det | setting | original | null | deterministic | [] | [] | 340 | {"gold": "2025-06-27", "printed": "2025-06-27", "notation": null} |
nlprog_det-setting-0079633 | How much sales tax is charged on a $518.25 purchase at 5%?
Here is the program.
```python
price = 518.25
tax_rate = 5 / 100 # 0.05
tax = price * tax_rate # 25.9125
print(f"{tax:.2f}")
```
# out: 25.91
$25.91 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "25.91", "printed": "25.91", "notation": null} |
nlprog_det-setting-0079634 | <|start|><|user|>
A lease runs for 36 months at $975 per month. How much rent is paid over the whole term?<|eot|>
<|assistant|>
```python
monthly_rent = 975
months = 36
total = monthly_rent * months # 35100
print(total)
```
Run it and it prints 35100.
The rent over the term is $35,100.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lease runs for 36 months at $975 per month. How much rent is paid over the whole term?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 975\nmonths = 36\ntotal = monthly_rent * months # 35100\nprint(total)\n```\nRun it and it prints 35100.\n\nThe ... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "35100", "printed": "35100", "notation": null} |
nlprog_det-setting-0079635 | <|start|><|user|>
How long, in days, is it from March 26, 2023 until March 24, 2024?<|eot|>
<|assistant|>
from datetime import date
first = date(2023, 3, 26) # datetime.date(2023, 3, 26)
second = date(2024, 3, 24) # datetime.date(2024, 3, 24)
print((second - first).days)
stdout — 364
It is 364 days.<... | chat | [
{
"role": "user",
"content": "How long, in days, is it from March 26, 2023 until March 24, 2024?"
},
{
"role": "assistant",
"content": " from datetime import date\n first = date(2023, 3, 26) # datetime.date(2023, 3, 26)\n second = date(2024, 3, 24) # datetime.date(2024, 3, 24)\n pr... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "364", "printed": "364", "notation": null} |
nlprog_det-setting-0079636 | 97 copies of a 59-page packet are printed at $0.12 per page. What is the cost?
The computation:
```python
pages = 59
copies = 97
cost_per_page = 0.12
cost = pages * copies * cost_per_page # 686.76
print(f"{cost:.2f}")
```
Shell output — 686.76
Printing costs $686.76. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "686.76", "printed": "686.76", "notation": null} |
nlprog_det-setting-0079637 | A measure needs at least 67% of 38 votes. How many votes is that, rounded up?
We write it as a program:
import math
voters = 38
needed = math.ceil(voters * 67 / 100) # 26
print(needed)
That prints 26.
26 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0079638 | Convert 7.5 km to meters.
Coded up:
```python
km = 7.5
meters = km * 1000 # 7500.0
print(round(meters))
```
The program prints: 7500
7,500 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "7500", "printed": "7500", "notation": null} |
nlprog_det-setting-0079639 | A 4% increase is applied to $1,500 monthly rent. What is the new amount?
Let's compute it with Python.
```python
rent = 1500
increase = 4 / 100 # 0.04
new_rent = rent * (1 + increase) # 1560.0
print(f"{new_rent:.2f}")
```
The script prints 1560.00.
The new rent is $1,560.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "1560.00", "printed": "1560.00", "notation": null} |
nlprog_det-setting-0079640 | Someone born March 6, 1970 turns how old by February 21, 2030? Give the age in whole years.
The age is 59 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "59", "printed": "59", "notation": null} |
nlprog_det-setting-0079641 | <|start|><|user|>
Scale 150 g of flour from 4 servings to 6 servings.<|eot|>
<|assistant|>
```python
grams = 150
serves = 4
needed_for = 6
scaled = grams * needed_for // serves # 225
print(scaled)
```
Output:
225
225 grams of flour are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Scale 150 g of flour from 4 servings to 6 servings."
},
{
"role": "assistant",
"content": "```python\ngrams = 150\nserves = 4\nneeded_for = 6\nscaled = grams * needed_for // serves # 225\nprint(scaled)\n```\nOutput:\n225\n\n225 grams of flour are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "225", "printed": "225", "notation": null} |
nlprog_det-setting-0079642 | Counting only Monday through Friday, how many business days are there after March 16, 2028 through April 13, 2028?
As a program:
```python
from datetime import date, timedelta
start = date(2028, 3, 16)
end = date(2028, 4, 13)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekd... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 157 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0079643 | <|start|><|user|>
How many of 142 votes make 67% (round up)?<|eot|>
<|assistant|>
At least 96 votes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many of 142 votes make 67% (round up)?"
},
{
"role": "assistant",
"content": "At least 96 votes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "96", "printed": "96", "notation": null} |
nlprog_det-setting-0079644 | <|start|><|system|>
You are a logic tutor.<|eot|>
<|user|>
A clerk's office charges $150 for each filing. Amir submits 11 filings. What is the total fee?<|eot|>
<|assistant|>
```python
fee = 150
filings = 11
total = fee * filings # 1650
print(total)
```
The code prints 1650.
$1,650 in filing fees.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a logic tutor."
},
{
"role": "user",
"content": "A clerk's office charges $150 for each filing. Amir submits 11 filings. What is the total fee?"
},
{
"role": "assistant",
"content": "```python\nfee = 150\nfilings = 11\ntotal = fee * filings # ... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "1650", "printed": "1650", "notation": null} |
nlprog_det-setting-0079645 | <|start|><|user|>
If a 2-year limitations period starts on August 25, 2014, when does it end?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2014, 8, 25) # datetime.date(2014, 8, 25)
years = 2
expires = accrued.replace(year=accrued.year + years) # datetime.date(2016, 8, 25)
print(expires.isof... | chat | [
{
"role": "user",
"content": "If a 2-year limitations period starts on August 25, 2014, when does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrued = date(2014, 8, 25) # datetime.date(2014, 8, 25)\nyears = 2\nexpires = accrued.replace(year=accrued.year... | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "2016-08-25", "printed": "2016-08-25", "notation": null} |
nlprog_det-setting-0079646 | <|start|><|system|>
You help with homework problems.<|eot|>
<|user|>
Convert 4 h 44 min (the length of a hearing) to minutes.<|eot|>
<|assistant|>
```python
hours = 4
minutes = 44
total_minutes = hours * 60 + minutes
print(total_minutes)
```
(Result: 284)
The hearing lasted 284 minutes.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help with homework problems."
},
{
"role": "user",
"content": "Convert 4 h 44 min (the length of a hearing) to minutes."
},
{
"role": "assistant",
"content": "```python\nhours = 4\nminutes = 44\ntotal_minutes = hours * 60 + minutes\nprint(total_min... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "284", "printed": "284", "notation": null} |
nlprog_det-setting-0079647 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "fetch_fili... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 328 | {"gold": "397", "printed": "397", "notation": null} |
nlprog_det-setting-0079648 | <|start|><|system|>
You may call the tools below.
{"name": "interpreter", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|>
<|user|>
How many units at $20 ea... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n{\"name\": \"interpreter\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": ... | nlprog_det | setting | original | null | deterministic | [] | [] | 225 | {"gold": "1500", "printed": "1500", "notation": null} |
nlprog_det-setting-0079649 | <|start|><|system|>
Be exact with numbers.<|eot|>
<|user|>
Wanjiru earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 53-hour week?<|eot|>
<|assistant|>
```python
rate = 18.5
hours = 53
regular = 40 * rate # 740.0
overtime = (hours - 40) * rate * 1.5 # 360.75
pay = regular + overtime #... | chat | [
{
"role": "system",
"content": "Be exact with numbers."
},
{
"role": "user",
"content": "Wanjiru earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 53-hour week?"
},
{
"role": "assistant",
"content": "```python\nrate = 18.5\nhours = 53\nregular = 40 * r... | nlprog_det | setting | original | null | deterministic | [] | [] | 152 | {"gold": "1100.75", "printed": "1100.75", "notation": null} |
nlprog_det-setting-0079650 | <|start|><|user|>
Counting only Monday through Friday, how many business days are there after May 7, 2026 through May 31, 2026?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2026, 5, 7)
end = date(2026, 5, 31)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timede... | chat | [
{
"role": "user",
"content": "Counting only Monday through Friday, how many business days are there after May 7, 2026 through May 31, 2026?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2026, 5, 7)\nend = date(2026, 5, 31)\ncount = 0\nfor k ... | nlprog_det | setting | original | null | deterministic | [] | [] | 159 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0079651 | <|start|><|user|>
What average speed covers 240 miles in 4 hours?<|eot|>
<|assistant|>
```python
distance = 240
hours = 4
speed = distance / hours # 60.0
print(round(speed))
```
Executing it gives 60.
It averages 60 miles per hour.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What average speed covers 240 miles in 4 hours?"
},
{
"role": "assistant",
"content": "```python\ndistance = 240\nhours = 4\nspeed = distance / hours # 60.0\nprint(round(speed))\n```\nExecuting it gives 60.\n\nIt averages 60 miles per hour."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "60", "printed": "60", "notation": null} |
nlprog_det-setting-0079653 | Sales went from 2,500 to 2,375. What is the percent change? The change is -5%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "-5", "printed": "-5", "notation": null} |
nlprog_det-setting-0079654 | Monthly rent is $900. A tenant moves in with 15 days left in a 31-day month. What is the prorated rent?
A short script:
```python
rent = 900
days_in_month = 31
days_occupied = 15
prorated = rent * days_occupied / days_in_month # 435.48387096774195
print(f"{prorated:.2f}")
```
(Printed: 435.48)
The prorated rent is $... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "435.48", "printed": "435.48", "notation": null} |
nlprog_det-setting-0079655 | <|start|><|user|>
Scale 150 g of pasta from 2 servings to 12 servings.<|eot|>
<|assistant|>
grams = 150
serves = 2
needed_for = 12
scaled = grams * needed_for // serves # 900
print(scaled)
# out: 900
900 grams of pasta are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Scale 150 g of pasta from 2 servings to 12 servings."
},
{
"role": "assistant",
"content": " grams = 150\n serves = 2\n needed_for = 12\n scaled = grams * needed_for // serves # 900\n print(scaled)\n# out: 900\n\n900 grams of pasta are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0079656 | Buying 5 scissors at $14 each, 6 sticky pads at $25 each, someone hands over $250. What change comes back?
Code:
```python
items = [(5, 14), (6, 25)]
total = sum(q * p for q, p in items) # 220
paid = 250
change = paid - total # 30
print(change)
```
Running this gives 30.
$30 comes back. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0079657 | <|start|><|user|>
Monthly rent is $900. A tenant moves in with 18 days left in a 30-day month. What is the prorated rent?<|eot|>
<|assistant|>
rent = 900
days_in_month = 30
days_occupied = 18
prorated = rent * days_occupied / days_in_month # 540.0
print(f"{prorated:.2f}")
What it prints: 540.00
Th... | chat | [
{
"role": "user",
"content": "Monthly rent is $900. A tenant moves in with 18 days left in a 30-day month. What is the prorated rent?"
},
{
"role": "assistant",
"content": " rent = 900\n days_in_month = 30\n days_occupied = 18\n prorated = rent * days_occupied / days_in_month # 540.... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "540.00", "printed": "540.00", "notation": null} |
nlprog_det-setting-0079658 | <|start|><|user|>
At a 9% tax rate, what is the tax on $662.46?<|eot|>
<|assistant|>
price = 662.46
tax_rate = 9 / 100 # 0.09
tax = price * tax_rate # 59.6214
print(f"{tax:.2f}")
Out: 59.62
The tax is $59.62.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At a 9% tax rate, what is the tax on $662.46?"
},
{
"role": "assistant",
"content": " price = 662.46\n tax_rate = 9 / 100 # 0.09\n tax = price * tax_rate # 59.6214\n print(f\"{tax:.2f}\")\nOut: 59.62\n\nThe tax is $59.62."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "59.62", "printed": "59.62", "notation": null} |
nlprog_det-setting-0079659 | <|start|><|user|>
At 45 miles per hour, how many minutes does a 240-mile trip take?<|eot|>
<|assistant|>
```python
distance = 240
speed = 45
minutes = distance / speed * 60 # 320.0
print(round(minutes))
```
What it prints — 320
320 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At 45 miles per hour, how many minutes does a 240-mile trip take?"
},
{
"role": "assistant",
"content": "```python\ndistance = 240\nspeed = 45\nminutes = distance / speed * 60 # 320.0\nprint(round(minutes))\n```\nWhat it prints — 320\n\n320 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "320", "printed": "320", "notation": null} |
nlprog_det-setting-0079660 | Printing costs 10 cents a page. What does it cost to print 182 copies of a 47-page handout?
Let the code do the arithmetic:
```python
pages = 47
copies = 182
cost_per_page = 0.1
cost = pages * copies * cost_per_page # 855.4000000000001
print(f"{cost:.2f}")
```
Python prints 855.40.
The job costs $855.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "855.40", "printed": "855.40", "notation": null} |
nlprog_det-setting-0079661 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"name": "calc", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}
{"name": "lookup_s... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"calc\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source co... | nlprog_det | setting | original | null | deterministic | [] | [] | 299 | {"gold": "45.26", "printed": "45.26", "notation": null} |
nlprog_det-setting-0079662 | <|start|><|user|>
A trial runs from September 8, 2026 to September 13, 2026, counting both days. How many calendar days is that?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2026, 9, 8) # datetime.date(2026, 9, 8)
last = date(2026, 9, 13) # datetime.date(2026, 9, 13)
days = (last - first).day... | chat | [
{
"role": "user",
"content": "A trial runs from September 8, 2026 to September 13, 2026, counting both days. How many calendar days is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2026, 9, 8) # datetime.date(2026, 9, 8)\nlast = date(2026, 9, 13... | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0079663 | What commission does Chen make on $23,517 in sales at 10%? The commission is $2,351.70. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "2351.70", "printed": "2351.70", "notation": null} |
nlprog_det-setting-0079664 | A deposition lasted 4 hours and 48 minutes. How many minutes is that?
We can compute it in Python.
```python
hours = 4
minutes = 48
total_minutes = hours * 60 + minutes # 288
print(total_minutes)
```
Printed result — 288
That is 288 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "288", "printed": "288", "notation": null} |
nlprog_det-setting-0079665 | <|start|><|system|>
Answer accurately and briefly.<|eot|>
<|user|>
Counting the first and last day, how many days are there from September 21, 2018 through October 4, 2018?<|eot|>
<|assistant|>
14 calendar days.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer accurately and briefly."
},
{
"role": "user",
"content": "Counting the first and last day, how many days are there from September 21, 2018 through October 4, 2018?"
},
{
"role": "assistant",
"content": "14 calendar days."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 49 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0079666 | How many whole days and leftover hours are in 293 hours?
293 hours is 12 days and 5 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 28 | {"gold": "12 days and 5 hours", "printed": "12 days and 5 hours", "notation": null} |
nlprog_det-setting-0079667 | Someone works 20 hours at $23.52 per hour. What are the earnings?
A short script:
rate = 23.52
hours = 20
earnings = rate * hours
print(f"{earnings:.2f}")
Interpreter output: 470.40
The pay is $470.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "470.40", "printed": "470.40", "notation": null} |
nlprog_det-setting-0079668 | <|start|><|user|>
At $18.96 an hour, what does 12 hours of work pay?<|eot|>
<|assistant|>
```python
rate = 18.96
hours = 12
earnings = rate * hours # 227.52
print(f"{earnings:.2f}")
```
# printed: 227.52
That earns $227.52.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $18.96 an hour, what does 12 hours of work pay?"
},
{
"role": "assistant",
"content": "```python\nrate = 18.96\nhours = 12\nearnings = rate * hours # 227.52\nprint(f\"{earnings:.2f}\")\n```\n# printed: 227.52\n\nThat earns $227.52."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "227.52", "printed": "227.52", "notation": null} |
nlprog_det-setting-0079669 | To read 418 pages in 11 days, how many pages per day are needed?
Script:
pages = 418
days = 11
per_day = pages // days # 38
print(per_day)
Printed = 38
38 pages a day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 65 | {"gold": "38", "printed": "38", "notation": null} |
nlprog_det-setting-0079671 | Tariq earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 48-hour week?
We write it as a program:
```python
rate = 18.5
hours = 48
regular = 40 * rate # 740.0
overtime = (hours - 40) * rate * 1.5 # 222.0
pay = regular + overtime # 962.0
print(f"{pay:.2f}")
```
Run result = 962.00
The ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "962.00", "printed": "962.00", "notation": null} |
nlprog_det-setting-0079672 | <|start|><|system|>
You are a study helper for students.<|eot|>
<|user|>
How many units at $30 each (variable cost $24) cover $4,000 of fixed costs?<|eot|>
<|assistant|>
```python
import math
fixed = 4000
price = 30
variable = 24
units = math.ceil(fixed / (price - variable)) # 667
print(units)
```
On running, it outpu... | chat | [
{
"role": "system",
"content": "You are a study helper for students."
},
{
"role": "user",
"content": "How many units at $30 each (variable cost $24) cover $4,000 of fixed costs?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 4000\nprice = 30\nvariable = 24\nu... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "667", "printed": "667", "notation": null} |
nlprog_det-setting-0079673 | An invoice lists 7 sticky pads at $15 each, plus 8% sales tax. What is the invoice total?
Computing it:
```python
quantity = 7
unit_price = 15
subtotal = quantity * unit_price
total = subtotal * (1 + 8 / 100)
print(f"{total:.2f}")
```
When run, it prints 113.40.
The invoice total is $113.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "113.40", "printed": "113.40", "notation": null} |
nlprog_det-setting-0079675 | <|start|><|user|>
Divide 147 items among 4 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|>
<|assistant|>
```python
total = 147
groups = 4
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
(Result: 36 each, 3 left over)
The... | chat | [
{
"role": "user",
"content": "Divide 147 items among 4 groups as evenly as possible with equal groups. How many per group, and how many remain?"
},
{
"role": "assistant",
"content": "```python\ntotal = 147\ngroups = 4\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {rem... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "36 each, 3 left over", "printed": "36 each, 3 left over", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.