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-0057107 | <|start|><|user|>
A trial runs from November 2, 2025 to November 12, 2025, counting both days. How many calendar days is that?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2025, 11, 2) # datetime.date(2025, 11, 2)
last = date(2025, 11, 12) # datetime.date(2025, 11, 12)
days = (last - first).d... | chat | [
{
"role": "user",
"content": "A trial runs from November 2, 2025 to November 12, 2025, counting both days. How many calendar days is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2025, 11, 2) # datetime.date(2025, 11, 2)\nlast = date(2025, 11, 1... | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "11", "printed": "11", "notation": null} |
nlprog_det-setting-0057108 | Printing costs 8 cents a page. What does it cost to print 184 copies of a 18-page handout?
Printing costs $264.96. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "264.96", "printed": "264.96", "notation": null} |
nlprog_det-setting-0057110 | Straight-line depreciation: cost $30,000, salvage $2,000, 4 years. How much per year?
Here's the code.
```python
cost = 30000
salvage = 2000
years = 4
per_year = (cost - salvage) / years # 7000.0
print(f"{per_year:.2f}")
```
# program output: 7000.00
Depreciation is $7,000.00 per year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "7000.00", "printed": "7000.00", "notation": null} |
nlprog_det-setting-0057111 | Ines and Delia share $2,100 in the ratio 3:4. How much does Ines get?
Python makes this quick:
```python
total = 2100
parts_a = 3
parts_b = 4
share_a = total * parts_a // (parts_a + parts_b) # 900
print(share_a)
```
This prints 900, as expected.
Ines gets $900. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0057112 | <|start|><|user|>
Convert 57.3 km to meters.<|eot|>
<|assistant|>
```python
km = 57.3
meters = km * 1000 # 57300.0
print(round(meters))
```
(Output: 57300)
That is 57,300 meters.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 57.3 km to meters."
},
{
"role": "assistant",
"content": "```python\nkm = 57.3\nmeters = km * 1000 # 57300.0\nprint(round(meters))\n```\n(Output: 57300)\n\nThat is 57,300 meters."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "57300", "printed": "57300", "notation": null} |
nlprog_det-setting-0057113 | <|start|><|system|>
Tool definitions:
[{"name": "code_runner", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "lookup_statute", "description": "Look up the... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"code_runner\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program\"]}},... | nlprog_det | setting | original | null | deterministic | [] | [] | 300 | {"gold": "53.27", "printed": "53.27", "notation": null} |
nlprog_det-setting-0057114 | At $31.44 an hour, what does 40 hours of work pay?
We write it as a program:
rate = 31.44
hours = 40
earnings = rate * hours # 1257.6000000000001
print(f"{earnings:.2f}")
Interpreter output — 1257.60
The pay is $1,257.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "1257.60", "printed": "1257.60", "notation": null} |
nlprog_det-setting-0057115 | <|start|><|user|>
Fixed costs are $4,000. Each unit sells for $15 and costs $9 to make. How many units must be sold to break even?<|eot|>
<|assistant|>
```python
import math
fixed = 4000
price = 15
variable = 9
units = math.ceil(fixed / (price - variable)) # 667
print(units)
```
# execution result: 667
Break-even is ... | chat | [
{
"role": "user",
"content": "Fixed costs are $4,000. Each unit sells for $15 and costs $9 to make. How many units must be sold to break even?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 4000\nprice = 15\nvariable = 9\nunits = math.ceil(fixed / (price - variable)) # 6... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "667", "printed": "667", "notation": null} |
nlprog_det-setting-0057116 | <|start|><|user|>
A $84 dinner bill gets a 20% tip, and 5 people share the cost equally. What is each person's share?<|eot|>
<|assistant|>
```python
bill = 84
tip_rate = 20 / 100 # 0.2
people = 5
each = bill * (1 + tip_rate) / people # 20.16
print(f"{each:.2f}")
```
Running it prints 20.16, as expected.
The share is... | chat | [
{
"role": "user",
"content": "A $84 dinner bill gets a 20% tip, and 5 people share the cost equally. What is each person's share?"
},
{
"role": "assistant",
"content": "```python\nbill = 84\ntip_rate = 20 / 100 # 0.2\npeople = 5\neach = bill * (1 + tip_rate) / people # 20.16\nprint(f\"{each:.2... | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "20.16", "printed": "20.16", "notation": null} |
nlprog_det-setting-0057117 | From a $7,500 retainer, 12 hours at $200/hour have been drawn. What remains?
Let's compute it with Python.
```python
retainer = 7500
hours = 12
rate = 200
left = retainer - hours * rate # 5100
print(left)
```
The program prints 5100.
The remaining balance is $5,100. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "5100", "printed": "5100", "notation": null} |
nlprog_det-setting-0057119 | Goods bought on July 27, 2021 carry a 36-month warranty. When does it expire?
Code:
from datetime import date
start = date(2021, 7, 27)
months = 36
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
It outp... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "2024-07-27", "printed": "2024-07-27", "notation": null} |
nlprog_det-setting-0057120 | <|start|><|user|>
Vera buys 7 boxes of 8 toner kits each and gives away 2 toner kits. How many toner kits are left?<|eot|>
<|assistant|>
```python
boxes = 7
per_box = 8
given_away = 2
left = boxes * per_box - given_away # 54
print(left)
```
Python prints 54.
That leaves 54 toner kits.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Vera buys 7 boxes of 8 toner kits each and gives away 2 toner kits. How many toner kits are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 7\nper_box = 8\ngiven_away = 2\nleft = boxes * per_box - given_away # 54\nprint(left)\n```\nPython prints 54.... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "54", "printed": "54", "notation": null} |
nlprog_det-setting-0057121 | Parking is $4 per hour with a daily maximum of $20. What do 9 hours cost?
As a program:
rate = 4
hours = 9
daily_max = 20
cost = min(rate * hours, daily_max) # 20
print(cost)
Program output: 20
The charge is $20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0057123 | <|start|><|user|>
862 files go into boxes of 25. How many boxes does that take?<|eot|>
<|assistant|>
35 boxes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "862 files go into boxes of 25. How many boxes does that take?"
},
{
"role": "assistant",
"content": "35 boxes are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "35", "printed": "35", "notation": null} |
nlprog_det-setting-0057124 | <|start|><|system|>
Keep explanations short.<|eot|>
<|user|>
How many 2-foot square tiles cover a 13 ft by 13 ft floor (round up)?<|eot|>
<|assistant|>
43 tiles are needed.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Keep explanations short."
},
{
"role": "user",
"content": "How many 2-foot square tiles cover a 13 ft by 13 ft floor (round up)?"
},
{
"role": "assistant",
"content": "43 tiles are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 48 | {"gold": "43", "printed": "43", "notation": null} |
nlprog_det-setting-0057125 | 103 copies of a 28-page packet are printed at $0.15 per page. What is the cost?
We can compute it in Python.
```python
pages = 28
copies = 103
cost_per_page = 0.15
cost = pages * copies * cost_per_page # 432.59999999999997
print(f"{cost:.2f}")
```
Printed = 432.60
Printing costs $432.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "432.60", "printed": "432.60", "notation": null} |
nlprog_det-setting-0057126 | <|start|><|system|>
Functions:
[{"name": "code_runner", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "define_word", "description": "Return a dict... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"code_runner\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\"]}}... | nlprog_det | setting | original | null | deterministic | [] | [] | 313 | {"gold": "18000.00", "printed": "18000.00", "notation": null} |
nlprog_det-setting-0057127 | A garage charges $3 an hour, never more than $15 a day. How much for 9 hours?
```python
rate = 3
hours = 9
daily_max = 15
cost = min(rate * hours, daily_max) # 15
print(cost)
```
(stdout: 15)
Parking costs $15. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0057128 | <|start|><|system|>
Answer accurately and briefly.<|eot|>
<|user|>
45 volunteers are split into 3 equal teams. How many are on each team, and how many are left over?<|eot|>
<|assistant|>
```python
total = 45
groups = 3
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Ex... | chat | [
{
"role": "system",
"content": "Answer accurately and briefly."
},
{
"role": "user",
"content": "45 volunteers are split into 3 equal teams. How many are on each team, and how many are left over?"
},
{
"role": "assistant",
"content": "```python\ntotal = 45\ngroups = 3\nper_group, rem... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "15 each, 0 left over", "printed": "15 each, 0 left over", "notation": null} |
nlprog_det-setting-0057130 | <|start|><|user|>
What is 0 degrees Celsius in Fahrenheit?<|eot|>
<|assistant|>
```python
celsius = 0
fahrenheit = celsius * 9 / 5 + 32
print(round(fahrenheit))
```
Console output: 32
That is 32 °F.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is 0 degrees Celsius in Fahrenheit?"
},
{
"role": "assistant",
"content": "```python\ncelsius = 0\nfahrenheit = celsius * 9 / 5 + 32\nprint(round(fahrenheit))\n```\nConsole output: 32\n\nThat is 32 °F."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0057131 | A 19 × 5 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?
95 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "95", "printed": "95", "notation": null} |
nlprog_det-setting-0057132 | Starting from $20,000, the team spends $1,477, $1,716, $1,044, $2,080. What remains?
As Python:
```python
budget = 20000
expenses = [1477, 1716, 1044, 2080]
left = budget - sum(expenses)
print(left)
```
The program prints 13683.
$13,683 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "13683", "printed": "13683", "notation": null} |
nlprog_det-setting-0057133 | <|start|><|user|>
A 195-mile drive at a steady 65 mph takes how many minutes?<|eot|>
<|assistant|>
distance = 195
speed = 65
minutes = distance / speed * 60 # 180.0
print(round(minutes))
Result — 180
180 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 195-mile drive at a steady 65 mph takes how many minutes?"
},
{
"role": "assistant",
"content": " distance = 195\n speed = 65\n minutes = distance / speed * 60 # 180.0\n print(round(minutes))\nResult — 180\n\n180 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 67 | {"gold": "180", "printed": "180", "notation": null} |
nlprog_det-setting-0057134 | Leon buys 9 boxes of 25 paper reams each and gives away 20 paper reams. How many paper reams are left?
Here's the code.
```python
boxes = 9
per_box = 25
given_away = 20
left = boxes * per_box - given_away # 205
print(left)
```
# printed result: 205
205 paper reams are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "205", "printed": "205", "notation": null} |
nlprog_det-setting-0057135 | <|start|><|system|>
Tool definitions:
[{"name": "compute", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
A count moves from 1,200 to 600. By ... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"compute\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\"]}... | nlprog_det | setting | original | null | deterministic | [] | [] | 214 | {"gold": "-50", "printed": "-50", "notation": null} |
nlprog_det-setting-0057136 | <|start|><|user|>
From a $2,500 retainer, 5 hours at $200/hour have been drawn. What remains?<|eot|>
<|assistant|>
```python
retainer = 2500
hours = 5
rate = 200
left = retainer - hours * rate # 1500
print(left)
```
Run output: 1500
The remaining balance is $1,500.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From a $2,500 retainer, 5 hours at $200/hour have been drawn. What remains?"
},
{
"role": "assistant",
"content": "```python\nretainer = 2500\nhours = 5\nrate = 200\nleft = retainer - hours * rate # 1500\nprint(left)\n```\nRun output: 1500\n\nThe remaining balance ... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "1500", "printed": "1500", "notation": null} |
nlprog_det-setting-0057138 | A quorum is 1/3 of the 53 members, rounded up. How many members make a quorum?
Coded up:
```python
import math
members = 53
quorum = math.ceil(members * 1 / 3)
print(quorum)
```
# console output: 18
That is 18 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0057139 | Straight-line depreciation: cost $24,000, salvage $6,000, 6 years. How much per year?
```python
cost = 24000
salvage = 6000
years = 6
per_year = (cost - salvage) / years # 3000.0
print(f"{per_year:.2f}")
```
(Output: 3000.00)
Depreciation is $3,000.00 per year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "3000.00", "printed": "3000.00", "notation": null} |
nlprog_det-setting-0057140 | <|start|><|user|>
With $20,000 in costs and $24,000 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|>
<|assistant|>
```python
revenue = 24000
costs = 20000
profit = revenue - costs # 4000
margin = profit / revenue * 100 # 16.666666666666664
print(round(margin, 1))
```
stdout: 16.7
The margi... | chat | [
{
"role": "user",
"content": "With $20,000 in costs and $24,000 in revenue, what percent of revenue is profit? Round to one decimal."
},
{
"role": "assistant",
"content": "```python\nrevenue = 24000\ncosts = 20000\nprofit = revenue - costs # 4000\nmargin = profit / revenue * 100 # 16.666666666... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "16.7", "printed": "16.7", "notation": null} |
nlprog_det-setting-0057141 | A seminar starts at 8:00 AM and lasts 90 minutes. When does it end?
Coded up:
```python
start = 8 * 60 + 0
end = start + 90
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Shell output — 9:30 AM
The seminar finishes at 9:30 AM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "9:30 AM", "printed": "9:30 AM", "notation": null} |
nlprog_det-setting-0057142 | A chair costs $250. It is 30% off. What is the sale price?
In Python:
```python
price = 250
discount = 30 / 100 # 0.3
sale_price = price * (1 - discount) # 175.0
print(f"{sale_price:.2f}")
```
(Run result: 175.00)
It costs $175.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "175.00", "printed": "175.00", "notation": null} |
nlprog_det-setting-0057143 | Sales went from 400 to 440. What is the percent change?
Python:
```python
old = 400
new = 440
change = (new - old) / old * 100 # 10.0
print(round(change))
```
Printed: 10
It changed by 10%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0057144 | Yoko was born on October 26, 1961. How old is Yoko on June 11, 2028?
A short script:
```python
from datetime import date
born = date(1961, 10, 26) # datetime.date(1961, 10, 26)
on = date(2028, 6, 11) # datetime.date(2028, 6, 11)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 66
print(ag... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 155 | {"gold": "66", "printed": "66", "notation": null} |
nlprog_det-setting-0057145 | What is 25 degrees Celsius in Fahrenheit?
Set it up in Python:
```python
celsius = 25
fahrenheit = celsius * 9 / 5 + 32 # 77.0
print(round(fahrenheit))
```
Interpreter output — 77
It equals 77 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "77", "printed": "77", "notation": null} |
nlprog_det-setting-0057146 | A meal costs $15.93. How much is a 22% tip?
The Python version:
```python
bill = 15.93
tip_rate = 22 / 100
tip = bill * tip_rate
print(f"{tip:.2f}")
```
(stdout: 3.50)
The tip is $3.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "3.50", "printed": "3.50", "notation": null} |
nlprog_det-setting-0057147 | A pack of 10 mugs sells for $440. What does each cost?
We write it as a program:
```python
total = 440
count = 10
per_item = total // count # 44
print(per_item)
```
Console output — 44
The unit price is $44. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "44", "printed": "44", "notation": null} |
nlprog_det-setting-0057148 | <|start|><|user|>
A hearing is set for December 13, 2028. What day of the week is that?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(2028, 12, 13) # datetime.date(2028, 12, 13)
print(hearing.strftime("%A"))
```
(Run result: Wednesday)
It is a Wednesday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hearing is set for December 13, 2028. What day of the week is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(2028, 12, 13) # datetime.date(2028, 12, 13)\nprint(hearing.strftime(\"%A\"))\n```\n(Run result: Wednesd... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "Wednesday", "printed": "Wednesday", "notation": null} |
nlprog_det-setting-0057149 | Divide 283 items among 7 groups as evenly as possible with equal groups. How many per group, and how many remain?
Translated to Python:
```python
total = 283
groups = 7
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
# console output: 40 each, 3 left over
40 each, 3 ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "40 each, 3 left over", "printed": "40 each, 3 left over", "notation": null} |
nlprog_det-setting-0057150 | If a 105-minute shift begins at 1:15 PM, what time does it finish?
```python
start = 13 * 60 + 15
end = start + 105
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
(Result: 3:00 PM)
It ends at 3:00 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "3:00 PM", "printed": "3:00 PM", "notation": null} |
nlprog_det-setting-0057151 | Count 21 days forward from April 25, 2027. What date is that?
Program:
from datetime import date, timedelta
start = date(2027, 4, 25) # datetime.date(2027, 4, 25)
end = start + timedelta(days=21) # datetime.date(2027, 5, 16)
print(end.isoformat())
Out: 2027-05-16
The period ends on May 16, 2027. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "2027-05-16", "printed": "2027-05-16", "notation": null} |
nlprog_det-setting-0057152 | Meals are $79 per day and lodging $140 per night. What is the allowance for 5 days and 4 nights?
```python
days = 5
meal_rate = 79
lodging_rate = 140
nights = days - 1 # 4
total = days * meal_rate + nights * lodging_rate # 955
print(total)
```
Console output — 955
The allowance is $955. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "955", "printed": "955", "notation": null} |
nlprog_det-setting-0057153 | Divide 278 items among 4 groups as evenly as possible with equal groups. How many per group, and how many remain?
As Python:
total = 278
groups = 4
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
The program prints 69 each, 2 left over, as expected.
69 ea... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "69 each, 2 left over", "printed": "69 each, 2 left over", "notation": null} |
nlprog_det-setting-0057154 | <|start|><|user|>
A shift runs from 10:10 AM to 2:50 PM. How long is it in minutes?<|eot|>
<|assistant|>
It is 280 minutes long.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A shift runs from 10:10 AM to 2:50 PM. How long is it in minutes?"
},
{
"role": "assistant",
"content": "It is 280 minutes long."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "280", "printed": "280", "notation": null} |
nlprog_det-setting-0057155 | The firm was founded in 2012. How many years had passed by 2043?
The program:
start_year = 2012
end_year = 2043
print(end_year - start_year)
This prints: 31
31 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 58 | {"gold": "31", "printed": "31", "notation": null} |
nlprog_det-setting-0057156 | A claim accrued on August 27, 2022. The limitations period is 5 years. On what date does it expire?
Python code:
```python
from datetime import date
accrued = date(2022, 8, 27)
years = 5
expires = accrued.replace(year=accrued.year + years)
print(expires.isoformat())
```
Output: 2027-08-27
The period expires on August... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "2027-08-27", "printed": "2027-08-27", "notation": null} |
nlprog_det-setting-0057157 | A party has 30 days to respond to a motion served on September 7, 2027, with 3 days added because service was by mail. When is the response due?
Here is a short program for it.
```python
from datetime import date, timedelta
served = date(2027, 9, 7) # datetime.date(2027, 9, 7)
response_days = 30
mail_days = 3
due = s... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 180 | {"gold": "2027-10-10", "printed": "2027-10-10", "notation": null} |
nlprog_det-setting-0057158 | Fixed costs are $2,500. Each unit sells for $20 and costs $10 to make. How many units must be sold to break even?
250 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "250", "printed": "250", "notation": null} |
nlprog_det-setting-0057159 | 10 copies of a 44-page packet are printed at $0.15 per page. What is the cost?
Python makes this quick:
```python
pages = 44
copies = 10
cost_per_page = 0.15
cost = pages * copies * cost_per_page # 66.0
print(f"{cost:.2f}")
```
It prints 66.00.
The job costs $66.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "66.00", "printed": "66.00", "notation": null} |
nlprog_det-setting-0057160 | <|start|><|user|>
Attendance was 79 out of 100. Express it as a percent.<|eot|>
<|assistant|>
present = 79
total = 100
percent = present / total * 100 # 79.0
print(round(percent, 1))
Shell output: 79.0
79.0% attended.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Attendance was 79 out of 100. Express it as a percent."
},
{
"role": "assistant",
"content": " present = 79\n total = 100\n percent = present / total * 100 # 79.0\n print(round(percent, 1))\nShell output: 79.0\n\n79.0% attended."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 69 | {"gold": "79.0", "printed": "79.0", "notation": null} |
nlprog_det-setting-0057161 | Someone works 40 hours at $27.68 per hour. What are the earnings?
Python makes this quick:
```python
rate = 27.68
hours = 40
earnings = rate * hours
print(f"{earnings:.2f}")
```
Printed:
1107.20
The pay is $1,107.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "1107.20", "printed": "1107.20", "notation": null} |
nlprog_det-setting-0057162 | <|start|><|user|>
Pack A has 6 items for $9.40. Pack B has 18 items for $29.88. Which has the lower price per item?<|eot|>
<|assistant|>
```python
pack_a = 9.4 / 6 # 1.5666666666666667
pack_b = 29.88 / 18 # 1.66
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
Executing it gives A.
A has the lower... | chat | [
{
"role": "user",
"content": "Pack A has 6 items for $9.40. Pack B has 18 items for $29.88. Which has the lower price per item?"
},
{
"role": "assistant",
"content": "```python\npack_a = 9.4 / 6 # 1.5666666666666667\npack_b = 29.88 / 18 # 1.66\ncheaper = \"A\" if pack_a < pack_b else \"B\" # ... | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0057163 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "run_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|u... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"run_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python so... | nlprog_det | setting | original | null | deterministic | [] | [] | 248 | {"gold": "43.50", "printed": "43.50", "notation": null} |
nlprog_det-setting-0057164 | <|start|><|user|>
Printing costs 12 cents a page. What does it cost to print 160 copies of a 60-page handout?<|eot|>
<|assistant|>
pages = 60
copies = 160
cost_per_page = 0.12
cost = pages * copies * cost_per_page # 1152.0
print(f"{cost:.2f}")
# result: 1152.00
Printing costs $1,152.00.<|eot|>
<|e... | chat | [
{
"role": "user",
"content": "Printing costs 12 cents a page. What does it cost to print 160 copies of a 60-page handout?"
},
{
"role": "assistant",
"content": " pages = 60\n copies = 160\n cost_per_page = 0.12\n cost = pages * copies * cost_per_page # 1152.0\n print(f\"{cost:.2f... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "1152.00", "printed": "1152.00", "notation": null} |
nlprog_det-setting-0057165 | A settlement of $2,640 is split equally among 6 parties. How much does each party receive?
Let's compute it with Python.
```python
settlement = 2640
parties = 6
share = settlement // parties # 440
print(share)
```
Run result — 440
Each party receives $440. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "440", "printed": "440", "notation": null} |
nlprog_det-setting-0057166 | <|start|><|system|>
Tools (call with JSON):
{"name": "code_runner", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|>
<|user|>
What percentage of $8,000 i... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n{\"name\": \"code_runner\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 206 | {"gold": "7.5", "printed": "7.5", "notation": null} |
nlprog_det-setting-0057167 | <|start|><|system|>
Tool definitions:
[{"name": "code_runner", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "business_days", "description"... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"code_runner\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [... | nlprog_det | setting | original | null | deterministic | [] | [] | 304 | {"gold": "135.00", "printed": "135.00", "notation": null} |
nlprog_det-setting-0057168 | <|start|><|user|>
Convert -15 °C to Fahrenheit.<|eot|>
<|assistant|>
It equals 5 degrees Fahrenheit.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert -15 °C to Fahrenheit."
},
{
"role": "assistant",
"content": "It equals 5 degrees Fahrenheit."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0057169 | One can of paint covers 350 square feet. How many cans are needed for 296 square feet of wall?
Buy 1 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "1", "printed": "1", "notation": null} |
nlprog_det-setting-0057170 | A room is 10 feet by 7 feet. Flooring costs $8 per square foot. What does it cost to floor the room?
It costs $560. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "560", "printed": "560", "notation": null} |
nlprog_det-setting-0057171 | <|start|><|system|>
Tools you may use:
{"name": "calc", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}
{"name": "lookup_statute", "description": "Look up the tex... | chat | [
{
"role": "system",
"content": "Tools you may use:\n{\"name\": \"calc\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}\n{\... | nlprog_det | setting | original | null | deterministic | [] | [] | 307 | {"gold": "3000", "printed": "3000", "notation": null} |
nlprog_det-setting-0057172 | A clerk's office charges $50 for each filing. Ulla submits 12 filings. What is the total fee?
A few lines of Python do it:
```python
fee = 50
filings = 12
total = fee * filings # 600
print(total)
```
(Result: 600)
The filings cost $600 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0057173 | <|start|><|system|>
Tool definitions:
{"name": "compute", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}
{"name": "lookup_statute", "description": "Look... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"compute\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"scri... | nlprog_det | setting | original | null | deterministic | [] | [] | 420 | {"gold": "4.8", "printed": "4.8", "notation": null} |
nlprog_det-setting-0057174 | Split $850 between Rania and Joelle in the ratio 2 to 3. What is Rania's share?
Python does the arithmetic:
```python
total = 850
parts_a = 2
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b) # 340
print(share_a)
```
Running it prints 340.
Rania gets $340. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "340", "printed": "340", "notation": null} |
nlprog_det-setting-0057175 | Emeka was born on October 20, 1983. How old is Emeka on April 17, 2022?
One way, in code:
```python
from datetime import date
born = date(1983, 10, 20) # datetime.date(1983, 10, 20)
on = date(2022, 4, 17) # datetime.date(2022, 4, 17)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 38
pri... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 157 | {"gold": "38", "printed": "38", "notation": null} |
nlprog_det-setting-0057176 | <|start|><|system|>
You have access to these functions:
{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}
{"name": "code_runner", "description": "Evaluates Python and returns the printed output.",... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}\n{\"name\": \"code_runner\", \"descript... | nlprog_det | setting | original | null | deterministic | [] | [] | 333 | {"gold": "66", "printed": "66", "notation": null} |
nlprog_det-setting-0057177 | Someone born August 28, 2007 turns how old by July 2, 2027? Give the age in whole years.
```python
from datetime import date
born = date(2007, 8, 28) # datetime.date(2007, 8, 28)
on = date(2027, 7, 2) # datetime.date(2027, 7, 2)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 19
print(ag... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0057178 | <|start|><|system|>
Tools you may use:
{"name": "py_exec", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|>
<|user|>
Convert 23.5 k... | chat | [
{
"role": "system",
"content": "Tools you may use:\n{\"name\": \"py_exec\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"req... | nlprog_det | setting | original | null | deterministic | [] | [] | 205 | {"gold": "23500", "printed": "23500", "notation": null} |
nlprog_det-setting-0057179 | <|start|><|user|>
Count the days between June 13, 2025 and January 23, 2026.<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2025, 6, 13) # datetime.date(2025, 6, 13)
second = date(2026, 1, 23) # datetime.date(2026, 1, 23)
print((second - first).days)
```
Result:
224
It is 224 days.<|eot|>
<|en... | chat | [
{
"role": "user",
"content": "Count the days between June 13, 2025 and January 23, 2026."
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2025, 6, 13) # datetime.date(2025, 6, 13)\nsecond = date(2026, 1, 23) # datetime.date(2026, 1, 23)\nprint((second -... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "224", "printed": "224", "notation": null} |
nlprog_det-setting-0057180 | A penalty of $250 a day accrues, capped at $5,000. What is owed after 41 days?
Here is a short program for it.
```python
per_day = 250
days = 41
cap = 5000
fine = min(per_day * days, cap) # 5000
print(fine)
```
Execution prints 5000.
$5,000 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "5000", "printed": "5000", "notation": null} |
nlprog_det-setting-0057182 | With 30 rows of 15 chairs and 6 empty chairs, how many chairs are taken? 444 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "444", "printed": "444", "notation": null} |
nlprog_det-setting-0057183 | If a 3-year limitations period starts on January 2, 2020, when does it end? The period expires on January 2, 2023. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 29 | {"gold": "2023-01-02", "printed": "2023-01-02", "notation": null} |
nlprog_det-setting-0057184 | A count moves from 400 to 200. By what percent did it change (use a minus sign for a drop)?
The computation:
```python
old = 400
new = 200
change = (new - old) / old * 100 # -50.0
print(round(change))
```
# run result: -50
The change is -50%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "-50", "printed": "-50", "notation": null} |
nlprog_det-setting-0057185 | Rosa's scores were 95, 57 and 79. What is the average score?
Code:
```python
scores = [95, 57, 79]
average = sum(scores) // len(scores) # 77
print(average)
```
Execution result — 77
The mean is 77. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "77", "printed": "77", "notation": null} |
nlprog_det-setting-0057186 | The landlord deducts $60, $60 and $150 from a $1,500 deposit. What is returned to the tenant?
Let's compute it with Python.
```python
deposit = 1500
deductions = [60, 60, 150]
refund = deposit - sum(deductions) # 1230
print(refund)
```
It outputs: 1230
The refund is $1,230. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "1230", "printed": "1230", "notation": null} |
nlprog_det-setting-0057187 | Shipping costs $12 plus $2.00 per pound. What does a 28-pound parcel cost to ship?
A short script:
```python
base = 12
per_pound = 2.0
weight = 28
cost = base + per_pound * weight # 68.0
print(f"{cost:.2f}")
```
The program outputs: 68.00
Shipping costs $68.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "68.00", "printed": "68.00", "notation": null} |
nlprog_det-setting-0057188 | Straight-line depreciation: cost $12,000, salvage $3,000, 4 years. How much per year?
As a program:
```python
cost = 12000
salvage = 3000
years = 4
per_year = (cost - salvage) / years # 2250.0
print(f"{per_year:.2f}")
```
Execution prints: 2250.00
$2,250.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "2250.00", "printed": "2250.00", "notation": null} |
nlprog_det-setting-0057189 | <|start|><|user|>
The building opened in 2017. How many years had passed by 2045?<|eot|>
<|assistant|>
28 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The building opened in 2017. How many years had passed by 2045?"
},
{
"role": "assistant",
"content": "28 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 28 | {"gold": "28", "printed": "28", "notation": null} |
nlprog_det-setting-0057191 | <|start|><|system|>
Show working only when it helps.<|eot|>
<|user|>
A water bill is $15 plus $5.10 per thousand gallons beyond the first 2 thousand. What is the bill for 6 thousand gallons?<|eot|>
<|assistant|>
```python
base = 15
rate = 5.1
used = 6
free = 2
bill = base + rate * max(0, used - free) # 35.4
print(f"{b... | chat | [
{
"role": "system",
"content": "Show working only when it helps."
},
{
"role": "user",
"content": "A water bill is $15 plus $5.10 per thousand gallons beyond the first 2 thousand. What is the bill for 6 thousand gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 15\nra... | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "35.40", "printed": "35.40", "notation": null} |
nlprog_det-setting-0057192 | Starting with 1488 folders and using 27 per day, how many remain after 7 days?
Program:
```python
stock = 1488
per_day = 27
days = 7
left = stock - per_day * days # 1299
print(left)
```
Run it and it prints: 1299
1299 folders are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "1299", "printed": "1299", "notation": null} |
nlprog_det-setting-0057193 | Someone works 20 hours at $18.35 per hour. What are the earnings?
Program:
```python
rate = 18.35
hours = 20
earnings = rate * hours # 367.0
print(f"{earnings:.2f}")
```
What it prints: 367.00
The pay is $367.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "367.00", "printed": "367.00", "notation": null} |
nlprog_det-setting-0057194 | <|start|><|user|>
Which is cheaper per unit: 10 for $4.68 (A) or 18 for $28.30 (B)?<|eot|>
<|assistant|>
```python
pack_a = 4.68 / 10 # 0.46799999999999997
pack_b = 28.3 / 18 # 1.5722222222222222
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
This prints A, as expected.
A has the lower unit pric... | chat | [
{
"role": "user",
"content": "Which is cheaper per unit: 10 for $4.68 (A) or 18 for $28.30 (B)?"
},
{
"role": "assistant",
"content": "```python\npack_a = 4.68 / 10 # 0.46799999999999997\npack_b = 28.3 / 18 # 1.5722222222222222\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'A'\nprint(cheap... | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0057195 | <|start|><|user|>
A 9-day trip pays $64 a day for meals and $110 a night for lodging (8 nights). What is the total allowance?<|eot|>
<|assistant|>
```python
days = 9
meal_rate = 64
lodging_rate = 110
nights = days - 1 # 8
total = days * meal_rate + nights * lodging_rate # 1456
print(total)
```
Console:
1456
That com... | chat | [
{
"role": "user",
"content": "A 9-day trip pays $64 a day for meals and $110 a night for lodging (8 nights). What is the total allowance?"
},
{
"role": "assistant",
"content": "```python\ndays = 9\nmeal_rate = 64\nlodging_rate = 110\nnights = days - 1 # 8\ntotal = days * meal_rate + nights * lo... | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "1456", "printed": "1456", "notation": null} |
nlprog_det-setting-0057196 | Starting from $25,000, the team spends $2,943, $2,449, $3,212. What remains?
Python:
```python
budget = 25000
expenses = [2943, 2449, 3212]
left = budget - sum(expenses) # 16396
print(left)
```
Run output: 16396
The remaining budget is $16,396. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "16396", "printed": "16396", "notation": null} |
nlprog_det-setting-0057197 | A $180 dinner bill gets a 15% tip, and 3 people share the cost equally. What is each person's share?
```python
bill = 180
tip_rate = 15 / 100 # 0.15
people = 3
each = bill * (1 + tip_rate) / people # 68.99999999999999
print(f"{each:.2f}")
```
Run it and it prints: 69.00
The share is $69.00 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "69.00", "printed": "69.00", "notation": null} |
nlprog_det-setting-0057198 | A party has 21 days to respond to a motion served on April 6, 2022, with 3 days added because service was by mail. When is the response due?
```python
from datetime import date, timedelta
served = date(2022, 4, 6) # datetime.date(2022, 4, 6)
response_days = 21
mail_days = 3
due = served + timedelta(days=response_days... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 166 | {"gold": "2022-04-30", "printed": "2022-04-30", "notation": null} |
nlprog_det-setting-0057199 | <|start|><|user|>
An invoice lists 5 chairs at $15 each, plus 8% sales tax. What is the invoice total?<|eot|>
<|assistant|>
```python
quantity = 5
unit_price = 15
subtotal = quantity * unit_price
total = subtotal * (1 + 8 / 100)
print(f"{total:.2f}")
```
It prints 81.00, as expected.
The total with tax is $81.00.<|eot... | chat | [
{
"role": "user",
"content": "An invoice lists 5 chairs at $15 each, plus 8% sales tax. What is the invoice total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 5\nunit_price = 15\nsubtotal = quantity * unit_price\ntotal = subtotal * (1 + 8 / 100)\nprint(f\"{total:.2f}\")\n```\nIt... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "81.00", "printed": "81.00", "notation": null} |
nlprog_det-setting-0057200 | A 35 lb package ships at $10 base plus $0.75/lb. What is the charge?
Translated to Python:
```python
base = 10
per_pound = 0.75
weight = 35
cost = base + per_pound * weight # 36.25
print(f"{cost:.2f}")
```
Shell output — 36.25
Shipping costs $36.25. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "36.25", "printed": "36.25", "notation": null} |
nlprog_det-setting-0057201 | <|start|><|user|>
How many weekdays (Monday to Friday) fall after August 15, 2022 up to and including August 29, 2022?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2022, 8, 15)
end = date(2022, 8, 29)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days... | chat | [
{
"role": "user",
"content": "How many weekdays (Monday to Friday) fall after August 15, 2022 up to and including August 29, 2022?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2022, 8, 15)\nend = date(2022, 8, 29)\ncount = 0\nfor k in range... | nlprog_det | setting | original | null | deterministic | [] | [] | 154 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0057203 | An office budget of $25,000 has expenses of $778, $1,109. How much of the budget is left?
A Python solution:
```python
budget = 25000
expenses = [778, 1109]
left = budget - sum(expenses) # 23113
print(left)
```
It prints 23113, as expected.
The remaining budget is $23,113. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "23113", "printed": "23113", "notation": null} |
nlprog_det-setting-0057204 | 177 copies of a 59-page packet are printed at $0.10 per page. What is the cost? The job costs $1,044.30. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "1044.30", "printed": "1044.30", "notation": null} |
nlprog_det-setting-0057205 | Count 120 days forward from July 4, 2025. What date is that?
Program:
```python
from datetime import date, timedelta
start = date(2025, 7, 4) # datetime.date(2025, 7, 4)
end = start + timedelta(days=120) # datetime.date(2025, 11, 1)
print(end.isoformat())
```
Running it prints: 2025-11-01
The period ends on Novembe... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "2025-11-01", "printed": "2025-11-01", "notation": null} |
nlprog_det-setting-0057206 | On which weekday does November 9, 2006 fall?
It is a Thursday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 20 | {"gold": "Thursday", "printed": "Thursday", "notation": null} |
nlprog_det-setting-0057207 | <|start|><|user|>
Walls total 1045 sq ft and each can covers 300 sq ft. How many cans should be bought?<|eot|>
<|assistant|>
```python
import math
area = 1045
coverage = 300
cans = math.ceil(area / coverage) # 4
print(cans)
```
Printed: 4
4 cans are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Walls total 1045 sq ft and each can covers 300 sq ft. How many cans should be bought?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 1045\ncoverage = 300\ncans = math.ceil(area / coverage) # 4\nprint(cans)\n```\nPrinted: 4\n\n4 cans are neede... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0057208 | <|start|><|user|>
Carmen's scores were 98, 76, 60, 52, 84, 91 and 99. What is the average score?<|eot|>
<|assistant|>
```python
scores = [98, 76, 60, 52, 84, 91, 99]
average = sum(scores) // len(scores) # 80
print(average)
```
Shell output — 80
The average score is 80.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Carmen's scores were 98, 76, 60, 52, 84, 91 and 99. What is the average score?"
},
{
"role": "assistant",
"content": "```python\nscores = [98, 76, 60, 52, 84, 91, 99]\naverage = sum(scores) // len(scores) # 80\nprint(average)\n```\nShell output — 80\n\nThe average ... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "80", "printed": "80", "notation": null} |
nlprog_det-setting-0057209 | <|start|><|user|>
Which is cheaper per unit: 10 for $13.77 (A) or 18 for $7.18 (B)?<|eot|>
<|assistant|>
```python
pack_a = 13.77 / 10 # 1.377
pack_b = 7.18 / 18 # 0.39888888888888885
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
On running, it outputs: B
B has the lower unit price.<|eot|>
<|en... | chat | [
{
"role": "user",
"content": "Which is cheaper per unit: 10 for $13.77 (A) or 18 for $7.18 (B)?"
},
{
"role": "assistant",
"content": "```python\npack_a = 13.77 / 10 # 1.377\npack_b = 7.18 / 18 # 0.39888888888888885\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'B'\nprint(cheaper)\n```\nOn... | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0057210 | <|start|><|system|>
You may call the tools below.
{"name": "calculator", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|>
<|user|>
Convert ... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n{\"name\": \"calculator\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}},... | nlprog_det | setting | original | null | deterministic | [] | [] | 185 | {"gold": "83200", "printed": "83200", "notation": null} |
nlprog_det-setting-0057211 | <|start|><|user|>
To read 232 pages in 4 days, how many pages per day are needed?<|eot|>
<|assistant|>
```python
pages = 232
days = 4
per_day = pages // days # 58
print(per_day)
```
The interpreter prints 58.
That is 58 pages per day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "To read 232 pages in 4 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": "```python\npages = 232\ndays = 4\nper_day = pages // days # 58\nprint(per_day)\n```\nThe interpreter prints 58.\n\nThat is 58 pages per day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "58", "printed": "58", "notation": null} |
nlprog_det-setting-0057212 | Parking is $4 per hour with a daily maximum of $24. What do 8 hours cost?
Here is the program.
```python
rate = 4
hours = 8
daily_max = 24
cost = min(rate * hours, daily_max) # 24
print(cost)
```
Printed: 24
The charge is $24. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0057213 | Goran lends $12,000 at 3% simple interest per year for 3 years. How much interest is earned?
Written as code:
```python
principal = 12000
rate = 3 / 100 # 0.03
years = 3
interest = principal * rate * years # 1080.0
print(f"{interest:.2f}")
```
The program prints 1080.00, as expected.
The interest is $1,080.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "1080.00", "printed": "1080.00", "notation": null} |
nlprog_det-setting-0057214 | <|start|><|user|>
$5,000 is invested at 3% compounded yearly. What is it worth after 2 years?<|eot|>
<|assistant|>
principal = 5000
rate = 3 / 100
years = 2
value = principal * (1 + rate) ** years
print(f"{value:.2f}")
The interpreter prints 5304.50.
It is worth $5,304.50.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "$5,000 is invested at 3% compounded yearly. What is it worth after 2 years?"
},
{
"role": "assistant",
"content": " principal = 5000\n rate = 3 / 100\n years = 2\n value = principal * (1 + rate) ** years\n print(f\"{value:.2f}\")\nThe interpreter prin... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "5304.50", "printed": "5304.50", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.