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-0062765 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "interpreter", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
A clie... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"interpreter\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}... | nlprog_det | setting | original | null | deterministic | [] | [] | 233 | {"gold": "0", "printed": "0", "notation": null} |
nlprog_det-setting-0062766 | <|start|><|user|>
Papers were served by mail on October 28, 2024. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
served = date(2024, 10, 28) # datetime.date(2024, 10, 28)
response_days = 14
mail_days = 3
... | chat | [
{
"role": "user",
"content": "Papers were served by mail on October 28, 2024. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nserved = date(2024, 10, 28) # datet... | nlprog_det | setting | original | null | deterministic | [] | [] | 178 | {"gold": "2024-11-14", "printed": "2024-11-14", "notation": null} |
nlprog_det-setting-0062767 | <|start|><|system|>
Tools (call with JSON):
[{"name": "sandbox_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "get_weather", "description": "Ge... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"sandbox_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [... | nlprog_det | setting | original | null | deterministic | [] | [] | 283 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0062768 | A $1,500 security deposit has deductions of $75 and $75. How much is refunded?
As a program:
```python
deposit = 1500
deductions = [75, 75]
refund = deposit - sum(deductions) # 1350
print(refund)
```
Executing it gives 1350.
$1,350 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "1350", "printed": "1350", "notation": null} |
nlprog_det-setting-0062769 | 2 hours of work at $150 an hour: what is the total charge?
The computation:
```python
hours = 2
rate = 150
bill = hours * rate # 300
print(f"{bill:.2f}")
```
Printed = 300.00
That comes to $300.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "300.00", "printed": "300.00", "notation": null} |
nlprog_det-setting-0062770 | A storeroom has 1600 chairs. The office uses 16 a day. How many are left after 18 days?
Computing it:
stock = 1600
per_day = 16
days = 18
left = stock - per_day * days # 1312
print(left)
When run, it prints 1312.
1312 chairs are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "1312", "printed": "1312", "notation": null} |
nlprog_det-setting-0062771 | Priya was born on April 5, 1957. How old is Priya on December 2, 2029?
We can compute it in Python.
```python
from datetime import date
born = date(1957, 4, 5) # datetime.date(1957, 4, 5)
on = date(2029, 12, 2) # datetime.date(2029, 12, 2)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 160 | {"gold": "72", "printed": "72", "notation": null} |
nlprog_det-setting-0062773 | Starting with 635 water bottles and using 26 per day, how many remain after 20 days?
We write it as a program:
```python
stock = 635
per_day = 26
days = 20
left = stock - per_day * days # 115
print(left)
```
# run result: 115
115 water bottles are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "115", "printed": "115", "notation": null} |
nlprog_det-setting-0062774 | <|start|><|user|>
A party has 30 days to respond to a motion served on February 17, 2019, with 3 days added because service was by mail. When is the response due?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
served = date(2019, 2, 17) # datetime.date(2019, 2, 17)
response_days = 30
mail_days = 3... | chat | [
{
"role": "user",
"content": "A party has 30 days to respond to a motion served on February 17, 2019, with 3 days added because service was by mail. When is the response due?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nserved = date(2019, 2, 17) # dat... | nlprog_det | setting | original | null | deterministic | [] | [] | 177 | {"gold": "2019-03-22", "printed": "2019-03-22", "notation": null} |
nlprog_det-setting-0062775 | Counting only Monday through Friday, how many business days are there after February 9, 2018 through March 5, 2018?
Python:
```python
from datetime import date, timedelta
start = date(2018, 2, 9)
end = date(2018, 3, 5)
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 | [] | [] | 156 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0062776 | 25 cables cost $24 apiece. With 5% tax added, what is the total?
Python does the arithmetic:
```python
quantity = 25
unit_price = 24
subtotal = quantity * unit_price # 600
total = subtotal * (1 + 5 / 100) # 630.0
print(f"{total:.2f}")
```
# result: 630.00
The invoice total is $630.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "630.00", "printed": "630.00", "notation": null} |
nlprog_det-setting-0062777 | A party has 14 days to respond to a motion served on March 12, 2023, with 3 days added because service was by mail. When is the response due?
Python:
```python
from datetime import date, timedelta
served = date(2023, 3, 12) # datetime.date(2023, 3, 12)
response_days = 14
mail_days = 3
due = served + timedelta(days=re... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 174 | {"gold": "2023-03-29", "printed": "2023-03-29", "notation": null} |
nlprog_det-setting-0062778 | <|start|><|user|>
A $48,000 grant pays $2,000 up front and the rest in 12 equal installments. How large is each installment?<|eot|>
<|assistant|>
```python
grant = 48000
up_front = 2000
installments = 12
each = (grant - up_front) / installments
print(f"{each:.2f}")
```
Output:
3833.33
$3,833.33 per installment.<|eot|>... | chat | [
{
"role": "user",
"content": "A $48,000 grant pays $2,000 up front and the rest in 12 equal installments. How large is each installment?"
},
{
"role": "assistant",
"content": "```python\ngrant = 48000\nup_front = 2000\ninstallments = 12\neach = (grant - up_front) / installments\nprint(f\"{each:.... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "3833.33", "printed": "3833.33", "notation": null} |
nlprog_det-setting-0062779 | Someone works 16 hours at $23.79 per hour. What are the earnings?
A few lines of Python do it:
```python
rate = 23.79
hours = 16
earnings = rate * hours # 380.64
print(f"{earnings:.2f}")
```
Out: 380.64
The pay is $380.64. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "380.64", "printed": "380.64", "notation": null} |
nlprog_det-setting-0062780 | Attendance was 78 out of 100. Express it as a percent.
Attendance was 78.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 26 | {"gold": "78.0", "printed": "78.0", "notation": null} |
nlprog_det-setting-0062781 | <|start|><|system|>
Tools you may use:
[{"name": "py_exec", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
How many units at $20 each (variabl... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"py_exec\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program\"]... | nlprog_det | setting | original | null | deterministic | [] | [] | 224 | {"gold": "500", "printed": "500", "notation": null} |
nlprog_det-setting-0062782 | Sales went from 1,000 to 850. What is the percent change?
We can compute it in Python.
```python
old = 1000
new = 850
change = (new - old) / old * 100 # -15.0
print(round(change))
```
Output: -15
The change is -15%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "-15", "printed": "-15", "notation": null} |
nlprog_det-setting-0062783 | <|start|><|system|>
Be exact with numbers.<|eot|>
<|user|>
Under a 30% contingency agreement, what fee is owed on a $25,000 award?<|eot|>
<|assistant|>
```python
recovery = 25000
rate = 30 / 100 # 0.3
fee = recovery * rate # 7500.0
print(f"{fee:.2f}")
```
The interpreter prints: 7500.00
The lawyer's fee comes to $7,... | chat | [
{
"role": "system",
"content": "Be exact with numbers."
},
{
"role": "user",
"content": "Under a 30% contingency agreement, what fee is owed on a $25,000 award?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 25000\nrate = 30 / 100 # 0.3\nfee = recovery * rate # 7500.0... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "7500.00", "printed": "7500.00", "notation": null} |
nlprog_det-setting-0062784 | <|start|><|user|>
Marek earns a 3% commission on $102,908 of sales. What is the commission?<|eot|>
<|assistant|>
```python
sales = 102908
rate = 3 / 100 # 0.03
commission = sales * rate # 3087.24
print(f"{commission:.2f}")
```
Execution result — 3087.24
The commission is $3,087.24.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Marek earns a 3% commission on $102,908 of sales. What is the commission?"
},
{
"role": "assistant",
"content": "```python\nsales = 102908\nrate = 3 / 100 # 0.03\ncommission = sales * rate # 3087.24\nprint(f\"{commission:.2f}\")\n```\nExecution result — 3087.24\n\... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "3087.24", "printed": "3087.24", "notation": null} |
nlprog_det-setting-0062785 | Meals are $74 per day and lodging $110 per night. What is the allowance for 4 days and 3 nights?
Code:
days = 4
meal_rate = 74
lodging_rate = 110
nights = days - 1 # 3
total = days * meal_rate + nights * lodging_rate # 626
print(total)
It outputs 626.
The allowance is $626. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "626", "printed": "626", "notation": null} |
nlprog_det-setting-0062786 | A car travels 460 miles in 2 hours. What is its average speed in miles per hour?
We write it as a program:
```python
distance = 460
hours = 2
speed = distance / hours # 230.0
print(round(speed))
```
Running it prints 230, as expected.
It averages 230 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "230", "printed": "230", "notation": null} |
nlprog_det-setting-0062787 | <|start|><|user|>
Water costs $20 a month plus $4.20 for each 1,000 gallons over 0,000. What is owed for 3,000 gallons?<|eot|>
<|assistant|>
```python
base = 20
rate = 4.2
used = 3
free = 0
bill = base + rate * max(0, used - free) # 32.6
print(f"{bill:.2f}")
```
Python prints 32.60.
The bill is $32.60.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Water costs $20 a month plus $4.20 for each 1,000 gallons over 0,000. What is owed for 3,000 gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 20\nrate = 4.2\nused = 3\nfree = 0\nbill = base + rate * max(0, used - free) # 32.6\nprint(f\"{bill:.2f}\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "32.60", "printed": "32.60", "notation": null} |
nlprog_det-setting-0062789 | <|start|><|system|>
You may call the tools below.
{"name": "calculator", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|>
<|user|>
A ... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n{\"name\": \"calculator\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source co... | nlprog_det | setting | original | null | deterministic | [] | [] | 254 | {"gold": "12:05 PM", "printed": "12:05 PM", "notation": null} |
nlprog_det-setting-0062790 | <|start|><|user|>
A hall has 12 rows of 19 seats, and 4 seats are empty. How many people are seated?<|eot|>
<|assistant|>
```python
rows = 12
per_row = 19
empty = 4
seated = rows * per_row - empty # 224
print(seated)
```
(stdout: 224)
224 people are seated.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hall has 12 rows of 19 seats, and 4 seats are empty. How many people are seated?"
},
{
"role": "assistant",
"content": "```python\nrows = 12\nper_row = 19\nempty = 4\nseated = rows * per_row - empty # 224\nprint(seated)\n```\n(stdout: 224)\n\n224 people are seate... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "224", "printed": "224", "notation": null} |
nlprog_det-setting-0062791 | <|start|><|user|>
Filing fees are $25 per document. What do 9 filings cost?<|eot|>
<|assistant|>
```python
fee = 25
filings = 9
total = fee * filings # 225
print(total)
```
Out:
225
The filings cost $225 in all.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Filing fees are $25 per document. What do 9 filings cost?"
},
{
"role": "assistant",
"content": "```python\nfee = 25\nfilings = 9\ntotal = fee * filings # 225\nprint(total)\n```\nOut:\n225\n\nThe filings cost $225 in all."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "225", "printed": "225", "notation": null} |
nlprog_det-setting-0062792 | Pilar has 5 documents to file, and each filing costs $90. How much are the filing fees in total?
Here is a short program for it.
```python
fee = 90
filings = 5
total = fee * filings
print(total)
```
stdout: 450
The filings cost $450 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "450", "printed": "450", "notation": null} |
nlprog_det-setting-0062794 | <|start|><|system|>
You are a careful reviewer of figures.<|eot|>
<|user|>
Fixed costs are $4,000. Each unit sells for $40 and costs $30 to make. How many units must be sold to break even?<|eot|>
<|assistant|>
```python
import math
fixed = 4000
price = 40
variable = 30
units = math.ceil(fixed / (price - variable)) # 4... | chat | [
{
"role": "system",
"content": "You are a careful reviewer of figures."
},
{
"role": "user",
"content": "Fixed costs are $4,000. Each unit sells for $40 and costs $30 to make. How many units must be sold to break even?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfi... | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "400", "printed": "400", "notation": null} |
nlprog_det-setting-0062795 | A count moves from 1,200 to 1,500. By what percent did it change (use a minus sign for a drop)?
Code:
```python
old = 1200
new = 1500
change = (new - old) / old * 100 # 25.0
print(round(change))
```
Printed = 25
The change is 25%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0062796 | Under a 35% contingency agreement, what fee is owed on a $90,000 award?
In Python:
recovery = 90000
rate = 35 / 100 # 0.35
fee = recovery * rate # 31499.999999999996
print(f"{fee:.2f}")
The program outputs 31500.00.
The fee is $31,500.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "31500.00", "printed": "31500.00", "notation": null} |
nlprog_det-setting-0062797 | <|start|><|system|>
Tools you may use:
[{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "calc", "description": "Python sandbox for calculati... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"target\"]}}, {\... | nlprog_det | setting | original | null | deterministic | [] | [] | 289 | {"gold": "Friday", "printed": "Friday", "notation": null} |
nlprog_det-setting-0062798 | A 510-page report must be reviewed in 10 days. How many pages a day is that, evenly?
Python:
```python
pages = 510
days = 10
per_day = pages // days # 51
print(per_day)
```
Python prints 51, as expected.
51 pages a day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "51", "printed": "51", "notation": null} |
nlprog_det-setting-0062799 | If a 2-year limitations period starts on December 2, 2022, when does it end?
Python code:
from datetime import date
accrued = date(2022, 12, 2)
years = 2
expires = accrued.replace(year=accrued.year + years)
print(expires.isoformat())
The printout reads 2024-12-02.
It runs out on December 2, 2024. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "2024-12-02", "printed": "2024-12-02", "notation": null} |
nlprog_det-setting-0062800 | <|start|><|user|>
A hall has 8 rows of 14 seats, and 2 seats are empty. How many people are seated?<|eot|>
<|assistant|>
```python
rows = 8
per_row = 14
empty = 2
seated = rows * per_row - empty # 110
print(seated)
```
Running it prints: 110
110 people are seated.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hall has 8 rows of 14 seats, and 2 seats are empty. How many people are seated?"
},
{
"role": "assistant",
"content": "```python\nrows = 8\nper_row = 14\nempty = 2\nseated = rows * per_row - empty # 110\nprint(seated)\n```\nRunning it prints: 110\n\n110 people ar... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "110", "printed": "110", "notation": null} |
nlprog_det-setting-0062801 | <|start|><|user|>
Lena lends $20,000 at 2% simple interest per year for 6 years. How much interest is earned?<|eot|>
<|assistant|>
The interest is $2,400.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Lena lends $20,000 at 2% simple interest per year for 6 years. How much interest is earned?"
},
{
"role": "assistant",
"content": "The interest is $2,400.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "2400.00", "printed": "2400.00", "notation": null} |
nlprog_det-setting-0062802 | A client paid a $10,000 retainer. The firm has billed 10 hours at $250 per hour. How much of the retainer is left?
Here's the code.
```python
retainer = 10000
hours = 10
rate = 250
left = retainer - hours * rate # 7500
print(left)
```
(Program output: 7500)
The remaining balance is $7,500. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "7500", "printed": "7500", "notation": null} |
nlprog_det-setting-0062803 | <|start|><|system|>
You can call tools. Available tools:
{"name": "sandbox_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|>
... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"sandbox_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Pytho... | nlprog_det | setting | original | null | deterministic | [] | [] | 258 | {"gold": "2026-11-02", "printed": "2026-11-02", "notation": null} |
nlprog_det-setting-0062804 | An office budget of $5,000 has expenses of $2,931, $1,066. How much of the budget is left?
A short script:
```python
budget = 5000
expenses = [2931, 1066]
left = budget - sum(expenses) # 1003
print(left)
```
Shell output — 1003
The remaining budget is $1,003. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "1003", "printed": "1003", "notation": null} |
nlprog_det-setting-0062805 | <|start|><|user|>
A appointment starts at 8:30 AM and lasts 135 minutes. When does it end?<|eot|>
<|assistant|>
```python
start = 8 * 60 + 30
end = start + 135
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
(Result: 10:45 AM)
The appointment finishes at 10... | chat | [
{
"role": "user",
"content": "A appointment starts at 8:30 AM and lasts 135 minutes. When does it end?"
},
{
"role": "assistant",
"content": "```python\nstart = 8 * 60 + 30\nend = start + 135\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM... | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "10:45 AM", "printed": "10:45 AM", "notation": null} |
nlprog_det-setting-0062806 | After an initial $3,000, the remainder of a $48,000 grant is paid in 4 equal parts. What is each part?
Each installment is $11,250.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "11250.00", "printed": "11250.00", "notation": null} |
nlprog_det-setting-0062807 | <|start|><|user|>
A 240-mile drive at a steady 60 mph takes how many minutes?<|eot|>
<|assistant|>
240 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 240-mile drive at a steady 60 mph takes how many minutes?"
},
{
"role": "assistant",
"content": "240 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "240", "printed": "240", "notation": null} |
nlprog_det-setting-0062808 | A 3% increase is applied to $1,100 monthly rent. What is the new amount?
Let the code do the arithmetic:
```python
rent = 1100
increase = 3 / 100 # 0.03
new_rent = rent * (1 + increase) # 1133.0
print(f"{new_rent:.2f}")
```
# result: 1133.00
It rises to $1,133.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "1133.00", "printed": "1133.00", "notation": null} |
nlprog_det-setting-0062809 | <|start|><|system|>
Respond clearly and to the point.<|eot|>
<|user|>
Pack A has 10 items for $7.83. Pack B has 15 items for $11.93. Which has the lower price per item?<|eot|>
<|assistant|>
Pack A is cheaper per item.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Respond clearly and to the point."
},
{
"role": "user",
"content": "Pack A has 10 items for $7.83. Pack B has 15 items for $11.93. Which has the lower price per item?"
},
{
"role": "assistant",
"content": "Pack A is cheaper per item."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 62 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0062810 | If a 40-minute appointment begins at 9:00 AM, what time does it finish?
Computation in Python:
```python
start = 9 * 60 + 0
end = start + 40
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Out:
9:40 AM
The appointment finishes at 9:40 AM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "9:40 AM", "printed": "9:40 AM", "notation": null} |
nlprog_det-setting-0062811 | <|start|><|user|>
A recipe for 4 people uses 150 grams of rice. How many grams are needed for 8 people?<|eot|>
<|assistant|>
```python
grams = 150
serves = 4
needed_for = 8
scaled = grams * needed_for // serves # 300
print(scaled)
```
The code prints: 300
Use 300 g of rice.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A recipe for 4 people uses 150 grams of rice. How many grams are needed for 8 people?"
},
{
"role": "assistant",
"content": "```python\ngrams = 150\nserves = 4\nneeded_for = 8\nscaled = grams * needed_for // serves # 300\nprint(scaled)\n```\nThe code prints: 300\n\... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0062812 | With $4,000 in costs and $9,000 in revenue, what percent of revenue is profit? Round to one decimal.
```python
revenue = 9000
costs = 4000
profit = revenue - costs # 5000
margin = profit / revenue * 100 # 55.55555555555556
print(round(margin, 1))
```
It prints: 55.6
Profit is 55.6% of revenue. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "55.6", "printed": "55.6", "notation": null} |
nlprog_det-setting-0062813 | <|start|><|system|>
Be brief and correct.<|eot|>
<|user|>
Pack A has 10 items for $3.74. Pack B has 20 items for $30.73. Which has the lower price per item?<|eot|>
<|assistant|>
```python
pack_a = 3.74 / 10 # 0.374
pack_b = 30.73 / 20 # 1.5365
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
Execut... | chat | [
{
"role": "system",
"content": "Be brief and correct."
},
{
"role": "user",
"content": "Pack A has 10 items for $3.74. Pack B has 20 items for $30.73. Which has the lower price per item?"
},
{
"role": "assistant",
"content": "```python\npack_a = 3.74 / 10 # 0.374\npack_b = 30.73 / 2... | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0062814 | <|start|><|user|>
Pack A has 8 items for $13.13. Pack B has 20 items for $15.11. Which has the lower price per item?<|eot|>
<|assistant|>
```python
pack_a = 13.13 / 8 # 1.64125
pack_b = 15.11 / 20 # 0.7555
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
Program output — B
Pack B is cheaper per it... | chat | [
{
"role": "user",
"content": "Pack A has 8 items for $13.13. Pack B has 20 items for $15.11. Which has the lower price per item?"
},
{
"role": "assistant",
"content": "```python\npack_a = 13.13 / 8 # 1.64125\npack_b = 15.11 / 20 # 0.7555\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'B'\np... | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0062815 | <|start|><|user|>
Goods bought on April 28, 2018 carry a 18-month warranty. When does it expire?<|eot|>
<|assistant|>
```python
from datetime import date
start = date(2018, 4, 28)
months = 18
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.i... | chat | [
{
"role": "user",
"content": "Goods bought on April 28, 2018 carry a 18-month warranty. When does it expire?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nstart = date(2018, 4, 28)\nmonths = 18\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(... | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "2019-10-28", "printed": "2019-10-28", "notation": null} |
nlprog_det-setting-0062816 | A party has 30 days to respond to a motion served on January 16, 2021, with 3 days added because service was by mail. When is the response due?
In code:
from datetime import date, timedelta
served = date(2021, 1, 16) # datetime.date(2021, 1, 16)
response_days = 30
mail_days = 3
due = served + time... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 162 | {"gold": "2021-02-18", "printed": "2021-02-18", "notation": null} |
nlprog_det-setting-0062817 | <|start|><|user|>
An attorney bills 6.5 hours at $410 per hour. What is the bill?<|eot|>
<|assistant|>
```python
hours = 6.5
rate = 410
bill = hours * rate # 2665.0
print(f"{bill:.2f}")
```
Running this gives: 2665.00
That comes to $2,665.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An attorney bills 6.5 hours at $410 per hour. What is the bill?"
},
{
"role": "assistant",
"content": "```python\nhours = 6.5\nrate = 410\nbill = hours * rate # 2665.0\nprint(f\"{bill:.2f}\")\n```\nRunning this gives: 2665.00\n\nThat comes to $2,665.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "2665.00", "printed": "2665.00", "notation": null} |
nlprog_det-setting-0062818 | <|start|><|user|>
Wanjiru buys 3 boxes of 6 flash drives each and gives away 10 flash drives. How many flash drives are left?<|eot|>
<|assistant|>
```python
boxes = 3
per_box = 6
given_away = 10
left = boxes * per_box - given_away # 8
print(left)
```
Running it prints 8, as expected.
8 flash drives are left.<|eot|>
<... | chat | [
{
"role": "user",
"content": "Wanjiru buys 3 boxes of 6 flash drives each and gives away 10 flash drives. How many flash drives are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 3\nper_box = 6\ngiven_away = 10\nleft = boxes * per_box - given_away # 8\nprint(left)\n```\nRunning... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0062819 | <|start|><|user|>
A $9,000 loan carries 8% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|>
<|assistant|>
Each payment is $310.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A $9,000 loan carries 8% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?"
},
{
"role": "assistant",
"content": "Each payment is $310.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 51 | {"gold": "310.00", "printed": "310.00", "notation": null} |
nlprog_det-setting-0062820 | Straight-line depreciation: cost $24,000, salvage $0, 10 years. How much per year?
Code:
```python
cost = 24000
salvage = 0
years = 10
per_year = (cost - salvage) / years # 2400.0
print(f"{per_year:.2f}")
```
Run output: 2400.00
Depreciation is $2,400.00 per year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "2400.00", "printed": "2400.00", "notation": null} |
nlprog_det-setting-0062821 | <|start|><|user|>
Split $2,576 between Ulla and Idris in the ratio 1 to 3. What is Ulla's share?<|eot|>
<|assistant|>
```python
total = 2576
parts_a = 1
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b)
print(share_a)
```
Program output: 644
Ulla gets $644.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Split $2,576 between Ulla and Idris in the ratio 1 to 3. What is Ulla's share?"
},
{
"role": "assistant",
"content": "```python\ntotal = 2576\nparts_a = 1\nparts_b = 3\nshare_a = total * parts_a // (parts_a + parts_b)\nprint(share_a)\n```\nProgram output: 644\n\nUll... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "644", "printed": "644", "notation": null} |
nlprog_det-setting-0062822 | A service costs $25 a month or $264 a year. How much does the yearly plan save over 12 monthly payments?
Python, step by step:
```python
monthly = 25
yearly = 264
savings = monthly * 12 - yearly # 36
print(savings)
```
The code prints: 36
$36 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0062823 | 3 claimants share a $18,000 settlement equally. What is each share?
The computation:
```python
settlement = 18000
parties = 3
share = settlement // parties # 6000
print(share)
```
Console output — 6000
Each share is $6,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "6000", "printed": "6000", "notation": null} |
nlprog_det-setting-0062824 | Split $1,773 between Leon and Nikhil in the ratio 1 to 2. What is Leon's share?
Here is a short program for it.
```python
total = 1773
parts_a = 1
parts_b = 2
share_a = total * parts_a // (parts_a + parts_b) # 591
print(share_a)
```
(Output: 591)
Leon gets $591. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "591", "printed": "591", "notation": null} |
nlprog_det-setting-0062825 | <|start|><|user|>
What percentage of $10,000 is $3,600?<|eot|>
<|assistant|>
budget = 10000
spent = 3600
percent = spent / budget * 100 # 36.0
print(round(percent, 1))
# printed result: 36.0
36.0% has been spent.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What percentage of $10,000 is $3,600?"
},
{
"role": "assistant",
"content": " budget = 10000\n spent = 3600\n percent = spent / budget * 100 # 36.0\n print(round(percent, 1))\n# printed result: 36.0\n\n36.0% has been spent."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "36.0", "printed": "36.0", "notation": null} |
nlprog_det-setting-0062826 | <|start|><|system|>
Keep explanations short.<|eot|>
<|user|>
After a 30% fee is taken from a $30,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|>
<|assistant|>
Each share is $10,500.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Keep explanations short."
},
{
"role": "user",
"content": "After a 30% fee is taken from a $30,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?"
},
{
"role": "assistant",
"content": "Each share is $10,500.00."
}... | nlprog_det | setting | original | null | deterministic | [] | [] | 58 | {"gold": "10500.00", "printed": "10500.00", "notation": null} |
nlprog_det-setting-0062827 | <|start|><|user|>
A court charges $15 per request plus $0.25 per page after the first 20 pages. What does a 24-page copy cost?<|eot|>
<|assistant|>
The copy costs $16.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A court charges $15 per request plus $0.25 per page after the first 20 pages. What does a 24-page copy cost?"
},
{
"role": "assistant",
"content": "The copy costs $16.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 47 | {"gold": "16.00", "printed": "16.00", "notation": null} |
nlprog_det-setting-0062828 | <|start|><|user|>
A shift runs from 7:59 AM to 2:51 PM. How long is it in minutes?<|eot|>
<|assistant|>
```python
start = 7 * 60 + 59
end = 14 * 60 + 51
print(end - start)
```
Interpreter output: 412
412 minutes pass.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A shift runs from 7:59 AM to 2:51 PM. How long is it in minutes?"
},
{
"role": "assistant",
"content": "```python\nstart = 7 * 60 + 59\nend = 14 * 60 + 51\nprint(end - start)\n```\nInterpreter output: 412\n\n412 minutes pass."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "412", "printed": "412", "notation": null} |
nlprog_det-setting-0062829 | Each storage box holds 15 files. How many boxes are needed for 97 files?
As Python:
```python
import math
files = 97
per_box = 15
boxes = math.ceil(files / per_box)
print(boxes)
```
The program prints 7.
7 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0062830 | <|start|><|user|>
A court charges $5 per request plus $0.50 per page after the first 20 pages. What does a 49-page copy cost?<|eot|>
<|assistant|>
```python
pages = 49
base = 5
per_page = 0.5
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page # 19.5
print(f"{cost:.2f}")
```
Execution result — 19.50
T... | chat | [
{
"role": "user",
"content": "A court charges $5 per request plus $0.50 per page after the first 20 pages. What does a 49-page copy cost?"
},
{
"role": "assistant",
"content": "```python\npages = 49\nbase = 5\nper_page = 0.5\nfree_pages = 20\ncost = base + max(0, pages - free_pages) * per_page ... | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "19.50", "printed": "19.50", "notation": null} |
nlprog_det-setting-0062831 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "sandbox_python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
A t... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"sandbox_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 | [] | [] | 249 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0062832 | $5,000 is invested at 4% compounded yearly. What is it worth after 4 years?
Python version:
```python
principal = 5000
rate = 4 / 100 # 0.04
years = 4
value = principal * (1 + rate) ** years # 5849.292800000001
print(f"{value:.2f}")
```
Python prints 5849.29.
The balance is $5,849.29. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "5849.29", "printed": "5849.29", "notation": null} |
nlprog_det-setting-0062833 | <|start|><|user|>
A penalty of $250 a day accrues, capped at $5,000. What is owed after 41 days?<|eot|>
<|assistant|>
```python
per_day = 250
days = 41
cap = 5000
fine = min(per_day * days, cap) # 5000
print(fine)
```
# run result: 5000
The fine is $5,000.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A penalty of $250 a day accrues, capped at $5,000. What is owed after 41 days?"
},
{
"role": "assistant",
"content": "```python\nper_day = 250\ndays = 41\ncap = 5000\nfine = min(per_day * days, cap) # 5000\nprint(fine)\n```\n# run result: 5000\n\nThe fine is $5,000... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "5000", "printed": "5000", "notation": null} |
nlprog_det-setting-0062834 | <|start|><|system|>
You have access to these functions:
{"name": "interpreter", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|>
<|user|>
A... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"interpreter\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source co... | nlprog_det | setting | original | null | deterministic | [] | [] | 202 | {"gold": "1880", "printed": "1880", "notation": null} |
nlprog_det-setting-0062835 | Xavier earns a 4% commission on $36,368 of sales. What is the commission?
The computation:
```python
sales = 36368
rate = 4 / 100 # 0.04
commission = sales * rate # 1454.72
print(f"{commission:.2f}")
```
Executing it gives 1454.72.
The commission is $1,454.72. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "1454.72", "printed": "1454.72", "notation": null} |
nlprog_det-setting-0062836 | A settlement of $522 is split equally among 6 parties. How much does each party receive?
Here is the program.
```python
settlement = 522
parties = 6
share = settlement // parties # 87
print(share)
```
Console:
87
Each party receives $87. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "87", "printed": "87", "notation": null} |
nlprog_det-setting-0062837 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "math_engine", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"math_engine\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"P... | nlprog_det | setting | original | null | deterministic | [] | [] | 202 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0062838 | Scale 100 g of sugar from 2 servings to 4 servings.
Python makes this quick:
grams = 100
serves = 2
needed_for = 4
scaled = grams * needed_for // serves # 200
print(scaled)
Output — 200
Use 200 g of sugar. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "200", "printed": "200", "notation": null} |
nlprog_det-setting-0062839 | <|start|><|user|>
From 1993 to 2000, how many years is that?<|eot|>
<|assistant|>
```python
start_year = 1993
end_year = 2000
print(end_year - start_year)
```
Shell output: 7
That is 7 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From 1993 to 2000, how many years is that?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 1993\nend_year = 2000\nprint(end_year - start_year)\n```\nShell output: 7\n\nThat is 7 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 67 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0062840 | Fines run at $25 per day up to a maximum of $1,000. How much after 35 days?
Written as code:
```python
per_day = 25
days = 35
cap = 1000
fine = min(per_day * days, cap) # 875
print(fine)
```
(Output: 875)
The fine is $875. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "875", "printed": "875", "notation": null} |
nlprog_det-setting-0062841 | Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 45 hours?
Here's the code.
```python
rate = 16.0
hours = 45
regular = 40 * rate # 640.0
overtime = (hours - 40) * rate * 1.5 # 120.0
pay = regular + overtime # 760.0
print(f"{pay:.2f}")
```
Running it prints: 760.00
Rania earns ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "760.00", "printed": "760.00", "notation": null} |
nlprog_det-setting-0062842 | <|start|><|user|>
Straight-line depreciation: cost $12,000, salvage $0, 10 years. How much per year?<|eot|>
<|assistant|>
```python
cost = 12000
salvage = 0
years = 10
per_year = (cost - salvage) / years # 1200.0
print(f"{per_year:.2f}")
```
Printed = 1200.00
Depreciation is $1,200.00 per year.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Straight-line depreciation: cost $12,000, salvage $0, 10 years. How much per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 12000\nsalvage = 0\nyears = 10\nper_year = (cost - salvage) / years # 1200.0\nprint(f\"{per_year:.2f}\")\n```\nPrinted = 1200... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "1200.00", "printed": "1200.00", "notation": null} |
nlprog_det-setting-0062844 | <|start|><|user|>
Starting with 920 pens and using 30 per day, how many remain after 17 days?<|eot|>
<|assistant|>
410 remain.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting with 920 pens and using 30 per day, how many remain after 17 days?"
},
{
"role": "assistant",
"content": "410 remain."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "410", "printed": "410", "notation": null} |
nlprog_det-setting-0062845 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "code_runner", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "bu... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"code_runner\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python sour... | nlprog_det | setting | original | null | deterministic | [] | [] | 304 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0062846 | Counting the first and last day, how many days are there from December 19, 2022 through December 25, 2022?
```python
from datetime import date
first = date(2022, 12, 19) # datetime.date(2022, 12, 19)
last = date(2022, 12, 25) # datetime.date(2022, 12, 25)
days = (last - first).days + 1 # 7
print(days)
```
Printed r... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0062847 | At $0.67 per mile, what is the reimbursement for 340 miles?
Coded up:
```python
miles = 340
rate = 0.67
reimbursement = miles * rate # 227.8
print(f"{reimbursement:.2f}")
```
Result: 227.80
Goran is owed $227.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "227.80", "printed": "227.80", "notation": null} |
nlprog_det-setting-0062848 | <|start|><|system|>
You check calculations for an accounting team.<|eot|>
<|user|>
Convert 23.6 km to meters.<|eot|>
<|assistant|>
```python
km = 23.6
meters = km * 1000 # 23600.0
print(round(meters))
```
The program prints: 23600
That is 23,600 meters.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You check calculations for an accounting team."
},
{
"role": "user",
"content": "Convert 23.6 km to meters."
},
{
"role": "assistant",
"content": "```python\nkm = 23.6\nmeters = km * 1000 # 23600.0\nprint(round(meters))\n```\nThe program prints: 23600... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "23600", "printed": "23600", "notation": null} |
nlprog_det-setting-0062849 | How many of 212 votes make 67% (round up)?
Coded up:
import math
voters = 212
needed = math.ceil(voters * 67 / 100) # 143
print(needed)
Result: 143
143 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "143", "printed": "143", "notation": null} |
nlprog_det-setting-0062850 | <|start|><|user|>
An attorney bills 2 hours at $225 per hour. What is the bill?<|eot|>
<|assistant|>
```python
hours = 2
rate = 225
bill = hours * rate # 450
print(f"{bill:.2f}")
```
It outputs: 450.00
That comes to $450.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An attorney bills 2 hours at $225 per hour. What is the bill?"
},
{
"role": "assistant",
"content": "```python\nhours = 2\nrate = 225\nbill = hours * rate # 450\nprint(f\"{bill:.2f}\")\n```\nIt outputs: 450.00\n\nThat comes to $450.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "450.00", "printed": "450.00", "notation": null} |
nlprog_det-setting-0062852 | Which is cheaper per unit: 12 for $11.38 (A) or 15 for $19.75 (B)?
Here's the code.
```python
pack_a = 11.38 / 12 # 0.9483333333333334
pack_b = 19.75 / 15 # 1.3166666666666667
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
Output of the run — A
Pack A is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0062853 | <|start|><|user|>
From 2021 to 2041, how many years is that?<|eot|>
<|assistant|>
20 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From 2021 to 2041, how many years is that?"
},
{
"role": "assistant",
"content": "20 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 24 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0062854 | Hana earns $25.00 an hour and time and a half for hours over 40. What is the pay for a 54-hour week?
Computing it:
```python
rate = 25.0
hours = 54
regular = 40 * rate
overtime = (hours - 40) * rate * 1.5
pay = regular + overtime
print(f"{pay:.2f}")
```
On running, it outputs 1525.00.
Hana earns $1,525.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "1525.00", "printed": "1525.00", "notation": null} |
nlprog_det-setting-0062855 | The landlord deducts $150 from a $800 deposit. What is returned to the tenant?
Computing it:
```python
deposit = 800
deductions = [150]
refund = deposit - sum(deductions) # 650
print(refund)
```
It outputs: 650
The refund is $650. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "650", "printed": "650", "notation": null} |
nlprog_det-setting-0062856 | Straight-line depreciation: cost $24,000, salvage $6,000, 3 years. How much per year?
Programmatically:
```python
cost = 24000
salvage = 6000
years = 3
per_year = (cost - salvage) / years # 6000.0
print(f"{per_year:.2f}")
```
The program prints: 6000.00
Depreciation is $6,000.00 per year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "6000.00", "printed": "6000.00", "notation": null} |
nlprog_det-setting-0062857 | Prorate $2,400 of monthly rent for 18 days of a 31-day month. The prorated rent is $1,393.55. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "1393.55", "printed": "1393.55", "notation": null} |
nlprog_det-setting-0062858 | Counting the first and last day, how many days are there from November 2, 2028 through November 19, 2028?
As Python:
```python
from datetime import date
first = date(2028, 11, 2) # datetime.date(2028, 11, 2)
last = date(2028, 11, 19) # datetime.date(2028, 11, 19)
days = (last - first).days + 1 # 18
print(days)
```
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0062860 | <|start|><|user|>
Filing fees are $125 per document. What do 17 filings cost?<|eot|>
<|assistant|>
```python
fee = 125
filings = 17
total = fee * filings # 2125
print(total)
```
Run output — 2125
The total fee is $2,125.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Filing fees are $125 per document. What do 17 filings cost?"
},
{
"role": "assistant",
"content": "```python\nfee = 125\nfilings = 17\ntotal = fee * filings # 2125\nprint(total)\n```\nRun output — 2125\n\nThe total fee is $2,125."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "2125", "printed": "2125", "notation": null} |
nlprog_det-setting-0062861 | Ulla drove 298 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?
Translated to Python:
```python
miles = 298
rate = 0.65
reimbursement = miles * rate # 193.70000000000002
print(f"{reimbursement:.2f}")
```
Execution prints 193.70.
The reimbursement is $193.70. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "193.70", "printed": "193.70", "notation": null} |
nlprog_det-setting-0062863 | 218 volunteers are split into 3 equal teams. How many are on each team, and how many are left over?
Python makes this quick:
```python
total = 218
groups = 3
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Output:
72 each, 2 left over
72 each, 2 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "72 each, 2 left over", "printed": "72 each, 2 left over", "notation": null} |
nlprog_det-setting-0062864 | How many weekdays (Monday to Friday) fall after May 10, 2020 up to and including May 16, 2020?
There are 5 business days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0062865 | <|start|><|user|>
Kaito earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 55-hour week?<|eot|>
<|assistant|>
```python
rate = 20.0
hours = 55
regular = 40 * rate # 800.0
overtime = (hours - 40) * rate * 1.5 # 450.0
pay = regular + overtime # 1250.0
print(f"{pay:.2f}")
```
Shell output... | chat | [
{
"role": "user",
"content": "Kaito earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 55-hour week?"
},
{
"role": "assistant",
"content": "```python\nrate = 20.0\nhours = 55\nregular = 40 * rate # 800.0\novertime = (hours - 40) * rate * 1.5 # 450.0\npay = regula... | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "1250.00", "printed": "1250.00", "notation": null} |
nlprog_det-setting-0062866 | Goods bought on October 5, 2027 carry a 6-month warranty. When does it expire?
Code:
```python
from datetime import date
start = date(2027, 10, 5)
months = 6
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
stdout — 2028-04-... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "2028-04-05", "printed": "2028-04-05", "notation": null} |
nlprog_det-setting-0062867 | An office budget of $12,000 has expenses of $1,087, $672, $2,143. How much of the budget is left?
Python code:
```python
budget = 12000
expenses = [1087, 672, 2143]
left = budget - sum(expenses) # 8098
print(left)
```
Executed, it shows: 8098
The remaining budget is $8,098. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "8098", "printed": "8098", "notation": null} |
nlprog_det-setting-0062868 | Parking is $4 per hour with a daily maximum of $15. What do 1 hours cost?
Python makes this quick:
```python
rate = 4
hours = 1
daily_max = 15
cost = min(rate * hours, daily_max) # 4
print(cost)
```
Executed, it shows 4.
Parking costs $4. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0062869 | A car travels 142 miles in 1 hours. What is its average speed in miles per hour?
A short script:
```python
distance = 142
hours = 1
speed = distance / hours # 142.0
print(round(speed))
```
Result:
142
The average speed is 142 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "142", "printed": "142", "notation": null} |
nlprog_det-setting-0062870 | The landlord deducts $60, $120 and $75 from a $2,000 deposit. What is returned to the tenant?
$1,745 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "1745", "printed": "1745", "notation": null} |
nlprog_det-setting-0062871 | A meal costs $79.12. How much is a 18% tip?
Python code:
```python
bill = 79.12
tip_rate = 18 / 100 # 0.18
tip = bill * tip_rate # 14.2416
print(f"{tip:.2f}")
```
Console output — 14.24
Leave $14.24. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "14.24", "printed": "14.24", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.