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-0054527 | <|start|><|user|>
A 19 × 6 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?<|eot|>
<|assistant|>
```python
import math
length = 19
width = 6
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 29
print(tiles)
```
(Console output: 29)
It takes 29 tiles.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 19 × 6 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 19\nwidth = 6\ntile = 2\ntiles = math.ceil(length * width / (tile * tile)) # 29\nprint(tiles)\n```\n(Console out... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "29", "printed": "29", "notation": null} |
nlprog_det-setting-0054528 | <|start|><|system|>
You have access to these functions:
{"name": "calculator", "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"]}}<|eot|>
<|user|>
A co... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"calculator\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code... | nlprog_det | setting | original | null | deterministic | [] | [] | 208 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0054529 | At a 4% tax rate, what is the tax on $484.96?
Coded up:
```python
price = 484.96
tax_rate = 4 / 100 # 0.04
tax = price * tax_rate # 19.3984
print(f"{tax:.2f}")
```
What it prints: 19.40
The tax is $19.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "19.40", "printed": "19.40", "notation": null} |
nlprog_det-setting-0054530 | <|start|><|user|>
If a 105-minute meeting begins at 10:15 AM, what time does it finish?<|eot|>
<|assistant|>
The meeting finishes at 12:00 PM.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "If a 105-minute meeting begins at 10:15 AM, what time does it finish?"
},
{
"role": "assistant",
"content": "The meeting finishes at 12:00 PM."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "12:00 PM", "printed": "12:00 PM", "notation": null} |
nlprog_det-setting-0054531 | At $0.65 per mile, what is the reimbursement for 333 miles?
Program:
```python
miles = 333
rate = 0.65
reimbursement = miles * rate # 216.45000000000002
print(f"{reimbursement:.2f}")
```
(Run result: 216.45)
The reimbursement is $216.45. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "216.45", "printed": "216.45", "notation": null} |
nlprog_det-setting-0054532 | At 1.5% a month (simple), what interest builds on $7,500 over 4 months?
```python
balance = 7500
monthly_rate = 1.5 / 100 # 0.015
months = 4
interest = balance * monthly_rate * months # 450.0
print(f"{interest:.2f}")
```
The printout reads: 450.00
The interest is $450.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "450.00", "printed": "450.00", "notation": null} |
nlprog_det-setting-0054533 | <|start|><|user|>
A water bill is $15 plus $4.20 per thousand gallons beyond the first 0 thousand. What is the bill for 4 thousand gallons?<|eot|>
<|assistant|>
```python
base = 15
rate = 4.2
used = 4
free = 0
bill = base + rate * max(0, used - free) # 31.8
print(f"{bill:.2f}")
```
Printed = 31.80
The bill is $31.80.... | chat | [
{
"role": "user",
"content": "A water bill is $15 plus $4.20 per thousand gallons beyond the first 0 thousand. What is the bill for 4 thousand gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 15\nrate = 4.2\nused = 4\nfree = 0\nbill = base + rate * max(0, used - free) # 31.8\np... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "31.80", "printed": "31.80", "notation": null} |
nlprog_det-setting-0054534 | Sales went from 2,000 to 2,300. What is the percent change?
In Python:
```python
old = 2000
new = 2300
change = (new - old) / old * 100 # 15.0
print(round(change))
```
On running, it outputs 15.
It changed by 15%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0054535 | <|start|><|user|>
An unpaid balance of $1,000 accrues 2% simple interest per month. How much interest accrues in 4 months?<|eot|>
<|assistant|>
The interest is $80.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An unpaid balance of $1,000 accrues 2% simple interest per month. How much interest accrues in 4 months?"
},
{
"role": "assistant",
"content": "The interest is $80.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "80.00", "printed": "80.00", "notation": null} |
nlprog_det-setting-0054536 | <|start|><|user|>
A training session lasted 5 hours and 20 minutes. How many minutes is that?<|eot|>
<|assistant|>
That is 320 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A training session lasted 5 hours and 20 minutes. How many minutes is that?"
},
{
"role": "assistant",
"content": "That is 320 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "320", "printed": "320", "notation": null} |
nlprog_det-setting-0054537 | On which weekday does August 10, 2013 fall?
It is a Saturday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 21 | {"gold": "Saturday", "printed": "Saturday", "notation": null} |
nlprog_det-setting-0054538 | 3 bike rides at 250 calories each burn how many calories in total? 750 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "750", "printed": "750", "notation": null} |
nlprog_det-setting-0054539 | Revenue is $8,000 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)?
A Python solution:
revenue = 8000
costs = 4000
profit = revenue - costs # 4000
margin = profit / revenue * 100 # 50.0
print(round(margin, 1))
# stdout: 50.0
The margin is 50.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "50.0", "printed": "50.0", "notation": null} |
nlprog_det-setting-0054540 | 3 friends split a $180 bill plus a 20% tip evenly. How much does each pay?
Let's compute it with Python.
```python
bill = 180
tip_rate = 20 / 100 # 0.2
people = 3
each = bill * (1 + tip_rate) / people # 72.0
print(f"{each:.2f}")
```
stdout = 72.00
Each person pays $72.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "72.00", "printed": "72.00", "notation": null} |
nlprog_det-setting-0054541 | Walls total 556 sq ft and each can covers 400 sq ft. How many cans should be bought?
In code:
```python
import math
area = 556
coverage = 400
cans = math.ceil(area / coverage) # 2
print(cans)
```
(Output: 2)
2 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0054543 | Convert 1 h 51 min (the length of a deposition) to minutes.
Here is a short program for it.
hours = 1
minutes = 51
total_minutes = hours * 60 + minutes
print(total_minutes)
Run result = 111
That is 111 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 68 | {"gold": "111", "printed": "111", "notation": null} |
nlprog_det-setting-0054544 | <|start|><|user|>
Under a 35% contingency agreement, what fee is owed on a $12,000 award?<|eot|>
<|assistant|>
```python
recovery = 12000
rate = 35 / 100 # 0.35
fee = recovery * rate # 4200.0
print(f"{fee:.2f}")
```
Out — 4200.00
The fee is $4,200.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Under a 35% contingency agreement, what fee is owed on a $12,000 award?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 12000\nrate = 35 / 100 # 0.35\nfee = recovery * rate # 4200.0\nprint(f\"{fee:.2f}\")\n```\nOut — 4200.00\n\nThe fee is $4,200.00."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "4200.00", "printed": "4200.00", "notation": null} |
nlprog_det-setting-0054545 | <|start|><|user|>
After a 40% fee is taken from a $72,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|>
<|assistant|>
```python
award = 72000
fee = award * 40 / 100 # 28800.0
remaining = award - fee # 43200.0
per_client = remaining / 4 # 10800.0
print(f"{per_client:.2f}")... | chat | [
{
"role": "user",
"content": "After a 40% fee is taken from a $72,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?"
},
{
"role": "assistant",
"content": "```python\naward = 72000\nfee = award * 40 / 100 # 28800.0\nremaining = award - fee # 43200.0\nper_cl... | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "10800.00", "printed": "10800.00", "notation": null} |
nlprog_det-setting-0054546 | At an exchange rate of 1.12 CAD per USD, how many CAD is 7,967 USD?
Coded up:
```python
amount = 7967
rate = 1.12
converted = amount * rate # 8923.04
print(f"{converted:.2f}")
```
The program outputs: 8923.04
It converts to 8,923.04 CAD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "8923.04", "printed": "8923.04", "notation": null} |
nlprog_det-setting-0054547 | <|start|><|user|>
At $0.62 per mile, what is the reimbursement for 360 miles?<|eot|>
<|assistant|>
```python
miles = 360
rate = 0.62
reimbursement = miles * rate # 223.2
print(f"{reimbursement:.2f}")
```
# execution result: 223.20
The reimbursement is $223.20.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $0.62 per mile, what is the reimbursement for 360 miles?"
},
{
"role": "assistant",
"content": "```python\nmiles = 360\nrate = 0.62\nreimbursement = miles * rate # 223.2\nprint(f\"{reimbursement:.2f}\")\n```\n# execution result: 223.20\n\nThe reimbursement is $2... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "223.20", "printed": "223.20", "notation": null} |
nlprog_det-setting-0054548 | <|start|><|system|>
You are a careful assistant.<|eot|>
<|user|>
Lucia's scores were 87, 53, 93 and 59. What is the average score?<|eot|>
<|assistant|>
```python
scores = [87, 53, 93, 59]
average = sum(scores) // len(scores) # 73
print(average)
```
stdout:
73
The mean is 73.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a careful assistant."
},
{
"role": "user",
"content": "Lucia's scores were 87, 53, 93 and 59. What is the average score?"
},
{
"role": "assistant",
"content": "```python\nscores = [87, 53, 93, 59]\naverage = sum(scores) // len(scores) # 73\npr... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "73", "printed": "73", "notation": null} |
nlprog_det-setting-0054549 | A 18-month warranty starts on January 18, 2028. On what date does it end?
Programmatically:
```python
from datetime import date
start = date(2028, 1, 18)
months = 18
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
Result = ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "2029-07-18", "printed": "2029-07-18", "notation": null} |
nlprog_det-setting-0054550 | <|start|><|user|>
How many meters are in 16.6 kilometers?<|eot|>
<|assistant|>
```python
km = 16.6
meters = km * 1000 # 16600.0
print(round(meters))
```
Running this gives 16600.
That is 16,600 meters.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many meters are in 16.6 kilometers?"
},
{
"role": "assistant",
"content": "```python\nkm = 16.6\nmeters = km * 1000 # 16600.0\nprint(round(meters))\n```\nRunning this gives 16600.\n\nThat is 16,600 meters."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "16600", "printed": "16600", "notation": null} |
nlprog_det-setting-0054551 | A customer buys 2 badges at $30 each, 3 file boxes at $27 each, 6 badges at $16 each and pays with $250. How much change is due?
Computation in Python:
```python
items = [(2, 30), (3, 27), (6, 16)]
total = sum(q * p for q, p in items) # 237
paid = 250
change = paid - total # 13
print(change)
```
stdout — 13
$13 com... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0054552 | <|start|><|user|>
3 boxes hold 24 notebooks each. After 14 are handed out, how many are left?<|eot|>
<|assistant|>
58 notebooks are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "3 boxes hold 24 notebooks each. After 14 are handed out, how many are left?"
},
{
"role": "assistant",
"content": "58 notebooks are left."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "58", "printed": "58", "notation": null} |
nlprog_det-setting-0054553 | <|start|><|user|>
A trial runs from May 8, 2018 to May 26, 2018, counting both days. How many calendar days is that?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2018, 5, 8)
last = date(2018, 5, 26)
days = (last - first).days + 1
print(days)
```
Execution prints: 19
That is 19 days.<|eot|>
<|e... | chat | [
{
"role": "user",
"content": "A trial runs from May 8, 2018 to May 26, 2018, counting both days. How many calendar days is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2018, 5, 8)\nlast = date(2018, 5, 26)\ndays = (last - first).days + 1\nprint(... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0054554 | A meeting starts at 2:40 PM and lasts 75 minutes. When does it end?
Python makes this quick:
```python
start = 14 * 60 + 40
end = start + 75
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
It outputs 3:55 PM.
It ends at 3:55 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "3:55 PM", "printed": "3:55 PM", "notation": null} |
nlprog_det-setting-0054556 | 126 copies of a 30-page packet are printed at $0.10 per page. What is the cost?
Coded up:
```python
pages = 30
copies = 126
cost_per_page = 0.1
cost = pages * copies * cost_per_page # 378.0
print(f"{cost:.2f}")
```
Console output: 378.00
The job costs $378.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "378.00", "printed": "378.00", "notation": null} |
nlprog_det-setting-0054557 | From 1991 to 2028, how many years is that?
Computation in Python:
start_year = 1991
end_year = 2028
print(end_year - start_year)
# result: 37
That is 37 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 61 | {"gold": "37", "printed": "37", "notation": null} |
nlprog_det-setting-0054558 | Counting the first and last day, how many days are there from January 13, 2027 through January 16, 2027?
from datetime import date
first = date(2027, 1, 13)
last = date(2027, 1, 16)
days = (last - first).days + 1
print(days)
Printed result — 4
That is 4 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0054559 | <|start|><|system|>
You may call the tools below.
{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}
{"name": "translate", "description": "Translate text into another language.", "parameters": {"ty... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}\n{\"name\": \"translate\", \"description\": \... | nlprog_det | setting | original | null | deterministic | [] | [] | 352 | {"gold": "41", "printed": "41", "notation": null} |
nlprog_det-setting-0054561 | A 322-page report must be reviewed in 14 days. How many pages a day is that, evenly?
Script:
```python
pages = 322
days = 14
per_day = pages // days # 23
print(per_day)
```
# console output: 23
That is 23 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0054562 | A 90-mile drive at a steady 45 mph takes how many minutes?
Computing it:
distance = 90
speed = 45
minutes = distance / speed * 60 # 120.0
print(round(minutes))
The printout reads 120.
120 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 67 | {"gold": "120", "printed": "120", "notation": null} |
nlprog_det-setting-0054563 | A water bill is $20 plus $5.10 per thousand gallons beyond the first 0 thousand. What is the bill for 22 thousand gallons?
Let's compute it with Python.
```python
base = 20
rate = 5.1
used = 22
free = 0
bill = base + rate * max(0, used - free) # 132.2
print(f"{bill:.2f}")
```
Out:
132.20
$132.20 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "132.20", "printed": "132.20", "notation": null} |
nlprog_det-setting-0054564 | <|start|><|user|>
A $800 security deposit has deductions of $75, $75 and $45. How much is refunded?<|eot|>
<|assistant|>
deposit = 800
deductions = [75, 75, 45]
refund = deposit - sum(deductions) # 605
print(refund)
Executing it gives 605, as expected.
The refund is $605.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A $800 security deposit has deductions of $75, $75 and $45. How much is refunded?"
},
{
"role": "assistant",
"content": " deposit = 800\n deductions = [75, 75, 45]\n refund = deposit - sum(deductions) # 605\n print(refund)\nExecuting it gives 605, as ex... | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "605", "printed": "605", "notation": null} |
nlprog_det-setting-0054565 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
How m... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}... | nlprog_det | setting | original | null | deterministic | [] | [] | 238 | {"gold": "625", "printed": "625", "notation": null} |
nlprog_det-setting-0054566 | <|start|><|user|>
How long, in days, is it from March 10, 2022 until April 10, 2023?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2022, 3, 10)
second = date(2023, 4, 10)
print((second - first).days)
```
Running this gives 396.
There are 396 days between the two dates.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How long, in days, is it from March 10, 2022 until April 10, 2023?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2022, 3, 10)\nsecond = date(2023, 4, 10)\nprint((second - first).days)\n```\nRunning this gives 396.\n\nThere... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "396", "printed": "396", "notation": null} |
nlprog_det-setting-0054567 | <|start|><|user|>
A claim accrued on November 10, 2024. The limitations period is 5 years. On what date does it expire?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2024, 11, 10) # datetime.date(2024, 11, 10)
years = 5
expires = accrued.replace(year=accrued.year + years) # datetime.date(202... | chat | [
{
"role": "user",
"content": "A claim accrued on November 10, 2024. The limitations period is 5 years. On what date does it expire?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrued = date(2024, 11, 10) # datetime.date(2024, 11, 10)\nyears = 5\nexpires = accru... | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "2029-11-10", "printed": "2029-11-10", "notation": null} |
nlprog_det-setting-0054568 | Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 42 hours?
The weekly pay is $860.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "860.00", "printed": "860.00", "notation": null} |
nlprog_det-setting-0054569 | <|start|><|user|>
To read 423 pages in 9 days, how many pages per day are needed?<|eot|>
<|assistant|>
```python
pages = 423
days = 9
per_day = pages // days # 47
print(per_day)
```
stdout — 47
47 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "To read 423 pages in 9 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": "```python\npages = 423\ndays = 9\nper_day = pages // days # 47\nprint(per_day)\n```\nstdout — 47\n\n47 pages a day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "47", "printed": "47", "notation": null} |
nlprog_det-setting-0054570 | Monthly rent is $900. A tenant moves in with 23 days left in a 30-day month. What is the prorated rent?
Python, step by step:
```python
rent = 900
days_in_month = 30
days_occupied = 23
prorated = rent * days_occupied / days_in_month # 690.0
print(f"{prorated:.2f}")
```
The program outputs: 690.00
The tenant owes $69... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "690.00", "printed": "690.00", "notation": null} |
nlprog_det-setting-0054571 | Fixed costs are $1,200. Each unit sells for $40 and costs $36 to make. How many units must be sold to break even?
The Python version:
import math
fixed = 1200
price = 40
variable = 36
units = math.ceil(fixed / (price - variable)) # 300
print(units)
# printed result: 300
300 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0054572 | <|start|><|user|>
Counting only Monday through Friday, how many business days are there after October 11, 2023 through November 11, 2023?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2023, 10, 11)
end = date(2023, 11, 11)
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 October 11, 2023 through November 11, 2023?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2023, 10, 11)\nend = date(2023, 11, 11)\ncoun... | nlprog_det | setting | original | null | deterministic | [] | [] | 156 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0054575 | 131 copies of a 15-page packet are printed at $0.10 per page. What is the cost?
Coded up:
```python
pages = 15
copies = 131
cost_per_page = 0.1
cost = pages * copies * cost_per_page # 196.5
print(f"{cost:.2f}")
```
It prints: 196.50
The job costs $196.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "196.50", "printed": "196.50", "notation": null} |
nlprog_det-setting-0054576 | 43 volunteers are split into 5 equal teams. How many are on each team, and how many are left over?
8 each, 3 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "8 each, 3 left over", "printed": "8 each, 3 left over", "notation": null} |
nlprog_det-setting-0054577 | <|start|><|user|>
With $8,000 in costs and $12,000 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|>
<|assistant|>
```python
revenue = 12000
costs = 8000
profit = revenue - costs
margin = profit / revenue * 100
print(round(margin, 1))
```
Python prints 33.3, as expected.
The margin is 33.3%.<... | chat | [
{
"role": "user",
"content": "With $8,000 in costs and $12,000 in revenue, what percent of revenue is profit? Round to one decimal."
},
{
"role": "assistant",
"content": "```python\nrevenue = 12000\ncosts = 8000\nprofit = revenue - costs\nmargin = profit / revenue * 100\nprint(round(margin, 1))\... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "33.3", "printed": "33.3", "notation": null} |
nlprog_det-setting-0054578 | Find the mean of these test scores: 62, 75 and 58.
One way, in code:
```python
scores = [62, 75, 58]
average = sum(scores) // len(scores) # 65
print(average)
```
This prints 65, as expected.
The average score is 65. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "65", "printed": "65", "notation": null} |
nlprog_det-setting-0054579 | A pack of 25 chairs sells for $775. What does each cost?
As a program:
```python
total = 775
count = 25
per_item = total // count
print(per_item)
```
That prints 31.
The unit price is $31. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "31", "printed": "31", "notation": null} |
nlprog_det-setting-0054580 | An unpaid balance of $4,000 accrues 1% simple interest per month. How much interest accrues in 6 months?
Python, step by step:
```python
balance = 4000
monthly_rate = 1 / 100 # 0.01
months = 6
interest = balance * monthly_rate * months # 240.0
print(f"{interest:.2f}")
```
On running, it outputs: 240.00
$240.00 accr... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "240.00", "printed": "240.00", "notation": null} |
nlprog_det-setting-0054581 | Monthly rent is $1,200. A tenant moves in with 20 days left in a 30-day month. What is the prorated rent?
Here is a short program for it.
```python
rent = 1200
days_in_month = 30
days_occupied = 20
prorated = rent * days_occupied / days_in_month
print(f"{prorated:.2f}")
```
The program prints 800.00.
The tenant owes ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "800.00", "printed": "800.00", "notation": null} |
nlprog_det-setting-0054583 | One can of paint covers 350 square feet. How many cans are needed for 738 square feet of wall?
Python, step by step:
```python
import math
area = 738
coverage = 350
cans = math.ceil(area / coverage) # 3
print(cans)
```
Run it and it prints 3.
Buy 3 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0054584 | <|start|><|system|>
Show working only when it helps.<|eot|>
<|user|>
What is -10 degrees Celsius in Fahrenheit?<|eot|>
<|assistant|>
celsius = -10
fahrenheit = celsius * 9 / 5 + 32
print(round(fahrenheit))
Out: 14
It equals 14 degrees Fahrenheit.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Show working only when it helps."
},
{
"role": "user",
"content": "What is -10 degrees Celsius in Fahrenheit?"
},
{
"role": "assistant",
"content": " celsius = -10\n fahrenheit = celsius * 9 / 5 + 32\n print(round(fahrenheit))\nOut: 14\n\nIt e... | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0054585 | A 273-page report must be reviewed in 13 days. How many pages a day is that, evenly?
Python code:
```python
pages = 273
days = 13
per_day = pages // days # 21
print(per_day)
```
The script prints 21.
That is 21 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "21", "printed": "21", "notation": null} |
nlprog_det-setting-0054586 | Count the days between September 18, 2026 and August 26, 2027.
Let the code do the arithmetic:
from datetime import date
first = date(2026, 9, 18) # datetime.date(2026, 9, 18)
second = date(2027, 8, 26) # datetime.date(2027, 8, 26)
print((second - first).days)
That prints: 342
It is 342 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "342", "printed": "342", "notation": null} |
nlprog_det-setting-0054587 | A 45-mile drive at a steady 45 mph takes how many minutes?
As Python:
```python
distance = 45
speed = 45
minutes = distance / speed * 60 # 60.0
print(round(minutes))
```
The run gives: 60
60 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "60", "printed": "60", "notation": null} |
nlprog_det-setting-0054588 | <|start|><|user|>
How long, in days, is it from September 10, 2028 until January 3, 2029?<|eot|>
<|assistant|>
It is 115 days.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How long, in days, is it from September 10, 2028 until January 3, 2029?"
},
{
"role": "assistant",
"content": "It is 115 days."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "115", "printed": "115", "notation": null} |
nlprog_det-setting-0054589 | How many weekdays (Monday to Friday) fall after March 25, 2024 up to and including April 3, 2024?
Let's compute it with Python.
```python
from datetime import date, timedelta
start = date(2024, 3, 25)
end = date(2024, 4, 3)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekday... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 164 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0054592 | At $0.62 per mile, what is the reimbursement for 571 miles? Noor is owed $354.02. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 29 | {"gold": "354.02", "printed": "354.02", "notation": null} |
nlprog_det-setting-0054593 | At 2% a month (simple), what interest builds on $1,000 over 4 months?
Python makes this quick:
```python
balance = 1000
monthly_rate = 2 / 100 # 0.02
months = 4
interest = balance * monthly_rate * months # 80.0
print(f"{interest:.2f}")
```
Running it prints 80.00.
The interest is $80.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "80.00", "printed": "80.00", "notation": null} |
nlprog_det-setting-0054594 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"name": "math_engine", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"math_engine\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \... | nlprog_det | setting | original | null | deterministic | [] | [] | 241 | {"gold": "20.0", "printed": "20.0", "notation": null} |
nlprog_det-setting-0054595 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
{"name": "python", "description": "Runs a short Python snippet and returns what it prints.", "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\": \"python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source c... | nlprog_det | setting | original | null | deterministic | [] | [] | 238 | {"gold": "2026-04-06", "printed": "2026-04-06", "notation": null} |
nlprog_det-setting-0054596 | <|start|><|user|>
A jacket costs $90. It is 30% off. What is the sale price?<|eot|>
<|assistant|>
```python
price = 90
discount = 30 / 100 # 0.3
sale_price = price * (1 - discount) # 62.99999999999999
print(f"{sale_price:.2f}")
```
(Console output: 63.00)
It costs $63.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A jacket costs $90. It is 30% off. What is the sale price?"
},
{
"role": "assistant",
"content": "```python\nprice = 90\ndiscount = 30 / 100 # 0.3\nsale_price = price * (1 - discount) # 62.99999999999999\nprint(f\"{sale_price:.2f}\")\n```\n(Console output: 63.00)\... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "63.00", "printed": "63.00", "notation": null} |
nlprog_det-setting-0054597 | An unpaid balance of $7,500 accrues 2% simple interest per month. How much interest accrues in 3 months?
Python does the arithmetic:
```python
balance = 7500
monthly_rate = 2 / 100 # 0.02
months = 3
interest = balance * monthly_rate * months # 450.0
print(f"{interest:.2f}")
```
(Console output: 450.00)
The interest... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "450.00", "printed": "450.00", "notation": null} |
nlprog_det-setting-0054598 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"name": "sandbox_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}
{"name": "defi... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"sandbox_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python sourc... | nlprog_det | setting | original | null | deterministic | [] | [] | 309 | {"gold": "2205.00", "printed": "2205.00", "notation": null} |
nlprog_det-setting-0054599 | <|start|><|system|>
Tool definitions:
[{"name": "run_python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "translate", "description": "Translat... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"run_python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"co... | nlprog_det | setting | original | null | deterministic | [] | [] | 311 | {"gold": "5000", "printed": "5000", "notation": null} |
nlprog_det-setting-0054600 | How many 2-foot square tiles cover a 11 ft by 12 ft floor (round up)?
Computation in Python:
```python
import math
length = 11
width = 12
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 33
print(tiles)
```
Console output: 33
33 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "33", "printed": "33", "notation": null} |
nlprog_det-setting-0054601 | A $96 dinner bill gets a 18% tip, and 2 people share the cost equally. What is each person's share?
One way, in code:
```python
bill = 96
tip_rate = 18 / 100 # 0.18
people = 2
each = bill * (1 + tip_rate) / people # 56.64
print(f"{each:.2f}")
```
It prints: 56.64
The share is $56.64 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "56.64", "printed": "56.64", "notation": null} |
nlprog_det-setting-0054602 | A $12,000 grant pays $6,000 up front and the rest in 6 equal installments. How large is each installment?
A short script:
```python
grant = 12000
up_front = 6000
installments = 6
each = (grant - up_front) / installments
print(f"{each:.2f}")
```
# run result: 1000.00
Each installment is $1,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "1000.00", "printed": "1000.00", "notation": null} |
nlprog_det-setting-0054603 | At an exchange rate of 1.27 USD per EUR, how many USD is 7,950 EUR?
```python
amount = 7950
rate = 1.27
converted = amount * rate # 10096.5
print(f"{converted:.2f}")
```
Output = 10096.50
It converts to 10,096.50 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "10096.50", "printed": "10096.50", "notation": null} |
nlprog_det-setting-0054604 | <|start|><|user|>
One can of paint covers 400 square feet. How many cans are needed for 1009 square feet of wall?<|eot|>
<|assistant|>
```python
import math
area = 1009
coverage = 400
cans = math.ceil(area / coverage) # 3
print(cans)
```
Run result — 3
Buy 3 cans.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "One can of paint covers 400 square feet. How many cans are needed for 1009 square feet of wall?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 1009\ncoverage = 400\ncans = math.ceil(area / coverage) # 3\nprint(cans)\n```\nRun result — 3\n\nBu... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0054605 | <|start|><|system|>
Tools you may use:
[{"name": "calc", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
A count moves from 2,500 to 2,750. ... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"calc\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]... | nlprog_det | setting | original | null | deterministic | [] | [] | 212 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0054606 | <|start|><|user|>
7 boxes hold 8 notebooks each. After 9 are handed out, how many are left?<|eot|>
<|assistant|>
```python
boxes = 7
per_box = 8
given_away = 9
left = boxes * per_box - given_away
print(left)
```
Out — 47
That leaves 47 notebooks.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "7 boxes hold 8 notebooks each. After 9 are handed out, how many are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 7\nper_box = 8\ngiven_away = 9\nleft = boxes * per_box - given_away\nprint(left)\n```\nOut — 47\n\nThat leaves 47 notebooks."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "47", "printed": "47", "notation": null} |
nlprog_det-setting-0054607 | A court charges $10 per request plus $0.50 per page after the first 0 pages. What does a 89-page copy cost?
One way, in code:
```python
pages = 89
base = 10
per_page = 0.5
free_pages = 0
cost = base + max(0, pages - free_pages) * per_page # 54.5
print(f"{cost:.2f}")
```
The program outputs 54.50.
The copy costs $54.... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "54.50", "printed": "54.50", "notation": null} |
nlprog_det-setting-0054608 | A 8% increase is applied to $1,800 monthly rent. What is the new amount?
It rises to $1,944.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "1944.00", "printed": "1944.00", "notation": null} |
nlprog_det-setting-0054610 | How many meters are in 17.8 kilometers?
A short script:
km = 17.8
meters = km * 1000
print(round(meters))
Result — 17800
17,800 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 59 | {"gold": "17800", "printed": "17800", "notation": null} |
nlprog_det-setting-0054612 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"name": "eval_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|>
<|user... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"eval_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python so... | nlprog_det | setting | original | null | deterministic | [] | [] | 234 | {"gold": "89.60", "printed": "89.60", "notation": null} |
nlprog_det-setting-0054613 | At a 6% tax rate, what is the tax on $587.01?
Python, step by step:
price = 587.01
tax_rate = 6 / 100 # 0.06
tax = price * tax_rate # 35.2206
print(f"{tax:.2f}")
Run it and it prints 35.22.
The tax is $35.22. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "35.22", "printed": "35.22", "notation": null} |
nlprog_det-setting-0054614 | <|start|><|system|>
Tools (call with JSON):
[{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "math_engine", "description": "Executes Python... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\", \"end\"]... | nlprog_det | setting | original | null | deterministic | [] | [] | 292 | {"gold": "201", "printed": "201", "notation": null} |
nlprog_det-setting-0054615 | A library charges $0.50 per book per day late. What is the fine for 1 books that are 6 days late?
Python makes this quick:
per_day = 0.5
days_late = 6
books = 1
fine = per_day * days_late * books # 3.0
print(f"{fine:.2f}")
(Out: 3.00)
The fine is $3.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "3.00", "printed": "3.00", "notation": null} |
nlprog_det-setting-0054616 | What is the total rent on a 18-month lease at $3,250 a month?
Here is the program.
monthly_rent = 3250
months = 18
total = monthly_rent * months # 58500
print(total)
Program output: 58500
In total, $58,500 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "58500", "printed": "58500", "notation": null} |
nlprog_det-setting-0054617 | A 45-day notice period begins on March 7, 2023. On what date does it end?
Here's the code.
```python
from datetime import date, timedelta
start = date(2023, 3, 7) # datetime.date(2023, 3, 7)
end = start + timedelta(days=45) # datetime.date(2023, 4, 21)
print(end.isoformat())
```
Console output — 2023-04-21
It ends ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "2023-04-21", "printed": "2023-04-21", "notation": null} |
nlprog_det-setting-0054618 | <|start|><|user|>
A shift runs from 11:00 AM to 5:30 PM. How long is it in minutes?<|eot|>
<|assistant|>
It is 390 minutes long.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A shift runs from 11:00 AM to 5:30 PM. How long is it in minutes?"
},
{
"role": "assistant",
"content": "It is 390 minutes long."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "390", "printed": "390", "notation": null} |
nlprog_det-setting-0054619 | With 15 rows of 15 chairs and 37 empty chairs, how many chairs are taken?
The program:
```python
rows = 15
per_row = 15
empty = 37
seated = rows * per_row - empty # 188
print(seated)
```
(Console output: 188)
188 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "188", "printed": "188", "notation": null} |
nlprog_det-setting-0054620 | Revenue is $8,500 and costs are $8,000. What is the profit margin as a percent of revenue (one decimal)?
A Python solution:
```python
revenue = 8500
costs = 8000
profit = revenue - costs # 500
margin = profit / revenue * 100 # 5.88235294117647
print(round(margin, 1))
```
It outputs: 5.9
The margin is 5.9%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "5.9", "printed": "5.9", "notation": null} |
nlprog_det-setting-0054621 | <|start|><|user|>
A recipe for 6 people uses 100 grams of pasta. How many grams are needed for 12 people?<|eot|>
<|assistant|>
```python
grams = 100
serves = 6
needed_for = 12
scaled = grams * needed_for // serves # 200
print(scaled)
```
Run result: 200
200 grams of pasta are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A recipe for 6 people uses 100 grams of pasta. How many grams are needed for 12 people?"
},
{
"role": "assistant",
"content": "```python\ngrams = 100\nserves = 6\nneeded_for = 12\nscaled = grams * needed_for // serves # 200\nprint(scaled)\n```\nRun result: 200\n\n2... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "200", "printed": "200", "notation": null} |
nlprog_det-setting-0054622 | How many units at $30 each (variable cost $25) cover $9,000 of fixed costs?
A Python solution:
```python
import math
fixed = 9000
price = 30
variable = 25
units = math.ceil(fixed / (price - variable)) # 1800
print(units)
```
# printed result: 1800
Break-even is 1800 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "1800", "printed": "1800", "notation": null} |
nlprog_det-setting-0054623 | <|start|><|user|>
An invoice lists 34 sticky pads at $6 each, plus 10% sales tax. What is the invoice total?<|eot|>
<|assistant|>
```python
quantity = 34
unit_price = 6
subtotal = quantity * unit_price # 204
total = subtotal * (1 + 10 / 100) # 224.4
print(f"{total:.2f}")
```
Output — 224.40
The total with tax is $22... | chat | [
{
"role": "user",
"content": "An invoice lists 34 sticky pads at $6 each, plus 10% sales tax. What is the invoice total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 34\nunit_price = 6\nsubtotal = quantity * unit_price # 204\ntotal = subtotal * (1 + 10 / 100) # 224.4\nprint(f\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "224.40", "printed": "224.40", "notation": null} |
nlprog_det-setting-0054624 | <|start|><|user|>
Water costs $12 a month plus $5.10 for each 1,000 gallons over 0,000. What is owed for 6,000 gallons?<|eot|>
<|assistant|>
$42.60 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Water costs $12 a month plus $5.10 for each 1,000 gallons over 0,000. What is owed for 6,000 gallons?"
},
{
"role": "assistant",
"content": "$42.60 is owed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 50 | {"gold": "42.60", "printed": "42.60", "notation": null} |
nlprog_det-setting-0054625 | Counting the first and last day, how many days are there from November 11, 2027 through November 25, 2027?
Let's compute it with Python.
```python
from datetime import date
first = date(2027, 11, 11) # datetime.date(2027, 11, 11)
last = date(2027, 11, 25) # datetime.date(2027, 11, 25)
days = (last - first).days + 1 ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0054626 | <|start|><|user|>
A 4% increase is applied to $1,100 monthly rent. What is the new amount?<|eot|>
<|assistant|>
```python
rent = 1100
increase = 4 / 100 # 0.04
new_rent = rent * (1 + increase) # 1144.0
print(f"{new_rent:.2f}")
```
Output = 1144.00
The new rent is $1,144.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 4% increase is applied to $1,100 monthly rent. What is the new amount?"
},
{
"role": "assistant",
"content": "```python\nrent = 1100\nincrease = 4 / 100 # 0.04\nnew_rent = rent * (1 + increase) # 1144.0\nprint(f\"{new_rent:.2f}\")\n```\nOutput = 1144.00\n\nThe n... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "1144.00", "printed": "1144.00", "notation": null} |
nlprog_det-setting-0054627 | <|start|><|system|>
You are an assistant for a small office.<|eot|>
<|user|>
2 friends split a $180 bill plus a 20% tip evenly. How much does each pay?<|eot|>
<|assistant|>
```python
bill = 180
tip_rate = 20 / 100 # 0.2
people = 2
each = bill * (1 + tip_rate) / people # 108.0
print(f"{each:.2f}")
```
Output — 108.00
... | chat | [
{
"role": "system",
"content": "You are an assistant for a small office."
},
{
"role": "user",
"content": "2 friends split a $180 bill plus a 20% tip evenly. How much does each pay?"
},
{
"role": "assistant",
"content": "```python\nbill = 180\ntip_rate = 20 / 100 # 0.2\npeople = 2\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "108.00", "printed": "108.00", "notation": null} |
nlprog_det-setting-0054628 | A deposition lasted 2 hours and 21 minutes. How many minutes is that?
Computation in Python:
```python
hours = 2
minutes = 21
total_minutes = hours * 60 + minutes
print(total_minutes)
```
The code prints: 141
That is 141 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "141", "printed": "141", "notation": null} |
nlprog_det-setting-0054629 | 3 friends split a $150 bill plus a 18% tip evenly. How much does each pay?
In code:
```python
bill = 150
tip_rate = 18 / 100 # 0.18
people = 3
each = bill * (1 + tip_rate) / people # 59.0
print(f"{each:.2f}")
```
When run, it prints 59.00, as expected.
Each person pays $59.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "59.00", "printed": "59.00", "notation": null} |
nlprog_det-setting-0054630 | <|start|><|user|>
At an exchange rate of 1.31 USD per GBP, how many USD is 7,158 GBP?<|eot|>
<|assistant|>
It converts to 9,376.98 USD.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At an exchange rate of 1.31 USD per GBP, how many USD is 7,158 GBP?"
},
{
"role": "assistant",
"content": "It converts to 9,376.98 USD."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 49 | {"gold": "9376.98", "printed": "9376.98", "notation": null} |
nlprog_det-setting-0054631 | What day of the week is March 17, 1997?
```python
from datetime import date
hearing = date(1997, 3, 17) # datetime.date(1997, 3, 17)
print(hearing.strftime("%A"))
```
What it prints: Monday
March 17, 1997 is a Monday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "Monday", "printed": "Monday", "notation": null} |
nlprog_det-setting-0054632 | Notice was given on October 11, 2024. The notice period is 45 days. When does it run out?
That date is November 25, 2024. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "2024-11-25", "printed": "2024-11-25", "notation": null} |
nlprog_det-setting-0054633 | A 36-month warranty starts on November 15, 2027. On what date does it end?
Python code:
```python
from datetime import date
start = date(2027, 11, 15)
months = 36
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
Result — 203... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "2030-11-15", "printed": "2030-11-15", "notation": null} |
nlprog_det-setting-0054634 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}
{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "paramet... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}\n{\"name\": \"fetch_filing\", \"descripti... | nlprog_det | setting | original | null | deterministic | [] | [] | 355 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0054635 | A storeroom has 1978 calendars. The office uses 40 a day. How many are left after 3 days?
The Python version:
stock = 1978
per_day = 40
days = 3
left = stock - per_day * days # 1858
print(left)
Program output: 1858
1858 calendars are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "1858", "printed": "1858", "notation": null} |
nlprog_det-setting-0054636 | At 30 miles per hour, how many minutes does a 135-mile trip take?
Python version:
```python
distance = 135
speed = 30
minutes = distance / speed * 60 # 270.0
print(round(minutes))
```
Printed:
270
The trip takes 270 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "270", "printed": "270", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.