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-0071860 | 10 boxes hold 24 markers each. After 6 are handed out, how many are left?
Python makes this quick:
```python
boxes = 10
per_box = 24
given_away = 6
left = boxes * per_box - given_away # 234
print(left)
```
# execution result: 234
That leaves 234 markers. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "234", "printed": "234", "notation": null} |
nlprog_det-setting-0071861 | A 75-mile drive at a steady 50 mph takes how many minutes?
Python makes this quick:
```python
distance = 75
speed = 50
minutes = distance / speed * 60 # 90.0
print(round(minutes))
```
(stdout: 90)
The trip takes 90 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "90", "printed": "90", "notation": null} |
nlprog_det-setting-0071862 | <|start|><|user|>
The paralegal logged 4 hours at a rate of $350. How much is billed?<|eot|>
<|assistant|>
```python
hours = 4
rate = 350
bill = hours * rate # 1400
print(f"{bill:.2f}")
```
Execution prints 1400.00.
The bill is $1,400.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The paralegal logged 4 hours at a rate of $350. How much is billed?"
},
{
"role": "assistant",
"content": "```python\nhours = 4\nrate = 350\nbill = hours * rate # 1400\nprint(f\"{bill:.2f}\")\n```\nExecution prints 1400.00.\n\nThe bill is $1,400.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "1400.00", "printed": "1400.00", "notation": null} |
nlprog_det-setting-0071863 | Starting from $8,000, the team spends $3,816, $1,561. What remains?
One way, in code:
```python
budget = 8000
expenses = [3816, 1561]
left = budget - sum(expenses) # 2623
print(left)
```
It prints 2623, as expected.
The remaining budget is $2,623. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "2623", "printed": "2623", "notation": null} |
nlprog_det-setting-0071864 | From 1995 to 2007, how many years is that? That is 12 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 17 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0071865 | <|start|><|user|>
An invoice lists 37 batteries at $2 each, plus 10% sales tax. What is the invoice total?<|eot|>
<|assistant|>
```python
quantity = 37
unit_price = 2
subtotal = quantity * unit_price # 74
total = subtotal * (1 + 10 / 100) # 81.4
print(f"{total:.2f}")
```
The interpreter prints 81.40.
The total with ... | chat | [
{
"role": "user",
"content": "An invoice lists 37 batteries at $2 each, plus 10% sales tax. What is the invoice total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 37\nunit_price = 2\nsubtotal = quantity * unit_price # 74\ntotal = subtotal * (1 + 10 / 100) # 81.4\nprint(f\"{tot... | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "81.40", "printed": "81.40", "notation": null} |
nlprog_det-setting-0071866 | What does $1,000 grow to in 5 years at 3% annual compounding?
The Python version:
```python
principal = 1000
rate = 3 / 100 # 0.03
years = 5
value = principal * (1 + rate) ** years # 1159.2740743000002
print(f"{value:.2f}")
```
Printed = 1159.27
The balance is $1,159.27. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "1159.27", "printed": "1159.27", "notation": null} |
nlprog_det-setting-0071867 | <|start|><|system|>
You help people work with structured data.<|eot|>
<|user|>
An office budget of $12,000 has expenses of $896, $2,610, $2,987, $2,265. How much of the budget is left?<|eot|>
<|assistant|>
```python
budget = 12000
expenses = [896, 2610, 2987, 2265]
left = budget - sum(expenses) # 3242
print(left)
```
... | chat | [
{
"role": "system",
"content": "You help people work with structured data."
},
{
"role": "user",
"content": "An office budget of $12,000 has expenses of $896, $2,610, $2,987, $2,265. How much of the budget is left?"
},
{
"role": "assistant",
"content": "```python\nbudget = 12000\nexp... | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "3242", "printed": "3242", "notation": null} |
nlprog_det-setting-0071868 | <|start|><|system|>
You are a study helper for students.<|eot|>
<|user|>
29 ink cartridges cost $24 apiece. With 8% tax added, what is the total?<|eot|>
<|assistant|>
```python
quantity = 29
unit_price = 24
subtotal = quantity * unit_price
total = subtotal * (1 + 8 / 100)
print(f"{total:.2f}")
```
(Run result: 751.68)
... | chat | [
{
"role": "system",
"content": "You are a study helper for students."
},
{
"role": "user",
"content": "29 ink cartridges cost $24 apiece. With 8% tax added, what is the total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 29\nunit_price = 24\nsubtotal = quantity * unit... | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "751.68", "printed": "751.68", "notation": null} |
nlprog_det-setting-0071869 | <|start|><|user|>
After a 25% fee is taken from a $72,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|>
<|assistant|>
award = 72000
fee = award * 25 / 100 # 18000.0
remaining = award - fee # 54000.0
per_client = remaining / 4 # 13500.0
print(f"{per_cli... | chat | [
{
"role": "user",
"content": "After a 25% fee is taken from a $72,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?"
},
{
"role": "assistant",
"content": " award = 72000\n fee = award * 25 / 100 # 18000.0\n remaining = award - fee # 54000.0\n p... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "13500.00", "printed": "13500.00", "notation": null} |
nlprog_det-setting-0071870 | 105 copies of a 19-page packet are printed at $0.08 per page. What is the cost?
Here's the code.
```python
pages = 19
copies = 105
cost_per_page = 0.08
cost = pages * copies * cost_per_page # 159.6
print(f"{cost:.2f}")
```
That prints 159.60.
Printing costs $159.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "159.60", "printed": "159.60", "notation": null} |
nlprog_det-setting-0071871 | A $6,000 loan carries 8% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?
principal = 6000
annual_rate = 8 / 100 # 0.08
months = 24
interest = principal * annual_rate * months / 12 # 960.0
payment = (principal + interest) / ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "290.00", "printed": "290.00", "notation": null} |
nlprog_det-setting-0071872 | <|start|><|user|>
Which is cheaper per unit: 6 for $14.39 (A) or 15 for $24.42 (B)?<|eot|>
<|assistant|>
```python
pack_a = 14.39 / 6 # 2.3983333333333334
pack_b = 24.42 / 15 # 1.6280000000000001
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
Python prints: B
B has the lower unit price.<|eot|>
<... | chat | [
{
"role": "user",
"content": "Which is cheaper per unit: 6 for $14.39 (A) or 15 for $24.42 (B)?"
},
{
"role": "assistant",
"content": "```python\npack_a = 14.39 / 6 # 2.3983333333333334\npack_b = 24.42 / 15 # 1.6280000000000001\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'B'\nprint(cheap... | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0071873 | With 20% off, what does a $300 backpack cost?
```python
price = 300
discount = 20 / 100
sale_price = price * (1 - discount)
print(f"{sale_price:.2f}")
```
That prints 240.00.
It costs $240.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "240.00", "printed": "240.00", "notation": null} |
nlprog_det-setting-0071874 | If a 6-year limitations period starts on September 26, 2022, when does it end?
Python makes this quick:
```python
from datetime import date
accrued = date(2022, 9, 26) # datetime.date(2022, 9, 26)
years = 6
expires = accrued.replace(year=accrued.year + years) # datetime.date(2028, 9, 26)
print(expires.isoformat())
`... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "2028-09-26", "printed": "2028-09-26", "notation": null} |
nlprog_det-setting-0071875 | Each storage box holds 15 files. How many boxes are needed for 150 files?
Coded up:
```python
import math
files = 150
per_box = 15
boxes = math.ceil(files / per_box) # 10
print(boxes)
```
Printed — 10
It takes 10 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0071876 | With 15% off, what does a $120 backpack cost?
Python, step by step:
```python
price = 120
discount = 15 / 100 # 0.15
sale_price = price * (1 - discount) # 102.0
print(f"{sale_price:.2f}")
```
The run gives 102.00.
It costs $102.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "102.00", "printed": "102.00", "notation": null} |
nlprog_det-setting-0071877 | Which is cheaper per unit: 8 for $8.89 (A) or 24 for $24.57 (B)?
Here's the code.
```python
pack_a = 8.89 / 8
pack_b = 24.57 / 24
cheaper = "A" if pack_a < pack_b else "B"
print(cheaper)
```
Shell output: B
Pack B is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0071878 | <|start|><|user|>
At an exchange rate of 1.35 CAD per USD, how many CAD is 3,377 USD?<|eot|>
<|assistant|>
```python
amount = 3377
rate = 1.35
converted = amount * rate # 4558.950000000001
print(f"{converted:.2f}")
```
Console:
4558.95
It converts to 4,558.95 CAD.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At an exchange rate of 1.35 CAD per USD, how many CAD is 3,377 USD?"
},
{
"role": "assistant",
"content": "```python\namount = 3377\nrate = 1.35\nconverted = amount * rate # 4558.950000000001\nprint(f\"{converted:.2f}\")\n```\nConsole:\n4558.95\n\nIt converts to 4,... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "4558.95", "printed": "4558.95", "notation": null} |
nlprog_det-setting-0071879 | <|start|><|user|>
Filing fees are $25 per document. What do 10 filings cost?<|eot|>
<|assistant|>
```python
fee = 25
filings = 10
total = fee * filings # 250
print(total)
```
Printed result: 250
The filings cost $250 in all.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Filing fees are $25 per document. What do 10 filings cost?"
},
{
"role": "assistant",
"content": "```python\nfee = 25\nfilings = 10\ntotal = fee * filings # 250\nprint(total)\n```\nPrinted result: 250\n\nThe filings cost $250 in all."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "250", "printed": "250", "notation": null} |
nlprog_det-setting-0071880 | Amir earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 51-hour week?
```python
rate = 18.5
hours = 51
regular = 40 * rate # 740.0
overtime = (hours - 40) * rate * 1.5 # 305.25
pay = regular + overtime # 1045.25
print(f"{pay:.2f}")
```
Running this gives 1045.25.
Amir earns $1,045.25... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "1045.25", "printed": "1045.25", "notation": null} |
nlprog_det-setting-0071881 | Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 55 hours?
A short script:
```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}")
```
Out — 1250.00
Lena earns $1,250.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "1250.00", "printed": "1250.00", "notation": null} |
nlprog_det-setting-0071882 | 6 claimants share a $18,000 settlement equally. What is each share?
One way, in code:
```python
settlement = 18000
parties = 6
share = settlement // parties # 3000
print(share)
```
This prints: 3000
Each party receives $3,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "3000", "printed": "3000", "notation": null} |
nlprog_det-setting-0071883 | Ivan lends $2,500 at 6% simple interest per year for 6 years. How much interest is earned?
Written as code:
```python
principal = 2500
rate = 6 / 100 # 0.06
years = 6
interest = principal * rate * years # 900.0
print(f"{interest:.2f}")
```
Output:
900.00
The interest is $900.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "900.00", "printed": "900.00", "notation": null} |
nlprog_det-setting-0071884 | <|start|><|user|>
Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 54 hours?<|eot|>
<|assistant|>
```python
rate = 20.0
hours = 54
regular = 40 * rate # 800.0
overtime = (hours - 40) * rate * 1.5 # 420.0
pay = regular + overtime # 1220.0
print(f"{pay:.2f}")
```
On running, it ou... | chat | [
{
"role": "user",
"content": "Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 54 hours?"
},
{
"role": "assistant",
"content": "```python\nrate = 20.0\nhours = 54\nregular = 40 * rate # 800.0\novertime = (hours - 40) * rate * 1.5 # 420.0\npay = regular + o... | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "1220.00", "printed": "1220.00", "notation": null} |
nlprog_det-setting-0071885 | 8 claimants share a $2,640 settlement equally. What is each share?
```python
settlement = 2640
parties = 8
share = settlement // parties # 330
print(share)
```
It outputs: 330
Each party receives $330. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "330", "printed": "330", "notation": null} |
nlprog_det-setting-0071886 | Of a $8,000 budget, $2,800 has been spent. What percent is that?
The program:
budget = 8000
spent = 2800
percent = spent / budget * 100 # 35.0
print(round(percent, 1))
stdout = 35.0
35.0% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "35.0", "printed": "35.0", "notation": null} |
nlprog_det-setting-0071887 | <|start|><|system|>
You may call the tools below.
{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_unit", "to_unit"]}}
{"... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\": \"str... | nlprog_det | setting | original | null | deterministic | [] | [] | 321 | {"gold": "2100", "printed": "2100", "notation": null} |
nlprog_det-setting-0071888 | A 8% increase is applied to $1,100 monthly rent. What is the new amount?
One way, in code:
```python
rent = 1100
increase = 8 / 100 # 0.08
new_rent = rent * (1 + increase) # 1188.0
print(f"{new_rent:.2f}")
```
Output of the run — 1188.00
The new rent is $1,188.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "1188.00", "printed": "1188.00", "notation": null} |
nlprog_det-setting-0071889 | <|start|><|system|>
You help paralegals with routine tasks.<|eot|>
<|user|>
Water costs $15 a month plus $4.20 for each 1,000 gallons over 0,000. What is owed for 10,000 gallons?<|eot|>
<|assistant|>
$57.00 is owed.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help paralegals with routine tasks."
},
{
"role": "user",
"content": "Water costs $15 a month plus $4.20 for each 1,000 gallons over 0,000. What is owed for 10,000 gallons?"
},
{
"role": "assistant",
"content": "$57.00 is owed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 65 | {"gold": "57.00", "printed": "57.00", "notation": null} |
nlprog_det-setting-0071890 | Shipping costs $5 plus $2.50 per pound. What does a 14-pound parcel cost to ship?
Code:
```python
base = 5
per_pound = 2.5
weight = 14
cost = base + per_pound * weight # 40.0
print(f"{cost:.2f}")
```
Out = 40.00
Shipping costs $40.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "40.00", "printed": "40.00", "notation": null} |
nlprog_det-setting-0071891 | <|start|><|system|>
Write short, precise answers.<|eot|>
<|user|>
38 copies of a 39-page packet are printed at $0.05 per page. What is the cost?<|eot|>
<|assistant|>
```python
pages = 39
copies = 38
cost_per_page = 0.05
cost = pages * copies * cost_per_page # 74.10000000000001
print(f"{cost:.2f}")
```
# out: 74.10
Th... | chat | [
{
"role": "system",
"content": "Write short, precise answers."
},
{
"role": "user",
"content": "38 copies of a 39-page packet are printed at $0.05 per page. What is the cost?"
},
{
"role": "assistant",
"content": "```python\npages = 39\ncopies = 38\ncost_per_page = 0.05\ncost = pages... | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "74.10", "printed": "74.10", "notation": null} |
nlprog_det-setting-0071892 | <|start|><|user|>
A hall has 26 rows of 22 seats, and 25 seats are empty. How many people are seated?<|eot|>
<|assistant|>
```python
rows = 26
per_row = 22
empty = 25
seated = rows * per_row - empty # 547
print(seated)
```
stdout:
547
547 seats are taken.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hall has 26 rows of 22 seats, and 25 seats are empty. How many people are seated?"
},
{
"role": "assistant",
"content": "```python\nrows = 26\nper_row = 22\nempty = 25\nseated = rows * per_row - empty # 547\nprint(seated)\n```\nstdout:\n547\n\n547 seats are taken... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "547", "printed": "547", "notation": null} |
nlprog_det-setting-0071893 | Goods bought on November 23, 2027 carry a 24-month warranty. When does it expire?
```python
from datetime import date
start = date(2027, 11, 23)
months = 24
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
Running this gives... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "2029-11-23", "printed": "2029-11-23", "notation": null} |
nlprog_det-setting-0071894 | <|start|><|user|>
Count the days between February 14, 2023 and January 10, 2024.<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2023, 2, 14) # datetime.date(2023, 2, 14)
second = date(2024, 1, 10) # datetime.date(2024, 1, 10)
print((second - first).days)
```
Program output — 330
It is 330 days... | chat | [
{
"role": "user",
"content": "Count the days between February 14, 2023 and January 10, 2024."
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2023, 2, 14) # datetime.date(2023, 2, 14)\nsecond = date(2024, 1, 10) # datetime.date(2024, 1, 10)\nprint((seco... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "330", "printed": "330", "notation": null} |
nlprog_det-setting-0071895 | An invoice lists 18 ink cartridges at $3 each, plus 5% sales tax. What is the invoice total?
quantity = 18
unit_price = 3
subtotal = quantity * unit_price # 54
total = subtotal * (1 + 5 / 100) # 56.7
print(f"{total:.2f}")
Executed, it shows 56.70.
The invoice total is $56.70. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "56.70", "printed": "56.70", "notation": null} |
nlprog_det-setting-0071896 | A settlement of $18,000 is split equally among 6 parties. How much does each party receive?
Here is a short program for it.
```python
settlement = 18000
parties = 6
share = settlement // parties # 3000
print(share)
```
Execution prints 3000.
Each party receives $3,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "3000", "printed": "3000", "notation": null} |
nlprog_det-setting-0071897 | A claim accrued on July 28, 2024. The limitations period is 5 years. On what date does it expire?
The period expires on July 28, 2029. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "2029-07-28", "printed": "2029-07-28", "notation": null} |
nlprog_det-setting-0071898 | A water bill is $18 plus $5.10 per thousand gallons beyond the first 0 thousand. What is the bill for 16 thousand gallons?
Let the code do the arithmetic:
```python
base = 18
rate = 5.1
used = 16
free = 0
bill = base + rate * max(0, used - free) # 99.6
print(f"{bill:.2f}")
```
Execution result — 99.60
The bill is $9... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "99.60", "printed": "99.60", "notation": null} |
nlprog_det-setting-0071899 | <|start|><|user|>
A trial runs from January 23, 2020 to February 13, 2020, counting both days. How many calendar days is that?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2020, 1, 23) # datetime.date(2020, 1, 23)
last = date(2020, 2, 13) # datetime.date(2020, 2, 13)
days = (last - first).day... | chat | [
{
"role": "user",
"content": "A trial runs from January 23, 2020 to February 13, 2020, counting both days. How many calendar days is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2020, 1, 23) # datetime.date(2020, 1, 23)\nlast = date(2020, 2, 13... | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0071900 | Counting only Monday through Friday, how many business days are there after December 14, 2026 through January 23, 2027?
Translated to Python:
```python
from datetime import date, timedelta
start = date(2026, 12, 14)
end = date(2027, 1, 23)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 167 | {"gold": "29", "printed": "29", "notation": null} |
nlprog_det-setting-0071902 | <|start|><|user|>
A meeting starts at 12:00 PM and lasts 105 minutes. When does it end?<|eot|>
<|assistant|>
```python
start = 12 * 60 + 0
end = start + 105
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
The program outputs: 1:45 PM
The meeting finishes at... | chat | [
{
"role": "user",
"content": "A meeting starts at 12:00 PM and lasts 105 minutes. When does it end?"
},
{
"role": "assistant",
"content": "```python\nstart = 12 * 60 + 0\nend = start + 105\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 | [] | [] | 130 | {"gold": "1:45 PM", "printed": "1:45 PM", "notation": null} |
nlprog_det-setting-0071903 | <|start|><|user|>
Starting with 1728 lanyards and using 36 per day, how many remain after 7 days?<|eot|>
<|assistant|>
```python
stock = 1728
per_day = 36
days = 7
left = stock - per_day * days # 1476
print(left)
```
Shell output: 1476
1476 remain.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting with 1728 lanyards and using 36 per day, how many remain after 7 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 1728\nper_day = 36\ndays = 7\nleft = stock - per_day * days # 1476\nprint(left)\n```\nShell output: 1476\n\n1476 remain."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "1476", "printed": "1476", "notation": null} |
nlprog_det-setting-0071904 | A garage charges $4 an hour, never more than $18 a day. How much for 10 hours?
Parking costs $18. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0071905 | <|start|><|user|>
If a 6-year limitations period starts on September 8, 2022, when does it end?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2022, 9, 8) # datetime.date(2022, 9, 8)
years = 6
expires = accrued.replace(year=accrued.year + years) # datetime.date(2028, 9, 8)
print(expires.isofo... | chat | [
{
"role": "user",
"content": "If a 6-year limitations period starts on September 8, 2022, when does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrued = date(2022, 9, 8) # datetime.date(2022, 9, 8)\nyears = 6\nexpires = accrued.replace(year=accrued.year... | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "2028-09-08", "printed": "2028-09-08", "notation": null} |
nlprog_det-setting-0071906 | 606 files go into boxes of 20. How many boxes does that take?
One way, in code:
```python
import math
files = 606
per_box = 20
boxes = math.ceil(files / per_box) # 31
print(boxes)
```
Printed — 31
It takes 31 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "31", "printed": "31", "notation": null} |
nlprog_det-setting-0071907 | <|start|><|user|>
Convert 3 h 21 min (the length of a meeting) to minutes.<|eot|>
<|assistant|>
That is 201 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 3 h 21 min (the length of a meeting) to minutes."
},
{
"role": "assistant",
"content": "That is 201 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "201", "printed": "201", "notation": null} |
nlprog_det-setting-0071908 | <|start|><|system|>
You have access to these functions:
[{"name": "sandbox_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "lookup_statute... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"sandbox_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, ... | nlprog_det | setting | original | null | deterministic | [] | [] | 314 | {"gold": "5470.05", "printed": "5470.05", "notation": null} |
nlprog_det-setting-0071909 | A hearing is set for July 14, 2024. What day of the week is that?
Python, step by step:
```python
from datetime import date
hearing = date(2024, 7, 14) # datetime.date(2024, 7, 14)
print(hearing.strftime("%A"))
```
Printed result — Sunday
July 14, 2024 is a Sunday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "Sunday", "printed": "Sunday", "notation": null} |
nlprog_det-setting-0071910 | <|start|><|user|>
With 20 rows of 8 chairs and 37 empty chairs, how many chairs are taken?<|eot|>
<|assistant|>
```python
rows = 20
per_row = 8
empty = 37
seated = rows * per_row - empty # 123
print(seated)
```
Out = 123
123 people are seated.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 20 rows of 8 chairs and 37 empty chairs, how many chairs are taken?"
},
{
"role": "assistant",
"content": "```python\nrows = 20\nper_row = 8\nempty = 37\nseated = rows * per_row - empty # 123\nprint(seated)\n```\nOut = 123\n\n123 people are seated."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "123", "printed": "123", "notation": null} |
nlprog_det-setting-0071911 | Filing fees are $90 per document. What do 13 filings cost?
We can compute it in Python.
```python
fee = 90
filings = 13
total = fee * filings
print(total)
```
Program output — 1170
The filings cost $1,170 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "1170", "printed": "1170", "notation": null} |
nlprog_det-setting-0071912 | <|start|><|user|>
How many minutes pass from 10:35 AM to 1:22 PM on the same day?<|eot|>
<|assistant|>
```python
start = 10 * 60 + 35 # 635
end = 13 * 60 + 22 # 802
print(end - start)
```
Run result: 167
167 minutes pass.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many minutes pass from 10:35 AM to 1:22 PM on the same day?"
},
{
"role": "assistant",
"content": "```python\nstart = 10 * 60 + 35 # 635\nend = 13 * 60 + 22 # 802\nprint(end - start)\n```\nRun result: 167\n\n167 minutes pass."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "167", "printed": "167", "notation": null} |
nlprog_det-setting-0071913 | Fixed costs are $4,000. Each unit sells for $15 and costs $5 to make. How many units must be sold to break even?
Written as code:
import math
fixed = 4000
price = 15
variable = 5
units = math.ceil(fixed / (price - variable)) # 400
print(units)
Printed:
400
400 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "400", "printed": "400", "notation": null} |
nlprog_det-setting-0071914 | From 2016 to 2056, how many years is that?
In code:
```python
start_year = 2016
end_year = 2056
print(end_year - start_year)
```
(Result: 40)
40 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 65 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0071915 | Equipment costs $24,000, has a salvage value of $6,000, and a useful life of 8 years. What is the straight-line depreciation per year?
```python
cost = 24000
salvage = 6000
years = 8
per_year = (cost - salvage) / years # 2250.0
print(f"{per_year:.2f}")
```
Console output — 2250.00
Depreciation is $2,250.00 per year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "2250.00", "printed": "2250.00", "notation": null} |
nlprog_det-setting-0071916 | <|start|><|user|>
A 80-mile drive at a steady 40 mph takes how many minutes?<|eot|>
<|assistant|>
```python
distance = 80
speed = 40
minutes = distance / speed * 60 # 120.0
print(round(minutes))
```
Printed result: 120
The trip takes 120 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 80-mile drive at a steady 40 mph takes how many minutes?"
},
{
"role": "assistant",
"content": "```python\ndistance = 80\nspeed = 40\nminutes = distance / speed * 60 # 120.0\nprint(round(minutes))\n```\nPrinted result: 120\n\nThe trip takes 120 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "120", "printed": "120", "notation": null} |
nlprog_det-setting-0071917 | Buying 2 badges at $14 each, 5 desk lamps at $23 each, someone hands over $150. What change comes back?
A short script:
```python
items = [(2, 14), (5, 23)]
total = sum(q * p for q, p in items) # 143
paid = 150
change = paid - total # 7
print(change)
```
Output of the run: 7
The change is $7. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0071918 | <|start|><|system|>
You can call tools. Available tools:
{"name": "calc", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|user|>
Starting ... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"calc\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}},... | nlprog_det | setting | original | null | deterministic | [] | [] | 212 | {"gold": "1433", "printed": "1433", "notation": null} |
nlprog_det-setting-0071919 | <|start|><|system|>
Functions:
[{"name": "calc", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
$10,000 is invested at 3% compounded yearly. W... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"calc\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}]"
},
... | nlprog_det | setting | original | null | deterministic | [] | [] | 226 | {"gold": "11592.74", "printed": "11592.74", "notation": null} |
nlprog_det-setting-0071920 | A trial runs from June 13, 2019 to July 5, 2019, counting both days. How many calendar days is that?
Python:
from datetime import date
first = date(2019, 6, 13) # datetime.date(2019, 6, 13)
last = date(2019, 7, 5) # datetime.date(2019, 7, 5)
days = (last - first).days + 1 # 23
print(days)
Out = ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0071921 | Abel earns a 4% commission on $44,801 of sales. What is the commission?
Let the code do the arithmetic:
```python
sales = 44801
rate = 4 / 100 # 0.04
commission = sales * rate # 1792.04
print(f"{commission:.2f}")
```
The interpreter prints 1792.04.
The commission is $1,792.04. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "1792.04", "printed": "1792.04", "notation": null} |
nlprog_det-setting-0071922 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "calc", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "search_cases", "description"... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"calc\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\":... | nlprog_det | setting | original | null | deterministic | [] | [] | 360 | {"gold": "627", "printed": "627", "notation": null} |
nlprog_det-setting-0071923 | <|start|><|user|>
The paralegal logged 7 hours at a rate of $225. How much is billed?<|eot|>
<|assistant|>
```python
hours = 7
rate = 225
bill = hours * rate # 1575
print(f"{bill:.2f}")
```
# execution result: 1575.00
The bill is $1,575.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The paralegal logged 7 hours at a rate of $225. How much is billed?"
},
{
"role": "assistant",
"content": "```python\nhours = 7\nrate = 225\nbill = hours * rate # 1575\nprint(f\"{bill:.2f}\")\n```\n# execution result: 1575.00\n\nThe bill is $1,575.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "1575.00", "printed": "1575.00", "notation": null} |
nlprog_det-setting-0071924 | <|start|><|user|>
A storeroom has 1313 chairs. The office uses 14 a day. How many are left after 6 days?<|eot|>
<|assistant|>
stock = 1313
per_day = 14
days = 6
left = stock - per_day * days # 1229
print(left)
# stdout: 1229
1229 remain.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A storeroom has 1313 chairs. The office uses 14 a day. How many are left after 6 days?"
},
{
"role": "assistant",
"content": " stock = 1313\n per_day = 14\n days = 6\n left = stock - per_day * days # 1229\n print(left)\n# stdout: 1229\n\n1229 remain.... | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "1229", "printed": "1229", "notation": null} |
nlprog_det-setting-0071925 | <|start|><|system|>
Avoid unnecessary detail.<|eot|>
<|user|>
A 5% increase is applied to $2,200 monthly rent. What is the new amount?<|eot|>
<|assistant|>
```python
rent = 2200
increase = 5 / 100 # 0.05
new_rent = rent * (1 + increase) # 2310.0
print(f"{new_rent:.2f}")
```
This prints 2310.00.
It rises to $2,310.00... | chat | [
{
"role": "system",
"content": "Avoid unnecessary detail."
},
{
"role": "user",
"content": "A 5% increase is applied to $2,200 monthly rent. What is the new amount?"
},
{
"role": "assistant",
"content": "```python\nrent = 2200\nincrease = 5 / 100 # 0.05\nnew_rent = rent * (1 + incre... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "2310.00", "printed": "2310.00", "notation": null} |
nlprog_det-setting-0071926 | Goods bought on September 16, 2021 carry a 36-month warranty. When does it expire?
Python does the arithmetic:
```python
from datetime import date
start = date(2021, 9, 16)
months = 36
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoform... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "2024-09-16", "printed": "2024-09-16", "notation": null} |
nlprog_det-setting-0071927 | Monthly: $15. Annual: $162. What is saved per year by paying annually?
As a program:
```python
monthly = 15
yearly = 162
savings = monthly * 12 - yearly
print(savings)
```
Running this gives 18.
$18 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0071928 | Each of Carmen's swims burns 400 calories. How many calories over 3 swims?
We write it as a program:
```python
per_session = 400
sessions = 3
total = per_session * sessions # 1200
print(total)
```
Out — 1200
That burns 1200 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "1200", "printed": "1200", "notation": null} |
nlprog_det-setting-0071929 | <|start|><|user|>
What percentage of $2,000 is $400?<|eot|>
<|assistant|>
budget = 2000
spent = 400
percent = spent / budget * 100 # 20.0
print(round(percent, 1))
# printed result: 20.0
That is 20.0% of the budget.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What percentage of $2,000 is $400?"
},
{
"role": "assistant",
"content": " budget = 2000\n spent = 400\n percent = spent / budget * 100 # 20.0\n print(round(percent, 1))\n# printed result: 20.0\n\nThat is 20.0% of the budget."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 70 | {"gold": "20.0", "printed": "20.0", "notation": null} |
nlprog_det-setting-0071930 | Equal monthly payments repay $3,600 plus 6% simple yearly interest over 12 months. How large is a payment?
Here's the code.
principal = 3600
annual_rate = 6 / 100 # 0.06
months = 12
interest = principal * annual_rate * months / 12 # 216.0
payment = (principal + interest) / months # 318.0
pri... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "318.00", "printed": "318.00", "notation": null} |
nlprog_det-setting-0071931 | Convert 43.8 km to meters.
We can compute it in Python.
```python
km = 43.8
meters = km * 1000 # 43800.0
print(round(meters))
```
Result:
43800
That is 43,800 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "43800", "printed": "43800", "notation": null} |
nlprog_det-setting-0071932 | <|start|><|user|>
Kaito was born on July 9, 1985. How old is Kaito on August 19, 2025?<|eot|>
<|assistant|>
Kaito is 40.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Kaito was born on July 9, 1985. How old is Kaito on August 19, 2025?"
},
{
"role": "assistant",
"content": "Kaito is 40."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0071933 | How many weekdays (Monday to Friday) fall after October 25, 2020 up to and including November 13, 2020?
Written as code:
```python
from datetime import date, timedelta
start = date(2020, 10, 25)
end = date(2020, 11, 13)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekday() <... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 155 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0071934 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}
{"name": "... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"stri... | nlprog_det | setting | original | null | deterministic | [] | [] | 292 | {"gold": "72.5", "printed": "72.5", "notation": null} |
nlprog_det-setting-0071935 | How much sales tax is charged on a $11.49 purchase at 8%?
```python
price = 11.49
tax_rate = 8 / 100 # 0.08
tax = price * tax_rate # 0.9192
print(f"{tax:.2f}")
```
Printed result — 0.92
$0.92 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "0.92", "printed": "0.92", "notation": null} |
nlprog_det-setting-0071936 | <|start|><|user|>
A pack of 25 mugs sells for $1125. What does each cost?<|eot|>
<|assistant|>
```python
total = 1125
count = 25
per_item = total // count # 45
print(per_item)
```
It prints 45, as expected.
Each one costs $45.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A pack of 25 mugs sells for $1125. What does each cost?"
},
{
"role": "assistant",
"content": "```python\ntotal = 1125\ncount = 25\nper_item = total // count # 45\nprint(per_item)\n```\nIt prints 45, as expected.\n\nEach one costs $45."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "45", "printed": "45", "notation": null} |
nlprog_det-setting-0071937 | <|start|><|system|>
Write short, precise answers.<|eot|>
<|user|>
A meal costs $72.20. How much is a 18% tip?<|eot|>
<|assistant|>
```python
bill = 72.2
tip_rate = 18 / 100 # 0.18
tip = bill * tip_rate # 12.996
print(f"{tip:.2f}")
```
# printed: 13.00
The tip is $13.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Write short, precise answers."
},
{
"role": "user",
"content": "A meal costs $72.20. How much is a 18% tip?"
},
{
"role": "assistant",
"content": "```python\nbill = 72.2\ntip_rate = 18 / 100 # 0.18\ntip = bill * tip_rate # 12.996\nprint(f\"{tip:.2f}\... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "13.00", "printed": "13.00", "notation": null} |
nlprog_det-setting-0071938 | A count moves from 500 to 425. By what percent did it change (use a minus sign for a drop)?
Coded up:
```python
old = 500
new = 425
change = (new - old) / old * 100 # -15.0
print(round(change))
```
stdout — -15
It changed by -15%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "-15", "printed": "-15", "notation": null} |
nlprog_det-setting-0071939 | 2 friends split a $120 bill plus a 18% tip evenly. How much does each pay?
Computing it:
```python
bill = 120
tip_rate = 18 / 100 # 0.18
people = 2
each = bill * (1 + tip_rate) / people # 70.8
print(f"{each:.2f}")
```
Run result = 70.80
Each person pays $70.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "70.80", "printed": "70.80", "notation": null} |
nlprog_det-setting-0071940 | <|start|><|user|>
With $12,500 in costs and $16,500 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|>
<|assistant|>
```python
revenue = 16500
costs = 12500
profit = revenue - costs
margin = profit / revenue * 100
print(round(margin, 1))
```
The printout reads: 24.2
The margin is 24.2%.<|eot|>... | chat | [
{
"role": "user",
"content": "With $12,500 in costs and $16,500 in revenue, what percent of revenue is profit? Round to one decimal."
},
{
"role": "assistant",
"content": "```python\nrevenue = 16500\ncosts = 12500\nprofit = revenue - costs\nmargin = profit / revenue * 100\nprint(round(margin, 1)... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "24.2", "printed": "24.2", "notation": null} |
nlprog_det-setting-0071941 | One can of paint covers 300 square feet. How many cans are needed for 1010 square feet of wall?
4 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0071942 | <|start|><|system|>
Respond clearly and to the point.<|eot|>
<|user|>
A service costs $15 a month or $132 a year. How much does the yearly plan save over 12 monthly payments?<|eot|>
<|assistant|>
```python
monthly = 15
yearly = 132
savings = monthly * 12 - yearly # 48
print(savings)
```
It prints: 48
The annual plan ... | chat | [
{
"role": "system",
"content": "Respond clearly and to the point."
},
{
"role": "user",
"content": "A service costs $15 a month or $132 a year. How much does the yearly plan save over 12 monthly payments?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 15\nyearly = 132\ns... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0071943 | Equal monthly payments repay $9,000 plus 8% simple yearly interest over 36 months. How large is a payment?
Translated to Python:
```python
principal = 9000
annual_rate = 8 / 100 # 0.08
months = 36
interest = principal * annual_rate * months / 12 # 2160.0
payment = (principal + interest) / months # 310.0
print(f"{pa... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "310.00", "printed": "310.00", "notation": null} |
nlprog_det-setting-0071944 | <|start|><|user|>
A meal costs $186.99. How much is a 22% tip?<|eot|>
<|assistant|>
```python
bill = 186.99
tip_rate = 22 / 100 # 0.22
tip = bill * tip_rate # 41.137800000000006
print(f"{tip:.2f}")
```
# program output: 41.14
The tip is $41.14.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A meal costs $186.99. How much is a 22% tip?"
},
{
"role": "assistant",
"content": "```python\nbill = 186.99\ntip_rate = 22 / 100 # 0.22\ntip = bill * tip_rate # 41.137800000000006\nprint(f\"{tip:.2f}\")\n```\n# program output: 41.14\n\nThe tip is $41.14."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "41.14", "printed": "41.14", "notation": null} |
nlprog_det-setting-0071945 | <|start|><|user|>
A $1,200 loan carries 5% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|>
<|assistant|>
```python
principal = 1200
annual_rate = 5 / 100 # 0.05
months = 12
interest = principal * annual_rate * months / 12 # 60.0
payment ... | chat | [
{
"role": "user",
"content": "A $1,200 loan carries 5% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 1200\nannual_rate = 5 / 100 # 0.05\nmonths = 12\ninteres... | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "105.00", "printed": "105.00", "notation": null} |
nlprog_det-setting-0071946 | A lawyer's fee is 33% of a $12,000 recovery. How large is the fee?
Python does the arithmetic:
recovery = 12000
rate = 33 / 100 # 0.33
fee = recovery * rate # 3960.0
print(f"{fee:.2f}")
Run it and it prints: 3960.00
The lawyer's fee comes to $3,960.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "3960.00", "printed": "3960.00", "notation": null} |
nlprog_det-setting-0071947 | If a 3-year limitations period starts on October 21, 2023, when does it end?
The program:
```python
from datetime import date
accrued = date(2023, 10, 21) # datetime.date(2023, 10, 21)
years = 3
expires = accrued.replace(year=accrued.year + years) # datetime.date(2026, 10, 21)
print(expires.isoformat())
```
On runni... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "2026-10-21", "printed": "2026-10-21", "notation": null} |
nlprog_det-setting-0071948 | How many of 240 votes make 75% (round up)?
We write it as a program:
```python
import math
voters = 240
needed = math.ceil(voters * 75 / 100) # 180
print(needed)
```
Run it and it prints 180.
At least 180 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "180", "printed": "180", "notation": null} |
nlprog_det-setting-0071949 | <|start|><|user|>
A $1,500 security deposit has deductions of $60. How much is refunded?<|eot|>
<|assistant|>
```python
deposit = 1500
deductions = [60]
refund = deposit - sum(deductions) # 1440
print(refund)
```
Printed = 1440
The refund is $1,440.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A $1,500 security deposit has deductions of $60. How much is refunded?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 1500\ndeductions = [60]\nrefund = deposit - sum(deductions) # 1440\nprint(refund)\n```\nPrinted = 1440\n\nThe refund is $1,440."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "1440", "printed": "1440", "notation": null} |
nlprog_det-setting-0071950 | Each storage box holds 15 files. How many boxes are needed for 109 files?
Let the code do the arithmetic:
```python
import math
files = 109
per_box = 15
boxes = math.ceil(files / per_box) # 8
print(boxes)
```
Python prints 8, as expected.
It takes 8 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0071951 | What percentage of $10,000 is $2,200?
Python:
budget = 10000
spent = 2200
percent = spent / budget * 100 # 22.0
print(round(percent, 1))
(Execution result: 22.0)
22.0% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "22.0", "printed": "22.0", "notation": null} |
nlprog_det-setting-0071952 | <|start|><|system|>
You may call the tools below.
{"name": "interpreter", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|>
<|user|>
Abel earns $25.00 an hour and ... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n{\"name\": \"interpreter\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"sou... | nlprog_det | setting | original | null | deterministic | [] | [] | 245 | {"gold": "1262.50", "printed": "1262.50", "notation": null} |
nlprog_det-setting-0071953 | <|start|><|user|>
Equipment costs $24,000, has a salvage value of $0, and a useful life of 6 years. What is the straight-line depreciation per year?<|eot|>
<|assistant|>
```python
cost = 24000
salvage = 0
years = 6
per_year = (cost - salvage) / years # 4000.0
print(f"{per_year:.2f}")
```
Shell output: 4000.00
$4,000.... | chat | [
{
"role": "user",
"content": "Equipment costs $24,000, has a salvage value of $0, and a useful life of 6 years. What is the straight-line depreciation per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 24000\nsalvage = 0\nyears = 6\nper_year = (cost - salvage) / years # 4000.0\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "4000.00", "printed": "4000.00", "notation": null} |
nlprog_det-setting-0071954 | A library charges $0.10 per book per day late. What is the fine for 1 books that are 28 days late?
$2.80 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "2.80", "printed": "2.80", "notation": null} |
nlprog_det-setting-0071955 | <|start|><|user|>
Of a $4,000 budget, $1,900 has been spent. What percent is that?<|eot|>
<|assistant|>
```python
budget = 4000
spent = 1900
percent = spent / budget * 100 # 47.5
print(round(percent, 1))
```
Shell output — 47.5
That is 47.5% of the budget.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Of a $4,000 budget, $1,900 has been spent. What percent is that?"
},
{
"role": "assistant",
"content": "```python\nbudget = 4000\nspent = 1900\npercent = spent / budget * 100 # 47.5\nprint(round(percent, 1))\n```\nShell output — 47.5\n\nThat is 47.5% of the budget.... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "47.5", "printed": "47.5", "notation": null} |
nlprog_det-setting-0071956 | Split $917 between Omar and Uma in the ratio 3 to 4. What is Omar's share?
Computation in Python:
total = 917
parts_a = 3
parts_b = 4
share_a = total * parts_a // (parts_a + parts_b)
print(share_a)
Shell output — 393
Omar's share is $393. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "393", "printed": "393", "notation": null} |
nlprog_det-setting-0071957 | <|start|><|user|>
Monthly rent is $1,500. A tenant moves in with 13 days left in a 30-day month. What is the prorated rent?<|eot|>
<|assistant|>
rent = 1500
days_in_month = 30
days_occupied = 13
prorated = rent * days_occupied / days_in_month
print(f"{prorated:.2f}")
The run gives 650.00, as expecte... | chat | [
{
"role": "user",
"content": "Monthly rent is $1,500. A tenant moves in with 13 days left in a 30-day month. What is the prorated rent?"
},
{
"role": "assistant",
"content": " rent = 1500\n days_in_month = 30\n days_occupied = 13\n prorated = rent * days_occupied / days_in_month\n ... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "650.00", "printed": "650.00", "notation": null} |
nlprog_det-setting-0071958 | A recipe for 8 people uses 150 grams of lentils. How many grams are needed for 4 people?
The Python version:
```python
grams = 150
serves = 8
needed_for = 4
scaled = grams * needed_for // serves # 75
print(scaled)
```
The interpreter prints 75.
75 grams of lentils are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "75", "printed": "75", "notation": null} |
nlprog_det-setting-0071959 | <|start|><|system|>
You are a teaching assistant.<|eot|>
<|user|>
A recipe for 4 people uses 240 grams of oats. How many grams are needed for 12 people?<|eot|>
<|assistant|>
Use 720 g of oats.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a teaching assistant."
},
{
"role": "user",
"content": "A recipe for 4 people uses 240 grams of oats. How many grams are needed for 12 people?"
},
{
"role": "assistant",
"content": "Use 720 g of oats."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 53 | {"gold": "720", "printed": "720", "notation": null} |
nlprog_det-setting-0071960 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "calc", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
Find the mean o... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"calc\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requ... | nlprog_det | setting | original | null | deterministic | [] | [] | 221 | {"gold": "75", "printed": "75", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.