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-0069383 | At $0.67 per mile, what is the reimbursement for 331 miles?
Uma is owed $221.77. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "221.77", "printed": "221.77", "notation": null} |
nlprog_det-setting-0069384 | A lawyer's fee is 33% of a $90,000 recovery. How large is the fee?
Here's the code.
```python
recovery = 90000
rate = 33 / 100 # 0.33
fee = recovery * rate # 29700.0
print(f"{fee:.2f}")
```
Program output — 29700.00
The lawyer's fee comes to $29,700.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "29700.00", "printed": "29700.00", "notation": null} |
nlprog_det-setting-0069385 | Fixed costs are $2,500. Each unit sells for $40 and costs $32 to make. How many units must be sold to break even?
As Python:
import math
fixed = 2500
price = 40
variable = 32
units = math.ceil(fixed / (price - variable)) # 313
print(units)
(Printed result: 313)
Break-even is 313 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "313", "printed": "313", "notation": null} |
nlprog_det-setting-0069386 | A $120 dinner bill gets a 18% tip, and 4 people share the cost equally. What is each person's share?
Python makes this quick:
```python
bill = 120
tip_rate = 18 / 100 # 0.18
people = 4
each = bill * (1 + tip_rate) / people # 35.4
print(f"{each:.2f}")
```
On running, it outputs: 35.40
Each person pays $35.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "35.40", "printed": "35.40", "notation": null} |
nlprog_det-setting-0069387 | <|start|><|system|>
You can call tools. Available tools:
{"name": "python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}
{"name": "fetch_filing", "description": "Fet... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"s... | nlprog_det | setting | original | null | deterministic | [] | [] | 277 | {"gold": "-50", "printed": "-50", "notation": null} |
nlprog_det-setting-0069388 | <|start|><|system|>
You may call the tools below.
{"name": "python_exec", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}
{"name": "fetch_filing"... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n{\"name\": \"python_exec\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}... | nlprog_det | setting | original | null | deterministic | [] | [] | 296 | {"gold": "125", "printed": "125", "notation": null} |
nlprog_det-setting-0069390 | <|start|><|system|>
Tools you may use:
[{"name": "math_engine", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
Convert 0 °C to Fahrenheit.<|eot|>
<|... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"math_engine\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\"]}}... | nlprog_det | setting | original | null | deterministic | [] | [] | 213 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0069391 | Divide 188 items among 6 groups as evenly as possible with equal groups. How many per group, and how many remain?
Written as code:
```python
total = 188
groups = 6
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Run it and it prints 31 each, 2 left over.
The answer: ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "31 each, 2 left over", "printed": "31 each, 2 left over", "notation": null} |
nlprog_det-setting-0069392 | <|start|><|system|>
Functions:
{"name": "eval_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|user|>
A $96 dinner bill gets a 15% tip, and 2 p... | chat | [
{
"role": "system",
"content": "Functions:\n{\"name\": \"eval_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}"
... | nlprog_det | setting | original | null | deterministic | [] | [] | 236 | {"gold": "55.20", "printed": "55.20", "notation": null} |
nlprog_det-setting-0069393 | What simple interest does $20,000 earn at 6% a year over 6 years?
Python version:
```python
principal = 20000
rate = 6 / 100 # 0.06
years = 6
interest = principal * rate * years # 7200.0
print(f"{interest:.2f}")
```
The code prints: 7200.00
It earns $7,200.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "7200.00", "printed": "7200.00", "notation": null} |
nlprog_det-setting-0069394 | From a $5,000 retainer, 5 hours at $250/hour have been drawn. What remains?
Programmatically:
```python
retainer = 5000
hours = 5
rate = 250
left = retainer - hours * rate # 3750
print(left)
```
It prints 3750, as expected.
The remaining balance is $3,750. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "3750", "printed": "3750", "notation": null} |
nlprog_det-setting-0069395 | A claim accrued on June 18, 2022. The limitations period is 5 years. On what date does it expire?
Python:
from datetime import date
accrued = date(2022, 6, 18) # datetime.date(2022, 6, 18)
years = 5
expires = accrued.replace(year=accrued.year + years) # datetime.date(2027, 6, 18)
print(expires.is... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "2027-06-18", "printed": "2027-06-18", "notation": null} |
nlprog_det-setting-0069396 | <|start|><|user|>
At 1.5% a month (simple), what interest builds on $4,000 over 4 months?<|eot|>
<|assistant|>
The interest is $240.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At 1.5% a month (simple), what interest builds on $4,000 over 4 months?"
},
{
"role": "assistant",
"content": "The interest is $240.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "240.00", "printed": "240.00", "notation": null} |
nlprog_det-setting-0069397 | The landlord deducts $150 from a $800 deposit. What is returned to the tenant?
Python does the arithmetic:
```python
deposit = 800
deductions = [150]
refund = deposit - sum(deductions) # 650
print(refund)
```
Printed result: 650
$650 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "650", "printed": "650", "notation": null} |
nlprog_det-setting-0069398 | <|start|><|user|>
How many weekdays (Monday to Friday) fall after February 7, 2018 up to and including March 15, 2018?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2018, 2, 7)
end = date(2018, 3, 15)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=... | chat | [
{
"role": "user",
"content": "How many weekdays (Monday to Friday) fall after February 7, 2018 up to and including March 15, 2018?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2018, 2, 7)\nend = date(2018, 3, 15)\ncount = 0\nfor k in range(... | nlprog_det | setting | original | null | deterministic | [] | [] | 156 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0069399 | The paralegal logged 1.5 hours at a rate of $350. How much is billed?
Here is a short program for it.
```python
hours = 1.5
rate = 350
bill = hours * rate # 525.0
print(f"{bill:.2f}")
```
(Out: 525.00)
The bill is $525.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "525.00", "printed": "525.00", "notation": null} |
nlprog_det-setting-0069400 | <|start|><|system|>
Tool definitions:
[{"name": "eval_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
Equipment costs $24,000, has a sal... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"eval_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 254 | {"gold": "2750.00", "printed": "2750.00", "notation": null} |
nlprog_det-setting-0069401 | <|start|><|user|>
Shipping costs $10 plus $2.00 per pound. What does a 20-pound parcel cost to ship?<|eot|>
<|assistant|>
base = 10
per_pound = 2.0
weight = 20
cost = base + per_pound * weight
print(f"{cost:.2f}")
stdout = 50.00
Shipping costs $50.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Shipping costs $10 plus $2.00 per pound. What does a 20-pound parcel cost to ship?"
},
{
"role": "assistant",
"content": " base = 10\n per_pound = 2.0\n weight = 20\n cost = base + per_pound * weight\n print(f\"{cost:.2f}\")\nstdout = 50.00\n\nShippin... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "50.00", "printed": "50.00", "notation": null} |
nlprog_det-setting-0069402 | <|start|><|user|>
One can of paint covers 300 square feet. How many cans are needed for 1158 square feet of wall?<|eot|>
<|assistant|>
```python
import math
area = 1158
coverage = 300
cans = math.ceil(area / coverage) # 4
print(cans)
```
Executing it gives 4, as expected.
Buy 4 cans.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "One can of paint covers 300 square feet. How many cans are needed for 1158 square feet of wall?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 1158\ncoverage = 300\ncans = math.ceil(area / coverage) # 4\nprint(cans)\n```\nExecuting it gives 4... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0069403 | What is the total rent on a 12-month lease at $1,640 a month?
Script:
```python
monthly_rent = 1640
months = 12
total = monthly_rent * months # 19680
print(total)
```
The run gives: 19680
The rent over the term is $19,680. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "19680", "printed": "19680", "notation": null} |
nlprog_det-setting-0069404 | <|start|><|user|>
With 22 rows of 22 chairs and 9 empty chairs, how many chairs are taken?<|eot|>
<|assistant|>
```python
rows = 22
per_row = 22
empty = 9
seated = rows * per_row - empty # 475
print(seated)
```
Console output: 475
475 people are seated.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 22 rows of 22 chairs and 9 empty chairs, how many chairs are taken?"
},
{
"role": "assistant",
"content": "```python\nrows = 22\nper_row = 22\nempty = 9\nseated = rows * per_row - empty # 475\nprint(seated)\n```\nConsole output: 475\n\n475 people are seated."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "475", "printed": "475", "notation": null} |
nlprog_det-setting-0069405 | Count 14 days forward from March 3, 2018. What date is that?
One way, in code:
```python
from datetime import date, timedelta
start = date(2018, 3, 3) # datetime.date(2018, 3, 3)
end = start + timedelta(days=14) # datetime.date(2018, 3, 17)
print(end.isoformat())
```
Running this gives: 2018-03-17
It ends on March ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "2018-03-17", "printed": "2018-03-17", "notation": null} |
nlprog_det-setting-0069406 | A $30,000 grant pays $2,000 up front and the rest in 3 equal installments. How large is each installment?
Script:
grant = 30000
up_front = 2000
installments = 3
each = (grant - up_front) / installments # 9333.333333333334
print(f"{each:.2f}")
The program prints: 9333.33
$9,333.33 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "9333.33", "printed": "9333.33", "notation": null} |
nlprog_det-setting-0069407 | From a $10,000 retainer, 3 hours at $200/hour have been drawn. What remains?
$9,400 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "9400", "printed": "9400", "notation": null} |
nlprog_det-setting-0069408 | <|start|><|user|>
At 50 miles per hour, how many minutes does a 50-mile trip take?<|eot|>
<|assistant|>
distance = 50
speed = 50
minutes = distance / speed * 60 # 60.0
print(round(minutes))
Out: 60
60 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At 50 miles per hour, how many minutes does a 50-mile trip take?"
},
{
"role": "assistant",
"content": " distance = 50\n speed = 50\n minutes = distance / speed * 60 # 60.0\n print(round(minutes))\nOut: 60\n\n60 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 66 | {"gold": "60", "printed": "60", "notation": null} |
nlprog_det-setting-0069409 | <|start|><|user|>
Convert -5 °C to Fahrenheit.<|eot|>
<|assistant|>
```python
celsius = -5
fahrenheit = celsius * 9 / 5 + 32 # 23.0
print(round(fahrenheit))
```
# console output: 23
It equals 23 degrees Fahrenheit.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert -5 °C to Fahrenheit."
},
{
"role": "assistant",
"content": "```python\ncelsius = -5\nfahrenheit = celsius * 9 / 5 + 32 # 23.0\nprint(round(fahrenheit))\n```\n# console output: 23\n\nIt equals 23 degrees Fahrenheit."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0069410 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"name": "python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|>
<|user|>
... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source ... | nlprog_det | setting | original | null | deterministic | [] | [] | 206 | {"gold": "-40", "printed": "-40", "notation": null} |
nlprog_det-setting-0069411 | What does $10,000 grow to in 2 years at 2% annual compounding?
The computation:
```python
principal = 10000
rate = 2 / 100 # 0.02
years = 2
value = principal * (1 + rate) ** years # 10404.0
print(f"{value:.2f}")
```
(Printed: 10404.00)
The balance is $10,404.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "10404.00", "printed": "10404.00", "notation": null} |
nlprog_det-setting-0069412 | <|start|><|user|>
107 files go into boxes of 15. How many boxes does that take?<|eot|>
<|assistant|>
8 boxes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "107 files go into boxes of 15. How many boxes does that take?"
},
{
"role": "assistant",
"content": "8 boxes are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0069413 | <|start|><|system|>
You can call tools. Available tools:
{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}
{"name": "calc", "description": "Runs a short Python snippet and returns what it prints.",... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}\n{\"name\": \"calc\", \"description\": ... | nlprog_det | setting | original | null | deterministic | [] | [] | 290 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0069414 | <|start|><|user|>
On which weekday does November 7, 2025 fall?<|eot|>
<|assistant|>
November 7, 2025 is a Friday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "On which weekday does November 7, 2025 fall?"
},
{
"role": "assistant",
"content": "November 7, 2025 is a Friday."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "Friday", "printed": "Friday", "notation": null} |
nlprog_det-setting-0069415 | <|start|><|user|>
A 19 × 13 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?<|eot|>
<|assistant|>
```python
import math
length = 19
width = 13
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 247
print(tiles)
```
Result:
247
247 tiles are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 19 × 13 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 19\nwidth = 13\ntile = 1\ntiles = math.ceil(length * width / (tile * tile)) # 247\nprint(tiles)\n```\nResult:\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "247", "printed": "247", "notation": null} |
nlprog_det-setting-0069416 | Counting only Monday through Friday, how many business days are there after September 26, 2022 through October 31, 2022?
One way, in code:
from datetime import date, timedelta
start = date(2022, 9, 26)
end = date(2022, 10, 31)
count = 0
for k in range(1, (end - start).days + 1):
if (start +... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0069417 | <|start|><|user|>
To read 168 pages in 14 days, how many pages per day are needed?<|eot|>
<|assistant|>
```python
pages = 168
days = 14
per_day = pages // days # 12
print(per_day)
```
Executed, it shows: 12
12 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "To read 168 pages in 14 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": "```python\npages = 168\ndays = 14\nper_day = pages // days # 12\nprint(per_day)\n```\nExecuted, it shows: 12\n\n12 pages a day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0069418 | Pack A has 6 items for $9.24. Pack B has 15 items for $7.29. Which has the lower price per item?
Script:
```python
pack_a = 9.24 / 6 # 1.54
pack_b = 7.29 / 15 # 0.486
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
Execution result — B
B has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0069419 | One can of paint covers 350 square feet. How many cans are needed for 357 square feet of wall?
2 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0069420 | At 1.5% a month (simple), what interest builds on $4,000 over 6 months?
The interest is $360.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "360.00", "printed": "360.00", "notation": null} |
nlprog_det-setting-0069421 | What percentage of $10,000 is $2,200?
Translated to Python:
```python
budget = 10000
spent = 2200
percent = spent / budget * 100 # 22.0
print(round(percent, 1))
```
The interpreter prints 22.0.
That is 22.0% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "22.0", "printed": "22.0", "notation": null} |
nlprog_det-setting-0069422 | <|start|><|user|>
A court charges $5 per request plus $0.10 per page after the first 20 pages. What does a 102-page copy cost?<|eot|>
<|assistant|>
```python
pages = 102
base = 5
per_page = 0.1
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page # 13.200000000000001
print(f"{cost:.2f}")
```
The program... | chat | [
{
"role": "user",
"content": "A court charges $5 per request plus $0.10 per page after the first 20 pages. What does a 102-page copy cost?"
},
{
"role": "assistant",
"content": "```python\npages = 102\nbase = 5\nper_page = 0.1\nfree_pages = 20\ncost = base + max(0, pages - free_pages) * per_page... | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "13.20", "printed": "13.20", "notation": null} |
nlprog_det-setting-0069423 | <|start|><|system|>
You are a data assistant.<|eot|>
<|user|>
2 friends split a $240 bill plus a 15% tip evenly. How much does each pay?<|eot|>
<|assistant|>
bill = 240
tip_rate = 15 / 100 # 0.15
people = 2
each = bill * (1 + tip_rate) / people # 138.0
print(f"{each:.2f}")
The program outputs: 138... | chat | [
{
"role": "system",
"content": "You are a data assistant."
},
{
"role": "user",
"content": "2 friends split a $240 bill plus a 15% tip evenly. How much does each pay?"
},
{
"role": "assistant",
"content": " bill = 240\n tip_rate = 15 / 100 # 0.15\n people = 2\n each = bi... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "138.00", "printed": "138.00", "notation": null} |
nlprog_det-setting-0069424 | A trial runs from April 10, 2019 to April 28, 2019, counting both days. How many calendar days is that?
Script:
```python
from datetime import date
first = date(2019, 4, 10) # datetime.date(2019, 4, 10)
last = date(2019, 4, 28) # datetime.date(2019, 4, 28)
days = (last - first).days + 1 # 19
print(days)
```
Executi... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0069425 | How much sales tax is charged on a $681.93 purchase at 4%?
Python does the arithmetic:
```python
price = 681.93
tax_rate = 4 / 100 # 0.04
tax = price * tax_rate # 27.277199999999997
print(f"{tax:.2f}")
```
stdout:
27.28
$27.28 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "27.28", "printed": "27.28", "notation": null} |
nlprog_det-setting-0069426 | A customer buys 5 labels at $22 each, 5 labels at $17 each and pays with $200. How much change is due?
Here is a short program for it.
items = [(5, 22), (5, 17)]
total = sum(q * p for q, p in items) # 195
paid = 200
change = paid - total # 5
print(change)
Result: 5
$5 comes back. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0069427 | <|start|><|user|>
Noor and Eamon share $329 in the ratio 2:5. How much does Noor get?<|eot|>
<|assistant|>
```python
total = 329
parts_a = 2
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 94
print(share_a)
```
Executing it gives: 94
Noor gets $94.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Noor and Eamon share $329 in the ratio 2:5. How much does Noor get?"
},
{
"role": "assistant",
"content": "```python\ntotal = 329\nparts_a = 2\nparts_b = 5\nshare_a = total * parts_a // (parts_a + parts_b) # 94\nprint(share_a)\n```\nExecuting it gives: 94\n\nNoor g... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "94", "printed": "94", "notation": null} |
nlprog_det-setting-0069428 | What is 25 degrees Celsius in Fahrenheit?
Computing it:
celsius = 25
fahrenheit = celsius * 9 / 5 + 32 # 77.0
print(round(fahrenheit))
The run gives 77, as expected.
It equals 77 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "77", "printed": "77", "notation": null} |
nlprog_det-setting-0069429 | <|start|><|system|>
Be brief and correct.<|eot|>
<|user|>
A 36 lb package ships at $12 base plus $2.00/lb. What is the charge?<|eot|>
<|assistant|>
base = 12
per_pound = 2.0
weight = 36
cost = base + per_pound * weight # 84.0
print(f"{cost:.2f}")
(Console output: 84.00)
Shipping costs $84.00.<|eot... | chat | [
{
"role": "system",
"content": "Be brief and correct."
},
{
"role": "user",
"content": "A 36 lb package ships at $12 base plus $2.00/lb. What is the charge?"
},
{
"role": "assistant",
"content": " base = 12\n per_pound = 2.0\n weight = 36\n cost = base + per_pound * weigh... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "84.00", "printed": "84.00", "notation": null} |
nlprog_det-setting-0069430 | <|start|><|user|>
A car travels 411 miles in 1.5 hours. What is its average speed in miles per hour?<|eot|>
<|assistant|>
```python
distance = 411
hours = 1.5
speed = distance / hours # 274.0
print(round(speed))
```
Program output: 274
It averages 274 miles per hour.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A car travels 411 miles in 1.5 hours. What is its average speed in miles per hour?"
},
{
"role": "assistant",
"content": "```python\ndistance = 411\nhours = 1.5\nspeed = distance / hours # 274.0\nprint(round(speed))\n```\nProgram output: 274\n\nIt averages 274 mile... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "274", "printed": "274", "notation": null} |
nlprog_det-setting-0069432 | <|start|><|user|>
4 hours of work at $410 an hour: what is the total charge?<|eot|>
<|assistant|>
```python
hours = 4
rate = 410
bill = hours * rate # 1640
print(f"{bill:.2f}")
```
Running it prints 1640.00.
That comes to $1,640.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "4 hours of work at $410 an hour: what is the total charge?"
},
{
"role": "assistant",
"content": "```python\nhours = 4\nrate = 410\nbill = hours * rate # 1640\nprint(f\"{bill:.2f}\")\n```\nRunning it prints 1640.00.\n\nThat comes to $1,640.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "1640.00", "printed": "1640.00", "notation": null} |
nlprog_det-setting-0069433 | What is the total rent on a 6-month lease at $2,875 a month?
Written as code:
```python
monthly_rent = 2875
months = 6
total = monthly_rent * months # 17250
print(total)
```
Execution result: 17250
The rent over the term is $17,250. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "17250", "printed": "17250", "notation": null} |
nlprog_det-setting-0069434 | Sami lends $1,000 at 2% simple interest per year for 6 years. How much interest is earned?
As a program:
principal = 1000
rate = 2 / 100 # 0.02
years = 6
interest = principal * rate * years # 120.0
print(f"{interest:.2f}")
When run, it prints 120.00.
The interest is $120.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "120.00", "printed": "120.00", "notation": null} |
nlprog_det-setting-0069435 | A meeting starts at 10:30 AM and lasts 135 minutes. When does it end?
It ends at 12:45 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "12:45 PM", "printed": "12:45 PM", "notation": null} |
nlprog_det-setting-0069436 | Counting only Monday through Friday, how many business days are there after February 9, 2025 through February 23, 2025?
Code:
```python
from datetime import date, timedelta
start = date(2025, 2, 9)
end = date(2025, 2, 23)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekday()... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 156 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0069437 | With 16 rows of 22 chairs and 16 empty chairs, how many chairs are taken?
Computing it:
```python
rows = 16
per_row = 22
empty = 16
seated = rows * per_row - empty # 336
print(seated)
```
Out — 336
336 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "336", "printed": "336", "notation": null} |
nlprog_det-setting-0069438 | A hearing is set for October 4, 2006. What day of the week is that?
Python:
from datetime import date
hearing = date(2006, 10, 4) # datetime.date(2006, 10, 4)
print(hearing.strftime("%A"))
Running it prints: Wednesday
It is a Wednesday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "Wednesday", "printed": "Wednesday", "notation": null} |
nlprog_det-setting-0069439 | <|start|><|system|>
You are a careful assistant.<|eot|>
<|user|>
A lease runs for 18 months at $1,640 per month. How much rent is paid over the whole term?<|eot|>
<|assistant|>
```python
monthly_rent = 1640
months = 18
total = monthly_rent * months # 29520
print(total)
```
The printout reads 29520.
The rent over the ... | chat | [
{
"role": "system",
"content": "You are a careful assistant."
},
{
"role": "user",
"content": "A lease runs for 18 months at $1,640 per month. How much rent is paid over the whole term?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 1640\nmonths = 18\ntotal = monthl... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "29520", "printed": "29520", "notation": null} |
nlprog_det-setting-0069440 | Farah lends $2,500 at 8% simple interest per year for 4 years. How much interest is earned?
Here is a short program for it.
```python
principal = 2500
rate = 8 / 100 # 0.08
years = 4
interest = principal * rate * years # 800.0
print(f"{interest:.2f}")
```
# program output: 800.00
The interest is $800.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "800.00", "printed": "800.00", "notation": null} |
nlprog_det-setting-0069441 | At $23.95 an hour, what does 40 hours of work pay?
We can compute it in Python.
```python
rate = 23.95
hours = 40
earnings = rate * hours # 958.0
print(f"{earnings:.2f}")
```
Console output: 958.00
The pay is $958.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "958.00", "printed": "958.00", "notation": null} |
nlprog_det-setting-0069442 | <|start|><|user|>
How many minutes pass from 11:56 AM to 2:38 PM on the same day?<|eot|>
<|assistant|>
```python
start = 11 * 60 + 56 # 716
end = 14 * 60 + 38 # 878
print(end - start)
```
This prints 162, as expected.
It is 162 minutes long.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many minutes pass from 11:56 AM to 2:38 PM on the same day?"
},
{
"role": "assistant",
"content": "```python\nstart = 11 * 60 + 56 # 716\nend = 14 * 60 + 38 # 878\nprint(end - start)\n```\nThis prints 162, as expected.\n\nIt is 162 minutes long."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "162", "printed": "162", "notation": null} |
nlprog_det-setting-0069443 | What is the total rent on a 12-month lease at $1,475 a month?
Python, step by step:
```python
monthly_rent = 1475
months = 12
total = monthly_rent * months # 17700
print(total)
```
Program output: 17700
In total, $17,700 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "17700", "printed": "17700", "notation": null} |
nlprog_det-setting-0069444 | <|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": "code_runner", "descri... | 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 | [] | [] | 308 | {"gold": "6870", "printed": "6870", "notation": null} |
nlprog_det-setting-0069445 | <|start|><|user|>
Buying 4 calendars at $17 each, 2 desk lamps at $25 each, 3 water bottles at $30 each, 6 chairs at $22 each, someone hands over $350. What change comes back?<|eot|>
<|assistant|>
items = [(4, 17), (2, 25), (3, 30), (6, 22)]
total = sum(q * p for q, p in items) # 340
paid = 350
change ... | chat | [
{
"role": "user",
"content": "Buying 4 calendars at $17 each, 2 desk lamps at $25 each, 3 water bottles at $30 each, 6 chairs at $22 each, someone hands over $350. What change comes back?"
},
{
"role": "assistant",
"content": " items = [(4, 17), (2, 25), (3, 30), (6, 22)]\n total = sum(q *... | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0069447 | Straight-line depreciation: cost $12,000, salvage $6,000, 4 years. How much per year?
In Python:
```python
cost = 12000
salvage = 6000
years = 4
per_year = (cost - salvage) / years # 1500.0
print(f"{per_year:.2f}")
```
When run, it prints: 1500.00
$1,500.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "1500.00", "printed": "1500.00", "notation": null} |
nlprog_det-setting-0069448 | 12 hours of work at $410 an hour: what is the total charge?
Coded up:
```python
hours = 12
rate = 410
bill = hours * rate # 4920
print(f"{bill:.2f}")
```
Result:
4920.00
The bill is $4,920.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "4920.00", "printed": "4920.00", "notation": null} |
nlprog_det-setting-0069449 | Sales went from 2,000 to 2,300. What is the percent change?
Python version:
```python
old = 2000
new = 2300
change = (new - old) / old * 100 # 15.0
print(round(change))
```
(Printed: 15)
It changed by 15%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0069450 | 11 boxes hold 12 rulers each. After 11 are handed out, how many are left?
Let's compute it with Python.
```python
boxes = 11
per_box = 12
given_away = 11
left = boxes * per_box - given_away # 121
print(left)
```
The code prints: 121
That leaves 121 rulers. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "121", "printed": "121", "notation": null} |
nlprog_det-setting-0069451 | A party has 14 days to respond to a motion served on June 3, 2018, with 3 days added because service was by mail. When is the response due?
Python does the arithmetic:
```python
from datetime import date, timedelta
served = date(2018, 6, 3) # datetime.date(2018, 6, 3)
response_days = 14
mail_days = 3
due = served + t... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 176 | {"gold": "2018-06-20", "printed": "2018-06-20", "notation": null} |
nlprog_det-setting-0069452 | At $22.64 an hour, what does 36 hours of work pay?
One way, in code:
rate = 22.64
hours = 36
earnings = rate * hours # 815.04
print(f"{earnings:.2f}")
# output: 815.04
That earns $815.04. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "815.04", "printed": "815.04", "notation": null} |
nlprog_det-setting-0069453 | How many meters are in 4.6 kilometers?
As Python:
```python
km = 4.6
meters = km * 1000 # 4600.0
print(round(meters))
```
Console:
4600
4,600 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "4600", "printed": "4600", "notation": null} |
nlprog_det-setting-0069454 | <|start|><|system|>
You have access to these functions:
[{"name": "eval_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
A count move... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"eval_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"re... | nlprog_det | setting | original | null | deterministic | [] | [] | 212 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0069455 | Walls total 315 sq ft and each can covers 300 sq ft. How many cans should be bought?
2 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0069456 | <|start|><|user|>
To read 348 pages in 12 days, how many pages per day are needed?<|eot|>
<|assistant|>
```python
pages = 348
days = 12
per_day = pages // days # 29
print(per_day)
```
When run, it prints 29.
That is 29 pages per day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "To read 348 pages in 12 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": "```python\npages = 348\ndays = 12\nper_day = pages // days # 29\nprint(per_day)\n```\nWhen run, it prints 29.\n\nThat is 29 pages per day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "29", "printed": "29", "notation": null} |
nlprog_det-setting-0069457 | Someone works 12 hours at $27.12 per hour. What are the earnings?
That earns $325.44. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "325.44", "printed": "325.44", "notation": null} |
nlprog_det-setting-0069458 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"name": "compute", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"compute\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\":... | nlprog_det | setting | original | null | deterministic | [] | [] | 234 | {"gold": "2.7", "printed": "2.7", "notation": null} |
nlprog_det-setting-0069459 | Starting with 971 scissors and using 20 per day, how many remain after 11 days?
```python
stock = 971
per_day = 20
days = 11
left = stock - per_day * days # 751
print(left)
```
Executing it gives 751, as expected.
751 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "751", "printed": "751", "notation": null} |
nlprog_det-setting-0069460 | <|start|><|system|>
You are a logic tutor.<|eot|>
<|user|>
Convert 2.1 km to meters.<|eot|>
<|assistant|>
```python
km = 2.1
meters = km * 1000 # 2100.0
print(round(meters))
```
Output = 2100
2,100 m.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a logic tutor."
},
{
"role": "user",
"content": "Convert 2.1 km to meters."
},
{
"role": "assistant",
"content": "```python\nkm = 2.1\nmeters = km * 1000 # 2100.0\nprint(round(meters))\n```\nOutput = 2100\n\n2,100 m."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "2100", "printed": "2100", "notation": null} |
nlprog_det-setting-0069461 | Revenue is $20,500 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?
The program:
revenue = 20500
costs = 20000
profit = revenue - costs # 500
margin = profit / revenue * 100 # 2.4390243902439024
print(round(margin, 1))
The interpreter prints: 2.4
Profit is ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "2.4", "printed": "2.4", "notation": null} |
nlprog_det-setting-0069462 | <|start|><|system|>
Write short, precise answers.<|eot|>
<|user|>
How many meters are in 2.7 kilometers?<|eot|>
<|assistant|>
```python
km = 2.7
meters = km * 1000 # 2700.0
print(round(meters))
```
Executed, it shows: 2700
2,700 m.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Write short, precise answers."
},
{
"role": "user",
"content": "How many meters are in 2.7 kilometers?"
},
{
"role": "assistant",
"content": "```python\nkm = 2.7\nmeters = km * 1000 # 2700.0\nprint(round(meters))\n```\nExecuted, it shows: 2700\n\n2,70... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "2700", "printed": "2700", "notation": null} |
nlprog_det-setting-0069463 | Shipping costs $10 plus $1.50 per pound. What does a 16-pound parcel cost to ship?
We can compute it in Python.
```python
base = 10
per_pound = 1.5
weight = 16
cost = base + per_pound * weight # 34.0
print(f"{cost:.2f}")
```
Console output: 34.00
The charge is $34.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "34.00", "printed": "34.00", "notation": null} |
nlprog_det-setting-0069464 | Fines run at $100 per day up to a maximum of $2,500. How much after 47 days?
In Python:
```python
per_day = 100
days = 47
cap = 2500
fine = min(per_day * days, cap) # 2500
print(fine)
```
# stdout: 2500
The fine is $2,500. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "2500", "printed": "2500", "notation": null} |
nlprog_det-setting-0069465 | <|start|><|user|>
A $9,000 loan carries 10% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|>
<|assistant|>
```python
principal = 9000
annual_rate = 10 / 100 # 0.1
months = 36
interest = principal * annual_rate * months / 12 # 2700.0
payme... | chat | [
{
"role": "user",
"content": "A $9,000 loan carries 10% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 9000\nannual_rate = 10 / 100 # 0.1\nmonths = 36\nintere... | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "325.00", "printed": "325.00", "notation": null} |
nlprog_det-setting-0069466 | Convert 10 °C to Fahrenheit.
celsius = 10
fahrenheit = celsius * 9 / 5 + 32 # 50.0
print(round(fahrenheit))
The program outputs: 50
That is 50 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 68 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0069468 | <|start|><|user|>
Counting only Monday through Friday, how many business days are there after June 26, 2022 through July 14, 2022?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2022, 6, 26)
end = date(2022, 7, 14)
count = 0
for k in range(1, (end - start).days + 1):
if (start + ti... | chat | [
{
"role": "user",
"content": "Counting only Monday through Friday, how many business days are there after June 26, 2022 through July 14, 2022?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2022, 6, 26)\nend = date(2022, 7, 14)\ncount = 0\nfo... | nlprog_det | setting | original | null | deterministic | [] | [] | 154 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0069469 | How many of 252 votes make 67% (round up)?
We can compute it in Python.
```python
import math
voters = 252
needed = math.ceil(voters * 67 / 100) # 169
print(needed)
```
Result — 169
At least 169 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "169", "printed": "169", "notation": null} |
nlprog_det-setting-0069470 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
How many whole days and leftover hours are in 281 hours?<|eot|>
<|assistant|>
281 hours is 11 days and 17 hours.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "How many whole days and leftover hours are in 281 hours?"
},
{
"role": "assistant",
"content": "281 hours is 11 days and 17 hours."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 49 | {"gold": "11 days and 17 hours", "printed": "11 days and 17 hours", "notation": null} |
nlprog_det-setting-0069471 | Fuel for 300 miles at 30 mpg, with gas at $3.45/gallon: what is the cost? Fuel costs $34.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "34.50", "printed": "34.50", "notation": null} |
nlprog_det-setting-0069472 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "calc", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
After an initial ... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"calc\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir... | nlprog_det | setting | original | null | deterministic | [] | [] | 239 | {"gold": "4500.00", "printed": "4500.00", "notation": null} |
nlprog_det-setting-0069473 | The landlord deducts $60, $120 and $150 from a $2,500 deposit. What is returned to the tenant?
Here is the program.
```python
deposit = 2500
deductions = [60, 120, 150]
refund = deposit - sum(deductions) # 2170
print(refund)
```
Execution result: 2170
The refund is $2,170. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "2170", "printed": "2170", "notation": null} |
nlprog_det-setting-0069474 | With 17 rows of 11 chairs and 23 empty chairs, how many chairs are taken?
Python makes this quick:
```python
rows = 17
per_row = 11
empty = 23
seated = rows * per_row - empty # 164
print(seated)
```
# execution result: 164
164 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "164", "printed": "164", "notation": null} |
nlprog_det-setting-0069475 | A 110-mile drive at a steady 40 mph takes how many minutes?
Here is the program.
```python
distance = 110
speed = 40
minutes = distance / speed * 60 # 165.0
print(round(minutes))
```
The run gives 165.
The trip takes 165 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "165", "printed": "165", "notation": null} |
nlprog_det-setting-0069476 | <|start|><|system|>
Keep explanations short.<|eot|>
<|user|>
Omar lends $8,000 at 3% simple interest per year for 4 years. How much interest is earned?<|eot|>
<|assistant|>
```python
principal = 8000
rate = 3 / 100 # 0.03
years = 4
interest = principal * rate * years # 960.0
print(f"{interest:.2f}")
```
The program o... | chat | [
{
"role": "system",
"content": "Keep explanations short."
},
{
"role": "user",
"content": "Omar lends $8,000 at 3% simple interest per year for 4 years. How much interest is earned?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 8000\nrate = 3 / 100 # 0.03\nyears = 4\... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "960.00", "printed": "960.00", "notation": null} |
nlprog_det-setting-0069477 | A claim accrued on January 13, 2014. The limitations period is 2 years. On what date does it expire?
A short script:
```python
from datetime import date
accrued = date(2014, 1, 13) # datetime.date(2014, 1, 13)
years = 2
expires = accrued.replace(year=accrued.year + years) # datetime.date(2016, 1, 13)
print(expires.i... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "2016-01-13", "printed": "2016-01-13", "notation": null} |
nlprog_det-setting-0069478 | Under a 35% contingency agreement, what fee is owed on a $60,000 award?
One way, in code:
```python
recovery = 60000
rate = 35 / 100 # 0.35
fee = recovery * rate # 21000.0
print(f"{fee:.2f}")
```
It outputs 21000.00.
The lawyer's fee comes to $21,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "21000.00", "printed": "21000.00", "notation": null} |
nlprog_det-setting-0069480 | <|start|><|user|>
Sales went from 200 to 280. What is the percent change?<|eot|>
<|assistant|>
```python
old = 200
new = 280
change = (new - old) / old * 100 # 40.0
print(round(change))
```
What it prints: 40
It changed by 40%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Sales went from 200 to 280. What is the percent change?"
},
{
"role": "assistant",
"content": "```python\nold = 200\nnew = 280\nchange = (new - old) / old * 100 # 40.0\nprint(round(change))\n```\nWhat it prints: 40\n\nIt changed by 40%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0069481 | Papers were served by mail on January 6, 2025. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?
Programmatically:
```python
from datetime import date, timedelta
served = date(2025, 1, 6) # datetime.date(2025, 1, 6)
response_days = 14
mail_days = 3
due = served + timedelta(... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 181 | {"gold": "2025-01-23", "printed": "2025-01-23", "notation": null} |
nlprog_det-setting-0069482 | <|start|><|user|>
Equal monthly payments repay $3,600 plus 5% simple yearly interest over 12 months. How large is a payment?<|eot|>
<|assistant|>
principal = 3600
annual_rate = 5 / 100 # 0.05
months = 12
interest = principal * annual_rate * months / 12 # 180.0
payment = (principal + interest) / mo... | chat | [
{
"role": "user",
"content": "Equal monthly payments repay $3,600 plus 5% simple yearly interest over 12 months. How large is a payment?"
},
{
"role": "assistant",
"content": " principal = 3600\n annual_rate = 5 / 100 # 0.05\n months = 12\n interest = principal * annual_rate * month... | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "315.00", "printed": "315.00", "notation": null} |
nlprog_det-setting-0069483 | A quorum is 1/3 of the 37 members, rounded up. How many members make a quorum?
Set it up in Python:
```python
import math
members = 37
quorum = math.ceil(members * 1 / 3) # 13
print(quorum)
```
(Output: 13)
That is 13 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0069484 | A car travels 495 miles in 0.5 hours. What is its average speed in miles per hour?
The Python version:
```python
distance = 495
hours = 0.5
speed = distance / hours # 990.0
print(round(speed))
```
When run, it prints: 990
The average speed is 990 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "990", "printed": "990", "notation": null} |
nlprog_det-setting-0069485 | A $1,000 security deposit has deductions of $200. How much is refunded?
```python
deposit = 1000
deductions = [200]
refund = deposit - sum(deductions)
print(refund)
```
Printed result — 800
The refund is $800. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "800", "printed": "800", "notation": null} |
nlprog_det-setting-0069486 | Pack A has 10 items for $14.74. Pack B has 18 items for $21.37. Which has the lower price per item?
Computing it:
pack_a = 14.74 / 10 # 1.474
pack_b = 21.37 / 18 # 1.1872222222222222
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
Execution prints B, as expected.
B has the lower unit... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0069487 | <|start|><|user|>
A 348-page report must be reviewed in 12 days. How many pages a day is that, evenly?<|eot|>
<|assistant|>
```python
pages = 348
days = 12
per_day = pages // days # 29
print(per_day)
```
The code prints 29.
29 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 348-page report must be reviewed in 12 days. How many pages a day is that, evenly?"
},
{
"role": "assistant",
"content": "```python\npages = 348\ndays = 12\nper_day = pages // days # 29\nprint(per_day)\n```\nThe code prints 29.\n\n29 pages a day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "29", "printed": "29", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.