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-0077207 | <|start|><|system|>
You have access to these functions:
[{"name": "compute", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
Parking is $2 pe... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"compute\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir... | nlprog_det | setting | original | null | deterministic | [] | [] | 208 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0077208 | <|start|><|user|>
A 18 × 14 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?<|eot|>
<|assistant|>
63 tiles are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 18 × 14 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?"
},
{
"role": "assistant",
"content": "63 tiles are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 47 | {"gold": "63", "printed": "63", "notation": null} |
nlprog_det-setting-0077209 | <|start|><|user|>
Counting the first and last day, how many days are there from July 7, 2021 through July 19, 2021?<|eot|>
<|assistant|>
13 calendar days.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Counting the first and last day, how many days are there from July 7, 2021 through July 19, 2021?"
},
{
"role": "assistant",
"content": "13 calendar days."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0077210 | <|start|><|user|>
Printing costs 15 cents a page. What does it cost to print 83 copies of a 17-page handout?<|eot|>
<|assistant|>
```python
pages = 17
copies = 83
cost_per_page = 0.15
cost = pages * copies * cost_per_page # 211.65
print(f"{cost:.2f}")
```
Run result: 211.65
Printing costs $211.65.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Printing costs 15 cents a page. What does it cost to print 83 copies of a 17-page handout?"
},
{
"role": "assistant",
"content": "```python\npages = 17\ncopies = 83\ncost_per_page = 0.15\ncost = pages * copies * cost_per_page # 211.65\nprint(f\"{cost:.2f}\")\n```\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "211.65", "printed": "211.65", "notation": null} |
nlprog_det-setting-0077211 | With 20 rows of 15 chairs and 35 empty chairs, how many chairs are taken?
Here's the code.
```python
rows = 20
per_row = 15
empty = 35
seated = rows * per_row - empty
print(seated)
```
Running it prints 265.
265 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "265", "printed": "265", "notation": null} |
nlprog_det-setting-0077212 | <|start|><|user|>
Reza and Sara share $504 in the ratio 1:2. How much does Reza get?<|eot|>
<|assistant|>
```python
total = 504
parts_a = 1
parts_b = 2
share_a = total * parts_a // (parts_a + parts_b) # 168
print(share_a)
```
(Console output: 168)
Reza gets $168.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Reza and Sara share $504 in the ratio 1:2. How much does Reza get?"
},
{
"role": "assistant",
"content": "```python\ntotal = 504\nparts_a = 1\nparts_b = 2\nshare_a = total * parts_a // (parts_a + parts_b) # 168\nprint(share_a)\n```\n(Console output: 168)\n\nReza ge... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "168", "printed": "168", "notation": null} |
nlprog_det-setting-0077213 | A storeroom has 306 cables. The office uses 34 a day. How many are left after 9 days?
A few lines of Python do it:
```python
stock = 306
per_day = 34
days = 9
left = stock - per_day * days
print(left)
```
# stdout: 0
0 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "0", "printed": "0", "notation": null} |
nlprog_det-setting-0077215 | <|start|><|user|>
Fixed costs are $9,000. Each unit sells for $15 and costs $11 to make. How many units must be sold to break even?<|eot|>
<|assistant|>
```python
import math
fixed = 9000
price = 15
variable = 11
units = math.ceil(fixed / (price - variable)) # 2250
print(units)
```
Printed — 2250
Break-even is 2250 u... | chat | [
{
"role": "user",
"content": "Fixed costs are $9,000. Each unit sells for $15 and costs $11 to make. How many units must be sold to break even?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 9000\nprice = 15\nvariable = 11\nunits = math.ceil(fixed / (price - variable)) #... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "2250", "printed": "2250", "notation": null} |
nlprog_det-setting-0077216 | The bridge was finished in 2009. How many years had passed by 2044?
35 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 23 | {"gold": "35", "printed": "35", "notation": null} |
nlprog_det-setting-0077217 | <|start|><|user|>
$10,000 is invested at 3% compounded yearly. What is it worth after 5 years?<|eot|>
<|assistant|>
```python
principal = 10000
rate = 3 / 100 # 0.03
years = 5
value = principal * (1 + rate) ** years # 11592.740743
print(f"{value:.2f}")
```
The interpreter prints: 11592.74
The balance is $11,592.74.<... | chat | [
{
"role": "user",
"content": "$10,000 is invested at 3% compounded yearly. What is it worth after 5 years?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 10000\nrate = 3 / 100 # 0.03\nyears = 5\nvalue = principal * (1 + rate) ** years # 11592.740743\nprint(f\"{value:.2f}\")\n```... | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "11592.74", "printed": "11592.74", "notation": null} |
nlprog_det-setting-0077218 | <|start|><|user|>
With 7 rows of 12 chairs and 3 empty chairs, how many chairs are taken?<|eot|>
<|assistant|>
```python
rows = 7
per_row = 12
empty = 3
seated = rows * per_row - empty # 81
print(seated)
```
# execution result: 81
81 seats are taken.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 7 rows of 12 chairs and 3 empty chairs, how many chairs are taken?"
},
{
"role": "assistant",
"content": "```python\nrows = 7\nper_row = 12\nempty = 3\nseated = rows * per_row - empty # 81\nprint(seated)\n```\n# execution result: 81\n\n81 seats are taken."
}... | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "81", "printed": "81", "notation": null} |
nlprog_det-setting-0077219 | <|start|><|system|>
Tools (call with JSON):
[{"name": "compute", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
A 5% incr... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"compute\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, ... | nlprog_det | setting | original | null | deterministic | [] | [] | 226 | {"gold": "1155.00", "printed": "1155.00", "notation": null} |
nlprog_det-setting-0077220 | <|start|><|user|>
A 6-month warranty starts on February 15, 2019. On what date does it end?<|eot|>
<|assistant|>
```python
from datetime import date
start = date(2019, 2, 15)
months = 6
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoform... | chat | [
{
"role": "user",
"content": "A 6-month warranty starts on February 15, 2019. On what date does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nstart = date(2019, 2, 15)\nmonths = 6\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(start.... | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "2019-08-15", "printed": "2019-08-15", "notation": null} |
nlprog_det-setting-0077221 | Tomas's scores were 85, 73, 53, 51, 66, 92 and 98. What is the average score?
Translated to Python:
scores = [85, 73, 53, 51, 66, 92, 98]
average = sum(scores) // len(scores) # 74
print(average)
# result: 74
The average score is 74. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "74", "printed": "74", "notation": null} |
nlprog_det-setting-0077222 | <|start|><|system|>
You may call the tools below.
[{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "compute", "description": "A Python interpreter. Returns standard output.", "paramete... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"compute\", \"description\": \"... | nlprog_det | setting | original | null | deterministic | [] | [] | 314 | {"gold": "12:10 PM", "printed": "12:10 PM", "notation": null} |
nlprog_det-setting-0077223 | <|start|><|user|>
3 books come back 27 days late, at $0.20 a day each. What is the fine?<|eot|>
<|assistant|>
The fine is $16.20.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "3 books come back 27 days late, at $0.20 a day each. What is the fine?"
},
{
"role": "assistant",
"content": "The fine is $16.20."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "16.20", "printed": "16.20", "notation": null} |
nlprog_det-setting-0077224 | 6 walks at 300 calories each burn how many calories in total?
Let the code do the arithmetic:
```python
per_session = 300
sessions = 6
total = per_session * sessions # 1800
print(total)
```
Out = 1800
That burns 1800 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "1800", "printed": "1800", "notation": null} |
nlprog_det-setting-0077225 | To read 225 pages in 15 days, how many pages per day are needed?
15 pages a day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 24 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0077226 | 2 clients win $30,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?
Computing it:
```python
award = 30000
fee = award * 40 / 100 # 12000.0
remaining = award - fee # 18000.0
per_client = remaining / 2 # 9000.0
print(f"{per_client:.2f}")
```
Output: 9000.00
Each share is $9,000... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "9000.00", "printed": "9000.00", "notation": null} |
nlprog_det-setting-0077227 | <|start|><|system|>
You are a careful reviewer of figures.<|eot|>
<|user|>
31 volunteers are split into 5 equal teams. How many are on each team, and how many are left over?<|eot|>
<|assistant|>
total = 31
groups = 5
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left... | chat | [
{
"role": "system",
"content": "You are a careful reviewer of figures."
},
{
"role": "user",
"content": "31 volunteers are split into 5 equal teams. How many are on each team, and how many are left over?"
},
{
"role": "assistant",
"content": " total = 31\n groups = 5\n per_g... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "6 each, 1 left over", "printed": "6 each, 1 left over", "notation": null} |
nlprog_det-setting-0077228 | A shift runs from 10:41 AM to 4:54 PM. How long is it in minutes?
The Python version:
```python
start = 10 * 60 + 41 # 641
end = 16 * 60 + 54 # 1014
print(end - start)
```
Printed: 373
It is 373 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "373", "printed": "373", "notation": null} |
nlprog_det-setting-0077229 | <|start|><|user|>
A 6-month warranty starts on April 13, 2022. On what date does it end?<|eot|>
<|assistant|>
```python
from datetime import date
start = date(2022, 4, 13)
months = 6
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat(... | chat | [
{
"role": "user",
"content": "A 6-month warranty starts on April 13, 2022. On what date does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nstart = date(2022, 4, 13)\nmonths = 6\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(start.yea... | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "2022-10-13", "printed": "2022-10-13", "notation": null} |
nlprog_det-setting-0077230 | Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 48 hours?
Here is the program.
```python
rate = 25.0
hours = 48
regular = 40 * rate # 1000.0
overtime = (hours - 40) * rate * 1.5 # 300.0
pay = regular + overtime # 1300.0
print(f"{pay:.2f}")
```
Interpreter output — 1300.00
Yok... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "1300.00", "printed": "1300.00", "notation": null} |
nlprog_det-setting-0077231 | <|start|><|system|>
Tool definitions:
[{"name": "run_python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
Prorate $900 of monthly ... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"run_python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\... | nlprog_det | setting | original | null | deterministic | [] | [] | 248 | {"gold": "348.39", "printed": "348.39", "notation": null} |
nlprog_det-setting-0077232 | <|start|><|user|>
A car travels 486 miles in 2 hours. What is its average speed in miles per hour?<|eot|>
<|assistant|>
distance = 486
hours = 2
speed = distance / hours # 243.0
print(round(speed))
Execution result — 243
The average speed is 243 mph.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A car travels 486 miles in 2 hours. What is its average speed in miles per hour?"
},
{
"role": "assistant",
"content": " distance = 486\n hours = 2\n speed = distance / hours # 243.0\n print(round(speed))\nExecution result — 243\n\nThe average speed is ... | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "243", "printed": "243", "notation": null} |
nlprog_det-setting-0077233 | <|start|><|user|>
Grace and Chen share $1,131 in the ratio 1:2. How much does Grace get?<|eot|>
<|assistant|>
total = 1131
parts_a = 1
parts_b = 2
share_a = total * parts_a // (parts_a + parts_b) # 377
print(share_a)
The script prints 377.
Grace's share is $377.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Grace and Chen share $1,131 in the ratio 1:2. How much does Grace get?"
},
{
"role": "assistant",
"content": " total = 1131\n parts_a = 1\n parts_b = 2\n share_a = total * parts_a // (parts_a + parts_b) # 377\n print(share_a)\nThe script prints 377.\... | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "377", "printed": "377", "notation": null} |
nlprog_det-setting-0077234 | Rent of $1,500 goes up 3%. What is the new rent?
As a program:
```python
rent = 1500
increase = 3 / 100 # 0.03
new_rent = rent * (1 + increase) # 1545.0
print(f"{new_rent:.2f}")
```
The run gives: 1545.00
It rises to $1,545.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "1545.00", "printed": "1545.00", "notation": null} |
nlprog_det-setting-0077235 | With 20% off, what does a $120 chair cost? It costs $96.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 22 | {"gold": "96.00", "printed": "96.00", "notation": null} |
nlprog_det-setting-0077236 | Fixed costs are $1,200. Each unit sells for $15 and costs $10 to make. How many units must be sold to break even?
We can compute it in Python.
```python
import math
fixed = 1200
price = 15
variable = 10
units = math.ceil(fixed / (price - variable)) # 240
print(units)
```
Interpreter output: 240
Break-even is 240 uni... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "240", "printed": "240", "notation": null} |
nlprog_det-setting-0077237 | A claim accrued on June 18, 2020. The limitations period is 4 years. On what date does it expire?
The period expires on June 18, 2024. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "2024-06-18", "printed": "2024-06-18", "notation": null} |
nlprog_det-setting-0077238 | 281 volunteers are split into 7 equal teams. How many are on each team, and how many are left over?
Translated to Python:
```python
total = 281
groups = 7
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
It prints: 40 each, 1 left over
40 each, 1 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "40 each, 1 left over", "printed": "40 each, 1 left over", "notation": null} |
nlprog_det-setting-0077239 | <|start|><|system|>
Answer accurately and briefly.<|eot|>
<|user|>
How many days are there from September 23, 2028 to October 13, 2028?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2028, 9, 23) # datetime.date(2028, 9, 23)
second = date(2028, 10, 13) # datetime.date(2028, 10, 13)
print((secon... | chat | [
{
"role": "system",
"content": "Answer accurately and briefly."
},
{
"role": "user",
"content": "How many days are there from September 23, 2028 to October 13, 2028?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2028, 9, 23) # datetime.dat... | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0077240 | What does $5,000 grow to in 3 years at 4% annual compounding?
Python version:
```python
principal = 5000
rate = 4 / 100 # 0.04
years = 3
value = principal * (1 + rate) ** years # 5624.320000000001
print(f"{value:.2f}")
```
Run it and it prints 5624.32.
It is worth $5,624.32. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "5624.32", "printed": "5624.32", "notation": null} |
nlprog_det-setting-0077241 | <|start|><|user|>
Walls total 1219 sq ft and each can covers 400 sq ft. How many cans should be bought?<|eot|>
<|assistant|>
4 cans are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Walls total 1219 sq ft and each can covers 400 sq ft. How many cans should be bought?"
},
{
"role": "assistant",
"content": "4 cans are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0077242 | Tomas lends $2,500 at 4% simple interest per year for 5 years. How much interest is earned?
The interest is $500.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "500.00", "printed": "500.00", "notation": null} |
nlprog_det-setting-0077243 | <|start|><|system|>
You check calculations for an accounting team.<|eot|>
<|user|>
A library charges $0.20 per book per day late. What is the fine for 1 books that are 11 days late?<|eot|>
<|assistant|>
```python
per_day = 0.2
days_late = 11
books = 1
fine = per_day * days_late * books # 2.2
print(f"{fine:.2f}")
```
R... | chat | [
{
"role": "system",
"content": "You check calculations for an accounting team."
},
{
"role": "user",
"content": "A library charges $0.20 per book per day late. What is the fine for 1 books that are 11 days late?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.2\ndays_la... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "2.20", "printed": "2.20", "notation": null} |
nlprog_det-setting-0077244 | $2,000 is invested at 2% compounded yearly. What is it worth after 4 years?
The computation:
```python
principal = 2000
rate = 2 / 100
years = 4
value = principal * (1 + rate) ** years
print(f"{value:.2f}")
```
Run result = 2164.86
The balance is $2,164.86. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "2164.86", "printed": "2164.86", "notation": null} |
nlprog_det-setting-0077245 | The bridge was finished in 1998. How many years had passed by 2021?
23 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 22 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0077247 | <|start|><|user|>
4 hours of work at $410 an hour: what is the total charge?<|eot|>
<|assistant|>
hours = 4
rate = 410
bill = hours * rate # 1640
print(f"{bill:.2f}")
Result = 1640.00
That comes to $1,640.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "4 hours of work at $410 an hour: what is the total charge?"
},
{
"role": "assistant",
"content": " hours = 4\n rate = 410\n bill = hours * rate # 1640\n print(f\"{bill:.2f}\")\nResult = 1640.00\n\nThat comes to $1,640.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "1640.00", "printed": "1640.00", "notation": null} |
nlprog_det-setting-0077249 | A storeroom has 391 notebooks. The office uses 5 a day. How many are left after 16 days?
Programmatically:
stock = 391
per_day = 5
days = 16
left = stock - per_day * days # 311
print(left)
Console:
311
311 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "311", "printed": "311", "notation": null} |
nlprog_det-setting-0077250 | <|start|><|user|>
The rules require 3/5 of 55 members (round up) to be present. How many is that?<|eot|>
<|assistant|>
```python
import math
members = 55
quorum = math.ceil(members * 3 / 5) # 33
print(quorum)
```
Running this gives 33.
That is 33 members.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The rules require 3/5 of 55 members (round up) to be present. How many is that?"
},
{
"role": "assistant",
"content": "```python\nimport math\nmembers = 55\nquorum = math.ceil(members * 3 / 5) # 33\nprint(quorum)\n```\nRunning this gives 33.\n\nThat is 33 members."... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "33", "printed": "33", "notation": null} |
nlprog_det-setting-0077251 | What simple interest does $2,500 earn at 5% a year over 5 years?
Code:
```python
principal = 2500
rate = 5 / 100 # 0.05
years = 5
interest = principal * rate * years # 625.0
print(f"{interest:.2f}")
```
Output of the run: 625.00
It earns $625.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "625.00", "printed": "625.00", "notation": null} |
nlprog_det-setting-0077252 | <|start|><|system|>
Tools (call with JSON):
{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}
{"name": "calculator", "description": "A Python interprete... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"target\"]}}... | nlprog_det | setting | original | null | deterministic | [] | [] | 430 | {"gold": "56", "printed": "56", "notation": null} |
nlprog_det-setting-0077253 | What is a 10% tip on a $21.80 bill?
Script:
```python
bill = 21.8
tip_rate = 10 / 100 # 0.1
tip = bill * tip_rate # 2.18
print(f"{tip:.2f}")
```
Result:
2.18
The tip is $2.18. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "2.18", "printed": "2.18", "notation": null} |
nlprog_det-setting-0077254 | <|start|><|user|>
A penalty of $25 a day accrues, capped at $5,000. What is owed after 34 days?<|eot|>
<|assistant|>
```python
per_day = 25
days = 34
cap = 5000
fine = min(per_day * days, cap) # 850
print(fine)
```
Result = 850
The fine is $850.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A penalty of $25 a day accrues, capped at $5,000. What is owed after 34 days?"
},
{
"role": "assistant",
"content": "```python\nper_day = 25\ndays = 34\ncap = 5000\nfine = min(per_day * days, cap) # 850\nprint(fine)\n```\nResult = 850\n\nThe fine is $850."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "850", "printed": "850", "notation": null} |
nlprog_det-setting-0077255 | How many minutes pass from 11:53 AM to 2:17 PM on the same day? It is 144 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 25 | {"gold": "144", "printed": "144", "notation": null} |
nlprog_det-setting-0077256 | <|start|><|user|>
Split $1,148 between Mei and Olga in the ratio 3 to 4. What is Mei's share?<|eot|>
<|assistant|>
```python
total = 1148
parts_a = 3
parts_b = 4
share_a = total * parts_a // (parts_a + parts_b)
print(share_a)
```
That prints 492.
Mei gets $492.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Split $1,148 between Mei and Olga in the ratio 3 to 4. What is Mei's share?"
},
{
"role": "assistant",
"content": "```python\ntotal = 1148\nparts_a = 3\nparts_b = 4\nshare_a = total * parts_a // (parts_a + parts_b)\nprint(share_a)\n```\nThat prints 492.\n\nMei gets ... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "492", "printed": "492", "notation": null} |
nlprog_det-setting-0077257 | <|start|><|user|>
6 runs at 250 calories each burn how many calories in total?<|eot|>
<|assistant|>
That burns 1500 calories.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "6 runs at 250 calories each burn how many calories in total?"
},
{
"role": "assistant",
"content": "That burns 1500 calories."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "1500", "printed": "1500", "notation": null} |
nlprog_det-setting-0077259 | <|start|><|user|>
At a 8% tax rate, what is the tax on $488.24?<|eot|>
<|assistant|>
```python
price = 488.24
tax_rate = 8 / 100 # 0.08
tax = price * tax_rate # 39.059200000000004
print(f"{tax:.2f}")
```
The code prints: 39.06
$39.06 in tax.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At a 8% tax rate, what is the tax on $488.24?"
},
{
"role": "assistant",
"content": "```python\nprice = 488.24\ntax_rate = 8 / 100 # 0.08\ntax = price * tax_rate # 39.059200000000004\nprint(f\"{tax:.2f}\")\n```\nThe code prints: 39.06\n\n$39.06 in tax."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "39.06", "printed": "39.06", "notation": null} |
nlprog_det-setting-0077260 | <|start|><|user|>
A settlement of $15,000 is split equally among 2 parties. How much does each party receive?<|eot|>
<|assistant|>
settlement = 15000
parties = 2
share = settlement // parties # 7500
print(share)
The script prints 7500, as expected.
Each party receives $7,500.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A settlement of $15,000 is split equally among 2 parties. How much does each party receive?"
},
{
"role": "assistant",
"content": " settlement = 15000\n parties = 2\n share = settlement // parties # 7500\n print(share)\nThe script prints 7500, as expect... | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "7500", "printed": "7500", "notation": null} |
nlprog_det-setting-0077261 | How many units at $30 each (variable cost $26) cover $9,000 of fixed costs?
Python code:
import math
fixed = 9000
price = 30
variable = 26
units = math.ceil(fixed / (price - variable)) # 2250
print(units)
Program output: 2250
Break-even is 2250 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "2250", "printed": "2250", "notation": null} |
nlprog_det-setting-0077262 | <|start|><|system|>
Functions:
[{"name": "python_exec", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "translate", "description": "Translat... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"python_exec\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"co... | nlprog_det | setting | original | null | deterministic | [] | [] | 380 | {"gold": "27000.00", "printed": "27000.00", "notation": null} |
nlprog_det-setting-0077263 | Signe's scores were 94, 57, 98, 62, 87, 92 and 91. What is the average score?
The mean is 83. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "83", "printed": "83", "notation": null} |
nlprog_det-setting-0077264 | An office budget of $12,000 has expenses of $319, $1,953, $3,355. How much of the budget is left?
$6,373 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "6373", "printed": "6373", "notation": null} |
nlprog_det-setting-0077265 | A 5% increase is applied to $1,800 monthly rent. What is the new amount?
Python makes this quick:
```python
rent = 1800
increase = 5 / 100 # 0.05
new_rent = rent * (1 + increase) # 1890.0
print(f"{new_rent:.2f}")
```
(Output: 1890.00)
It rises to $1,890.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "1890.00", "printed": "1890.00", "notation": null} |
nlprog_det-setting-0077266 | Of a $2,000 budget, $200 has been spent. What percent is that?
budget = 2000
spent = 200
percent = spent / budget * 100 # 10.0
print(round(percent, 1))
Run output: 10.0
That is 10.0% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 70 | {"gold": "10.0", "printed": "10.0", "notation": null} |
nlprog_det-setting-0077267 | Equipment costs $24,000, has a salvage value of $2,000, and a useful life of 10 years. What is the straight-line depreciation per year?
Python version:
```python
cost = 24000
salvage = 2000
years = 10
per_year = (cost - salvage) / years
print(f"{per_year:.2f}")
```
Running this gives 2200.00.
$2,200.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "2200.00", "printed": "2200.00", "notation": null} |
nlprog_det-setting-0077268 | Sales went from 1,200 to 900. What is the percent change?
As a program:
old = 1200
new = 900
change = (new - old) / old * 100 # -25.0
print(round(change))
# program output: -25
The change is -25%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "-25", "printed": "-25", "notation": null} |
nlprog_det-setting-0077270 | <|start|><|user|>
How many 1-foot square tiles cover a 4 ft by 13 ft floor (round up)?<|eot|>
<|assistant|>
```python
import math
length = 4
width = 13
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 52
print(tiles)
```
The interpreter prints: 52
It takes 52 tiles.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many 1-foot square tiles cover a 4 ft by 13 ft floor (round up)?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 4\nwidth = 13\ntile = 1\ntiles = math.ceil(length * width / (tile * tile)) # 52\nprint(tiles)\n```\nThe interpreter prints: ... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "52", "printed": "52", "notation": null} |
nlprog_det-setting-0077271 | Find the mean of these test scores: 82, 80 and 87.
Code:
```python
scores = [82, 80, 87]
average = sum(scores) // len(scores)
print(average)
```
# printed result: 83
The average score is 83. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "83", "printed": "83", "notation": null} |
nlprog_det-setting-0077272 | <|start|><|user|>
A hearing is set for June 19, 2024. What day of the week is that?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(2024, 6, 19)
print(hearing.strftime("%A"))
```
(Printed result: Wednesday)
It is a Wednesday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hearing is set for June 19, 2024. What day of the week is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(2024, 6, 19)\nprint(hearing.strftime(\"%A\"))\n```\n(Printed result: Wednesday)\n\nIt is a Wednesday."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "Wednesday", "printed": "Wednesday", "notation": null} |
nlprog_det-setting-0077273 | A hall has 23 rows of 9 seats, and 25 seats are empty. How many people are seated?
Here's the code.
```python
rows = 23
per_row = 9
empty = 25
seated = rows * per_row - empty # 182
print(seated)
```
Console output: 182
182 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "182", "printed": "182", "notation": null} |
nlprog_det-setting-0077274 | <|start|><|system|>
Tool definitions:
{"name": "compute", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}
{"name": "business_days", "description": "Count busine... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"compute\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program\"]}}... | nlprog_det | setting | original | null | deterministic | [] | [] | 316 | {"gold": "50.88", "printed": "50.88", "notation": null} |
nlprog_det-setting-0077276 | A claim accrued on February 2, 2019. The limitations period is 2 years. On what date does it expire?
As Python:
```python
from datetime import date
accrued = date(2019, 2, 2) # datetime.date(2019, 2, 2)
years = 2
expires = accrued.replace(year=accrued.year + years) # datetime.date(2021, 2, 2)
print(expires.isoformat... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 154 | {"gold": "2021-02-02", "printed": "2021-02-02", "notation": null} |
nlprog_det-setting-0077277 | Find the mean of these test scores: 73, 66, 90, 62, 54 and 63.
Script:
```python
scores = [73, 66, 90, 62, 54, 63]
average = sum(scores) // len(scores) # 68
print(average)
```
This prints: 68
The mean is 68. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "68", "printed": "68", "notation": null} |
nlprog_det-setting-0077278 | <|start|><|user|>
Divide 225 items among 3 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|>
<|assistant|>
```python
total = 225
groups = 3
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Executed, it shows 75 each, 0 left ... | chat | [
{
"role": "user",
"content": "Divide 225 items among 3 groups as evenly as possible with equal groups. How many per group, and how many remain?"
},
{
"role": "assistant",
"content": "```python\ntotal = 225\ngroups = 3\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {rem... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "75 each, 0 left over", "printed": "75 each, 0 left over", "notation": null} |
nlprog_det-setting-0077279 | Copies cost $10 plus $0.10 for each page beyond 20. How much for 22 pages?
Python does the arithmetic:
```python
pages = 22
base = 10
per_page = 0.1
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page # 10.2
print(f"{cost:.2f}")
```
Console output: 10.20
The copy costs $10.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "10.20", "printed": "10.20", "notation": null} |
nlprog_det-setting-0077280 | A court charges $15 per request plus $0.10 per page after the first 20 pages. What does a 118-page copy cost?
Here is the program.
```python
pages = 118
base = 15
per_page = 0.1
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page
print(f"{cost:.2f}")
```
When run, it prints 24.80, as expected.
The cop... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "24.80", "printed": "24.80", "notation": null} |
nlprog_det-setting-0077281 | <|start|><|system|>
You can call tools. Available tools:
{"name": "eval_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}
{"name": "... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"eval_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python s... | nlprog_det | setting | original | null | deterministic | [] | [] | 467 | {"gold": "196.67", "printed": "196.67", "notation": null} |
nlprog_det-setting-0077282 | What commission does Lena make on $63,014 in sales at 4%?
In Python:
```python
sales = 63014
rate = 4 / 100 # 0.04
commission = sales * rate # 2520.56
print(f"{commission:.2f}")
```
The run gives 2520.56, as expected.
The commission is $2,520.56. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "2520.56", "printed": "2520.56", "notation": null} |
nlprog_det-setting-0077283 | <|start|><|user|>
Pack A has 12 items for $11.89. Pack B has 15 items for $23.25. Which has the lower price per item?<|eot|>
<|assistant|>
```python
pack_a = 11.89 / 12 # 0.9908333333333333
pack_b = 23.25 / 15 # 1.55
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
The script prints: A
Pack A is c... | chat | [
{
"role": "user",
"content": "Pack A has 12 items for $11.89. Pack B has 15 items for $23.25. Which has the lower price per item?"
},
{
"role": "assistant",
"content": "```python\npack_a = 11.89 / 12 # 0.9908333333333333\npack_b = 23.25 / 15 # 1.55\ncheaper = \"A\" if pack_a < pack_b else \"B\... | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0077284 | <|start|><|user|>
Buying 4 staplers at $22 each, 3 water bottles at $9 each, 3 calendars at $7 each, 6 pens at $7 each, someone hands over $200. What change comes back?<|eot|>
<|assistant|>
```python
items = [(4, 22), (3, 9), (3, 7), (6, 7)]
total = sum(q * p for q, p in items) # 178
paid = 200
change = paid - total ... | chat | [
{
"role": "user",
"content": "Buying 4 staplers at $22 each, 3 water bottles at $9 each, 3 calendars at $7 each, 6 pens at $7 each, someone hands over $200. What change comes back?"
},
{
"role": "assistant",
"content": "```python\nitems = [(4, 22), (3, 9), (3, 7), (6, 7)]\ntotal = sum(q * p for ... | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0077285 | <|start|><|user|>
At $18.29 an hour, what does 32 hours of work pay?<|eot|>
<|assistant|>
```python
rate = 18.29
hours = 32
earnings = rate * hours # 585.28
print(f"{earnings:.2f}")
```
# printed result: 585.28
That earns $585.28.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $18.29 an hour, what does 32 hours of work pay?"
},
{
"role": "assistant",
"content": "```python\nrate = 18.29\nhours = 32\nearnings = rate * hours # 585.28\nprint(f\"{earnings:.2f}\")\n```\n# printed result: 585.28\n\nThat earns $585.28."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "585.28", "printed": "585.28", "notation": null} |
nlprog_det-setting-0077286 | A meal costs $27.20. How much is a 22% tip?
The tip is $5.98. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 26 | {"gold": "5.98", "printed": "5.98", "notation": null} |
nlprog_det-setting-0077287 | <|start|><|user|>
Fines run at $25 per day up to a maximum of $2,500. How much after 48 days?<|eot|>
<|assistant|>
per_day = 25
days = 48
cap = 2500
fine = min(per_day * days, cap) # 1200
print(fine)
Result = 1200
The fine is $1,200.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Fines run at $25 per day up to a maximum of $2,500. How much after 48 days?"
},
{
"role": "assistant",
"content": " per_day = 25\n days = 48\n cap = 2500\n fine = min(per_day * days, cap) # 1200\n print(fine)\nResult = 1200\n\nThe fine is $1,200."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "1200", "printed": "1200", "notation": null} |
nlprog_det-setting-0077288 | How many 2-foot square tiles cover a 16 ft by 10 ft floor (round up)?
The program:
```python
import math
length = 16
width = 10
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 40
print(tiles)
```
The program outputs 40.
It takes 40 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0077289 | 2 friends split a $120 bill plus a 18% tip evenly. How much does each pay?
A short script:
```python
bill = 120
tip_rate = 18 / 100 # 0.18
people = 2
each = bill * (1 + tip_rate) / people # 70.8
print(f"{each:.2f}")
```
Output: 70.80
Each person pays $70.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "70.80", "printed": "70.80", "notation": null} |
nlprog_det-setting-0077290 | 1 books come back 28 days late, at $0.10 a day each. What is the fine?
Let the code do the arithmetic:
```python
per_day = 0.1
days_late = 28
books = 1
fine = per_day * days_late * books # 2.8000000000000003
print(f"{fine:.2f}")
```
Run result: 2.80
$2.80 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "2.80", "printed": "2.80", "notation": null} |
nlprog_det-setting-0077291 | <|start|><|user|>
If a 4-year limitations period starts on June 6, 2024, when does it end?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2024, 6, 6)
years = 4
expires = accrued.replace(year=accrued.year + years)
print(expires.isoformat())
```
(Printed result: 2028-06-06)
It runs out on June 6... | chat | [
{
"role": "user",
"content": "If a 4-year limitations period starts on June 6, 2024, when does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrued = date(2024, 6, 6)\nyears = 4\nexpires = accrued.replace(year=accrued.year + years)\nprint(expires.isoformat... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "2028-06-06", "printed": "2028-06-06", "notation": null} |
nlprog_det-setting-0077292 | <|start|><|user|>
Jonas earns a 8% commission on $111,354 of sales. What is the commission?<|eot|>
<|assistant|>
```python
sales = 111354
rate = 8 / 100 # 0.08
commission = sales * rate # 8908.32
print(f"{commission:.2f}")
```
That prints 8908.32.
Jonas earns $8,908.32.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Jonas earns a 8% commission on $111,354 of sales. What is the commission?"
},
{
"role": "assistant",
"content": "```python\nsales = 111354\nrate = 8 / 100 # 0.08\ncommission = sales * rate # 8908.32\nprint(f\"{commission:.2f}\")\n```\nThat prints 8908.32.\n\nJonas... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "8908.32", "printed": "8908.32", "notation": null} |
nlprog_det-setting-0077293 | On which weekday does October 4, 2013 fall?
In code:
```python
from datetime import date
hearing = date(2013, 10, 4) # datetime.date(2013, 10, 4)
print(hearing.strftime("%A"))
```
The run gives Friday, as expected.
October 4, 2013 is a Friday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "Friday", "printed": "Friday", "notation": null} |
nlprog_det-setting-0077294 | A service costs $19 a month or $204 a year. How much does the yearly plan save over 12 monthly payments?
Python:
```python
monthly = 19
yearly = 204
savings = monthly * 12 - yearly # 24
print(savings)
```
The script prints 24.
$24 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0077295 | Under a 33% contingency agreement, what fee is owed on a $12,000 award?
Programmatically:
```python
recovery = 12000
rate = 33 / 100 # 0.33
fee = recovery * rate # 3960.0
print(f"{fee:.2f}")
```
Execution prints: 3960.00
The fee is $3,960.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "3960.00", "printed": "3960.00", "notation": null} |
nlprog_det-setting-0077296 | How many of 275 votes make 67% (round up)?
A Python solution:
```python
import math
voters = 275
needed = math.ceil(voters * 67 / 100) # 185
print(needed)
```
Python prints 185, as expected.
185 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "185", "printed": "185", "notation": null} |
nlprog_det-setting-0077297 | 18 scissors cost $3 apiece. With 7% tax added, what is the total?
A short script:
```python
quantity = 18
unit_price = 3
subtotal = quantity * unit_price # 54
total = subtotal * (1 + 7 / 100) # 57.78
print(f"{total:.2f}")
```
(stdout: 57.78)
The total with tax is $57.78. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "57.78", "printed": "57.78", "notation": null} |
nlprog_det-setting-0077298 | At 1.5% a month (simple), what interest builds on $12,000 over 3 months? The interest is $540.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "540.00", "printed": "540.00", "notation": null} |
nlprog_det-setting-0077299 | How many minutes pass from 7:34 AM to 1:26 PM on the same day?
We write it as a program:
```python
start = 7 * 60 + 34 # 454
end = 13 * 60 + 26 # 806
print(end - start)
```
stdout — 352
It is 352 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "352", "printed": "352", "notation": null} |
nlprog_det-setting-0077300 | <|start|><|user|>
Split $159 between Abel and Yoko in the ratio 1 to 2. What is Abel's share?<|eot|>
<|assistant|>
Abel gets $53.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Split $159 between Abel and Yoko in the ratio 1 to 2. What is Abel's share?"
},
{
"role": "assistant",
"content": "Abel gets $53."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "53", "printed": "53", "notation": null} |
nlprog_det-setting-0077301 | <|start|><|user|>
A car travels 346 miles in 2 hours. What is its average speed in miles per hour?<|eot|>
<|assistant|>
```python
distance = 346
hours = 2
speed = distance / hours # 173.0
print(round(speed))
```
Console output — 173
The average speed is 173 mph.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A car travels 346 miles in 2 hours. What is its average speed in miles per hour?"
},
{
"role": "assistant",
"content": "```python\ndistance = 346\nhours = 2\nspeed = distance / hours # 173.0\nprint(round(speed))\n```\nConsole output — 173\n\nThe average speed is 17... | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "173", "printed": "173", "notation": null} |
nlprog_det-setting-0077302 | The firm was founded in 2021. How many years had passed by 2052?
In code:
```python
start_year = 2021
end_year = 2052
print(end_year - start_year)
```
# console output: 31
That is 31 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "31", "printed": "31", "notation": null} |
nlprog_det-setting-0077303 | A settlement of $84,000 is split equally among 3 parties. How much does each party receive?
Code:
```python
settlement = 84000
parties = 3
share = settlement // parties # 28000
print(share)
```
Printed result: 28000
Each share is $28,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "28000", "printed": "28000", "notation": null} |
nlprog_det-setting-0077304 | <|start|><|user|>
Split $2,350 between Olga and Ulla in the ratio 2 to 3. What is Olga's share?<|eot|>
<|assistant|>
total = 2350
parts_a = 2
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b) # 940
print(share_a)
(Output: 940)
Olga gets $940.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Split $2,350 between Olga and Ulla in the ratio 2 to 3. What is Olga's share?"
},
{
"role": "assistant",
"content": " total = 2350\n parts_a = 2\n parts_b = 3\n share_a = total * parts_a // (parts_a + parts_b) # 940\n print(share_a)\n(Output: 940)\n\... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "940", "printed": "940", "notation": null} |
nlprog_det-setting-0077305 | <|start|><|user|>
A garage charges $5 an hour, never more than $18 a day. How much for 11 hours?<|eot|>
<|assistant|>
```python
rate = 5
hours = 11
daily_max = 18
cost = min(rate * hours, daily_max)
print(cost)
```
Output:
18
The charge is $18.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A garage charges $5 an hour, never more than $18 a day. How much for 11 hours?"
},
{
"role": "assistant",
"content": "```python\nrate = 5\nhours = 11\ndaily_max = 18\ncost = min(rate * hours, daily_max)\nprint(cost)\n```\nOutput:\n18\n\nThe charge is $18."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0077306 | <|start|><|system|>
Functions:
{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}
{"name": "math_engine", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parame... | chat | [
{
"role": "system",
"content": "Functions:\n{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}\n{\"name\": \"math_engine\", \"description\": \"Run Python code in a... | nlprog_det | setting | original | null | deterministic | [] | [] | 299 | {"gold": "16.7", "printed": "16.7", "notation": null} |
nlprog_det-setting-0077307 | Jonas and Ulla share $2,135 in the ratio 3:4. How much does Jonas get?
A short script:
```python
total = 2135
parts_a = 3
parts_b = 4
share_a = total * parts_a // (parts_a + parts_b) # 915
print(share_a)
```
The run gives 915, as expected.
Jonas's share is $915. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "915", "printed": "915", "notation": null} |
nlprog_det-setting-0077308 | <|start|><|user|>
Convert 10 °C to Fahrenheit.<|eot|>
<|assistant|>
```python
celsius = 10
fahrenheit = celsius * 9 / 5 + 32 # 50.0
print(round(fahrenheit))
```
(Console output: 50)
It equals 50 degrees Fahrenheit.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 10 °C to Fahrenheit."
},
{
"role": "assistant",
"content": "```python\ncelsius = 10\nfahrenheit = celsius * 9 / 5 + 32 # 50.0\nprint(round(fahrenheit))\n```\n(Console output: 50)\n\nIt equals 50 degrees Fahrenheit."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0077309 | Attendance was 74 out of 100. Express it as a percent.
Python does the arithmetic:
```python
present = 74
total = 100
percent = present / total * 100 # 74.0
print(round(percent, 1))
```
(Out: 74.0)
Attendance was 74.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "74.0", "printed": "74.0", "notation": null} |
nlprog_det-setting-0077310 | A 9-day trip pays $79 a day for meals and $110 a night for lodging (8 nights). What is the total allowance?
The Python version:
```python
days = 9
meal_rate = 79
lodging_rate = 110
nights = days - 1
total = days * meal_rate + nights * lodging_rate
print(total)
```
When run, it prints 1591.
The allowance is $1,591. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "1591", "printed": "1591", "notation": null} |
nlprog_det-setting-0077311 | An attorney bills 7 hours at $350 per hour. What is the bill?
Computing it:
```python
hours = 7
rate = 350
bill = hours * rate # 2450
print(f"{bill:.2f}")
```
stdout:
2450.00
The bill is $2,450.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "2450.00", "printed": "2450.00", "notation": null} |
nlprog_det-setting-0077312 | A clerk's office charges $150 for each filing. Elena submits 3 filings. What is the total fee?
Translated to Python:
fee = 150
filings = 3
total = fee * filings # 450
print(total)
Execution prints: 450
$450 in filing fees. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "450", "printed": "450", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.