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-0057434 | Equal monthly payments repay $1,200 plus 8% simple yearly interest over 36 months. How large is a payment?
Script:
```python
principal = 1200
annual_rate = 8 / 100 # 0.08
months = 36
interest = principal * annual_rate * months / 12 # 288.0
payment = (principal + interest) / months # 41.333333333333336
print(f"{paym... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "41.33", "printed": "41.33", "notation": null} |
nlprog_det-setting-0057435 | <|start|><|system|>
You are a teaching assistant.<|eot|>
<|user|>
Prorate $1,800 of monthly rent for 19 days of a 30-day month.<|eot|>
<|assistant|>
The prorated rent is $1,140.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a teaching assistant."
},
{
"role": "user",
"content": "Prorate $1,800 of monthly rent for 19 days of a 30-day month."
},
{
"role": "assistant",
"content": "The prorated rent is $1,140.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 54 | {"gold": "1140.00", "printed": "1140.00", "notation": null} |
nlprog_det-setting-0057437 | <|start|><|system|>
You can call tools. Available tools:
{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}
{"name": "convert_units", "description": "Co... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start... | nlprog_det | setting | original | null | deterministic | [] | [] | 452 | {"gold": "1:25 PM", "printed": "1:25 PM", "notation": null} |
nlprog_det-setting-0057438 | Fixed costs are $1,200. Each unit sells for $30 and costs $24 to make. How many units must be sold to break even?
Let's compute it with Python.
import math
fixed = 1200
price = 30
variable = 24
units = math.ceil(fixed / (price - variable)) # 200
print(units)
Out: 200
Break-even is 200 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "200", "printed": "200", "notation": null} |
nlprog_det-setting-0057440 | A 260-mile drive at a steady 40 mph takes how many minutes?
Let's compute it with Python.
```python
distance = 260
speed = 40
minutes = distance / speed * 60 # 390.0
print(round(minutes))
```
Printed result — 390
The trip takes 390 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "390", "printed": "390", "notation": null} |
nlprog_det-setting-0057441 | <|start|><|system|>
You are a teaching assistant.<|eot|>
<|user|>
Straight-line depreciation: cost $30,000, salvage $3,000, 3 years. How much per year?<|eot|>
<|assistant|>
```python
cost = 30000
salvage = 3000
years = 3
per_year = (cost - salvage) / years # 9000.0
print(f"{per_year:.2f}")
```
The run gives 9000.00, a... | chat | [
{
"role": "system",
"content": "You are a teaching assistant."
},
{
"role": "user",
"content": "Straight-line depreciation: cost $30,000, salvage $3,000, 3 years. How much per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 30000\nsalvage = 3000\nyears = 3\nper_year = ... | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "9000.00", "printed": "9000.00", "notation": null} |
nlprog_det-setting-0057442 | <|start|><|user|>
Fines run at $250 per day up to a maximum of $1,000. How much after 29 days?<|eot|>
<|assistant|>
```python
per_day = 250
days = 29
cap = 1000
fine = min(per_day * days, cap) # 1000
print(fine)
```
(Printed: 1000)
$1,000 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Fines run at $250 per day up to a maximum of $1,000. How much after 29 days?"
},
{
"role": "assistant",
"content": "```python\nper_day = 250\ndays = 29\ncap = 1000\nfine = min(per_day * days, cap) # 1000\nprint(fine)\n```\n(Printed: 1000)\n\n$1,000 is owed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0057443 | <|start|><|system|>
Tool definitions:
{"name": "python_exec", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|user|>
Find the mean of these test... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"python_exec\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 217 | {"gold": "71", "printed": "71", "notation": null} |
nlprog_det-setting-0057444 | After a 30% fee is taken from a $60,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?
Computing it:
award = 60000
fee = award * 30 / 100 # 18000.0
remaining = award - fee # 42000.0
per_client = remaining / 2 # 21000.0
print(f"{per_client:.2f}")
# result: 210... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "21000.00", "printed": "21000.00", "notation": null} |
nlprog_det-setting-0057445 | Copies cost $5 plus $0.25 for each page beyond 10. How much for 57 pages?
Programmatically:
pages = 57
base = 5
per_page = 0.25
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 16.75
print(f"{cost:.2f}")
When run, it prints 16.75, as expected.
The copy costs $16.75. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "16.75", "printed": "16.75", "notation": null} |
nlprog_det-setting-0057446 | <|start|><|user|>
What simple interest does $8,000 earn at 6% a year over 4 years?<|eot|>
<|assistant|>
principal = 8000
rate = 6 / 100 # 0.06
years = 4
interest = principal * rate * years # 1920.0
print(f"{interest:.2f}")
On running, it outputs: 1920.00
It earns $1,920.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What simple interest does $8,000 earn at 6% a year over 4 years?"
},
{
"role": "assistant",
"content": " principal = 8000\n rate = 6 / 100 # 0.06\n years = 4\n interest = principal * rate * years # 1920.0\n print(f\"{interest:.2f}\")\nOn running, it... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "1920.00", "printed": "1920.00", "notation": null} |
nlprog_det-setting-0057447 | Counting only Monday through Friday, how many business days are there after November 12, 2024 through December 7, 2024?
Python version:
```python
from datetime import date, timedelta
start = date(2024, 11, 12)
end = date(2024, 12, 7)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 157 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0057448 | <|start|><|user|>
A $150 dinner bill gets a 18% tip, and 4 people share the cost equally. What is each person's share?<|eot|>
<|assistant|>
The share is $44.25 each.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A $150 dinner bill gets a 18% tip, and 4 people share the cost equally. What is each person's share?"
},
{
"role": "assistant",
"content": "The share is $44.25 each."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "44.25", "printed": "44.25", "notation": null} |
nlprog_det-setting-0057449 | <|start|><|user|>
A penalty of $50 a day accrues, capped at $1,000. What is owed after 20 days?<|eot|>
<|assistant|>
$1,000 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A penalty of $50 a day accrues, capped at $1,000. What is owed after 20 days?"
},
{
"role": "assistant",
"content": "$1,000 is owed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0057450 | A trial runs from February 6, 2027 to February 16, 2027, counting both days. How many calendar days is that?
```python
from datetime import date
first = date(2027, 2, 6) # datetime.date(2027, 2, 6)
last = date(2027, 2, 16) # datetime.date(2027, 2, 16)
days = (last - first).days + 1 # 11
print(days)
```
Console outp... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "11", "printed": "11", "notation": null} |
nlprog_det-setting-0057451 | <|start|><|user|>
Pack A has 10 items for $10.90. Pack B has 15 items for $9.14. Which has the lower price per item?<|eot|>
<|assistant|>
```python
pack_a = 10.9 / 10 # 1.09
pack_b = 9.14 / 15 # 0.6093333333333334
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
The run gives B, as expected.
B has... | chat | [
{
"role": "user",
"content": "Pack A has 10 items for $10.90. Pack B has 15 items for $9.14. Which has the lower price per item?"
},
{
"role": "assistant",
"content": "```python\npack_a = 10.9 / 10 # 1.09\npack_b = 9.14 / 15 # 0.6093333333333334\ncheaper = \"A\" if pack_a < pack_b else \"B\" ... | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0057452 | <|start|><|system|>
Tools you may use:
[{"name": "py_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|>
<|user|>
Printing cos... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"py_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\"}}, \"re... | nlprog_det | setting | original | null | deterministic | [] | [] | 250 | {"gold": "264.96", "printed": "264.96", "notation": null} |
nlprog_det-setting-0057453 | Sales went from 2,000 to 1,000. What is the percent change?
Here's the code.
```python
old = 2000
new = 1000
change = (new - old) / old * 100 # -50.0
print(round(change))
```
(Run result: -50)
The change is -50%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "-50", "printed": "-50", "notation": null} |
nlprog_det-setting-0057454 | <|start|><|user|>
Dara's scores were 73, 64, 67, 53, 77, 87 and 62. What is the average score?<|eot|>
<|assistant|>
scores = [73, 64, 67, 53, 77, 87, 62]
average = sum(scores) // len(scores) # 69
print(average)
Execution prints 69.
The mean is 69.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Dara's scores were 73, 64, 67, 53, 77, 87 and 62. What is the average score?"
},
{
"role": "assistant",
"content": " scores = [73, 64, 67, 53, 77, 87, 62]\n average = sum(scores) // len(scores) # 69\n print(average)\nExecution prints 69.\n\nThe mean is 69.... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "69", "printed": "69", "notation": null} |
nlprog_det-setting-0057455 | Straight-line depreciation: cost $18,000, salvage $0, 6 years. How much per year?
Computation in Python:
```python
cost = 18000
salvage = 0
years = 6
per_year = (cost - salvage) / years # 3000.0
print(f"{per_year:.2f}")
```
Execution result — 3000.00
$3,000.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "3000.00", "printed": "3000.00", "notation": null} |
nlprog_det-setting-0057456 | <|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 | [] | [] | 139 | {"gold": "10800.00", "printed": "10800.00", "notation": null} |
nlprog_det-setting-0057457 | At $0.62 per mile, what is the reimbursement for 297 miles?
As Python:
```python
miles = 297
rate = 0.62
reimbursement = miles * rate # 184.14
print(f"{reimbursement:.2f}")
```
The code prints: 184.14
The reimbursement is $184.14. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "184.14", "printed": "184.14", "notation": null} |
nlprog_det-setting-0057458 | Convert 0 °C to Fahrenheit.
```python
celsius = 0
fahrenheit = celsius * 9 / 5 + 32 # 32.0
print(round(fahrenheit))
```
Result — 32
That is 32 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0057459 | Count 90 days forward from March 10, 2028. What date is that?
Translated to Python:
```python
from datetime import date, timedelta
start = date(2028, 3, 10) # datetime.date(2028, 3, 10)
end = start + timedelta(days=90) # datetime.date(2028, 6, 8)
print(end.isoformat())
```
It outputs 2028-06-08.
That date is June 8... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "2028-06-08", "printed": "2028-06-08", "notation": null} |
nlprog_det-setting-0057460 | An invoice lists 15 notebooks at $8 each, plus 7% sales tax. What is the invoice total?
As a program:
```python
quantity = 15
unit_price = 8
subtotal = quantity * unit_price # 120
total = subtotal * (1 + 7 / 100) # 128.4
print(f"{total:.2f}")
```
Running it prints 128.40, as expected.
The total with tax is $128.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "128.40", "printed": "128.40", "notation": null} |
nlprog_det-setting-0057461 | <|start|><|user|>
A car travels 462 miles in 2 hours. What is its average speed in miles per hour?<|eot|>
<|assistant|>
distance = 462
hours = 2
speed = distance / hours # 231.0
print(round(speed))
# output: 231
The average speed is 231 mph.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A car travels 462 miles in 2 hours. What is its average speed in miles per hour?"
},
{
"role": "assistant",
"content": " distance = 462\n hours = 2\n speed = distance / hours # 231.0\n print(round(speed))\n# output: 231\n\nThe average speed is 231 mph."... | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "231", "printed": "231", "notation": null} |
nlprog_det-setting-0057462 | <|start|><|user|>
Fixed costs are $6,000. Each unit sells for $25 and costs $20 to make. How many units must be sold to break even?<|eot|>
<|assistant|>
```python
import math
fixed = 6000
price = 25
variable = 20
units = math.ceil(fixed / (price - variable))
print(units)
```
Printed = 1200
Break-even is 1200 units.<|e... | chat | [
{
"role": "user",
"content": "Fixed costs are $6,000. Each unit sells for $25 and costs $20 to make. How many units must be sold to break even?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 6000\nprice = 25\nvariable = 20\nunits = math.ceil(fixed / (price - variable))\np... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "1200", "printed": "1200", "notation": null} |
nlprog_det-setting-0057463 | Counting only Monday through Friday, how many business days are there after November 16, 2020 through December 16, 2020?
A short script:
```python
from datetime import date, timedelta
start = date(2020, 11, 16)
end = date(2020, 12, 16)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 154 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0057464 | A 93-page report must be reviewed in 3 days. How many pages a day is that, evenly?
The computation:
```python
pages = 93
days = 3
per_day = pages // days # 31
print(per_day)
```
Run result: 31
31 pages a day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "31", "printed": "31", "notation": null} |
nlprog_det-setting-0057465 | <|start|><|user|>
A 28 lb package ships at $12 base plus $0.75/lb. What is the charge?<|eot|>
<|assistant|>
```python
base = 12
per_pound = 0.75
weight = 28
cost = base + per_pound * weight # 33.0
print(f"{cost:.2f}")
```
(Run result: 33.00)
Shipping costs $33.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 28 lb package ships at $12 base plus $0.75/lb. What is the charge?"
},
{
"role": "assistant",
"content": "```python\nbase = 12\nper_pound = 0.75\nweight = 28\ncost = base + per_pound * weight # 33.0\nprint(f\"{cost:.2f}\")\n```\n(Run result: 33.00)\n\nShipping co... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "33.00", "printed": "33.00", "notation": null} |
nlprog_det-setting-0057466 | <|start|><|user|>
Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 42 hours?<|eot|>
<|assistant|>
```python
rate = 18.5
hours = 42
regular = 40 * rate # 740.0
overtime = (hours - 40) * rate * 1.5 # 55.5
pay = regular + overtime # 795.5
print(f"{pay:.2f}")
```
Executed, it shows:... | chat | [
{
"role": "user",
"content": "Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 42 hours?"
},
{
"role": "assistant",
"content": "```python\nrate = 18.5\nhours = 42\nregular = 40 * rate # 740.0\novertime = (hours - 40) * rate * 1.5 # 55.5\npay = regular + ov... | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "795.50", "printed": "795.50", "notation": null} |
nlprog_det-setting-0057468 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "math_engine", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"math_engine\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python... | nlprog_det | setting | original | null | deterministic | [] | [] | 220 | {"gold": "311", "printed": "311", "notation": null} |
nlprog_det-setting-0057469 | A meeting starts at 12:40 PM and lasts 90 minutes. When does it end?
A short script:
```python
start = 12 * 60 + 40
end = start + 90
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
stdout = 2:10 PM
It ends at 2:10 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "2:10 PM", "printed": "2:10 PM", "notation": null} |
nlprog_det-setting-0057470 | <|start|><|system|>
You help people work with structured data.<|eot|>
<|user|>
Rent of $1,800 goes up 6%. What is the new rent?<|eot|>
<|assistant|>
```python
rent = 1800
increase = 6 / 100 # 0.06
new_rent = rent * (1 + increase) # 1908.0
print(f"{new_rent:.2f}")
```
The program prints: 1908.00
The new rent is $1,90... | chat | [
{
"role": "system",
"content": "You help people work with structured data."
},
{
"role": "user",
"content": "Rent of $1,800 goes up 6%. What is the new rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 1800\nincrease = 6 / 100 # 0.06\nnew_rent = rent * (1 + increase) #... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "1908.00", "printed": "1908.00", "notation": null} |
nlprog_det-setting-0057471 | The paralegal logged 2.5 hours at a rate of $180. How much is billed?
Coded up:
```python
hours = 2.5
rate = 180
bill = hours * rate # 450.0
print(f"{bill:.2f}")
```
Running it prints 450.00.
That comes to $450.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "450.00", "printed": "450.00", "notation": null} |
nlprog_det-setting-0057472 | <|start|><|user|>
Printing costs 12 cents a page. What does it cost to print 116 copies of a 56-page handout?<|eot|>
<|assistant|>
The job costs $779.52.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Printing costs 12 cents a page. What does it cost to print 116 copies of a 56-page handout?"
},
{
"role": "assistant",
"content": "The job costs $779.52."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "779.52", "printed": "779.52", "notation": null} |
nlprog_det-setting-0057473 | What is the total rent on a 12-month lease at $3,250 a month?
Programmatically:
```python
monthly_rent = 3250
months = 12
total = monthly_rent * months # 39000
print(total)
```
This prints: 39000
The rent over the term is $39,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "39000", "printed": "39000", "notation": null} |
nlprog_det-setting-0057474 | <|start|><|user|>
A 6 lb package ships at $5 base plus $2.00/lb. What is the charge?<|eot|>
<|assistant|>
```python
base = 5
per_pound = 2.0
weight = 6
cost = base + per_pound * weight # 17.0
print(f"{cost:.2f}")
```
(Execution result: 17.00)
The charge is $17.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 6 lb package ships at $5 base plus $2.00/lb. What is the charge?"
},
{
"role": "assistant",
"content": "```python\nbase = 5\nper_pound = 2.0\nweight = 6\ncost = base + per_pound * weight # 17.0\nprint(f\"{cost:.2f}\")\n```\n(Execution result: 17.00)\n\nThe charge... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "17.00", "printed": "17.00", "notation": null} |
nlprog_det-setting-0057475 | At a 7% tax rate, what is the tax on $680.50?
A Python solution:
```python
price = 680.5
tax_rate = 7 / 100 # 0.07
tax = price * tax_rate # 47.635000000000005
print(f"{tax:.2f}")
```
Interpreter output: 47.64
The tax is $47.64. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "47.64", "printed": "47.64", "notation": null} |
nlprog_det-setting-0057476 | <|start|><|system|>
You are an assistant for a small office.<|eot|>
<|user|>
A settlement of $84,000 is split equally among 4 parties. How much does each party receive?<|eot|>
<|assistant|>
Each share is $21,000.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are an assistant for a small office."
},
{
"role": "user",
"content": "A settlement of $84,000 is split equally among 4 parties. How much does each party receive?"
},
{
"role": "assistant",
"content": "Each share is $21,000."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 53 | {"gold": "21000", "printed": "21000", "notation": null} |
nlprog_det-setting-0057477 | From a $2,500 retainer, 4 hours at $250/hour have been drawn. What remains?
Program:
```python
retainer = 2500
hours = 4
rate = 250
left = retainer - hours * rate # 1500
print(left)
```
(Printed result: 1500)
$1,500 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "1500", "printed": "1500", "notation": null} |
nlprog_det-setting-0057478 | <|start|><|user|>
A meal costs $42.13. How much is a 15% tip?<|eot|>
<|assistant|>
```python
bill = 42.13
tip_rate = 15 / 100 # 0.15
tip = bill * tip_rate # 6.319500000000001
print(f"{tip:.2f}")
```
Run result = 6.32
The tip is $6.32.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A meal costs $42.13. How much is a 15% tip?"
},
{
"role": "assistant",
"content": "```python\nbill = 42.13\ntip_rate = 15 / 100 # 0.15\ntip = bill * tip_rate # 6.319500000000001\nprint(f\"{tip:.2f}\")\n```\nRun result = 6.32\n\nThe tip is $6.32."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "6.32", "printed": "6.32", "notation": null} |
nlprog_det-setting-0057479 | A 25 lb package ships at $5 base plus $1.50/lb. What is the charge?
Let the code do the arithmetic:
base = 5
per_pound = 1.5
weight = 25
cost = base + per_pound * weight # 42.5
print(f"{cost:.2f}")
# execution result: 42.50
Shipping costs $42.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "42.50", "printed": "42.50", "notation": null} |
nlprog_det-setting-0057480 | <|start|><|user|>
Rosa and Zoe share $2,632 in the ratio 2:5. How much does Rosa get?<|eot|>
<|assistant|>
Rosa's share is $752.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Rosa and Zoe share $2,632 in the ratio 2:5. How much does Rosa get?"
},
{
"role": "assistant",
"content": "Rosa's share is $752."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "752", "printed": "752", "notation": null} |
nlprog_det-setting-0057481 | <|start|><|user|>
A client paid a $7,500 retainer. The firm has billed 14 hours at $150 per hour. How much of the retainer is left?<|eot|>
<|assistant|>
```python
retainer = 7500
hours = 14
rate = 150
left = retainer - hours * rate # 5400
print(left)
```
Output:
5400
The remaining balance is $5,400.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A client paid a $7,500 retainer. The firm has billed 14 hours at $150 per hour. How much of the retainer is left?"
},
{
"role": "assistant",
"content": "```python\nretainer = 7500\nhours = 14\nrate = 150\nleft = retainer - hours * rate # 5400\nprint(left)\n```\nOut... | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "5400", "printed": "5400", "notation": null} |
nlprog_det-setting-0057482 | Find the mean of these test scores: 99, 89 and 85.
Computing it:
scores = [99, 89, 85]
average = sum(scores) // len(scores) # 91
print(average)
On running, it outputs: 91
The mean is 91. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 73 | {"gold": "91", "printed": "91", "notation": null} |
nlprog_det-setting-0057483 | At a 8% tax rate, what is the tax on $303.04?
The tax is $24.24. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 29 | {"gold": "24.24", "printed": "24.24", "notation": null} |
nlprog_det-setting-0057484 | <|start|><|user|>
Count the days between April 20, 2024 and April 27, 2024.<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2024, 4, 20) # datetime.date(2024, 4, 20)
second = date(2024, 4, 27) # datetime.date(2024, 4, 27)
print((second - first).days)
```
Result: 7
It is 7 days.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Count the days between April 20, 2024 and April 27, 2024."
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2024, 4, 20) # datetime.date(2024, 4, 20)\nsecond = date(2024, 4, 27) # datetime.date(2024, 4, 27)\nprint((second - ... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0057485 | An office budget of $8,000 has expenses of $877, $3,693. How much of the budget is left?
Let's compute it with Python.
```python
budget = 8000
expenses = [877, 3693]
left = budget - sum(expenses) # 3430
print(left)
```
Console output: 3430
$3,430 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "3430", "printed": "3430", "notation": null} |
nlprog_det-setting-0057486 | A 36-month warranty starts on June 26, 2026. On what date does it end?
The Python version:
from datetime import date
start = date(2026, 6, 26)
months = 36
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "2029-06-26", "printed": "2029-06-26", "notation": null} |
nlprog_det-setting-0057487 | <|start|><|user|>
8 hours of work at $300 an hour: what is the total charge?<|eot|>
<|assistant|>
```python
hours = 8
rate = 300
bill = hours * rate # 2400
print(f"{bill:.2f}")
```
It prints 2400.00.
The bill is $2,400.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "8 hours of work at $300 an hour: what is the total charge?"
},
{
"role": "assistant",
"content": "```python\nhours = 8\nrate = 300\nbill = hours * rate # 2400\nprint(f\"{bill:.2f}\")\n```\nIt prints 2400.00.\n\nThe bill is $2,400.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "2400.00", "printed": "2400.00", "notation": null} |
nlprog_det-setting-0057488 | A clerk's office charges $150 for each filing. Paula submits 2 filings. What is the total fee?
Python:
fee = 150
filings = 2
total = fee * filings
print(total)
Result — 300
$300 in filing fees. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 68 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0057489 | <|start|><|user|>
A shift runs from 8:08 AM to 2:14 PM. How long is it in minutes?<|eot|>
<|assistant|>
start = 8 * 60 + 8
end = 14 * 60 + 14
print(end - start)
The interpreter prints 366.
366 minutes pass.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A shift runs from 8:08 AM to 2:14 PM. How long is it in minutes?"
},
{
"role": "assistant",
"content": " start = 8 * 60 + 8\n end = 14 * 60 + 14\n print(end - start)\nThe interpreter prints 366.\n\n366 minutes pass."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 69 | {"gold": "366", "printed": "366", "notation": null} |
nlprog_det-setting-0057490 | At 40 miles per hour, how many minutes does a 200-mile trip take?
Python:
```python
distance = 200
speed = 40
minutes = distance / speed * 60
print(round(minutes))
```
Printed — 300
300 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0057491 | <|start|><|user|>
Equal monthly payments repay $1,200 plus 6% simple yearly interest over 12 months. How large is a payment?<|eot|>
<|assistant|>
```python
principal = 1200
annual_rate = 6 / 100 # 0.06
months = 12
interest = principal * annual_rate * months / 12 # 72.0
payment = (principal + interest) / months # 106... | chat | [
{
"role": "user",
"content": "Equal monthly payments repay $1,200 plus 6% simple yearly interest over 12 months. How large is a payment?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 1200\nannual_rate = 6 / 100 # 0.06\nmonths = 12\ninterest = principal * annual_rate * months / 1... | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "106.00", "printed": "106.00", "notation": null} |
nlprog_det-setting-0057492 | <|start|><|user|>
Monthly rent is $1,800. A tenant moves in with 15 days left in a 30-day month. What is the prorated rent?<|eot|>
<|assistant|>
```python
rent = 1800
days_in_month = 30
days_occupied = 15
prorated = rent * days_occupied / days_in_month # 900.0
print(f"{prorated:.2f}")
```
Out:
900.00
The prorated ren... | chat | [
{
"role": "user",
"content": "Monthly rent is $1,800. A tenant moves in with 15 days left in a 30-day month. What is the prorated rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 1800\ndays_in_month = 30\ndays_occupied = 15\nprorated = rent * days_occupied / days_in_month # 900.0\... | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "900.00", "printed": "900.00", "notation": null} |
nlprog_det-setting-0057493 | <|start|><|user|>
What is a 18% tip on a $156.32 bill?<|eot|>
<|assistant|>
bill = 156.32
tip_rate = 18 / 100 # 0.18
tip = bill * tip_rate # 28.1376
print(f"{tip:.2f}")
# result: 28.14
Leave $28.14.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is a 18% tip on a $156.32 bill?"
},
{
"role": "assistant",
"content": " bill = 156.32\n tip_rate = 18 / 100 # 0.18\n tip = bill * tip_rate # 28.1376\n print(f\"{tip:.2f}\")\n# result: 28.14\n\nLeave $28.14."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "28.14", "printed": "28.14", "notation": null} |
nlprog_det-setting-0057494 | How many 1-foot square tiles cover a 17 ft by 15 ft floor (round up)?
A Python solution:
```python
import math
length = 17
width = 15
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 255
print(tiles)
```
The code prints: 255
It takes 255 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "255", "printed": "255", "notation": null} |
nlprog_det-setting-0057495 | <|start|><|user|>
How many whole days and leftover hours are in 332 hours?<|eot|>
<|assistant|>
```python
hours = 332
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
The interpreter prints 13 days and 20 hours.
That is 13 days and 20 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many whole days and leftover hours are in 332 hours?"
},
{
"role": "assistant",
"content": "```python\nhours = 332\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nThe interpreter prints 13 days and 20 hours.\n\nThat is 13 days and... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "13 days and 20 hours", "printed": "13 days and 20 hours", "notation": null} |
nlprog_det-setting-0057496 | Goods bought on September 27, 2018 carry a 36-month warranty. When does it expire?
Code:
from datetime import date
start = date(2018, 9, 27)
months = 36
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
Ru... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "2021-09-27", "printed": "2021-09-27", "notation": null} |
nlprog_det-setting-0057497 | Of a $5,000 budget, $1,100 has been spent. What percent is that?
Written as code:
```python
budget = 5000
spent = 1100
percent = spent / budget * 100 # 22.0
print(round(percent, 1))
```
Shell output: 22.0
22.0% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "22.0", "printed": "22.0", "notation": null} |
nlprog_det-setting-0057498 | <|start|><|user|>
A 476-page report must be reviewed in 17 days. How many pages a day is that, evenly?<|eot|>
<|assistant|>
```python
pages = 476
days = 17
per_day = pages // days # 28
print(per_day)
```
Printed = 28
28 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 476-page report must be reviewed in 17 days. How many pages a day is that, evenly?"
},
{
"role": "assistant",
"content": "```python\npages = 476\ndays = 17\nper_day = pages // days # 28\nprint(per_day)\n```\nPrinted = 28\n\n28 pages a day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "28", "printed": "28", "notation": null} |
nlprog_det-setting-0057499 | <|start|><|user|>
Monthly rent is $900. A tenant moves in with 19 days left in a 31-day month. What is the prorated rent?<|eot|>
<|assistant|>
rent = 900
days_in_month = 31
days_occupied = 19
prorated = rent * days_occupied / days_in_month # 551.6129032258065
print(f"{prorated:.2f}")
It prints 551.... | chat | [
{
"role": "user",
"content": "Monthly rent is $900. A tenant moves in with 19 days left in a 31-day month. What is the prorated rent?"
},
{
"role": "assistant",
"content": " rent = 900\n days_in_month = 31\n days_occupied = 19\n prorated = rent * days_occupied / days_in_month # 551.... | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "551.61", "printed": "551.61", "notation": null} |
nlprog_det-setting-0057500 | Convert 6.9 km to meters. 6,900 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 19 | {"gold": "6900", "printed": "6900", "notation": null} |
nlprog_det-setting-0057501 | <|start|><|user|>
Buying 2 calendars at $8 each, 2 cables at $20 each, someone hands over $100. What change comes back?<|eot|>
<|assistant|>
items = [(2, 8), (2, 20)]
total = sum(q * p for q, p in items) # 56
paid = 100
change = paid - total # 44
print(change)
(Result: 44)
$44 comes back.<|eot|>
... | chat | [
{
"role": "user",
"content": "Buying 2 calendars at $8 each, 2 cables at $20 each, someone hands over $100. What change comes back?"
},
{
"role": "assistant",
"content": " items = [(2, 8), (2, 20)]\n total = sum(q * p for q, p in items) # 56\n paid = 100\n change = paid - total # 4... | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "44", "printed": "44", "notation": null} |
nlprog_det-setting-0057502 | <|start|><|user|>
Each of Lena's swims burns 300 calories. How many calories over 6 swims?<|eot|>
<|assistant|>
```python
per_session = 300
sessions = 6
total = per_session * sessions # 1800
print(total)
```
This prints 1800, as expected.
That burns 1800 calories.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each of Lena's swims burns 300 calories. How many calories over 6 swims?"
},
{
"role": "assistant",
"content": "```python\nper_session = 300\nsessions = 6\ntotal = per_session * sessions # 1800\nprint(total)\n```\nThis prints 1800, as expected.\n\nThat burns 1800 c... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "1800", "printed": "1800", "notation": null} |
nlprog_det-setting-0057503 | A hall has 19 rows of 13 seats, and 30 seats are empty. How many people are seated?
The computation:
```python
rows = 19
per_row = 13
empty = 30
seated = rows * per_row - empty # 217
print(seated)
```
The script prints 217.
217 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "217", "printed": "217", "notation": null} |
nlprog_det-setting-0057504 | <|start|><|user|>
Each of Tobias's swims burns 350 calories. How many calories over 5 swims?<|eot|>
<|assistant|>
```python
per_session = 350
sessions = 5
total = per_session * sessions
print(total)
```
Out — 1750
1750 calories in total.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each of Tobias's swims burns 350 calories. How many calories over 5 swims?"
},
{
"role": "assistant",
"content": "```python\nper_session = 350\nsessions = 5\ntotal = per_session * sessions\nprint(total)\n```\nOut — 1750\n\n1750 calories in total."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "1750", "printed": "1750", "notation": null} |
nlprog_det-setting-0057505 | 7 boxes hold 6 labels each. After 19 are handed out, how many are left?
Translated to Python:
```python
boxes = 7
per_box = 6
given_away = 19
left = boxes * per_box - given_away # 23
print(left)
```
Run it and it prints: 23
That leaves 23 labels. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0057507 | <|start|><|user|>
One can of paint covers 250 square feet. How many cans are needed for 1383 square feet of wall?<|eot|>
<|assistant|>
```python
import math
area = 1383
coverage = 250
cans = math.ceil(area / coverage) # 6
print(cans)
```
On running, it outputs 6.
Buy 6 cans.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "One can of paint covers 250 square feet. How many cans are needed for 1383 square feet of wall?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 1383\ncoverage = 250\ncans = math.ceil(area / coverage) # 6\nprint(cans)\n```\nOn running, it outpu... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0057508 | Each of Chen's walks burns 250 calories. How many calories over 6 walks?
```python
per_session = 250
sessions = 6
total = per_session * sessions # 1500
print(total)
```
The interpreter prints: 1500
1500 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "1500", "printed": "1500", "notation": null} |
nlprog_det-setting-0057509 | <|start|><|user|>
An invoice lists 9 scissors at $4 each, plus 10% sales tax. What is the invoice total?<|eot|>
<|assistant|>
```python
quantity = 9
unit_price = 4
subtotal = quantity * unit_price # 36
total = subtotal * (1 + 10 / 100) # 39.6
print(f"{total:.2f}")
```
Executing it gives: 39.60
The total with tax is ... | chat | [
{
"role": "user",
"content": "An invoice lists 9 scissors at $4 each, plus 10% sales tax. What is the invoice total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 9\nunit_price = 4\nsubtotal = quantity * unit_price # 36\ntotal = subtotal * (1 + 10 / 100) # 39.6\nprint(f\"{total:... | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "39.60", "printed": "39.60", "notation": null} |
nlprog_det-setting-0057510 | <|start|><|user|>
Fines run at $25 per day up to a maximum of $5,000. How much after 10 days?<|eot|>
<|assistant|>
```python
per_day = 25
days = 10
cap = 5000
fine = min(per_day * days, cap)
print(fine)
```
It prints 250.
$250 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Fines run at $25 per day up to a maximum of $5,000. How much after 10 days?"
},
{
"role": "assistant",
"content": "```python\nper_day = 25\ndays = 10\ncap = 5000\nfine = min(per_day * days, cap)\nprint(fine)\n```\nIt prints 250.\n\n$250 is owed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "250", "printed": "250", "notation": null} |
nlprog_det-setting-0057511 | Shipping costs $12 plus $1.20 per pound. What does a 5-pound parcel cost to ship?
```python
base = 12
per_pound = 1.2
weight = 5
cost = base + per_pound * weight # 18.0
print(f"{cost:.2f}")
```
Printed:
18.00
Shipping costs $18.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "18.00", "printed": "18.00", "notation": null} |
nlprog_det-setting-0057512 | With $36,000 in costs and $41,000 in revenue, what percent of revenue is profit? Round to one decimal.
Program:
```python
revenue = 41000
costs = 36000
profit = revenue - costs # 5000
margin = profit / revenue * 100 # 12.195121951219512
print(round(margin, 1))
```
The printout reads 12.2.
The margin is 12.2%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "12.2", "printed": "12.2", "notation": null} |
nlprog_det-setting-0057513 | How many of 285 votes make 75% (round up)? At least 214 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 24 | {"gold": "214", "printed": "214", "notation": null} |
nlprog_det-setting-0057514 | Elena earns a 8% commission on $44,523 of sales. What is the commission?
Program:
```python
sales = 44523
rate = 8 / 100 # 0.08
commission = sales * rate # 3561.84
print(f"{commission:.2f}")
```
Python prints: 3561.84
The commission is $3,561.84. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "3561.84", "printed": "3561.84", "notation": null} |
nlprog_det-setting-0057515 | Hana buys 3 boxes of 24 water bottles each and gives away 1 water bottles. How many water bottles are left?
Let's compute it with Python.
```python
boxes = 3
per_box = 24
given_away = 1
left = boxes * per_box - given_away # 71
print(left)
```
The program outputs: 71
71 water bottles are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "71", "printed": "71", "notation": null} |
nlprog_det-setting-0057517 | <|start|><|system|>
Keep answers short and correct.<|eot|>
<|user|>
Under a 33% contingency agreement, what fee is owed on a $12,000 award?<|eot|>
<|assistant|>
```python
recovery = 12000
rate = 33 / 100 # 0.33
fee = recovery * rate # 3960.0
print(f"{fee:.2f}")
```
The run gives 3960.00.
The fee is $3,960.00.<|eot|>... | chat | [
{
"role": "system",
"content": "Keep answers short and correct."
},
{
"role": "user",
"content": "Under a 33% contingency agreement, what fee is owed on a $12,000 award?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 12000\nrate = 33 / 100 # 0.33\nfee = recovery * rate... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "3960.00", "printed": "3960.00", "notation": null} |
nlprog_det-setting-0057518 | Fines run at $50 per day up to a maximum of $1,000. How much after 24 days?
As a program:
per_day = 50
days = 24
cap = 1000
fine = min(per_day * days, cap) # 1000
print(fine)
When run, it prints 1000, as expected.
The fine is $1,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0057519 | <|start|><|user|>
A 9-day trip pays $74 a day for meals and $140 a night for lodging (8 nights). What is the total allowance?<|eot|>
<|assistant|>
```python
days = 9
meal_rate = 74
lodging_rate = 140
nights = days - 1 # 8
total = days * meal_rate + nights * lodging_rate # 1786
print(total)
```
stdout: 1786
The allow... | chat | [
{
"role": "user",
"content": "A 9-day trip pays $74 a day for meals and $140 a night for lodging (8 nights). What is the total allowance?"
},
{
"role": "assistant",
"content": "```python\ndays = 9\nmeal_rate = 74\nlodging_rate = 140\nnights = days - 1 # 8\ntotal = days * meal_rate + nights * lo... | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "1786", "printed": "1786", "notation": null} |
nlprog_det-setting-0057520 | Find the mean of these test scores: 69, 57, 82 and 60.
A few lines of Python do it:
scores = [69, 57, 82, 60]
average = sum(scores) // len(scores) # 67
print(average)
When run, it prints: 67
The mean is 67. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "67", "printed": "67", "notation": null} |
nlprog_det-setting-0057521 | How long, in days, is it from April 7, 2027 until February 25, 2028?
As a program:
```python
from datetime import date
first = date(2027, 4, 7)
second = date(2028, 2, 25)
print((second - first).days)
```
Output:
324
There are 324 days between the two dates. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "324", "printed": "324", "notation": null} |
nlprog_det-setting-0057522 | <|start|><|system|>
You are a logic tutor.<|eot|>
<|user|>
Each storage box holds 25 files. How many boxes are needed for 885 files?<|eot|>
<|assistant|>
```python
import math
files = 885
per_box = 25
boxes = math.ceil(files / per_box) # 36
print(boxes)
```
Output:
36
It takes 36 boxes.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a logic tutor."
},
{
"role": "user",
"content": "Each storage box holds 25 files. How many boxes are needed for 885 files?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 885\nper_box = 25\nboxes = math.ceil(files / per_b... | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0057523 | A service costs $9 a month or $90 a year. How much does the yearly plan save over 12 monthly payments?
Computing it:
monthly = 9
yearly = 90
savings = monthly * 12 - yearly # 18
print(savings)
Execution result — 18
$18 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0057524 | A lease runs for 12 months at $850 per month. How much rent is paid over the whole term?
As a program:
monthly_rent = 850
months = 12
total = monthly_rent * months
print(total)
Output:
10200
The rent over the term is $10,200. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "10200", "printed": "10200", "notation": null} |
nlprog_det-setting-0057525 | <|start|><|user|>
A count moves from 500 to 250. By what percent did it change (use a minus sign for a drop)?<|eot|>
<|assistant|>
```python
old = 500
new = 250
change = (new - old) / old * 100 # -50.0
print(round(change))
```
Running it prints -50.
It changed by -50%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A count moves from 500 to 250. By what percent did it change (use a minus sign for a drop)?"
},
{
"role": "assistant",
"content": "```python\nold = 500\nnew = 250\nchange = (new - old) / old * 100 # -50.0\nprint(round(change))\n```\nRunning it prints -50.\n\nIt cha... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "-50", "printed": "-50", "notation": null} |
nlprog_det-setting-0057526 | What is the total rent on a 36-month lease at $2,875 a month?
Set it up in Python:
monthly_rent = 2875
months = 36
total = monthly_rent * months # 103500
print(total)
On running, it outputs: 103500
In total, $103,500 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "103500", "printed": "103500", "notation": null} |
nlprog_det-setting-0057527 | <|start|><|system|>
Tool definitions:
{"name": "eval_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}
{"name": "convert_units", "description": "Co... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"eval_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"s... | nlprog_det | setting | original | null | deterministic | [] | [] | 313 | {"gold": "72900", "printed": "72900", "notation": null} |
nlprog_det-setting-0057528 | Sara earns a 10% commission on $15,466 of sales. What is the commission?
A Python solution:
```python
sales = 15466
rate = 10 / 100 # 0.1
commission = sales * rate # 1546.6000000000001
print(f"{commission:.2f}")
```
What it prints — 1546.60
Sara earns $1,546.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "1546.60", "printed": "1546.60", "notation": null} |
nlprog_det-setting-0057529 | <|start|><|user|>
A room is 8 feet by 8 feet. Flooring costs $6 per square foot. What does it cost to floor the room?<|eot|>
<|assistant|>
It costs $384.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A room is 8 feet by 8 feet. Flooring costs $6 per square foot. What does it cost to floor the room?"
},
{
"role": "assistant",
"content": "It costs $384."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "384", "printed": "384", "notation": null} |
nlprog_det-setting-0057530 | Mei was born on July 1, 2002. How old is Mei on March 26, 2024?
Let the code do the arithmetic:
from datetime import date
born = date(2002, 7, 1) # datetime.date(2002, 7, 1)
on = date(2024, 3, 26) # datetime.date(2024, 3, 26)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "21", "printed": "21", "notation": null} |
nlprog_det-setting-0057531 | Yoko lends $8,000 at 2% simple interest per year for 4 years. How much interest is earned?
Program:
```python
principal = 8000
rate = 2 / 100 # 0.02
years = 4
interest = principal * rate * years # 640.0
print(f"{interest:.2f}")
```
Console output: 640.00
The interest is $640.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "640.00", "printed": "640.00", "notation": null} |
nlprog_det-setting-0057532 | At $0.58 per mile, what is the reimbursement for 174 miles?
The computation:
```python
miles = 174
rate = 0.58
reimbursement = miles * rate # 100.91999999999999
print(f"{reimbursement:.2f}")
```
Running this gives: 100.92
Rafael is owed $100.92. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "100.92", "printed": "100.92", "notation": null} |
nlprog_det-setting-0057533 | Scale 150 g of pasta from 4 servings to 6 servings.
Python does the arithmetic:
```python
grams = 150
serves = 4
needed_for = 6
scaled = grams * needed_for // serves # 225
print(scaled)
```
# printed: 225
Use 225 g of pasta. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "225", "printed": "225", "notation": null} |
nlprog_det-setting-0057534 | A 135-mile drive at a steady 45 mph takes how many minutes?
```python
distance = 135
speed = 45
minutes = distance / speed * 60 # 180.0
print(round(minutes))
```
Python prints 180, as expected.
The trip takes 180 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "180", "printed": "180", "notation": null} |
nlprog_det-setting-0057535 | Prorate $1,200 of monthly rent for 10 days of a 30-day month.
We write it as a program:
```python
rent = 1200
days_in_month = 30
days_occupied = 10
prorated = rent * days_occupied / days_in_month # 400.0
print(f"{prorated:.2f}")
```
The program prints 400.00, as expected.
The tenant owes $400.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "400.00", "printed": "400.00", "notation": null} |
nlprog_det-setting-0057536 | <|start|><|system|>
You check calculations for an accounting team.<|eot|>
<|user|>
Rosa buys 4 boxes of 25 flash drives each and gives away 5 flash drives. How many flash drives are left?<|eot|>
<|assistant|>
```python
boxes = 4
per_box = 25
given_away = 5
left = boxes * per_box - given_away # 95
print(left)
```
Execu... | chat | [
{
"role": "system",
"content": "You check calculations for an accounting team."
},
{
"role": "user",
"content": "Rosa buys 4 boxes of 25 flash drives each and gives away 5 flash drives. How many flash drives are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 4\nper_b... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "95", "printed": "95", "notation": null} |
nlprog_det-setting-0057537 | <|start|><|user|>
A meal costs $62.00. How much is a 18% tip?<|eot|>
<|assistant|>
Leave $11.16.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A meal costs $62.00. How much is a 18% tip?"
},
{
"role": "assistant",
"content": "Leave $11.16."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "11.16", "printed": "11.16", "notation": null} |
nlprog_det-setting-0057538 | The rules require 3/5 of 27 members (round up) to be present. How many is that?
Let's compute it with Python.
import math
members = 27
quorum = math.ceil(members * 3 / 5) # 17
print(quorum)
The printout reads: 17
That is 17 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "17", "printed": "17", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.