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-0064910 | <|start|><|system|>
Tools you may use:
[{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "code_runner", "description": "Python sandbox for calculations. Returns prin... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"name\": \"code_runner\", \"desc... | nlprog_det | setting | original | null | deterministic | [] | [] | 361 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0064911 | <|start|><|user|>
Equipment costs $30,000, has a salvage value of $0, and a useful life of 4 years. What is the straight-line depreciation per year?<|eot|>
<|assistant|>
```python
cost = 30000
salvage = 0
years = 4
per_year = (cost - salvage) / years # 7500.0
print(f"{per_year:.2f}")
```
The program outputs: 7500.00
... | chat | [
{
"role": "user",
"content": "Equipment costs $30,000, has a salvage value of $0, and a useful life of 4 years. What is the straight-line depreciation per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 30000\nsalvage = 0\nyears = 4\nper_year = (cost - salvage) / years # 7500.0\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "7500.00", "printed": "7500.00", "notation": null} |
nlprog_det-setting-0064912 | <|start|><|user|>
An unpaid balance of $12,000 accrues 1% simple interest per month. How much interest accrues in 6 months?<|eot|>
<|assistant|>
$720.00 accrues.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An unpaid balance of $12,000 accrues 1% simple interest per month. How much interest accrues in 6 months?"
},
{
"role": "assistant",
"content": "$720.00 accrues."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 47 | {"gold": "720.00", "printed": "720.00", "notation": null} |
nlprog_det-setting-0064913 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "compute", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
How many ... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"compute\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \... | nlprog_det | setting | original | null | deterministic | [] | [] | 203 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0064914 | 12 hours of work at $150 an hour: what is the total charge?
The Python version:
```python
hours = 12
rate = 150
bill = hours * rate
print(f"{bill:.2f}")
```
Executing it gives 1800.00, as expected.
That comes to $1,800.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "1800.00", "printed": "1800.00", "notation": null} |
nlprog_det-setting-0064915 | A lease runs for 12 months at $1,640 per month. How much rent is paid over the whole term?
The rent over the term is $19,680. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "19680", "printed": "19680", "notation": null} |
nlprog_det-setting-0064916 | <|start|><|system|>
Tool definitions:
[{"name": "python_exec", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
Straight-line depreciation: c... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"python_exec\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"c... | nlprog_det | setting | original | null | deterministic | [] | [] | 242 | {"gold": "3000.00", "printed": "3000.00", "notation": null} |
nlprog_det-setting-0064917 | Prorate $1,800 of monthly rent for 7 days of a 30-day month.
Here's the code.
```python
rent = 1800
days_in_month = 30
days_occupied = 7
prorated = rent * days_occupied / days_in_month # 420.0
print(f"{prorated:.2f}")
```
The program outputs 420.00.
The prorated rent is $420.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "420.00", "printed": "420.00", "notation": null} |
nlprog_det-setting-0064918 | Convert 1,491 USD to CAD at 1 USD = 1.27 CAD.
It converts to 1,893.57 CAD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "1893.57", "printed": "1893.57", "notation": null} |
nlprog_det-setting-0064919 | What commission does Quinn make on $36,936 in sales at 4%?
```python
sales = 36936
rate = 4 / 100 # 0.04
commission = sales * rate # 1477.44
print(f"{commission:.2f}")
```
The program prints 1477.44.
The commission is $1,477.44. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "1477.44", "printed": "1477.44", "notation": null} |
nlprog_det-setting-0064920 | What commission does Bilal make on $7,553 in sales at 10%?
Let the code do the arithmetic:
```python
sales = 7553
rate = 10 / 100 # 0.1
commission = sales * rate # 755.3000000000001
print(f"{commission:.2f}")
```
That prints: 755.30
The commission is $755.30. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "755.30", "printed": "755.30", "notation": null} |
nlprog_det-setting-0064921 | <|start|><|system|>
You have access to these functions:
{"name": "calculator", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}
{"name": "lo... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"calculator\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python sou... | nlprog_det | setting | original | null | deterministic | [] | [] | 363 | {"gold": "2031-03-26", "printed": "2031-03-26", "notation": null} |
nlprog_det-setting-0064922 | <|start|><|system|>
You have access to these functions:
[{"name": "compute", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
What is 15 degrees... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"compute\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require... | nlprog_det | setting | original | null | deterministic | [] | [] | 204 | {"gold": "59", "printed": "59", "notation": null} |
nlprog_det-setting-0064923 | With 15% off, what does a $60 kettle cost?
It costs $51.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 26 | {"gold": "51.00", "printed": "51.00", "notation": null} |
nlprog_det-setting-0064924 | <|start|><|system|>
Answer accurately and briefly.<|eot|>
<|user|>
Rent of $1,500 goes up 4%. What is the new rent?<|eot|>
<|assistant|>
```python
rent = 1500
increase = 4 / 100 # 0.04
new_rent = rent * (1 + increase) # 1560.0
print(f"{new_rent:.2f}")
```
(Output: 1560.00)
The new rent is $1,560.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer accurately and briefly."
},
{
"role": "user",
"content": "Rent of $1,500 goes up 4%. What is the new rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 1500\nincrease = 4 / 100 # 0.04\nnew_rent = rent * (1 + increase) # 1560.0\npri... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "1560.00", "printed": "1560.00", "notation": null} |
nlprog_det-setting-0064925 | To read 120 pages in 4 days, how many pages per day are needed?
Python code:
```python
pages = 120
days = 4
per_day = pages // days # 30
print(per_day)
```
The run gives: 30
30 pages a day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0064926 | Printing costs 12 cents a page. What does it cost to print 5 copies of a 4-page handout?
The Python version:
```python
pages = 4
copies = 5
cost_per_page = 0.12
cost = pages * copies * cost_per_page # 2.4
print(f"{cost:.2f}")
```
Result = 2.40
The job costs $2.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "2.40", "printed": "2.40", "notation": null} |
nlprog_det-setting-0064927 | Goods bought on January 17, 2026 carry a 24-month warranty. When does it expire?
Python does the arithmetic:
```python
from datetime import date
start = date(2026, 1, 17)
months = 24
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 154 | {"gold": "2028-01-17", "printed": "2028-01-17", "notation": null} |
nlprog_det-setting-0064928 | A quorum is 3/5 of the 37 members, rounded up. How many members make a quorum?
Python makes this quick:
import math
members = 37
quorum = math.ceil(members * 3 / 5) # 23
print(quorum)
Printed: 23
That is 23 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0064929 | Pack A has 12 items for $7.22. Pack B has 15 items for $19.78. Which has the lower price per item?
As a program:
```python
pack_a = 7.22 / 12 # 0.6016666666666667
pack_b = 19.78 / 15 # 1.3186666666666667
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
Execution result: A
Pack A is cheaper per it... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0064930 | A $60,000 grant pays $0 up front and the rest in 4 equal installments. How large is each installment?
Here is a short program for it.
```python
grant = 60000
up_front = 0
installments = 4
each = (grant - up_front) / installments # 15000.0
print(f"{each:.2f}")
```
It prints 15000.00.
$15,000.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "15000.00", "printed": "15000.00", "notation": null} |
nlprog_det-setting-0064931 | Divide 124 items among 9 groups as evenly as possible with equal groups. How many per group, and how many remain?
The Python version:
```python
total = 124
groups = 9
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
# printed: 13 each, 7 left over
13 each, 7 left over... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "13 each, 7 left over", "printed": "13 each, 7 left over", "notation": null} |
nlprog_det-setting-0064932 | A chair costs $300. It is 20% off. What is the sale price?
Let the code do the arithmetic:
```python
price = 300
discount = 20 / 100 # 0.2
sale_price = price * (1 - discount) # 240.0
print(f"{sale_price:.2f}")
```
The script prints: 240.00
The sale price is $240.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "240.00", "printed": "240.00", "notation": null} |
nlprog_det-setting-0064934 | <|start|><|system|>
Functions:
[{"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|>
A kettle costs $120. It is 20% off. ... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"sandbox_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\"]}... | nlprog_det | setting | original | null | deterministic | [] | [] | 231 | {"gold": "96.00", "printed": "96.00", "notation": null} |
nlprog_det-setting-0064935 | <|start|><|user|>
26 rulers cost $12 apiece. With 5% tax added, what is the total?<|eot|>
<|assistant|>
```python
quantity = 26
unit_price = 12
subtotal = quantity * unit_price # 312
total = subtotal * (1 + 5 / 100) # 327.6
print(f"{total:.2f}")
```
Execution result — 327.60
The invoice total is $327.60.<|eot|>
<|en... | chat | [
{
"role": "user",
"content": "26 rulers cost $12 apiece. With 5% tax added, what is the total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 26\nunit_price = 12\nsubtotal = quantity * unit_price # 312\ntotal = subtotal * (1 + 5 / 100) # 327.6\nprint(f\"{total:.2f}\")\n```\nExecu... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "327.60", "printed": "327.60", "notation": null} |
nlprog_det-setting-0064936 | <|start|><|user|>
A 20 lb package ships at $10 base plus $2.50/lb. What is the charge?<|eot|>
<|assistant|>
```python
base = 10
per_pound = 2.5
weight = 20
cost = base + per_pound * weight # 60.0
print(f"{cost:.2f}")
```
The code prints: 60.00
The charge is $60.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 20 lb package ships at $10 base plus $2.50/lb. What is the charge?"
},
{
"role": "assistant",
"content": "```python\nbase = 10\nper_pound = 2.5\nweight = 20\ncost = base + per_pound * weight # 60.0\nprint(f\"{cost:.2f}\")\n```\nThe code prints: 60.00\n\nThe charg... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "60.00", "printed": "60.00", "notation": null} |
nlprog_det-setting-0064937 | Rent of $1,800 goes up 4%. What is the new rent?
```python
rent = 1800
increase = 4 / 100 # 0.04
new_rent = rent * (1 + increase) # 1872.0
print(f"{new_rent:.2f}")
```
Output:
1872.00
The new rent is $1,872.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "1872.00", "printed": "1872.00", "notation": null} |
nlprog_det-setting-0064938 | 3 bike rides at 350 calories each burn how many calories in total?
Here is the program.
```python
per_session = 350
sessions = 3
total = per_session * sessions # 1050
print(total)
```
Executed, it shows: 1050
1050 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "1050", "printed": "1050", "notation": null} |
nlprog_det-setting-0064939 | A 215-page report must be reviewed in 5 days. How many pages a day is that, evenly?
As Python:
```python
pages = 215
days = 5
per_day = pages // days # 43
print(per_day)
```
Printed result — 43
43 pages a day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "43", "printed": "43", "notation": null} |
nlprog_det-setting-0064940 | From 2025 to 2056, how many years is that?
31 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 18 | {"gold": "31", "printed": "31", "notation": null} |
nlprog_det-setting-0064941 | <|start|><|user|>
Zoe and Eamon share $2,485 in the ratio 3:4. How much does Zoe get?<|eot|>
<|assistant|>
Zoe gets $1,065.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Zoe and Eamon share $2,485 in the ratio 3:4. How much does Zoe get?"
},
{
"role": "assistant",
"content": "Zoe gets $1,065."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "1065", "printed": "1065", "notation": null} |
nlprog_det-setting-0064942 | A client paid a $2,500 retainer. The firm has billed 2 hours at $150 per hour. How much of the retainer is left?
retainer = 2500
hours = 2
rate = 150
left = retainer - hours * rate # 2200
print(left)
The program outputs: 2200
The remaining balance is $2,200. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "2200", "printed": "2200", "notation": null} |
nlprog_det-setting-0064943 | A party has 28 days to respond to a motion served on February 23, 2027, with 3 days added because service was by mail. When is the response due?
```python
from datetime import date, timedelta
served = date(2027, 2, 23) # datetime.date(2027, 2, 23)
response_days = 28
mail_days = 3
due = served + timedelta(days=respons... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 175 | {"gold": "2027-03-26", "printed": "2027-03-26", "notation": null} |
nlprog_det-setting-0064944 | From 1990 to 2007, how many years is that?
```python
start_year = 1990
end_year = 2007
print(end_year - start_year)
```
Shell output — 17
That is 17 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 61 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0064946 | <|start|><|system|>
You are a careful reviewer of figures.<|eot|>
<|user|>
What simple interest does $2,500 earn at 5% a year over 5 years?<|eot|>
<|assistant|>
The interest is $625.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a careful reviewer of figures."
},
{
"role": "user",
"content": "What simple interest does $2,500 earn at 5% a year over 5 years?"
},
{
"role": "assistant",
"content": "The interest is $625.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 51 | {"gold": "625.00", "printed": "625.00", "notation": null} |
nlprog_det-setting-0064947 | A client paid a $2,500 retainer. The firm has billed 4 hours at $200 per hour. How much of the retainer is left?
Translated to Python:
retainer = 2500
hours = 4
rate = 200
left = retainer - hours * rate # 1700
print(left)
This prints 1700, as expected.
The remaining balance is $1,700. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "1700", "printed": "1700", "notation": null} |
nlprog_det-setting-0064948 | <|start|><|system|>
You check calculations for an accounting team.<|eot|>
<|user|>
After an initial $3,000, the remainder of a $24,000 grant is paid in 6 equal parts. What is each part?<|eot|>
<|assistant|>
```python
grant = 24000
up_front = 3000
installments = 6
each = (grant - up_front) / installments # 3500.0
print... | chat | [
{
"role": "system",
"content": "You check calculations for an accounting team."
},
{
"role": "user",
"content": "After an initial $3,000, the remainder of a $24,000 grant is paid in 6 equal parts. What is each part?"
},
{
"role": "assistant",
"content": "```python\ngrant = 24000\nup_... | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "3500.00", "printed": "3500.00", "notation": null} |
nlprog_det-setting-0064949 | <|start|><|user|>
Amir lends $8,000 at 5% simple interest per year for 2 years. How much interest is earned?<|eot|>
<|assistant|>
principal = 8000
rate = 5 / 100 # 0.05
years = 2
interest = principal * rate * years # 800.0
print(f"{interest:.2f}")
This prints: 800.00
The interest is $800.00.<|eot... | chat | [
{
"role": "user",
"content": "Amir lends $8,000 at 5% simple interest per year for 2 years. How much interest is earned?"
},
{
"role": "assistant",
"content": " principal = 8000\n rate = 5 / 100 # 0.05\n years = 2\n interest = principal * rate * years # 800.0\n print(f\"{interes... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "800.00", "printed": "800.00", "notation": null} |
nlprog_det-setting-0064950 | <|start|><|system|>
You have access to these functions:
[{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "calc", "description": "Executes Py... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", ... | nlprog_det | setting | original | null | deterministic | [] | [] | 390 | {"gold": "62800", "printed": "62800", "notation": null} |
nlprog_det-setting-0064951 | A 22 lb package ships at $10 base plus $2.00/lb. What is the charge?
Program:
```python
base = 10
per_pound = 2.0
weight = 22
cost = base + per_pound * weight
print(f"{cost:.2f}")
```
Result: 54.00
The charge is $54.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "54.00", "printed": "54.00", "notation": null} |
nlprog_det-setting-0064952 | A library charges $0.15 per book per day late. What is the fine for 4 books that are 15 days late?
Python version:
per_day = 0.15
days_late = 15
books = 4
fine = per_day * days_late * books
print(f"{fine:.2f}")
Running it prints: 9.00
$9.00 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "9.00", "printed": "9.00", "notation": null} |
nlprog_det-setting-0064953 | A pack of 4 paper reams sells for $176. What does each cost?
```python
total = 176
count = 4
per_item = total // count # 44
print(per_item)
```
(Execution result: 44)
The unit price is $44. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "44", "printed": "44", "notation": null} |
nlprog_det-setting-0064954 | <|start|><|user|>
A library charges $0.50 per book per day late. What is the fine for 3 books that are 5 days late?<|eot|>
<|assistant|>
```python
per_day = 0.5
days_late = 5
books = 3
fine = per_day * days_late * books # 7.5
print(f"{fine:.2f}")
```
That prints: 7.50
$7.50 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A library charges $0.50 per book per day late. What is the fine for 3 books that are 5 days late?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.5\ndays_late = 5\nbooks = 3\nfine = per_day * days_late * books # 7.5\nprint(f\"{fine:.2f}\")\n```\nThat ... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "7.50", "printed": "7.50", "notation": null} |
nlprog_det-setting-0064955 | Under a 40% contingency agreement, what fee is owed on a $25,000 award?
Written as code:
```python
recovery = 25000
rate = 40 / 100 # 0.4
fee = recovery * rate # 10000.0
print(f"{fee:.2f}")
```
Run it and it prints 10000.00.
The fee is $10,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "10000.00", "printed": "10000.00", "notation": null} |
nlprog_det-setting-0064956 | <|start|><|user|>
A library charges $0.25 per book per day late. What is the fine for 3 books that are 21 days late?<|eot|>
<|assistant|>
```python
per_day = 0.25
days_late = 21
books = 3
fine = per_day * days_late * books
print(f"{fine:.2f}")
```
# console output: 15.75
$15.75 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A library charges $0.25 per book per day late. What is the fine for 3 books that are 21 days late?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.25\ndays_late = 21\nbooks = 3\nfine = per_day * days_late * books\nprint(f\"{fine:.2f}\")\n```\n# console... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "15.75", "printed": "15.75", "notation": null} |
nlprog_det-setting-0064958 | At a 5% tax rate, what is the tax on $411.81?
We write it as a program:
```python
price = 411.81
tax_rate = 5 / 100 # 0.05
tax = price * tax_rate # 20.590500000000002
print(f"{tax:.2f}")
```
The program prints 20.59, as expected.
The tax is $20.59. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "20.59", "printed": "20.59", "notation": null} |
nlprog_det-setting-0064959 | 770 files go into boxes of 40. How many boxes does that take?
```python
import math
files = 770
per_box = 40
boxes = math.ceil(files / per_box) # 20
print(boxes)
```
Python prints 20, as expected.
20 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0064960 | A 900-page report must be reviewed in 15 days. How many pages a day is that, evenly?
A Python solution:
```python
pages = 900
days = 15
per_day = pages // days # 60
print(per_day)
```
On running, it outputs: 60
That is 60 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "60", "printed": "60", "notation": null} |
nlprog_det-setting-0064961 | <|start|><|system|>
You are a careful reviewer of figures.<|eot|>
<|user|>
16 hard drives cost $12 apiece. With 7% tax added, what is the total?<|eot|>
<|assistant|>
```python
quantity = 16
unit_price = 12
subtotal = quantity * unit_price # 192
total = subtotal * (1 + 7 / 100) # 205.44
print(f"{total:.2f}")
```
Conso... | chat | [
{
"role": "system",
"content": "You are a careful reviewer of figures."
},
{
"role": "user",
"content": "16 hard drives cost $12 apiece. With 7% tax added, what is the total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 16\nunit_price = 12\nsubtotal = quantity * unit_... | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "205.44", "printed": "205.44", "notation": null} |
nlprog_det-setting-0064962 | <|start|><|user|>
A room is 24 feet by 17 feet. Flooring costs $4 per square foot. What does it cost to floor the room?<|eot|>
<|assistant|>
The flooring costs $1,632.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A room is 24 feet by 17 feet. Flooring costs $4 per square foot. What does it cost to floor the room?"
},
{
"role": "assistant",
"content": "The flooring costs $1,632."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 47 | {"gold": "1632", "printed": "1632", "notation": null} |
nlprog_det-setting-0064964 | A 36 lb package ships at $12 base plus $2.00/lb. What is the charge?
Written as code:
```python
base = 12
per_pound = 2.0
weight = 36
cost = base + per_pound * weight # 84.0
print(f"{cost:.2f}")
```
Printed = 84.00
Shipping costs $84.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "84.00", "printed": "84.00", "notation": null} |
nlprog_det-setting-0064966 | How many days are there from January 21, 2023 to January 14, 2024?
```python
from datetime import date
first = date(2023, 1, 21) # datetime.date(2023, 1, 21)
second = date(2024, 1, 14) # datetime.date(2024, 1, 14)
print((second - first).days)
```
Running this gives: 358
There are 358 days between the two dates. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "358", "printed": "358", "notation": null} |
nlprog_det-setting-0064967 | <|start|><|system|>
Show working only when it helps.<|eot|>
<|user|>
$2,000 is invested at 3% compounded yearly. What is it worth after 2 years?<|eot|>
<|assistant|>
```python
principal = 2000
rate = 3 / 100 # 0.03
years = 2
value = principal * (1 + rate) ** years # 2121.7999999999997
print(f"{value:.2f}")
```
The pr... | chat | [
{
"role": "system",
"content": "Show working only when it helps."
},
{
"role": "user",
"content": "$2,000 is invested at 3% compounded yearly. What is it worth after 2 years?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 2000\nrate = 3 / 100 # 0.03\nyears = 2\nvalue ... | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "2121.80", "printed": "2121.80", "notation": null} |
nlprog_det-setting-0064968 | A count moves from 1,000 to 600. By what percent did it change (use a minus sign for a drop)?
A Python solution:
old = 1000
new = 600
change = (new - old) / old * 100 # -40.0
print(round(change))
The printout reads: -40
The change is -40%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "-40", "printed": "-40", "notation": null} |
nlprog_det-setting-0064969 | A 360-mile drive at a steady 60 mph takes how many minutes?
Computing it:
```python
distance = 360
speed = 60
minutes = distance / speed * 60 # 360.0
print(round(minutes))
```
Run output — 360
The trip takes 360 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "360", "printed": "360", "notation": null} |
nlprog_det-setting-0064970 | <|start|><|user|>
74 copies of a 15-page packet are printed at $0.08 per page. What is the cost?<|eot|>
<|assistant|>
```python
pages = 15
copies = 74
cost_per_page = 0.08
cost = pages * copies * cost_per_page # 88.8
print(f"{cost:.2f}")
```
The interpreter prints: 88.80
The job costs $88.80.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "74 copies of a 15-page packet are printed at $0.08 per page. What is the cost?"
},
{
"role": "assistant",
"content": "```python\npages = 15\ncopies = 74\ncost_per_page = 0.08\ncost = pages * copies * cost_per_page # 88.8\nprint(f\"{cost:.2f}\")\n```\nThe interprete... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "88.80", "printed": "88.80", "notation": null} |
nlprog_det-setting-0064971 | 10 boxes hold 10 binders each. After 3 are handed out, how many are left?
Python:
```python
boxes = 10
per_box = 10
given_away = 3
left = boxes * per_box - given_away # 97
print(left)
```
Printed:
97
97 binders are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "97", "printed": "97", "notation": null} |
nlprog_det-setting-0064972 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "calc", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"calc\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python ... | nlprog_det | setting | original | null | deterministic | [] | [] | 240 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0064973 | <|start|><|user|>
What is 30 degrees Celsius in Fahrenheit?<|eot|>
<|assistant|>
celsius = 30
fahrenheit = celsius * 9 / 5 + 32 # 86.0
print(round(fahrenheit))
Executed, it shows: 86
It equals 86 degrees Fahrenheit.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is 30 degrees Celsius in Fahrenheit?"
},
{
"role": "assistant",
"content": " celsius = 30\n fahrenheit = celsius * 9 / 5 + 32 # 86.0\n print(round(fahrenheit))\nExecuted, it shows: 86\n\nIt equals 86 degrees Fahrenheit."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "86", "printed": "86", "notation": null} |
nlprog_det-setting-0064974 | Monthly: $19. Annual: $210. What is saved per year by paying annually?
Here's the code.
```python
monthly = 19
yearly = 210
savings = monthly * 12 - yearly # 18
print(savings)
```
Out:
18
$18 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0064975 | <|start|><|user|>
If a 50-minute appointment begins at 11:45 AM, what time does it finish?<|eot|>
<|assistant|>
```python
start = 11 * 60 + 45
end = start + 50
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
It outputs: 12:35 PM
It ends at 12:35 PM.<|eot|>
... | chat | [
{
"role": "user",
"content": "If a 50-minute appointment begins at 11:45 AM, what time does it finish?"
},
{
"role": "assistant",
"content": "```python\nstart = 11 * 60 + 45\nend = start + 50\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM... | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "12:35 PM", "printed": "12:35 PM", "notation": null} |
nlprog_det-setting-0064976 | How many whole days and leftover hours are in 61 hours?
A short script:
```python
hours = 61
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
The run gives 2 days and 13 hours.
61 hours is 2 days and 13 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "2 days and 13 hours", "printed": "2 days and 13 hours", "notation": null} |
nlprog_det-setting-0064978 | <|start|><|user|>
How many days are there from October 7, 2021 to April 3, 2022?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2021, 10, 7)
second = date(2022, 4, 3)
print((second - first).days)
```
Output — 178
There are 178 days between the two dates.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many days are there from October 7, 2021 to April 3, 2022?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2021, 10, 7)\nsecond = date(2022, 4, 3)\nprint((second - first).days)\n```\nOutput — 178\n\nThere are 178 days be... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "178", "printed": "178", "notation": null} |
nlprog_det-setting-0064979 | <|start|><|user|>
Scale 150 g of lentils from 2 servings to 6 servings.<|eot|>
<|assistant|>
```python
grams = 150
serves = 2
needed_for = 6
scaled = grams * needed_for // serves # 450
print(scaled)
```
(Result: 450)
Use 450 g of lentils.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Scale 150 g of lentils from 2 servings to 6 servings."
},
{
"role": "assistant",
"content": "```python\ngrams = 150\nserves = 2\nneeded_for = 6\nscaled = grams * needed_for // serves # 450\nprint(scaled)\n```\n(Result: 450)\n\nUse 450 g of lentils."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "450", "printed": "450", "notation": null} |
nlprog_det-setting-0064980 | Divide 101 items among 8 groups as evenly as possible with equal groups. How many per group, and how many remain?
In code:
```python
total = 101
groups = 8
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Run result — 12 each, 5 left over
The answer: 12 each, 5 left o... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "12 each, 5 left over", "printed": "12 each, 5 left over", "notation": null} |
nlprog_det-setting-0064981 | <|start|><|user|>
How many of 44 votes make 67% (round up)?<|eot|>
<|assistant|>
At least 30 votes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many of 44 votes make 67% (round up)?"
},
{
"role": "assistant",
"content": "At least 30 votes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0064982 | <|start|><|system|>
Tool definitions:
[{"name": "interpreter", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
Express 47 hours in days and hours.<|e... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"interpreter\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program\"]}}]... | nlprog_det | setting | original | null | deterministic | [] | [] | 197 | {"gold": "1 days and 23 hours", "printed": "1 days and 23 hours", "notation": null} |
nlprog_det-setting-0064983 | <|start|><|user|>
What is the total rent on a 24-month lease at $850 a month?<|eot|>
<|assistant|>
```python
monthly_rent = 850
months = 24
total = monthly_rent * months # 20400
print(total)
```
The run gives: 20400
In total, $20,400 is paid.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is the total rent on a 24-month lease at $850 a month?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 850\nmonths = 24\ntotal = monthly_rent * months # 20400\nprint(total)\n```\nThe run gives: 20400\n\nIn total, $20,400 is paid."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "20400", "printed": "20400", "notation": null} |
nlprog_det-setting-0064984 | <|start|><|user|>
Equipment costs $18,000, has a salvage value of $0, and a useful life of 4 years. What is the straight-line depreciation per year?<|eot|>
<|assistant|>
```python
cost = 18000
salvage = 0
years = 4
per_year = (cost - salvage) / years
print(f"{per_year:.2f}")
```
The run gives: 4500.00
$4,500.00 a year... | chat | [
{
"role": "user",
"content": "Equipment costs $18,000, has a salvage value of $0, and a useful life of 4 years. What is the straight-line depreciation per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 18000\nsalvage = 0\nyears = 4\nper_year = (cost - salvage) / years\nprint(f\"{... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "4500.00", "printed": "4500.00", "notation": null} |
nlprog_det-setting-0064985 | <|start|><|user|>
At 45 miles per hour, how many minutes does a 120-mile trip take?<|eot|>
<|assistant|>
distance = 120
speed = 45
minutes = distance / speed * 60 # 160.0
print(round(minutes))
The run gives: 160
The trip takes 160 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At 45 miles per hour, how many minutes does a 120-mile trip take?"
},
{
"role": "assistant",
"content": " distance = 120\n speed = 45\n minutes = distance / speed * 60 # 160.0\n print(round(minutes))\nThe run gives: 160\n\nThe trip takes 160 minutes."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 73 | {"gold": "160", "printed": "160", "notation": null} |
nlprog_det-setting-0064987 | How many weekdays (Monday to Friday) fall after May 6, 2021 up to and including June 13, 2021?
Translated to Python:
```python
from datetime import date, timedelta
start = date(2021, 5, 6)
end = date(2021, 6, 13)
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 | [] | [] | 158 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0064988 | A trial runs from February 25, 2028 to March 4, 2028, counting both days. How many calendar days is that?
As a program:
```python
from datetime import date
first = date(2028, 2, 25) # datetime.date(2028, 2, 25)
last = date(2028, 3, 4) # datetime.date(2028, 3, 4)
days = (last - first).days + 1 # 9
print(days)
```
# ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0064989 | <|start|><|user|>
A 6-month warranty starts on December 12, 2027. On what date does it end?<|eot|>
<|assistant|>
```python
from datetime import date
start = date(2027, 12, 12)
months = 6
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isofor... | chat | [
{
"role": "user",
"content": "A 6-month warranty starts on December 12, 2027. On what date does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nstart = date(2027, 12, 12)\nmonths = 6\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(start... | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "2028-06-12", "printed": "2028-06-12", "notation": null} |
nlprog_det-setting-0064990 | A 5-day trip pays $74 a day for meals and $110 a night for lodging (4 nights). What is the total allowance?
Here's the code.
```python
days = 5
meal_rate = 74
lodging_rate = 110
nights = days - 1 # 4
total = days * meal_rate + nights * lodging_rate # 810
print(total)
```
What it prints — 810
The allowance is $810. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "810", "printed": "810", "notation": null} |
nlprog_det-setting-0064991 | How many minutes pass from 11:17 AM to 1:29 PM on the same day?
Written as code:
```python
start = 11 * 60 + 17 # 677
end = 13 * 60 + 29 # 809
print(end - start)
```
The run gives 132, as expected.
132 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "132", "printed": "132", "notation": null} |
nlprog_det-setting-0064992 | <|start|><|user|>
An unpaid balance of $12,000 accrues 1.5% simple interest per month. How much interest accrues in 6 months?<|eot|>
<|assistant|>
The interest is $1,080.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An unpaid balance of $12,000 accrues 1.5% simple interest per month. How much interest accrues in 6 months?"
},
{
"role": "assistant",
"content": "The interest is $1,080.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 51 | {"gold": "1080.00", "printed": "1080.00", "notation": null} |
nlprog_det-setting-0064993 | A shift runs from 8:42 AM to 11:35 AM. How long is it in minutes?
Written as code:
```python
start = 8 * 60 + 42
end = 11 * 60 + 35
print(end - start)
```
# stdout: 173
It is 173 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "173", "printed": "173", "notation": null} |
nlprog_det-setting-0064994 | Buying 2 mugs at $13 each, 4 calendars at $18 each, 1 badges at $30 each, someone hands over $150. What change comes back?
The computation:
```python
items = [(2, 13), (4, 18), (1, 30)]
total = sum(q * p for q, p in items)
paid = 150
change = paid - total
print(change)
```
# program output: 22
$22 comes back. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0064995 | After an initial $6,000, the remainder of a $30,000 grant is paid in 3 equal parts. What is each part?
We write it as a program:
```python
grant = 30000
up_front = 6000
installments = 3
each = (grant - up_front) / installments # 8000.0
print(f"{each:.2f}")
```
When run, it prints: 8000.00
Each installment is $8,000.... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "8000.00", "printed": "8000.00", "notation": null} |
nlprog_det-setting-0064996 | Convert 10 °C to Fahrenheit.
Program:
celsius = 10
fahrenheit = celsius * 9 / 5 + 32
print(round(fahrenheit))
Output — 50
It equals 50 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0064997 | <|start|><|system|>
Show working only when it helps.<|eot|>
<|user|>
A lawyer's fee is 25% of a $90,000 recovery. How large is the fee?<|eot|>
<|assistant|>
```python
recovery = 90000
rate = 25 / 100 # 0.25
fee = recovery * rate # 22500.0
print(f"{fee:.2f}")
```
Result:
22500.00
The lawyer's fee comes to $22,500.00.... | chat | [
{
"role": "system",
"content": "Show working only when it helps."
},
{
"role": "user",
"content": "A lawyer's fee is 25% of a $90,000 recovery. How large is the fee?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 90000\nrate = 25 / 100 # 0.25\nfee = recovery * rate # ... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "22500.00", "printed": "22500.00", "notation": null} |
nlprog_det-setting-0064998 | Parking is $2 per hour with a daily maximum of $18. What do 9 hours cost?
Script:
```python
rate = 2
hours = 9
daily_max = 18
cost = min(rate * hours, daily_max) # 18
print(cost)
```
(Run result: 18)
Parking costs $18. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0064999 | 3 friends split a $180 bill plus a 15% tip evenly. How much does each pay?
Here is a short program for it.
```python
bill = 180
tip_rate = 15 / 100 # 0.15
people = 3
each = bill * (1 + tip_rate) / people # 68.99999999999999
print(f"{each:.2f}")
```
Result:
69.00
The share is $69.00 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "69.00", "printed": "69.00", "notation": null} |
nlprog_det-setting-0065000 | 3 claimants share a $960 settlement equally. What is each share?
Here's the code.
```python
settlement = 960
parties = 3
share = settlement // parties # 320
print(share)
```
The program prints 320.
Each party receives $320. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "320", "printed": "320", "notation": null} |
nlprog_det-setting-0065001 | Malik buys 11 boxes of 6 chairs each and gives away 9 chairs. How many chairs are left?
We write it as a program:
```python
boxes = 11
per_box = 6
given_away = 9
left = boxes * per_box - given_away # 57
print(left)
```
stdout = 57
57 chairs are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "57", "printed": "57", "notation": null} |
nlprog_det-setting-0065002 | A 13 × 9 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?
Set it up in Python:
import math
length = 13
width = 9
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 30
print(tiles)
Running it prints 30.
30 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0065003 | <|start|><|user|>
After a 40% fee is taken from a $60,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|>
<|assistant|>
```python
award = 60000
fee = award * 40 / 100 # 24000.0
remaining = award - fee # 36000.0
per_client = remaining / 3 # 12000.0
print(f"{per_client:.2f}")... | chat | [
{
"role": "user",
"content": "After a 40% fee is taken from a $60,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?"
},
{
"role": "assistant",
"content": "```python\naward = 60000\nfee = award * 40 / 100 # 24000.0\nremaining = award - fee # 36000.0\nper_cl... | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "12000.00", "printed": "12000.00", "notation": null} |
nlprog_det-setting-0065004 | Yoko earns $22.40 an hour and time and a half for hours over 40. What is the pay for a 54-hour week?
Let the code do the arithmetic:
```python
rate = 22.4
hours = 54
regular = 40 * rate # 896.0
overtime = (hours - 40) * rate * 1.5 # 470.4
pay = regular + overtime # 1366.4
print(f"{pay:.2f}")
```
It prints: 1366.40
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "1366.40", "printed": "1366.40", "notation": null} |
nlprog_det-setting-0065005 | <|start|><|user|>
Count 30 days forward from July 2, 2019. What date is that?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2019, 7, 2) # datetime.date(2019, 7, 2)
end = start + timedelta(days=30) # datetime.date(2019, 8, 1)
print(end.isoformat())
```
This prints 2019-08-01, as expe... | chat | [
{
"role": "user",
"content": "Count 30 days forward from July 2, 2019. What date is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2019, 7, 2) # datetime.date(2019, 7, 2)\nend = start + timedelta(days=30) # datetime.date(2019, 8, 1)\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "2019-08-01", "printed": "2019-08-01", "notation": null} |
nlprog_det-setting-0065006 | A $84 dinner bill gets a 18% tip, and 3 people share the cost equally. What is each person's share?
Computing it:
```python
bill = 84
tip_rate = 18 / 100 # 0.18
people = 3
each = bill * (1 + tip_rate) / people # 33.04
print(f"{each:.2f}")
```
# out: 33.04
Each person pays $33.04. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "33.04", "printed": "33.04", "notation": null} |
nlprog_det-setting-0065007 | <|start|><|user|>
From 2000 to 2017, how many years is that?<|eot|>
<|assistant|>
```python
start_year = 2000
end_year = 2017
print(end_year - start_year)
```
Out:
17
17 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From 2000 to 2017, how many years is that?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 2000\nend_year = 2017\nprint(end_year - start_year)\n```\nOut:\n17\n\n17 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 64 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0065008 | <|start|><|user|>
A storeroom has 709 file boxes. The office uses 40 a day. How many are left after 9 days?<|eot|>
<|assistant|>
```python
stock = 709
per_day = 40
days = 9
left = stock - per_day * days # 349
print(left)
```
It prints: 349
349 remain.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A storeroom has 709 file boxes. The office uses 40 a day. How many are left after 9 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 709\nper_day = 40\ndays = 9\nleft = stock - per_day * days # 349\nprint(left)\n```\nIt prints: 349\n\n349 remain."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "349", "printed": "349", "notation": null} |
nlprog_det-setting-0065009 | 5 boxes hold 10 keyboards each. After 5 are handed out, how many are left?
Python, step by step:
```python
boxes = 5
per_box = 10
given_away = 5
left = boxes * per_box - given_away # 45
print(left)
```
Result: 45
45 keyboards are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "45", "printed": "45", "notation": null} |
nlprog_det-setting-0065010 | Count 10 days forward from July 2, 2019. What date is that?
We can compute it in Python.
from datetime import date, timedelta
start = date(2019, 7, 2) # datetime.date(2019, 7, 2)
end = start + timedelta(days=10) # datetime.date(2019, 7, 12)
print(end.isoformat())
This prints 2019-07-12, as expected.
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "2019-07-12", "printed": "2019-07-12", "notation": null} |
nlprog_det-setting-0065011 | <|start|><|system|>
Functions:
[{"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"]}}, {"name": "business_... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\": \"string\"}}, \"require... | nlprog_det | setting | original | null | deterministic | [] | [] | 414 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0065012 | A penalty of $25 a day accrues, capped at $5,000. What is owed after 57 days?
Written as code:
```python
per_day = 25
days = 57
cap = 5000
fine = min(per_day * days, cap) # 1425
print(fine)
```
Output:
1425
$1,425 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "1425", "printed": "1425", "notation": null} |
nlprog_det-setting-0065013 | <|start|><|user|>
Convert 15 °C to Fahrenheit.<|eot|>
<|assistant|>
It equals 59 degrees Fahrenheit.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 15 °C to Fahrenheit."
},
{
"role": "assistant",
"content": "It equals 59 degrees Fahrenheit."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "59", "printed": "59", "notation": null} |
nlprog_det-setting-0065015 | <|start|><|user|>
From a $10,000 retainer, 6 hours at $250/hour have been drawn. What remains?<|eot|>
<|assistant|>
```python
retainer = 10000
hours = 6
rate = 250
left = retainer - hours * rate # 8500
print(left)
```
Python prints 8500, as expected.
The remaining balance is $8,500.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From a $10,000 retainer, 6 hours at $250/hour have been drawn. What remains?"
},
{
"role": "assistant",
"content": "```python\nretainer = 10000\nhours = 6\nrate = 250\nleft = retainer - hours * rate # 8500\nprint(left)\n```\nPython prints 8500, as expected.\n\nThe ... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "8500", "printed": "8500", "notation": null} |
nlprog_det-setting-0065016 | A 675-page report must be reviewed in 15 days. How many pages a day is that, evenly?
Python version:
```python
pages = 675
days = 15
per_day = pages // days # 45
print(per_day)
```
Run output: 45
That is 45 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "45", "printed": "45", "notation": null} |
nlprog_det-setting-0065017 | <|start|><|system|>
Available functions (JSON Schema):
[{"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": "get_weather", "descrip... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\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 | [] | [] | 389 | {"gold": "2310.00", "printed": "2310.00", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.