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-0073456 | <|start|><|user|>
131 volunteers are split into 8 equal teams. How many are on each team, and how many are left over?<|eot|>
<|assistant|>
The answer: 16 each, 3 left over.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "131 volunteers are split into 8 equal teams. How many are on each team, and how many are left over?"
},
{
"role": "assistant",
"content": "The answer: 16 each, 3 left over."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "16 each, 3 left over", "printed": "16 each, 3 left over", "notation": null} |
nlprog_det-setting-0073457 | Count the days between January 15, 2027 and May 23, 2027.
The computation:
```python
from datetime import date
first = date(2027, 1, 15) # datetime.date(2027, 1, 15)
second = date(2027, 5, 23) # datetime.date(2027, 5, 23)
print((second - first).days)
```
Execution result: 128
It is 128 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "128", "printed": "128", "notation": null} |
nlprog_det-setting-0073458 | <|start|><|system|>
You are a careful reviewer of figures.<|eot|>
<|user|>
How many days are there from September 22, 2024 to February 9, 2025?<|eot|>
<|assistant|>
There are 140 days between the two dates.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a careful reviewer of figures."
},
{
"role": "user",
"content": "How many days are there from September 22, 2024 to February 9, 2025?"
},
{
"role": "assistant",
"content": "There are 140 days between the two dates."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 48 | {"gold": "140", "printed": "140", "notation": null} |
nlprog_det-setting-0073460 | With $4,000 in costs and $8,000 in revenue, what percent of revenue is profit? Round to one decimal.
Program:
```python
revenue = 8000
costs = 4000
profit = revenue - costs # 4000
margin = profit / revenue * 100 # 50.0
print(round(margin, 1))
```
stdout — 50.0
Profit is 50.0% of revenue. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "50.0", "printed": "50.0", "notation": null} |
nlprog_det-setting-0073461 | <|start|><|user|>
Monthly rent is $2,400. A tenant moves in with 20 days left in a 30-day month. What is the prorated rent?<|eot|>
<|assistant|>
```python
rent = 2400
days_in_month = 30
days_occupied = 20
prorated = rent * days_occupied / days_in_month # 1600.0
print(f"{prorated:.2f}")
```
Interpreter output — 1600.00... | chat | [
{
"role": "user",
"content": "Monthly rent is $2,400. A tenant moves in with 20 days left in a 30-day month. What is the prorated rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 2400\ndays_in_month = 30\ndays_occupied = 20\nprorated = rent * days_occupied / days_in_month # 1600.0... | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "1600.00", "printed": "1600.00", "notation": null} |
nlprog_det-setting-0073463 | With $12,500 in costs and $13,000 in revenue, what percent of revenue is profit? Round to one decimal.
A Python solution:
```python
revenue = 13000
costs = 12500
profit = revenue - costs # 500
margin = profit / revenue * 100 # 3.8461538461538463
print(round(margin, 1))
```
Printed result — 3.8
The margin is 3.8%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "3.8", "printed": "3.8", "notation": null} |
nlprog_det-setting-0073464 | <|start|><|user|>
Convert 4,347 GBP to USD at 1 GBP = 1.12 USD.<|eot|>
<|assistant|>
```python
amount = 4347
rate = 1.12
converted = amount * rate # 4868.64
print(f"{converted:.2f}")
```
The script prints 4868.64.
It converts to 4,868.64 USD.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 4,347 GBP to USD at 1 GBP = 1.12 USD."
},
{
"role": "assistant",
"content": "```python\namount = 4347\nrate = 1.12\nconverted = amount * rate # 4868.64\nprint(f\"{converted:.2f}\")\n```\nThe script prints 4868.64.\n\nIt converts to 4,868.64 USD."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "4868.64", "printed": "4868.64", "notation": null} |
nlprog_det-setting-0073465 | A quorum is 1/3 of the 12 members, rounded up. How many members make a quorum?
As a program:
import math
members = 12
quorum = math.ceil(members * 1 / 3) # 4
print(quorum)
Output — 4
4 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0073466 | At an exchange rate of 1.12 EUR per USD, how many EUR is 1,047 USD?
Script:
```python
amount = 1047
rate = 1.12
converted = amount * rate # 1172.64
print(f"{converted:.2f}")
```
The script prints 1172.64, as expected.
That is 1,172.64 EUR. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "1172.64", "printed": "1172.64", "notation": null} |
nlprog_det-setting-0073467 | <|start|><|user|>
A backpack costs $75. It is 10% off. What is the sale price?<|eot|>
<|assistant|>
```python
price = 75
discount = 10 / 100 # 0.1
sale_price = price * (1 - discount) # 67.5
print(f"{sale_price:.2f}")
```
What it prints: 67.50
It costs $67.50.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A backpack costs $75. It is 10% off. What is the sale price?"
},
{
"role": "assistant",
"content": "```python\nprice = 75\ndiscount = 10 / 100 # 0.1\nsale_price = price * (1 - discount) # 67.5\nprint(f\"{sale_price:.2f}\")\n```\nWhat it prints: 67.50\n\nIt costs $... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "67.50", "printed": "67.50", "notation": null} |
nlprog_det-setting-0073468 | <|start|><|user|>
The building opened in 2025. How many years had passed by 2058?<|eot|>
<|assistant|>
start_year = 2025
end_year = 2058
print(end_year - start_year)
Printed — 33
That is 33 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The building opened in 2025. How many years had passed by 2058?"
},
{
"role": "assistant",
"content": " start_year = 2025\n end_year = 2058\n print(end_year - start_year)\nPrinted — 33\n\nThat is 33 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 64 | {"gold": "33", "printed": "33", "notation": null} |
nlprog_det-setting-0073469 | <|start|><|user|>
Copies cost $15 plus $0.50 for each page beyond 20. How much for 102 pages?<|eot|>
<|assistant|>
```python
pages = 102
base = 15
per_page = 0.5
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page # 56.0
print(f"{cost:.2f}")
```
Executing it gives: 56.00
The copy costs $56.00.<|eot|>
... | chat | [
{
"role": "user",
"content": "Copies cost $15 plus $0.50 for each page beyond 20. How much for 102 pages?"
},
{
"role": "assistant",
"content": "```python\npages = 102\nbase = 15\nper_page = 0.5\nfree_pages = 20\ncost = base + max(0, pages - free_pages) * per_page # 56.0\nprint(f\"{cost:.2f}\")... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "56.00", "printed": "56.00", "notation": null} |
nlprog_det-setting-0073470 | <|start|><|user|>
Shipping costs $10 plus $2.50 per pound. What does a 15-pound parcel cost to ship?<|eot|>
<|assistant|>
Shipping costs $47.50.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Shipping costs $10 plus $2.50 per pound. What does a 15-pound parcel cost to ship?"
},
{
"role": "assistant",
"content": "Shipping costs $47.50."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "47.50", "printed": "47.50", "notation": null} |
nlprog_det-setting-0073471 | How many weekdays (Monday to Friday) fall after September 14, 2028 up to and including September 19, 2028?
Python:
```python
from datetime import date, timedelta
start = date(2028, 9, 14)
end = date(2028, 9, 19)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekday() < 5:
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 156 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0073472 | The firm was founded in 2004. How many years had passed by 2030?
We write it as a program:
```python
start_year = 2004
end_year = 2030
print(end_year - start_year)
```
On running, it outputs 26.
That is 26 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0073473 | <|start|><|system|>
You can call tools. Available tools:
{"name": "py_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}
{"name": "lookup_statute", "description":... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"py_exec\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\... | nlprog_det | setting | original | null | deterministic | [] | [] | 325 | {"gold": "4200", "printed": "4200", "notation": null} |
nlprog_det-setting-0073474 | A claim accrued on April 28, 2021. The limitations period is 6 years. On what date does it expire?
It runs out on April 28, 2027. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "2027-04-28", "printed": "2027-04-28", "notation": null} |
nlprog_det-setting-0073475 | <|start|><|system|>
Respond clearly and to the point.<|eot|>
<|user|>
Delia and Sara share $3,404 in the ratio 1:3. How much does Delia get?<|eot|>
<|assistant|>
Delia's share is $851.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Respond clearly and to the point."
},
{
"role": "user",
"content": "Delia and Sara share $3,404 in the ratio 1:3. How much does Delia get?"
},
{
"role": "assistant",
"content": "Delia's share is $851."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 54 | {"gold": "851", "printed": "851", "notation": null} |
nlprog_det-setting-0073476 | <|start|><|user|>
Pack A has 8 items for $11.09. Pack B has 30 items for $9.26. Which has the lower price per item?<|eot|>
<|assistant|>
```python
pack_a = 11.09 / 8 # 1.38625
pack_b = 9.26 / 30 # 0.30866666666666664
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
Executing it gives B.
B has the ... | chat | [
{
"role": "user",
"content": "Pack A has 8 items for $11.09. Pack B has 30 items for $9.26. Which has the lower price per item?"
},
{
"role": "assistant",
"content": "```python\npack_a = 11.09 / 8 # 1.38625\npack_b = 9.26 / 30 # 0.30866666666666664\ncheaper = \"A\" if pack_a < pack_b else \"B\... | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0073478 | A 18-month warranty starts on June 12, 2021. On what date does it end?
One way, in code:
```python
from datetime import date
start = date(2021, 6, 12)
months = 18
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
Printed resu... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "2022-12-12", "printed": "2022-12-12", "notation": null} |
nlprog_det-setting-0073479 | An attorney bills 12 hours at $350 per hour. What is the bill?
The Python version:
```python
hours = 12
rate = 350
bill = hours * rate # 4200
print(f"{bill:.2f}")
```
It outputs: 4200.00
That comes to $4,200.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "4200.00", "printed": "4200.00", "notation": null} |
nlprog_det-setting-0073480 | <|start|><|system|>
Answer in plain English.<|eot|>
<|user|>
A lease runs for 36 months at $2,875 per month. How much rent is paid over the whole term?<|eot|>
<|assistant|>
The rent over the term is $103,500.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer in plain English."
},
{
"role": "user",
"content": "A lease runs for 36 months at $2,875 per month. How much rent is paid over the whole term?"
},
{
"role": "assistant",
"content": "The rent over the term is $103,500."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 54 | {"gold": "103500", "printed": "103500", "notation": null} |
nlprog_det-setting-0073481 | <|start|><|system|>
Keep answers short and correct.<|eot|>
<|user|>
A meal costs $210.29. How much is a 10% tip?<|eot|>
<|assistant|>
Leave $21.03.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Keep answers short and correct."
},
{
"role": "user",
"content": "A meal costs $210.29. How much is a 10% tip?"
},
{
"role": "assistant",
"content": "Leave $21.03."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "21.03", "printed": "21.03", "notation": null} |
nlprog_det-setting-0073482 | How many whole days and leftover hours are in 183 hours?
That is 7 days and 15 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 26 | {"gold": "7 days and 15 hours", "printed": "7 days and 15 hours", "notation": null} |
nlprog_det-setting-0073483 | Which is cheaper per unit: 8 for $5.01 (A) or 24 for $16.71 (B)?
Python does the arithmetic:
```python
pack_a = 5.01 / 8 # 0.62625
pack_b = 16.71 / 24 # 0.69625
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
(Console output: A)
Pack A is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0073484 | A shift runs from 9:53 AM to 4:35 PM. How long is it in minutes?
Let's compute it with Python.
```python
start = 9 * 60 + 53 # 593
end = 16 * 60 + 35 # 995
print(end - start)
```
(Program output: 402)
402 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "402", "printed": "402", "notation": null} |
nlprog_det-setting-0073485 | Convert 5,111 CHF to USD at 1 CHF = 0.74 USD.
A few lines of Python do it:
```python
amount = 5111
rate = 0.74
converted = amount * rate # 3782.14
print(f"{converted:.2f}")
```
(Program output: 3782.14)
That is 3,782.14 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "3782.14", "printed": "3782.14", "notation": null} |
nlprog_det-setting-0073486 | An office budget of $25,000 has expenses of $910, $716. How much of the budget is left?
```python
budget = 25000
expenses = [910, 716]
left = budget - sum(expenses) # 23374
print(left)
```
Python prints 23374.
$23,374 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "23374", "printed": "23374", "notation": null} |
nlprog_det-setting-0073487 | <|start|><|user|>
Find the mean of these test scores: 104, 74, 83, 81, 96 and 78.<|eot|>
<|assistant|>
```python
scores = [104, 74, 83, 81, 96, 78]
average = sum(scores) // len(scores)
print(average)
```
Printed result: 86
The average score is 86.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Find the mean of these test scores: 104, 74, 83, 81, 96 and 78."
},
{
"role": "assistant",
"content": "```python\nscores = [104, 74, 83, 81, 96, 78]\naverage = sum(scores) // len(scores)\nprint(average)\n```\nPrinted result: 86\n\nThe average score is 86."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "86", "printed": "86", "notation": null} |
nlprog_det-setting-0073488 | Fixed costs are $4,000. Each unit sells for $30 and costs $24 to make. How many units must be sold to break even?
Coded up:
```python
import math
fixed = 4000
price = 30
variable = 24
units = math.ceil(fixed / (price - variable)) # 667
print(units)
```
Output — 667
667 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "667", "printed": "667", "notation": null} |
nlprog_det-setting-0073489 | A car travels 597 miles in 3 hours. What is its average speed in miles per hour?
Programmatically:
```python
distance = 597
hours = 3
speed = distance / hours # 199.0
print(round(speed))
```
Executing it gives 199, as expected.
The average speed is 199 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "199", "printed": "199", "notation": null} |
nlprog_det-setting-0073490 | <|start|><|user|>
A count moves from 200 to 210. By what percent did it change (use a minus sign for a drop)?<|eot|>
<|assistant|>
```python
old = 200
new = 210
change = (new - old) / old * 100 # 5.0
print(round(change))
```
It outputs 5.
It changed by 5%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A count moves from 200 to 210. By what percent did it change (use a minus sign for a drop)?"
},
{
"role": "assistant",
"content": "```python\nold = 200\nnew = 210\nchange = (new - old) / old * 100 # 5.0\nprint(round(change))\n```\nIt outputs 5.\n\nIt changed by 5%.... | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0073491 | <|start|><|user|>
A 602-page report must be reviewed in 14 days. How many pages a day is that, evenly?<|eot|>
<|assistant|>
```python
pages = 602
days = 14
per_day = pages // days # 43
print(per_day)
```
Result — 43
That is 43 pages per day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 602-page report must be reviewed in 14 days. How many pages a day is that, evenly?"
},
{
"role": "assistant",
"content": "```python\npages = 602\ndays = 14\nper_day = pages // days # 43\nprint(per_day)\n```\nResult — 43\n\nThat is 43 pages per day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "43", "printed": "43", "notation": null} |
nlprog_det-setting-0073492 | A recipe for 4 people uses 100 grams of sugar. How many grams are needed for 6 people?
Here is a short program for it.
```python
grams = 100
serves = 4
needed_for = 6
scaled = grams * needed_for // serves # 150
print(scaled)
```
Execution result — 150
150 grams of sugar are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "150", "printed": "150", "notation": null} |
nlprog_det-setting-0073493 | <|start|><|system|>
Keep answers short and correct.<|eot|>
<|user|>
A service costs $15 a month or $132 a year. How much does the yearly plan save over 12 monthly payments?<|eot|>
<|assistant|>
```python
monthly = 15
yearly = 132
savings = monthly * 12 - yearly # 48
print(savings)
```
When run, it prints 48.
$48 is s... | chat | [
{
"role": "system",
"content": "Keep answers short and correct."
},
{
"role": "user",
"content": "A service costs $15 a month or $132 a year. How much does the yearly plan save over 12 monthly payments?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 15\nyearly = 132\nsav... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0073494 | A garage charges $4 an hour, never more than $24 a day. How much for 10 hours?
Let the code do the arithmetic:
```python
rate = 4
hours = 10
daily_max = 24
cost = min(rate * hours, daily_max) # 24
print(cost)
```
# out: 24
Parking costs $24. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0073495 | How many units at $15 each (variable cost $10) cover $1,200 of fixed costs?
Code:
```python
import math
fixed = 1200
price = 15
variable = 10
units = math.ceil(fixed / (price - variable)) # 240
print(units)
```
(Printed: 240)
Break-even is 240 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "240", "printed": "240", "notation": null} |
nlprog_det-setting-0073496 | Express 300 hours in days and hours.
Here is the program.
```python
hours = 300
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Run output — 12 days and 12 hours
That is 12 days and 12 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "12 days and 12 hours", "printed": "12 days and 12 hours", "notation": null} |
nlprog_det-setting-0073497 | <|start|><|user|>
The building opened in 2007. How many years had passed by 2012?<|eot|>
<|assistant|>
```python
start_year = 2007
end_year = 2012
print(end_year - start_year)
```
(stdout: 5)
5 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The building opened in 2007. How many years had passed by 2012?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 2007\nend_year = 2012\nprint(end_year - start_year)\n```\n(stdout: 5)\n\n5 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 70 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0073499 | 4 friends split a $96 bill plus a 18% tip evenly. How much does each pay?
In Python:
```python
bill = 96
tip_rate = 18 / 100
people = 4
each = bill * (1 + tip_rate) / people
print(f"{each:.2f}")
```
The script prints 28.32.
The share is $28.32 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "28.32", "printed": "28.32", "notation": null} |
nlprog_det-setting-0073500 | <|start|><|user|>
Scale 240 g of lentils from 4 servings to 2 servings.<|eot|>
<|assistant|>
```python
grams = 240
serves = 4
needed_for = 2
scaled = grams * needed_for // serves # 120
print(scaled)
```
It outputs: 120
120 grams of lentils are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Scale 240 g of lentils from 4 servings to 2 servings."
},
{
"role": "assistant",
"content": "```python\ngrams = 240\nserves = 4\nneeded_for = 2\nscaled = grams * needed_for // serves # 120\nprint(scaled)\n```\nIt outputs: 120\n\n120 grams of lentils are needed."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "120", "printed": "120", "notation": null} |
nlprog_det-setting-0073501 | Maren earns a 4% commission on $107,017 of sales. What is the commission?
Coded up:
```python
sales = 107017
rate = 4 / 100 # 0.04
commission = sales * rate # 4280.68
print(f"{commission:.2f}")
```
(Console output: 4280.68)
The commission is $4,280.68. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "4280.68", "printed": "4280.68", "notation": null} |
nlprog_det-setting-0073502 | 2 claimants share a $2,640 settlement equally. What is each share?
Translated to Python:
```python
settlement = 2640
parties = 2
share = settlement // parties # 1320
print(share)
```
Executing it gives: 1320
Each share is $1,320. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "1320", "printed": "1320", "notation": null} |
nlprog_det-setting-0073503 | <|start|><|user|>
A penalty of $250 a day accrues, capped at $5,000. What is owed after 34 days?<|eot|>
<|assistant|>
The fine is $5,000.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A penalty of $250 a day accrues, capped at $5,000. What is owed after 34 days?"
},
{
"role": "assistant",
"content": "The fine is $5,000."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "5000", "printed": "5000", "notation": null} |
nlprog_det-setting-0073504 | <|start|><|user|>
On which weekday does May 5, 2024 fall?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(2024, 5, 5) # datetime.date(2024, 5, 5)
print(hearing.strftime("%A"))
```
Execution result — Sunday
It is a Sunday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "On which weekday does May 5, 2024 fall?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(2024, 5, 5) # datetime.date(2024, 5, 5)\nprint(hearing.strftime(\"%A\"))\n```\nExecution result — Sunday\n\nIt is a Sunday."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "Sunday", "printed": "Sunday", "notation": null} |
nlprog_det-setting-0073506 | <|start|><|system|>
Functions:
{"name": "eval_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}
{"name": "lookup_statute", "descri... | chat | [
{
"role": "system",
"content": "Functions:\n{\"name\": \"eval_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require... | nlprog_det | setting | original | null | deterministic | [] | [] | 362 | {"gold": "68", "printed": "68", "notation": null} |
nlprog_det-setting-0073507 | <|start|><|user|>
Attendance was 61 out of 80. Express it as a percent.<|eot|>
<|assistant|>
```python
present = 61
total = 80
percent = present / total * 100 # 76.25
print(round(percent, 1))
```
stdout:
76.2
Attendance was 76.2%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Attendance was 61 out of 80. Express it as a percent."
},
{
"role": "assistant",
"content": "```python\npresent = 61\ntotal = 80\npercent = present / total * 100 # 76.25\nprint(round(percent, 1))\n```\nstdout:\n76.2\n\nAttendance was 76.2%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "76.2", "printed": "76.2", "notation": null} |
nlprog_det-setting-0073508 | A lawyer's fee is 25% of a $25,000 recovery. How large is the fee?
Computing it:
```python
recovery = 25000
rate = 25 / 100 # 0.25
fee = recovery * rate # 6250.0
print(f"{fee:.2f}")
```
Printed result — 6250.00
The lawyer's fee comes to $6,250.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "6250.00", "printed": "6250.00", "notation": null} |
nlprog_det-setting-0073509 | <|start|><|user|>
Scale 450 g of lentils from 2 servings to 6 servings.<|eot|>
<|assistant|>
```python
grams = 450
serves = 2
needed_for = 6
scaled = grams * needed_for // serves # 1350
print(scaled)
```
Printed = 1350
Use 1350 g of lentils.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Scale 450 g of lentils from 2 servings to 6 servings."
},
{
"role": "assistant",
"content": "```python\ngrams = 450\nserves = 2\nneeded_for = 6\nscaled = grams * needed_for // serves # 1350\nprint(scaled)\n```\nPrinted = 1350\n\nUse 1350 g of lentils."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "1350", "printed": "1350", "notation": null} |
nlprog_det-setting-0073510 | Monthly: $9. Annual: $90. What is saved per year by paying annually?
Let's compute it with Python.
```python
monthly = 9
yearly = 90
savings = monthly * 12 - yearly # 18
print(savings)
```
What it prints — 18
$18 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0073511 | <|start|><|user|>
Sales went from 800 to 720. What is the percent change?<|eot|>
<|assistant|>
```python
old = 800
new = 720
change = (new - old) / old * 100 # -10.0
print(round(change))
```
Console output — -10
It changed by -10%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Sales went from 800 to 720. What is the percent change?"
},
{
"role": "assistant",
"content": "```python\nold = 800\nnew = 720\nchange = (new - old) / old * 100 # -10.0\nprint(round(change))\n```\nConsole output — -10\n\nIt changed by -10%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "-10", "printed": "-10", "notation": null} |
nlprog_det-setting-0073512 | How many of 118 votes make 60% (round up)?
As Python:
```python
import math
voters = 118
needed = math.ceil(voters * 60 / 100) # 71
print(needed)
```
It outputs 71.
At least 71 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "71", "printed": "71", "notation": null} |
nlprog_det-setting-0073513 | The rules require 2/3 of 16 members (round up) to be present. How many is that?
Computing it:
import math
members = 16
quorum = math.ceil(members * 2 / 3) # 11
print(quorum)
stdout:
11
11 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "11", "printed": "11", "notation": null} |
nlprog_det-setting-0073514 | <|start|><|user|>
Walls total 1047 sq ft and each can covers 250 sq ft. How many cans should be bought?<|eot|>
<|assistant|>
```python
import math
area = 1047
coverage = 250
cans = math.ceil(area / coverage) # 5
print(cans)
```
stdout: 5
Buy 5 cans.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Walls total 1047 sq ft and each can covers 250 sq ft. How many cans should be bought?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 1047\ncoverage = 250\ncans = math.ceil(area / coverage) # 5\nprint(cans)\n```\nstdout: 5\n\nBuy 5 cans."
}
... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0073515 | <|start|><|system|>
You are a teaching assistant.<|eot|>
<|user|>
The paralegal logged 6.5 hours at a rate of $250. How much is billed?<|eot|>
<|assistant|>
hours = 6.5
rate = 250
bill = hours * rate
print(f"{bill:.2f}")
Out = 1625.00
The bill is $1,625.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a teaching assistant."
},
{
"role": "user",
"content": "The paralegal logged 6.5 hours at a rate of $250. How much is billed?"
},
{
"role": "assistant",
"content": " hours = 6.5\n rate = 250\n bill = hours * rate\n print(f\"{bill:.2... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "1625.00", "printed": "1625.00", "notation": null} |
nlprog_det-setting-0073516 | <|start|><|user|>
Ines has 5 documents to file, and each filing costs $405. How much are the filing fees in total?<|eot|>
<|assistant|>
```python
fee = 405
filings = 5
total = fee * filings # 2025
print(total)
```
# program output: 2025
The total fee is $2,025.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Ines has 5 documents to file, and each filing costs $405. How much are the filing fees in total?"
},
{
"role": "assistant",
"content": "```python\nfee = 405\nfilings = 5\ntotal = fee * filings # 2025\nprint(total)\n```\n# program output: 2025\n\nThe total fee is $2... | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "2025", "printed": "2025", "notation": null} |
nlprog_det-setting-0073517 | The rules require 2/3 of 17 members (round up) to be present. How many is that?
Script:
```python
import math
members = 17
quorum = math.ceil(members * 2 / 3) # 12
print(quorum)
```
When run, it prints 12.
That is 12 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0073518 | An attorney bills 4 hours at $410 per hour. What is the bill?
The bill is $1,640.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "1640.00", "printed": "1640.00", "notation": null} |
nlprog_det-setting-0073519 | <|start|><|user|>
A lease runs for 6 months at $850 per month. How much rent is paid over the whole term?<|eot|>
<|assistant|>
monthly_rent = 850
months = 6
total = monthly_rent * months # 5100
print(total)
# execution result: 5100
The rent over the term is $5,100.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lease runs for 6 months at $850 per month. How much rent is paid over the whole term?"
},
{
"role": "assistant",
"content": " monthly_rent = 850\n months = 6\n total = monthly_rent * months # 5100\n print(total)\n# execution result: 5100\n\nThe rent o... | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "5100", "printed": "5100", "notation": null} |
nlprog_det-setting-0073520 | Arjun lends $1,000 at 6% simple interest per year for 3 years. How much interest is earned?
Translated to Python:
```python
principal = 1000
rate = 6 / 100 # 0.06
years = 3
interest = principal * rate * years # 180.0
print(f"{interest:.2f}")
```
# printed result: 180.00
The interest is $180.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "180.00", "printed": "180.00", "notation": null} |
nlprog_det-setting-0073521 | The paralegal logged 1.5 hours at a rate of $180. How much is billed?
Written as code:
```python
hours = 1.5
rate = 180
bill = hours * rate # 270.0
print(f"{bill:.2f}")
```
It prints 270.00, as expected.
That comes to $270.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "270.00", "printed": "270.00", "notation": null} |
nlprog_det-setting-0073522 | How many meters are in 59.5 kilometers?
In Python:
```python
km = 59.5
meters = km * 1000
print(round(meters))
```
Execution prints 59500.
That is 59,500 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "59500", "printed": "59500", "notation": null} |
nlprog_det-setting-0073523 | A 7 lb package ships at $10 base plus $0.75/lb. What is the charge?
In Python:
base = 10
per_pound = 0.75
weight = 7
cost = base + per_pound * weight # 15.25
print(f"{cost:.2f}")
Python prints 15.25, as expected.
Shipping costs $15.25. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "15.25", "printed": "15.25", "notation": null} |
nlprog_det-setting-0073524 | Find the mean of these test scores: 78, 97, 92 and 77.
Here is the program.
```python
scores = [78, 97, 92, 77]
average = sum(scores) // len(scores) # 86
print(average)
```
# out: 86
The average score is 86. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "86", "printed": "86", "notation": null} |
nlprog_det-setting-0073525 | A hall has 26 rows of 20 seats, and 29 seats are empty. How many people are seated?
```python
rows = 26
per_row = 20
empty = 29
seated = rows * per_row - empty # 491
print(seated)
```
Running it prints 491.
491 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "491", "printed": "491", "notation": null} |
nlprog_det-setting-0073526 | <|start|><|user|>
Fines run at $100 per day up to a maximum of $2,500. How much after 24 days?<|eot|>
<|assistant|>
per_day = 100
days = 24
cap = 2500
fine = min(per_day * days, cap) # 2400
print(fine)
Run result = 2400
$2,400 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Fines run at $100 per day up to a maximum of $2,500. How much after 24 days?"
},
{
"role": "assistant",
"content": " per_day = 100\n days = 24\n cap = 2500\n fine = min(per_day * days, cap) # 2400\n print(fine)\nRun result = 2400\n\n$2,400 is owed."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "2400", "printed": "2400", "notation": null} |
nlprog_det-setting-0073527 | <|start|><|user|>
A 10 × 15 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?<|eot|>
<|assistant|>
```python
import math
length = 10
width = 15
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 150
print(tiles)
```
Out = 150
It takes 150 tiles.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 10 × 15 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 10\nwidth = 15\ntile = 1\ntiles = math.ceil(length * width / (tile * tile)) # 150\nprint(tiles)\n```\nOut = 150... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "150", "printed": "150", "notation": null} |
nlprog_det-setting-0073528 | Attendance was 147 out of 200. Express it as a percent.
Program:
present = 147
total = 200
percent = present / total * 100 # 73.5
print(round(percent, 1))
Executing it gives 73.5, as expected.
73.5% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "73.5", "printed": "73.5", "notation": null} |
nlprog_det-setting-0073529 | <|start|><|user|>
If a 90-minute appointment begins at 2:10 PM, what time does it finish?<|eot|>
<|assistant|>
```python
start = 14 * 60 + 10
end = start + 90
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Out — 3:40 PM
The appointment finishes at 3:40 PM.... | chat | [
{
"role": "user",
"content": "If a 90-minute appointment begins at 2:10 PM, what time does it finish?"
},
{
"role": "assistant",
"content": "```python\nstart = 14 * 60 + 10\nend = start + 90\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'... | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "3:40 PM", "printed": "3:40 PM", "notation": null} |
nlprog_det-setting-0073530 | <|start|><|user|>
Jonas was born on February 13, 1993. How old is Jonas on January 5, 2021?<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1993, 2, 13) # datetime.date(1993, 2, 13)
on = date(2021, 1, 5) # datetime.date(2021, 1, 5)
age = on.year - born.year - ((on.month, on.day) < (born.month, bo... | chat | [
{
"role": "user",
"content": "Jonas was born on February 13, 1993. How old is Jonas on January 5, 2021?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1993, 2, 13) # datetime.date(1993, 2, 13)\non = date(2021, 1, 5) # datetime.date(2021, 1, 5)\nage = o... | nlprog_det | setting | original | null | deterministic | [] | [] | 156 | {"gold": "27", "printed": "27", "notation": null} |
nlprog_det-setting-0073531 | <|start|><|user|>
A lawyer's fee is 25% of a $40,000 recovery. How large is the fee?<|eot|>
<|assistant|>
```python
recovery = 40000
rate = 25 / 100 # 0.25
fee = recovery * rate # 10000.0
print(f"{fee:.2f}")
```
That prints 10000.00.
The lawyer's fee comes to $10,000.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lawyer's fee is 25% of a $40,000 recovery. How large is the fee?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 40000\nrate = 25 / 100 # 0.25\nfee = recovery * rate # 10000.0\nprint(f\"{fee:.2f}\")\n```\nThat prints 10000.00.\n\nThe lawyer's fee co... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "10000.00", "printed": "10000.00", "notation": null} |
nlprog_det-setting-0073532 | <|start|><|user|>
What does $10,000 grow to in 3 years at 4% annual compounding?<|eot|>
<|assistant|>
```python
principal = 10000
rate = 4 / 100 # 0.04
years = 3
value = principal * (1 + rate) ** years # 11248.640000000001
print(f"{value:.2f}")
```
Printed — 11248.64
It is worth $11,248.64.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What does $10,000 grow to in 3 years at 4% annual compounding?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 10000\nrate = 4 / 100 # 0.04\nyears = 3\nvalue = principal * (1 + rate) ** years # 11248.640000000001\nprint(f\"{value:.2f}\")\n```\nPrinte... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "11248.64", "printed": "11248.64", "notation": null} |
nlprog_det-setting-0073533 | On which weekday does October 9, 2016 fall?
Program:
```python
from datetime import date
hearing = date(2016, 10, 9) # datetime.date(2016, 10, 9)
print(hearing.strftime("%A"))
```
Console:
Sunday
It is a Sunday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "Sunday", "printed": "Sunday", "notation": null} |
nlprog_det-setting-0073534 | A 464-page report must be reviewed in 16 days. How many pages a day is that, evenly?
pages = 464
days = 16
per_day = pages // days # 29
print(per_day)
stdout: 29
That is 29 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 69 | {"gold": "29", "printed": "29", "notation": null} |
nlprog_det-setting-0073535 | Signe buys 9 boxes of 12 paper reams each and gives away 7 paper reams. How many paper reams are left?
We write it as a program:
boxes = 9
per_box = 12
given_away = 7
left = boxes * per_box - given_away # 101
print(left)
Execution result: 101
101 paper reams are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "101", "printed": "101", "notation": null} |
nlprog_det-setting-0073536 | Prorate $2,400 of monthly rent for 22 days of a 30-day month.
Python version:
```python
rent = 2400
days_in_month = 30
days_occupied = 22
prorated = rent * days_occupied / days_in_month # 1760.0
print(f"{prorated:.2f}")
```
# output: 1760.00
The tenant owes $1,760.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "1760.00", "printed": "1760.00", "notation": null} |
nlprog_det-setting-0073538 | The firm was founded in 2000. How many years had passed by 2023?
Code:
```python
start_year = 2000
end_year = 2023
print(end_year - start_year)
```
Printed result: 23
That is 23 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 70 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0073539 | <|start|><|system|>
Write short, precise answers.<|eot|>
<|user|>
A trial runs from November 13, 2028 to November 29, 2028, counting both days. How many calendar days is that?<|eot|>
<|assistant|>
That is 17 days.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Write short, precise answers."
},
{
"role": "user",
"content": "A trial runs from November 13, 2028 to November 29, 2028, counting both days. How many calendar days is that?"
},
{
"role": "assistant",
"content": "That is 17 days."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 54 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0073540 | If a 135-minute seminar begins at 11:00 AM, what time does it finish?
Here is the program.
```python
start = 11 * 60 + 0
end = start + 135
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Execution prints 1:15 PM, as expected.
The seminar finishes at 1:15 P... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "1:15 PM", "printed": "1:15 PM", "notation": null} |
nlprog_det-setting-0073541 | <|start|><|user|>
Abel was born on December 12, 2002. How old is Abel on April 19, 2030?<|eot|>
<|assistant|>
from datetime import date
born = date(2002, 12, 12) # datetime.date(2002, 12, 12)
on = date(2030, 4, 19) # datetime.date(2030, 4, 19)
age = on.year - born.year - ((on.month, on.day) < (born.mo... | chat | [
{
"role": "user",
"content": "Abel was born on December 12, 2002. How old is Abel on April 19, 2030?"
},
{
"role": "assistant",
"content": " from datetime import date\n born = date(2002, 12, 12) # datetime.date(2002, 12, 12)\n on = date(2030, 4, 19) # datetime.date(2030, 4, 19)\n a... | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "27", "printed": "27", "notation": null} |
nlprog_det-setting-0073542 | 860 files go into boxes of 50. How many boxes does that take?
```python
import math
files = 860
per_box = 50
boxes = math.ceil(files / per_box) # 18
print(boxes)
```
(Printed result: 18)
It takes 18 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0073543 | Convert 5 °C to Fahrenheit.
Programmatically:
celsius = 5
fahrenheit = celsius * 9 / 5 + 32 # 41.0
print(round(fahrenheit))
The program prints 41, as expected.
It equals 41 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "41", "printed": "41", "notation": null} |
nlprog_det-setting-0073544 | What is a 18% tip on a $185.54 bill?
A Python solution:
```python
bill = 185.54
tip_rate = 18 / 100 # 0.18
tip = bill * tip_rate # 33.3972
print(f"{tip:.2f}")
```
When run, it prints 33.40.
Leave $33.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "33.40", "printed": "33.40", "notation": null} |
nlprog_det-setting-0073545 | <|start|><|user|>
Filing fees are $45 per document. What do 5 filings cost?<|eot|>
<|assistant|>
```python
fee = 45
filings = 5
total = fee * filings # 225
print(total)
```
The program prints 225.
The total fee is $225.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Filing fees are $45 per document. What do 5 filings cost?"
},
{
"role": "assistant",
"content": "```python\nfee = 45\nfilings = 5\ntotal = fee * filings # 225\nprint(total)\n```\nThe program prints 225.\n\nThe total fee is $225."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "225", "printed": "225", "notation": null} |
nlprog_det-setting-0073546 | <|start|><|user|>
Fixed costs are $9,000. Each unit sells for $30 and costs $26 to make. How many units must be sold to break even?<|eot|>
<|assistant|>
import math
fixed = 9000
price = 30
variable = 26
units = math.ceil(fixed / (price - variable)) # 2250
print(units)
It prints: 2250
Break-eve... | chat | [
{
"role": "user",
"content": "Fixed costs are $9,000. Each unit sells for $30 and costs $26 to make. How many units must be sold to break even?"
},
{
"role": "assistant",
"content": " import math\n fixed = 9000\n price = 30\n variable = 26\n units = math.ceil(fixed / (price - vari... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "2250", "printed": "2250", "notation": null} |
nlprog_det-setting-0073547 | Rafael's scores were 71, 52, 60, 65, 51, 50 and 64. What is the average score?
Let's compute it with Python.
```python
scores = [71, 52, 60, 65, 51, 50, 64]
average = sum(scores) // len(scores) # 59
print(average)
```
Out = 59
The average score is 59. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "59", "printed": "59", "notation": null} |
nlprog_det-setting-0073548 | <|start|><|user|>
A $30,000 grant pays $2,000 up front and the rest in 3 equal installments. How large is each installment?<|eot|>
<|assistant|>
```python
grant = 30000
up_front = 2000
installments = 3
each = (grant - up_front) / installments # 9333.333333333334
print(f"{each:.2f}")
```
# out: 9333.33
$9,333.33 per i... | chat | [
{
"role": "user",
"content": "A $30,000 grant pays $2,000 up front and the rest in 3 equal installments. How large is each installment?"
},
{
"role": "assistant",
"content": "```python\ngrant = 30000\nup_front = 2000\ninstallments = 3\neach = (grant - up_front) / installments # 9333.33333333333... | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "9333.33", "printed": "9333.33", "notation": null} |
nlprog_det-setting-0073549 | At $28.95 an hour, what does 12 hours of work pay?
Here is the program.
```python
rate = 28.95
hours = 12
earnings = rate * hours # 347.4
print(f"{earnings:.2f}")
```
# result: 347.40
That earns $347.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "347.40", "printed": "347.40", "notation": null} |
nlprog_det-setting-0073550 | A customer buys 2 labels at $25 each, 4 paper reams at $15 each, 2 tape rolls at $5 each, 3 hard drives at $17 each and pays with $200. How much change is due?
As Python:
```python
items = [(2, 25), (4, 15), (2, 5), (3, 17)]
total = sum(q * p for q, p in items) # 171
paid = 200
change = paid - total # 29
print(chang... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "29", "printed": "29", "notation": null} |
nlprog_det-setting-0073551 | <|start|><|system|>
Tools you may use:
[{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "math_engine", "description": "Run Python code in a sandbox; the result is whatever the code pri... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"math_engine\", \"description\": \"Run Pyt... | nlprog_det | setting | original | null | deterministic | [] | [] | 327 | {"gold": "2400.00", "printed": "2400.00", "notation": null} |
nlprog_det-setting-0073552 | 12 hours of work at $225 an hour: what is the total charge? That comes to $2,700.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 29 | {"gold": "2700.00", "printed": "2700.00", "notation": null} |
nlprog_det-setting-0073553 | <|start|><|user|>
At $20.61 an hour, what does 24 hours of work pay?<|eot|>
<|assistant|>
```python
rate = 20.61
hours = 24
earnings = rate * hours # 494.64
print(f"{earnings:.2f}")
```
Shell output: 494.64
That earns $494.64.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $20.61 an hour, what does 24 hours of work pay?"
},
{
"role": "assistant",
"content": "```python\nrate = 20.61\nhours = 24\nearnings = rate * hours # 494.64\nprint(f\"{earnings:.2f}\")\n```\nShell output: 494.64\n\nThat earns $494.64."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "494.64", "printed": "494.64", "notation": null} |
nlprog_det-setting-0073555 | <|start|><|system|>
Tool definitions:
{"name": "code_runner", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|>
<|user|>
A count moves from 1,200 to 1,380. By wh... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"code_runner\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program\"]}}"
... | nlprog_det | setting | original | null | deterministic | [] | [] | 208 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0073556 | <|start|><|user|>
Sales went from 400 to 560. What is the percent change?<|eot|>
<|assistant|>
The change is 40%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Sales went from 400 to 560. What is the percent change?"
},
{
"role": "assistant",
"content": "The change is 40%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0073557 | Find the mean of these test scores: 100, 67, 88, 53 and 87.
Program:
```python
scores = [100, 67, 88, 53, 87]
average = sum(scores) // len(scores) # 79
print(average)
```
Execution result — 79
The average score is 79. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "79", "printed": "79", "notation": null} |
nlprog_det-setting-0073558 | What is a 18% tip on a $205.91 bill? Leave $37.06. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 23 | {"gold": "37.06", "printed": "37.06", "notation": null} |
nlprog_det-setting-0073559 | Each storage box holds 50 files. How many boxes are needed for 301 files?
Computing it:
```python
import math
files = 301
per_box = 50
boxes = math.ceil(files / per_box) # 7
print(boxes)
```
Printed result: 7
7 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0073560 | <|start|><|user|>
A 224-page report must be reviewed in 16 days. How many pages a day is that, evenly?<|eot|>
<|assistant|>
pages = 224
days = 16
per_day = pages // days # 14
print(per_day)
Execution result: 14
14 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 224-page report must be reviewed in 16 days. How many pages a day is that, evenly?"
},
{
"role": "assistant",
"content": " pages = 224\n days = 16\n per_day = pages // days # 14\n print(per_day)\nExecution result: 14\n\n14 pages a day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0073561 | A shift runs from 10:37 AM to 4:27 PM. How long is it in minutes?
We can compute it in Python.
start = 10 * 60 + 37 # 637
end = 16 * 60 + 27 # 987
print(end - start)
Out = 350
It is 350 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "350", "printed": "350", "notation": null} |
nlprog_det-setting-0073562 | One can of paint covers 350 square feet. How many cans are needed for 1214 square feet of wall?
Buy 4 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "4", "printed": "4", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.