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-0080768 | <|start|><|user|>
On which weekday does August 12, 2028 fall?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(2028, 8, 12) # datetime.date(2028, 8, 12)
print(hearing.strftime("%A"))
```
That prints Saturday.
It is a Saturday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "On which weekday does August 12, 2028 fall?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(2028, 8, 12) # datetime.date(2028, 8, 12)\nprint(hearing.strftime(\"%A\"))\n```\nThat prints Saturday.\n\nIt is a Saturday."
}
... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "Saturday", "printed": "Saturday", "notation": null} |
nlprog_det-setting-0080769 | Goods bought on October 3, 2025 carry a 24-month warranty. When does it expire?
In Python:
```python
from datetime import date
start = date(2025, 10, 3)
months = 24
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
Run result... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 150 | {"gold": "2027-10-03", "printed": "2027-10-03", "notation": null} |
nlprog_det-setting-0080770 | <|start|><|user|>
A 60-day notice period begins on July 19, 2020. On what date does it end?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2020, 7, 19) # datetime.date(2020, 7, 19)
end = start + timedelta(days=60) # datetime.date(2020, 9, 17)
print(end.isoformat())
```
# console outp... | chat | [
{
"role": "user",
"content": "A 60-day notice period begins on July 19, 2020. On what date does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2020, 7, 19) # datetime.date(2020, 7, 19)\nend = start + timedelta(days=60) # datetime.da... | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "2020-09-17", "printed": "2020-09-17", "notation": null} |
nlprog_det-setting-0080771 | Which is cheaper per unit: 10 for $4.62 (A) or 30 for $21.46 (B)?
```python
pack_a = 4.62 / 10 # 0.462
pack_b = 21.46 / 30 # 0.7153333333333334
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
That prints: A
A has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0080772 | Meals are $79 per day and lodging $175 per night. What is the allowance for 3 days and 2 nights?
Computation in Python:
```python
days = 3
meal_rate = 79
lodging_rate = 175
nights = days - 1 # 2
total = days * meal_rate + nights * lodging_rate # 587
print(total)
```
stdout:
587
That comes to $587. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "587", "printed": "587", "notation": null} |
nlprog_det-setting-0080773 | Convert 25 °C to Fahrenheit.
A Python solution:
```python
celsius = 25
fahrenheit = celsius * 9 / 5 + 32 # 77.0
print(round(fahrenheit))
```
Executing it gives 77, as expected.
It equals 77 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "77", "printed": "77", "notation": null} |
nlprog_det-setting-0080774 | <|start|><|system|>
You are a study helper for students.<|eot|>
<|user|>
840 files go into boxes of 20. How many boxes does that take?<|eot|>
<|assistant|>
import math
files = 840
per_box = 20
boxes = math.ceil(files / per_box) # 42
print(boxes)
Output of the run: 42
It takes 42 boxes.<|eot|>
<|en... | chat | [
{
"role": "system",
"content": "You are a study helper for students."
},
{
"role": "user",
"content": "840 files go into boxes of 20. How many boxes does that take?"
},
{
"role": "assistant",
"content": " import math\n files = 840\n per_box = 20\n boxes = math.ceil(files ... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "42", "printed": "42", "notation": null} |
nlprog_det-setting-0080775 | <|start|><|user|>
One can of paint covers 250 square feet. How many cans are needed for 430 square feet of wall?<|eot|>
<|assistant|>
2 cans are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "One can of paint covers 250 square feet. How many cans are needed for 430 square feet of wall?"
},
{
"role": "assistant",
"content": "2 cans are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0080776 | <|start|><|system|>
You are a puzzle helper.<|eot|>
<|user|>
An office budget of $20,000 has expenses of $3,741, $2,608, $1,633. How much of the budget is left?<|eot|>
<|assistant|>
The remaining budget is $12,018.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a puzzle helper."
},
{
"role": "user",
"content": "An office budget of $20,000 has expenses of $3,741, $2,608, $1,633. How much of the budget is left?"
},
{
"role": "assistant",
"content": "The remaining budget is $12,018."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 68 | {"gold": "12018", "printed": "12018", "notation": null} |
nlprog_det-setting-0080777 | What day of the week is January 6, 2008?
A short script:
```python
from datetime import date
hearing = date(2008, 1, 6) # datetime.date(2008, 1, 6)
print(hearing.strftime("%A"))
```
It prints: Sunday
It is a Sunday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "Sunday", "printed": "Sunday", "notation": null} |
nlprog_det-setting-0080778 | <|start|><|user|>
How many whole days and leftover hours are in 233 hours?<|eot|>
<|assistant|>
```python
hours = 233
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Executing it gives 9 days and 17 hours.
That is 9 days and 17 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many whole days and leftover hours are in 233 hours?"
},
{
"role": "assistant",
"content": "```python\nhours = 233\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nExecuting it gives 9 days and 17 hours.\n\nThat is 9 days and 17 ho... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "9 days and 17 hours", "printed": "9 days and 17 hours", "notation": null} |
nlprog_det-setting-0080779 | <|start|><|user|>
Fixed costs are $1,200. Each unit sells for $25 and costs $21 to make. How many units must be sold to break even?<|eot|>
<|assistant|>
300 units are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Fixed costs are $1,200. Each unit sells for $25 and costs $21 to make. How many units must be sold to break even?"
},
{
"role": "assistant",
"content": "300 units are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0080780 | <|start|><|user|>
Attendance was 78 out of 100. Express it as a percent.<|eot|>
<|assistant|>
```python
present = 78
total = 100
percent = present / total * 100 # 78.0
print(round(percent, 1))
```
Running this gives: 78.0
Attendance was 78.0%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Attendance was 78 out of 100. Express it as a percent."
},
{
"role": "assistant",
"content": "```python\npresent = 78\ntotal = 100\npercent = present / total * 100 # 78.0\nprint(round(percent, 1))\n```\nRunning this gives: 78.0\n\nAttendance was 78.0%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "78.0", "printed": "78.0", "notation": null} |
nlprog_det-setting-0080781 | Pay is $22.40/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 44 hours?
The weekly pay is $1,030.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 47 | {"gold": "1030.40", "printed": "1030.40", "notation": null} |
nlprog_det-setting-0080782 | A water bill is $18 plus $5.10 per thousand gallons beyond the first 3 thousand. What is the bill for 23 thousand gallons?
One way, in code:
```python
base = 18
rate = 5.1
used = 23
free = 3
bill = base + rate * max(0, used - free) # 120.0
print(f"{bill:.2f}")
```
Printed result: 120.00
$120.00 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "120.00", "printed": "120.00", "notation": null} |
nlprog_det-setting-0080783 | <|start|><|user|>
37 of 40 members attended. What percent attended?<|eot|>
<|assistant|>
```python
present = 37
total = 40
percent = present / total * 100 # 92.5
print(round(percent, 1))
```
(stdout: 92.5)
92.5% attended.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "37 of 40 members attended. What percent attended?"
},
{
"role": "assistant",
"content": "```python\npresent = 37\ntotal = 40\npercent = present / total * 100 # 92.5\nprint(round(percent, 1))\n```\n(stdout: 92.5)\n\n92.5% attended."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "92.5", "printed": "92.5", "notation": null} |
nlprog_det-setting-0080784 | A party has 21 days to respond to a motion served on February 11, 2023, with 3 days added because service was by mail. When is the response due?
We can compute it in Python.
from datetime import date, timedelta
served = date(2023, 2, 11) # datetime.date(2023, 2, 11)
response_days = 21
mail_days = 3
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 167 | {"gold": "2023-03-07", "printed": "2023-03-07", "notation": null} |
nlprog_det-setting-0080785 | Shipping costs $10 plus $1.20 per pound. What does a 25-pound parcel cost to ship?
```python
base = 10
per_pound = 1.2
weight = 25
cost = base + per_pound * weight # 40.0
print(f"{cost:.2f}")
```
Running this gives: 40.00
The charge is $40.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "40.00", "printed": "40.00", "notation": null} |
nlprog_det-setting-0080786 | What is the total rent on a 6-month lease at $850 a month?
Here is a short program for it.
```python
monthly_rent = 850
months = 6
total = monthly_rent * months # 5100
print(total)
```
# program output: 5100
The rent over the term is $5,100. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "5100", "printed": "5100", "notation": null} |
nlprog_det-setting-0080787 | <|start|><|user|>
How many minutes pass from 8:19 AM to 8:45 AM on the same day?<|eot|>
<|assistant|>
```python
start = 8 * 60 + 19 # 499
end = 8 * 60 + 45 # 525
print(end - start)
```
Printed:
26
26 minutes pass.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many minutes pass from 8:19 AM to 8:45 AM on the same day?"
},
{
"role": "assistant",
"content": "```python\nstart = 8 * 60 + 19 # 499\nend = 8 * 60 + 45 # 525\nprint(end - start)\n```\nPrinted:\n26\n\n26 minutes pass."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0080788 | With 30% off, what does a $80 chair cost?
As Python:
```python
price = 80
discount = 30 / 100 # 0.3
sale_price = price * (1 - discount) # 56.0
print(f"{sale_price:.2f}")
```
Interpreter output — 56.00
It costs $56.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "56.00", "printed": "56.00", "notation": null} |
nlprog_det-setting-0080789 | A trial runs from December 15, 2018 to December 23, 2018, counting both days. How many calendar days is that?
Programmatically:
```python
from datetime import date
first = date(2018, 12, 15) # datetime.date(2018, 12, 15)
last = date(2018, 12, 23) # datetime.date(2018, 12, 23)
days = (last - first).days + 1 # 9
prin... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0080790 | <|start|><|system|>
You may call the tools below.
[{"name": "python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
How many w... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"... | nlprog_det | setting | original | null | deterministic | [] | [] | 217 | {"gold": "4 days and 10 hours", "printed": "4 days and 10 hours", "notation": null} |
nlprog_det-setting-0080791 | A car travels 494 miles in 2 hours. What is its average speed in miles per hour?
It averages 247 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "247", "printed": "247", "notation": null} |
nlprog_det-setting-0080792 | A count moves from 1,000 to 1,200. By what percent did it change (use a minus sign for a drop)?
The computation:
```python
old = 1000
new = 1200
change = (new - old) / old * 100 # 20.0
print(round(change))
```
Printed result — 20
It changed by 20%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0080793 | 2 clients win $60,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?
As a program:
```python
award = 60000
fee = award * 30 / 100 # 18000.0
remaining = award - fee # 42000.0
per_client = remaining / 2 # 21000.0
print(f"{per_client:.2f}")
```
This prints 21000.00.
Each share is... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "21000.00", "printed": "21000.00", "notation": null} |
nlprog_det-setting-0080794 | <|start|><|user|>
A 18-month warranty starts on October 21, 2019. On what date does it end?<|eot|>
<|assistant|>
```python
from datetime import date
start = date(2019, 10, 21)
months = 18
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isofo... | chat | [
{
"role": "user",
"content": "A 18-month warranty starts on October 21, 2019. On what date does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nstart = date(2019, 10, 21)\nmonths = 18\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(star... | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "2021-04-21", "printed": "2021-04-21", "notation": null} |
nlprog_det-setting-0080795 | Convert 50 km to meters.
Program:
```python
km = 50
meters = km * 1000 # 50000
print(round(meters))
```
When run, it prints: 50000
50,000 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 71 | {"gold": "50000", "printed": "50000", "notation": null} |
nlprog_det-setting-0080796 | A party has 28 days to respond to a motion served on October 27, 2024, with 3 days added because service was by mail. When is the response due?
In Python:
```python
from datetime import date, timedelta
served = date(2024, 10, 27) # datetime.date(2024, 10, 27)
response_days = 28
mail_days = 3
due = served + timedelta(... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 177 | {"gold": "2024-11-27", "printed": "2024-11-27", "notation": null} |
nlprog_det-setting-0080797 | An office budget of $25,000 has expenses of $996, $2,880, $1,382, $3,560. How much of the budget is left?
Set it up in Python:
```python
budget = 25000
expenses = [996, 2880, 1382, 3560]
left = budget - sum(expenses) # 16182
print(left)
```
Shell output — 16182
The remaining budget is $16,182. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "16182", "printed": "16182", "notation": null} |
nlprog_det-setting-0080798 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"name": "python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}
{"nam... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Pyth... | nlprog_det | setting | original | null | deterministic | [] | [] | 301 | {"gold": "562.50", "printed": "562.50", "notation": null} |
nlprog_det-setting-0080799 | <|start|><|system|>
You are a puzzle helper.<|eot|>
<|user|>
Fixed costs are $2,500. Each unit sells for $40 and costs $36 to make. How many units must be sold to break even?<|eot|>
<|assistant|>
```python
import math
fixed = 2500
price = 40
variable = 36
units = math.ceil(fixed / (price - variable)) # 625
print(units... | chat | [
{
"role": "system",
"content": "You are a puzzle helper."
},
{
"role": "user",
"content": "Fixed costs are $2,500. Each unit sells for $40 and costs $36 to make. How many units must be sold to break even?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 2500\npr... | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "625", "printed": "625", "notation": null} |
nlprog_det-setting-0080801 | How many units at $20 each (variable cost $10) cover $2,500 of fixed costs?
Code:
```python
import math
fixed = 2500
price = 20
variable = 10
units = math.ceil(fixed / (price - variable)) # 250
print(units)
```
Run result: 250
250 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "250", "printed": "250", "notation": null} |
nlprog_det-setting-0080802 | Water costs $18 a month plus $4.75 for each 1,000 gallons over 0,000. What is owed for 18,000 gallons?
The computation:
```python
base = 18
rate = 4.75
used = 18
free = 0
bill = base + rate * max(0, used - free) # 103.5
print(f"{bill:.2f}")
```
(Out: 103.50)
The bill is $103.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "103.50", "printed": "103.50", "notation": null} |
nlprog_det-setting-0080803 | How many whole days and leftover hours are in 44 hours?
Python code:
```python
hours = 44
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
When run, it prints: 1 days and 20 hours
44 hours is 1 days and 20 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "1 days and 20 hours", "printed": "1 days and 20 hours", "notation": null} |
nlprog_det-setting-0080804 | A party has 21 days to respond to a motion served on March 21, 2024, with 3 days added because service was by mail. When is the response due?
In code:
```python
from datetime import date, timedelta
served = date(2024, 3, 21) # datetime.date(2024, 3, 21)
response_days = 21
mail_days = 3
due = served + timedelta(days=r... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 173 | {"gold": "2024-04-14", "printed": "2024-04-14", "notation": null} |
nlprog_det-setting-0080805 | <|start|><|user|>
Rania and Tobias share $3,017 in the ratio 3:4. How much does Rania get?<|eot|>
<|assistant|>
Rania's share is $1,293.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Rania and Tobias share $3,017 in the ratio 3:4. How much does Rania get?"
},
{
"role": "assistant",
"content": "Rania's share is $1,293."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 50 | {"gold": "1293", "printed": "1293", "notation": null} |
nlprog_det-setting-0080807 | <|start|><|system|>
Tools you may use:
[{"name": "code_runner", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "lookup_statute", "description": "Look up the ... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"code_runner\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}, ... | nlprog_det | setting | original | null | deterministic | [] | [] | 303 | {"gold": "1050.00", "printed": "1050.00", "notation": null} |
nlprog_det-setting-0080808 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "code_runner", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
Parking is $4... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"code_runner\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"req... | nlprog_det | setting | original | null | deterministic | [] | [] | 227 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0080809 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
Water costs $20 a month plus $5.10 for each 1,000 gallons over 3,000. What is owed for 7,000 gallons?<|eot|>
<|assistant|>
base = 20
rate = 5.1
used = 7
free = 3
bill = base + rate * max(0, used - free) # 40.4
print(f"{bill:.2f}")... | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Water costs $20 a month plus $5.10 for each 1,000 gallons over 3,000. What is owed for 7,000 gallons?"
},
{
"role": "assistant",
"content": " base = 20\n rate = 5.1\n used = 7\n ... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "40.40", "printed": "40.40", "notation": null} |
nlprog_det-setting-0080810 | <|start|><|user|>
At 1% a month (simple), what interest builds on $1,000 over 5 months?<|eot|>
<|assistant|>
```python
balance = 1000
monthly_rate = 1 / 100 # 0.01
months = 5
interest = balance * monthly_rate * months # 50.0
print(f"{interest:.2f}")
```
The run gives 50.00.
The interest is $50.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At 1% a month (simple), what interest builds on $1,000 over 5 months?"
},
{
"role": "assistant",
"content": "```python\nbalance = 1000\nmonthly_rate = 1 / 100 # 0.01\nmonths = 5\ninterest = balance * monthly_rate * months # 50.0\nprint(f\"{interest:.2f}\")\n```\nT... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "50.00", "printed": "50.00", "notation": null} |
nlprog_det-setting-0080811 | <|start|><|user|>
The paralegal logged 1.5 hours at a rate of $350. How much is billed?<|eot|>
<|assistant|>
```python
hours = 1.5
rate = 350
bill = hours * rate # 525.0
print(f"{bill:.2f}")
```
Execution result — 525.00
The bill is $525.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The paralegal logged 1.5 hours at a rate of $350. How much is billed?"
},
{
"role": "assistant",
"content": "```python\nhours = 1.5\nrate = 350\nbill = hours * rate # 525.0\nprint(f\"{bill:.2f}\")\n```\nExecution result — 525.00\n\nThe bill is $525.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "525.00", "printed": "525.00", "notation": null} |
nlprog_det-setting-0080812 | With 13 rows of 12 chairs and 4 empty chairs, how many chairs are taken?
```python
rows = 13
per_row = 12
empty = 4
seated = rows * per_row - empty # 152
print(seated)
```
The program outputs: 152
152 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "152", "printed": "152", "notation": null} |
nlprog_det-setting-0080813 | A claim accrued on March 3, 2016. The limitations period is 5 years. On what date does it expire?
Here is a short program for it.
```python
from datetime import date
accrued = date(2016, 3, 3) # datetime.date(2016, 3, 3)
years = 5
expires = accrued.replace(year=accrued.year + years) # datetime.date(2021, 3, 3)
print... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "2021-03-03", "printed": "2021-03-03", "notation": null} |
nlprog_det-setting-0080814 | A hall has 25 rows of 13 seats, and 36 seats are empty. How many people are seated?
Code:
```python
rows = 25
per_row = 13
empty = 36
seated = rows * per_row - empty # 289
print(seated)
```
(Program output: 289)
289 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "289", "printed": "289", "notation": null} |
nlprog_det-setting-0080815 | <|start|><|user|>
An office budget of $8,000 has expenses of $615, $481, $1,468. How much of the budget is left?<|eot|>
<|assistant|>
budget = 8000
expenses = [615, 481, 1468]
left = budget - sum(expenses) # 5436
print(left)
stdout = 5436
$5,436 is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An office budget of $8,000 has expenses of $615, $481, $1,468. How much of the budget is left?"
},
{
"role": "assistant",
"content": " budget = 8000\n expenses = [615, 481, 1468]\n left = budget - sum(expenses) # 5436\n print(left)\nstdout = 5436\n\n$5,... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "5436", "printed": "5436", "notation": null} |
nlprog_det-setting-0080816 | <|start|><|system|>
Show working only when it helps.<|eot|>
<|user|>
If a 6-year limitations period starts on August 15, 2017, when does it end?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2017, 8, 15) # datetime.date(2017, 8, 15)
years = 6
expires = accrued.replace(year=accrued.year + year... | chat | [
{
"role": "system",
"content": "Show working only when it helps."
},
{
"role": "user",
"content": "If a 6-year limitations period starts on August 15, 2017, when does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrued = date(2017, 8, 15) # d... | nlprog_det | setting | original | null | deterministic | [] | [] | 152 | {"gold": "2023-08-15", "printed": "2023-08-15", "notation": null} |
nlprog_det-setting-0080817 | At 2% a month (simple), what interest builds on $1,000 over 3 months?
As Python:
```python
balance = 1000
monthly_rate = 2 / 100 # 0.02
months = 3
interest = balance * monthly_rate * months # 60.0
print(f"{interest:.2f}")
```
# run result: 60.00
The interest is $60.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "60.00", "printed": "60.00", "notation": null} |
nlprog_det-setting-0080818 | <|start|><|user|>
Straight-line depreciation: cost $12,000, salvage $3,000, 10 years. How much per year?<|eot|>
<|assistant|>
```python
cost = 12000
salvage = 3000
years = 10
per_year = (cost - salvage) / years # 900.0
print(f"{per_year:.2f}")
```
The program outputs 900.00.
$900.00 a year.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Straight-line depreciation: cost $12,000, salvage $3,000, 10 years. How much per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 12000\nsalvage = 3000\nyears = 10\nper_year = (cost - salvage) / years # 900.0\nprint(f\"{per_year:.2f}\")\n```\nThe prog... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "900.00", "printed": "900.00", "notation": null} |
nlprog_det-setting-0080819 | Rent of $900 goes up 5%. What is the new rent?
A few lines of Python do it:
```python
rent = 900
increase = 5 / 100
new_rent = rent * (1 + increase)
print(f"{new_rent:.2f}")
```
When run, it prints: 945.00
The new rent is $945.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "945.00", "printed": "945.00", "notation": null} |
nlprog_det-setting-0080820 | <|start|><|system|>
Be brief and correct.<|eot|>
<|user|>
A clerk's office charges $35 for each filing. Sami submits 8 filings. What is the total fee?<|eot|>
<|assistant|>
```python
fee = 35
filings = 8
total = fee * filings # 280
print(total)
```
Execution prints 280, as expected.
The total fee is $280.<|eot|>
<|end... | chat | [
{
"role": "system",
"content": "Be brief and correct."
},
{
"role": "user",
"content": "A clerk's office charges $35 for each filing. Sami submits 8 filings. What is the total fee?"
},
{
"role": "assistant",
"content": "```python\nfee = 35\nfilings = 8\ntotal = fee * filings # 280\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "280", "printed": "280", "notation": null} |
nlprog_det-setting-0080821 | If a 105-minute appointment begins at 9:20 AM, what time does it finish?
We write it as a program:
```python
start = 9 * 60 + 20
end = start + 105
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Console:
11:05 AM
The appointment finishes at 11:05 AM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "11:05 AM", "printed": "11:05 AM", "notation": null} |
nlprog_det-setting-0080822 | <|start|><|user|>
Goods bought on March 27, 2024 carry a 36-month warranty. When does it expire?<|eot|>
<|assistant|>
```python
from datetime import date
start = date(2024, 3, 27)
months = 36
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.i... | chat | [
{
"role": "user",
"content": "Goods bought on March 27, 2024 carry a 36-month warranty. When does it expire?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nstart = date(2024, 3, 27)\nmonths = 36\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(... | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "2027-03-27", "printed": "2027-03-27", "notation": null} |
nlprog_det-setting-0080823 | Walls total 304 sq ft and each can covers 350 sq ft. How many cans should be bought?
Here is a short program for it.
```python
import math
area = 304
coverage = 350
cans = math.ceil(area / coverage) # 1
print(cans)
```
The program prints: 1
Buy 1 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "1", "printed": "1", "notation": null} |
nlprog_det-setting-0080824 | <|start|><|system|>
Answer accurately and briefly.<|eot|>
<|user|>
A $48,000 grant pays $3,000 up front and the rest in 3 equal installments. How large is each installment?<|eot|>
<|assistant|>
```python
grant = 48000
up_front = 3000
installments = 3
each = (grant - up_front) / installments # 15000.0
print(f"{each:.2f... | chat | [
{
"role": "system",
"content": "Answer accurately and briefly."
},
{
"role": "user",
"content": "A $48,000 grant pays $3,000 up front and the rest in 3 equal installments. How large is each installment?"
},
{
"role": "assistant",
"content": "```python\ngrant = 48000\nup_front = 3000\... | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "15000.00", "printed": "15000.00", "notation": null} |
nlprog_det-setting-0080825 | After a 40% fee is taken from a $60,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?
In code:
```python
award = 60000
fee = award * 40 / 100
remaining = award - fee
per_client = remaining / 2
print(f"{per_client:.2f}")
```
Running this gives: 18000.00
Each client gets $18,000.00... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "18000.00", "printed": "18000.00", "notation": null} |
nlprog_det-setting-0080826 | Scale 240 g of pasta from 2 servings to 4 servings. Use 480 g of pasta. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 26 | {"gold": "480", "printed": "480", "notation": null} |
nlprog_det-setting-0080827 | <|start|><|user|>
A 129-page report must be reviewed in 3 days. How many pages a day is that, evenly?<|eot|>
<|assistant|>
43 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 129-page report must be reviewed in 3 days. How many pages a day is that, evenly?"
},
{
"role": "assistant",
"content": "43 pages a day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "43", "printed": "43", "notation": null} |
nlprog_det-setting-0080828 | How many weekdays (Monday to Friday) fall after October 11, 2020 up to and including October 29, 2020?
There are 14 business days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0080829 | Revenue is $41,000 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?
Here's the code.
revenue = 41000
costs = 36000
profit = revenue - costs # 5000
margin = profit / revenue * 100 # 12.195121951219512
print(round(margin, 1))
The interpreter prints 12.2.
Prof... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "12.2", "printed": "12.2", "notation": null} |
nlprog_det-setting-0080830 | <|start|><|user|>
Convert 20 °C to Fahrenheit.<|eot|>
<|assistant|>
That is 68 °F.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 20 °C to Fahrenheit."
},
{
"role": "assistant",
"content": "That is 68 °F."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "68", "printed": "68", "notation": null} |
nlprog_det-setting-0080832 | Equipment costs $45,000, has a salvage value of $0, and a useful life of 8 years. What is the straight-line depreciation per year?
$5,625.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 47 | {"gold": "5625.00", "printed": "5625.00", "notation": null} |
nlprog_det-setting-0080833 | Equal monthly payments repay $3,600 plus 10% simple yearly interest over 36 months. How large is a payment?
Coded up:
```python
principal = 3600
annual_rate = 10 / 100 # 0.1
months = 36
interest = principal * annual_rate * months / 12 # 1080.0
payment = (principal + interest) / months # 130.0
print(f"{payment:.2f}"... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "130.00", "printed": "130.00", "notation": null} |
nlprog_det-setting-0080834 | A penalty of $100 a day accrues, capped at $1,000. What is owed after 4 days?
Programmatically:
```python
per_day = 100
days = 4
cap = 1000
fine = min(per_day * days, cap) # 400
print(fine)
```
Printed result: 400
$400 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "400", "printed": "400", "notation": null} |
nlprog_det-setting-0080835 | <|start|><|user|>
4 walks at 350 calories each burn how many calories in total?<|eot|>
<|assistant|>
```python
per_session = 350
sessions = 4
total = per_session * sessions # 1400
print(total)
```
When run, it prints: 1400
1400 calories in total.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "4 walks at 350 calories each burn how many calories in total?"
},
{
"role": "assistant",
"content": "```python\nper_session = 350\nsessions = 4\ntotal = per_session * sessions # 1400\nprint(total)\n```\nWhen run, it prints: 1400\n\n1400 calories in total."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "1400", "printed": "1400", "notation": null} |
nlprog_det-setting-0080836 | <|start|><|user|>
4 friends split a $84 bill plus a 20% tip evenly. How much does each pay?<|eot|>
<|assistant|>
bill = 84
tip_rate = 20 / 100
people = 4
each = bill * (1 + tip_rate) / people
print(f"{each:.2f}")
The run gives 25.20.
The share is $25.20 each.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "4 friends split a $84 bill plus a 20% tip evenly. How much does each pay?"
},
{
"role": "assistant",
"content": " bill = 84\n tip_rate = 20 / 100\n people = 4\n each = bill * (1 + tip_rate) / people\n print(f\"{each:.2f}\")\nThe run gives 25.20.\n\nTh... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "25.20", "printed": "25.20", "notation": null} |
nlprog_det-setting-0080837 | To read 56 pages in 4 days, how many pages per day are needed? 14 pages a day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 23 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0080838 | <|start|><|user|>
A car travels 295 miles in 0.5 hours. What is its average speed in miles per hour?<|eot|>
<|assistant|>
```python
distance = 295
hours = 0.5
speed = distance / hours # 590.0
print(round(speed))
```
Result: 590
It averages 590 miles per hour.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A car travels 295 miles in 0.5 hours. What is its average speed in miles per hour?"
},
{
"role": "assistant",
"content": "```python\ndistance = 295\nhours = 0.5\nspeed = distance / hours # 590.0\nprint(round(speed))\n```\nResult: 590\n\nIt averages 590 miles per ho... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "590", "printed": "590", "notation": null} |
nlprog_det-setting-0080839 | <|start|><|user|>
A hearing is set for September 28, 2026. What day of the week is that?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(2026, 9, 28) # datetime.date(2026, 9, 28)
print(hearing.strftime("%A"))
```
Output = Monday
September 28, 2026 is a Monday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hearing is set for September 28, 2026. What day of the week is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(2026, 9, 28) # datetime.date(2026, 9, 28)\nprint(hearing.strftime(\"%A\"))\n```\nOutput = Monday\n\nSe... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "Monday", "printed": "Monday", "notation": null} |
nlprog_det-setting-0080840 | <|start|><|user|>
The rules require 2/3 of 14 members (round up) to be present. How many is that?<|eot|>
<|assistant|>
```python
import math
members = 14
quorum = math.ceil(members * 2 / 3) # 10
print(quorum)
```
Printed = 10
10 members are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The rules require 2/3 of 14 members (round up) to be present. How many is that?"
},
{
"role": "assistant",
"content": "```python\nimport math\nmembers = 14\nquorum = math.ceil(members * 2 / 3) # 10\nprint(quorum)\n```\nPrinted = 10\n\n10 members are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0080841 | A penalty of $250 a day accrues, capped at $1,000. What is owed after 57 days?
Written as code:
```python
per_day = 250
days = 57
cap = 1000
fine = min(per_day * days, cap) # 1000
print(fine)
```
The script prints 1000, as expected.
$1,000 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0080842 | 233 volunteers are split into 7 equal teams. How many are on each team, and how many are left over?
Here is a short program for it.
```python
total = 233
groups = 7
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Result:
33 each, 2 left over
33 each, 2 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "33 each, 2 left over", "printed": "33 each, 2 left over", "notation": null} |
nlprog_det-setting-0080844 | <|start|><|system|>
Write short, precise answers.<|eot|>
<|user|>
Someone born July 16, 1976 turns how old by August 20, 2026? Give the age in whole years.<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1976, 7, 16) # datetime.date(1976, 7, 16)
on = date(2026, 8, 20) # datetime.date(2026, 8, 20)... | chat | [
{
"role": "system",
"content": "Write short, precise answers."
},
{
"role": "user",
"content": "Someone born July 16, 1976 turns how old by August 20, 2026? Give the age in whole years."
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1976, 7, ... | nlprog_det | setting | original | null | deterministic | [] | [] | 171 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0080845 | <|start|><|system|>
Be brief and correct.<|eot|>
<|user|>
What is a 20% tip on a $165.84 bill?<|eot|>
<|assistant|>
```python
bill = 165.84
tip_rate = 20 / 100 # 0.2
tip = bill * tip_rate # 33.168
print(f"{tip:.2f}")
```
Executed, it shows 33.17.
Leave $33.17.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be brief and correct."
},
{
"role": "user",
"content": "What is a 20% tip on a $165.84 bill?"
},
{
"role": "assistant",
"content": "```python\nbill = 165.84\ntip_rate = 20 / 100 # 0.2\ntip = bill * tip_rate # 33.168\nprint(f\"{tip:.2f}\")\n```\nExecu... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "33.17", "printed": "33.17", "notation": null} |
nlprog_det-setting-0080846 | A recipe for 6 people uses 150 grams of pasta. How many grams are needed for 8 people?
In Python:
```python
grams = 150
serves = 6
needed_for = 8
scaled = grams * needed_for // serves # 200
print(scaled)
```
(Output: 200)
Use 200 g of pasta. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "200", "printed": "200", "notation": null} |
nlprog_det-setting-0080848 | A clerk's office charges $350 for each filing. Kaito submits 7 filings. What is the total fee?
Python code:
```python
fee = 350
filings = 7
total = fee * filings # 2450
print(total)
```
The interpreter prints: 2450
The total fee is $2,450. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "2450", "printed": "2450", "notation": null} |
nlprog_det-setting-0080849 | <|start|><|user|>
How many whole days and leftover hours are in 199 hours?<|eot|>
<|assistant|>
```python
hours = 199
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
This prints 8 days and 7 hours, as expected.
That is 8 days and 7 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many whole days and leftover hours are in 199 hours?"
},
{
"role": "assistant",
"content": "```python\nhours = 199\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nThis prints 8 days and 7 hours, as expected.\n\nThat is 8 days and ... | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "8 days and 7 hours", "printed": "8 days and 7 hours", "notation": null} |
nlprog_det-setting-0080850 | A garage charges $3 an hour, never more than $15 a day. How much for 6 hours?
Coded up:
rate = 3
hours = 6
daily_max = 15
cost = min(rate * hours, daily_max) # 15
print(cost)
Program output — 15
The charge is $15. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0080851 | Printing costs 10 cents a page. What does it cost to print 99 copies of a 51-page handout?
Here is the program.
```python
pages = 51
copies = 99
cost_per_page = 0.1
cost = pages * copies * cost_per_page # 504.90000000000003
print(f"{cost:.2f}")
```
Run it and it prints: 504.90
The job costs $504.90. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "504.90", "printed": "504.90", "notation": null} |
nlprog_det-setting-0080852 | <|start|><|user|>
Monthly: $12. Annual: $120. What is saved per year by paying annually?<|eot|>
<|assistant|>
```python
monthly = 12
yearly = 120
savings = monthly * 12 - yearly # 24
print(savings)
```
The run gives 24.
The annual plan saves $24.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Monthly: $12. Annual: $120. What is saved per year by paying annually?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 12\nyearly = 120\nsavings = monthly * 12 - yearly # 24\nprint(savings)\n```\nThe run gives 24.\n\nThe annual plan saves $24."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0080854 | An attorney bills 2 hours at $410 per hour. What is the bill?
In code:
```python
hours = 2
rate = 410
bill = hours * rate # 820
print(f"{bill:.2f}")
```
Executed, it shows: 820.00
That comes to $820.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "820.00", "printed": "820.00", "notation": null} |
nlprog_det-setting-0080855 | A shift runs from 8:27 AM to 9:30 AM. How long is it in minutes?
Python version:
```python
start = 8 * 60 + 27 # 507
end = 9 * 60 + 30 # 570
print(end - start)
```
The script prints 63.
It is 63 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "63", "printed": "63", "notation": null} |
nlprog_det-setting-0080856 | <|start|><|system|>
You may call the tools below.
[{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "lookup_statute", "description": "Look u... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\", \"... | nlprog_det | setting | original | null | deterministic | [] | [] | 390 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0080857 | <|start|><|user|>
Express 326 hours in days and hours.<|eot|>
<|assistant|>
```python
hours = 326
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Python prints 13 days and 14 hours, as expected.
That is 13 days and 14 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Express 326 hours in days and hours."
},
{
"role": "assistant",
"content": "```python\nhours = 326\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nPython prints 13 days and 14 hours, as expected.\n\nThat is 13 days and 14 hours."
}
... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "13 days and 14 hours", "printed": "13 days and 14 hours", "notation": null} |
nlprog_det-setting-0080858 | At $0.67 per mile, what is the reimbursement for 312 miles?
Set it up in Python:
```python
miles = 312
rate = 0.67
reimbursement = miles * rate # 209.04000000000002
print(f"{reimbursement:.2f}")
```
Shell output — 209.04
Tobias is owed $209.04. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "209.04", "printed": "209.04", "notation": null} |
nlprog_det-setting-0080859 | A client paid a $10,000 retainer. The firm has billed 4 hours at $200 per hour. How much of the retainer is left?
Python:
```python
retainer = 10000
hours = 4
rate = 200
left = retainer - hours * rate # 9200
print(left)
```
The program prints: 9200
The remaining balance is $9,200. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "9200", "printed": "9200", "notation": null} |
nlprog_det-setting-0080860 | <|start|><|user|>
A shift runs from 11:43 AM to 2:00 PM. How long is it in minutes?<|eot|>
<|assistant|>
```python
start = 11 * 60 + 43 # 703
end = 14 * 60 + 0 # 840
print(end - start)
```
Run result = 137
It is 137 minutes long.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A shift runs from 11:43 AM to 2:00 PM. How long is it in minutes?"
},
{
"role": "assistant",
"content": "```python\nstart = 11 * 60 + 43 # 703\nend = 14 * 60 + 0 # 840\nprint(end - start)\n```\nRun result = 137\n\nIt is 137 minutes long."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "137", "printed": "137", "notation": null} |
nlprog_det-setting-0080861 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"name": "python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}
{"name": "ge... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python s... | nlprog_det | setting | original | null | deterministic | [] | [] | 399 | {"gold": "1600.00", "printed": "1600.00", "notation": null} |
nlprog_det-setting-0080862 | 5 claimants share a $525 settlement equally. What is each share?
Coded up:
```python
settlement = 525
parties = 5
share = settlement // parties # 105
print(share)
```
It prints 105.
Each share is $105. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "105", "printed": "105", "notation": null} |
nlprog_det-setting-0080863 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "run_python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|use... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"run_python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python sour... | nlprog_det | setting | original | null | deterministic | [] | [] | 244 | {"gold": "2022-10-14", "printed": "2022-10-14", "notation": null} |
nlprog_det-setting-0080864 | Fines run at $100 per day up to a maximum of $1,000. How much after 49 days?
Let the code do the arithmetic:
```python
per_day = 100
days = 49
cap = 1000
fine = min(per_day * days, cap) # 1000
print(fine)
```
Out:
1000
The fine is $1,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0080865 | <|start|><|user|>
A storeroom has 1497 chairs. The office uses 23 a day. How many are left after 9 days?<|eot|>
<|assistant|>
stock = 1497
per_day = 23
days = 9
left = stock - per_day * days # 1290
print(left)
Run result: 1290
1290 remain.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A storeroom has 1497 chairs. The office uses 23 a day. How many are left after 9 days?"
},
{
"role": "assistant",
"content": " stock = 1497\n per_day = 23\n days = 9\n left = stock - per_day * days # 1290\n print(left)\nRun result: 1290\n\n1290 remai... | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "1290", "printed": "1290", "notation": null} |
nlprog_det-setting-0080866 | 2 hours of work at $350 an hour: what is the total charge?
```python
hours = 2
rate = 350
bill = hours * rate # 700
print(f"{bill:.2f}")
```
Execution prints: 700.00
The bill is $700.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "700.00", "printed": "700.00", "notation": null} |
nlprog_det-setting-0080867 | <|start|><|user|>
Goods bought on December 3, 2028 carry a 36-month warranty. When does it expire?<|eot|>
<|assistant|>
```python
from datetime import date
start = date(2028, 12, 3)
months = 36
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end... | chat | [
{
"role": "user",
"content": "Goods bought on December 3, 2028 carry a 36-month warranty. When does it expire?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nstart = date(2028, 12, 3)\nmonths = 36\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = dat... | nlprog_det | setting | original | null | deterministic | [] | [] | 150 | {"gold": "2031-12-03", "printed": "2031-12-03", "notation": null} |
nlprog_det-setting-0080868 | <|start|><|user|>
406 files go into boxes of 50. How many boxes does that take?<|eot|>
<|assistant|>
It takes 9 boxes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "406 files go into boxes of 50. How many boxes does that take?"
},
{
"role": "assistant",
"content": "It takes 9 boxes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0080869 | <|start|><|system|>
Tool definitions:
[{"name": "interpreter", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
At 30 miles per hour, how many m... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"interpreter\", \"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 | [] | [] | 202 | {"gold": "240", "printed": "240", "notation": null} |
nlprog_det-setting-0080870 | A $30,000 grant pays $3,000 up front and the rest in 6 equal installments. How large is each installment?
Translated to Python:
```python
grant = 30000
up_front = 3000
installments = 6
each = (grant - up_front) / installments # 4500.0
print(f"{each:.2f}")
```
Output — 4500.00
Each installment is $4,500.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "4500.00", "printed": "4500.00", "notation": null} |
nlprog_det-setting-0080871 | <|start|><|user|>
Starting with 543 calendars and using 29 per day, how many remain after 17 days?<|eot|>
<|assistant|>
stock = 543
per_day = 29
days = 17
left = stock - per_day * days # 50
print(left)
Printed result — 50
50 remain.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting with 543 calendars and using 29 per day, how many remain after 17 days?"
},
{
"role": "assistant",
"content": " stock = 543\n per_day = 29\n days = 17\n left = stock - per_day * days # 50\n print(left)\nPrinted result — 50\n\n50 remain."
}... | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0080872 | Attendance was 14 out of 20. Express it as a percent.
We write it as a program:
present = 14
total = 20
percent = present / total * 100 # 70.0
print(round(percent, 1))
It prints 70.0, as expected.
70.0% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "70.0", "printed": "70.0", "notation": null} |
nlprog_det-setting-0080873 | What does $1,000 grow to in 3 years at 4% annual compounding?
Set it up in Python:
```python
principal = 1000
rate = 4 / 100 # 0.04
years = 3
value = principal * (1 + rate) ** years # 1124.864
print(f"{value:.2f}")
```
# out: 1124.86
The balance is $1,124.86. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "1124.86", "printed": "1124.86", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.