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-0062234 | <|start|><|user|>
What does $2,000 grow to in 3 years at 3% annual compounding?<|eot|>
<|assistant|>
```python
principal = 2000
rate = 3 / 100 # 0.03
years = 3
value = principal * (1 + rate) ** years # 2185.454
print(f"{value:.2f}")
```
Output:
2185.45
It is worth $2,185.45.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What does $2,000 grow to in 3 years at 3% annual compounding?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 2000\nrate = 3 / 100 # 0.03\nyears = 3\nvalue = principal * (1 + rate) ** years # 2185.454\nprint(f\"{value:.2f}\")\n```\nOutput:\n2185.45\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "2185.45", "printed": "2185.45", "notation": null} |
nlprog_det-setting-0062235 | A hearing starts at 9:20 AM and lasts 105 minutes. When does it end?
A Python solution:
```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'}")
```
Interpreter output — 11:05 AM
It ends at 11:05 AM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "11:05 AM", "printed": "11:05 AM", "notation": null} |
nlprog_det-setting-0062236 | What simple interest does $1,000 earn at 5% a year over 3 years?
Program:
principal = 1000
rate = 5 / 100 # 0.05
years = 3
interest = principal * rate * years # 150.0
print(f"{interest:.2f}")
Result — 150.00
It earns $150.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "150.00", "printed": "150.00", "notation": null} |
nlprog_det-setting-0062237 | <|start|><|system|>
Tools you may use:
[{"name": "python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
A quorum is 3/5 of the 59 members, ... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]... | nlprog_det | setting | original | null | deterministic | [] | [] | 211 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0062238 | Equal monthly payments repay $2,400 plus 6% simple yearly interest over 12 months. How large is a payment?
Let the code do the arithmetic:
```python
principal = 2400
annual_rate = 6 / 100 # 0.06
months = 12
interest = principal * annual_rate * months / 12 # 144.0
payment = (principal + interest) / months # 212.0
pr... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "212.00", "printed": "212.00", "notation": null} |
nlprog_det-setting-0062239 | <|start|><|user|>
A 8 lb package ships at $5 base plus $2.50/lb. What is the charge?<|eot|>
<|assistant|>
```python
base = 5
per_pound = 2.5
weight = 8
cost = base + per_pound * weight # 25.0
print(f"{cost:.2f}")
```
(Console output: 25.00)
Shipping costs $25.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 8 lb package ships at $5 base plus $2.50/lb. What is the charge?"
},
{
"role": "assistant",
"content": "```python\nbase = 5\nper_pound = 2.5\nweight = 8\ncost = base + per_pound * weight # 25.0\nprint(f\"{cost:.2f}\")\n```\n(Console output: 25.00)\n\nShipping cos... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "25.00", "printed": "25.00", "notation": null} |
nlprog_det-setting-0062240 | If a 50-minute meeting begins at 4:10 PM, what time does it finish?
Python makes this quick:
```python
start = 16 * 60 + 10
end = start + 50
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
This prints 5:00 PM.
It ends at 5:00 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "5:00 PM", "printed": "5:00 PM", "notation": null} |
nlprog_det-setting-0062241 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "run_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"run_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 222 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0062242 | <|start|><|user|>
Rent of $1,250 goes up 6%. What is the new rent?<|eot|>
<|assistant|>
```python
rent = 1250
increase = 6 / 100 # 0.06
new_rent = rent * (1 + increase) # 1325.0
print(f"{new_rent:.2f}")
```
stdout: 1325.00
The new rent is $1,325.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Rent of $1,250 goes up 6%. What is the new rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 1250\nincrease = 6 / 100 # 0.06\nnew_rent = rent * (1 + increase) # 1325.0\nprint(f\"{new_rent:.2f}\")\n```\nstdout: 1325.00\n\nThe new rent is $1,325.00."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "1325.00", "printed": "1325.00", "notation": null} |
nlprog_det-setting-0062243 | <|start|><|user|>
Buying 5 tape rolls at $24 each, 5 badges at $8 each, 3 keyboards at $4 each, 3 flash drives at $25 each, someone hands over $250. What change comes back?<|eot|>
<|assistant|>
```python
items = [(5, 24), (5, 8), (3, 4), (3, 25)]
total = sum(q * p for q, p in items) # 247
paid = 250
change = paid - to... | chat | [
{
"role": "user",
"content": "Buying 5 tape rolls at $24 each, 5 badges at $8 each, 3 keyboards at $4 each, 3 flash drives at $25 each, someone hands over $250. What change comes back?"
},
{
"role": "assistant",
"content": "```python\nitems = [(5, 24), (5, 8), (3, 4), (3, 25)]\ntotal = sum(q * p... | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0062244 | <|start|><|system|>
Tools (call with JSON):
[{"name": "code_runner", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "get_weather", "... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"code_runner\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}... | nlprog_det | setting | original | null | deterministic | [] | [] | 268 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0062245 | <|start|><|user|>
Goods bought on February 28, 2018 carry a 36-month warranty. When does it expire?<|eot|>
<|assistant|>
It expires on February 28, 2021.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Goods bought on February 28, 2018 carry a 36-month warranty. When does it expire?"
},
{
"role": "assistant",
"content": "It expires on February 28, 2021."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "2021-02-28", "printed": "2021-02-28", "notation": null} |
nlprog_det-setting-0062246 | Rent of $1,100 goes up 5%. What is the new rent?
The Python version:
rent = 1100
increase = 5 / 100 # 0.05
new_rent = rent * (1 + increase) # 1155.0
print(f"{new_rent:.2f}")
Result:
1155.00
It rises to $1,155.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "1155.00", "printed": "1155.00", "notation": null} |
nlprog_det-setting-0062247 | <|start|><|user|>
A measure needs at least 75% of 179 votes. How many votes is that, rounded up?<|eot|>
<|assistant|>
```python
import math
voters = 179
needed = math.ceil(voters * 75 / 100) # 135
print(needed)
```
The program prints 135, as expected.
At least 135 votes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A measure needs at least 75% of 179 votes. How many votes is that, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 179\nneeded = math.ceil(voters * 75 / 100) # 135\nprint(needed)\n```\nThe program prints 135, as expected.\n\nAt l... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "135", "printed": "135", "notation": null} |
nlprog_det-setting-0062248 | Fixed costs are $9,000. Each unit sells for $15 and costs $5 to make. How many units must be sold to break even?
We can compute it in Python.
```python
import math
fixed = 9000
price = 15
variable = 5
units = math.ceil(fixed / (price - variable)) # 900
print(units)
```
The interpreter prints 900.
Break-even is 900 u... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0062249 | A party has 30 days to respond to a motion served on February 22, 2021, with 3 days added because service was by mail. When is the response due?
Python, step by step:
```python
from datetime import date, timedelta
served = date(2021, 2, 22) # datetime.date(2021, 2, 22)
response_days = 30
mail_days = 3
due = served + ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 184 | {"gold": "2021-03-27", "printed": "2021-03-27", "notation": null} |
nlprog_det-setting-0062250 | A 2% increase is applied to $1,100 monthly rent. What is the new amount?
A Python solution:
```python
rent = 1100
increase = 2 / 100 # 0.02
new_rent = rent * (1 + increase) # 1122.0
print(f"{new_rent:.2f}")
```
The printout reads: 1122.00
It rises to $1,122.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "1122.00", "printed": "1122.00", "notation": null} |
nlprog_det-setting-0062251 | A clerk's office charges $75 for each filing. Tobias submits 8 filings. What is the total fee?
```python
fee = 75
filings = 8
total = fee * filings # 600
print(total)
```
Execution prints 600.
The total fee is $600. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0062252 | How many 1-foot square tiles cover a 4 ft by 8 ft floor (round up)?
Code:
```python
import math
length = 4
width = 8
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 32
print(tiles)
```
Output:
32
It takes 32 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0062254 | <|start|><|user|>
How much sales tax is charged on a $516.98 purchase at 6%?<|eot|>
<|assistant|>
The tax is $31.02.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How much sales tax is charged on a $516.98 purchase at 6%?"
},
{
"role": "assistant",
"content": "The tax is $31.02."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "31.02", "printed": "31.02", "notation": null} |
nlprog_det-setting-0062255 | A 7 × 12 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?
Let the code do the arithmetic:
```python
import math
length = 7
width = 12
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 21
print(tiles)
```
Output = 21
21 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "21", "printed": "21", "notation": null} |
nlprog_det-setting-0062256 | The landlord deducts $45, $85 and $85 from a $1,000 deposit. What is returned to the tenant?
```python
deposit = 1000
deductions = [45, 85, 85]
refund = deposit - sum(deductions)
print(refund)
```
# console output: 785
$785 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "785", "printed": "785", "notation": null} |
nlprog_det-setting-0062257 | <|start|><|user|>
How many days are there from June 28, 2020 to November 25, 2020?<|eot|>
<|assistant|>
from datetime import date
first = date(2020, 6, 28) # datetime.date(2020, 6, 28)
second = date(2020, 11, 25) # datetime.date(2020, 11, 25)
print((second - first).days)
(Printed result: 150)
There a... | chat | [
{
"role": "user",
"content": "How many days are there from June 28, 2020 to November 25, 2020?"
},
{
"role": "assistant",
"content": " from datetime import date\n first = date(2020, 6, 28) # datetime.date(2020, 6, 28)\n second = date(2020, 11, 25) # datetime.date(2020, 11, 25)\n pr... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "150", "printed": "150", "notation": null} |
nlprog_det-setting-0062258 | Jae and Ulla share $635 in the ratio 2:3. How much does Jae get?
Here is the program.
```python
total = 635
parts_a = 2
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b) # 254
print(share_a)
```
Program output — 254
Jae gets $254. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "254", "printed": "254", "notation": null} |
nlprog_det-setting-0062259 | <|start|><|user|>
Attendance was 20 out of 20. Express it as a percent.<|eot|>
<|assistant|>
100.0% attended.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Attendance was 20 out of 20. Express it as a percent."
},
{
"role": "assistant",
"content": "100.0% attended."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "100.0", "printed": "100.0", "notation": null} |
nlprog_det-setting-0062260 | Count the days between June 16, 2023 and March 18, 2024.
Python version:
```python
from datetime import date
first = date(2023, 6, 16) # datetime.date(2023, 6, 16)
second = date(2024, 3, 18) # datetime.date(2024, 3, 18)
print((second - first).days)
```
Printed — 276
It is 276 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "276", "printed": "276", "notation": null} |
nlprog_det-setting-0062261 | <|start|><|user|>
8 boxes hold 6 mugs each. After 10 are handed out, how many are left?<|eot|>
<|assistant|>
```python
boxes = 8
per_box = 6
given_away = 10
left = boxes * per_box - given_away # 38
print(left)
```
What it prints: 38
That leaves 38 mugs.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "8 boxes hold 6 mugs each. After 10 are handed out, how many are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 8\nper_box = 6\ngiven_away = 10\nleft = boxes * per_box - given_away # 38\nprint(left)\n```\nWhat it prints: 38\n\nThat leaves 38 mugs."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "38", "printed": "38", "notation": null} |
nlprog_det-setting-0062262 | A lawyer's fee is 25% of a $12,000 recovery. How large is the fee?
The fee is $3,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "3000.00", "printed": "3000.00", "notation": null} |
nlprog_det-setting-0062263 | <|start|><|system|>
You may call the tools below.
[{"name": "py_exec", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "fetch_filing", "description": "F... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"py_exec\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 348 | {"gold": "2018-04-09", "printed": "2018-04-09", "notation": null} |
nlprog_det-setting-0062264 | <|start|><|system|>
Tool definitions:
[{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}, {"name": "calculator", "description": "Run Python code in a sandbox; the result is whatever the code prints.",... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}, {\"name\": \"calculator\", \"description\": \"Run Python co... | nlprog_det | setting | original | null | deterministic | [] | [] | 301 | {"gold": "11.1", "printed": "11.1", "notation": null} |
nlprog_det-setting-0062265 | Monthly: $9. Annual: $90. What is saved per year by paying annually?
We can compute it in Python.
```python
monthly = 9
yearly = 90
savings = monthly * 12 - yearly # 18
print(savings)
```
stdout — 18
$18 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0062266 | 6 claimants share a $522 settlement equally. What is each share?
Python:
settlement = 522
parties = 6
share = settlement // parties # 87
print(share)
Python prints 87, as expected.
Each share is $87. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 70 | {"gold": "87", "printed": "87", "notation": null} |
nlprog_det-setting-0062267 | <|start|><|user|>
Parking is $4 per hour with a daily maximum of $20. What do 10 hours cost?<|eot|>
<|assistant|>
rate = 4
hours = 10
daily_max = 20
cost = min(rate * hours, daily_max) # 20
print(cost)
The program prints: 20
Parking costs $20.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Parking is $4 per hour with a daily maximum of $20. What do 10 hours cost?"
},
{
"role": "assistant",
"content": " rate = 4\n hours = 10\n daily_max = 20\n cost = min(rate * hours, daily_max) # 20\n print(cost)\nThe program prints: 20\n\nParking cost... | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0062268 | A lease runs for 12 months at $1,475 per month. How much rent is paid over the whole term?
Python code:
```python
monthly_rent = 1475
months = 12
total = monthly_rent * months
print(total)
```
On running, it outputs: 17700
In total, $17,700 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "17700", "printed": "17700", "notation": null} |
nlprog_det-setting-0062269 | <|start|><|user|>
Printing costs 5 cents a page. What does it cost to print 190 copies of a 35-page handout?<|eot|>
<|assistant|>
The job costs $332.50.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Printing costs 5 cents a page. What does it cost to print 190 copies of a 35-page handout?"
},
{
"role": "assistant",
"content": "The job costs $332.50."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "332.50", "printed": "332.50", "notation": null} |
nlprog_det-setting-0062270 | An invoice lists 18 scissors at $3 each, plus 7% sales tax. What is the invoice total?
A short script:
```python
quantity = 18
unit_price = 3
subtotal = quantity * unit_price # 54
total = subtotal * (1 + 7 / 100) # 57.78
print(f"{total:.2f}")
```
Execution result: 57.78
The invoice total is $57.78. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "57.78", "printed": "57.78", "notation": null} |
nlprog_det-setting-0062271 | At 40 miles per hour, how many minutes does a 210-mile trip take?
We write it as a program:
```python
distance = 210
speed = 40
minutes = distance / speed * 60 # 315.0
print(round(minutes))
```
Out:
315
315 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "315", "printed": "315", "notation": null} |
nlprog_det-setting-0062272 | Filing fees are $50 per document. What do 5 filings cost?
Here's the code.
fee = 50
filings = 5
total = fee * filings # 250
print(total)
Shell output — 250
$250 in filing fees. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 66 | {"gold": "250", "printed": "250", "notation": null} |
nlprog_det-setting-0062273 | <|start|><|system|>
You can call tools. Available tools:
{"name": "eval_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|user|>
Delia ear... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"eval_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}},... | nlprog_det | setting | original | null | deterministic | [] | [] | 229 | {"gold": "2683.80", "printed": "2683.80", "notation": null} |
nlprog_det-setting-0062274 | With $8,000 in costs and $13,000 in revenue, what percent of revenue is profit? Round to one decimal.
As Python:
```python
revenue = 13000
costs = 8000
profit = revenue - costs # 5000
margin = profit / revenue * 100 # 38.46153846153847
print(round(margin, 1))
```
Running this gives 38.5.
The margin is 38.5%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "38.5", "printed": "38.5", "notation": null} |
nlprog_det-setting-0062275 | <|start|><|user|>
Rent of $2,200 goes up 5%. What is the new rent?<|eot|>
<|assistant|>
```python
rent = 2200
increase = 5 / 100 # 0.05
new_rent = rent * (1 + increase) # 2310.0
print(f"{new_rent:.2f}")
```
Executed, it shows: 2310.00
The new rent is $2,310.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Rent of $2,200 goes up 5%. What is the new rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 2200\nincrease = 5 / 100 # 0.05\nnew_rent = rent * (1 + increase) # 2310.0\nprint(f\"{new_rent:.2f}\")\n```\nExecuted, it shows: 2310.00\n\nThe new rent is $2... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "2310.00", "printed": "2310.00", "notation": null} |
nlprog_det-setting-0062276 | The rules require 2/3 of 24 members (round up) to be present. How many is that?
Code:
```python
import math
members = 24
quorum = math.ceil(members * 2 / 3) # 16
print(quorum)
```
Out: 16
16 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0062277 | At $28.25 an hour, what does 12 hours of work pay?
Programmatically:
```python
rate = 28.25
hours = 12
earnings = rate * hours # 339.0
print(f"{earnings:.2f}")
```
Out:
339.00
That earns $339.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "339.00", "printed": "339.00", "notation": null} |
nlprog_det-setting-0062278 | Starting with 915 desk lamps and using 12 per day, how many remain after 4 days?
Script:
```python
stock = 915
per_day = 12
days = 4
left = stock - per_day * days # 867
print(left)
```
Result = 867
867 desk lamps are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "867", "printed": "867", "notation": null} |
nlprog_det-setting-0062279 | If a 6-year limitations period starts on March 23, 2013, when does it end?
Let the code do the arithmetic:
```python
from datetime import date
accrued = date(2013, 3, 23) # datetime.date(2013, 3, 23)
years = 6
expires = accrued.replace(year=accrued.year + years) # datetime.date(2019, 3, 23)
print(expires.isoformat()... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "2019-03-23", "printed": "2019-03-23", "notation": null} |
nlprog_det-setting-0062280 | <|start|><|user|>
Divide 134 items among 8 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|>
<|assistant|>
```python
total = 134
groups = 8
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
When run, it prints 16 each, 6 left... | chat | [
{
"role": "user",
"content": "Divide 134 items among 8 groups as evenly as possible with equal groups. How many per group, and how many remain?"
},
{
"role": "assistant",
"content": "```python\ntotal = 134\ngroups = 8\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {rem... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "16 each, 6 left over", "printed": "16 each, 6 left over", "notation": null} |
nlprog_det-setting-0062281 | 87 files go into boxes of 50. How many boxes does that take?
```python
import math
files = 87
per_box = 50
boxes = math.ceil(files / per_box) # 2
print(boxes)
```
# printed result: 2
It takes 2 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0062282 | An unpaid balance of $4,000 accrues 1.5% simple interest per month. How much interest accrues in 3 months?
Code:
```python
balance = 4000
monthly_rate = 1.5 / 100
months = 3
interest = balance * monthly_rate * months
print(f"{interest:.2f}")
```
Output = 180.00
The interest is $180.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "180.00", "printed": "180.00", "notation": null} |
nlprog_det-setting-0062283 | Walls total 889 sq ft and each can covers 350 sq ft. How many cans should be bought?
Here's the code.
import math
area = 889
coverage = 350
cans = math.ceil(area / coverage) # 3
print(cans)
(Printed result: 3)
3 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0062284 | <|start|><|system|>
Tool definitions:
{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}
{"name": "run_python", "description": "Runs a short Python snippet and returns what it prints.", "parameters"... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}\n{\"name\": \"run_python\", \"description\": \"Runs a shor... | nlprog_det | setting | original | null | deterministic | [] | [] | 287 | {"gold": "13.31", "printed": "13.31", "notation": null} |
nlprog_det-setting-0062285 | <|start|><|user|>
Rent of $1,500 goes up 2%. What is the new rent?<|eot|>
<|assistant|>
```python
rent = 1500
increase = 2 / 100 # 0.02
new_rent = rent * (1 + increase) # 1530.0
print(f"{new_rent:.2f}")
```
Printed result — 1530.00
It rises to $1,530.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Rent of $1,500 goes up 2%. What is the new rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 1500\nincrease = 2 / 100 # 0.02\nnew_rent = rent * (1 + increase) # 1530.0\nprint(f\"{new_rent:.2f}\")\n```\nPrinted result — 1530.00\n\nIt rises to $1,530.00... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "1530.00", "printed": "1530.00", "notation": null} |
nlprog_det-setting-0062286 | Attendance was 22 out of 25. Express it as a percent.
Translated to Python:
present = 22
total = 25
percent = present / total * 100 # 88.0
print(round(percent, 1))
This prints 88.0.
Attendance was 88.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "88.0", "printed": "88.0", "notation": null} |
nlprog_det-setting-0062287 | <|start|><|system|>
You have access to these functions:
[{"name": "compute", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "b... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"compute\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python sour... | nlprog_det | setting | original | null | deterministic | [] | [] | 400 | {"gold": "1188.00", "printed": "1188.00", "notation": null} |
nlprog_det-setting-0062288 | A client paid a $7,500 retainer. The firm has billed 3 hours at $250 per hour. How much of the retainer is left?
The computation:
```python
retainer = 7500
hours = 3
rate = 250
left = retainer - hours * rate # 6750
print(left)
```
Out = 6750
The remaining balance is $6,750. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "6750", "printed": "6750", "notation": null} |
nlprog_det-setting-0062289 | Walls total 713 sq ft and each can covers 250 sq ft. How many cans should be bought?
3 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0062290 | <|start|><|user|>
An invoice lists 24 badges at $8 each, plus 5% sales tax. What is the invoice total?<|eot|>
<|assistant|>
```python
quantity = 24
unit_price = 8
subtotal = quantity * unit_price # 192
total = subtotal * (1 + 5 / 100) # 201.60000000000002
print(f"{total:.2f}")
```
When run, it prints 201.60.
The tot... | chat | [
{
"role": "user",
"content": "An invoice lists 24 badges at $8 each, plus 5% sales tax. What is the invoice total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 24\nunit_price = 8\nsubtotal = quantity * unit_price # 192\ntotal = subtotal * (1 + 5 / 100) # 201.60000000000002\npri... | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "201.60", "printed": "201.60", "notation": null} |
nlprog_det-setting-0062291 | <|start|><|user|>
A pack of 12 rulers sells for $468. What does each cost?<|eot|>
<|assistant|>
```python
total = 468
count = 12
per_item = total // count # 39
print(per_item)
```
Python prints 39, as expected.
The unit price is $39.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A pack of 12 rulers sells for $468. What does each cost?"
},
{
"role": "assistant",
"content": "```python\ntotal = 468\ncount = 12\nper_item = total // count # 39\nprint(per_item)\n```\nPython prints 39, as expected.\n\nThe unit price is $39."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "39", "printed": "39", "notation": null} |
nlprog_det-setting-0062292 | From 2001 to 2038, how many years is that?
Python code:
start_year = 2001
end_year = 2038
print(end_year - start_year)
# console output: 37
37 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 58 | {"gold": "37", "printed": "37", "notation": null} |
nlprog_det-setting-0062293 | <|start|><|user|>
A service costs $12 a month or $132 a year. How much does the yearly plan save over 12 monthly payments?<|eot|>
<|assistant|>
```python
monthly = 12
yearly = 132
savings = monthly * 12 - yearly # 12
print(savings)
```
Execution result: 12
$12 is saved.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A service costs $12 a month or $132 a year. How much does the yearly plan save over 12 monthly payments?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 12\nyearly = 132\nsavings = monthly * 12 - yearly # 12\nprint(savings)\n```\nExecution result: 12\n\... | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0062294 | Parking is $4 per hour with a daily maximum of $24. What do 11 hours cost?
In Python:
```python
rate = 4
hours = 11
daily_max = 24
cost = min(rate * hours, daily_max) # 24
print(cost)
```
# printed result: 24
The charge is $24. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0062295 | 121 volunteers are split into 9 equal teams. How many are on each team, and how many are left over?
A short script:
total = 121
groups = 9
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
Out = 13 each, 4 left over
13 each, 4 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "13 each, 4 left over", "printed": "13 each, 4 left over", "notation": null} |
nlprog_det-setting-0062296 | Counting only Monday through Friday, how many business days are there after April 22, 2023 through June 1, 2023?
A few lines of Python do it:
```python
from datetime import date, timedelta
start = date(2023, 4, 22)
end = date(2023, 6, 1)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(da... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 158 | {"gold": "29", "printed": "29", "notation": null} |
nlprog_det-setting-0062297 | <|start|><|user|>
The rules require 3/5 of 30 members (round up) to be present. How many is that?<|eot|>
<|assistant|>
```python
import math
members = 30
quorum = math.ceil(members * 3 / 5) # 18
print(quorum)
```
Running this gives: 18
That is 18 members.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The rules require 3/5 of 30 members (round up) to be present. How many is that?"
},
{
"role": "assistant",
"content": "```python\nimport math\nmembers = 30\nquorum = math.ceil(members * 3 / 5) # 18\nprint(quorum)\n```\nRunning this gives: 18\n\nThat is 18 members."... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0062298 | <|start|><|system|>
Functions:
[{"name": "math_engine", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
A service costs ... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"math_engine\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir... | nlprog_det | setting | original | null | deterministic | [] | [] | 222 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0062299 | A recipe for 4 people uses 200 grams of lentils. How many grams are needed for 6 people?
Use 300 g of lentils. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0062300 | <|start|><|user|>
$10,000 is invested at 3% compounded yearly. What is it worth after 2 years?<|eot|>
<|assistant|>
```python
principal = 10000
rate = 3 / 100 # 0.03
years = 2
value = principal * (1 + rate) ** years # 10609.0
print(f"{value:.2f}")
```
# console output: 10609.00
The balance is $10,609.00.<|eot|>
<|en... | chat | [
{
"role": "user",
"content": "$10,000 is invested at 3% compounded yearly. What is it worth after 2 years?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 10000\nrate = 3 / 100 # 0.03\nyears = 2\nvalue = principal * (1 + rate) ** years # 10609.0\nprint(f\"{value:.2f}\")\n```\n# c... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "10609.00", "printed": "10609.00", "notation": null} |
nlprog_det-setting-0062302 | <|start|><|user|>
From a $7,500 retainer, 11 hours at $250/hour have been drawn. What remains?<|eot|>
<|assistant|>
retainer = 7500
hours = 11
rate = 250
left = retainer - hours * rate # 4750
print(left)
What it prints: 4750
The remaining balance is $4,750.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From a $7,500 retainer, 11 hours at $250/hour have been drawn. What remains?"
},
{
"role": "assistant",
"content": " retainer = 7500\n hours = 11\n rate = 250\n left = retainer - hours * rate # 4750\n print(left)\nWhat it prints: 4750\n\nThe remainin... | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "4750", "printed": "4750", "notation": null} |
nlprog_det-setting-0062303 | Dara was born on July 25, 2003. How old is Dara on November 4, 2025?
Written as code:
from datetime import date
born = date(2003, 7, 25)
on = date(2025, 11, 4)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day))
print(age)
Output — 22
The age is 22 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0062305 | A water bill is $15 plus $4.20 per thousand gallons beyond the first 2 thousand. What is the bill for 4 thousand gallons?
The program:
```python
base = 15
rate = 4.2
used = 4
free = 2
bill = base + rate * max(0, used - free) # 23.4
print(f"{bill:.2f}")
```
Execution result: 23.40
The bill is $23.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "23.40", "printed": "23.40", "notation": null} |
nlprog_det-setting-0062306 | <|start|><|user|>
At a 4% tax rate, what is the tax on $114.69?<|eot|>
<|assistant|>
```python
price = 114.69
tax_rate = 4 / 100 # 0.04
tax = price * tax_rate # 4.5876
print(f"{tax:.2f}")
```
(Printed: 4.59)
$4.59 in tax.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At a 4% tax rate, what is the tax on $114.69?"
},
{
"role": "assistant",
"content": "```python\nprice = 114.69\ntax_rate = 4 / 100 # 0.04\ntax = price * tax_rate # 4.5876\nprint(f\"{tax:.2f}\")\n```\n(Printed: 4.59)\n\n$4.59 in tax."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "4.59", "printed": "4.59", "notation": null} |
nlprog_det-setting-0062307 | A settlement of $7,350 is split equally among 6 parties. How much does each party receive?
Python does the arithmetic:
```python
settlement = 7350
parties = 6
share = settlement // parties # 1225
print(share)
```
Result:
1225
Each party receives $1,225. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "1225", "printed": "1225", "notation": null} |
nlprog_det-setting-0062308 | A party has 28 days to respond to a motion served on September 28, 2027, with 3 days added because service was by mail. When is the response due?
It is due October 29, 2027. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "2027-10-29", "printed": "2027-10-29", "notation": null} |
nlprog_det-setting-0062309 | Leon earns a 10% commission on $41,050 of sales. What is the commission?
We can compute it in Python.
```python
sales = 41050
rate = 10 / 100
commission = sales * rate
print(f"{commission:.2f}")
```
The printout reads 4105.00.
The commission is $4,105.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "4105.00", "printed": "4105.00", "notation": null} |
nlprog_det-setting-0062310 | Fixed costs are $6,000. Each unit sells for $25 and costs $19 to make. How many units must be sold to break even?
One way, in code:
```python
import math
fixed = 6000
price = 25
variable = 19
units = math.ceil(fixed / (price - variable)) # 1000
print(units)
```
When run, it prints: 1000
Break-even is 1000 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0062311 | With $12,500 in costs and $14,500 in revenue, what percent of revenue is profit? Round to one decimal.
Let's compute it with Python.
```python
revenue = 14500
costs = 12500
profit = revenue - costs # 2000
margin = profit / revenue * 100 # 13.793103448275861
print(round(margin, 1))
```
Run result — 13.8
Profit is 13... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "13.8", "printed": "13.8", "notation": null} |
nlprog_det-setting-0062312 | How many weekdays (Monday to Friday) fall after January 14, 2028 up to and including February 18, 2028?
```python
from datetime import date, timedelta
start = date(2028, 1, 14)
end = date(2028, 2, 18)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekday() < 5:
count +... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0062313 | <|start|><|user|>
At 30 miles per hour, how many minutes does a 180-mile trip take?<|eot|>
<|assistant|>
distance = 180
speed = 30
minutes = distance / speed * 60 # 360.0
print(round(minutes))
It outputs: 360
360 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At 30 miles per hour, how many minutes does a 180-mile trip take?"
},
{
"role": "assistant",
"content": " distance = 180\n speed = 30\n minutes = distance / speed * 60 # 360.0\n print(round(minutes))\nIt outputs: 360\n\n360 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 69 | {"gold": "360", "printed": "360", "notation": null} |
nlprog_det-setting-0062314 | <|start|><|user|>
Someone works 16 hours at $20.63 per hour. What are the earnings?<|eot|>
<|assistant|>
```python
rate = 20.63
hours = 16
earnings = rate * hours # 330.08
print(f"{earnings:.2f}")
```
Console output: 330.08
That earns $330.08.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Someone works 16 hours at $20.63 per hour. What are the earnings?"
},
{
"role": "assistant",
"content": "```python\nrate = 20.63\nhours = 16\nearnings = rate * hours # 330.08\nprint(f\"{earnings:.2f}\")\n```\nConsole output: 330.08\n\nThat earns $330.08."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "330.08", "printed": "330.08", "notation": null} |
nlprog_det-setting-0062315 | A hall has 24 rows of 18 seats, and 3 seats are empty. How many people are seated?
Here is the program.
```python
rows = 24
per_row = 18
empty = 3
seated = rows * per_row - empty # 429
print(seated)
```
# output: 429
429 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "429", "printed": "429", "notation": null} |
nlprog_det-setting-0062316 | Under a 33% contingency agreement, what fee is owed on a $90,000 award?
A Python solution:
```python
recovery = 90000
rate = 33 / 100 # 0.33
fee = recovery * rate # 29700.0
print(f"{fee:.2f}")
```
# out: 29700.00
The fee is $29,700.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "29700.00", "printed": "29700.00", "notation": null} |
nlprog_det-setting-0062317 | Rent of $1,500 goes up 8%. What is the new rent?
Let's compute it with Python.
```python
rent = 1500
increase = 8 / 100 # 0.08
new_rent = rent * (1 + increase) # 1620.0
print(f"{new_rent:.2f}")
```
The program prints 1620.00.
The new rent is $1,620.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "1620.00", "printed": "1620.00", "notation": null} |
nlprog_det-setting-0062318 | Revenue is $13,500 and costs are $12,500. What is the profit margin as a percent of revenue (one decimal)?
Python does the arithmetic:
```python
revenue = 13500
costs = 12500
profit = revenue - costs # 1000
margin = profit / revenue * 100 # 7.4074074074074066
print(round(margin, 1))
```
The run gives: 7.4
Profit is... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "7.4", "printed": "7.4", "notation": null} |
nlprog_det-setting-0062319 | The bridge was finished in 2010. How many years had passed by 2042?
Here is the program.
```python
start_year = 2010
end_year = 2042
print(end_year - start_year)
```
That prints 32.
That is 32 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0062320 | <|start|><|system|>
You may call the tools below.
[{"name": "sandbox_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
A claim accrued on Octo... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"sandbox_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 252 | {"gold": "2024-10-01", "printed": "2024-10-01", "notation": null} |
nlprog_det-setting-0062321 | <|start|><|user|>
A lawyer's fee is 35% of a $40,000 recovery. How large is the fee?<|eot|>
<|assistant|>
```python
recovery = 40000
rate = 35 / 100 # 0.35
fee = recovery * rate # 14000.0
print(f"{fee:.2f}")
```
Out: 14000.00
The lawyer's fee comes to $14,000.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lawyer's fee is 35% of a $40,000 recovery. How large is the fee?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 40000\nrate = 35 / 100 # 0.35\nfee = recovery * rate # 14000.0\nprint(f\"{fee:.2f}\")\n```\nOut: 14000.00\n\nThe lawyer's fee comes to $... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "14000.00", "printed": "14000.00", "notation": null} |
nlprog_det-setting-0062322 | A 6-day trip pays $69 a day for meals and $140 a night for lodging (5 nights). What is the total allowance?
As Python:
```python
days = 6
meal_rate = 69
lodging_rate = 140
nights = days - 1 # 5
total = days * meal_rate + nights * lodging_rate # 1114
print(total)
```
It outputs 1114.
The allowance is $1,114. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "1114", "printed": "1114", "notation": null} |
nlprog_det-setting-0062323 | <|start|><|user|>
Counting only Monday through Friday, how many business days are there after December 3, 2026 through December 8, 2026?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2026, 12, 3)
end = date(2026, 12, 8)
count = 0
for k in range(1, (end - start).days + 1):
if (star... | chat | [
{
"role": "user",
"content": "Counting only Monday through Friday, how many business days are there after December 3, 2026 through December 8, 2026?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2026, 12, 3)\nend = date(2026, 12, 8)\ncount =... | nlprog_det | setting | original | null | deterministic | [] | [] | 156 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0062324 | <|start|><|user|>
Counting the first and last day, how many days are there from December 14, 2027 through December 23, 2027?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2027, 12, 14) # datetime.date(2027, 12, 14)
last = date(2027, 12, 23) # datetime.date(2027, 12, 23)
days = (last - first).d... | chat | [
{
"role": "user",
"content": "Counting the first and last day, how many days are there from December 14, 2027 through December 23, 2027?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2027, 12, 14) # datetime.date(2027, 12, 14)\nlast = date(2027, 12, 2... | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0062325 | <|start|><|user|>
To read 522 pages in 9 days, how many pages per day are needed?<|eot|>
<|assistant|>
```python
pages = 522
days = 9
per_day = pages // days # 58
print(per_day)
```
Execution result — 58
58 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "To read 522 pages in 9 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": "```python\npages = 522\ndays = 9\nper_day = pages // days # 58\nprint(per_day)\n```\nExecution result — 58\n\n58 pages a day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "58", "printed": "58", "notation": null} |
nlprog_det-setting-0062326 | <|start|><|user|>
A $12,000 grant pays $0 up front and the rest in 12 equal installments. How large is each installment?<|eot|>
<|assistant|>
```python
grant = 12000
up_front = 0
installments = 12
each = (grant - up_front) / installments # 1000.0
print(f"{each:.2f}")
```
Printed:
1000.00
Each installment is $1,000.00... | chat | [
{
"role": "user",
"content": "A $12,000 grant pays $0 up front and the rest in 12 equal installments. How large is each installment?"
},
{
"role": "assistant",
"content": "```python\ngrant = 12000\nup_front = 0\ninstallments = 12\neach = (grant - up_front) / installments # 1000.0\nprint(f\"{eac... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "1000.00", "printed": "1000.00", "notation": null} |
nlprog_det-setting-0062327 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "code_runner", "description": "Python sandbox for calculations. Returns printed ... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"code_runner\", \"descript... | nlprog_det | setting | original | null | deterministic | [] | [] | 289 | {"gold": "57", "printed": "57", "notation": null} |
nlprog_det-setting-0062328 | At 2% a month (simple), what interest builds on $12,000 over 2 months?
```python
balance = 12000
monthly_rate = 2 / 100 # 0.02
months = 2
interest = balance * monthly_rate * months # 480.0
print(f"{interest:.2f}")
```
The program outputs: 480.00
$480.00 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "480.00", "printed": "480.00", "notation": null} |
nlprog_det-setting-0062329 | <|start|><|user|>
Fixed costs are $6,000. Each unit sells for $25 and costs $21 to make. How many units must be sold to break even?<|eot|>
<|assistant|>
```python
import math
fixed = 6000
price = 25
variable = 21
units = math.ceil(fixed / (price - variable)) # 1500
print(units)
```
Running it prints: 1500
1500 units ... | chat | [
{
"role": "user",
"content": "Fixed costs are $6,000. Each unit sells for $25 and costs $21 to make. How many units must be sold to break even?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 6000\nprice = 25\nvariable = 21\nunits = math.ceil(fixed / (price - variable)) #... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "1500", "printed": "1500", "notation": null} |
nlprog_det-setting-0062330 | Buying 1 chairs at $15 each, 4 calendars at $18 each, 3 chairs at $25 each, 2 file boxes at $15 each, someone hands over $200. What change comes back?
Here's the code.
```python
items = [(1, 15), (4, 18), (3, 25), (2, 15)]
total = sum(q * p for q, p in items) # 192
paid = 200
change = paid - total # 8
print(change)
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0062331 | How many weekdays (Monday to Friday) fall after January 2, 2021 up to and including January 21, 2021?
One way, in code:
```python
from datetime import date, timedelta
start = date(2021, 1, 2)
end = date(2021, 1, 21)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekday() < 5:
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 158 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0062332 | <|start|><|user|>
A meal costs $55.79. How much is a 25% tip?<|eot|>
<|assistant|>
Leave $13.95.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A meal costs $55.79. How much is a 25% tip?"
},
{
"role": "assistant",
"content": "Leave $13.95."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "13.95", "printed": "13.95", "notation": null} |
nlprog_det-setting-0062333 | <|start|><|user|>
Fines run at $100 per day up to a maximum of $5,000. How much after 47 days?<|eot|>
<|assistant|>
```python
per_day = 100
days = 47
cap = 5000
fine = min(per_day * days, cap) # 4700
print(fine)
```
Running it prints: 4700
$4,700 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Fines run at $100 per day up to a maximum of $5,000. How much after 47 days?"
},
{
"role": "assistant",
"content": "```python\nper_day = 100\ndays = 47\ncap = 5000\nfine = min(per_day * days, cap) # 4700\nprint(fine)\n```\nRunning it prints: 4700\n\n$4,700 is owed.... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "4700", "printed": "4700", "notation": null} |
nlprog_det-setting-0062334 | <|start|><|user|>
A 13 lb package ships at $5 base plus $2.00/lb. What is the charge?<|eot|>
<|assistant|>
The charge is $31.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 13 lb package ships at $5 base plus $2.00/lb. What is the charge?"
},
{
"role": "assistant",
"content": "The charge is $31.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "31.00", "printed": "31.00", "notation": null} |
nlprog_det-setting-0062336 | At a 6% tax rate, what is the tax on $275.29?
Program:
```python
price = 275.29
tax_rate = 6 / 100 # 0.06
tax = price * tax_rate # 16.517400000000002
print(f"{tax:.2f}")
```
This prints 16.52.
$16.52 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "16.52", "printed": "16.52", "notation": null} |
nlprog_det-setting-0062337 | <|start|><|user|>
A car travels 326 miles in 2 hours. What is its average speed in miles per hour?<|eot|>
<|assistant|>
```python
distance = 326
hours = 2
speed = distance / hours # 163.0
print(round(speed))
```
Running it prints: 163
It averages 163 miles per hour.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A car travels 326 miles in 2 hours. What is its average speed in miles per hour?"
},
{
"role": "assistant",
"content": "```python\ndistance = 326\nhours = 2\nspeed = distance / hours # 163.0\nprint(round(speed))\n```\nRunning it prints: 163\n\nIt averages 163 miles... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "163", "printed": "163", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.