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-0080330 | A 20 × 7 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?
The computation:
```python
import math
length = 20
width = 7
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 140
print(tiles)
```
# printed result: 140
140 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "140", "printed": "140", "notation": null} |
nlprog_det-setting-0080331 | A meeting lasted 5 hours and 26 minutes. How many minutes is that?
The program:
```python
hours = 5
minutes = 26
total_minutes = hours * 60 + minutes # 326
print(total_minutes)
```
# out: 326
That is 326 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "326", "printed": "326", "notation": null} |
nlprog_det-setting-0080332 | <|start|><|user|>
What is -15 degrees Celsius in Fahrenheit?<|eot|>
<|assistant|>
```python
celsius = -15
fahrenheit = celsius * 9 / 5 + 32
print(round(fahrenheit))
```
It prints: 5
It equals 5 degrees Fahrenheit.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is -15 degrees Celsius in Fahrenheit?"
},
{
"role": "assistant",
"content": "```python\ncelsius = -15\nfahrenheit = celsius * 9 / 5 + 32\nprint(round(fahrenheit))\n```\nIt prints: 5\n\nIt equals 5 degrees Fahrenheit."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0080333 | Kaito lends $12,000 at 3% simple interest per year for 6 years. How much interest is earned?
Let's compute it with Python.
```python
principal = 12000
rate = 3 / 100 # 0.03
years = 6
interest = principal * rate * years # 2160.0
print(f"{interest:.2f}")
```
Running this gives 2160.00.
The interest is $2,160.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "2160.00", "printed": "2160.00", "notation": null} |
nlprog_det-setting-0080334 | 1.5 hours of work at $250 an hour: what is the total charge? That comes to $375.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 28 | {"gold": "375.00", "printed": "375.00", "notation": null} |
nlprog_det-setting-0080335 | <|start|><|user|>
What simple interest does $2,500 earn at 5% a year over 4 years?<|eot|>
<|assistant|>
```python
principal = 2500
rate = 5 / 100 # 0.05
years = 4
interest = principal * rate * years # 500.0
print(f"{interest:.2f}")
```
(Program output: 500.00)
The interest is $500.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What simple interest does $2,500 earn at 5% a year over 4 years?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 2500\nrate = 5 / 100 # 0.05\nyears = 4\ninterest = principal * rate * years # 500.0\nprint(f\"{interest:.2f}\")\n```\n(Program output: 50... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "500.00", "printed": "500.00", "notation": null} |
nlprog_det-setting-0080336 | <|start|><|system|>
Give the answer first.<|eot|>
<|user|>
Notice was given on March 20, 2026. The notice period is 120 days. When does it run out?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2026, 3, 20) # datetime.date(2026, 3, 20)
end = start + timedelta(days=120) # datetime.da... | chat | [
{
"role": "system",
"content": "Give the answer first."
},
{
"role": "user",
"content": "Notice was given on March 20, 2026. The notice period is 120 days. When does it run out?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2026,... | nlprog_det | setting | original | null | deterministic | [] | [] | 155 | {"gold": "2026-07-18", "printed": "2026-07-18", "notation": null} |
nlprog_det-setting-0080337 | <|start|><|user|>
With 13 rows of 14 chairs and 9 empty chairs, how many chairs are taken?<|eot|>
<|assistant|>
```python
rows = 13
per_row = 14
empty = 9
seated = rows * per_row - empty # 173
print(seated)
```
(stdout: 173)
173 people are seated.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 13 rows of 14 chairs and 9 empty chairs, how many chairs are taken?"
},
{
"role": "assistant",
"content": "```python\nrows = 13\nper_row = 14\nempty = 9\nseated = rows * per_row - empty # 173\nprint(seated)\n```\n(stdout: 173)\n\n173 people are seated."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "173", "printed": "173", "notation": null} |
nlprog_det-setting-0080338 | <|start|><|user|>
Revenue is $25,000 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|>
<|assistant|>
```python
revenue = 25000
costs = 20000
profit = revenue - costs # 5000
margin = profit / revenue * 100 # 20.0
print(round(margin, 1))
```
It prints: 20.0
Profit is 20.0% ... | chat | [
{
"role": "user",
"content": "Revenue is $25,000 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?"
},
{
"role": "assistant",
"content": "```python\nrevenue = 25000\ncosts = 20000\nprofit = revenue - costs # 5000\nmargin = profit / revenue * 100 # 20.0\npr... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "20.0", "printed": "20.0", "notation": null} |
nlprog_det-setting-0080339 | <|start|><|user|>
A $2,000 security deposit has deductions of $120. How much is refunded?<|eot|>
<|assistant|>
deposit = 2000
deductions = [120]
refund = deposit - sum(deductions) # 1880
print(refund)
stdout: 1880
The refund is $1,880.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A $2,000 security deposit has deductions of $120. How much is refunded?"
},
{
"role": "assistant",
"content": " deposit = 2000\n deductions = [120]\n refund = deposit - sum(deductions) # 1880\n print(refund)\nstdout: 1880\n\nThe refund is $1,880."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "1880", "printed": "1880", "notation": null} |
nlprog_det-setting-0080340 | A lease runs for 18 months at $975 per month. How much rent is paid over the whole term?
monthly_rent = 975
months = 18
total = monthly_rent * months # 17550
print(total)
Console:
17550
In total, $17,550 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "17550", "printed": "17550", "notation": null} |
nlprog_det-setting-0080342 | Goods bought on May 2, 2028 carry a 24-month warranty. When does it expire?
Python code:
```python
from datetime import date
start = date(2028, 5, 2)
months = 24
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
The run gives... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "2030-05-02", "printed": "2030-05-02", "notation": null} |
nlprog_det-setting-0080343 | A lawyer's fee is 30% of a $60,000 recovery. How large is the fee?
The fee is $18,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "18000.00", "printed": "18000.00", "notation": null} |
nlprog_det-setting-0080344 | A water bill is $20 plus $4.75 per thousand gallons beyond the first 3 thousand. What is the bill for 23 thousand gallons?
Translated to Python:
base = 20
rate = 4.75
used = 23
free = 3
bill = base + rate * max(0, used - free) # 115.0
print(f"{bill:.2f}")
Executing it gives 115.00.
The bill i... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "115.00", "printed": "115.00", "notation": null} |
nlprog_det-setting-0080345 | A 5% increase is applied to $1,800 monthly rent. What is the new amount?
```python
rent = 1800
increase = 5 / 100 # 0.05
new_rent = rent * (1 + increase) # 1890.0
print(f"{new_rent:.2f}")
```
stdout: 1890.00
The new rent is $1,890.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "1890.00", "printed": "1890.00", "notation": null} |
nlprog_det-setting-0080346 | At 1.5% a month (simple), what interest builds on $7,500 over 6 months? The interest is $675.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "675.00", "printed": "675.00", "notation": null} |
nlprog_det-setting-0080347 | <|start|><|user|>
An invoice lists 6 chairs at $15 each, plus 8% sales tax. What is the invoice total?<|eot|>
<|assistant|>
```python
quantity = 6
unit_price = 15
subtotal = quantity * unit_price # 90
total = subtotal * (1 + 8 / 100) # 97.2
print(f"{total:.2f}")
```
Console output — 97.20
The total with tax is $97.2... | chat | [
{
"role": "user",
"content": "An invoice lists 6 chairs at $15 each, plus 8% sales tax. What is the invoice total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 6\nunit_price = 15\nsubtotal = quantity * unit_price # 90\ntotal = subtotal * (1 + 8 / 100) # 97.2\nprint(f\"{total:.2... | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "97.20", "printed": "97.20", "notation": null} |
nlprog_det-setting-0080348 | What is a 15% tip on a $96.16 bill?
Program:
```python
bill = 96.16
tip_rate = 15 / 100 # 0.15
tip = bill * tip_rate # 14.424
print(f"{tip:.2f}")
```
Program output — 14.42
The tip is $14.42. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "14.42", "printed": "14.42", "notation": null} |
nlprog_det-setting-0080349 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "run_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|>
<|user|>
The bridge was finished ... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"run_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [... | nlprog_det | setting | original | null | deterministic | [] | [] | 196 | {"gold": "31", "printed": "31", "notation": null} |
nlprog_det-setting-0080350 | What is a 22% tip on a $43.89 bill?
Let's compute it with Python.
```python
bill = 43.89
tip_rate = 22 / 100 # 0.22
tip = bill * tip_rate # 9.655800000000001
print(f"{tip:.2f}")
```
This prints: 9.66
The tip is $9.66. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "9.66", "printed": "9.66", "notation": null} |
nlprog_det-setting-0080351 | A lawyer's fee is 33% of a $60,000 recovery. How large is the fee?
A short script:
```python
recovery = 60000
rate = 33 / 100 # 0.33
fee = recovery * rate # 19800.0
print(f"{fee:.2f}")
```
The run gives: 19800.00
The lawyer's fee comes to $19,800.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "19800.00", "printed": "19800.00", "notation": null} |
nlprog_det-setting-0080352 | What is the total rent on a 6-month lease at $2,100 a month?
We write it as a program:
```python
monthly_rent = 2100
months = 6
total = monthly_rent * months # 12600
print(total)
```
Out:
12600
In total, $12,600 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "12600", "printed": "12600", "notation": null} |
nlprog_det-setting-0080353 | <|start|><|user|>
42 of 50 members attended. What percent attended?<|eot|>
<|assistant|>
present = 42
total = 50
percent = present / total * 100 # 84.0
print(round(percent, 1))
On running, it outputs: 84.0
Attendance was 84.0%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "42 of 50 members attended. What percent attended?"
},
{
"role": "assistant",
"content": " present = 42\n total = 50\n percent = present / total * 100 # 84.0\n print(round(percent, 1))\nOn running, it outputs: 84.0\n\nAttendance was 84.0%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "84.0", "printed": "84.0", "notation": null} |
nlprog_det-setting-0080354 | Find the mean of these test scores: 68, 93 and 91.
Coded up:
```python
scores = [68, 93, 91]
average = sum(scores) // len(scores) # 84
print(average)
```
Python prints 84.
The mean is 84. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "84", "printed": "84", "notation": null} |
nlprog_det-setting-0080355 | Convert -10 °C to Fahrenheit.
Set it up in Python:
```python
celsius = -10
fahrenheit = celsius * 9 / 5 + 32
print(round(fahrenheit))
```
Printed result — 14
That is 14 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0080356 | <|start|><|user|>
What simple interest does $1,000 earn at 8% a year over 2 years?<|eot|>
<|assistant|>
The interest is $160.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What simple interest does $1,000 earn at 8% a year over 2 years?"
},
{
"role": "assistant",
"content": "The interest is $160.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "160.00", "printed": "160.00", "notation": null} |
nlprog_det-setting-0080357 | <|start|><|system|>
You may call the tools below.
[{"name": "compute", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "lookup_statute", "description"... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"compute\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\... | nlprog_det | setting | original | null | deterministic | [] | [] | 390 | {"gold": "800", "printed": "800", "notation": null} |
nlprog_det-setting-0080358 | At 40 miles per hour, how many minutes does a 100-mile trip take?
Here is the program.
```python
distance = 100
speed = 40
minutes = distance / speed * 60 # 150.0
print(round(minutes))
```
The printout reads: 150
150 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "150", "printed": "150", "notation": null} |
nlprog_det-setting-0080359 | <|start|><|user|>
3 books come back 12 days late, at $0.50 a day each. What is the fine?<|eot|>
<|assistant|>
```python
per_day = 0.5
days_late = 12
books = 3
fine = per_day * days_late * books # 18.0
print(f"{fine:.2f}")
```
That prints: 18.00
$18.00 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "3 books come back 12 days late, at $0.50 a day each. What is the fine?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.5\ndays_late = 12\nbooks = 3\nfine = per_day * days_late * books # 18.0\nprint(f\"{fine:.2f}\")\n```\nThat prints: 18.00\n\n$18.00 i... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "18.00", "printed": "18.00", "notation": null} |
nlprog_det-setting-0080360 | <|start|><|user|>
With 30% off, what does a $120 desk lamp cost?<|eot|>
<|assistant|>
The sale price is $84.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 30% off, what does a $120 desk lamp cost?"
},
{
"role": "assistant",
"content": "The sale price is $84.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "84.00", "printed": "84.00", "notation": null} |
nlprog_det-setting-0080361 | <|start|><|user|>
One can of paint covers 250 square feet. How many cans are needed for 967 square feet of wall?<|eot|>
<|assistant|>
```python
import math
area = 967
coverage = 250
cans = math.ceil(area / coverage) # 4
print(cans)
```
stdout:
4
Buy 4 cans.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "One can of paint covers 250 square feet. How many cans are needed for 967 square feet of wall?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 967\ncoverage = 250\ncans = math.ceil(area / coverage) # 4\nprint(cans)\n```\nstdout:\n4\n\nBuy 4 ca... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0080362 | <|start|><|user|>
What is the total rent on a 24-month lease at $1,475 a month?<|eot|>
<|assistant|>
```python
monthly_rent = 1475
months = 24
total = monthly_rent * months # 35400
print(total)
```
Run it and it prints: 35400
The rent over the term is $35,400.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is the total rent on a 24-month lease at $1,475 a month?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 1475\nmonths = 24\ntotal = monthly_rent * months # 35400\nprint(total)\n```\nRun it and it prints: 35400\n\nThe rent over the term is $35,... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "35400", "printed": "35400", "notation": null} |
nlprog_det-setting-0080363 | <|start|><|system|>
Tools (call with JSON):
[{"name": "eval_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
What is a 10%... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"eval_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"re... | nlprog_det | setting | original | null | deterministic | [] | [] | 223 | {"gold": "15.88", "printed": "15.88", "notation": null} |
nlprog_det-setting-0080364 | Oskar drove 460 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?
Python:
```python
miles = 460
rate = 0.65
reimbursement = miles * rate # 299.0
print(f"{reimbursement:.2f}")
```
(stdout: 299.00)
Oskar is owed $299.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "299.00", "printed": "299.00", "notation": null} |
nlprog_det-setting-0080365 | <|start|><|user|>
A hall has 19 rows of 16 seats, and 31 seats are empty. How many people are seated?<|eot|>
<|assistant|>
```python
rows = 19
per_row = 16
empty = 31
seated = rows * per_row - empty # 273
print(seated)
```
This prints 273, as expected.
273 seats are taken.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hall has 19 rows of 16 seats, and 31 seats are empty. How many people are seated?"
},
{
"role": "assistant",
"content": "```python\nrows = 19\nper_row = 16\nempty = 31\nseated = rows * per_row - empty # 273\nprint(seated)\n```\nThis prints 273, as expected.\n\n27... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "273", "printed": "273", "notation": null} |
nlprog_det-setting-0080366 | Monthly rent is $1,800. A tenant moves in with 11 days left in a 31-day month. What is the prorated rent?
We can compute it in Python.
rent = 1800
days_in_month = 31
days_occupied = 11
prorated = rent * days_occupied / days_in_month # 638.7096774193549
print(f"{prorated:.2f}")
# execution result: ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "638.71", "printed": "638.71", "notation": null} |
nlprog_det-setting-0080367 | <|start|><|user|>
Each of Maren's walks burns 300 calories. How many calories over 4 walks?<|eot|>
<|assistant|>
per_session = 300
sessions = 4
total = per_session * sessions # 1200
print(total)
Output = 1200
1200 calories in total.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each of Maren's walks burns 300 calories. How many calories over 4 walks?"
},
{
"role": "assistant",
"content": " per_session = 300\n sessions = 4\n total = per_session * sessions # 1200\n print(total)\nOutput = 1200\n\n1200 calories in total."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "1200", "printed": "1200", "notation": null} |
nlprog_det-setting-0080368 | A service costs $29 a month or $330 a year. How much does the yearly plan save over 12 monthly payments?
```python
monthly = 29
yearly = 330
savings = monthly * 12 - yearly # 18
print(savings)
```
Printed result: 18
The annual plan saves $18. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0080369 | A lawyer's fee is 40% of a $40,000 recovery. How large is the fee?
The program:
```python
recovery = 40000
rate = 40 / 100
fee = recovery * rate
print(f"{fee:.2f}")
```
Out — 16000.00
The fee is $16,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "16000.00", "printed": "16000.00", "notation": null} |
nlprog_det-setting-0080370 | 2 clients win $30,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?
Each client gets $10,500.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "10500.00", "printed": "10500.00", "notation": null} |
nlprog_det-setting-0080371 | Parking is $3 per hour with a daily maximum of $20. What do 2 hours cost?
A Python solution:
rate = 3
hours = 2
daily_max = 20
cost = min(rate * hours, daily_max) # 6
print(cost)
This prints 6.
The charge is $6. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0080372 | <|start|><|user|>
Bilal was born on November 7, 1990. How old is Bilal on June 5, 2026?<|eot|>
<|assistant|>
Bilal is 35.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Bilal was born on November 7, 1990. How old is Bilal on June 5, 2026?"
},
{
"role": "assistant",
"content": "Bilal is 35."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "35", "printed": "35", "notation": null} |
nlprog_det-setting-0080373 | One can of paint covers 400 square feet. How many cans are needed for 271 square feet of wall?
Buy 1 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "1", "printed": "1", "notation": null} |
nlprog_det-setting-0080374 | A library charges $0.10 per book per day late. What is the fine for 3 books that are 17 days late?
```python
per_day = 0.1
days_late = 17
books = 3
fine = per_day * days_late * books # 5.1000000000000005
print(f"{fine:.2f}")
```
Interpreter output: 5.10
$5.10 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "5.10", "printed": "5.10", "notation": null} |
nlprog_det-setting-0080375 | At an exchange rate of 0.92 EUR per USD, how many EUR is 1,858 USD?
Let the code do the arithmetic:
```python
amount = 1858
rate = 0.92
converted = amount * rate # 1709.3600000000001
print(f"{converted:.2f}")
```
Running it prints 1709.36, as expected.
It converts to 1,709.36 EUR. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "1709.36", "printed": "1709.36", "notation": null} |
nlprog_det-setting-0080377 | Sales went from 2,500 to 1,875. What is the percent change?
The Python version:
```python
old = 2500
new = 1875
change = (new - old) / old * 100 # -25.0
print(round(change))
```
Result = -25
The change is -25%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "-25", "printed": "-25", "notation": null} |
nlprog_det-setting-0080378 | Parking is $3 per hour with a daily maximum of $15. What do 2 hours cost?
Python code:
```python
rate = 3
hours = 2
daily_max = 15
cost = min(rate * hours, daily_max) # 6
print(cost)
```
# output: 6
The charge is $6. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0080379 | Count the days between September 25, 2020 and July 1, 2021.
Computing it:
```python
from datetime import date
first = date(2020, 9, 25) # datetime.date(2020, 9, 25)
second = date(2021, 7, 1) # datetime.date(2021, 7, 1)
print((second - first).days)
```
When run, it prints 279.
There are 279 days between the two date... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "279", "printed": "279", "notation": null} |
nlprog_det-setting-0080381 | Amir and Nilufar share $2,676 in the ratio 1:3. How much does Amir get?
Computing it:
total = 2676
parts_a = 1
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b) # 669
print(share_a)
Executed, it shows: 669
Amir's share is $669. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "669", "printed": "669", "notation": null} |
nlprog_det-setting-0080382 | <|start|><|user|>
A $9,000 loan carries 8% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|>
<|assistant|>
principal = 9000
annual_rate = 8 / 100 # 0.08
months = 24
interest = principal * annual_rate * months / 12 # 1440.0
... | chat | [
{
"role": "user",
"content": "A $9,000 loan carries 8% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?"
},
{
"role": "assistant",
"content": " principal = 9000\n annual_rate = 8 / 100 # 0.08\n months = 24\n in... | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "435.00", "printed": "435.00", "notation": null} |
nlprog_det-setting-0080383 | $1,000 is invested at 5% compounded yearly. What is it worth after 5 years? The balance is $1,276.28. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "1276.28", "printed": "1276.28", "notation": null} |
nlprog_det-setting-0080384 | A $84 dinner bill gets a 18% tip, and 2 people share the cost equally. What is each person's share?
Let the code do the arithmetic:
```python
bill = 84
tip_rate = 18 / 100 # 0.18
people = 2
each = bill * (1 + tip_rate) / people # 49.559999999999995
print(f"{each:.2f}")
```
# out: 49.56
Each person pays $49.56. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "49.56", "printed": "49.56", "notation": null} |
nlprog_det-setting-0080385 | At an exchange rate of 1.27 EUR per USD, how many EUR is 4,497 USD?
```python
amount = 4497
rate = 1.27
converted = amount * rate # 5711.1900000000005
print(f"{converted:.2f}")
```
The program prints 5711.19, as expected.
That is 5,711.19 EUR. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "5711.19", "printed": "5711.19", "notation": null} |
nlprog_det-setting-0080386 | Buying 2 pens at $29 each, 6 labels at $14 each, someone hands over $150. What change comes back?
A Python solution:
```python
items = [(2, 29), (6, 14)]
total = sum(q * p for q, p in items) # 142
paid = 150
change = paid - total # 8
print(change)
```
Output:
8
$8 comes back. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0080387 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "python", "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|>
... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source c... | nlprog_det | setting | original | null | deterministic | [] | [] | 246 | {"gold": "81 each, 0 left over", "printed": "81 each, 0 left over", "notation": null} |
nlprog_det-setting-0080389 | <|start|><|user|>
A meeting lasted 3 hours and 22 minutes. How many minutes is that?<|eot|>
<|assistant|>
```python
hours = 3
minutes = 22
total_minutes = hours * 60 + minutes # 202
print(total_minutes)
```
Interpreter output: 202
The meeting lasted 202 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A meeting lasted 3 hours and 22 minutes. How many minutes is that?"
},
{
"role": "assistant",
"content": "```python\nhours = 3\nminutes = 22\ntotal_minutes = hours * 60 + minutes # 202\nprint(total_minutes)\n```\nInterpreter output: 202\n\nThe meeting lasted 202 mi... | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "202", "printed": "202", "notation": null} |
nlprog_det-setting-0080390 | Pay is $22.40/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 52 hours?
Python:
```python
rate = 22.4
hours = 52
regular = 40 * rate # 896.0
overtime = (hours - 40) * rate * 1.5 # 403.19999999999993
pay = regular + overtime # 1299.1999999999998
print(f"{pay:.2f}")
```
Out — 1299.20
Rania e... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 154 | {"gold": "1299.20", "printed": "1299.20", "notation": null} |
nlprog_det-setting-0080391 | <|start|><|user|>
31 of 50 members attended. What percent attended?<|eot|>
<|assistant|>
```python
present = 31
total = 50
percent = present / total * 100 # 62.0
print(round(percent, 1))
```
Running this gives 62.0.
Attendance was 62.0%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "31 of 50 members attended. What percent attended?"
},
{
"role": "assistant",
"content": "```python\npresent = 31\ntotal = 50\npercent = present / total * 100 # 62.0\nprint(round(percent, 1))\n```\nRunning this gives 62.0.\n\nAttendance was 62.0%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "62.0", "printed": "62.0", "notation": null} |
nlprog_det-setting-0080392 | A hearing lasted 3 hours and 7 minutes. How many minutes is that?
One way, in code:
```python
hours = 3
minutes = 7
total_minutes = hours * 60 + minutes # 187
print(total_minutes)
```
Running it prints 187.
The hearing lasted 187 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "187", "printed": "187", "notation": null} |
nlprog_det-setting-0080394 | How many of 31 members form a majority (more than half)?
Python does the arithmetic:
```python
members = 31
majority = members // 2 + 1 # 16
print(majority)
```
The program prints 16.
16 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0080395 | <|start|><|user|>
Each of Olga's bike rides burns 200 calories. How many calories over 6 bike rides?<|eot|>
<|assistant|>
```python
per_session = 200
sessions = 6
total = per_session * sessions # 1200
print(total)
```
Printed result — 1200
1200 calories in total.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each of Olga's bike rides burns 200 calories. How many calories over 6 bike rides?"
},
{
"role": "assistant",
"content": "```python\nper_session = 200\nsessions = 6\ntotal = per_session * sessions # 1200\nprint(total)\n```\nPrinted result — 1200\n\n1200 calories in... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "1200", "printed": "1200", "notation": null} |
nlprog_det-setting-0080396 | <|start|><|system|>
Tools (call with JSON):
[{"name": "calculator", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
A clerk's office charges $50 for ... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"calculator\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\... | nlprog_det | setting | original | null | deterministic | [] | [] | 210 | {"gold": "200", "printed": "200", "notation": null} |
nlprog_det-setting-0080397 | Split $1,799 between Arjun and Jamal in the ratio 2 to 5. What is Arjun's share?
Coded up:
```python
total = 1799
parts_a = 2
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 514
print(share_a)
```
The program prints 514, as expected.
Arjun's share is $514. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "514", "printed": "514", "notation": null} |
nlprog_det-setting-0080398 | <|start|><|user|>
At $0.70 per mile, what is the reimbursement for 92 miles?<|eot|>
<|assistant|>
miles = 92
rate = 0.7
reimbursement = miles * rate # 64.39999999999999
print(f"{reimbursement:.2f}")
Console:
64.40
The reimbursement is $64.40.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $0.70 per mile, what is the reimbursement for 92 miles?"
},
{
"role": "assistant",
"content": " miles = 92\n rate = 0.7\n reimbursement = miles * rate # 64.39999999999999\n print(f\"{reimbursement:.2f}\")\nConsole:\n64.40\n\nThe reimbursement is $64.... | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "64.40", "printed": "64.40", "notation": null} |
nlprog_det-setting-0080399 | What simple interest does $20,000 earn at 2% a year over 5 years?
The program:
```python
principal = 20000
rate = 2 / 100 # 0.02
years = 5
interest = principal * rate * years # 2000.0
print(f"{interest:.2f}")
```
The program outputs: 2000.00
The interest is $2,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "2000.00", "printed": "2000.00", "notation": null} |
nlprog_det-setting-0080400 | Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 54 hours?
Written as code:
```python
rate = 25.0
hours = 54
regular = 40 * rate # 1000.0
overtime = (hours - 40) * rate * 1.5 # 525.0
pay = regular + overtime # 1525.0
print(f"{pay:.2f}")
```
(Output: 1525.00)
Jonas earns $1,525... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "1525.00", "printed": "1525.00", "notation": null} |
nlprog_det-setting-0080401 | With $12,500 in costs and $16,500 in revenue, what percent of revenue is profit? Round to one decimal.
The computation:
```python
revenue = 16500
costs = 12500
profit = revenue - costs # 4000
margin = profit / revenue * 100 # 24.242424242424242
print(round(margin, 1))
```
This prints 24.2.
The margin is 24.2%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "24.2", "printed": "24.2", "notation": null} |
nlprog_det-setting-0080402 | Maren was born on December 22, 1997. How old is Maren on January 27, 2020?
Python makes this quick:
```python
from datetime import date
born = date(1997, 12, 22) # datetime.date(1997, 12, 22)
on = date(2020, 1, 27) # datetime.date(2020, 1, 27)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day))... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 154 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0080403 | <|start|><|user|>
Prorate $900 of monthly rent for 8 days of a 30-day month.<|eot|>
<|assistant|>
```python
rent = 900
days_in_month = 30
days_occupied = 8
prorated = rent * days_occupied / days_in_month
print(f"{prorated:.2f}")
```
Out:
240.00
The prorated rent is $240.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Prorate $900 of monthly rent for 8 days of a 30-day month."
},
{
"role": "assistant",
"content": "```python\nrent = 900\ndays_in_month = 30\ndays_occupied = 8\nprorated = rent * days_occupied / days_in_month\nprint(f\"{prorated:.2f}\")\n```\nOut:\n240.00\n\nThe pror... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "240.00", "printed": "240.00", "notation": null} |
nlprog_det-setting-0080404 | <|start|><|user|>
58 of 100 members attended. What percent attended?<|eot|>
<|assistant|>
```python
present = 58
total = 100
percent = present / total * 100 # 57.99999999999999
print(round(percent, 1))
```
Run output: 58.0
Attendance was 58.0%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "58 of 100 members attended. What percent attended?"
},
{
"role": "assistant",
"content": "```python\npresent = 58\ntotal = 100\npercent = present / total * 100 # 57.99999999999999\nprint(round(percent, 1))\n```\nRun output: 58.0\n\nAttendance was 58.0%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "58.0", "printed": "58.0", "notation": null} |
nlprog_det-setting-0080406 | Fines run at $25 per day up to a maximum of $1,000. How much after 43 days?
Python version:
```python
per_day = 25
days = 43
cap = 1000
fine = min(per_day * days, cap) # 1000
print(fine)
```
(Printed result: 1000)
$1,000 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0080407 | Notice was given on November 2, 2019. The notice period is 10 days. When does it run out?
We write it as a program:
from datetime import date, timedelta
start = date(2019, 11, 2)
end = start + timedelta(days=10)
print(end.isoformat())
Program output — 2019-11-12
It ends on November 12, 2019. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "2019-11-12", "printed": "2019-11-12", "notation": null} |
nlprog_det-setting-0080408 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "math_engine", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
What is the t... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"math_engine\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"re... | nlprog_det | setting | original | null | deterministic | [] | [] | 213 | {"gold": "75600", "printed": "75600", "notation": null} |
nlprog_det-setting-0080409 | Counting only Monday through Friday, how many business days are there after June 26, 2020 through July 9, 2020?
A short script:
```python
from datetime import date, timedelta
start = date(2020, 6, 26)
end = date(2020, 7, 9)
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 | [] | [] | 157 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0080410 | A clerk's office charges $405 for each filing. Lena submits 17 filings. What is the total fee?
Python:
fee = 405
filings = 17
total = fee * filings # 6885
print(total)
Printed result — 6885
$6,885 in filing fees. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "6885", "printed": "6885", "notation": null} |
nlprog_det-setting-0080411 | A 17 lb package ships at $12 base plus $0.75/lb. What is the charge?
We can compute it in Python.
```python
base = 12
per_pound = 0.75
weight = 17
cost = base + per_pound * weight # 24.75
print(f"{cost:.2f}")
```
stdout:
24.75
The charge is $24.75. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "24.75", "printed": "24.75", "notation": null} |
nlprog_det-setting-0080412 | Shipping costs $12 plus $2.00 per pound. What does a 27-pound parcel cost to ship?
Code:
```python
base = 12
per_pound = 2.0
weight = 27
cost = base + per_pound * weight # 66.0
print(f"{cost:.2f}")
```
Execution prints 66.00.
Shipping costs $66.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "66.00", "printed": "66.00", "notation": null} |
nlprog_det-setting-0080413 | A claim accrued on April 20, 2014. The limitations period is 2 years. On what date does it expire?
Programmatically:
```python
from datetime import date
accrued = date(2014, 4, 20) # datetime.date(2014, 4, 20)
years = 2
expires = accrued.replace(year=accrued.year + years) # datetime.date(2016, 4, 20)
print(expires.i... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "2016-04-20", "printed": "2016-04-20", "notation": null} |
nlprog_det-setting-0080414 | A measure needs at least 75% of 299 votes. How many votes is that, rounded up?
Let the code do the arithmetic:
```python
import math
voters = 299
needed = math.ceil(voters * 75 / 100)
print(needed)
```
Result — 225
At least 225 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "225", "printed": "225", "notation": null} |
nlprog_det-setting-0080415 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
{"name": "py_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|>
<|user|>
A client paid a $2,5... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"py_exec\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir... | nlprog_det | setting | original | null | deterministic | [] | [] | 230 | {"gold": "1250", "printed": "1250", "notation": null} |
nlprog_det-setting-0080416 | A appointment starts at 12:20 PM and lasts 90 minutes. When does it end?
Coded up:
start = 12 * 60 + 20
end = start + 90
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
Out:
1:50 PM
The appointment finishes at 1:50 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "1:50 PM", "printed": "1:50 PM", "notation": null} |
nlprog_det-setting-0080418 | A penalty of $100 a day accrues, capped at $5,000. What is owed after 60 days?
```python
per_day = 100
days = 60
cap = 5000
fine = min(per_day * days, cap) # 5000
print(fine)
```
# program output: 5000
The fine is $5,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "5000", "printed": "5000", "notation": null} |
nlprog_det-setting-0080419 | <|start|><|user|>
A 2% increase is applied to $2,200 monthly rent. What is the new amount?<|eot|>
<|assistant|>
It rises to $2,244.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 2% increase is applied to $2,200 monthly rent. What is the new amount?"
},
{
"role": "assistant",
"content": "It rises to $2,244.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "2244.00", "printed": "2244.00", "notation": null} |
nlprog_det-setting-0080420 | <|start|><|user|>
12 boxes hold 24 ink cartridges each. After 6 are handed out, how many are left?<|eot|>
<|assistant|>
boxes = 12
per_box = 24
given_away = 6
left = boxes * per_box - given_away # 282
print(left)
Run it and it prints 282.
That leaves 282 ink cartridges.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "12 boxes hold 24 ink cartridges each. After 6 are handed out, how many are left?"
},
{
"role": "assistant",
"content": " boxes = 12\n per_box = 24\n given_away = 6\n left = boxes * per_box - given_away # 282\n print(left)\nRun it and it prints 282.\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "282", "printed": "282", "notation": null} |
nlprog_det-setting-0080421 | At a 7% tax rate, what is the tax on $335.83?
Python makes this quick:
price = 335.83
tax_rate = 7 / 100 # 0.07
tax = price * tax_rate # 23.508100000000002
print(f"{tax:.2f}")
Out = 23.51
$23.51 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "23.51", "printed": "23.51", "notation": null} |
nlprog_det-setting-0080422 | A $150 dinner bill gets a 18% tip, and 6 people share the cost equally. What is each person's share?
Written as code:
```python
bill = 150
tip_rate = 18 / 100 # 0.18
people = 6
each = bill * (1 + tip_rate) / people # 29.5
print(f"{each:.2f}")
```
This prints: 29.50
Each person pays $29.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "29.50", "printed": "29.50", "notation": null} |
nlprog_det-setting-0080423 | 8 claimants share a $15,000 settlement equally. What is each share?
As Python:
```python
settlement = 15000
parties = 8
share = settlement // parties # 1875
print(share)
```
stdout = 1875
Each share is $1,875. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "1875", "printed": "1875", "notation": null} |
nlprog_det-setting-0080424 | At 1.5% a month (simple), what interest builds on $2,500 over 6 months?
Computation in Python:
```python
balance = 2500
monthly_rate = 1.5 / 100 # 0.015
months = 6
interest = balance * monthly_rate * months # 225.0
print(f"{interest:.2f}")
```
(stdout: 225.00)
The interest is $225.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "225.00", "printed": "225.00", "notation": null} |
nlprog_det-setting-0080425 | <|start|><|system|>
Functions:
{"name": "calc", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}
{"name": "fetch_filing", "description": "Fetch an SEC filing by... | chat | [
{
"role": "system",
"content": "Functions:\n{\"name\": \"calc\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\"]}}\n{\"name... | nlprog_det | setting | original | null | deterministic | [] | [] | 304 | {"gold": "9600.00", "printed": "9600.00", "notation": null} |
nlprog_det-setting-0080426 | Each storage box holds 50 files. How many boxes are needed for 823 files?
Script:
```python
import math
files = 823
per_box = 50
boxes = math.ceil(files / per_box) # 17
print(boxes)
```
This prints 17, as expected.
17 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0080427 | <|start|><|user|>
Paula was born on January 20, 1961. How old is Paula on December 13, 2021?<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1961, 1, 20) # datetime.date(1961, 1, 20)
on = date(2021, 12, 13) # datetime.date(2021, 12, 13)
age = on.year - born.year - ((on.month, on.day) < (born.mont... | chat | [
{
"role": "user",
"content": "Paula was born on January 20, 1961. How old is Paula on December 13, 2021?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1961, 1, 20) # datetime.date(1961, 1, 20)\non = date(2021, 12, 13) # datetime.date(2021, 12, 13)\nag... | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "60", "printed": "60", "notation": null} |
nlprog_det-setting-0080428 | Buying 2 lanyards at $27 each, 5 envelopes at $23 each, 4 pens at $10 each, 5 paper reams at $12 each, someone hands over $300. What change comes back?
```python
items = [(2, 27), (5, 23), (4, 10), (5, 12)]
total = sum(q * p for q, p in items) # 269
paid = 300
change = paid - total # 31
print(change)
```
Output: 31
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "31", "printed": "31", "notation": null} |
nlprog_det-setting-0080429 | Parking is $4 per hour with a daily maximum of $18. What do 10 hours cost?
Python:
rate = 4
hours = 10
daily_max = 18
cost = min(rate * hours, daily_max) # 18
print(cost)
The printout reads 18.
The charge is $18. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0080430 | A 12-month warranty starts on August 28, 2020. On what date does it end?
As Python:
```python
from datetime import date
start = date(2020, 8, 28)
months = 12
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
Result:
2021-08-2... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "2021-08-28", "printed": "2021-08-28", "notation": null} |
nlprog_det-setting-0080431 | <|start|><|system|>
You are a math tutor.<|eot|>
<|user|>
At $0.67 per mile, what is the reimbursement for 515 miles?<|eot|>
<|assistant|>
```python
miles = 515
rate = 0.67
reimbursement = miles * rate # 345.05
print(f"{reimbursement:.2f}")
```
The script prints 345.05.
Tariq is owed $345.05.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a math tutor."
},
{
"role": "user",
"content": "At $0.67 per mile, what is the reimbursement for 515 miles?"
},
{
"role": "assistant",
"content": "```python\nmiles = 515\nrate = 0.67\nreimbursement = miles * rate # 345.05\nprint(f\"{reimbursem... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "345.05", "printed": "345.05", "notation": null} |
nlprog_det-setting-0080432 | What is 15 degrees Celsius in Fahrenheit?
A few lines of Python do it:
```python
celsius = 15
fahrenheit = celsius * 9 / 5 + 32 # 59.0
print(round(fahrenheit))
```
# printed result: 59
That is 59 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "59", "printed": "59", "notation": null} |
nlprog_det-setting-0080433 | Under a 33% contingency agreement, what fee is owed on a $150,000 award? The fee is $49,500.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "49500.00", "printed": "49500.00", "notation": null} |
nlprog_det-setting-0080434 | <|start|><|user|>
If a 150-minute shift begins at 2:30 PM, what time does it finish?<|eot|>
<|assistant|>
```python
start = 14 * 60 + 30
end = start + 150
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
That prints: 5:00 PM
It ends at 5:00 PM.<|eot|>
<|end|... | chat | [
{
"role": "user",
"content": "If a 150-minute shift begins at 2:30 PM, what time does it finish?"
},
{
"role": "assistant",
"content": "```python\nstart = 14 * 60 + 30\nend = start + 150\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": "5:00 PM", "printed": "5:00 PM", "notation": null} |
nlprog_det-setting-0080435 | Sales went from 800 to 1,120. What is the percent change?
The change is 40%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 26 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0080436 | <|start|><|user|>
4 books come back 23 days late, at $0.15 a day each. What is the fine?<|eot|>
<|assistant|>
```python
per_day = 0.15
days_late = 23
books = 4
fine = per_day * days_late * books # 13.799999999999999
print(f"{fine:.2f}")
```
Run result = 13.80
The fine is $13.80.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "4 books come back 23 days late, at $0.15 a day each. What is the fine?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.15\ndays_late = 23\nbooks = 4\nfine = per_day * days_late * books # 13.799999999999999\nprint(f\"{fine:.2f}\")\n```\nRun result = 13... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "13.80", "printed": "13.80", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.