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-0060546 | Split $2,864 between Tobias and Wen in the ratio 1 to 3. What is Tobias's share?
Python version:
```python
total = 2864
parts_a = 1
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b) # 716
print(share_a)
```
The printout reads: 716
Tobias's share is $716. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "716", "printed": "716", "notation": null} |
nlprog_det-setting-0060547 | What commission does Viktor make on $105,291 in sales at 3%?
Programmatically:
```python
sales = 105291
rate = 3 / 100 # 0.03
commission = sales * rate # 3158.73
print(f"{commission:.2f}")
```
# program output: 3158.73
The commission is $3,158.73. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "3158.73", "printed": "3158.73", "notation": null} |
nlprog_det-setting-0060548 | <|start|><|system|>
Tool definitions:
[{"name": "run_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
164 copies of a 26-page packet are p... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"run_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}... | nlprog_det | setting | original | null | deterministic | [] | [] | 237 | {"gold": "426.40", "printed": "426.40", "notation": null} |
nlprog_det-setting-0060549 | At $17.97 an hour, what does 40 hours of work pay?
That earns $718.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "718.80", "printed": "718.80", "notation": null} |
nlprog_det-setting-0060552 | <|start|><|user|>
How many weekdays (Monday to Friday) fall after June 27, 2021 up to and including August 1, 2021?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2021, 6, 27)
end = date(2021, 8, 1)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k))... | chat | [
{
"role": "user",
"content": "How many weekdays (Monday to Friday) fall after June 27, 2021 up to and including August 1, 2021?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2021, 6, 27)\nend = date(2021, 8, 1)\ncount = 0\nfor k in range(1, ... | nlprog_det | setting | original | null | deterministic | [] | [] | 155 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0060553 | A hall has 13 rows of 10 seats, and 9 seats are empty. How many people are seated?
121 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "121", "printed": "121", "notation": null} |
nlprog_det-setting-0060554 | A recipe for 6 people uses 150 grams of lentils. How many grams are needed for 3 people?
Python, step by step:
```python
grams = 150
serves = 6
needed_for = 3
scaled = grams * needed_for // serves # 75
print(scaled)
```
Printed = 75
75 grams of lentils are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "75", "printed": "75", "notation": null} |
nlprog_det-setting-0060555 | A $120 dinner bill gets a 20% tip, and 5 people share the cost equally. What is each person's share?
In Python:
```python
bill = 120
tip_rate = 20 / 100 # 0.2
people = 5
each = bill * (1 + tip_rate) / people # 28.8
print(f"{each:.2f}")
```
# run result: 28.80
Each person pays $28.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "28.80", "printed": "28.80", "notation": null} |
nlprog_det-setting-0060556 | What is the total rent on a 12-month lease at $850 a month?
Script:
```python
monthly_rent = 850
months = 12
total = monthly_rent * months # 10200
print(total)
```
This prints: 10200
In total, $10,200 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "10200", "printed": "10200", "notation": null} |
nlprog_det-setting-0060557 | <|start|><|user|>
What average speed covers 226 miles in 2 hours?<|eot|>
<|assistant|>
```python
distance = 226
hours = 2
speed = distance / hours # 113.0
print(round(speed))
```
The program outputs: 113
The average speed is 113 mph.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What average speed covers 226 miles in 2 hours?"
},
{
"role": "assistant",
"content": "```python\ndistance = 226\nhours = 2\nspeed = distance / hours # 113.0\nprint(round(speed))\n```\nThe program outputs: 113\n\nThe average speed is 113 mph."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "113", "printed": "113", "notation": null} |
nlprog_det-setting-0060558 | Convert 2 h 34 min (the length of a hearing) to minutes.
Here is the program.
```python
hours = 2
minutes = 34
total_minutes = hours * 60 + minutes
print(total_minutes)
```
# stdout: 154
That is 154 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "154", "printed": "154", "notation": null} |
nlprog_det-setting-0060559 | <|start|><|system|>
Keep answers short and correct.<|eot|>
<|user|>
Express 69 hours in days and hours.<|eot|>
<|assistant|>
```python
hours = 69
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Printed — 2 days and 21 hours
69 hours is 2 days and 21 hours.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Keep answers short and correct."
},
{
"role": "user",
"content": "Express 69 hours in days and hours."
},
{
"role": "assistant",
"content": "```python\nhours = 69\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nPrinted —... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "2 days and 21 hours", "printed": "2 days and 21 hours", "notation": null} |
nlprog_det-setting-0060560 | Each of Kemal's swims burns 300 calories. How many calories over 5 swims?
Let's compute it with Python.
```python
per_session = 300
sessions = 5
total = per_session * sessions # 1500
print(total)
```
The interpreter prints 1500.
1500 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "1500", "printed": "1500", "notation": null} |
nlprog_det-setting-0060561 | <|start|><|user|>
Filing fees are $405 per document. What do 15 filings cost?<|eot|>
<|assistant|>
```python
fee = 405
filings = 15
total = fee * filings # 6075
print(total)
```
(Result: 6075)
The filings cost $6,075 in all.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Filing fees are $405 per document. What do 15 filings cost?"
},
{
"role": "assistant",
"content": "```python\nfee = 405\nfilings = 15\ntotal = fee * filings # 6075\nprint(total)\n```\n(Result: 6075)\n\nThe filings cost $6,075 in all."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "6075", "printed": "6075", "notation": null} |
nlprog_det-setting-0060562 | At $0.62 per mile, what is the reimbursement for 531 miles?
Set it up in Python:
```python
miles = 531
rate = 0.62
reimbursement = miles * rate # 329.21999999999997
print(f"{reimbursement:.2f}")
```
# run result: 329.22
The reimbursement is $329.22. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "329.22", "printed": "329.22", "notation": null} |
nlprog_det-setting-0060563 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "interpreter", "description": "Executes a Python program and returns... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"interpreter\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 285 | {"gold": "871.92", "printed": "871.92", "notation": null} |
nlprog_det-setting-0060564 | <|start|><|system|>
You may call the tools below.
[{"name": "python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
A library charges $0.20 p... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\... | nlprog_det | setting | original | null | deterministic | [] | [] | 232 | {"gold": "4.80", "printed": "4.80", "notation": null} |
nlprog_det-setting-0060565 | A 30-mile drive at a steady 30 mph takes how many minutes?
In code:
distance = 30
speed = 30
minutes = distance / speed * 60 # 60.0
print(round(minutes))
(Printed result: 60)
60 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 66 | {"gold": "60", "printed": "60", "notation": null} |
nlprog_det-setting-0060566 | At $22.54 an hour, what does 20 hours of work pay?
Python:
```python
rate = 22.54
hours = 20
earnings = rate * hours # 450.79999999999995
print(f"{earnings:.2f}")
```
stdout:
450.80
The pay is $450.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "450.80", "printed": "450.80", "notation": null} |
nlprog_det-setting-0060567 | What does $1,000 grow to in 3 years at 3% annual compounding?
```python
principal = 1000
rate = 3 / 100 # 0.03
years = 3
value = principal * (1 + rate) ** years # 1092.727
print(f"{value:.2f}")
```
# console output: 1092.73
It is worth $1,092.73. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "1092.73", "printed": "1092.73", "notation": null} |
nlprog_det-setting-0060568 | An attorney bills 8 hours at $350 per hour. What is the bill?
A few lines of Python do it:
```python
hours = 8
rate = 350
bill = hours * rate # 2800
print(f"{bill:.2f}")
```
When run, it prints: 2800.00
The bill is $2,800.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "2800.00", "printed": "2800.00", "notation": null} |
nlprog_det-setting-0060569 | 4 friends split a $150 bill plus a 20% tip evenly. How much does each pay?
One way, in code:
```python
bill = 150
tip_rate = 20 / 100 # 0.2
people = 4
each = bill * (1 + tip_rate) / people # 45.0
print(f"{each:.2f}")
```
Output:
45.00
The share is $45.00 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "45.00", "printed": "45.00", "notation": null} |
nlprog_det-setting-0060570 | 2 books come back 4 days late, at $0.25 a day each. What is the fine?
Program:
per_day = 0.25
days_late = 4
books = 2
fine = per_day * days_late * books # 2.0
print(f"{fine:.2f}")
The program prints 2.00, as expected.
$2.00 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "2.00", "printed": "2.00", "notation": null} |
nlprog_det-setting-0060571 | <|start|><|user|>
What percentage of $2,000 is $400?<|eot|>
<|assistant|>
20.0% has been spent.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What percentage of $2,000 is $400?"
},
{
"role": "assistant",
"content": "20.0% has been spent."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 28 | {"gold": "20.0", "printed": "20.0", "notation": null} |
nlprog_det-setting-0060572 | A shift runs from 7:25 AM to 9:31 AM. How long is it in minutes?
Python does the arithmetic:
```python
start = 7 * 60 + 25 # 445
end = 9 * 60 + 31 # 571
print(end - start)
```
It prints 126, as expected.
It is 126 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "126", "printed": "126", "notation": null} |
nlprog_det-setting-0060573 | <|start|><|user|>
A film lasted 2 hours and 35 minutes. How many minutes is that?<|eot|>
<|assistant|>
```python
hours = 2
minutes = 35
total_minutes = hours * 60 + minutes # 155
print(total_minutes)
```
# printed: 155
The film lasted 155 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A film lasted 2 hours and 35 minutes. How many minutes is that?"
},
{
"role": "assistant",
"content": "```python\nhours = 2\nminutes = 35\ntotal_minutes = hours * 60 + minutes # 155\nprint(total_minutes)\n```\n# printed: 155\n\nThe film lasted 155 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "155", "printed": "155", "notation": null} |
nlprog_det-setting-0060574 | <|start|><|system|>
Tools (call with JSON):
[{"name": "python_exec", "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|>
How m... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"python_exec\", \"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\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 227 | {"gold": "10 days and 19 hours", "printed": "10 days and 19 hours", "notation": null} |
nlprog_det-setting-0060575 | <|start|><|system|>
Keep explanations short.<|eot|>
<|user|>
A lease runs for 24 months at $1,640 per month. How much rent is paid over the whole term?<|eot|>
<|assistant|>
The rent over the term is $39,360.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Keep explanations short."
},
{
"role": "user",
"content": "A lease runs for 24 months at $1,640 per month. How much rent is paid over the whole term?"
},
{
"role": "assistant",
"content": "The rent over the term is $39,360."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 54 | {"gold": "39360", "printed": "39360", "notation": null} |
nlprog_det-setting-0060576 | Walls total 538 sq ft and each can covers 300 sq ft. How many cans should be bought?
Translated to Python:
```python
import math
area = 538
coverage = 300
cans = math.ceil(area / coverage) # 2
print(cans)
```
(Result: 2)
2 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0060577 | <|start|><|user|>
To read 315 pages in 15 days, how many pages per day are needed?<|eot|>
<|assistant|>
```python
pages = 315
days = 15
per_day = pages // days # 21
print(per_day)
```
This prints: 21
That is 21 pages per day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "To read 315 pages in 15 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": "```python\npages = 315\ndays = 15\nper_day = pages // days # 21\nprint(per_day)\n```\nThis prints: 21\n\nThat is 21 pages per day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "21", "printed": "21", "notation": null} |
nlprog_det-setting-0060578 | Filing fees are $25 per document. What do 18 filings cost?
Python code:
```python
fee = 25
filings = 18
total = fee * filings # 450
print(total)
```
# printed result: 450
$450 in filing fees. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "450", "printed": "450", "notation": null} |
nlprog_det-setting-0060579 | Attendance was 18 out of 25. Express it as a percent.
Here is a short program for it.
```python
present = 18
total = 25
percent = present / total * 100 # 72.0
print(round(percent, 1))
```
# printed result: 72.0
72.0% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "72.0", "printed": "72.0", "notation": null} |
nlprog_det-setting-0060580 | A 6% increase is applied to $1,100 monthly rent. What is the new amount?
Python code:
```python
rent = 1100
increase = 6 / 100 # 0.06
new_rent = rent * (1 + increase) # 1166.0
print(f"{new_rent:.2f}")
```
Result = 1166.00
It rises to $1,166.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "1166.00", "printed": "1166.00", "notation": null} |
nlprog_det-setting-0060581 | <|start|><|user|>
How much sales tax is charged on a $898.80 purchase at 8%?<|eot|>
<|assistant|>
$71.90 in tax.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How much sales tax is charged on a $898.80 purchase at 8%?"
},
{
"role": "assistant",
"content": "$71.90 in tax."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "71.90", "printed": "71.90", "notation": null} |
nlprog_det-setting-0060582 | How much sales tax is charged on a $442.95 purchase at 6%? The tax is $26.58. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "26.58", "printed": "26.58", "notation": null} |
nlprog_det-setting-0060583 | <|start|><|system|>
Functions:
{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}
{"name": "python_exec", "description": "Use for arithmetic and date math; returns stdout of the... | chat | [
{
"role": "system",
"content": "Functions:\n{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}\n{\"name\": \"python_exec\", \"description\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 290 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0060584 | <|start|><|system|>
Tool definitions:
{"name": "calculator", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}
{"name": "get_weather", "description": "Get the weath... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"calculator\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\"]}... | nlprog_det | setting | original | null | deterministic | [] | [] | 290 | {"gold": "667", "printed": "667", "notation": null} |
nlprog_det-setting-0060585 | <|start|><|user|>
A $84 dinner bill gets a 20% tip, and 6 people share the cost equally. What is each person's share?<|eot|>
<|assistant|>
```python
bill = 84
tip_rate = 20 / 100 # 0.2
people = 6
each = bill * (1 + tip_rate) / people # 16.8
print(f"{each:.2f}")
```
Running it prints 16.80.
The share is $16.80 each.<... | chat | [
{
"role": "user",
"content": "A $84 dinner bill gets a 20% tip, and 6 people share the cost equally. What is each person's share?"
},
{
"role": "assistant",
"content": "```python\nbill = 84\ntip_rate = 20 / 100 # 0.2\npeople = 6\neach = bill * (1 + tip_rate) / people # 16.8\nprint(f\"{each:.2f... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "16.80", "printed": "16.80", "notation": null} |
nlprog_det-setting-0060586 | Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 50 hours?
Script:
rate = 16.0
hours = 50
regular = 40 * rate
overtime = (hours - 40) * rate * 1.5
pay = regular + overtime
print(f"{pay:.2f}")
This prints 880.00.
The weekly pay is $880.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "880.00", "printed": "880.00", "notation": null} |
nlprog_det-setting-0060587 | 2 hours of work at $225 an hour: what is the total charge?
Let's compute it with Python.
```python
hours = 2
rate = 225
bill = hours * rate # 450
print(f"{bill:.2f}")
```
It prints: 450.00
The bill is $450.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "450.00", "printed": "450.00", "notation": null} |
nlprog_det-setting-0060588 | <|start|><|user|>
A shift runs from 10:16 AM to 12:14 PM. How long is it in minutes?<|eot|>
<|assistant|>
118 minutes pass.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A shift runs from 10:16 AM to 12:14 PM. How long is it in minutes?"
},
{
"role": "assistant",
"content": "118 minutes pass."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "118", "printed": "118", "notation": null} |
nlprog_det-setting-0060589 | <|start|><|user|>
What is the total rent on a 18-month lease at $1,475 a month?<|eot|>
<|assistant|>
```python
monthly_rent = 1475
months = 18
total = monthly_rent * months # 26550
print(total)
```
That prints 26550.
The rent over the term is $26,550.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is the total rent on a 18-month lease at $1,475 a month?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 1475\nmonths = 18\ntotal = monthly_rent * months # 26550\nprint(total)\n```\nThat prints 26550.\n\nThe rent over the term is $26,550."
}... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "26550", "printed": "26550", "notation": null} |
nlprog_det-setting-0060590 | On which weekday does September 20, 2023 fall?
Written as code:
```python
from datetime import date
hearing = date(2023, 9, 20) # datetime.date(2023, 9, 20)
print(hearing.strftime("%A"))
```
Run result = Wednesday
September 20, 2023 is a Wednesday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "Wednesday", "printed": "Wednesday", "notation": null} |
nlprog_det-setting-0060591 | <|start|><|user|>
How many weekdays (Monday to Friday) fall after September 11, 2020 up to and including October 21, 2020?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2020, 9, 11)
end = date(2020, 10, 21)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta... | chat | [
{
"role": "user",
"content": "How many weekdays (Monday to Friday) fall after September 11, 2020 up to and including October 21, 2020?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2020, 9, 11)\nend = date(2020, 10, 21)\ncount = 0\nfor k in ... | nlprog_det | setting | original | null | deterministic | [] | [] | 150 | {"gold": "28", "printed": "28", "notation": null} |
nlprog_det-setting-0060592 | <|start|><|user|>
Rania was born on December 16, 1992. How old is Rania on December 22, 2027?<|eot|>
<|assistant|>
Rania is 35.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Rania was born on December 16, 1992. How old is Rania on December 22, 2027?"
},
{
"role": "assistant",
"content": "Rania is 35."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "35", "printed": "35", "notation": null} |
nlprog_det-setting-0060593 | A party has 28 days to respond to a motion served on June 9, 2018, with 3 days added because service was by mail. When is the response due?
We can compute it in Python.
from datetime import date, timedelta
served = date(2018, 6, 9) # datetime.date(2018, 6, 9)
response_days = 28
mail_days = 3
due =... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 165 | {"gold": "2018-07-10", "printed": "2018-07-10", "notation": null} |
nlprog_det-setting-0060594 | A trial runs from August 3, 2021 to August 25, 2021, counting both days. How many calendar days is that?
Here is the program.
```python
from datetime import date
first = date(2021, 8, 3) # datetime.date(2021, 8, 3)
last = date(2021, 8, 25) # datetime.date(2021, 8, 25)
days = (last - first).days + 1 # 23
print(days)... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0060595 | <|start|><|user|>
$10,000 is invested at 5% compounded yearly. What is it worth after 3 years?<|eot|>
<|assistant|>
```python
principal = 10000
rate = 5 / 100 # 0.05
years = 3
value = principal * (1 + rate) ** years # 11576.250000000002
print(f"{value:.2f}")
```
What it prints: 11576.25
It is worth $11,576.25.<|eot|... | chat | [
{
"role": "user",
"content": "$10,000 is invested at 5% compounded yearly. What is it worth after 3 years?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 10000\nrate = 5 / 100 # 0.05\nyears = 3\nvalue = principal * (1 + rate) ** years # 11576.250000000002\nprint(f\"{value:.2f}\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "11576.25", "printed": "11576.25", "notation": null} |
nlprog_det-setting-0060596 | With 30% off, what does a $180 backpack cost?
The computation:
```python
price = 180
discount = 30 / 100 # 0.3
sale_price = price * (1 - discount) # 125.99999999999999
print(f"{sale_price:.2f}")
```
The program outputs: 126.00
It costs $126.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "126.00", "printed": "126.00", "notation": null} |
nlprog_det-setting-0060597 | <|start|><|system|>
Show working only when it helps.<|eot|>
<|user|>
Convert 4 h 9 min (the length of a meeting) to minutes.<|eot|>
<|assistant|>
hours = 4
minutes = 9
total_minutes = hours * 60 + minutes # 249
print(total_minutes)
Executed, it shows: 249
The meeting lasted 249 minutes.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Show working only when it helps."
},
{
"role": "user",
"content": "Convert 4 h 9 min (the length of a meeting) to minutes."
},
{
"role": "assistant",
"content": " hours = 4\n minutes = 9\n total_minutes = hours * 60 + minutes # 249\n print... | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "249", "printed": "249", "notation": null} |
nlprog_det-setting-0060598 | 4 envelopes cost $6 apiece. With 8% tax added, what is the total?
The invoice total is $25.92. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "25.92", "printed": "25.92", "notation": null} |
nlprog_det-setting-0060599 | If a 40-minute appointment begins at 2:00 PM, what time does it finish?
Python does the arithmetic:
```python
start = 14 * 60 + 0
end = start + 40
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Console:
2:40 PM
The appointment finishes at 2:40 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "2:40 PM", "printed": "2:40 PM", "notation": null} |
nlprog_det-setting-0060600 | <|start|><|system|>
Answer in plain English.<|eot|>
<|user|>
A measure needs at least 67% of 147 votes. How many votes is that, rounded up?<|eot|>
<|assistant|>
```python
import math
voters = 147
needed = math.ceil(voters * 67 / 100) # 99
print(needed)
```
Running it prints 99, as expected.
99 votes are needed.<|eot|... | chat | [
{
"role": "system",
"content": "Answer in plain English."
},
{
"role": "user",
"content": "A measure needs at least 67% of 147 votes. How many votes is that, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 147\nneeded = math.ceil(voters * 67 / 100)... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "99", "printed": "99", "notation": null} |
nlprog_det-setting-0060601 | A 33 lb package ships at $12 base plus $2.50/lb. What is the charge?
Translated to Python:
```python
base = 12
per_pound = 2.5
weight = 33
cost = base + per_pound * weight # 94.5
print(f"{cost:.2f}")
```
Output = 94.50
Shipping costs $94.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "94.50", "printed": "94.50", "notation": null} |
nlprog_det-setting-0060602 | <|start|><|system|>
You are a careful assistant.<|eot|>
<|user|>
What commission does Priya make on $96,739 in sales at 6%?<|eot|>
<|assistant|>
```python
sales = 96739
rate = 6 / 100 # 0.06
commission = sales * rate # 5804.34
print(f"{commission:.2f}")
```
Printed — 5804.34
Priya earns $5,804.34.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a careful assistant."
},
{
"role": "user",
"content": "What commission does Priya make on $96,739 in sales at 6%?"
},
{
"role": "assistant",
"content": "```python\nsales = 96739\nrate = 6 / 100 # 0.06\ncommission = sales * rate # 5804.34\npri... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "5804.34", "printed": "5804.34", "notation": null} |
nlprog_det-setting-0060603 | 23 copies of a 25-page packet are printed at $0.10 per page. What is the cost?
As Python:
```python
pages = 25
copies = 23
cost_per_page = 0.1
cost = pages * copies * cost_per_page # 57.5
print(f"{cost:.2f}")
```
That prints: 57.50
The job costs $57.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "57.50", "printed": "57.50", "notation": null} |
nlprog_det-setting-0060604 | A water bill is $18 plus $4.75 per thousand gallons beyond the first 2 thousand. What is the bill for 12 thousand gallons?
Set it up in Python:
```python
base = 18
rate = 4.75
used = 12
free = 2
bill = base + rate * max(0, used - free) # 65.5
print(f"{bill:.2f}")
```
The program prints 65.50.
$65.50 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "65.50", "printed": "65.50", "notation": null} |
nlprog_det-setting-0060605 | A court charges $5 per request plus $0.50 per page after the first 10 pages. What does a 22-page copy cost?
As a program:
```python
pages = 22
base = 5
per_page = 0.5
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page
print(f"{cost:.2f}")
```
Run output: 11.00
The total is $11.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "11.00", "printed": "11.00", "notation": null} |
nlprog_det-setting-0060606 | Someone works 24 hours at $21.75 per hour. What are the earnings?
One way, in code:
```python
rate = 21.75
hours = 24
earnings = rate * hours # 522.0
print(f"{earnings:.2f}")
```
When run, it prints 522.00.
The pay is $522.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "522.00", "printed": "522.00", "notation": null} |
nlprog_det-setting-0060607 | Eamon's scores were 85, 99, 66, 96, 65, 62 and 66. What is the average score?
```python
scores = [85, 99, 66, 96, 65, 62, 66]
average = sum(scores) // len(scores) # 77
print(average)
```
Output of the run: 77
The average score is 77. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "77", "printed": "77", "notation": null} |
nlprog_det-setting-0060608 | <|start|><|user|>
4 friends split a $180 bill plus a 15% tip evenly. How much does each pay?<|eot|>
<|assistant|>
```python
bill = 180
tip_rate = 15 / 100 # 0.15
people = 4
each = bill * (1 + tip_rate) / people # 51.74999999999999
print(f"{each:.2f}")
```
Output of the run — 51.75
The share is $51.75 each.<|eot|>
<|... | chat | [
{
"role": "user",
"content": "4 friends split a $180 bill plus a 15% tip evenly. How much does each pay?"
},
{
"role": "assistant",
"content": "```python\nbill = 180\ntip_rate = 15 / 100 # 0.15\npeople = 4\neach = bill * (1 + tip_rate) / people # 51.74999999999999\nprint(f\"{each:.2f}\")\n```\... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "51.75", "printed": "51.75", "notation": null} |
nlprog_det-setting-0060609 | Monthly rent is $1,200. A tenant moves in with 20 days left in a 31-day month. What is the prorated rent?
The tenant owes $774.19. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "774.19", "printed": "774.19", "notation": null} |
nlprog_det-setting-0060610 | <|start|><|user|>
A $9,000 loan carries 10% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|>
<|assistant|>
```python
principal = 9000
annual_rate = 10 / 100 # 0.1
months = 12
interest = principal * annual_rate * months / 12 # 900.0
paymen... | chat | [
{
"role": "user",
"content": "A $9,000 loan carries 10% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 9000\nannual_rate = 10 / 100 # 0.1\nmonths = 12\nintere... | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "825.00", "printed": "825.00", "notation": null} |
nlprog_det-setting-0060611 | <|start|><|user|>
Wen earns a 10% commission on $98,389 of sales. What is the commission?<|eot|>
<|assistant|>
Wen earns $9,838.90.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Wen earns a 10% commission on $98,389 of sales. What is the commission?"
},
{
"role": "assistant",
"content": "Wen earns $9,838.90."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "9838.90", "printed": "9838.90", "notation": null} |
nlprog_det-setting-0060613 | A settlement of $15,000 is split equally among 5 parties. How much does each party receive?
In Python:
```python
settlement = 15000
parties = 5
share = settlement // parties # 3000
print(share)
```
Shell output: 3000
Each party receives $3,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "3000", "printed": "3000", "notation": null} |
nlprog_det-setting-0060614 | <|start|><|system|>
Tool definitions:
{"name": "sandbox_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}
{"name": "lookup_statute... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"sandbox_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}},... | nlprog_det | setting | original | null | deterministic | [] | [] | 373 | {"gold": "40.30", "printed": "40.30", "notation": null} |
nlprog_det-setting-0060615 | How much sales tax is charged on a $769.85 purchase at 4%?
Programmatically:
```python
price = 769.85
tax_rate = 4 / 100 # 0.04
tax = price * tax_rate # 30.794
print(f"{tax:.2f}")
```
# printed: 30.79
$30.79 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "30.79", "printed": "30.79", "notation": null} |
nlprog_det-setting-0060617 | From a $7,500 retainer, 5 hours at $150/hour have been drawn. What remains?
Let's compute it with Python.
```python
retainer = 7500
hours = 5
rate = 150
left = retainer - hours * rate # 6750
print(left)
```
Running it prints 6750.
The remaining balance is $6,750. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "6750", "printed": "6750", "notation": null} |
nlprog_det-setting-0060618 | A 100-mile drive at a steady 40 mph takes how many minutes?
Here is the program.
distance = 100
speed = 40
minutes = distance / speed * 60 # 150.0
print(round(minutes))
Result: 150
The trip takes 150 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 67 | {"gold": "150", "printed": "150", "notation": null} |
nlprog_det-setting-0060619 | How many meters are in 83.5 kilometers?
Python code:
km = 83.5
meters = km * 1000 # 83500.0
print(round(meters))
Program output — 83500
83,500 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 69 | {"gold": "83500", "printed": "83500", "notation": null} |
nlprog_det-setting-0060620 | <|start|><|user|>
After a 30% fee is taken from a $30,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|>
<|assistant|>
```python
award = 30000
fee = award * 30 / 100 # 9000.0
remaining = award - fee # 21000.0
per_client = remaining / 4 # 5250.0
print(f"{per_client:.2f}")
`... | chat | [
{
"role": "user",
"content": "After a 30% fee is taken from a $30,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?"
},
{
"role": "assistant",
"content": "```python\naward = 30000\nfee = award * 30 / 100 # 9000.0\nremaining = award - fee # 21000.0\nper_cli... | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "5250.00", "printed": "5250.00", "notation": null} |
nlprog_det-setting-0060621 | <|start|><|user|>
Monthly: $15. Annual: $162. What is saved per year by paying annually?<|eot|>
<|assistant|>
```python
monthly = 15
yearly = 162
savings = monthly * 12 - yearly # 18
print(savings)
```
# out: 18
The annual plan saves $18.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Monthly: $15. Annual: $162. What is saved per year by paying annually?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 15\nyearly = 162\nsavings = monthly * 12 - yearly # 18\nprint(savings)\n```\n# out: 18\n\nThe annual plan saves $18."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0060622 | <|start|><|user|>
What commission does Lena make on $25,989 in sales at 3%?<|eot|>
<|assistant|>
```python
sales = 25989
rate = 3 / 100 # 0.03
commission = sales * rate # 779.67
print(f"{commission:.2f}")
```
Run it and it prints: 779.67
Lena earns $779.67.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What commission does Lena make on $25,989 in sales at 3%?"
},
{
"role": "assistant",
"content": "```python\nsales = 25989\nrate = 3 / 100 # 0.03\ncommission = sales * rate # 779.67\nprint(f\"{commission:.2f}\")\n```\nRun it and it prints: 779.67\n\nLena earns $779... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "779.67", "printed": "779.67", "notation": null} |
nlprog_det-setting-0060623 | <|start|><|system|>
Keep explanations short.<|eot|>
<|user|>
A quorum is 2/3 of the 10 members, rounded up. How many members make a quorum?<|eot|>
<|assistant|>
```python
import math
members = 10
quorum = math.ceil(members * 2 / 3) # 7
print(quorum)
```
(Run result: 7)
7 members are needed.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Keep explanations short."
},
{
"role": "user",
"content": "A quorum is 2/3 of the 10 members, rounded up. How many members make a quorum?"
},
{
"role": "assistant",
"content": "```python\nimport math\nmembers = 10\nquorum = math.ceil(members * 2 / 3) ... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0060624 | A client paid a $5,000 retainer. The firm has billed 6 hours at $150 per hour. How much of the retainer is left?
Computation in Python:
```python
retainer = 5000
hours = 6
rate = 150
left = retainer - hours * rate # 4100
print(left)
```
It outputs 4100.
$4,100 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "4100", "printed": "4100", "notation": null} |
nlprog_det-setting-0060625 | How much sales tax is charged on a $564.62 purchase at 4%?
$22.58 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "22.58", "printed": "22.58", "notation": null} |
nlprog_det-setting-0060626 | How many minutes pass from 8:35 AM to 12:22 PM on the same day?
Python:
```python
start = 8 * 60 + 35 # 515
end = 12 * 60 + 22 # 742
print(end - start)
```
(Printed result: 227)
227 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "227", "printed": "227", "notation": null} |
nlprog_det-setting-0060627 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "python_exec", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": ... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"python_exec\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python... | nlprog_det | setting | original | null | deterministic | [] | [] | 304 | {"gold": "85", "printed": "85", "notation": null} |
nlprog_det-setting-0060628 | At 30 miles per hour, how many minutes does a 60-mile trip take?
Here's the code.
```python
distance = 60
speed = 30
minutes = distance / speed * 60 # 120.0
print(round(minutes))
```
(Printed: 120)
The trip takes 120 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "120", "printed": "120", "notation": null} |
nlprog_det-setting-0060629 | Equal monthly payments repay $2,400 plus 5% simple yearly interest over 12 months. How large is a payment?
```python
principal = 2400
annual_rate = 5 / 100 # 0.05
months = 12
interest = principal * annual_rate * months / 12 # 120.0
payment = (principal + interest) / months # 210.0
print(f"{payment:.2f}")
```
What i... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "210.00", "printed": "210.00", "notation": null} |
nlprog_det-setting-0060630 | At $0.65 per mile, what is the reimbursement for 251 miles?
A few lines of Python do it:
```python
miles = 251
rate = 0.65
reimbursement = miles * rate # 163.15
print(f"{reimbursement:.2f}")
```
Executing it gives: 163.15
The reimbursement is $163.15. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "163.15", "printed": "163.15", "notation": null} |
nlprog_det-setting-0060631 | A garage charges $2 an hour, never more than $20 a day. How much for 7 hours?
Here is the program.
rate = 2
hours = 7
daily_max = 20
cost = min(rate * hours, daily_max) # 14
print(cost)
The code prints: 14
The charge is $14. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0060632 | <|start|><|user|>
From a $5,000 retainer, 5 hours at $150/hour have been drawn. What remains?<|eot|>
<|assistant|>
```python
retainer = 5000
hours = 5
rate = 150
left = retainer - hours * rate
print(left)
```
Running it prints: 4250
$4,250 of the retainer is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From a $5,000 retainer, 5 hours at $150/hour have been drawn. What remains?"
},
{
"role": "assistant",
"content": "```python\nretainer = 5000\nhours = 5\nrate = 150\nleft = retainer - hours * rate\nprint(left)\n```\nRunning it prints: 4250\n\n$4,250 of the retainer ... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "4250", "printed": "4250", "notation": null} |
nlprog_det-setting-0060633 | Each storage box holds 20 files. How many boxes are needed for 166 files?
One way, in code:
```python
import math
files = 166
per_box = 20
boxes = math.ceil(files / per_box) # 9
print(boxes)
```
When run, it prints: 9
It takes 9 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0060634 | 140 of 200 members attended. What percent attended?
```python
present = 140
total = 200
percent = present / total * 100 # 70.0
print(round(percent, 1))
```
When run, it prints 70.0.
Attendance was 70.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "70.0", "printed": "70.0", "notation": null} |
nlprog_det-setting-0060636 | 4 books come back 17 days late, at $0.25 a day each. What is the fine?
Code:
```python
per_day = 0.25
days_late = 17
books = 4
fine = per_day * days_late * books # 17.0
print(f"{fine:.2f}")
```
(Printed: 17.00)
$17.00 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "17.00", "printed": "17.00", "notation": null} |
nlprog_det-setting-0060637 | <|start|><|user|>
A recipe for 4 people uses 450 grams of lentils. How many grams are needed for 6 people?<|eot|>
<|assistant|>
```python
grams = 450
serves = 4
needed_for = 6
scaled = grams * needed_for // serves # 675
print(scaled)
```
(Program output: 675)
Use 675 g of lentils.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A recipe for 4 people uses 450 grams of lentils. How many grams are needed for 6 people?"
},
{
"role": "assistant",
"content": "```python\ngrams = 450\nserves = 4\nneeded_for = 6\nscaled = grams * needed_for // serves # 675\nprint(scaled)\n```\n(Program output: 675... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "675", "printed": "675", "notation": null} |
nlprog_det-setting-0060638 | How many meters are in 13.5 kilometers? That is 13,500 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 23 | {"gold": "13500", "printed": "13500", "notation": null} |
nlprog_det-setting-0060639 | <|start|><|system|>
You have access to these functions:
[{"name": "math_engine", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"math_engine\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python ... | nlprog_det | setting | original | null | deterministic | [] | [] | 225 | {"gold": "4459.30", "printed": "4459.30", "notation": null} |
nlprog_det-setting-0060640 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
Copies cost $5 plus $0.25 for each page beyond 20. How much for 116 pages?<|eot|>
<|assistant|>
The copy costs $29.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "Copies cost $5 plus $0.25 for each page beyond 20. How much for 116 pages?"
},
{
"role": "assistant",
"content": "The copy costs $29.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 55 | {"gold": "29.00", "printed": "29.00", "notation": null} |
nlprog_det-setting-0060641 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "calculator", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
Printin... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"calculator\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 240 | {"gold": "262.08", "printed": "262.08", "notation": null} |
nlprog_det-setting-0060642 | <|start|><|user|>
The firm was founded in 2001. How many years had passed by 2017?<|eot|>
<|assistant|>
```python
start_year = 2001
end_year = 2017
print(end_year - start_year)
```
Run result — 16
That is 16 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The firm was founded in 2001. How many years had passed by 2017?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 2001\nend_year = 2017\nprint(end_year - start_year)\n```\nRun result — 16\n\nThat is 16 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0060643 | <|start|><|user|>
From 1994 to 2002, how many years is that?<|eot|>
<|assistant|>
```python
start_year = 1994
end_year = 2002
print(end_year - start_year)
```
# run result: 8
That is 8 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From 1994 to 2002, how many years is that?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 1994\nend_year = 2002\nprint(end_year - start_year)\n```\n# run result: 8\n\nThat is 8 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 67 | {"gold": "8", "printed": "8", "notation": null} |
nlprog_det-setting-0060644 | How many minutes pass from 11:39 AM to 1:23 PM on the same day?
A few lines of Python do it:
```python
start = 11 * 60 + 39 # 699
end = 13 * 60 + 23 # 803
print(end - start)
```
# run result: 104
It is 104 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "104", "printed": "104", "notation": null} |
nlprog_det-setting-0060645 | How many whole days and leftover hours are in 353 hours?
The computation:
hours = 353
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
The script prints 14 days and 17 hours.
That is 14 days and 17 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "14 days and 17 hours", "printed": "14 days and 17 hours", "notation": null} |
nlprog_det-setting-0060646 | <|start|><|system|>
Write short, precise answers.<|eot|>
<|user|>
Scale 150 g of pasta from 8 servings to 12 servings.<|eot|>
<|assistant|>
grams = 150
serves = 8
needed_for = 12
scaled = grams * needed_for // serves # 225
print(scaled)
Program output — 225
Use 225 g of pasta.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Write short, precise answers."
},
{
"role": "user",
"content": "Scale 150 g of pasta from 8 servings to 12 servings."
},
{
"role": "assistant",
"content": " grams = 150\n serves = 8\n needed_for = 12\n scaled = grams * needed_for // serves ... | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "225", "printed": "225", "notation": null} |
nlprog_det-setting-0060647 | <|start|><|user|>
A hall has 22 rows of 11 seats, and 10 seats are empty. How many people are seated?<|eot|>
<|assistant|>
rows = 22
per_row = 11
empty = 10
seated = rows * per_row - empty # 232
print(seated)
Result — 232
232 people are seated.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hall has 22 rows of 11 seats, and 10 seats are empty. How many people are seated?"
},
{
"role": "assistant",
"content": " rows = 22\n per_row = 11\n empty = 10\n seated = rows * per_row - empty # 232\n print(seated)\nResult — 232\n\n232 people are ... | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "232", "printed": "232", "notation": null} |
nlprog_det-setting-0060648 | <|start|><|system|>
You may call the tools below.
[{"name": "compute", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "fetch_filing"... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"compute\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 289 | {"gold": "59", "printed": "59", "notation": null} |
nlprog_det-setting-0060649 | Express 45 hours in days and hours. 45 hours is 1 days and 21 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 20 | {"gold": "1 days and 21 hours", "printed": "1 days and 21 hours", "notation": null} |
nlprog_det-setting-0060650 | <|start|><|user|>
A $84 dinner bill gets a 15% tip, and 3 people share the cost equally. What is each person's share?<|eot|>
<|assistant|>
```python
bill = 84
tip_rate = 15 / 100 # 0.15
people = 3
each = bill * (1 + tip_rate) / people # 32.199999999999996
print(f"{each:.2f}")
```
(Run result: 32.20)
The share is $32... | chat | [
{
"role": "user",
"content": "A $84 dinner bill gets a 15% tip, and 3 people share the cost equally. What is each person's share?"
},
{
"role": "assistant",
"content": "```python\nbill = 84\ntip_rate = 15 / 100 # 0.15\npeople = 3\neach = bill * (1 + tip_rate) / people # 32.199999999999996\npri... | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "32.20", "printed": "32.20", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.