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-0073666 | <|start|><|user|>
What is a 10% tip on a $208.83 bill?<|eot|>
<|assistant|>
```python
bill = 208.83
tip_rate = 10 / 100 # 0.1
tip = bill * tip_rate # 20.883000000000003
print(f"{tip:.2f}")
```
What it prints — 20.88
Leave $20.88.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is a 10% tip on a $208.83 bill?"
},
{
"role": "assistant",
"content": "```python\nbill = 208.83\ntip_rate = 10 / 100 # 0.1\ntip = bill * tip_rate # 20.883000000000003\nprint(f\"{tip:.2f}\")\n```\nWhat it prints — 20.88\n\nLeave $20.88."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "20.88", "printed": "20.88", "notation": null} |
nlprog_det-setting-0073667 | A deposition lasted 4 hours and 10 minutes. How many minutes is that? That is 250 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 22 | {"gold": "250", "printed": "250", "notation": null} |
nlprog_det-setting-0073668 | The landlord deducts $60 and $75 from a $800 deposit. What is returned to the tenant?
$665 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "665", "printed": "665", "notation": null} |
nlprog_det-setting-0073669 | 3 books come back 13 days late, at $0.10 a day each. What is the fine?
Written as code:
```python
per_day = 0.1
days_late = 13
books = 3
fine = per_day * days_late * books # 3.9000000000000004
print(f"{fine:.2f}")
```
# printed result: 3.90
$3.90 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "3.90", "printed": "3.90", "notation": null} |
nlprog_det-setting-0073670 | <|start|><|system|>
Functions:
[{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "lookup_statute", "description": "Look up the text of a U.S.... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"target\"]}}, {\"name\":... | nlprog_det | setting | original | null | deterministic | [] | [] | 389 | {"gold": "25.0", "printed": "25.0", "notation": null} |
nlprog_det-setting-0073672 | <|start|><|user|>
Straight-line depreciation: cost $18,000, salvage $3,000, 6 years. How much per year?<|eot|>
<|assistant|>
```python
cost = 18000
salvage = 3000
years = 6
per_year = (cost - salvage) / years # 2500.0
print(f"{per_year:.2f}")
```
Run result: 2500.00
Depreciation is $2,500.00 per year.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Straight-line depreciation: cost $18,000, salvage $3,000, 6 years. How much per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 18000\nsalvage = 3000\nyears = 6\nper_year = (cost - salvage) / years # 2500.0\nprint(f\"{per_year:.2f}\")\n```\nRun resul... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "2500.00", "printed": "2500.00", "notation": null} |
nlprog_det-setting-0073673 | <|start|><|user|>
Prorate $1,800 of monthly rent for 6 days of a 31-day month.<|eot|>
<|assistant|>
```python
rent = 1800
days_in_month = 31
days_occupied = 6
prorated = rent * days_occupied / days_in_month # 348.38709677419354
print(f"{prorated:.2f}")
```
(Execution result: 348.39)
The tenant owes $348.39.<|eot|>
<|... | chat | [
{
"role": "user",
"content": "Prorate $1,800 of monthly rent for 6 days of a 31-day month."
},
{
"role": "assistant",
"content": "```python\nrent = 1800\ndays_in_month = 31\ndays_occupied = 6\nprorated = rent * days_occupied / days_in_month # 348.38709677419354\nprint(f\"{prorated:.2f}\")\n```\... | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "348.39", "printed": "348.39", "notation": null} |
nlprog_det-setting-0073674 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "math_engine", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"math_engine\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python so... | nlprog_det | setting | original | null | deterministic | [] | [] | 227 | {"gold": "271.36", "printed": "271.36", "notation": null} |
nlprog_det-setting-0073675 | <|start|><|user|>
Equal monthly payments repay $1,200 plus 6% simple yearly interest over 24 months. How large is a payment?<|eot|>
<|assistant|>
```python
principal = 1200
annual_rate = 6 / 100 # 0.06
months = 24
interest = principal * annual_rate * months / 12 # 144.0
payment = (principal + interest) / months # 56... | chat | [
{
"role": "user",
"content": "Equal monthly payments repay $1,200 plus 6% simple yearly interest over 24 months. How large is a payment?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 1200\nannual_rate = 6 / 100 # 0.06\nmonths = 24\ninterest = principal * annual_rate * months / 1... | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "56.00", "printed": "56.00", "notation": null} |
nlprog_det-setting-0073676 | Pay is $22.40/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 42 hours?
As a program:
```python
rate = 22.4
hours = 42
regular = 40 * rate # 896.0
overtime = (hours - 40) * rate * 1.5 # 67.19999999999999
pay = regular + overtime # 963.2
print(f"{pay:.2f}")
```
(Output: 963.20)
The weekly p... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "963.20", "printed": "963.20", "notation": null} |
nlprog_det-setting-0073677 | <|start|><|user|>
Starting with 685 hard drives and using 40 per day, how many remain after 11 days?<|eot|>
<|assistant|>
```python
stock = 685
per_day = 40
days = 11
left = stock - per_day * days # 245
print(left)
```
When run, it prints: 245
245 remain.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting with 685 hard drives and using 40 per day, how many remain after 11 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 685\nper_day = 40\ndays = 11\nleft = stock - per_day * days # 245\nprint(left)\n```\nWhen run, it prints: 245\n\n245 remain.... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "245", "printed": "245", "notation": null} |
nlprog_det-setting-0073678 | <|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 | [] | [] | 399 | {"gold": "69.44", "printed": "69.44", "notation": null} |
nlprog_det-setting-0073679 | An invoice lists 16 cables at $3 each, plus 7% sales tax. What is the invoice total?
In code:
```python
quantity = 16
unit_price = 3
subtotal = quantity * unit_price # 48
total = subtotal * (1 + 7 / 100) # 51.36
print(f"{total:.2f}")
```
The program outputs 51.36.
The total with tax is $51.36. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "51.36", "printed": "51.36", "notation": null} |
nlprog_det-setting-0073680 | How long, in days, is it from July 9, 2025 until July 8, 2026?
A Python solution:
from datetime import date
first = date(2025, 7, 9) # datetime.date(2025, 7, 9)
second = date(2026, 7, 8) # datetime.date(2026, 7, 8)
print((second - first).days)
The program prints 364.
It is 364 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "364", "printed": "364", "notation": null} |
nlprog_det-setting-0073681 | <|start|><|user|>
A garage charges $5 an hour, never more than $15 a day. How much for 6 hours?<|eot|>
<|assistant|>
rate = 5
hours = 6
daily_max = 15
cost = min(rate * hours, daily_max) # 15
print(cost)
# output: 15
Parking costs $15.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A garage charges $5 an hour, never more than $15 a day. How much for 6 hours?"
},
{
"role": "assistant",
"content": " rate = 5\n hours = 6\n daily_max = 15\n cost = min(rate * hours, daily_max) # 15\n print(cost)\n# output: 15\n\nParking costs $15."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0073682 | <|start|><|user|>
Arjun buys 10 boxes of 10 pens each and gives away 5 pens. How many pens are left?<|eot|>
<|assistant|>
```python
boxes = 10
per_box = 10
given_away = 5
left = boxes * per_box - given_away # 95
print(left)
```
(stdout: 95)
95 pens are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Arjun buys 10 boxes of 10 pens each and gives away 5 pens. How many pens are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 10\nper_box = 10\ngiven_away = 5\nleft = boxes * per_box - given_away # 95\nprint(left)\n```\n(stdout: 95)\n\n95 pens are le... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "95", "printed": "95", "notation": null} |
nlprog_det-setting-0073684 | <|start|><|system|>
Answer in plain English.<|eot|>
<|user|>
One can of paint covers 400 square feet. How many cans are needed for 1355 square feet of wall?<|eot|>
<|assistant|>
Buy 4 cans.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer in plain English."
},
{
"role": "user",
"content": "One can of paint covers 400 square feet. How many cans are needed for 1355 square feet of wall?"
},
{
"role": "assistant",
"content": "Buy 4 cans."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 51 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0073685 | How many units at $30 each (variable cost $26) cover $1,200 of fixed costs?
Written as code:
import math
fixed = 1200
price = 30
variable = 26
units = math.ceil(fixed / (price - variable)) # 300
print(units)
On running, it outputs: 300
300 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0073686 | <|start|><|system|>
Functions:
[{"name": "calc", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "convert_units", "description": "Convert a quantity... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"calc\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\"]}}, {\"na... | nlprog_det | setting | original | null | deterministic | [] | [] | 386 | {"gold": "2030-02-26", "printed": "2030-02-26", "notation": null} |
nlprog_det-setting-0073687 | How many weekdays (Monday to Friday) fall after February 21, 2027 up to and including March 3, 2027?
Python code:
```python
from datetime import date, timedelta
start = date(2027, 2, 21)
end = date(2027, 3, 3)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekday() < 5:
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 157 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0073688 | A court charges $15 per request plus $0.50 per page after the first 10 pages. What does a 51-page copy cost?
```python
pages = 51
base = 15
per_page = 0.5
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 35.5
print(f"{cost:.2f}")
```
The program outputs 35.50.
The total is $35.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "35.50", "printed": "35.50", "notation": null} |
nlprog_det-setting-0073689 | Attendance was 24 out of 25. Express it as a percent.
Python version:
```python
present = 24
total = 25
percent = present / total * 100 # 96.0
print(round(percent, 1))
```
The interpreter prints: 96.0
Attendance was 96.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "96.0", "printed": "96.0", "notation": null} |
nlprog_det-setting-0073690 | How many weekdays (Monday to Friday) fall after September 13, 2023 up to and including September 28, 2023?
```python
from datetime import date, timedelta
start = date(2023, 9, 13)
end = date(2023, 9, 28)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekday() < 5:
coun... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "11", "printed": "11", "notation": null} |
nlprog_det-setting-0073691 | A appointment starts at 12:45 PM and lasts 75 minutes. When does it end?
The Python version:
```python
start = 12 * 60 + 45
end = start + 75
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
The run gives: 2:00 PM
It ends at 2:00 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "2:00 PM", "printed": "2:00 PM", "notation": null} |
nlprog_det-setting-0073692 | <|start|><|user|>
The paralegal logged 7 hours at a rate of $350. How much is billed?<|eot|>
<|assistant|>
```python
hours = 7
rate = 350
bill = hours * rate # 2450
print(f"{bill:.2f}")
```
The program prints: 2450.00
The bill is $2,450.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The paralegal logged 7 hours at a rate of $350. How much is billed?"
},
{
"role": "assistant",
"content": "```python\nhours = 7\nrate = 350\nbill = hours * rate # 2450\nprint(f\"{bill:.2f}\")\n```\nThe program prints: 2450.00\n\nThe bill is $2,450.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "2450.00", "printed": "2450.00", "notation": null} |
nlprog_det-setting-0073693 | What is 10 degrees Celsius in Fahrenheit?
```python
celsius = 10
fahrenheit = celsius * 9 / 5 + 32 # 50.0
print(round(fahrenheit))
```
Execution prints 50.
That is 50 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0073694 | How many days are there from December 11, 2018 to November 18, 2019?
A Python solution:
```python
from datetime import date
first = date(2018, 12, 11) # datetime.date(2018, 12, 11)
second = date(2019, 11, 18) # datetime.date(2019, 11, 18)
print((second - first).days)
```
On running, it outputs 342.
There are 342 da... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "342", "printed": "342", "notation": null} |
nlprog_det-setting-0073695 | 6 bike rides at 150 calories each burn how many calories in total?
Python makes this quick:
```python
per_session = 150
sessions = 6
total = per_session * sessions # 900
print(total)
```
Printed — 900
That burns 900 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0073696 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "run_python", "descript... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\":... | nlprog_det | setting | original | null | deterministic | [] | [] | 431 | {"gold": "2015-12-01", "printed": "2015-12-01", "notation": null} |
nlprog_det-setting-0073697 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "compute", "description": "A Python ... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\... | nlprog_det | setting | original | null | deterministic | [] | [] | 304 | {"gold": "212.55", "printed": "212.55", "notation": null} |
nlprog_det-setting-0073698 | <|start|><|user|>
A 30 lb package ships at $5 base plus $2.00/lb. What is the charge?<|eot|>
<|assistant|>
```python
base = 5
per_pound = 2.0
weight = 30
cost = base + per_pound * weight # 65.0
print(f"{cost:.2f}")
```
Running it prints 65.00, as expected.
Shipping costs $65.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 30 lb package ships at $5 base plus $2.00/lb. What is the charge?"
},
{
"role": "assistant",
"content": "```python\nbase = 5\nper_pound = 2.0\nweight = 30\ncost = base + per_pound * weight # 65.0\nprint(f\"{cost:.2f}\")\n```\nRunning it prints 65.00, as expected.... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "65.00", "printed": "65.00", "notation": null} |
nlprog_det-setting-0073699 | A 5-day trip pays $69 a day for meals and $110 a night for lodging (4 nights). What is the total allowance?
Python, step by step:
```python
days = 5
meal_rate = 69
lodging_rate = 110
nights = days - 1 # 4
total = days * meal_rate + nights * lodging_rate # 785
print(total)
```
# out: 785
That comes to $785. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "785", "printed": "785", "notation": null} |
nlprog_det-setting-0073701 | A count moves from 800 to 840. By what percent did it change (use a minus sign for a drop)?
Here is a short program for it.
```python
old = 800
new = 840
change = (new - old) / old * 100 # 5.0
print(round(change))
```
Console output — 5
The change is 5%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0073702 | <|start|><|system|>
Tools (call with JSON):
{"name": "calculator", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|>
<|user|>
The landlord deducts $75 and $12... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n{\"name\": \"calculator\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"cod... | nlprog_det | setting | original | null | deterministic | [] | [] | 211 | {"gold": "605", "printed": "605", "notation": null} |
nlprog_det-setting-0073703 | <|start|><|user|>
Each of Kaito's swims burns 350 calories. How many calories over 5 swims?<|eot|>
<|assistant|>
```python
per_session = 350
sessions = 5
total = per_session * sessions # 1750
print(total)
```
The program prints: 1750
1750 calories in total.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each of Kaito's swims burns 350 calories. How many calories over 5 swims?"
},
{
"role": "assistant",
"content": "```python\nper_session = 350\nsessions = 5\ntotal = per_session * sessions # 1750\nprint(total)\n```\nThe program prints: 1750\n\n1750 calories in total... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "1750", "printed": "1750", "notation": null} |
nlprog_det-setting-0073704 | A 30-day notice period begins on August 18, 2020. On what date does it end?
We write it as a program:
```python
from datetime import date, timedelta
start = date(2020, 8, 18) # datetime.date(2020, 8, 18)
end = start + timedelta(days=30) # datetime.date(2020, 9, 17)
print(end.isoformat())
```
The program outputs 2020... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "2020-09-17", "printed": "2020-09-17", "notation": null} |
nlprog_det-setting-0073705 | <|start|><|user|>
A lease runs for 12 months at $1,200 per month. How much rent is paid over the whole term?<|eot|>
<|assistant|>
The rent over the term is $14,400.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lease runs for 12 months at $1,200 per month. How much rent is paid over the whole term?"
},
{
"role": "assistant",
"content": "The rent over the term is $14,400."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "14400", "printed": "14400", "notation": null} |
nlprog_det-setting-0073706 | <|start|><|user|>
Fixed costs are $1,200. Each unit sells for $20 and costs $10 to make. How many units must be sold to break even?<|eot|>
<|assistant|>
```python
import math
fixed = 1200
price = 20
variable = 10
units = math.ceil(fixed / (price - variable)) # 120
print(units)
```
(Printed: 120)
Break-even is 120 uni... | chat | [
{
"role": "user",
"content": "Fixed costs are $1,200. Each unit sells for $20 and costs $10 to make. How many units must be sold to break even?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 1200\nprice = 20\nvariable = 10\nunits = math.ceil(fixed / (price - variable)) #... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "120", "printed": "120", "notation": null} |
nlprog_det-setting-0073707 | <|start|><|user|>
With 25% off, what does a $75 backpack cost?<|eot|>
<|assistant|>
It costs $56.25.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 25% off, what does a $75 backpack cost?"
},
{
"role": "assistant",
"content": "It costs $56.25."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "56.25", "printed": "56.25", "notation": null} |
nlprog_det-setting-0073708 | Convert 2 h 52 min (the length of a deposition) to minutes.
That is 172 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 25 | {"gold": "172", "printed": "172", "notation": null} |
nlprog_det-setting-0073709 | Convert 5 h 34 min (the length of a hearing) to minutes.
```python
hours = 5
minutes = 34
total_minutes = hours * 60 + minutes
print(total_minutes)
```
# program output: 334
That is 334 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "334", "printed": "334", "notation": null} |
nlprog_det-setting-0073711 | Rafael earns a 5% commission on $66,046 of sales. What is the commission?
Python, step by step:
```python
sales = 66046
rate = 5 / 100 # 0.05
commission = sales * rate # 3302.3
print(f"{commission:.2f}")
```
(Result: 3302.30)
Rafael earns $3,302.30. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "3302.30", "printed": "3302.30", "notation": null} |
nlprog_det-setting-0073712 | <|start|><|user|>
The paralegal logged 12 hours at a rate of $180. How much is billed?<|eot|>
<|assistant|>
hours = 12
rate = 180
bill = hours * rate # 2160
print(f"{bill:.2f}")
stdout:
2160.00
The bill is $2,160.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The paralegal logged 12 hours at a rate of $180. How much is billed?"
},
{
"role": "assistant",
"content": " hours = 12\n rate = 180\n bill = hours * rate # 2160\n print(f\"{bill:.2f}\")\nstdout:\n2160.00\n\nThe bill is $2,160.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "2160.00", "printed": "2160.00", "notation": null} |
nlprog_det-setting-0073713 | <|start|><|user|>
A $9,000 loan carries 5% 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 = 5 / 100 # 0.05
months = 24
interest = principal * annual_rate * months / 12 # 900.0
... | chat | [
{
"role": "user",
"content": "A $9,000 loan carries 5% 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 = 5 / 100 # 0.05\n months = 24\n in... | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "412.50", "printed": "412.50", "notation": null} |
nlprog_det-setting-0073714 | Find the mean of these test scores: 91, 88, 88, 55, 70, 100 and 89.
Python version:
scores = [91, 88, 88, 55, 70, 100, 89]
average = sum(scores) // len(scores) # 83
print(average)
Shell output — 83
The average score is 83. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "83", "printed": "83", "notation": null} |
nlprog_det-setting-0073715 | Fuel for 450 miles at 40 mpg, with gas at $4.59/gallon: what is the cost? Fuel costs $51.64. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "51.64", "printed": "51.64", "notation": null} |
nlprog_det-setting-0073716 | <|start|><|system|>
You check calculations for an accounting team.<|eot|>
<|user|>
Counting the first and last day, how many days are there from March 2, 2024 through March 17, 2024?<|eot|>
<|assistant|>
16 calendar days.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You check calculations for an accounting team."
},
{
"role": "user",
"content": "Counting the first and last day, how many days are there from March 2, 2024 through March 17, 2024?"
},
{
"role": "assistant",
"content": "16 calendar days."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 51 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0073717 | A customer buys 6 headsets at $8 each, 4 batteries at $2 each, 5 cables at $28 each, 6 sticky pads at $23 each and pays with $350. How much change is due?
The program:
```python
items = [(6, 8), (4, 2), (5, 28), (6, 23)]
total = sum(q * p for q, p in items) # 334
paid = 350
change = paid - total # 16
print(change)
`... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0073718 | <|start|><|user|>
Convert 5 °C to Fahrenheit.<|eot|>
<|assistant|>
```python
celsius = 5
fahrenheit = celsius * 9 / 5 + 32
print(round(fahrenheit))
```
That prints: 41
That is 41 °F.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 5 °C to Fahrenheit."
},
{
"role": "assistant",
"content": "```python\ncelsius = 5\nfahrenheit = celsius * 9 / 5 + 32\nprint(round(fahrenheit))\n```\nThat prints: 41\n\nThat is 41 °F."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "41", "printed": "41", "notation": null} |
nlprog_det-setting-0073719 | At 40 miles per hour, how many minutes does a 270-mile trip take?
Coded up:
```python
distance = 270
speed = 40
minutes = distance / speed * 60 # 405.0
print(round(minutes))
```
(Printed result: 405)
The trip takes 405 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "405", "printed": "405", "notation": null} |
nlprog_det-setting-0073720 | <|start|><|user|>
A $180 dinner bill gets a 18% tip, and 4 people share the cost equally. What is each person's share?<|eot|>
<|assistant|>
```python
bill = 180
tip_rate = 18 / 100 # 0.18
people = 4
each = bill * (1 + tip_rate) / people # 53.099999999999994
print(f"{each:.2f}")
```
Running this gives 53.10.
Each per... | chat | [
{
"role": "user",
"content": "A $180 dinner bill gets a 18% tip, and 4 people share the cost equally. What is each person's share?"
},
{
"role": "assistant",
"content": "```python\nbill = 180\ntip_rate = 18 / 100 # 0.18\npeople = 4\neach = bill * (1 + tip_rate) / people # 53.099999999999994\np... | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "53.10", "printed": "53.10", "notation": null} |
nlprog_det-setting-0073721 | <|start|><|user|>
A car gets 20 miles per gallon. Gas is $4.59 a gallon. What does fuel cost for a 360-mile trip?<|eot|>
<|assistant|>
Fuel costs $82.62.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A car gets 20 miles per gallon. Gas is $4.59 a gallon. What does fuel cost for a 360-mile trip?"
},
{
"role": "assistant",
"content": "Fuel costs $82.62."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 49 | {"gold": "82.62", "printed": "82.62", "notation": null} |
nlprog_det-setting-0073722 | Equipment costs $12,000, has a salvage value of $6,000, and a useful life of 4 years. What is the straight-line depreciation per year?
As Python:
```python
cost = 12000
salvage = 6000
years = 4
per_year = (cost - salvage) / years # 1500.0
print(f"{per_year:.2f}")
```
The run gives 1500.00.
Depreciation is $1,500.00 ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "1500.00", "printed": "1500.00", "notation": null} |
nlprog_det-setting-0073723 | A claim accrued on March 23, 2023. The limitations period is 5 years. On what date does it expire?
The period expires on March 23, 2028. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "2028-03-23", "printed": "2028-03-23", "notation": null} |
nlprog_det-setting-0073724 | <|start|><|user|>
Of a $5,000 budget, $2,100 has been spent. What percent is that?<|eot|>
<|assistant|>
```python
budget = 5000
spent = 2100
percent = spent / budget * 100 # 42.0
print(round(percent, 1))
```
It outputs 42.0.
That is 42.0% of the budget.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Of a $5,000 budget, $2,100 has been spent. What percent is that?"
},
{
"role": "assistant",
"content": "```python\nbudget = 5000\nspent = 2100\npercent = spent / budget * 100 # 42.0\nprint(round(percent, 1))\n```\nIt outputs 42.0.\n\nThat is 42.0% of the budget."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "42.0", "printed": "42.0", "notation": null} |
nlprog_det-setting-0073726 | A lease runs for 12 months at $3,250 per month. How much rent is paid over the whole term?
Written as code:
```python
monthly_rent = 3250
months = 12
total = monthly_rent * months # 39000
print(total)
```
stdout:
39000
The rent over the term is $39,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "39000", "printed": "39000", "notation": null} |
nlprog_det-setting-0073728 | <|start|><|user|>
Noor was born on June 5, 1972. How old is Noor on September 28, 2029?<|eot|>
<|assistant|>
The age is 57 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Noor was born on June 5, 1972. How old is Noor on September 28, 2029?"
},
{
"role": "assistant",
"content": "The age is 57 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "57", "printed": "57", "notation": null} |
nlprog_det-setting-0073729 | A 23 lb package ships at $10 base plus $2.50/lb. What is the charge?
A few lines of Python do it:
base = 10
per_pound = 2.5
weight = 23
cost = base + per_pound * weight
print(f"{cost:.2f}")
Output of the run — 67.50
The charge is $67.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "67.50", "printed": "67.50", "notation": null} |
nlprog_det-setting-0073730 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "code_runner", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|>
<|user|>
What simple interest does... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"code_runner\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [... | nlprog_det | setting | original | null | deterministic | [] | [] | 227 | {"gold": "6000.00", "printed": "6000.00", "notation": null} |
nlprog_det-setting-0073731 | <|start|><|user|>
Each of Quinn's walks burns 200 calories. How many calories over 4 walks?<|eot|>
<|assistant|>
per_session = 200
sessions = 4
total = per_session * sessions # 800
print(total)
Printed result — 800
800 calories in total.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each of Quinn's walks burns 200 calories. How many calories over 4 walks?"
},
{
"role": "assistant",
"content": " per_session = 200\n sessions = 4\n total = per_session * sessions # 800\n print(total)\nPrinted result — 800\n\n800 calories in total."
}... | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "800", "printed": "800", "notation": null} |
nlprog_det-setting-0073732 | <|start|><|user|>
Monthly rent is $1,800. A tenant moves in with 19 days left in a 31-day month. What is the prorated rent?<|eot|>
<|assistant|>
The tenant owes $1,103.23.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Monthly rent is $1,800. A tenant moves in with 19 days left in a 31-day month. What is the prorated rent?"
},
{
"role": "assistant",
"content": "The tenant owes $1,103.23."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 53 | {"gold": "1103.23", "printed": "1103.23", "notation": null} |
nlprog_det-setting-0073733 | <|start|><|system|>
You have access to these functions:
[{"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": "py_exec", "descriptio... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"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\": ... | nlprog_det | setting | original | null | deterministic | [] | [] | 384 | {"gold": "Saturday", "printed": "Saturday", "notation": null} |
nlprog_det-setting-0073734 | With 20% off, what does a $45 bicycle helmet cost?
```python
price = 45
discount = 20 / 100 # 0.2
sale_price = price * (1 - discount) # 36.0
print(f"{sale_price:.2f}")
```
The code prints: 36.00
It costs $36.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "36.00", "printed": "36.00", "notation": null} |
nlprog_det-setting-0073735 | <|start|><|user|>
A hearing starts at 8:15 AM and lasts 105 minutes. When does it end?<|eot|>
<|assistant|>
start = 8 * 60 + 15
end = start + 105
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
The program prints 10:00 AM.
It ends at 10:00 AM.<|... | chat | [
{
"role": "user",
"content": "A hearing starts at 8:15 AM and lasts 105 minutes. When does it end?"
},
{
"role": "assistant",
"content": " start = 8 * 60 + 15\n end = start + 105\n hour, minute = divmod(end, 60)\n print(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'P... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "10:00 AM", "printed": "10:00 AM", "notation": null} |
nlprog_det-setting-0073736 | Fines run at $25 per day up to a maximum of $1,000. How much after 32 days?
The Python version:
```python
per_day = 25
days = 32
cap = 1000
fine = min(per_day * days, cap) # 800
print(fine)
```
Output = 800
The fine is $800. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "800", "printed": "800", "notation": null} |
nlprog_det-setting-0073737 | A shift runs from 11:52 AM to 1:22 PM. How long is it in minutes?
```python
start = 11 * 60 + 52 # 712
end = 13 * 60 + 22 # 802
print(end - start)
```
# stdout: 90
90 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "90", "printed": "90", "notation": null} |
nlprog_det-setting-0073738 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"name": "py_exec", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}
{"name": "t... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"py_exec\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python sou... | nlprog_det | setting | original | null | deterministic | [] | [] | 289 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0073739 | <|start|><|system|>
Tools (call with JSON):
[{"name": "compute", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
Counting the first and last day, how... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"compute\", \"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 | [] | [] | 235 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0073741 | <|start|><|user|>
A measure needs at least 67% of 37 votes. How many votes is that, rounded up?<|eot|>
<|assistant|>
```python
import math
voters = 37
needed = math.ceil(voters * 67 / 100) # 25
print(needed)
```
The printout reads: 25
At least 25 votes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A measure needs at least 67% of 37 votes. How many votes is that, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 37\nneeded = math.ceil(voters * 67 / 100) # 25\nprint(needed)\n```\nThe printout reads: 25\n\nAt least 25 votes."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0073742 | <|start|><|user|>
How much sales tax is charged on a $421.56 purchase at 4%?<|eot|>
<|assistant|>
```python
price = 421.56
tax_rate = 4 / 100 # 0.04
tax = price * tax_rate # 16.8624
print(f"{tax:.2f}")
```
Run it and it prints 16.86.
$16.86 in tax.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How much sales tax is charged on a $421.56 purchase at 4%?"
},
{
"role": "assistant",
"content": "```python\nprice = 421.56\ntax_rate = 4 / 100 # 0.04\ntax = price * tax_rate # 16.8624\nprint(f\"{tax:.2f}\")\n```\nRun it and it prints 16.86.\n\n$16.86 in tax."
}... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "16.86", "printed": "16.86", "notation": null} |
nlprog_det-setting-0073743 | Convert 35.6 km to meters.
35,600 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 20 | {"gold": "35600", "printed": "35600", "notation": null} |
nlprog_det-setting-0073744 | A penalty of $50 a day accrues, capped at $2,500. What is owed after 59 days?
```python
per_day = 50
days = 59
cap = 2500
fine = min(per_day * days, cap) # 2500
print(fine)
```
The run gives 2500, as expected.
$2,500 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "2500", "printed": "2500", "notation": null} |
nlprog_det-setting-0073746 | Convert 30 °C to Fahrenheit.
Program:
celsius = 30
fahrenheit = celsius * 9 / 5 + 32 # 86.0
print(round(fahrenheit))
Console output — 86
It equals 86 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "86", "printed": "86", "notation": null} |
nlprog_det-setting-0073747 | A court charges $10 per request plus $0.10 per page after the first 0 pages. What does a 71-page copy cost?
Program:
```python
pages = 71
base = 10
per_page = 0.1
free_pages = 0
cost = base + max(0, pages - free_pages) * per_page # 17.1
print(f"{cost:.2f}")
```
Run output — 17.10
The copy costs $17.10. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "17.10", "printed": "17.10", "notation": null} |
nlprog_det-setting-0073748 | What commission does Emeka make on $46,515 in sales at 6%?
Written as code:
```python
sales = 46515
rate = 6 / 100 # 0.06
commission = sales * rate # 2790.9
print(f"{commission:.2f}")
```
Printed — 2790.90
The commission is $2,790.90. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "2790.90", "printed": "2790.90", "notation": null} |
nlprog_det-setting-0073749 | A clerk's office charges $150 for each filing. Amir submits 11 filings. What is the total fee?
Script:
```python
fee = 150
filings = 11
total = fee * filings # 1650
print(total)
```
(Output: 1650)
The filings cost $1,650 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "1650", "printed": "1650", "notation": null} |
nlprog_det-setting-0073750 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "calc", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
Goods bought on... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"calc\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"re... | nlprog_det | setting | original | null | deterministic | [] | [] | 276 | {"gold": "2029-11-20", "printed": "2029-11-20", "notation": null} |
nlprog_det-setting-0073751 | <|start|><|user|>
A service costs $12 a month or $108 a year. How much does the yearly plan save over 12 monthly payments?<|eot|>
<|assistant|>
```python
monthly = 12
yearly = 108
savings = monthly * 12 - yearly # 36
print(savings)
```
Running it prints: 36
The annual plan saves $36.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A service costs $12 a month or $108 a year. How much does the yearly plan save over 12 monthly payments?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 12\nyearly = 108\nsavings = monthly * 12 - yearly # 36\nprint(savings)\n```\nRunning it prints: 36\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0073752 | How many of 115 votes make 60% (round up)?
In Python:
```python
import math
voters = 115
needed = math.ceil(voters * 60 / 100) # 69
print(needed)
```
stdout: 69
At least 69 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "69", "printed": "69", "notation": null} |
nlprog_det-setting-0073754 | <|start|><|user|>
Starting from $5,000, the team spends $2,287, $3,848, $3,901. What remains?<|eot|>
<|assistant|>
```python
budget = 5000
expenses = [2287, 3848, 3901]
left = budget - sum(expenses) # -5036
print(left)
```
# out: -5036
The remaining budget is -$5,036.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting from $5,000, the team spends $2,287, $3,848, $3,901. What remains?"
},
{
"role": "assistant",
"content": "```python\nbudget = 5000\nexpenses = [2287, 3848, 3901]\nleft = budget - sum(expenses) # -5036\nprint(left)\n```\n# out: -5036\n\nThe remaining budget... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "-5036", "printed": "-5036", "notation": null} |
nlprog_det-setting-0073755 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
After an initial $3,000, the remainder of a $24,000 grant is paid in 12 equal parts. What is each part?<|eot|>
<|assistant|>
grant = 24000
up_front = 3000
installments = 12
each = (grant - up_front) / installments # 1750.0
p... | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "After an initial $3,000, the remainder of a $24,000 grant is paid in 12 equal parts. What is each part?"
},
{
"role": "assistant",
"content": " grant = 24000\n up_front = 30... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "1750.00", "printed": "1750.00", "notation": null} |
nlprog_det-setting-0073756 | <|start|><|user|>
What day of the week is April 1, 2008?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(2008, 4, 1) # datetime.date(2008, 4, 1)
print(hearing.strftime("%A"))
```
The program outputs Tuesday.
April 1, 2008 is a Tuesday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What day of the week is April 1, 2008?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(2008, 4, 1) # datetime.date(2008, 4, 1)\nprint(hearing.strftime(\"%A\"))\n```\nThe program outputs Tuesday.\n\nApril 1, 2008 is a Tues... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "Tuesday", "printed": "Tuesday", "notation": null} |
nlprog_det-setting-0073757 | <|start|><|user|>
Walls total 1242 sq ft and each can covers 300 sq ft. How many cans should be bought?<|eot|>
<|assistant|>
5 cans are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Walls total 1242 sq ft and each can covers 300 sq ft. How many cans should be bought?"
},
{
"role": "assistant",
"content": "5 cans are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0073758 | <|start|><|user|>
9 boxes hold 25 lanyards each. After 17 are handed out, how many are left?<|eot|>
<|assistant|>
boxes = 9
per_box = 25
given_away = 17
left = boxes * per_box - given_away # 208
print(left)
Execution prints 208, as expected.
That leaves 208 lanyards.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "9 boxes hold 25 lanyards each. After 17 are handed out, how many are left?"
},
{
"role": "assistant",
"content": " boxes = 9\n per_box = 25\n given_away = 17\n left = boxes * per_box - given_away # 208\n print(left)\nExecution prints 208, as expected... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "208", "printed": "208", "notation": null} |
nlprog_det-setting-0073759 | Find the mean of these test scores: 88, 97, 100, 65 and 75.
We write it as a program:
```python
scores = [88, 97, 100, 65, 75]
average = sum(scores) // len(scores) # 85
print(average)
```
Run result = 85
The mean is 85. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "85", "printed": "85", "notation": null} |
nlprog_det-setting-0073760 | A $3,600 loan carries 10% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?
The Python version:
principal = 3600
annual_rate = 10 / 100 # 0.1
months = 36
interest = principal * annual_rate * months / 12 # 1080.0
payment = (pr... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "130.00", "printed": "130.00", "notation": null} |
nlprog_det-setting-0073761 | <|start|><|system|>
Tools (call with JSON):
{"name": "python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|>
<|user|>
Shipping costs $10 plus $2.00 per pound... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n{\"name\": \"python\", \"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 | [] | [] | 231 | {"gold": "38.00", "printed": "38.00", "notation": null} |
nlprog_det-setting-0073762 | Convert 30 °C to Fahrenheit.
In Python:
```python
celsius = 30
fahrenheit = celsius * 9 / 5 + 32 # 86.0
print(round(fahrenheit))
```
Running it prints 86, as expected.
It equals 86 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "86", "printed": "86", "notation": null} |
nlprog_det-setting-0073763 | <|start|><|user|>
Copies cost $15 plus $0.25 for each page beyond 10. How much for 82 pages?<|eot|>
<|assistant|>
```python
pages = 82
base = 15
per_page = 0.25
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 33.0
print(f"{cost:.2f}")
```
When run, it prints 33.00.
The total is $33.00.<|eot|>
<|... | chat | [
{
"role": "user",
"content": "Copies cost $15 plus $0.25 for each page beyond 10. How much for 82 pages?"
},
{
"role": "assistant",
"content": "```python\npages = 82\nbase = 15\nper_page = 0.25\nfree_pages = 10\ncost = base + max(0, pages - free_pages) * per_page # 33.0\nprint(f\"{cost:.2f}\")\... | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "33.00", "printed": "33.00", "notation": null} |
nlprog_det-setting-0073764 | <|start|><|user|>
A 24-month warranty starts on April 27, 2027. On what date does it end?<|eot|>
<|assistant|>
The warranty ends on April 27, 2029.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 24-month warranty starts on April 27, 2027. On what date does it end?"
},
{
"role": "assistant",
"content": "The warranty ends on April 27, 2029."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "2029-04-27", "printed": "2029-04-27", "notation": null} |
nlprog_det-setting-0073765 | Monthly: $9. Annual: $78. What is saved per year by paying annually?
Code:
monthly = 9
yearly = 78
savings = monthly * 12 - yearly # 30
print(savings)
Printed result — 30
$30 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 71 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0073766 | How many meters are in 20.5 kilometers?
20,500 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 22 | {"gold": "20500", "printed": "20500", "notation": null} |
nlprog_det-setting-0073767 | Convert 25 °C to Fahrenheit.
The computation:
```python
celsius = 25
fahrenheit = celsius * 9 / 5 + 32 # 77.0
print(round(fahrenheit))
```
What it prints — 77
That is 77 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "77", "printed": "77", "notation": null} |
nlprog_det-setting-0073768 | <|start|><|system|>
Give the answer first.<|eot|>
<|user|>
Goods bought on February 13, 2018 carry a 12-month warranty. When does it expire?<|eot|>
<|assistant|>
The warranty ends on February 13, 2019.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Give the answer first."
},
{
"role": "user",
"content": "Goods bought on February 13, 2018 carry a 12-month warranty. When does it expire?"
},
{
"role": "assistant",
"content": "The warranty ends on February 13, 2019."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 53 | {"gold": "2019-02-13", "printed": "2019-02-13", "notation": null} |
nlprog_det-setting-0073769 | <|start|><|system|>
Functions:
[{"name": "code_runner", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
How much sales tax is charged on a $825.15 purchase... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"code_runner\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}]"
},
{
... | nlprog_det | setting | original | null | deterministic | [] | [] | 212 | {"gold": "33.01", "printed": "33.01", "notation": null} |
nlprog_det-setting-0073770 | <|start|><|user|>
Each storage box holds 12 files. How many boxes are needed for 743 files?<|eot|>
<|assistant|>
```python
import math
files = 743
per_box = 12
boxes = math.ceil(files / per_box) # 62
print(boxes)
```
The program prints 62.
It takes 62 boxes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each storage box holds 12 files. How many boxes are needed for 743 files?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 743\nper_box = 12\nboxes = math.ceil(files / per_box) # 62\nprint(boxes)\n```\nThe program prints 62.\n\nIt takes 62 box... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "62", "printed": "62", "notation": null} |
nlprog_det-setting-0073771 | How many whole days and leftover hours are in 318 hours?
Let's compute it with Python.
```python
hours = 318
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
It outputs: 13 days and 6 hours
That is 13 days and 6 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "13 days and 6 hours", "printed": "13 days and 6 hours", "notation": null} |
nlprog_det-setting-0073772 | At 1% a month (simple), what interest builds on $12,000 over 6 months?
The Python version:
```python
balance = 12000
monthly_rate = 1 / 100 # 0.01
months = 6
interest = balance * monthly_rate * months # 720.0
print(f"{interest:.2f}")
```
Interpreter output — 720.00
$720.00 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "720.00", "printed": "720.00", "notation": null} |
nlprog_det-setting-0073774 | What day of the week is August 3, 2006?
Python:
from datetime import date
hearing = date(2006, 8, 3) # datetime.date(2006, 8, 3)
print(hearing.strftime("%A"))
The script prints Thursday.
August 3, 2006 is a Thursday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "Thursday", "printed": "Thursday", "notation": null} |
nlprog_det-setting-0073775 | A trial runs from February 27, 2026 to March 19, 2026, counting both days. How many calendar days is that?
Here's the code.
```python
from datetime import date
first = date(2026, 2, 27) # datetime.date(2026, 2, 27)
last = date(2026, 3, 19) # datetime.date(2026, 3, 19)
days = (last - first).days + 1 # 21
print(days)... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "21", "printed": "21", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.