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-0054637 | <|start|><|system|>
Available functions (JSON Schema):
[{"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"]}}, {"name": "convert_uni... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\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 | [] | [] | 358 | {"gold": "1200.00", "printed": "1200.00", "notation": null} |
nlprog_det-setting-0054638 | <|start|><|system|>
Avoid unnecessary detail.<|eot|>
<|user|>
On which weekday does June 24, 2005 fall?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(2005, 6, 24) # datetime.date(2005, 6, 24)
print(hearing.strftime("%A"))
```
Running this gives Friday.
It is a Friday.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Avoid unnecessary detail."
},
{
"role": "user",
"content": "On which weekday does June 24, 2005 fall?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(2005, 6, 24) # datetime.date(2005, 6, 24)\nprint(hearing.... | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "Friday", "printed": "Friday", "notation": null} |
nlprog_det-setting-0054639 | A library charges $0.25 per book per day late. What is the fine for 2 books that are 5 days late?
A short script:
```python
per_day = 0.25
days_late = 5
books = 2
fine = per_day * days_late * books # 2.5
print(f"{fine:.2f}")
```
Output: 2.50
The fine is $2.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "2.50", "printed": "2.50", "notation": null} |
nlprog_det-setting-0054640 | <|start|><|system|>
You may call the tools below.
[{"name": "sandbox_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
Pay is $20.00/hou... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"sandbox_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir... | nlprog_det | setting | original | null | deterministic | [] | [] | 261 | {"gold": "1130.00", "printed": "1130.00", "notation": null} |
nlprog_det-setting-0054641 | <|start|><|user|>
Parking is $2 per hour with a daily maximum of $24. What do 8 hours cost?<|eot|>
<|assistant|>
rate = 2
hours = 8
daily_max = 24
cost = min(rate * hours, daily_max) # 16
print(cost)
(Output: 16)
The charge is $16.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Parking is $2 per hour with a daily maximum of $24. What do 8 hours cost?"
},
{
"role": "assistant",
"content": " rate = 2\n hours = 8\n daily_max = 24\n cost = min(rate * hours, daily_max) # 16\n print(cost)\n(Output: 16)\n\nThe charge is $16."
}
... | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0054642 | Bruna was born on November 20, 1955. How old is Bruna on June 27, 2023?
Here is the program.
```python
from datetime import date
born = date(1955, 11, 20) # datetime.date(1955, 11, 20)
on = date(2023, 6, 27) # datetime.date(2023, 6, 27)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 67
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 159 | {"gold": "67", "printed": "67", "notation": null} |
nlprog_det-setting-0054644 | <|start|><|user|>
A car travels 270 miles in 1.5 hours. What is its average speed in miles per hour?<|eot|>
<|assistant|>
It averages 180 miles per hour.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A car travels 270 miles in 1.5 hours. What is its average speed in miles per hour?"
},
{
"role": "assistant",
"content": "It averages 180 miles per hour."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "180", "printed": "180", "notation": null} |
nlprog_det-setting-0054645 | After a 40% fee is taken from a $96,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?
Program:
award = 96000
fee = award * 40 / 100 # 38400.0
remaining = award - fee # 57600.0
per_client = remaining / 4 # 14400.0
print(f"{per_client:.2f}")
Result = 14400.00
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "14400.00", "printed": "14400.00", "notation": null} |
nlprog_det-setting-0054646 | <|start|><|user|>
Starting from $5,000, the team spends $3,871, $3,904, $990. What remains?<|eot|>
<|assistant|>
budget = 5000
expenses = [3871, 3904, 990]
left = budget - sum(expenses)
print(left)
Shell output — -3765
The remaining budget is -$3,765.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting from $5,000, the team spends $3,871, $3,904, $990. What remains?"
},
{
"role": "assistant",
"content": " budget = 5000\n expenses = [3871, 3904, 990]\n left = budget - sum(expenses)\n print(left)\nShell output — -3765\n\nThe remaining budget is ... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "-3765", "printed": "-3765", "notation": null} |
nlprog_det-setting-0054647 | Goods bought on June 28, 2026 carry a 24-month warranty. When does it expire?
Python version:
```python
from datetime import date
start = date(2026, 6, 28)
months = 24
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
(Out: 2... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "2028-06-28", "printed": "2028-06-28", "notation": null} |
nlprog_det-setting-0054648 | A water bill is $12 plus $4.20 per thousand gallons beyond the first 2 thousand. What is the bill for 7 thousand gallons?
A few lines of Python do it:
```python
base = 12
rate = 4.2
used = 7
free = 2
bill = base + rate * max(0, used - free) # 33.0
print(f"{bill:.2f}")
```
Run output: 33.00
The bill is $33.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "33.00", "printed": "33.00", "notation": null} |
nlprog_det-setting-0054649 | <|start|><|user|>
12 boxes hold 8 clipboards each. After 14 are handed out, how many are left?<|eot|>
<|assistant|>
boxes = 12
per_box = 8
given_away = 14
left = boxes * per_box - given_away # 82
print(left)
Printed = 82
That leaves 82 clipboards.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "12 boxes hold 8 clipboards each. After 14 are handed out, how many are left?"
},
{
"role": "assistant",
"content": " boxes = 12\n per_box = 8\n given_away = 14\n left = boxes * per_box - given_away # 82\n print(left)\nPrinted = 82\n\nThat leaves 82 c... | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "82", "printed": "82", "notation": null} |
nlprog_det-setting-0054650 | <|start|><|user|>
Which is cheaper per unit: 10 for $6.77 (A) or 24 for $28.26 (B)?<|eot|>
<|assistant|>
```python
pack_a = 6.77 / 10 # 0.6769999999999999
pack_b = 28.26 / 24 # 1.1775
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
When run, it prints: A
A has the lower unit price.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Which is cheaper per unit: 10 for $6.77 (A) or 24 for $28.26 (B)?"
},
{
"role": "assistant",
"content": "```python\npack_a = 6.77 / 10 # 0.6769999999999999\npack_b = 28.26 / 24 # 1.1775\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'A'\nprint(cheaper)\n```\nWh... | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0054653 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "calculator", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}},... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"calculator\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \... | nlprog_det | setting | original | null | deterministic | [] | [] | 390 | {"gold": "6000", "printed": "6000", "notation": null} |
nlprog_det-setting-0054654 | A $800 security deposit has deductions of $150 and $120. How much is refunded? $530 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 29 | {"gold": "530", "printed": "530", "notation": null} |
nlprog_det-setting-0054655 | <|start|><|system|>
You check calculations for an accounting team.<|eot|>
<|user|>
Prorate $1,800 of monthly rent for 14 days of a 30-day month.<|eot|>
<|assistant|>
```python
rent = 1800
days_in_month = 30
days_occupied = 14
prorated = rent * days_occupied / days_in_month # 840.0
print(f"{prorated:.2f}")
```
The inte... | chat | [
{
"role": "system",
"content": "You check calculations for an accounting team."
},
{
"role": "user",
"content": "Prorate $1,800 of monthly rent for 14 days of a 30-day month."
},
{
"role": "assistant",
"content": "```python\nrent = 1800\ndays_in_month = 30\ndays_occupied = 14\nprorat... | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "840.00", "printed": "840.00", "notation": null} |
nlprog_det-setting-0054656 | At $0.58 per mile, what is the reimbursement for 26 miles?
Here is the program.
miles = 26
rate = 0.58
reimbursement = miles * rate # 15.079999999999998
print(f"{reimbursement:.2f}")
# run result: 15.08
The reimbursement is $15.08. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "15.08", "printed": "15.08", "notation": null} |
nlprog_det-setting-0054657 | A board has 39 members. A majority is more than half. How many votes make a majority?
Computation in Python:
```python
members = 39
majority = members // 2 + 1 # 20
print(majority)
```
Console:
20
That is 20 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0054658 | <|start|><|user|>
$2,000 is invested at 5% compounded yearly. What is it worth after 5 years?<|eot|>
<|assistant|>
```python
principal = 2000
rate = 5 / 100 # 0.05
years = 5
value = principal * (1 + rate) ** years # 2552.5631250000006
print(f"{value:.2f}")
```
That prints 2552.56.
It is worth $2,552.56.<|eot|>
<|end... | chat | [
{
"role": "user",
"content": "$2,000 is invested at 5% compounded yearly. What is it worth after 5 years?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 2000\nrate = 5 / 100 # 0.05\nyears = 5\nvalue = principal * (1 + rate) ** years # 2552.5631250000006\nprint(f\"{value:.2f}\")\... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "2552.56", "printed": "2552.56", "notation": null} |
nlprog_det-setting-0054659 | <|start|><|user|>
The rules require 2/3 of 42 members (round up) to be present. How many is that?<|eot|>
<|assistant|>
```python
import math
members = 42
quorum = math.ceil(members * 2 / 3)
print(quorum)
```
Result = 28
28 members are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The rules require 2/3 of 42 members (round up) to be present. How many is that?"
},
{
"role": "assistant",
"content": "```python\nimport math\nmembers = 42\nquorum = math.ceil(members * 2 / 3)\nprint(quorum)\n```\nResult = 28\n\n28 members are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "28", "printed": "28", "notation": null} |
nlprog_det-setting-0054660 | <|start|><|user|>
Counting the first and last day, how many days are there from July 7, 2028 through July 31, 2028?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2028, 7, 7) # datetime.date(2028, 7, 7)
last = date(2028, 7, 31) # datetime.date(2028, 7, 31)
days = (last - first).days + 1 # 25
p... | chat | [
{
"role": "user",
"content": "Counting the first and last day, how many days are there from July 7, 2028 through July 31, 2028?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2028, 7, 7) # datetime.date(2028, 7, 7)\nlast = date(2028, 7, 31) # datetime... | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0054661 | <|start|><|user|>
From 2015 to 2041, how many years is that?<|eot|>
<|assistant|>
```python
start_year = 2015
end_year = 2041
print(end_year - start_year)
```
Run output: 26
26 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From 2015 to 2041, how many years is that?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 2015\nend_year = 2041\nprint(end_year - start_year)\n```\nRun output: 26\n\n26 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 66 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0054662 | <|start|><|system|>
Answer the user's question directly.<|eot|>
<|user|>
Buying 3 hard drives at $25 each, 4 hard drives at $16 each, someone hands over $150. What change comes back?<|eot|>
<|assistant|>
items = [(3, 25), (4, 16)]
total = sum(q * p for q, p in items) # 139
paid = 150
change = paid - to... | chat | [
{
"role": "system",
"content": "Answer the user's question directly."
},
{
"role": "user",
"content": "Buying 3 hard drives at $25 each, 4 hard drives at $16 each, someone hands over $150. What change comes back?"
},
{
"role": "assistant",
"content": " items = [(3, 25), (4, 16)]\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "11", "printed": "11", "notation": null} |
nlprog_det-setting-0054663 | The bridge was finished in 1993. How many years had passed by 2001?
Python makes this quick:
```python
start_year = 1993
end_year = 2001
print(end_year - start_year)
```
When run, it prints 8.
8 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0054664 | A filing cabinet costs $45. It is 10% off. What is the sale price?
Script:
```python
price = 45
discount = 10 / 100 # 0.1
sale_price = price * (1 - discount) # 40.5
print(f"{sale_price:.2f}")
```
(Printed result: 40.50)
It costs $40.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "40.50", "printed": "40.50", "notation": null} |
nlprog_det-setting-0054665 | A meal costs $228.77. How much is a 10% tip?
Here is a short program for it.
```python
bill = 228.77
tip_rate = 10 / 100 # 0.1
tip = bill * tip_rate # 22.877000000000002
print(f"{tip:.2f}")
```
Execution prints 22.88.
Leave $22.88. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "22.88", "printed": "22.88", "notation": null} |
nlprog_det-setting-0054666 | A 210-mile drive at a steady 40 mph takes how many minutes?
As a program:
```python
distance = 210
speed = 40
minutes = distance / speed * 60 # 315.0
print(round(minutes))
```
Output of the run: 315
315 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "315", "printed": "315", "notation": null} |
nlprog_det-setting-0054667 | <|start|><|system|>
You can call tools. Available 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"]}}, {"name": "business_days... | chat | [
{
"role": "system",
"content": "You can call tools. Available 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 source code\"}}... | nlprog_det | setting | original | null | deterministic | [] | [] | 347 | {"gold": "696.77", "printed": "696.77", "notation": null} |
nlprog_det-setting-0054668 | <|start|><|user|>
The paralegal logged 10.5 hours at a rate of $180. How much is billed?<|eot|>
<|assistant|>
hours = 10.5
rate = 180
bill = hours * rate
print(f"{bill:.2f}")
The program prints 1890.00.
That comes to $1,890.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The paralegal logged 10.5 hours at a rate of $180. How much is billed?"
},
{
"role": "assistant",
"content": " hours = 10.5\n rate = 180\n bill = hours * rate\n print(f\"{bill:.2f}\")\nThe program prints 1890.00.\n\nThat comes to $1,890.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "1890.00", "printed": "1890.00", "notation": null} |
nlprog_det-setting-0054669 | On which weekday does June 10, 2015 fall?
Python, step by step:
```python
from datetime import date
hearing = date(2015, 6, 10) # datetime.date(2015, 6, 10)
print(hearing.strftime("%A"))
```
Python prints Wednesday, as expected.
June 10, 2015 is a Wednesday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "Wednesday", "printed": "Wednesday", "notation": null} |
nlprog_det-setting-0054670 | Counting only Monday through Friday, how many business days are there after January 6, 2018 through January 13, 2018?
Coded up:
```python
from datetime import date, timedelta
start = date(2018, 1, 6)
end = date(2018, 1, 13)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekday... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0054671 | <|start|><|user|>
To read 330 pages in 15 days, how many pages per day are needed?<|eot|>
<|assistant|>
```python
pages = 330
days = 15
per_day = pages // days
print(per_day)
```
# run result: 22
22 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "To read 330 pages in 15 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": "```python\npages = 330\ndays = 15\nper_day = pages // days\nprint(per_day)\n```\n# run result: 22\n\n22 pages a day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0054672 | A $6,000 loan carries 5% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?
We can compute it in Python.
```python
principal = 6000
annual_rate = 5 / 100 # 0.05
months = 36
interest = principal * annual_rate * months / 12 # 900.0
payment = (princ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 157 | {"gold": "191.67", "printed": "191.67", "notation": null} |
nlprog_det-setting-0054673 | <|start|><|user|>
Find the mean of these test scores: 74, 87, 78, 74 and 67.<|eot|>
<|assistant|>
scores = [74, 87, 78, 74, 67]
average = sum(scores) // len(scores) # 76
print(average)
# out: 76
The mean is 76.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Find the mean of these test scores: 74, 87, 78, 74 and 67."
},
{
"role": "assistant",
"content": " scores = [74, 87, 78, 74, 67]\n average = sum(scores) // len(scores) # 76\n print(average)\n# out: 76\n\nThe mean is 76."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "76", "printed": "76", "notation": null} |
nlprog_det-setting-0054674 | A client paid a $7,500 retainer. The firm has billed 10 hours at $275 per hour. How much of the retainer is left?
$4,750 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 47 | {"gold": "4750", "printed": "4750", "notation": null} |
nlprog_det-setting-0054675 | <|start|><|user|>
58 volunteers are split into 6 equal teams. How many are on each team, and how many are left over?<|eot|>
<|assistant|>
```python
total = 58
groups = 6
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
This prints 9 each, 4 left over.
The answer: 9 eac... | chat | [
{
"role": "user",
"content": "58 volunteers are split into 6 equal teams. How many are on each team, and how many are left over?"
},
{
"role": "assistant",
"content": "```python\ntotal = 58\ngroups = 6\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remainder} left ove... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "9 each, 4 left over", "printed": "9 each, 4 left over", "notation": null} |
nlprog_det-setting-0054676 | What commission does Amir make on $25,357 in sales at 8%?
Computation in Python:
```python
sales = 25357
rate = 8 / 100 # 0.08
commission = sales * rate # 2028.56
print(f"{commission:.2f}")
```
(Output: 2028.56)
Amir earns $2,028.56. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "2028.56", "printed": "2028.56", "notation": null} |
nlprog_det-setting-0054677 | Each of Zainab's runs burns 250 calories. How many calories over 5 runs?
We write it as a program:
```python
per_session = 250
sessions = 5
total = per_session * sessions # 1250
print(total)
```
Interpreter output — 1250
That burns 1250 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "1250", "printed": "1250", "notation": null} |
nlprog_det-setting-0054678 | <|start|><|user|>
Fixed costs are $1,200. 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 = 1200
price = 15
variable = 9
units = math.ceil(fixed / (price - variable))
print(units)
```
# printed: 200
200 units are needed.<|eot|>
<... | chat | [
{
"role": "user",
"content": "Fixed costs are $1,200. 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 = 1200\nprice = 15\nvariable = 9\nunits = math.ceil(fixed / (price - variable))\npri... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "200", "printed": "200", "notation": null} |
nlprog_det-setting-0054679 | At $0.70 per mile, what is the reimbursement for 101 miles?
Computation in Python:
```python
miles = 101
rate = 0.7
reimbursement = miles * rate # 70.69999999999999
print(f"{reimbursement:.2f}")
```
Shell output — 70.70
The reimbursement is $70.70. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "70.70", "printed": "70.70", "notation": null} |
nlprog_det-setting-0054680 | <|start|><|system|>
Write short, precise answers.<|eot|>
<|user|>
Chen has 14 documents to file, and each filing costs $50. How much are the filing fees in total?<|eot|>
<|assistant|>
```python
fee = 50
filings = 14
total = fee * filings
print(total)
```
Printed:
700
The filings cost $700 in all.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Write short, precise answers."
},
{
"role": "user",
"content": "Chen has 14 documents to file, and each filing costs $50. How much are the filing fees in total?"
},
{
"role": "assistant",
"content": "```python\nfee = 50\nfilings = 14\ntotal = fee * fil... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "700", "printed": "700", "notation": null} |
nlprog_det-setting-0054681 | <|start|><|system|>
You are a careful reviewer of figures.<|eot|>
<|user|>
A client paid a $7,500 retainer. The firm has billed 11 hours at $250 per hour. How much of the retainer is left?<|eot|>
<|assistant|>
```python
retainer = 7500
hours = 11
rate = 250
left = retainer - hours * rate # 4750
print(left)
```
Out:
47... | chat | [
{
"role": "system",
"content": "You are a careful reviewer of figures."
},
{
"role": "user",
"content": "A client paid a $7,500 retainer. The firm has billed 11 hours at $250 per hour. How much of the retainer is left?"
},
{
"role": "assistant",
"content": "```python\nretainer = 7500... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "4750", "printed": "4750", "notation": null} |
nlprog_det-setting-0054682 | Goods bought on March 15, 2018 carry a 6-month warranty. When does it expire?
Python does the arithmetic:
from datetime import date
start = date(2018, 3, 15)
months = 6
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "2018-09-15", "printed": "2018-09-15", "notation": null} |
nlprog_det-setting-0054684 | 185 volunteers are split into 9 equal teams. How many are on each team, and how many are left over?
Written as code:
```python
total = 185
groups = 9
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Execution result — 20 each, 5 left over
The answer: 20 each, 5 left o... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "20 each, 5 left over", "printed": "20 each, 5 left over", "notation": null} |
nlprog_det-setting-0054685 | A lawyer's fee is 30% of a $40,000 recovery. How large is the fee?
A few lines of Python do it:
recovery = 40000
rate = 30 / 100 # 0.3
fee = recovery * rate # 12000.0
print(f"{fee:.2f}")
# out: 12000.00
The fee is $12,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "12000.00", "printed": "12000.00", "notation": null} |
nlprog_det-setting-0054686 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "sandbox_python", "description": "A ... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\... | nlprog_det | setting | original | null | deterministic | [] | [] | 393 | {"gold": "60.00", "printed": "60.00", "notation": null} |
nlprog_det-setting-0054687 | <|start|><|user|>
Filing fees are $45 per document. What do 9 filings cost?<|eot|>
<|assistant|>
fee = 45
filings = 9
total = fee * filings # 405
print(total)
Printed result — 405
The total fee is $405.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Filing fees are $45 per document. What do 9 filings cost?"
},
{
"role": "assistant",
"content": " fee = 45\n filings = 9\n total = fee * filings # 405\n print(total)\nPrinted result — 405\n\nThe total fee is $405."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 69 | {"gold": "405", "printed": "405", "notation": null} |
nlprog_det-setting-0054688 | <|start|><|user|>
Hana and Oskar share $792 in the ratio 1:2. How much does Hana get?<|eot|>
<|assistant|>
```python
total = 792
parts_a = 1
parts_b = 2
share_a = total * parts_a // (parts_a + parts_b) # 264
print(share_a)
```
Python prints 264.
Hana's share is $264.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Hana and Oskar share $792 in the ratio 1:2. How much does Hana get?"
},
{
"role": "assistant",
"content": "```python\ntotal = 792\nparts_a = 1\nparts_b = 2\nshare_a = total * parts_a // (parts_a + parts_b) # 264\nprint(share_a)\n```\nPython prints 264.\n\nHana's sh... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "264", "printed": "264", "notation": null} |
nlprog_det-setting-0054689 | A court charges $10 per request plus $0.50 per page after the first 20 pages. What does a 72-page copy cost?
In Python:
```python
pages = 72
base = 10
per_page = 0.5
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page # 36.0
print(f"{cost:.2f}")
```
Program output: 36.00
The total is $36.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "36.00", "printed": "36.00", "notation": null} |
nlprog_det-setting-0054690 | <|start|><|system|>
Be concise.<|eot|>
<|user|>
An unpaid balance of $4,000 accrues 1.5% simple interest per month. How much interest accrues in 6 months?<|eot|>
<|assistant|>
```python
balance = 4000
monthly_rate = 1.5 / 100 # 0.015
months = 6
interest = balance * monthly_rate * months # 360.0
print(f"{interest:.2f}... | chat | [
{
"role": "system",
"content": "Be concise."
},
{
"role": "user",
"content": "An unpaid balance of $4,000 accrues 1.5% simple interest per month. How much interest accrues in 6 months?"
},
{
"role": "assistant",
"content": "```python\nbalance = 4000\nmonthly_rate = 1.5 / 100 # 0.015... | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "360.00", "printed": "360.00", "notation": null} |
nlprog_det-setting-0054691 | How many meters are in 16.3 kilometers?
We write it as a program:
```python
km = 16.3
meters = km * 1000 # 16300.0
print(round(meters))
```
Out — 16300
That is 16,300 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "16300", "printed": "16300", "notation": null} |
nlprog_det-setting-0054692 | <|start|><|user|>
Notice was given on May 11, 2019. The notice period is 60 days. When does it run out?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2019, 5, 11) # datetime.date(2019, 5, 11)
end = start + timedelta(days=60) # datetime.date(2019, 7, 10)
print(end.isoformat())
```
Ex... | chat | [
{
"role": "user",
"content": "Notice was given on May 11, 2019. The notice period is 60 days. When does it run out?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2019, 5, 11) # datetime.date(2019, 5, 11)\nend = start + timedelta(days=60) #... | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "2019-07-10", "printed": "2019-07-10", "notation": null} |
nlprog_det-setting-0054694 | Vera drove 172 miles for work. Mileage is reimbursed at 62 cents a mile. How much is the reimbursement?
We can compute it in Python.
```python
miles = 172
rate = 0.62
reimbursement = miles * rate # 106.64
print(f"{reimbursement:.2f}")
```
# stdout: 106.64
Vera is owed $106.64. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "106.64", "printed": "106.64", "notation": null} |
nlprog_det-setting-0054695 | <|start|><|system|>
Functions:
[{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": ... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"python\", \"description\": \"Use for arithmetic a... | nlprog_det | setting | original | null | deterministic | [] | [] | 336 | {"gold": "2021-02-07", "printed": "2021-02-07", "notation": null} |
nlprog_det-setting-0054696 | <|start|><|system|>
You have access to these functions:
{"name": "math_engine", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|user|>
Mon... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"math_engine\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source cod... | nlprog_det | setting | original | null | deterministic | [] | [] | 251 | {"gold": "240.00", "printed": "240.00", "notation": null} |
nlprog_det-setting-0054697 | <|start|><|user|>
From 2002 to 2032, how many years is that?<|eot|>
<|assistant|>
That is 30 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From 2002 to 2032, how many years is that?"
},
{
"role": "assistant",
"content": "That is 30 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0054698 | <|start|><|system|>
Tools you may use:
{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}
{"name": "math_engine", "description": "Evaluates Python and returns the printed output.", "parameters": {"... | chat | [
{
"role": "system",
"content": "Tools you may use:\n{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}\n{\"name\": \"math_engine\", \"description\": \"Evaluate... | nlprog_det | setting | original | null | deterministic | [] | [] | 285 | {"gold": "954.40", "printed": "954.40", "notation": null} |
nlprog_det-setting-0054699 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}, {"name": "py_exec", "description... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\": [... | nlprog_det | setting | original | null | deterministic | [] | [] | 414 | {"gold": "17.00", "printed": "17.00", "notation": null} |
nlprog_det-setting-0054700 | A shift runs from 7:58 AM to 10:46 AM. How long is it in minutes?
Python, step by step:
start = 7 * 60 + 58 # 478
end = 10 * 60 + 46 # 646
print(end - start)
Execution prints 168.
168 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "168", "printed": "168", "notation": null} |
nlprog_det-setting-0054701 | At $15.37 an hour, what does 24 hours of work pay?
Here's the code.
```python
rate = 15.37
hours = 24
earnings = rate * hours # 368.88
print(f"{earnings:.2f}")
```
Printed result — 368.88
That earns $368.88. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "368.88", "printed": "368.88", "notation": null} |
nlprog_det-setting-0054702 | At 40 miles per hour, how many minutes does a 50-mile trip take?
Written as code:
```python
distance = 50
speed = 40
minutes = distance / speed * 60 # 75.0
print(round(minutes))
```
# program output: 75
The trip takes 75 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "75", "printed": "75", "notation": null} |
nlprog_det-setting-0054703 | <|start|><|user|>
An unpaid balance of $2,500 accrues 1% simple interest per month. How much interest accrues in 4 months?<|eot|>
<|assistant|>
```python
balance = 2500
monthly_rate = 1 / 100 # 0.01
months = 4
interest = balance * monthly_rate * months # 100.0
print(f"{interest:.2f}")
```
It outputs 100.00.
$100.00 ... | chat | [
{
"role": "user",
"content": "An unpaid balance of $2,500 accrues 1% simple interest per month. How much interest accrues in 4 months?"
},
{
"role": "assistant",
"content": "```python\nbalance = 2500\nmonthly_rate = 1 / 100 # 0.01\nmonths = 4\ninterest = balance * monthly_rate * months # 100.0... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "100.00", "printed": "100.00", "notation": null} |
nlprog_det-setting-0054704 | A client paid a $2,500 retainer. The firm has billed 6 hours at $150 per hour. How much of the retainer is left?
$1,600 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "1600", "printed": "1600", "notation": null} |
nlprog_det-setting-0054705 | <|start|><|user|>
Revenue is $12,000 and costs are $8,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|>
<|assistant|>
```python
revenue = 12000
costs = 8000
profit = revenue - costs # 4000
margin = profit / revenue * 100 # 33.33333333333333
print(round(margin, 1))
```
(stdout: 33.3)
Profit... | chat | [
{
"role": "user",
"content": "Revenue is $12,000 and costs are $8,000. What is the profit margin as a percent of revenue (one decimal)?"
},
{
"role": "assistant",
"content": "```python\nrevenue = 12000\ncosts = 8000\nprofit = revenue - costs # 4000\nmargin = profit / revenue * 100 # 33.3333333... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "33.3", "printed": "33.3", "notation": null} |
nlprog_det-setting-0054706 | <|start|><|user|>
Find the mean of these test scores: 85, 58, 87, 97, 62 and 91.<|eot|>
<|assistant|>
The average score is 80.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Find the mean of these test scores: 85, 58, 87, 97, 62 and 91."
},
{
"role": "assistant",
"content": "The average score is 80."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "80", "printed": "80", "notation": null} |
nlprog_det-setting-0054708 | At an exchange rate of 0.92 USD per CHF, how many USD is 5,256 CHF?
One way, in code:
```python
amount = 5256
rate = 0.92
converted = amount * rate # 4835.52
print(f"{converted:.2f}")
```
The program prints 4835.52.
That is 4,835.52 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "4835.52", "printed": "4835.52", "notation": null} |
nlprog_det-setting-0054709 | <|start|><|user|>
A workshop lasted 3 hours and 8 minutes. How many minutes is that?<|eot|>
<|assistant|>
The workshop lasted 188 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A workshop lasted 3 hours and 8 minutes. How many minutes is that?"
},
{
"role": "assistant",
"content": "The workshop lasted 188 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "188", "printed": "188", "notation": null} |
nlprog_det-setting-0054710 | Femi buys 5 boxes of 10 ink cartridges each and gives away 17 ink cartridges. How many ink cartridges are left?
That leaves 33 ink cartridges. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "33", "printed": "33", "notation": null} |
nlprog_det-setting-0054711 | Starting with 661 tape rolls and using 30 per day, how many remain after 13 days?
Translated to Python:
```python
stock = 661
per_day = 30
days = 13
left = stock - per_day * days # 271
print(left)
```
Execution prints: 271
271 tape rolls are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "271", "printed": "271", "notation": null} |
nlprog_det-setting-0054713 | What average speed covers 338 miles in 2 hours?
Let the code do the arithmetic:
distance = 338
hours = 2
speed = distance / hours # 169.0
print(round(speed))
When run, it prints: 169
The average speed is 169 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "169", "printed": "169", "notation": null} |
nlprog_det-setting-0054714 | A deposition lasted 5 hours and 19 minutes. How many minutes is that?
The deposition lasted 319 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 26 | {"gold": "319", "printed": "319", "notation": null} |
nlprog_det-setting-0054716 | A garage charges $2 an hour, never more than $15 a day. How much for 9 hours?
Script:
```python
rate = 2
hours = 9
daily_max = 15
cost = min(rate * hours, daily_max) # 15
print(cost)
```
Executing it gives 15, as expected.
The charge is $15. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0054717 | <|start|><|system|>
You can call tools. Available tools:
{"name": "calculator", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|user|>
1 books come bac... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"calculator\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requ... | nlprog_det | setting | original | null | deterministic | [] | [] | 228 | {"gold": "0.30", "printed": "0.30", "notation": null} |
nlprog_det-setting-0054719 | Convert 3 h 25 min (the length of a hearing) to minutes.
The hearing lasted 205 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "205", "printed": "205", "notation": null} |
nlprog_det-setting-0054720 | What commission does Tobias make on $63,500 in sales at 4%?
We write it as a program:
```python
sales = 63500
rate = 4 / 100 # 0.04
commission = sales * rate # 2540.0
print(f"{commission:.2f}")
```
Run result — 2540.00
Tobias earns $2,540.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "2540.00", "printed": "2540.00", "notation": null} |
nlprog_det-setting-0054721 | Straight-line depreciation: cost $18,000, salvage $2,000, 5 years. How much per year?
```python
cost = 18000
salvage = 2000
years = 5
per_year = (cost - salvage) / years # 3200.0
print(f"{per_year:.2f}")
```
Executing it gives 3200.00, as expected.
Depreciation is $3,200.00 per year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "3200.00", "printed": "3200.00", "notation": null} |
nlprog_det-setting-0054722 | A party has 14 days to respond to a motion served on February 24, 2025, with 3 days added because service was by mail. When is the response due?
Computation in Python:
from datetime import date, timedelta
served = date(2025, 2, 24) # datetime.date(2025, 2, 24)
response_days = 14
mail_days = 3
due ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 170 | {"gold": "2025-03-13", "printed": "2025-03-13", "notation": null} |
nlprog_det-setting-0054723 | Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 52 hours?
Code:
```python
rate = 16.0
hours = 52
regular = 40 * rate # 640.0
overtime = (hours - 40) * rate * 1.5 # 288.0
pay = regular + overtime # 928.0
print(f"{pay:.2f}")
```
Run output — 928.00
The weekly pay is $928.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "928.00", "printed": "928.00", "notation": null} |
nlprog_det-setting-0054724 | With $12,500 in costs and $17,500 in revenue, what percent of revenue is profit? Round to one decimal.
The computation:
```python
revenue = 17500
costs = 12500
profit = revenue - costs # 5000
margin = profit / revenue * 100 # 28.57142857142857
print(round(margin, 1))
```
Run it and it prints: 28.6
The margin is 28.... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "28.6", "printed": "28.6", "notation": null} |
nlprog_det-setting-0054725 | <|start|><|system|>
You are a math tutor.<|eot|>
<|user|>
How many whole days and leftover hours are in 175 hours?<|eot|>
<|assistant|>
175 hours is 7 days and 7 hours.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a math tutor."
},
{
"role": "user",
"content": "How many whole days and leftover hours are in 175 hours?"
},
{
"role": "assistant",
"content": "175 hours is 7 days and 7 hours."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "7 days and 7 hours", "printed": "7 days and 7 hours", "notation": null} |
nlprog_det-setting-0054726 | <|start|><|user|>
188 volunteers are split into 7 equal teams. How many are on each team, and how many are left over?<|eot|>
<|assistant|>
```python
total = 188
groups = 7
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
This prints 26 each, 6 left over, as expected.
T... | chat | [
{
"role": "user",
"content": "188 volunteers are split into 7 equal teams. How many are on each team, and how many are left over?"
},
{
"role": "assistant",
"content": "```python\ntotal = 188\ngroups = 7\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remainder} left o... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "26 each, 6 left over", "printed": "26 each, 6 left over", "notation": null} |
nlprog_det-setting-0054727 | Pack A has 12 items for $9.10. Pack B has 15 items for $19.85. Which has the lower price per item?
In code:
```python
pack_a = 9.1 / 12 # 0.7583333333333333
pack_b = 19.85 / 15 # 1.3233333333333335
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
# output: A
Pack A is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0054728 | <|start|><|user|>
What day of the week is May 2, 1996?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(1996, 5, 2) # datetime.date(1996, 5, 2)
print(hearing.strftime("%A"))
```
Shell output — Thursday
May 2, 1996 is a Thursday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What day of the week is May 2, 1996?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(1996, 5, 2) # datetime.date(1996, 5, 2)\nprint(hearing.strftime(\"%A\"))\n```\nShell output — Thursday\n\nMay 2, 1996 is a Thursday."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "Thursday", "printed": "Thursday", "notation": null} |
nlprog_det-setting-0054729 | 26 paper reams cost $5 apiece. With 6% tax added, what is the total?
A Python solution:
```python
quantity = 26
unit_price = 5
subtotal = quantity * unit_price # 130
total = subtotal * (1 + 6 / 100) # 137.8
print(f"{total:.2f}")
```
Interpreter output — 137.80
The total with tax is $137.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "137.80", "printed": "137.80", "notation": null} |
nlprog_det-setting-0054730 | <|start|><|system|>
Be concise.<|eot|>
<|user|>
A count moves from 500 to 700. By what percent did it change (use a minus sign for a drop)?<|eot|>
<|assistant|>
```python
old = 500
new = 700
change = (new - old) / old * 100 # 40.0
print(round(change))
```
Result: 40
The change is 40%.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be concise."
},
{
"role": "user",
"content": "A count moves from 500 to 700. By what percent did it change (use a minus sign for a drop)?"
},
{
"role": "assistant",
"content": "```python\nold = 500\nnew = 700\nchange = (new - old) / old * 100 # 40.0\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0054731 | <|start|><|user|>
Counting the first and last day, how many days are there from January 3, 2023 through January 12, 2023?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2023, 1, 3) # datetime.date(2023, 1, 3)
last = date(2023, 1, 12) # datetime.date(2023, 1, 12)
days = (last - first).days + 1 ... | chat | [
{
"role": "user",
"content": "Counting the first and last day, how many days are there from January 3, 2023 through January 12, 2023?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2023, 1, 3) # datetime.date(2023, 1, 3)\nlast = date(2023, 1, 12) # da... | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0054732 | A recipe for 8 people uses 150 grams of oats. How many grams are needed for 12 people?
Python, step by step:
```python
grams = 150
serves = 8
needed_for = 12
scaled = grams * needed_for // serves
print(scaled)
```
When run, it prints: 225
Use 225 g of oats. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "225", "printed": "225", "notation": null} |
nlprog_det-setting-0054733 | <|start|><|system|>
You help paralegals with routine tasks.<|eot|>
<|user|>
A claim accrued on March 22, 2016. The limitations period is 3 years. On what date does it expire?<|eot|>
<|assistant|>
from datetime import date
accrued = date(2016, 3, 22) # datetime.date(2016, 3, 22)
years = 3
expires = accr... | chat | [
{
"role": "system",
"content": "You help paralegals with routine tasks."
},
{
"role": "user",
"content": "A claim accrued on March 22, 2016. The limitations period is 3 years. On what date does it expire?"
},
{
"role": "assistant",
"content": " from datetime import date\n accru... | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "2019-03-22", "printed": "2019-03-22", "notation": null} |
nlprog_det-setting-0054734 | <|start|><|user|>
Yoko earns $25.00 an hour and time and a half for hours over 40. What is the pay for a 44-hour week?<|eot|>
<|assistant|>
```python
rate = 25.0
hours = 44
regular = 40 * rate
overtime = (hours - 40) * rate * 1.5
pay = regular + overtime
print(f"{pay:.2f}")
```
Out: 1150.00
The weekly pay is $1,150.00... | chat | [
{
"role": "user",
"content": "Yoko earns $25.00 an hour and time and a half for hours over 40. What is the pay for a 44-hour week?"
},
{
"role": "assistant",
"content": "```python\nrate = 25.0\nhours = 44\nregular = 40 * rate\novertime = (hours - 40) * rate * 1.5\npay = regular + overtime\nprint... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "1150.00", "printed": "1150.00", "notation": null} |
nlprog_det-setting-0054735 | At a 6% tax rate, what is the tax on $892.76?
```python
price = 892.76
tax_rate = 6 / 100 # 0.06
tax = price * tax_rate # 53.565599999999996
print(f"{tax:.2f}")
```
(Program output: 53.57)
$53.57 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "53.57", "printed": "53.57", "notation": null} |
nlprog_det-setting-0054736 | A lease runs for 12 months at $3,250 per month. How much rent is paid over the whole term?
```python
monthly_rent = 3250
months = 12
total = monthly_rent * months # 39000
print(total)
```
Result: 39000
The rent over the term is $39,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "39000", "printed": "39000", "notation": null} |
nlprog_det-setting-0054737 | A 24-month warranty starts on July 23, 2026. On what date does it end?
As Python:
```python
from datetime import date
start = date(2026, 7, 23)
months = 24
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
# out: 2028-07-23
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "2028-07-23", "printed": "2028-07-23", "notation": null} |
nlprog_det-setting-0054738 | <|start|><|system|>
Tools (call with JSON):
[{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "interpreter", "description": "Runs a short Python snippet and returns what it prints.", "pa... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"interpreter\", \"description\": \"Run... | nlprog_det | setting | original | null | deterministic | [] | [] | 284 | {"gold": "251.20", "printed": "251.20", "notation": null} |
nlprog_det-setting-0054739 | A count moves from 2,500 to 3,125. By what percent did it change (use a minus sign for a drop)?
Python makes this quick:
```python
old = 2500
new = 3125
change = (new - old) / old * 100
print(round(change))
```
Execution prints 25, as expected.
The change is 25%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0054740 | The landlord deducts $120 and $85 from a $800 deposit. What is returned to the tenant?
Computation in Python:
```python
deposit = 800
deductions = [120, 85]
refund = deposit - sum(deductions) # 595
print(refund)
```
Execution prints: 595
The refund is $595. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "595", "printed": "595", "notation": null} |
nlprog_det-setting-0054741 | The rules require 1/3 of 22 members (round up) to be present. How many is that?
```python
import math
members = 22
quorum = math.ceil(members * 1 / 3) # 8
print(quorum)
```
Output of the run — 8
That is 8 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0054742 | A car travels 408 miles in 2 hours. What is its average speed in miles per hour?
Let the code do the arithmetic:
```python
distance = 408
hours = 2
speed = distance / hours # 204.0
print(round(speed))
```
Running this gives 204.
It averages 204 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "204", "printed": "204", "notation": null} |
nlprog_det-setting-0054743 | Counting the first and last day, how many days are there from September 20, 2028 through September 24, 2028?
Python version:
```python
from datetime import date
first = date(2028, 9, 20)
last = date(2028, 9, 24)
days = (last - first).days + 1
print(days)
```
On running, it outputs 5.
5 calendar days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0054744 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "run_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "define_word", "descriptio... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"run_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir... | nlprog_det | setting | original | null | deterministic | [] | [] | 329 | {"gold": "12:40 PM", "printed": "12:40 PM", "notation": null} |
nlprog_det-setting-0054745 | A $180 dinner bill gets a 18% tip, and 3 people share the cost equally. What is each person's share?
Python:
```python
bill = 180
tip_rate = 18 / 100 # 0.18
people = 3
each = bill * (1 + tip_rate) / people # 70.8
print(f"{each:.2f}")
```
Executing it gives: 70.80
The share is $70.80 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "70.80", "printed": "70.80", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.