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-0068628 | What is the total rent on a 18-month lease at $2,875 a month?
Computation in Python:
```python
monthly_rent = 2875
months = 18
total = monthly_rent * months # 51750
print(total)
```
When run, it prints 51750, as expected.
The rent over the term is $51,750. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "51750", "printed": "51750", "notation": null} |
nlprog_det-setting-0068629 | <|start|><|user|>
Monthly rent is $1,500. A tenant moves in with 14 days left in a 31-day month. What is the prorated rent?<|eot|>
<|assistant|>
```python
rent = 1500
days_in_month = 31
days_occupied = 14
prorated = rent * days_occupied / days_in_month # 677.4193548387096
print(f"{prorated:.2f}")
```
Run output — 677.... | chat | [
{
"role": "user",
"content": "Monthly rent is $1,500. A tenant moves in with 14 days left in a 31-day month. What is the prorated rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 1500\ndays_in_month = 31\ndays_occupied = 14\nprorated = rent * days_occupied / days_in_month # 677.41... | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "677.42", "printed": "677.42", "notation": null} |
nlprog_det-setting-0068630 | Eamon has 16 documents to file, and each filing costs $50. How much are the filing fees in total?
$800 in filing fees. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "800", "printed": "800", "notation": null} |
nlprog_det-setting-0068631 | <|start|><|user|>
Someone born September 27, 1951 turns how old by November 17, 2027? Give the age in whole years.<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1951, 9, 27) # datetime.date(1951, 9, 27)
on = date(2027, 11, 17) # datetime.date(2027, 11, 17)
age = on.year - born.year - ((on.month... | chat | [
{
"role": "user",
"content": "Someone born September 27, 1951 turns how old by November 17, 2027? Give the age in whole years."
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1951, 9, 27) # datetime.date(1951, 9, 27)\non = date(2027, 11, 17) # datetime.... | nlprog_det | setting | original | null | deterministic | [] | [] | 157 | {"gold": "76", "printed": "76", "notation": null} |
nlprog_det-setting-0068632 | A count moves from 400 to 420. By what percent did it change (use a minus sign for a drop)?
As Python:
```python
old = 400
new = 420
change = (new - old) / old * 100 # 5.0
print(round(change))
```
Executed, it shows 5.
The change is 5%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0068633 | <|start|><|user|>
An attorney bills 1.5 hours at $180 per hour. What is the bill?<|eot|>
<|assistant|>
That comes to $270.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An attorney bills 1.5 hours at $180 per hour. What is the bill?"
},
{
"role": "assistant",
"content": "That comes to $270.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "270.00", "printed": "270.00", "notation": null} |
nlprog_det-setting-0068634 | A 36 lb package ships at $8 base plus $0.75/lb. What is the charge?
Python, step by step:
```python
base = 8
per_pound = 0.75
weight = 36
cost = base + per_pound * weight # 35.0
print(f"{cost:.2f}")
```
It prints: 35.00
The charge is $35.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "35.00", "printed": "35.00", "notation": null} |
nlprog_det-setting-0068635 | Pack A has 12 items for $4.48. Pack B has 20 items for $15.71. Which has the lower price per item?
```python
pack_a = 4.48 / 12 # 0.37333333333333335
pack_b = 15.71 / 20 # 0.7855000000000001
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
Execution result — A
A has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0068636 | Water costs $15 a month plus $5.10 for each 1,000 gallons over 3,000. What is owed for 7,000 gallons?
Translated to Python:
```python
base = 15
rate = 5.1
used = 7
free = 3
bill = base + rate * max(0, used - free) # 35.4
print(f"{bill:.2f}")
```
Executing it gives: 35.40
The bill is $35.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "35.40", "printed": "35.40", "notation": null} |
nlprog_det-setting-0068637 | <|start|><|system|>
Tools (call with JSON):
[{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "python_exec", "description": "Executes Python code and returns stdout.... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"name\": \"python_exec\", \... | nlprog_det | setting | original | null | deterministic | [] | [] | 312 | {"gold": "38.5", "printed": "38.5", "notation": null} |
nlprog_det-setting-0068638 | <|start|><|user|>
Convert 1 h 40 min (the length of a hearing) to minutes.<|eot|>
<|assistant|>
```python
hours = 1
minutes = 40
total_minutes = hours * 60 + minutes # 100
print(total_minutes)
```
The script prints: 100
The hearing lasted 100 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 1 h 40 min (the length of a hearing) to minutes."
},
{
"role": "assistant",
"content": "```python\nhours = 1\nminutes = 40\ntotal_minutes = hours * 60 + minutes # 100\nprint(total_minutes)\n```\nThe script prints: 100\n\nThe hearing lasted 100 minutes."
}... | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "100", "printed": "100", "notation": null} |
nlprog_det-setting-0068639 | <|start|><|system|>
You may call the tools below.
{"name": "python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|user|>
An unpaid balance of $12,0... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n{\"name\": \"python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\... | nlprog_det | setting | original | null | deterministic | [] | [] | 240 | {"gold": "1080.00", "printed": "1080.00", "notation": null} |
nlprog_det-setting-0068640 | A pack of 4 cables sells for $144. What does each cost?
total = 144
count = 4
per_item = total // count # 36
print(per_item)
Run it and it prints: 36
The unit price is $36. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 67 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0068641 | <|start|><|user|>
Printing costs 10 cents a page. What does it cost to print 127 copies of a 46-page handout?<|eot|>
<|assistant|>
```python
pages = 46
copies = 127
cost_per_page = 0.1
cost = pages * copies * cost_per_page # 584.2
print(f"{cost:.2f}")
```
(Result: 584.20)
Printing costs $584.20.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Printing costs 10 cents a page. What does it cost to print 127 copies of a 46-page handout?"
},
{
"role": "assistant",
"content": "```python\npages = 46\ncopies = 127\ncost_per_page = 0.1\ncost = pages * copies * cost_per_page # 584.2\nprint(f\"{cost:.2f}\")\n```\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "584.20", "printed": "584.20", "notation": null} |
nlprog_det-setting-0068642 | Water costs $15 a month plus $5.10 for each 1,000 gallons over 0,000. What is owed for 13,000 gallons?
Set it up in Python:
base = 15
rate = 5.1
used = 13
free = 0
bill = base + rate * max(0, used - free) # 81.3
print(f"{bill:.2f}")
# result: 81.30
The bill is $81.30. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "81.30", "printed": "81.30", "notation": null} |
nlprog_det-setting-0068643 | <|start|><|user|>
Fixed costs are $1,200. Each unit sells for $25 and costs $15 to make. How many units must be sold to break even?<|eot|>
<|assistant|>
```python
import math
fixed = 1200
price = 25
variable = 15
units = math.ceil(fixed / (price - variable)) # 120
print(units)
```
(Program output: 120)
120 units are ... | chat | [
{
"role": "user",
"content": "Fixed costs are $1,200. Each unit sells for $25 and costs $15 to make. How many units must be sold to break even?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 1200\nprice = 25\nvariable = 15\nunits = math.ceil(fixed / (price - variable)) #... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "120", "printed": "120", "notation": null} |
nlprog_det-setting-0068644 | <|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": "search_cases", "description": "Search... | 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 | [] | [] | 404 | {"gold": "1100.75", "printed": "1100.75", "notation": null} |
nlprog_det-setting-0068645 | Scale 200 g of lentils from 6 servings to 12 servings.
A few lines of Python do it:
```python
grams = 200
serves = 6
needed_for = 12
scaled = grams * needed_for // serves # 400
print(scaled)
```
stdout:
400
400 grams of lentils are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "400", "printed": "400", "notation": null} |
nlprog_det-setting-0068646 | Straight-line depreciation: cost $45,000, salvage $0, 6 years. How much per year?
As a program:
```python
cost = 45000
salvage = 0
years = 6
per_year = (cost - salvage) / years # 7500.0
print(f"{per_year:.2f}")
```
The program prints: 7500.00
Depreciation is $7,500.00 per year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "7500.00", "printed": "7500.00", "notation": null} |
nlprog_det-setting-0068647 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "math_engine", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
Hana earns a 5%... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"math_engine\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requi... | nlprog_det | setting | original | null | deterministic | [] | [] | 222 | {"gold": "470.75", "printed": "470.75", "notation": null} |
nlprog_det-setting-0068648 | A quorum is 3/5 of the 8 members, rounded up. How many members make a quorum?
Let the code do the arithmetic:
```python
import math
members = 8
quorum = math.ceil(members * 3 / 5) # 5
print(quorum)
```
# printed result: 5
That is 5 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0068649 | Split $1,737 between Lucia and Quinn in the ratio 1 to 2. What is Lucia's share?
Python makes this quick:
```python
total = 1737
parts_a = 1
parts_b = 2
share_a = total * parts_a // (parts_a + parts_b) # 579
print(share_a)
```
Result = 579
Lucia's share is $579. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "579", "printed": "579", "notation": null} |
nlprog_det-setting-0068650 | Walls total 754 sq ft and each can covers 350 sq ft. How many cans should be bought?
```python
import math
area = 754
coverage = 350
cans = math.ceil(area / coverage) # 3
print(cans)
```
Result — 3
3 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0068651 | Equipment costs $12,000, has a salvage value of $3,000, and a useful life of 4 years. What is the straight-line depreciation per year?
Depreciation is $2,250.00 per year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 53 | {"gold": "2250.00", "printed": "2250.00", "notation": null} |
nlprog_det-setting-0068652 | <|start|><|user|>
Each storage box holds 24 files. How many boxes are needed for 226 files?<|eot|>
<|assistant|>
import math
files = 226
per_box = 24
boxes = math.ceil(files / per_box) # 10
print(boxes)
On running, it outputs 10.
It takes 10 boxes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each storage box holds 24 files. How many boxes are needed for 226 files?"
},
{
"role": "assistant",
"content": " import math\n files = 226\n per_box = 24\n boxes = math.ceil(files / per_box) # 10\n print(boxes)\nOn running, it outputs 10.\n\nIt take... | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0068653 | <|start|><|system|>
You are an assistant for a small office.<|eot|>
<|user|>
A $180 dinner bill gets a 18% tip, and 5 people share the cost equally. What is each person's share?<|eot|>
<|assistant|>
```python
bill = 180
tip_rate = 18 / 100 # 0.18
people = 5
each = bill * (1 + tip_rate) / people # 42.48
print(f"{each:... | chat | [
{
"role": "system",
"content": "You are an assistant for a small office."
},
{
"role": "user",
"content": "A $180 dinner bill gets a 18% tip, and 5 people share the cost equally. What is each person's share?"
},
{
"role": "assistant",
"content": "```python\nbill = 180\ntip_rate = 18 ... | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "42.48", "printed": "42.48", "notation": null} |
nlprog_det-setting-0068654 | <|start|><|user|>
Sales went from 1,200 to 1,440. What is the percent change?<|eot|>
<|assistant|>
```python
old = 1200
new = 1440
change = (new - old) / old * 100 # 20.0
print(round(change))
```
The run gives 20.
It changed by 20%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Sales went from 1,200 to 1,440. What is the percent change?"
},
{
"role": "assistant",
"content": "```python\nold = 1200\nnew = 1440\nchange = (new - old) / old * 100 # 20.0\nprint(round(change))\n```\nThe run gives 20.\n\nIt changed by 20%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0068655 | Fiona lends $5,000 at 4% simple interest per year for 4 years. How much interest is earned?
Written as code:
```python
principal = 5000
rate = 4 / 100
years = 4
interest = principal * rate * years
print(f"{interest:.2f}")
```
That prints 800.00.
It earns $800.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "800.00", "printed": "800.00", "notation": null} |
nlprog_det-setting-0068656 | <|start|><|user|>
At 2% a month (simple), what interest builds on $12,000 over 2 months?<|eot|>
<|assistant|>
The interest is $480.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At 2% a month (simple), what interest builds on $12,000 over 2 months?"
},
{
"role": "assistant",
"content": "The interest is $480.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "480.00", "printed": "480.00", "notation": null} |
nlprog_det-setting-0068657 | <|start|><|user|>
Starting with 1644 headsets and using 15 per day, how many remain after 19 days?<|eot|>
<|assistant|>
```python
stock = 1644
per_day = 15
days = 19
left = stock - per_day * days # 1359
print(left)
```
Running it prints 1359.
1359 remain.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting with 1644 headsets and using 15 per day, how many remain after 19 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 1644\nper_day = 15\ndays = 19\nleft = stock - per_day * days # 1359\nprint(left)\n```\nRunning it prints 1359.\n\n1359 remain.... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "1359", "printed": "1359", "notation": null} |
nlprog_det-setting-0068658 | With 10 rows of 13 chairs and 22 empty chairs, how many chairs are taken?
Computing it:
rows = 10
per_row = 13
empty = 22
seated = rows * per_row - empty
print(seated)
Executed, it shows 108.
108 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "108", "printed": "108", "notation": null} |
nlprog_det-setting-0068659 | A storeroom has 520 badges. The office uses 28 a day. How many are left after 7 days?
```python
stock = 520
per_day = 28
days = 7
left = stock - per_day * days # 324
print(left)
```
(stdout: 324)
324 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "324", "printed": "324", "notation": null} |
nlprog_det-setting-0068660 | Monthly: $29. Annual: $312. What is saved per year by paying annually?
$36 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0068661 | <|start|><|user|>
At 45 miles per hour, how many minutes does a 225-mile trip take?<|eot|>
<|assistant|>
300 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At 45 miles per hour, how many minutes does a 225-mile trip take?"
},
{
"role": "assistant",
"content": "300 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0068662 | Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 47 hours?
A short script:
```python
rate = 20.0
hours = 47
regular = 40 * rate # 800.0
overtime = (hours - 40) * rate * 1.5 # 210.0
pay = regular + overtime # 1010.0
print(f"{pay:.2f}")
```
# console output: 1010.00
The weekly p... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "1010.00", "printed": "1010.00", "notation": null} |
nlprog_det-setting-0068663 | A meeting lasted 3 hours and 45 minutes. How many minutes is that?
Python version:
hours = 3
minutes = 45
total_minutes = hours * 60 + minutes # 225
print(total_minutes)
Running it prints 225.
The meeting lasted 225 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "225", "printed": "225", "notation": null} |
nlprog_det-setting-0068665 | <|start|><|user|>
Split $5,736 between Cyrus and Nilufar in the ratio 3 to 5. What is Cyrus's share?<|eot|>
<|assistant|>
```python
total = 5736
parts_a = 3
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 2151
print(share_a)
```
When run, it prints 2151.
Cyrus's share is $2,151.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Split $5,736 between Cyrus and Nilufar in the ratio 3 to 5. What is Cyrus's share?"
},
{
"role": "assistant",
"content": "```python\ntotal = 5736\nparts_a = 3\nparts_b = 5\nshare_a = total * parts_a // (parts_a + parts_b) # 2151\nprint(share_a)\n```\nWhen run, it p... | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "2151", "printed": "2151", "notation": null} |
nlprog_det-setting-0068666 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "py_exec", "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"]}}<|eot|>
<|user|>
What d... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"py_exec\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}... | nlprog_det | setting | original | null | deterministic | [] | [] | 238 | {"gold": "2185.45", "printed": "2185.45", "notation": null} |
nlprog_det-setting-0068667 | A 32 lb package ships at $10 base plus $2.00/lb. What is the charge?
Python code:
```python
base = 10
per_pound = 2.0
weight = 32
cost = base + per_pound * weight # 74.0
print(f"{cost:.2f}")
```
Program output — 74.00
Shipping costs $74.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "74.00", "printed": "74.00", "notation": null} |
nlprog_det-setting-0068668 | Each of Wen's swims burns 300 calories. How many calories over 6 swims?
Here is a short program for it.
```python
per_session = 300
sessions = 6
total = per_session * sessions # 1800
print(total)
```
Python prints 1800, as expected.
1800 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "1800", "printed": "1800", "notation": null} |
nlprog_det-setting-0068669 | A penalty of $100 a day accrues, capped at $1,000. What is owed after 17 days?
In Python:
```python
per_day = 100
days = 17
cap = 1000
fine = min(per_day * days, cap) # 1000
print(fine)
```
Python prints 1000, as expected.
$1,000 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0068670 | <|start|><|system|>
You may call the tools below.
{"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": "calculator", "description": "... | chat | [
{
"role": "system",
"content": "You may call the tools below.\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\": [\"titl... | nlprog_det | setting | original | null | deterministic | [] | [] | 377 | {"gold": "7.4", "printed": "7.4", "notation": null} |
nlprog_det-setting-0068671 | <|start|><|system|>
You are a precise assistant.<|eot|>
<|user|>
Pack A has 8 items for $11.48. Pack B has 30 items for $18.26. Which has the lower price per item?<|eot|>
<|assistant|>
```python
pack_a = 11.48 / 8 # 1.435
pack_b = 18.26 / 30 # 0.6086666666666667
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(... | chat | [
{
"role": "system",
"content": "You are a precise assistant."
},
{
"role": "user",
"content": "Pack A has 8 items for $11.48. Pack B has 30 items for $18.26. Which has the lower price per item?"
},
{
"role": "assistant",
"content": "```python\npack_a = 11.48 / 8 # 1.435\npack_b = 18... | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0068672 | <|start|><|system|>
You are a careful assistant.<|eot|>
<|user|>
Yoko buys 6 boxes of 6 markers each and gives away 14 markers. How many markers are left?<|eot|>
<|assistant|>
```python
boxes = 6
per_box = 6
given_away = 14
left = boxes * per_box - given_away # 22
print(left)
```
What it prints: 22
22 markers are lef... | chat | [
{
"role": "system",
"content": "You are a careful assistant."
},
{
"role": "user",
"content": "Yoko buys 6 boxes of 6 markers each and gives away 14 markers. How many markers are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 6\nper_box = 6\ngiven_away = 14\nleft = b... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0068673 | <|start|><|user|>
Pack A has 8 items for $10.50. Pack B has 18 items for $7.55. Which has the lower price per item?<|eot|>
<|assistant|>
```python
pack_a = 10.5 / 8 # 1.3125
pack_b = 7.55 / 18 # 0.41944444444444445
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
Result: B
Pack B is cheaper per it... | chat | [
{
"role": "user",
"content": "Pack A has 8 items for $10.50. Pack B has 18 items for $7.55. Which has the lower price per item?"
},
{
"role": "assistant",
"content": "```python\npack_a = 10.5 / 8 # 1.3125\npack_b = 7.55 / 18 # 0.41944444444444445\ncheaper = \"A\" if pack_a < pack_b else \"B\" ... | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0068674 | $10,000 is invested at 3% compounded yearly. What is it worth after 2 years? It is worth $10,609.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "10609.00", "printed": "10609.00", "notation": null} |
nlprog_det-setting-0068675 | A settlement of $525 is split equally among 3 parties. How much does each party receive?
Python does the arithmetic:
```python
settlement = 525
parties = 3
share = settlement // parties # 175
print(share)
```
(stdout: 175)
Each party receives $175. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "175", "printed": "175", "notation": null} |
nlprog_det-setting-0068676 | <|start|><|user|>
After an initial $6,000, the remainder of a $12,000 grant is paid in 4 equal parts. What is each part?<|eot|>
<|assistant|>
```python
grant = 12000
up_front = 6000
installments = 4
each = (grant - up_front) / installments
print(f"{each:.2f}")
```
The interpreter prints: 1500.00
Each installment is $1... | chat | [
{
"role": "user",
"content": "After an initial $6,000, the remainder of a $12,000 grant is paid in 4 equal parts. What is each part?"
},
{
"role": "assistant",
"content": "```python\ngrant = 12000\nup_front = 6000\ninstallments = 4\neach = (grant - up_front) / installments\nprint(f\"{each:.2f}\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "1500.00", "printed": "1500.00", "notation": null} |
nlprog_det-setting-0068677 | <|start|><|system|>
Functions:
[{"name": "py_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
Sales went from 400 to 320. What is the percent change?... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"py_exec\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}]"
},
{
"r... | nlprog_det | setting | original | null | deterministic | [] | [] | 199 | {"gold": "-20", "printed": "-20", "notation": null} |
nlprog_det-setting-0068678 | One can of paint covers 350 square feet. How many cans are needed for 237 square feet of wall?
One way, in code:
```python
import math
area = 237
coverage = 350
cans = math.ceil(area / coverage) # 1
print(cans)
```
# program output: 1
Buy 1 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "1", "printed": "1", "notation": null} |
nlprog_det-setting-0068680 | <|start|><|user|>
164 copies of a 13-page packet are printed at $0.05 per page. What is the cost?<|eot|>
<|assistant|>
Printing costs $106.60.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "164 copies of a 13-page packet are printed at $0.05 per page. What is the cost?"
},
{
"role": "assistant",
"content": "Printing costs $106.60."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "106.60", "printed": "106.60", "notation": null} |
nlprog_det-setting-0068681 | <|start|><|system|>
Avoid unnecessary detail.<|eot|>
<|user|>
Notice was given on October 2, 2020. The notice period is 14 days. When does it run out?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2020, 10, 2) # datetime.date(2020, 10, 2)
end = start + timedelta(days=14) # datetime.... | chat | [
{
"role": "system",
"content": "Avoid unnecessary detail."
},
{
"role": "user",
"content": "Notice was given on October 2, 2020. The notice period is 14 days. When does it run out?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(20... | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "2020-10-16", "printed": "2020-10-16", "notation": null} |
nlprog_det-setting-0068682 | With $8,000 in costs and $12,000 in revenue, what percent of revenue is profit? Round to one decimal.
A Python solution:
```python
revenue = 12000
costs = 8000
profit = revenue - costs # 4000
margin = profit / revenue * 100 # 33.33333333333333
print(round(margin, 1))
```
stdout = 33.3
The margin is 33.3%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "33.3", "printed": "33.3", "notation": null} |
nlprog_det-setting-0068683 | Papers were served by mail on May 10, 2022. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date?
Python version:
from datetime import date, timedelta
served = date(2022, 5, 10) # datetime.date(2022, 5, 10)
response_days = 21
mail_days = 3
due = served + tim... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 162 | {"gold": "2022-06-03", "printed": "2022-06-03", "notation": null} |
nlprog_det-setting-0068685 | Fixed costs are $1,200. Each unit sells for $40 and costs $36 to make. How many units must be sold to break even?
In code:
```python
import math
fixed = 1200
price = 40
variable = 36
units = math.ceil(fixed / (price - variable)) # 300
print(units)
```
(Printed: 300)
Break-even is 300 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0068686 | A settlement of $36,000 is split equally among 3 parties. How much does each party receive?
Here is a short program for it.
```python
settlement = 36000
parties = 3
share = settlement // parties # 12000
print(share)
```
Console output: 12000
Each share is $12,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "12000", "printed": "12000", "notation": null} |
nlprog_det-setting-0068687 | <|start|><|user|>
How long, in days, is it from December 7, 2020 until July 7, 2021?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2020, 12, 7)
second = date(2021, 7, 7)
print((second - first).days)
```
Output: 212
There are 212 days between the two dates.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How long, in days, is it from December 7, 2020 until July 7, 2021?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2020, 12, 7)\nsecond = date(2021, 7, 7)\nprint((second - first).days)\n```\nOutput: 212\n\nThere are 212 days... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "212", "printed": "212", "notation": null} |
nlprog_det-setting-0068688 | <|start|><|user|>
A garage charges $5 an hour, never more than $24 a day. How much for 6 hours?<|eot|>
<|assistant|>
The charge is $24.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A garage charges $5 an hour, never more than $24 a day. How much for 6 hours?"
},
{
"role": "assistant",
"content": "The charge is $24."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0068689 | <|start|><|system|>
You are a careful reviewer of figures.<|eot|>
<|user|>
With $20,000 in costs and $22,500 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|>
<|assistant|>
```python
revenue = 22500
costs = 20000
profit = revenue - costs # 2500
margin = profit / revenue * 100 # 11.1111111111... | chat | [
{
"role": "system",
"content": "You are a careful reviewer of figures."
},
{
"role": "user",
"content": "With $20,000 in costs and $22,500 in revenue, what percent of revenue is profit? Round to one decimal."
},
{
"role": "assistant",
"content": "```python\nrevenue = 22500\ncosts = 2... | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "11.1", "printed": "11.1", "notation": null} |
nlprog_det-setting-0068690 | A hall has 25 rows of 24 seats, and 26 seats are empty. How many people are seated?
Here is a short program for it.
rows = 25
per_row = 24
empty = 26
seated = rows * per_row - empty # 574
print(seated)
stdout:
574
574 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "574", "printed": "574", "notation": null} |
nlprog_det-setting-0068691 | Joelle's scores were 83, 55, 94 and 68. What is the average score?
Python, step by step:
```python
scores = [83, 55, 94, 68]
average = sum(scores) // len(scores) # 75
print(average)
```
Executing it gives 75.
The mean is 75. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "75", "printed": "75", "notation": null} |
nlprog_det-setting-0068692 | <|start|><|user|>
An unpaid balance of $12,000 accrues 1.5% simple interest per month. How much interest accrues in 2 months?<|eot|>
<|assistant|>
```python
balance = 12000
monthly_rate = 1.5 / 100 # 0.015
months = 2
interest = balance * monthly_rate * months # 360.0
print(f"{interest:.2f}")
```
When run, it prints 3... | chat | [
{
"role": "user",
"content": "An unpaid balance of $12,000 accrues 1.5% simple interest per month. How much interest accrues in 2 months?"
},
{
"role": "assistant",
"content": "```python\nbalance = 12000\nmonthly_rate = 1.5 / 100 # 0.015\nmonths = 2\ninterest = balance * monthly_rate * months ... | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "360.00", "printed": "360.00", "notation": null} |
nlprog_det-setting-0068693 | From 2021 to 2046, how many years is that?
Computing it:
```python
start_year = 2021
end_year = 2046
print(end_year - start_year)
```
stdout = 25
That is 25 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 69 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0068694 | A shift runs from 10:17 AM to 11:29 AM. How long is it in minutes?
Set it up in Python:
```python
start = 10 * 60 + 17 # 617
end = 11 * 60 + 29 # 689
print(end - start)
```
(Console output: 72)
72 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "72", "printed": "72", "notation": null} |
nlprog_det-setting-0068695 | Equal monthly payments repay $3,600 plus 5% simple yearly interest over 36 months. How large is a payment?
One way, in code:
```python
principal = 3600
annual_rate = 5 / 100 # 0.05
months = 36
interest = principal * annual_rate * months / 12 # 540.0
payment = (principal + interest) / months # 115.0
print(f"{payment... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "115.00", "printed": "115.00", "notation": null} |
nlprog_det-setting-0068696 | What is a 25% tip on a $84.17 bill?
A short script:
```python
bill = 84.17
tip_rate = 25 / 100 # 0.25
tip = bill * tip_rate # 21.0425
print(f"{tip:.2f}")
```
Executing it gives 21.04.
Leave $21.04. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "21.04", "printed": "21.04", "notation": null} |
nlprog_det-setting-0068698 | Walls total 1220 sq ft and each can covers 400 sq ft. How many cans should be bought?
4 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0068699 | Yoko earns $25.00 an hour and time and a half for hours over 40. What is the pay for a 45-hour week?
Here's the code.
```python
rate = 25.0
hours = 45
regular = 40 * rate # 1000.0
overtime = (hours - 40) * rate * 1.5 # 187.5
pay = regular + overtime # 1187.5
print(f"{pay:.2f}")
```
The script prints 1187.50, as exp... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "1187.50", "printed": "1187.50", "notation": null} |
nlprog_det-setting-0068700 | How many of 150 votes make 75% (round up)?
Python makes this quick:
```python
import math
voters = 150
needed = math.ceil(voters * 75 / 100) # 113
print(needed)
```
stdout:
113
113 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "113", "printed": "113", "notation": null} |
nlprog_det-setting-0068701 | <|start|><|user|>
A lawyer's fee is 40% of a $90,000 recovery. How large is the fee?<|eot|>
<|assistant|>
```python
recovery = 90000
rate = 40 / 100 # 0.4
fee = recovery * rate # 36000.0
print(f"{fee:.2f}")
```
Execution prints 36000.00, as expected.
The lawyer's fee comes to $36,000.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lawyer's fee is 40% of a $90,000 recovery. How large is the fee?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 90000\nrate = 40 / 100 # 0.4\nfee = recovery * rate # 36000.0\nprint(f\"{fee:.2f}\")\n```\nExecution prints 36000.00, as expected.\n\nTh... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "36000.00", "printed": "36000.00", "notation": null} |
nlprog_det-setting-0068703 | How many weekdays (Monday to Friday) fall after February 9, 2022 up to and including March 4, 2022?
Python code:
```python
from datetime import date, timedelta
start = date(2022, 2, 9)
end = date(2022, 3, 4)
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 | [] | [] | 153 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0068704 | <|start|><|user|>
A settlement of $84,000 is split equally among 2 parties. How much does each party receive?<|eot|>
<|assistant|>
settlement = 84000
parties = 2
share = settlement // parties # 42000
print(share)
Console:
42000
Each share is $42,000.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A settlement of $84,000 is split equally among 2 parties. How much does each party receive?"
},
{
"role": "assistant",
"content": " settlement = 84000\n parties = 2\n share = settlement // parties # 42000\n print(share)\nConsole:\n42000\n\nEach share is... | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "42000", "printed": "42000", "notation": null} |
nlprog_det-setting-0068705 | The meal allowance is $74 per day. What is it for 6 days?
In Python:
days = 6
meal_rate = 74
total = days * meal_rate # 444
print(total)
The program prints 444.
That comes to $444. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 71 | {"gold": "444", "printed": "444", "notation": null} |
nlprog_det-setting-0068706 | <|start|><|system|>
Answer accurately and briefly.<|eot|>
<|user|>
Viktor has 14 documents to file, and each filing costs $35. How much are the filing fees in total?<|eot|>
<|assistant|>
```python
fee = 35
filings = 14
total = fee * filings # 490
print(total)
```
Printed = 490
The filings cost $490 in all.<|eot|>
<|e... | chat | [
{
"role": "system",
"content": "Answer accurately and briefly."
},
{
"role": "user",
"content": "Viktor has 14 documents to file, and each filing costs $35. How much are the filing fees in total?"
},
{
"role": "assistant",
"content": "```python\nfee = 35\nfilings = 14\ntotal = fee * ... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "490", "printed": "490", "notation": null} |
nlprog_det-setting-0068707 | <|start|><|user|>
How many weekdays (Monday to Friday) fall after July 4, 2021 up to and including August 3, 2021?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2021, 7, 4)
end = date(2021, 8, 3)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).w... | chat | [
{
"role": "user",
"content": "How many weekdays (Monday to Friday) fall after July 4, 2021 up to and including August 3, 2021?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2021, 7, 4)\nend = date(2021, 8, 3)\ncount = 0\nfor k in range(1, (e... | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0068708 | Copies cost $5 plus $0.50 for each page beyond 20. How much for 9 pages?
Set it up in Python:
```python
pages = 9
base = 5
per_page = 0.5
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page # 5.0
print(f"{cost:.2f}")
```
(Run result: 5.00)
The copy costs $5.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "5.00", "printed": "5.00", "notation": null} |
nlprog_det-setting-0068709 | <|start|><|system|>
Tool definitions:
[{"name": "compute", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
2.5 hours of wo... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"compute\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requ... | nlprog_det | setting | original | null | deterministic | [] | [] | 214 | {"gold": "1025.00", "printed": "1025.00", "notation": null} |
nlprog_det-setting-0068710 | If a 135-minute appointment begins at 10:40 AM, what time does it finish?
Python:
```python
start = 10 * 60 + 40
end = start + 135
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Printed: 12:55 PM
The appointment finishes at 12:55 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "12:55 PM", "printed": "12:55 PM", "notation": null} |
nlprog_det-setting-0068711 | <|start|><|system|>
Keep explanations short.<|eot|>
<|user|>
A client paid a $10,000 retainer. The firm has billed 14 hours at $200 per hour. How much of the retainer is left?<|eot|>
<|assistant|>
```python
retainer = 10000
hours = 14
rate = 200
left = retainer - hours * rate
print(left)
```
(Run result: 7200)
The rem... | chat | [
{
"role": "system",
"content": "Keep explanations short."
},
{
"role": "user",
"content": "A client paid a $10,000 retainer. The firm has billed 14 hours at $200 per hour. How much of the retainer is left?"
},
{
"role": "assistant",
"content": "```python\nretainer = 10000\nhours = 14... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "7200", "printed": "7200", "notation": null} |
nlprog_det-setting-0068712 | An office budget of $20,000 has expenses of $3,275, $3,756. How much of the budget is left?
Let the code do the arithmetic:
```python
budget = 20000
expenses = [3275, 3756]
left = budget - sum(expenses) # 12969
print(left)
```
(Console output: 12969)
The remaining budget is $12,969. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "12969", "printed": "12969", "notation": null} |
nlprog_det-setting-0068713 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "compute", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
What is a 25% tip o... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"compute\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required... | nlprog_det | setting | original | null | deterministic | [] | [] | 213 | {"gold": "14.27", "printed": "14.27", "notation": null} |
nlprog_det-setting-0068714 | Jae and Chen share $3,384 in the ratio 3:5. How much does Jae get?
Python, step by step:
```python
total = 3384
parts_a = 3
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 1269
print(share_a)
```
# output: 1269
Jae gets $1,269. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "1269", "printed": "1269", "notation": null} |
nlprog_det-setting-0068715 | An unpaid balance of $7,500 accrues 2% simple interest per month. How much interest accrues in 5 months?
A Python solution:
balance = 7500
monthly_rate = 2 / 100 # 0.02
months = 5
interest = balance * monthly_rate * months # 750.0
print(f"{interest:.2f}")
Program output — 750.00
The interest is ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "750.00", "printed": "750.00", "notation": null} |
nlprog_det-setting-0068716 | Maren buys 8 boxes of 25 headsets each and gives away 1 headsets. How many headsets are left?
In code:
```python
boxes = 8
per_box = 25
given_away = 1
left = boxes * per_box - given_away # 199
print(left)
```
The program prints 199.
199 headsets are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "199", "printed": "199", "notation": null} |
nlprog_det-setting-0068717 | Count 14 days forward from May 20, 2021. What date is that?
Translated to Python:
```python
from datetime import date, timedelta
start = date(2021, 5, 20) # datetime.date(2021, 5, 20)
end = start + timedelta(days=14) # datetime.date(2021, 6, 3)
print(end.isoformat())
```
Running this gives: 2021-06-03
That date is ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "2021-06-03", "printed": "2021-06-03", "notation": null} |
nlprog_det-setting-0068718 | <|start|><|system|>
You can call tools. Available tools:
{"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 can call tools. Available tools:\n{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 415 | {"gold": "305", "printed": "305", "notation": null} |
nlprog_det-setting-0068719 | <|start|><|system|>
You are a patient tutor.<|eot|>
<|user|>
A penalty of $100 a day accrues, capped at $1,000. What is owed after 24 days?<|eot|>
<|assistant|>
$1,000 is owed.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a patient tutor."
},
{
"role": "user",
"content": "A penalty of $100 a day accrues, capped at $1,000. What is owed after 24 days?"
},
{
"role": "assistant",
"content": "$1,000 is owed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 55 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0068720 | <|start|><|system|>
Tools you may use:
[{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "run_python", "description": "Run Python code in a sandbox; the result is whatever the code print... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"run_python\", \"description\": \"Run Pytho... | nlprog_det | setting | original | null | deterministic | [] | [] | 312 | {"gold": "16.7", "printed": "16.7", "notation": null} |
nlprog_det-setting-0068721 | The rules require 2/3 of 14 members (round up) to be present. How many is that?
Computing it:
```python
import math
members = 14
quorum = math.ceil(members * 2 / 3) # 10
print(quorum)
```
The printout reads: 10
10 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0068722 | Buying 5 flash drives at $9 each, 5 desk lamps at $24 each, 5 pens at $14 each, 6 notebooks at $20 each, someone hands over $400. What change comes back?
The Python version:
```python
items = [(5, 9), (5, 24), (5, 14), (6, 20)]
total = sum(q * p for q, p in items) # 355
paid = 400
change = paid - total # 45
print(ch... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "45", "printed": "45", "notation": null} |
nlprog_det-setting-0068723 | <|start|><|user|>
Pack A has 12 items for $3.91. Pack B has 20 items for $10.84. Which has the lower price per item?<|eot|>
<|assistant|>
```python
pack_a = 3.91 / 12 # 0.32583333333333336
pack_b = 10.84 / 20 # 0.542
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
(Run result: A)
Pack A is cheape... | chat | [
{
"role": "user",
"content": "Pack A has 12 items for $3.91. Pack B has 20 items for $10.84. Which has the lower price per item?"
},
{
"role": "assistant",
"content": "```python\npack_a = 3.91 / 12 # 0.32583333333333336\npack_b = 10.84 / 20 # 0.542\ncheaper = \"A\" if pack_a < pack_b else \"B\... | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0068724 | <|start|><|user|>
Rent of $1,250 goes up 4%. What is the new rent?<|eot|>
<|assistant|>
```python
rent = 1250
increase = 4 / 100 # 0.04
new_rent = rent * (1 + increase) # 1300.0
print(f"{new_rent:.2f}")
```
The script prints 1300.00.
It rises to $1,300.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Rent of $1,250 goes up 4%. What is the new rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 1250\nincrease = 4 / 100 # 0.04\nnew_rent = rent * (1 + increase) # 1300.0\nprint(f\"{new_rent:.2f}\")\n```\nThe script prints 1300.00.\n\nIt rises to $1,300.... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "1300.00", "printed": "1300.00", "notation": null} |
nlprog_det-setting-0068726 | <|start|><|system|>
Tools (call with JSON):
[{"name": "sandbox_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
With 6 rows of 23 chair... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"sandbox_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [... | nlprog_det | setting | original | null | deterministic | [] | [] | 232 | {"gold": "125", "printed": "125", "notation": null} |
nlprog_det-setting-0068727 | How many minutes pass from 9:48 AM to 10:08 AM on the same day?
```python
start = 9 * 60 + 48 # 588
end = 10 * 60 + 8 # 608
print(end - start)
```
(Run result: 20)
20 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0068728 | <|start|><|user|>
Each storage box holds 12 files. How many boxes are needed for 95 files?<|eot|>
<|assistant|>
```python
import math
files = 95
per_box = 12
boxes = math.ceil(files / per_box) # 8
print(boxes)
```
(Run result: 8)
It takes 8 boxes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each storage box holds 12 files. How many boxes are needed for 95 files?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 95\nper_box = 12\nboxes = math.ceil(files / per_box) # 8\nprint(boxes)\n```\n(Run result: 8)\n\nIt takes 8 boxes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0068729 | <|start|><|system|>
You are a teaching assistant.<|eot|>
<|user|>
A claim accrued on January 16, 2023. The limitations period is 2 years. On what date does it expire?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2023, 1, 16) # datetime.date(2023, 1, 16)
years = 2
expires = accrued.replace(ye... | chat | [
{
"role": "system",
"content": "You are a teaching assistant."
},
{
"role": "user",
"content": "A claim accrued on January 16, 2023. The limitations period is 2 years. On what date does it expire?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrued = ... | nlprog_det | setting | original | null | deterministic | [] | [] | 163 | {"gold": "2025-01-16", "printed": "2025-01-16", "notation": null} |
nlprog_det-setting-0068730 | Equal monthly payments repay $1,200 plus 5% simple yearly interest over 36 months. How large is a payment?
Python code:
```python
principal = 1200
annual_rate = 5 / 100 # 0.05
months = 36
interest = principal * annual_rate * months / 12 # 180.0
payment = (principal + interest) / months # 38.333333333333336
print(f"... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "38.33", "printed": "38.33", "notation": null} |
nlprog_det-setting-0068731 | A settlement of $2,640 is split equally among 5 parties. How much does each party receive?
Computation in Python:
```python
settlement = 2640
parties = 5
share = settlement // parties # 528
print(share)
```
The script prints 528, as expected.
Each party receives $528. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "528", "printed": "528", "notation": null} |
nlprog_det-setting-0068732 | <|start|><|user|>
At a 6% tax rate, what is the tax on $471.39?<|eot|>
<|assistant|>
```python
price = 471.39
tax_rate = 6 / 100 # 0.06
tax = price * tax_rate # 28.283399999999997
print(f"{tax:.2f}")
```
Console:
28.28
$28.28 in tax.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At a 6% tax rate, what is the tax on $471.39?"
},
{
"role": "assistant",
"content": "```python\nprice = 471.39\ntax_rate = 6 / 100 # 0.06\ntax = price * tax_rate # 28.283399999999997\nprint(f\"{tax:.2f}\")\n```\nConsole:\n28.28\n\n$28.28 in tax."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "28.28", "printed": "28.28", "notation": null} |
nlprog_det-setting-0068733 | <|start|><|user|>
$2,000 is invested at 5% compounded yearly. What is it worth after 2 years?<|eot|>
<|assistant|>
It is worth $2,205.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "$2,000 is invested at 5% compounded yearly. What is it worth after 2 years?"
},
{
"role": "assistant",
"content": "It is worth $2,205.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "2205.00", "printed": "2205.00", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.