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-0055071 | <|start|><|user|>
Under a 40% contingency agreement, what fee is owed on a $25,000 award?<|eot|>
<|assistant|>
The fee is $10,000.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Under a 40% contingency agreement, what fee is owed on a $25,000 award?"
},
{
"role": "assistant",
"content": "The fee is $10,000.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "10000.00", "printed": "10000.00", "notation": null} |
nlprog_det-setting-0055072 | <|start|><|user|>
With 24 rows of 24 chairs and 36 empty chairs, how many chairs are taken?<|eot|>
<|assistant|>
540 people are seated.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 24 rows of 24 chairs and 36 empty chairs, how many chairs are taken?"
},
{
"role": "assistant",
"content": "540 people are seated."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "540", "printed": "540", "notation": null} |
nlprog_det-setting-0055074 | <|start|><|system|>
You help people work with structured data.<|eot|>
<|user|>
If a 50-minute class begins at 8:10 AM, what time does it finish?<|eot|>
<|assistant|>
It ends at 9:00 AM.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help people work with structured data."
},
{
"role": "user",
"content": "If a 50-minute class begins at 8:10 AM, what time does it finish?"
},
{
"role": "assistant",
"content": "It ends at 9:00 AM."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 49 | {"gold": "9:00 AM", "printed": "9:00 AM", "notation": null} |
nlprog_det-setting-0055075 | A lawyer's fee is 30% of a $150,000 recovery. How large is the fee?
Code:
```python
recovery = 150000
rate = 30 / 100 # 0.3
fee = recovery * rate # 45000.0
print(f"{fee:.2f}")
```
Console output: 45000.00
The lawyer's fee comes to $45,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "45000.00", "printed": "45000.00", "notation": null} |
nlprog_det-setting-0055076 | <|start|><|user|>
One can of paint covers 400 square feet. How many cans are needed for 1104 square feet of wall?<|eot|>
<|assistant|>
```python
import math
area = 1104
coverage = 400
cans = math.ceil(area / coverage) # 3
print(cans)
```
(stdout: 3)
Buy 3 cans.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "One can of paint covers 400 square feet. How many cans are needed for 1104 square feet of wall?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 1104\ncoverage = 400\ncans = math.ceil(area / coverage) # 3\nprint(cans)\n```\n(stdout: 3)\n\nBuy 3... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0055077 | 3 swims at 350 calories each burn how many calories in total?
Python does the arithmetic:
```python
per_session = 350
sessions = 3
total = per_session * sessions # 1050
print(total)
```
# output: 1050
1050 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "1050", "printed": "1050", "notation": null} |
nlprog_det-setting-0055078 | <|start|><|user|>
Goods bought on May 24, 2023 carry a 24-month warranty. When does it expire?<|eot|>
<|assistant|>
```python
from datetime import date
start = date(2023, 5, 24)
months = 24
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.iso... | chat | [
{
"role": "user",
"content": "Goods bought on May 24, 2023 carry a 24-month warranty. When does it expire?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nstart = date(2023, 5, 24)\nmonths = 24\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(st... | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "2025-05-24", "printed": "2025-05-24", "notation": null} |
nlprog_det-setting-0055079 | An invoice lists 29 rulers at $15 each, plus 5% sales tax. What is the invoice total?
The invoice total is $456.75. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "456.75", "printed": "456.75", "notation": null} |
nlprog_det-setting-0055080 | Buying 2 notebooks at $28 each, 6 rulers at $4 each, someone hands over $100. What change comes back?
Python version:
```python
items = [(2, 28), (6, 4)]
total = sum(q * p for q, p in items) # 80
paid = 100
change = paid - total # 20
print(change)
```
The printout reads: 20
$20 comes back. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0055081 | 176 volunteers are split into 6 equal teams. How many are on each team, and how many are left over?
Coded up:
```python
total = 176
groups = 6
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Program output: 29 each, 2 left over
29 each, 2 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "29 each, 2 left over", "printed": "29 each, 2 left over", "notation": null} |
nlprog_det-setting-0055082 | <|start|><|user|>
A hall has 9 rows of 14 seats, and 5 seats are empty. How many people are seated?<|eot|>
<|assistant|>
```python
rows = 9
per_row = 14
empty = 5
seated = rows * per_row - empty # 121
print(seated)
```
stdout — 121
121 people are seated.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hall has 9 rows of 14 seats, and 5 seats are empty. How many people are seated?"
},
{
"role": "assistant",
"content": "```python\nrows = 9\nper_row = 14\nempty = 5\nseated = rows * per_row - empty # 121\nprint(seated)\n```\nstdout — 121\n\n121 people are seated."... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "121", "printed": "121", "notation": null} |
nlprog_det-setting-0055083 | <|start|><|user|>
Pack A has 8 items for $13.19. Pack B has 15 items for $9.81. Which has the lower price per item?<|eot|>
<|assistant|>
```python
pack_a = 13.19 / 8 # 1.64875
pack_b = 9.81 / 15 # 0.654
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
Run result = B
Pack B is cheaper per item.<|eo... | chat | [
{
"role": "user",
"content": "Pack A has 8 items for $13.19. Pack B has 15 items for $9.81. Which has the lower price per item?"
},
{
"role": "assistant",
"content": "```python\npack_a = 13.19 / 8 # 1.64875\npack_b = 9.81 / 15 # 0.654\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'B'\nprin... | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0055084 | At $16.92 an hour, what does 24 hours of work pay?
rate = 16.92
hours = 24
earnings = rate * hours # 406.08000000000004
print(f"{earnings:.2f}")
(Program output: 406.08)
The pay is $406.08. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "406.08", "printed": "406.08", "notation": null} |
nlprog_det-setting-0055085 | Convert 22.1 km to meters.
```python
km = 22.1
meters = km * 1000 # 22100.0
print(round(meters))
```
(Execution result: 22100)
22,100 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 73 | {"gold": "22100", "printed": "22100", "notation": null} |
nlprog_det-setting-0055086 | <|start|><|system|>
Tools you may use:
[{"name": "python_exec", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
An unpaid balance of $4... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"python_exec\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [... | nlprog_det | setting | original | null | deterministic | [] | [] | 236 | {"gold": "160.00", "printed": "160.00", "notation": null} |
nlprog_det-setting-0055087 | A car travels 208 miles in 2 hours. What is its average speed in miles per hour?
One way, in code:
```python
distance = 208
hours = 2
speed = distance / hours # 104.0
print(round(speed))
```
The program outputs 104.
It averages 104 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "104", "printed": "104", "notation": null} |
nlprog_det-setting-0055089 | A $120 dinner bill gets a 20% tip, and 5 people share the cost equally. What is each person's share?
Code:
```python
bill = 120
tip_rate = 20 / 100 # 0.2
people = 5
each = bill * (1 + tip_rate) / people # 28.8
print(f"{each:.2f}")
```
The interpreter prints 28.80.
Each person pays $28.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "28.80", "printed": "28.80", "notation": null} |
nlprog_det-setting-0055090 | <|start|><|user|>
What is a 20% tip on a $110.58 bill?<|eot|>
<|assistant|>
```python
bill = 110.58
tip_rate = 20 / 100 # 0.2
tip = bill * tip_rate # 22.116
print(f"{tip:.2f}")
```
Running it prints 22.12, as expected.
The tip is $22.12.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is a 20% tip on a $110.58 bill?"
},
{
"role": "assistant",
"content": "```python\nbill = 110.58\ntip_rate = 20 / 100 # 0.2\ntip = bill * tip_rate # 22.116\nprint(f\"{tip:.2f}\")\n```\nRunning it prints 22.12, as expected.\n\nThe tip is $22.12."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "22.12", "printed": "22.12", "notation": null} |
nlprog_det-setting-0055091 | If a 105-minute appointment begins at 4:10 PM, what time does it finish?
The program:
start = 16 * 60 + 10
end = start + 105
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
The run gives 5:55 PM.
The appointment finishes at 5:55 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "5:55 PM", "printed": "5:55 PM", "notation": null} |
nlprog_det-setting-0055092 | A trial runs from February 11, 2028 to February 25, 2028, counting both days. How many calendar days is that?
We can compute it in Python.
```python
from datetime import date
first = date(2028, 2, 11) # datetime.date(2028, 2, 11)
last = date(2028, 2, 25) # datetime.date(2028, 2, 25)
days = (last - first).days + 1 #... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0055093 | <|start|><|system|>
Answer accurately and briefly.<|eot|>
<|user|>
Equipment costs $24,000, has a salvage value of $0, and a useful life of 8 years. What is the straight-line depreciation per year?<|eot|>
<|assistant|>
```python
cost = 24000
salvage = 0
years = 8
per_year = (cost - salvage) / years # 3000.0
print(f"{p... | chat | [
{
"role": "system",
"content": "Answer accurately and briefly."
},
{
"role": "user",
"content": "Equipment costs $24,000, has a salvage value of $0, and a useful life of 8 years. What is the straight-line depreciation per year?"
},
{
"role": "assistant",
"content": "```python\ncost =... | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "3000.00", "printed": "3000.00", "notation": null} |
nlprog_det-setting-0055094 | <|start|><|user|>
Express 238 hours in days and hours.<|eot|>
<|assistant|>
hours = 238
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
Printed:
9 days and 22 hours
That is 9 days and 22 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Express 238 hours in days and hours."
},
{
"role": "assistant",
"content": " hours = 238\n days, rest = divmod(hours, 24)\n print(f\"{days} days and {rest} hours\")\nPrinted:\n9 days and 22 hours\n\nThat is 9 days and 22 hours."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "9 days and 22 hours", "printed": "9 days and 22 hours", "notation": null} |
nlprog_det-setting-0055095 | Under a 35% contingency agreement, what fee is owed on a $150,000 award?
Set it up in Python:
```python
recovery = 150000
rate = 35 / 100 # 0.35
fee = recovery * rate # 52500.0
print(f"{fee:.2f}")
```
It prints 52500.00, as expected.
The lawyer's fee comes to $52,500.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "52500.00", "printed": "52500.00", "notation": null} |
nlprog_det-setting-0055097 | One can of paint covers 350 square feet. How many cans are needed for 952 square feet of wall?
We can compute it in Python.
import math
area = 952
coverage = 350
cans = math.ceil(area / coverage) # 3
print(cans)
(stdout: 3)
Buy 3 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0055098 | At $0.67 per mile, what is the reimbursement for 611 miles?
Coded up:
```python
miles = 611
rate = 0.67
reimbursement = miles * rate # 409.37
print(f"{reimbursement:.2f}")
```
# program output: 409.37
The reimbursement is $409.37. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "409.37", "printed": "409.37", "notation": null} |
nlprog_det-setting-0055099 | Find the mean of these test scores: 75, 83, 65, 98, 75 and 78.
Here is a short program for it.
```python
scores = [75, 83, 65, 98, 75, 78]
average = sum(scores) // len(scores) # 79
print(average)
```
The run gives 79, as expected.
The mean is 79. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "79", "printed": "79", "notation": null} |
nlprog_det-setting-0055100 | A customer buys 3 hard drives at $4 each, 4 chairs at $17 each, 2 calendars at $13 each, 4 binders at $16 each and pays with $200. How much change is due?
Script:
```python
items = [(3, 4), (4, 17), (2, 13), (4, 16)]
total = sum(q * p for q, p in items) # 170
paid = 200
change = paid - total # 30
print(change)
```
E... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0055101 | <|start|><|user|>
Malik was born on February 8, 1996. How old is Malik on November 4, 2024?<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1996, 2, 8)
on = date(2024, 11, 4)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day))
print(age)
```
The code prints 28.
The age is 28 ... | chat | [
{
"role": "user",
"content": "Malik was born on February 8, 1996. How old is Malik on November 4, 2024?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1996, 2, 8)\non = date(2024, 11, 4)\nage = on.year - born.year - ((on.month, on.day) < (born.month, bor... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "28", "printed": "28", "notation": null} |
nlprog_det-setting-0055102 | 7 boxes hold 25 headsets each. After 12 are handed out, how many are left?
```python
boxes = 7
per_box = 25
given_away = 12
left = boxes * per_box - given_away # 163
print(left)
```
stdout:
163
163 headsets are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "163", "printed": "163", "notation": null} |
nlprog_det-setting-0055103 | Olga's scores were 68, 66, 81, 80 and 75. What is the average score?
In code:
```python
scores = [68, 66, 81, 80, 75]
average = sum(scores) // len(scores) # 74
print(average)
```
This prints 74, as expected.
The average score is 74. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "74", "printed": "74", "notation": null} |
nlprog_det-setting-0055104 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "python_exec", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"python_exec\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Pyth... | nlprog_det | setting | original | null | deterministic | [] | [] | 247 | {"gold": "38", "printed": "38", "notation": null} |
nlprog_det-setting-0055105 | To read 780 pages in 15 days, how many pages per day are needed?
A few lines of Python do it:
```python
pages = 780
days = 15
per_day = pages // days # 52
print(per_day)
```
Out = 52
52 pages a day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "52", "printed": "52", "notation": null} |
nlprog_det-setting-0055106 | <|start|><|user|>
A garage charges $2 an hour, never more than $15 a day. How much for 6 hours?<|eot|>
<|assistant|>
Parking costs $12.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A garage charges $2 an hour, never more than $15 a day. How much for 6 hours?"
},
{
"role": "assistant",
"content": "Parking costs $12."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0055107 | <|start|><|user|>
A settlement of $18,000 is split equally among 8 parties. How much does each party receive?<|eot|>
<|assistant|>
```python
settlement = 18000
parties = 8
share = settlement // parties # 2250
print(share)
```
That prints 2250.
Each party receives $2,250.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A settlement of $18,000 is split equally among 8 parties. How much does each party receive?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 18000\nparties = 8\nshare = settlement // parties # 2250\nprint(share)\n```\nThat prints 2250.\n\nEach party r... | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "2250", "printed": "2250", "notation": null} |
nlprog_det-setting-0055108 | <|start|><|user|>
How many days are there from July 14, 2023 to October 23, 2023?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2023, 7, 14) # datetime.date(2023, 7, 14)
second = date(2023, 10, 23) # datetime.date(2023, 10, 23)
print((second - first).days)
```
It outputs: 101
There are 101 da... | chat | [
{
"role": "user",
"content": "How many days are there from July 14, 2023 to October 23, 2023?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2023, 7, 14) # datetime.date(2023, 7, 14)\nsecond = date(2023, 10, 23) # datetime.date(2023, 10, 23)\nprint((s... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "101", "printed": "101", "notation": null} |
nlprog_det-setting-0055109 | <|start|><|system|>
You are an assistant for a small office.<|eot|>
<|user|>
Revenue is $13,000 and costs are $8,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|>
<|assistant|>
```python
revenue = 13000
costs = 8000
profit = revenue - costs # 5000
margin = profit / revenue * 100 # 38.461538... | chat | [
{
"role": "system",
"content": "You are an assistant for a small office."
},
{
"role": "user",
"content": "Revenue is $13,000 and costs are $8,000. What is the profit margin as a percent of revenue (one decimal)?"
},
{
"role": "assistant",
"content": "```python\nrevenue = 13000\ncost... | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "38.5", "printed": "38.5", "notation": null} |
nlprog_det-setting-0055110 | A trial runs from October 17, 2026 to October 30, 2026, counting both days. How many calendar days is that?
A few lines of Python do it:
```python
from datetime import date
first = date(2026, 10, 17) # datetime.date(2026, 10, 17)
last = date(2026, 10, 30) # datetime.date(2026, 10, 30)
days = (last - first).days + 1 ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0055111 | A trial runs from July 18, 2028 to August 11, 2028, counting both days. How many calendar days is that?
One way, in code:
```python
from datetime import date
first = date(2028, 7, 18) # datetime.date(2028, 7, 18)
last = date(2028, 8, 11) # datetime.date(2028, 8, 11)
days = (last - first).days + 1 # 25
print(days)
`... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0055112 | <|start|><|system|>
You can call tools. Available tools:
{"name": "math_engine", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}
{"name": "business_days",... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"math_engine\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}},... | nlprog_det | setting | original | null | deterministic | [] | [] | 329 | {"gold": "755", "printed": "755", "notation": null} |
nlprog_det-setting-0055113 | <|start|><|system|>
You are a study helper for students.<|eot|>
<|user|>
1 books come back 28 days late, at $0.25 a day each. What is the fine?<|eot|>
<|assistant|>
```python
per_day = 0.25
days_late = 28
books = 1
fine = per_day * days_late * books # 7.0
print(f"{fine:.2f}")
```
Printed — 7.00
The fine is $7.00.<|eo... | chat | [
{
"role": "system",
"content": "You are a study helper for students."
},
{
"role": "user",
"content": "1 books come back 28 days late, at $0.25 a day each. What is the fine?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.25\ndays_late = 28\nbooks = 1\nfine = per_day * ... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "7.00", "printed": "7.00", "notation": null} |
nlprog_det-setting-0055114 | <|start|><|user|>
What commission does Noor make on $49,934 in sales at 6%?<|eot|>
<|assistant|>
Noor earns $2,996.04.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What commission does Noor make on $49,934 in sales at 6%?"
},
{
"role": "assistant",
"content": "Noor earns $2,996.04."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "2996.04", "printed": "2996.04", "notation": null} |
nlprog_det-setting-0055115 | Fines run at $50 per day up to a maximum of $1,000. How much after 59 days?
One way, in code:
```python
per_day = 50
days = 59
cap = 1000
fine = min(per_day * days, cap) # 1000
print(fine)
```
Result: 1000
The fine is $1,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0055116 | Split $2,115 between Malik and Yara in the ratio 1 to 2. What is Malik's share?
In code:
```python
total = 2115
parts_a = 1
parts_b = 2
share_a = total * parts_a // (parts_a + parts_b)
print(share_a)
```
(stdout: 705)
Malik gets $705. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "705", "printed": "705", "notation": null} |
nlprog_det-setting-0055117 | Convert 0 °C to Fahrenheit.
Let the code do the arithmetic:
celsius = 0
fahrenheit = celsius * 9 / 5 + 32 # 32.0
print(round(fahrenheit))
Output: 32
That is 32 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0055118 | If a 2-year limitations period starts on June 16, 2021, when does it end?
Let's compute it with Python.
```python
from datetime import date
accrued = date(2021, 6, 16) # datetime.date(2021, 6, 16)
years = 2
expires = accrued.replace(year=accrued.year + years) # datetime.date(2023, 6, 16)
print(expires.isoformat())
`... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "2023-06-16", "printed": "2023-06-16", "notation": null} |
nlprog_det-setting-0055119 | A car travels 175 miles in 2.5 hours. What is its average speed in miles per hour?
Python code:
```python
distance = 175
hours = 2.5
speed = distance / hours # 70.0
print(round(speed))
```
Running this gives 70.
The average speed is 70 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "70", "printed": "70", "notation": null} |
nlprog_det-setting-0055120 | A 120-day notice period begins on January 15, 2024. On what date does it end?
A short script:
```python
from datetime import date, timedelta
start = date(2024, 1, 15)
end = start + timedelta(days=120)
print(end.isoformat())
```
stdout = 2024-05-14
The period ends on May 14, 2024. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "2024-05-14", "printed": "2024-05-14", "notation": null} |
nlprog_det-setting-0055121 | <|start|><|user|>
What is -5 degrees Celsius in Fahrenheit?<|eot|>
<|assistant|>
celsius = -5
fahrenheit = celsius * 9 / 5 + 32 # 23.0
print(round(fahrenheit))
# out: 23
It equals 23 degrees Fahrenheit.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is -5 degrees Celsius in Fahrenheit?"
},
{
"role": "assistant",
"content": " celsius = -5\n fahrenheit = celsius * 9 / 5 + 32 # 23.0\n print(round(fahrenheit))\n# out: 23\n\nIt equals 23 degrees Fahrenheit."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0055122 | How many of 255 votes make 75% (round up)?
Programmatically:
import math
voters = 255
needed = math.ceil(voters * 75 / 100) # 192
print(needed)
The code prints: 192
192 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "192", "printed": "192", "notation": null} |
nlprog_det-setting-0055123 | <|start|><|user|>
2 clients win $96,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?<|eot|>
<|assistant|>
```python
award = 96000
fee = award * 25 / 100 # 24000.0
remaining = award - fee # 72000.0
per_client = remaining / 2 # 36000.0
print(f"{per_client:.2f}")
```
(Console out... | chat | [
{
"role": "user",
"content": "2 clients win $96,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?"
},
{
"role": "assistant",
"content": "```python\naward = 96000\nfee = award * 25 / 100 # 24000.0\nremaining = award - fee # 72000.0\nper_client = remaining ... | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "36000.00", "printed": "36000.00", "notation": null} |
nlprog_det-setting-0055124 | Hugo buys 10 boxes of 6 markers each and gives away 3 markers. How many markers are left?
We write it as a program:
```python
boxes = 10
per_box = 6
given_away = 3
left = boxes * per_box - given_away # 57
print(left)
```
# printed: 57
That leaves 57 markers. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "57", "printed": "57", "notation": null} |
nlprog_det-setting-0055125 | <|start|><|user|>
Which is cheaper per unit: 10 for $14.71 (A) or 15 for $16.69 (B)?<|eot|>
<|assistant|>
pack_a = 14.71 / 10 # 1.471
pack_b = 16.69 / 15 # 1.1126666666666667
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
(Run result: B)
Pack B is cheaper per item.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Which is cheaper per unit: 10 for $14.71 (A) or 15 for $16.69 (B)?"
},
{
"role": "assistant",
"content": " pack_a = 14.71 / 10 # 1.471\n pack_b = 16.69 / 15 # 1.1126666666666667\n cheaper = \"A\" if pack_a < pack_b else \"B\" # 'B'\n print(cheaper)\n(... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0055126 | <|start|><|user|>
From a $2,500 retainer, 5 hours at $150/hour have been drawn. What remains?<|eot|>
<|assistant|>
```python
retainer = 2500
hours = 5
rate = 150
left = retainer - hours * rate # 1750
print(left)
```
Execution prints 1750.
$1,750 of the retainer is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From a $2,500 retainer, 5 hours at $150/hour have been drawn. What remains?"
},
{
"role": "assistant",
"content": "```python\nretainer = 2500\nhours = 5\nrate = 150\nleft = retainer - hours * rate # 1750\nprint(left)\n```\nExecution prints 1750.\n\n$1,750 of the re... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "1750", "printed": "1750", "notation": null} |
nlprog_det-setting-0055127 | <|start|><|system|>
You are a patient tutor.<|eot|>
<|user|>
A $60,000 grant pays $6,000 up front and the rest in 4 equal installments. How large is each installment?<|eot|>
<|assistant|>
```python
grant = 60000
up_front = 6000
installments = 4
each = (grant - up_front) / installments # 13500.0
print(f"{each:.2f}")
``... | chat | [
{
"role": "system",
"content": "You are a patient tutor."
},
{
"role": "user",
"content": "A $60,000 grant pays $6,000 up front and the rest in 4 equal installments. How large is each installment?"
},
{
"role": "assistant",
"content": "```python\ngrant = 60000\nup_front = 6000\ninsta... | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "13500.00", "printed": "13500.00", "notation": null} |
nlprog_det-setting-0055128 | Fiona and Viktor share $4,168 in the ratio 3:5. How much does Fiona get?
A few lines of Python do it:
```python
total = 4168
parts_a = 3
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 1563
print(share_a)
```
The program prints: 1563
Fiona's share is $1,563. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "1563", "printed": "1563", "notation": null} |
nlprog_det-setting-0055129 | A clerk's office charges $405 for each filing. Arjun submits 5 filings. What is the total fee?
Python does the arithmetic:
```python
fee = 405
filings = 5
total = fee * filings # 2025
print(total)
```
Output of the run: 2025
$2,025 in filing fees. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "2025", "printed": "2025", "notation": null} |
nlprog_det-setting-0055130 | A settlement of $960 is split equally among 4 parties. How much does each party receive?
Here's the code.
```python
settlement = 960
parties = 4
share = settlement // parties # 240
print(share)
```
When run, it prints 240, as expected.
Each party receives $240. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "240", "printed": "240", "notation": null} |
nlprog_det-setting-0055131 | 117 copies of a 28-page packet are printed at $0.05 per page. What is the cost?
Here is a short program for it.
```python
pages = 28
copies = 117
cost_per_page = 0.05
cost = pages * copies * cost_per_page # 163.8
print(f"{cost:.2f}")
```
# output: 163.80
The job costs $163.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "163.80", "printed": "163.80", "notation": null} |
nlprog_det-setting-0055132 | <|start|><|user|>
What simple interest does $2,500 earn at 3% a year over 3 years?<|eot|>
<|assistant|>
```python
principal = 2500
rate = 3 / 100 # 0.03
years = 3
interest = principal * rate * years # 225.0
print(f"{interest:.2f}")
```
This prints 225.00.
The interest is $225.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What simple interest does $2,500 earn at 3% a year over 3 years?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 2500\nrate = 3 / 100 # 0.03\nyears = 3\ninterest = principal * rate * years # 225.0\nprint(f\"{interest:.2f}\")\n```\nThis prints 225.00.... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "225.00", "printed": "225.00", "notation": null} |
nlprog_det-setting-0055133 | <|start|><|user|>
Each of Bilal's runs burns 250 calories. How many calories over 6 runs?<|eot|>
<|assistant|>
That burns 1500 calories.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each of Bilal's runs burns 250 calories. How many calories over 6 runs?"
},
{
"role": "assistant",
"content": "That burns 1500 calories."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "1500", "printed": "1500", "notation": null} |
nlprog_det-setting-0055134 | <|start|><|user|>
To read 168 pages in 6 days, how many pages per day are needed?<|eot|>
<|assistant|>
```python
pages = 168
days = 6
per_day = pages // days
print(per_day)
```
(Result: 28)
That is 28 pages per day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "To read 168 pages in 6 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": "```python\npages = 168\ndays = 6\nper_day = pages // days\nprint(per_day)\n```\n(Result: 28)\n\nThat is 28 pages per day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "28", "printed": "28", "notation": null} |
nlprog_det-setting-0055135 | Count the days between March 20, 2025 and March 1, 2026.
A short script:
```python
from datetime import date
first = date(2025, 3, 20) # datetime.date(2025, 3, 20)
second = date(2026, 3, 1) # datetime.date(2026, 3, 1)
print((second - first).days)
```
Run result: 346
It is 346 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "346", "printed": "346", "notation": null} |
nlprog_det-setting-0055136 | The paralegal logged 8 hours at a rate of $250. How much is billed?
Script:
```python
hours = 8
rate = 250
bill = hours * rate # 2000
print(f"{bill:.2f}")
```
What it prints — 2000.00
The bill is $2,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "2000.00", "printed": "2000.00", "notation": null} |
nlprog_det-setting-0055137 | With 19 rows of 13 chairs and 12 empty chairs, how many chairs are taken? 235 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "235", "printed": "235", "notation": null} |
nlprog_det-setting-0055138 | 5 claimants share a $18,000 settlement equally. What is each share?
We write it as a program:
```python
settlement = 18000
parties = 5
share = settlement // parties # 3600
print(share)
```
Run result: 3600
Each share is $3,600. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "3600", "printed": "3600", "notation": null} |
nlprog_det-setting-0055139 | <|start|><|user|>
6 claimants share a $84,000 settlement equally. What is each share?<|eot|>
<|assistant|>
```python
settlement = 84000
parties = 6
share = settlement // parties # 14000
print(share)
```
Python prints 14000, as expected.
Each share is $14,000.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "6 claimants share a $84,000 settlement equally. What is each share?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 84000\nparties = 6\nshare = settlement // parties # 14000\nprint(share)\n```\nPython prints 14000, as expected.\n\nEach share is $14,0... | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "14000", "printed": "14000", "notation": null} |
nlprog_det-setting-0055140 | With 11 rows of 18 chairs and 23 empty chairs, how many chairs are taken?
Python version:
```python
rows = 11
per_row = 18
empty = 23
seated = rows * per_row - empty # 175
print(seated)
```
Interpreter output: 175
175 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "175", "printed": "175", "notation": null} |
nlprog_det-setting-0055141 | <|start|><|system|>
You are a data assistant.<|eot|>
<|user|>
Of a $2,000 budget, $500 has been spent. What percent is that?<|eot|>
<|assistant|>
```python
budget = 2000
spent = 500
percent = spent / budget * 100 # 25.0
print(round(percent, 1))
```
Result — 25.0
That is 25.0% of the budget.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a data assistant."
},
{
"role": "user",
"content": "Of a $2,000 budget, $500 has been spent. What percent is that?"
},
{
"role": "assistant",
"content": "```python\nbudget = 2000\nspent = 500\npercent = spent / budget * 100 # 25.0\nprint(round... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "25.0", "printed": "25.0", "notation": null} |
nlprog_det-setting-0055142 | At an exchange rate of 0.74 USD per EUR, how many USD is 7,045 EUR?
As a program:
```python
amount = 7045
rate = 0.74
converted = amount * rate
print(f"{converted:.2f}")
```
# printed: 5213.30
It converts to 5,213.30 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "5213.30", "printed": "5213.30", "notation": null} |
nlprog_det-setting-0055143 | Delia and Amir share $2,650 in the ratio 2:3. How much does Delia get?
Program:
```python
total = 2650
parts_a = 2
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b) # 1060
print(share_a)
```
This prints 1060, as expected.
Delia gets $1,060. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "1060", "printed": "1060", "notation": null} |
nlprog_det-setting-0055144 | With 10 rows of 12 chairs and 22 empty chairs, how many chairs are taken?
As a program:
```python
rows = 10
per_row = 12
empty = 22
seated = rows * per_row - empty
print(seated)
```
stdout = 98
98 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "98", "printed": "98", "notation": null} |
nlprog_det-setting-0055145 | <|start|><|user|>
Parking is $5 per hour with a daily maximum of $15. What do 1 hours cost?<|eot|>
<|assistant|>
Parking costs $5.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Parking is $5 per hour with a daily maximum of $15. What do 1 hours cost?"
},
{
"role": "assistant",
"content": "Parking costs $5."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0055146 | Meals are $59 per day and lodging $175 per night. What is the allowance for 3 days and 2 nights?
One way, in code:
```python
days = 3
meal_rate = 59
lodging_rate = 175
nights = days - 1 # 2
total = days * meal_rate + nights * lodging_rate # 527
print(total)
```
(Run result: 527)
The allowance is $527. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "527", "printed": "527", "notation": null} |
nlprog_det-setting-0055147 | To read 295 pages in 5 days, how many pages per day are needed?
Python makes this quick:
```python
pages = 295
days = 5
per_day = pages // days # 59
print(per_day)
```
Run result: 59
59 pages a day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "59", "printed": "59", "notation": null} |
nlprog_det-setting-0055148 | What does $10,000 grow to in 5 years at 5% annual compounding?
As a program:
```python
principal = 10000
rate = 5 / 100 # 0.05
years = 5
value = principal * (1 + rate) ** years # 12762.815625000003
print(f"{value:.2f}")
```
Printed:
12762.82
It is worth $12,762.82. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "12762.82", "printed": "12762.82", "notation": null} |
nlprog_det-setting-0055149 | <|start|><|user|>
Attendance was 75 out of 80. Express it as a percent.<|eot|>
<|assistant|>
```python
present = 75
total = 80
percent = present / total * 100 # 93.75
print(round(percent, 1))
```
The run gives: 93.8
Attendance was 93.8%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Attendance was 75 out of 80. Express it as a percent."
},
{
"role": "assistant",
"content": "```python\npresent = 75\ntotal = 80\npercent = present / total * 100 # 93.75\nprint(round(percent, 1))\n```\nThe run gives: 93.8\n\nAttendance was 93.8%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "93.8", "printed": "93.8", "notation": null} |
nlprog_det-setting-0055150 | <|start|><|user|>
17 of 20 members attended. What percent attended?<|eot|>
<|assistant|>
```python
present = 17
total = 20
percent = present / total * 100
print(round(percent, 1))
```
The code prints: 85.0
Attendance was 85.0%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "17 of 20 members attended. What percent attended?"
},
{
"role": "assistant",
"content": "```python\npresent = 17\ntotal = 20\npercent = present / total * 100\nprint(round(percent, 1))\n```\nThe code prints: 85.0\n\nAttendance was 85.0%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "85.0", "printed": "85.0", "notation": null} |
nlprog_det-setting-0055151 | Walls total 1182 sq ft and each can covers 300 sq ft. How many cans should be bought?
Set it up in Python:
```python
import math
area = 1182
coverage = 300
cans = math.ceil(area / coverage) # 4
print(cans)
```
When run, it prints: 4
4 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0055152 | How much sales tax is charged on a $224.56 purchase at 9%?
$20.21 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "20.21", "printed": "20.21", "notation": null} |
nlprog_det-setting-0055153 | A measure needs at least 75% of 32 votes. How many votes is that, rounded up?
Let the code do the arithmetic:
```python
import math
voters = 32
needed = math.ceil(voters * 75 / 100) # 24
print(needed)
```
Console output — 24
At least 24 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0055154 | <|start|><|user|>
With 25% off, what does a $250 backpack cost?<|eot|>
<|assistant|>
```python
price = 250
discount = 25 / 100 # 0.25
sale_price = price * (1 - discount) # 187.5
print(f"{sale_price:.2f}")
```
It outputs: 187.50
It costs $187.50.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 25% off, what does a $250 backpack cost?"
},
{
"role": "assistant",
"content": "```python\nprice = 250\ndiscount = 25 / 100 # 0.25\nsale_price = price * (1 - discount) # 187.5\nprint(f\"{sale_price:.2f}\")\n```\nIt outputs: 187.50\n\nIt costs $187.50."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "187.50", "printed": "187.50", "notation": null} |
nlprog_det-setting-0055155 | 3 books come back 2 days late, at $0.25 a day each. What is the fine?
In Python:
per_day = 0.25
days_late = 2
books = 3
fine = per_day * days_late * books
print(f"{fine:.2f}")
# printed result: 1.50
The fine is $1.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "1.50", "printed": "1.50", "notation": null} |
nlprog_det-setting-0055156 | <|start|><|system|>
Tools you may use:
[{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}, {"name": "code_runner", "description": "Python s... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\": [\"title\", \"sec... | nlprog_det | setting | original | null | deterministic | [] | [] | 394 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0055157 | <|start|><|system|>
Tools (call with JSON):
{"name": "math_engine", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}
{"name": "business_days", "description": "... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n{\"name\": \"math_engine\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 297 | {"gold": "15.0", "printed": "15.0", "notation": null} |
nlprog_det-setting-0055158 | How many whole days and leftover hours are in 332 hours?
Script:
```python
hours = 332
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Run output: 13 days and 20 hours
332 hours is 13 days and 20 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "13 days and 20 hours", "printed": "13 days and 20 hours", "notation": null} |
nlprog_det-setting-0055159 | A measure needs at least 60% of 135 votes. How many votes is that, rounded up?
A short script:
```python
import math
voters = 135
needed = math.ceil(voters * 60 / 100) # 81
print(needed)
```
Output of the run: 81
81 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "81", "printed": "81", "notation": null} |
nlprog_det-setting-0055160 | Kaito lends $1,000 at 4% simple interest per year for 3 years. How much interest is earned?
Computation in Python:
```python
principal = 1000
rate = 4 / 100 # 0.04
years = 3
interest = principal * rate * years # 120.0
print(f"{interest:.2f}")
```
Shell output: 120.00
The interest is $120.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "120.00", "printed": "120.00", "notation": null} |
nlprog_det-setting-0055161 | <|start|><|user|>
A measure needs at least 67% of 163 votes. How many votes is that, rounded up?<|eot|>
<|assistant|>
```python
import math
voters = 163
needed = math.ceil(voters * 67 / 100) # 110
print(needed)
```
Out — 110
110 votes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A measure needs at least 67% of 163 votes. How many votes is that, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 163\nneeded = math.ceil(voters * 67 / 100) # 110\nprint(needed)\n```\nOut — 110\n\n110 votes are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "110", "printed": "110", "notation": null} |
nlprog_det-setting-0055162 | $2,000 is invested at 3% compounded yearly. What is it worth after 5 years?
The computation:
```python
principal = 2000
rate = 3 / 100
years = 5
value = principal * (1 + rate) ** years
print(f"{value:.2f}")
```
Running this gives 2318.55.
The balance is $2,318.55. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "2318.55", "printed": "2318.55", "notation": null} |
nlprog_det-setting-0055163 | One can of paint covers 300 square feet. How many cans are needed for 1197 square feet of wall?
We write it as a program:
```python
import math
area = 1197
coverage = 300
cans = math.ceil(area / coverage)
print(cans)
```
# execution result: 4
4 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0055164 | Which is cheaper per unit: 12 for $13.00 (A) or 30 for $31.06 (B)?
Python:
```python
pack_a = 13.0 / 12 # 1.0833333333333333
pack_b = 31.06 / 30 # 1.0353333333333332
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
The program prints B.
Pack B is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0055165 | <|start|><|user|>
A shift runs from 9:03 AM to 1:17 PM. How long is it in minutes?<|eot|>
<|assistant|>
```python
start = 9 * 60 + 3 # 543
end = 13 * 60 + 17 # 797
print(end - start)
```
Printed — 254
254 minutes pass.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A shift runs from 9:03 AM to 1:17 PM. How long is it in minutes?"
},
{
"role": "assistant",
"content": "```python\nstart = 9 * 60 + 3 # 543\nend = 13 * 60 + 17 # 797\nprint(end - start)\n```\nPrinted — 254\n\n254 minutes pass."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "254", "printed": "254", "notation": null} |
nlprog_det-setting-0055166 | Convert 2 h 38 min (the length of a training session) to minutes.
Set it up in Python:
```python
hours = 2
minutes = 38
total_minutes = hours * 60 + minutes # 158
print(total_minutes)
```
Run result: 158
That is 158 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "158", "printed": "158", "notation": null} |
nlprog_det-setting-0055170 | A library charges $0.15 per book per day late. What is the fine for 2 books that are 14 days late?
The fine is $4.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "4.20", "printed": "4.20", "notation": null} |
nlprog_det-setting-0055171 | <|start|><|user|>
At $0.62 per mile, what is the reimbursement for 319 miles?<|eot|>
<|assistant|>
```python
miles = 319
rate = 0.62
reimbursement = miles * rate # 197.78
print(f"{reimbursement:.2f}")
```
Console:
197.78
The reimbursement is $197.78.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $0.62 per mile, what is the reimbursement for 319 miles?"
},
{
"role": "assistant",
"content": "```python\nmiles = 319\nrate = 0.62\nreimbursement = miles * rate # 197.78\nprint(f\"{reimbursement:.2f}\")\n```\nConsole:\n197.78\n\nThe reimbursement is $197.78."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "197.78", "printed": "197.78", "notation": null} |
nlprog_det-setting-0055172 | <|start|><|system|>
Tools you may use:
[{"name": "py_exec", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "get_weather", "description": "Get the ... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"py_exec\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program... | nlprog_det | setting | original | null | deterministic | [] | [] | 309 | {"gold": "12000.00", "printed": "12000.00", "notation": null} |
nlprog_det-setting-0055173 | What percentage of $5,000 is $2,500?
We write it as a program:
```python
budget = 5000
spent = 2500
percent = spent / budget * 100 # 50.0
print(round(percent, 1))
```
Run result: 50.0
That is 50.0% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "50.0", "printed": "50.0", "notation": null} |
nlprog_det-setting-0055174 | Convert 75.7 km to meters.
A short script:
km = 75.7
meters = km * 1000
print(round(meters))
It outputs: 75700
75,700 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 58 | {"gold": "75700", "printed": "75700", "notation": null} |
nlprog_det-setting-0055175 | <|start|><|user|>
A settlement of $2,640 is split equally among 8 parties. How much does each party receive?<|eot|>
<|assistant|>
```python
settlement = 2640
parties = 8
share = settlement // parties # 330
print(share)
```
On running, it outputs 330.
Each party receives $330.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A settlement of $2,640 is split equally among 8 parties. How much does each party receive?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 2640\nparties = 8\nshare = settlement // parties # 330\nprint(share)\n```\nOn running, it outputs 330.\n\nEach ... | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "330", "printed": "330", "notation": null} |
nlprog_det-setting-0055176 | Monthly rent is $1,200. A tenant moves in with 25 days left in a 31-day month. What is the prorated rent?
Programmatically:
```python
rent = 1200
days_in_month = 31
days_occupied = 25
prorated = rent * days_occupied / days_in_month # 967.741935483871
print(f"{prorated:.2f}")
```
Python prints 967.74.
The tenant owes... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "967.74", "printed": "967.74", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.