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-0067574 | <|start|><|user|>
A hall has 7 rows of 10 seats, and 36 seats are empty. How many people are seated?<|eot|>
<|assistant|>
```python
rows = 7
per_row = 10
empty = 36
seated = rows * per_row - empty # 34
print(seated)
```
Printed = 34
34 seats are taken.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hall has 7 rows of 10 seats, and 36 seats are empty. How many people are seated?"
},
{
"role": "assistant",
"content": "```python\nrows = 7\nper_row = 10\nempty = 36\nseated = rows * per_row - empty # 34\nprint(seated)\n```\nPrinted = 34\n\n34 seats are taken."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "34", "printed": "34", "notation": null} |
nlprog_det-setting-0067575 | <|start|><|user|>
After a 25% fee is taken from a $96,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|>
<|assistant|>
```python
award = 96000
fee = award * 25 / 100 # 24000.0
remaining = award - fee # 72000.0
per_client = remaining / 3 # 24000.0
print(f"{per_client:.2f}")... | chat | [
{
"role": "user",
"content": "After a 25% fee is taken from a $96,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?"
},
{
"role": "assistant",
"content": "```python\naward = 96000\nfee = award * 25 / 100 # 24000.0\nremaining = award - fee # 72000.0\nper_cl... | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "24000.00", "printed": "24000.00", "notation": null} |
nlprog_det-setting-0067576 | Lena drove 239 miles for work. Mileage is reimbursed at 70 cents a mile. How much is the reimbursement?
One way, in code:
miles = 239
rate = 0.7
reimbursement = miles * rate # 167.29999999999998
print(f"{reimbursement:.2f}")
stdout — 167.30
Lena is owed $167.30. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "167.30", "printed": "167.30", "notation": null} |
nlprog_det-setting-0067577 | A trial runs from September 5, 2023 to September 28, 2023, counting both days. How many calendar days is that?
A short script:
```python
from datetime import date
first = date(2023, 9, 5) # datetime.date(2023, 9, 5)
last = date(2023, 9, 28) # datetime.date(2023, 9, 28)
days = (last - first).days + 1 # 24
print(days... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0067578 | <|start|><|system|>
You may call the tools below.
[{"name": "interpreter", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "lookup_statute", "descri... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"interpreter\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required... | nlprog_det | setting | original | null | deterministic | [] | [] | 305 | {"gold": "1872.00", "printed": "1872.00", "notation": null} |
nlprog_det-setting-0067579 | Convert 3,131 CHF to USD at 1 CHF = 1.27 USD.
We write it as a program:
```python
amount = 3131
rate = 1.27
converted = amount * rate # 3976.37
print(f"{converted:.2f}")
```
Run result = 3976.37
It converts to 3,976.37 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "3976.37", "printed": "3976.37", "notation": null} |
nlprog_det-setting-0067580 | A count moves from 1,000 to 750. By what percent did it change (use a minus sign for a drop)?
Let the code do the arithmetic:
```python
old = 1000
new = 750
change = (new - old) / old * 100 # -25.0
print(round(change))
```
Result:
-25
The change is -25%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "-25", "printed": "-25", "notation": null} |
nlprog_det-setting-0067581 | Papers were served by mail on September 3, 2021. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date?
Let the code do the arithmetic:
```python
from datetime import date, timedelta
served = date(2021, 9, 3)
response_days = 28
mail_days = 3
due = served + timedelta(days=response... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "2021-10-04", "printed": "2021-10-04", "notation": null} |
nlprog_det-setting-0067583 | A 2% increase is applied to $2,200 monthly rent. What is the new amount?
Coded up:
rent = 2200
increase = 2 / 100 # 0.02
new_rent = rent * (1 + increase) # 2244.0
print(f"{new_rent:.2f}")
Running it prints 2244.00, as expected.
It rises to $2,244.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "2244.00", "printed": "2244.00", "notation": null} |
nlprog_det-setting-0067584 | Express 140 hours in days and hours.
The computation:
```python
hours = 140
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Run it and it prints: 5 days and 20 hours
That is 5 days and 20 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "5 days and 20 hours", "printed": "5 days and 20 hours", "notation": null} |
nlprog_det-setting-0067585 | <|start|><|user|>
A quorum is 3/5 of the 47 members, rounded up. How many members make a quorum?<|eot|>
<|assistant|>
```python
import math
members = 47
quorum = math.ceil(members * 3 / 5) # 29
print(quorum)
```
Executed, it shows 29.
29 members are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A quorum is 3/5 of the 47 members, rounded up. How many members make a quorum?"
},
{
"role": "assistant",
"content": "```python\nimport math\nmembers = 47\nquorum = math.ceil(members * 3 / 5) # 29\nprint(quorum)\n```\nExecuted, it shows 29.\n\n29 members are needed... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "29", "printed": "29", "notation": null} |
nlprog_det-setting-0067586 | <|start|><|user|>
A 22 lb package ships at $8 base plus $0.75/lb. What is the charge?<|eot|>
<|assistant|>
```python
base = 8
per_pound = 0.75
weight = 22
cost = base + per_pound * weight # 24.5
print(f"{cost:.2f}")
```
The interpreter prints: 24.50
Shipping costs $24.50.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 22 lb package ships at $8 base plus $0.75/lb. What is the charge?"
},
{
"role": "assistant",
"content": "```python\nbase = 8\nper_pound = 0.75\nweight = 22\ncost = base + per_pound * weight # 24.5\nprint(f\"{cost:.2f}\")\n```\nThe interpreter prints: 24.50\n\nShi... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "24.50", "printed": "24.50", "notation": null} |
nlprog_det-setting-0067587 | <|start|><|user|>
After an initial $3,000, the remainder of a $30,000 grant is paid in 3 equal parts. What is each part?<|eot|>
<|assistant|>
```python
grant = 30000
up_front = 3000
installments = 3
each = (grant - up_front) / installments # 9000.0
print(f"{each:.2f}")
```
This prints 9000.00.
Each installment is $9,... | chat | [
{
"role": "user",
"content": "After an initial $3,000, the remainder of a $30,000 grant is paid in 3 equal parts. What is each part?"
},
{
"role": "assistant",
"content": "```python\ngrant = 30000\nup_front = 3000\ninstallments = 3\neach = (grant - up_front) / installments # 9000.0\nprint(f\"{e... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "9000.00", "printed": "9000.00", "notation": null} |
nlprog_det-setting-0067588 | A 3% increase is applied to $900 monthly rent. What is the new amount?
Translated to Python:
```python
rent = 900
increase = 3 / 100 # 0.03
new_rent = rent * (1 + increase) # 927.0
print(f"{new_rent:.2f}")
```
It outputs 927.00.
It rises to $927.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "927.00", "printed": "927.00", "notation": null} |
nlprog_det-setting-0067589 | <|start|><|user|>
Beatriz was born on August 2, 1950. How old is Beatriz on February 4, 2025?<|eot|>
<|assistant|>
from datetime import date
born = date(1950, 8, 2) # datetime.date(1950, 8, 2)
on = date(2025, 2, 4) # datetime.date(2025, 2, 4)
age = on.year - born.year - ((on.month, on.day) < (born.mon... | chat | [
{
"role": "user",
"content": "Beatriz was born on August 2, 1950. How old is Beatriz on February 4, 2025?"
},
{
"role": "assistant",
"content": " from datetime import date\n born = date(1950, 8, 2) # datetime.date(1950, 8, 2)\n on = date(2025, 2, 4) # datetime.date(2025, 2, 4)\n ag... | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "74", "printed": "74", "notation": null} |
nlprog_det-setting-0067590 | Convert 10 °C to Fahrenheit.
As Python:
```python
celsius = 10
fahrenheit = celsius * 9 / 5 + 32 # 50.0
print(round(fahrenheit))
```
# run result: 50
It equals 50 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0067591 | <|start|><|user|>
$5,000 is invested at 4% compounded yearly. What is it worth after 2 years?<|eot|>
<|assistant|>
```python
principal = 5000
rate = 4 / 100 # 0.04
years = 2
value = principal * (1 + rate) ** years # 5408.000000000001
print(f"{value:.2f}")
```
(Printed: 5408.00)
It is worth $5,408.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "$5,000 is invested at 4% compounded yearly. What is it worth after 2 years?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 5000\nrate = 4 / 100 # 0.04\nyears = 2\nvalue = principal * (1 + rate) ** years # 5408.000000000001\nprint(f\"{value:.2f}\")\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "5408.00", "printed": "5408.00", "notation": null} |
nlprog_det-setting-0067592 | <|start|><|user|>
An invoice lists 10 file boxes at $12 each, plus 7% sales tax. What is the invoice total?<|eot|>
<|assistant|>
```python
quantity = 10
unit_price = 12
subtotal = quantity * unit_price # 120
total = subtotal * (1 + 7 / 100) # 128.4
print(f"{total:.2f}")
```
The code prints: 128.40
The total with tax... | chat | [
{
"role": "user",
"content": "An invoice lists 10 file boxes at $12 each, plus 7% sales tax. What is the invoice total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 10\nunit_price = 12\nsubtotal = quantity * unit_price # 120\ntotal = subtotal * (1 + 7 / 100) # 128.4\nprint(f\"{... | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "128.40", "printed": "128.40", "notation": null} |
nlprog_det-setting-0067593 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "calc", "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"]}}<|eot|>
<|user|>
Convert... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"calc\", \"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 | [] | [] | 221 | {"gold": "377.40", "printed": "377.40", "notation": null} |
nlprog_det-setting-0067595 | Beatriz drove 601 miles for work. Mileage is reimbursed at 67 cents a mile. How much is the reimbursement?
Beatriz is owed $402.67. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "402.67", "printed": "402.67", "notation": null} |
nlprog_det-setting-0067596 | <|start|><|user|>
A party has 21 days to respond to a motion served on July 11, 2021, with 3 days added because service was by mail. When is the response due?<|eot|>
<|assistant|>
from datetime import date, timedelta
served = date(2021, 7, 11) # datetime.date(2021, 7, 11)
response_days = 21
mail_days =... | chat | [
{
"role": "user",
"content": "A party has 21 days to respond to a motion served on July 11, 2021, with 3 days added because service was by mail. When is the response due?"
},
{
"role": "assistant",
"content": " from datetime import date, timedelta\n served = date(2021, 7, 11) # datetime.d... | nlprog_det | setting | original | null | deterministic | [] | [] | 164 | {"gold": "2021-08-04", "printed": "2021-08-04", "notation": null} |
nlprog_det-setting-0067597 | Meals are $79 per day and lodging $140 per night. What is the allowance for 8 days and 7 nights?
Python code:
```python
days = 8
meal_rate = 79
lodging_rate = 140
nights = days - 1 # 7
total = days * meal_rate + nights * lodging_rate # 1612
print(total)
```
stdout — 1612
The allowance is $1,612. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "1612", "printed": "1612", "notation": null} |
nlprog_det-setting-0067598 | With 6 rows of 11 chairs and 3 empty chairs, how many chairs are taken?
Let the code do the arithmetic:
```python
rows = 6
per_row = 11
empty = 3
seated = rows * per_row - empty # 63
print(seated)
```
Out = 63
63 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "63", "printed": "63", "notation": null} |
nlprog_det-setting-0067599 | <|start|><|user|>
What does $5,000 grow to in 3 years at 5% annual compounding?<|eot|>
<|assistant|>
```python
principal = 5000
rate = 5 / 100
years = 3
value = principal * (1 + rate) ** years
print(f"{value:.2f}")
```
Executing it gives 5788.13, as expected.
It is worth $5,788.13.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What does $5,000 grow to in 3 years at 5% annual compounding?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 5000\nrate = 5 / 100\nyears = 3\nvalue = principal * (1 + rate) ** years\nprint(f\"{value:.2f}\")\n```\nExecuting it gives 5788.13, as expecte... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "5788.13", "printed": "5788.13", "notation": null} |
nlprog_det-setting-0067600 | <|start|><|user|>
A pack of 20 calendars sells for $460. What does each cost?<|eot|>
<|assistant|>
Each one costs $23.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A pack of 20 calendars sells for $460. What does each cost?"
},
{
"role": "assistant",
"content": "Each one costs $23."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0067601 | 3 books come back 22 days late, at $0.15 a day each. What is the fine?
A short script:
```python
per_day = 0.15
days_late = 22
books = 3
fine = per_day * days_late * books # 9.899999999999999
print(f"{fine:.2f}")
```
It prints 9.90.
The fine is $9.90. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "9.90", "printed": "9.90", "notation": null} |
nlprog_det-setting-0067602 | A $800 security deposit has deductions of $85 and $45. How much is refunded?
We write it as a program:
deposit = 800
deductions = [85, 45]
refund = deposit - sum(deductions)
print(refund)
Run it and it prints: 670
$670 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "670", "printed": "670", "notation": null} |
nlprog_det-setting-0067603 | A trial runs from January 28, 2028 to January 31, 2028, counting both days. How many calendar days is that?
Python makes this quick:
```python
from datetime import date
first = date(2028, 1, 28)
last = date(2028, 1, 31)
days = (last - first).days + 1
print(days)
```
What it prints: 4
4 calendar days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0067604 | Revenue is $36,500 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?
Computing it:
```python
revenue = 36500
costs = 36000
profit = revenue - costs # 500
margin = profit / revenue * 100 # 1.36986301369863
print(round(margin, 1))
```
Executing it gives: 1.4
The margin is 1.4%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "1.4", "printed": "1.4", "notation": null} |
nlprog_det-setting-0067605 | Uma buys 4 boxes of 8 labels each and gives away 5 labels. How many labels are left?
We can compute it in Python.
boxes = 4
per_box = 8
given_away = 5
left = boxes * per_box - given_away # 27
print(left)
The script prints: 27
27 labels are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "27", "printed": "27", "notation": null} |
nlprog_det-setting-0067606 | From 2017 to 2050, how many years is that?
Computing it:
start_year = 2017
end_year = 2050
print(end_year - start_year)
# console output: 33
That is 33 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 60 | {"gold": "33", "printed": "33", "notation": null} |
nlprog_det-setting-0067607 | Starting with 1329 binders and using 36 per day, how many remain after 6 days?
In code:
```python
stock = 1329
per_day = 36
days = 6
left = stock - per_day * days # 1113
print(left)
```
(Run result: 1113)
1113 binders are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "1113", "printed": "1113", "notation": null} |
nlprog_det-setting-0067608 | <|start|><|user|>
A trial runs from May 18, 2019 to June 6, 2019, counting both days. How many calendar days is that?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2019, 5, 18) # datetime.date(2019, 5, 18)
last = date(2019, 6, 6) # datetime.date(2019, 6, 6)
days = (last - first).days + 1 # 20... | chat | [
{
"role": "user",
"content": "A trial runs from May 18, 2019 to June 6, 2019, counting both days. How many calendar days is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2019, 5, 18) # datetime.date(2019, 5, 18)\nlast = date(2019, 6, 6) # datet... | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0067609 | <|start|><|user|>
The paralegal logged 2.5 hours at a rate of $250. How much is billed?<|eot|>
<|assistant|>
hours = 2.5
rate = 250
bill = hours * rate # 625.0
print(f"{bill:.2f}")
The interpreter prints: 625.00
That comes to $625.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The paralegal logged 2.5 hours at a rate of $250. How much is billed?"
},
{
"role": "assistant",
"content": " hours = 2.5\n rate = 250\n bill = hours * rate # 625.0\n print(f\"{bill:.2f}\")\nThe interpreter prints: 625.00\n\nThat comes to $625.00."
}
... | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "625.00", "printed": "625.00", "notation": null} |
nlprog_det-setting-0067610 | <|start|><|user|>
668 files go into boxes of 24. How many boxes does that take?<|eot|>
<|assistant|>
```python
import math
files = 668
per_box = 24
boxes = math.ceil(files / per_box) # 28
print(boxes)
```
(Out: 28)
It takes 28 boxes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "668 files go into boxes of 24. How many boxes does that take?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 668\nper_box = 24\nboxes = math.ceil(files / per_box) # 28\nprint(boxes)\n```\n(Out: 28)\n\nIt takes 28 boxes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "28", "printed": "28", "notation": null} |
nlprog_det-setting-0067611 | After a 40% fee is taken from a $60,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?
Each share is $12,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "12000.00", "printed": "12000.00", "notation": null} |
nlprog_det-setting-0067612 | Parking is $2 per hour with a daily maximum of $20. What do 2 hours cost?
Parking costs $4. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0067613 | A party has 21 days to respond to a motion served on December 5, 2018, with 3 days added because service was by mail. When is the response due?
A Python solution:
```python
from datetime import date, timedelta
served = date(2018, 12, 5) # datetime.date(2018, 12, 5)
response_days = 21
mail_days = 3
due = served + time... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 175 | {"gold": "2018-12-29", "printed": "2018-12-29", "notation": null} |
nlprog_det-setting-0067614 | <|start|><|system|>
Tools you may use:
[{"name": "compute", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
A claim accrued on March 26, 2012.... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"compute\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 236 | {"gold": "2014-03-26", "printed": "2014-03-26", "notation": null} |
nlprog_det-setting-0067615 | Pay is $22.40/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 41 hours?
As a program:
```python
rate = 22.4
hours = 41
regular = 40 * rate
overtime = (hours - 40) * rate * 1.5
pay = regular + overtime
print(f"{pay:.2f}")
```
# printed result: 929.60
Joelle earns $929.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "929.60", "printed": "929.60", "notation": null} |
nlprog_det-setting-0067616 | <|start|><|system|>
You are a logic tutor.<|eot|>
<|user|>
Of a $5,000 budget, $700 has been spent. What percent is that?<|eot|>
<|assistant|>
That is 14.0% of the budget.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a logic tutor."
},
{
"role": "user",
"content": "Of a $5,000 budget, $700 has been spent. What percent is that?"
},
{
"role": "assistant",
"content": "That is 14.0% of the budget."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 51 | {"gold": "14.0", "printed": "14.0", "notation": null} |
nlprog_det-setting-0067617 | Meals are $79 per day and lodging $175 per night. What is the allowance for 8 days and 7 nights?
One way, in code:
```python
days = 8
meal_rate = 79
lodging_rate = 175
nights = days - 1
total = days * meal_rate + nights * lodging_rate
print(total)
```
Out: 1857
That comes to $1,857. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "1857", "printed": "1857", "notation": null} |
nlprog_det-setting-0067618 | <|start|><|user|>
Convert 68.4 km to meters.<|eot|>
<|assistant|>
```python
km = 68.4
meters = km * 1000 # 68400.0
print(round(meters))
```
Out: 68400
That is 68,400 meters.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 68.4 km to meters."
},
{
"role": "assistant",
"content": "```python\nkm = 68.4\nmeters = km * 1000 # 68400.0\nprint(round(meters))\n```\nOut: 68400\n\nThat is 68,400 meters."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "68400", "printed": "68400", "notation": null} |
nlprog_det-setting-0067619 | A court charges $5 per request plus $0.25 per page after the first 0 pages. What does a 27-page copy cost?
The copy costs $11.75. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "11.75", "printed": "11.75", "notation": null} |
nlprog_det-setting-0067620 | A shift runs from 8:39 AM to 11:07 AM. How long is it in minutes?
Python:
```python
start = 8 * 60 + 39 # 519
end = 11 * 60 + 7 # 667
print(end - start)
```
Interpreter output: 148
It is 148 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "148", "printed": "148", "notation": null} |
nlprog_det-setting-0067621 | Zainab and Nikhil share $2,110 in the ratio 2:3. How much does Zainab get?
Python:
```python
total = 2110
parts_a = 2
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b) # 844
print(share_a)
```
# program output: 844
Zainab's share is $844. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "844", "printed": "844", "notation": null} |
nlprog_det-setting-0067622 | <|start|><|system|>
Answer in plain English.<|eot|>
<|user|>
What average speed covers 76 miles in 2 hours?<|eot|>
<|assistant|>
```python
distance = 76
hours = 2
speed = distance / hours # 38.0
print(round(speed))
```
Executing it gives: 38
The average speed is 38 mph.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer in plain English."
},
{
"role": "user",
"content": "What average speed covers 76 miles in 2 hours?"
},
{
"role": "assistant",
"content": "```python\ndistance = 76\nhours = 2\nspeed = distance / hours # 38.0\nprint(round(speed))\n```\nExecuting ... | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "38", "printed": "38", "notation": null} |
nlprog_det-setting-0067623 | A 30-mile drive at a steady 30 mph takes how many minutes?
We write it as a program:
distance = 30
speed = 30
minutes = distance / speed * 60 # 60.0
print(round(minutes))
What it prints — 60
The trip takes 60 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 70 | {"gold": "60", "printed": "60", "notation": null} |
nlprog_det-setting-0067624 | Femi was born on March 23, 1965. How old is Femi on March 19, 2028?
The program:
```python
from datetime import date
born = date(1965, 3, 23) # datetime.date(1965, 3, 23)
on = date(2028, 3, 19) # datetime.date(2028, 3, 19)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 62
print(age)
```... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 154 | {"gold": "62", "printed": "62", "notation": null} |
nlprog_det-setting-0067625 | Counting only Monday through Friday, how many business days are there after October 16, 2026 through November 13, 2026?
Script:
```python
from datetime import date, timedelta
start = date(2026, 10, 16)
end = date(2026, 11, 13)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).week... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 157 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0067627 | An attorney bills 4 hours at $350 per hour. What is the bill?
That comes to $1,400.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "1400.00", "printed": "1400.00", "notation": null} |
nlprog_det-setting-0067628 | 4 books come back 5 days late, at $0.25 a day each. What is the fine?
Let's compute it with Python.
```python
per_day = 0.25
days_late = 5
books = 4
fine = per_day * days_late * books # 5.0
print(f"{fine:.2f}")
```
Executing it gives 5.00.
$5.00 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "5.00", "printed": "5.00", "notation": null} |
nlprog_det-setting-0067629 | <|start|><|user|>
One can of paint covers 250 square feet. How many cans are needed for 1332 square feet of wall?<|eot|>
<|assistant|>
```python
import math
area = 1332
coverage = 250
cans = math.ceil(area / coverage) # 6
print(cans)
```
What it prints — 6
Buy 6 cans.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "One can of paint covers 250 square feet. How many cans are needed for 1332 square feet of wall?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 1332\ncoverage = 250\ncans = math.ceil(area / coverage) # 6\nprint(cans)\n```\nWhat it prints — 6\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0067630 | Filing fees are $90 per document. What do 5 filings cost?
We can compute it in Python.
```python
fee = 90
filings = 5
total = fee * filings # 450
print(total)
```
# printed: 450
$450 in filing fees. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "450", "printed": "450", "notation": null} |
nlprog_det-setting-0067631 | <|start|><|user|>
Someone works 20 hours at $19.62 per hour. What are the earnings?<|eot|>
<|assistant|>
```python
rate = 19.62
hours = 20
earnings = rate * hours # 392.40000000000003
print(f"{earnings:.2f}")
```
Executing it gives 392.40.
The pay is $392.40.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Someone works 20 hours at $19.62 per hour. What are the earnings?"
},
{
"role": "assistant",
"content": "```python\nrate = 19.62\nhours = 20\nearnings = rate * hours # 392.40000000000003\nprint(f\"{earnings:.2f}\")\n```\nExecuting it gives 392.40.\n\nThe pay is $39... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "392.40", "printed": "392.40", "notation": null} |
nlprog_det-setting-0067632 | With 30% off, what does a $250 filing cabinet cost?
Code:
price = 250
discount = 30 / 100 # 0.3
sale_price = price * (1 - discount) # 175.0
print(f"{sale_price:.2f}")
Out:
175.00
It costs $175.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "175.00", "printed": "175.00", "notation": null} |
nlprog_det-setting-0067633 | <|start|><|user|>
If a 135-minute hearing begins at 2:45 PM, what time does it finish?<|eot|>
<|assistant|>
start = 14 * 60 + 45
end = start + 135
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
When run, it prints: 5:00 PM
It ends at 5:00 PM.<|... | chat | [
{
"role": "user",
"content": "If a 135-minute hearing begins at 2:45 PM, what time does it finish?"
},
{
"role": "assistant",
"content": " start = 14 * 60 + 45\n end = start + 135\n hour, minute = divmod(end, 60)\n print(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else '... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "5:00 PM", "printed": "5:00 PM", "notation": null} |
nlprog_det-setting-0067634 | <|start|><|user|>
Shipping costs $5 plus $2.00 per pound. What does a 11-pound parcel cost to ship?<|eot|>
<|assistant|>
Shipping costs $27.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Shipping costs $5 plus $2.00 per pound. What does a 11-pound parcel cost to ship?"
},
{
"role": "assistant",
"content": "Shipping costs $27.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "27.00", "printed": "27.00", "notation": null} |
nlprog_det-setting-0067635 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "code_runner", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
A service costs... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"code_runner\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requ... | nlprog_det | setting | original | null | deterministic | [] | [] | 216 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0067636 | A court charges $5 per request plus $0.50 per page after the first 20 pages. What does a 65-page copy cost?
```python
pages = 65
base = 5
per_page = 0.5
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page # 27.5
print(f"{cost:.2f}")
```
Out = 27.50
The copy costs $27.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "27.50", "printed": "27.50", "notation": null} |
nlprog_det-setting-0067637 | Copies cost $5 plus $0.10 for each page beyond 10. How much for 95 pages?
Code:
```python
pages = 95
base = 5
per_page = 0.1
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 13.5
print(f"{cost:.2f}")
```
The run gives 13.50, as expected.
The copy costs $13.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "13.50", "printed": "13.50", "notation": null} |
nlprog_det-setting-0067638 | <|start|><|user|>
A claim accrued on April 6, 2017. The limitations period is 2 years. On what date does it expire?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2017, 4, 6) # datetime.date(2017, 4, 6)
years = 2
expires = accrued.replace(year=accrued.year + years) # datetime.date(2019, 4, 6)... | chat | [
{
"role": "user",
"content": "A claim accrued on April 6, 2017. The limitations period is 2 years. On what date does it expire?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrued = date(2017, 4, 6) # datetime.date(2017, 4, 6)\nyears = 2\nexpires = accrued.repla... | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "2019-04-06", "printed": "2019-04-06", "notation": null} |
nlprog_det-setting-0067639 | <|start|><|user|>
Rosa drove 281 miles for work. Mileage is reimbursed at 70 cents a mile. How much is the reimbursement?<|eot|>
<|assistant|>
```python
miles = 281
rate = 0.7
reimbursement = miles * rate # 196.7
print(f"{reimbursement:.2f}")
```
Python prints 196.70.
The reimbursement is $196.70.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Rosa drove 281 miles for work. Mileage is reimbursed at 70 cents a mile. How much is the reimbursement?"
},
{
"role": "assistant",
"content": "```python\nmiles = 281\nrate = 0.7\nreimbursement = miles * rate # 196.7\nprint(f\"{reimbursement:.2f}\")\n```\nPython pri... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "196.70", "printed": "196.70", "notation": null} |
nlprog_det-setting-0067641 | Papers were served by mail on September 26, 2022. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date?
Python, step by step:
```python
from datetime import date, timedelta
served = date(2022, 9, 26)
response_days = 21
mail_days = 3
due = served + timedelta(days=response_days + ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 150 | {"gold": "2022-10-20", "printed": "2022-10-20", "notation": null} |
nlprog_det-setting-0067642 | Counting only Monday through Friday, how many business days are there after October 28, 2021 through November 15, 2021?
Python makes this quick:
```python
from datetime import date, timedelta
start = date(2021, 10, 28)
end = date(2021, 11, 15)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timede... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 158 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0067643 | An attorney bills 2.5 hours at $180 per hour. What is the bill?
```python
hours = 2.5
rate = 180
bill = hours * rate # 450.0
print(f"{bill:.2f}")
```
# out: 450.00
The bill is $450.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "450.00", "printed": "450.00", "notation": null} |
nlprog_det-setting-0067644 | Convert -5 °C to Fahrenheit. It equals 23 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0067645 | <|start|><|user|>
Filing fees are $75 per document. What do 15 filings cost?<|eot|>
<|assistant|>
```python
fee = 75
filings = 15
total = fee * filings # 1125
print(total)
```
When run, it prints 1125, as expected.
The total fee is $1,125.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Filing fees are $75 per document. What do 15 filings cost?"
},
{
"role": "assistant",
"content": "```python\nfee = 75\nfilings = 15\ntotal = fee * filings # 1125\nprint(total)\n```\nWhen run, it prints 1125, as expected.\n\nThe total fee is $1,125."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "1125", "printed": "1125", "notation": null} |
nlprog_det-setting-0067646 | <|start|><|system|>
Functions:
[{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}, {"name": "code_runner", "description": "Runs a short Python snippet ... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\", \"end\"]}}, {\"name\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 371 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0067647 | <|start|><|user|>
Equal monthly payments repay $1,200 plus 6% simple yearly interest over 24 months. How large is a payment?<|eot|>
<|assistant|>
Each payment is $56.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Equal monthly payments repay $1,200 plus 6% simple yearly interest over 24 months. How large is a payment?"
},
{
"role": "assistant",
"content": "Each payment is $56.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "56.00", "printed": "56.00", "notation": null} |
nlprog_det-setting-0067648 | <|start|><|system|>
Answer the user's question directly.<|eot|>
<|user|>
The landlord deducts $45, $85 and $120 from a $1,500 deposit. What is returned to the tenant?<|eot|>
<|assistant|>
```python
deposit = 1500
deductions = [45, 85, 120]
refund = deposit - sum(deductions) # 1250
print(refund)
```
Run result — 1250
... | chat | [
{
"role": "system",
"content": "Answer the user's question directly."
},
{
"role": "user",
"content": "The landlord deducts $45, $85 and $120 from a $1,500 deposit. What is returned to the tenant?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 1500\ndeductions = [45, 85,... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "1250", "printed": "1250", "notation": null} |
nlprog_det-setting-0067649 | An invoice lists 3 pens at $3 each, plus 7% sales tax. What is the invoice total?
quantity = 3
unit_price = 3
subtotal = quantity * unit_price
total = subtotal * (1 + 7 / 100)
print(f"{total:.2f}")
Running it prints 9.63, as expected.
The invoice total is $9.63. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "9.63", "printed": "9.63", "notation": null} |
nlprog_det-setting-0067650 | <|start|><|system|>
Tools you may use:
[{"name": "sandbox_python", "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|>
<|user|>
Revenue is $4,500 and cos... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"sandbox_python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": ... | nlprog_det | setting | original | null | deterministic | [] | [] | 236 | {"gold": "11.1", "printed": "11.1", "notation": null} |
nlprog_det-setting-0067651 | What is a 15% tip on a $34.76 bill?
Program:
bill = 34.76
tip_rate = 15 / 100 # 0.15
tip = bill * tip_rate # 5.2139999999999995
print(f"{tip:.2f}")
Shell output — 5.21
The tip is $5.21. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "5.21", "printed": "5.21", "notation": null} |
nlprog_det-setting-0067652 | <|start|><|user|>
A lease runs for 24 months at $2,100 per month. How much rent is paid over the whole term?<|eot|>
<|assistant|>
monthly_rent = 2100
months = 24
total = monthly_rent * months # 50400
print(total)
The run gives 50400.
In total, $50,400 is paid.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lease runs for 24 months at $2,100 per month. How much rent is paid over the whole term?"
},
{
"role": "assistant",
"content": " monthly_rent = 2100\n months = 24\n total = monthly_rent * months # 50400\n print(total)\nThe run gives 50400.\n\nIn total... | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "50400", "printed": "50400", "notation": null} |
nlprog_det-setting-0067653 | <|start|><|system|>
Answer accurately and briefly.<|eot|>
<|user|>
Zoe earns $22.40 an hour and time and a half for hours over 40. What is the pay for a 50-hour week?<|eot|>
<|assistant|>
Zoe earns $1,232.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer accurately and briefly."
},
{
"role": "user",
"content": "Zoe earns $22.40 an hour and time and a half for hours over 40. What is the pay for a 50-hour week?"
},
{
"role": "assistant",
"content": "Zoe earns $1,232.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 61 | {"gold": "1232.00", "printed": "1232.00", "notation": null} |
nlprog_det-setting-0067654 | A $6,000 loan carries 10% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?
Translated to Python:
principal = 6000
annual_rate = 10 / 100 # 0.1
months = 12
interest = principal * annual_rate * months / 12 # 600.0
payment = (p... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "550.00", "printed": "550.00", "notation": null} |
nlprog_det-setting-0067655 | A meal costs $124.56. How much is a 20% tip?
As a program:
```python
bill = 124.56
tip_rate = 20 / 100
tip = bill * tip_rate
print(f"{tip:.2f}")
```
Interpreter output: 24.91
Leave $24.91. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "24.91", "printed": "24.91", "notation": null} |
nlprog_det-setting-0067656 | A storeroom has 1128 file boxes. The office uses 35 a day. How many are left after 7 days?
Python code:
```python
stock = 1128
per_day = 35
days = 7
left = stock - per_day * days
print(left)
```
stdout = 883
883 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "883", "printed": "883", "notation": null} |
nlprog_det-setting-0067657 | <|start|><|user|>
A garage charges $4 an hour, never more than $18 a day. How much for 8 hours?<|eot|>
<|assistant|>
```python
rate = 4
hours = 8
daily_max = 18
cost = min(rate * hours, daily_max) # 18
print(cost)
```
On running, it outputs 18.
The charge is $18.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A garage charges $4 an hour, never more than $18 a day. How much for 8 hours?"
},
{
"role": "assistant",
"content": "```python\nrate = 4\nhours = 8\ndaily_max = 18\ncost = min(rate * hours, daily_max) # 18\nprint(cost)\n```\nOn running, it outputs 18.\n\nThe charge... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0067658 | One can of paint covers 350 square feet. How many cans are needed for 1108 square feet of wall?
```python
import math
area = 1108
coverage = 350
cans = math.ceil(area / coverage) # 4
print(cans)
```
# program output: 4
4 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0067659 | <|start|><|user|>
Counting the first and last day, how many days are there from April 2, 2028 through April 6, 2028?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2028, 4, 2) # datetime.date(2028, 4, 2)
last = date(2028, 4, 6) # datetime.date(2028, 4, 6)
days = (last - first).days + 1 # 5
pri... | chat | [
{
"role": "user",
"content": "Counting the first and last day, how many days are there from April 2, 2028 through April 6, 2028?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2028, 4, 2) # datetime.date(2028, 4, 2)\nlast = date(2028, 4, 6) # datetime... | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0067661 | Meals are $59 per day and lodging $175 per night. What is the allowance for 5 days and 4 nights?
Here is the program.
```python
days = 5
meal_rate = 59
lodging_rate = 175
nights = days - 1 # 4
total = days * meal_rate + nights * lodging_rate # 995
print(total)
```
Shell output: 995
That comes to $995. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "995", "printed": "995", "notation": null} |
nlprog_det-setting-0067662 | <|start|><|system|>
Tools (call with JSON):
{"name": "py_exec", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}
{"name": "business_days", "description": "Cou... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n{\"name\": \"py_exec\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 365 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0067663 | Equipment costs $24,000, has a salvage value of $3,000, and a useful life of 6 years. What is the straight-line depreciation per year?
Here's the code.
cost = 24000
salvage = 3000
years = 6
per_year = (cost - salvage) / years # 3500.0
print(f"{per_year:.2f}")
On running, it outputs 3500.00.
$3,50... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "3500.00", "printed": "3500.00", "notation": null} |
nlprog_det-setting-0067664 | A 21 lb package ships at $10 base plus $1.20/lb. What is the charge?
The charge is $35.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "35.20", "printed": "35.20", "notation": null} |
nlprog_det-setting-0067665 | Fines run at $100 per day up to a maximum of $5,000. How much after 34 days?
Python code:
```python
per_day = 100
days = 34
cap = 5000
fine = min(per_day * days, cap)
print(fine)
```
(Execution result: 3400)
$3,400 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "3400", "printed": "3400", "notation": null} |
nlprog_det-setting-0067666 | <|start|><|system|>
Give the answer first.<|eot|>
<|user|>
A settlement of $7,350 is split equally among 6 parties. How much does each party receive?<|eot|>
<|assistant|>
```python
settlement = 7350
parties = 6
share = settlement // parties # 1225
print(share)
```
The script prints: 1225
Each share is $1,225.<|eot|>
... | chat | [
{
"role": "system",
"content": "Give the answer first."
},
{
"role": "user",
"content": "A settlement of $7,350 is split equally among 6 parties. How much does each party receive?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 7350\nparties = 6\nshare = settlement // ... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "1225", "printed": "1225", "notation": null} |
nlprog_det-setting-0067667 | A 8% increase is applied to $1,800 monthly rent. What is the new amount?
The computation:
rent = 1800
increase = 8 / 100
new_rent = rent * (1 + increase)
print(f"{new_rent:.2f}")
(Output: 1944.00)
It rises to $1,944.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "1944.00", "printed": "1944.00", "notation": null} |
nlprog_det-setting-0067668 | A garage charges $5 an hour, never more than $20 a day. How much for 7 hours?
Here is the program.
rate = 5
hours = 7
daily_max = 20
cost = min(rate * hours, daily_max) # 20
print(cost)
Run result = 20
The charge is $20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0067669 | <|start|><|system|>
You are a math tutor.<|eot|>
<|user|>
Goods bought on October 21, 2023 carry a 6-month warranty. When does it expire?<|eot|>
<|assistant|>
from datetime import date
start = date(2023, 10, 21)
months = 6
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.ye... | chat | [
{
"role": "system",
"content": "You are a math tutor."
},
{
"role": "user",
"content": "Goods bought on October 21, 2023 carry a 6-month warranty. When does it expire?"
},
{
"role": "assistant",
"content": " from datetime import date\n start = date(2023, 10, 21)\n months = 6... | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "2024-04-21", "printed": "2024-04-21", "notation": null} |
nlprog_det-setting-0067670 | A lawyer's fee is 30% of a $12,000 recovery. How large is the fee?
In code:
```python
recovery = 12000
rate = 30 / 100 # 0.3
fee = recovery * rate # 3600.0
print(f"{fee:.2f}")
```
Execution prints 3600.00, as expected.
The fee is $3,600.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "3600.00", "printed": "3600.00", "notation": null} |
nlprog_det-setting-0067671 | Notice was given on January 5, 2026. The notice period is 90 days. When does it run out?
The Python version:
```python
from datetime import date, timedelta
start = date(2026, 1, 5) # datetime.date(2026, 1, 5)
end = start + timedelta(days=90) # datetime.date(2026, 4, 5)
print(end.isoformat())
```
(stdout: 2026-04-05)... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "2026-04-05", "printed": "2026-04-05", "notation": null} |
nlprog_det-setting-0067672 | <|start|><|user|>
Monthly rent is $900. A tenant moves in with 10 days left in a 31-day month. What is the prorated rent?<|eot|>
<|assistant|>
```python
rent = 900
days_in_month = 31
days_occupied = 10
prorated = rent * days_occupied / days_in_month # 290.3225806451613
print(f"{prorated:.2f}")
```
Shell output: 290.32... | chat | [
{
"role": "user",
"content": "Monthly rent is $900. A tenant moves in with 10 days left in a 31-day month. What is the prorated rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 900\ndays_in_month = 31\ndays_occupied = 10\nprorated = rent * days_occupied / days_in_month # 290.32258... | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "290.32", "printed": "290.32", "notation": null} |
nlprog_det-setting-0067673 | <|start|><|user|>
A service costs $25 a month or $252 a year. How much does the yearly plan save over 12 monthly payments?<|eot|>
<|assistant|>
```python
monthly = 25
yearly = 252
savings = monthly * 12 - yearly # 48
print(savings)
```
Executing it gives: 48
$48 is saved.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A service costs $25 a month or $252 a year. How much does the yearly plan save over 12 monthly payments?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 25\nyearly = 252\nsavings = monthly * 12 - yearly # 48\nprint(savings)\n```\nExecuting it gives: 48\... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0067674 | <|start|><|user|>
179 files go into boxes of 15. How many boxes does that take?<|eot|>
<|assistant|>
```python
import math
files = 179
per_box = 15
boxes = math.ceil(files / per_box)
print(boxes)
```
stdout: 12
It takes 12 boxes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "179 files go into boxes of 15. How many boxes does that take?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 179\nper_box = 15\nboxes = math.ceil(files / per_box)\nprint(boxes)\n```\nstdout: 12\n\nIt takes 12 boxes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0067675 | <|start|><|user|>
How many whole days and leftover hours are in 70 hours?<|eot|>
<|assistant|>
```python
hours = 70
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
# console output: 2 days and 22 hours
70 hours is 2 days and 22 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many whole days and leftover hours are in 70 hours?"
},
{
"role": "assistant",
"content": "```python\nhours = 70\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\n# console output: 2 days and 22 hours\n\n70 hours is 2 days and 22 ho... | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "2 days and 22 hours", "printed": "2 days and 22 hours", "notation": null} |
nlprog_det-setting-0067676 | One can of paint covers 300 square feet. How many cans are needed for 1210 square feet of wall?
The Python version:
```python
import math
area = 1210
coverage = 300
cans = math.ceil(area / coverage) # 5
print(cans)
```
The code prints: 5
5 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0067677 | <|start|><|user|>
80 files go into boxes of 50. How many boxes does that take?<|eot|>
<|assistant|>
```python
import math
files = 80
per_box = 50
boxes = math.ceil(files / per_box) # 2
print(boxes)
```
The program outputs: 2
2 boxes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "80 files go into boxes of 50. How many boxes does that take?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 80\nper_box = 50\nboxes = math.ceil(files / per_box) # 2\nprint(boxes)\n```\nThe program outputs: 2\n\n2 boxes are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0067678 | A settlement of $2,640 is split equally among 4 parties. How much does each party receive?
Computing it:
```python
settlement = 2640
parties = 4
share = settlement // parties # 660
print(share)
```
The printout reads 660.
Each share is $660. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "660", "printed": "660", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.