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-0075279 | Under a 35% contingency agreement, what fee is owed on a $12,000 award?
Coded up:
```python
recovery = 12000
rate = 35 / 100 # 0.35
fee = recovery * rate # 4200.0
print(f"{fee:.2f}")
```
The program prints 4200.00.
The lawyer's fee comes to $4,200.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "4200.00", "printed": "4200.00", "notation": null} |
nlprog_det-setting-0075280 | <|start|><|user|>
Fixed costs are $4,000. Each unit sells for $30 and costs $22 to make. How many units must be sold to break even?<|eot|>
<|assistant|>
500 units are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Fixed costs are $4,000. Each unit sells for $30 and costs $22 to make. How many units must be sold to break even?"
},
{
"role": "assistant",
"content": "500 units are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "500", "printed": "500", "notation": null} |
nlprog_det-setting-0075281 | <|start|><|system|>
You may call the tools below.
[{"name": "run_python", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
Pay is $25.00/... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"run_python\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"req... | nlprog_det | setting | original | null | deterministic | [] | [] | 260 | {"gold": "1562.50", "printed": "1562.50", "notation": null} |
nlprog_det-setting-0075282 | <|start|><|user|>
A claim accrued on June 23, 2016. The limitations period is 2 years. On what date does it expire?<|eot|>
<|assistant|>
from datetime import date
accrued = date(2016, 6, 23) # datetime.date(2016, 6, 23)
years = 2
expires = accrued.replace(year=accrued.year + years) # datetime.date(201... | chat | [
{
"role": "user",
"content": "A claim accrued on June 23, 2016. The limitations period is 2 years. On what date does it expire?"
},
{
"role": "assistant",
"content": " from datetime import date\n accrued = date(2016, 6, 23) # datetime.date(2016, 6, 23)\n years = 2\n expires = accrue... | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "2018-06-23", "printed": "2018-06-23", "notation": null} |
nlprog_det-setting-0075283 | A $84 dinner bill gets a 18% tip, and 2 people share the cost equally. What is each person's share?
The share is $49.56 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "49.56", "printed": "49.56", "notation": null} |
nlprog_det-setting-0075284 | 2 clients win $72,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?
As Python:
```python
award = 72000
fee = award * 25 / 100 # 18000.0
remaining = award - fee # 54000.0
per_client = remaining / 2 # 27000.0
print(f"{per_client:.2f}")
```
Printed result: 27000.00
Each share is... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "27000.00", "printed": "27000.00", "notation": null} |
nlprog_det-setting-0075285 | <|start|><|user|>
Goods bought on September 14, 2028 carry a 18-month warranty. When does it expire?<|eot|>
<|assistant|>
```python
from datetime import date
start = date(2028, 9, 14)
months = 18
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(e... | chat | [
{
"role": "user",
"content": "Goods bought on September 14, 2028 carry a 18-month warranty. When does it expire?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nstart = date(2028, 9, 14)\nmonths = 18\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = d... | nlprog_det | setting | original | null | deterministic | [] | [] | 152 | {"gold": "2030-03-14", "printed": "2030-03-14", "notation": null} |
nlprog_det-setting-0075286 | A party has 21 days to respond to a motion served on October 22, 2023, with 3 days added because service was by mail. When is the response due?
The computation:
```python
from datetime import date, timedelta
served = date(2023, 10, 22) # datetime.date(2023, 10, 22)
response_days = 21
mail_days = 3
due = served + time... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 173 | {"gold": "2023-11-15", "printed": "2023-11-15", "notation": null} |
nlprog_det-setting-0075287 | Straight-line depreciation: cost $18,000, salvage $2,000, 10 years. How much per year?
Here is the program.
```python
cost = 18000
salvage = 2000
years = 10
per_year = (cost - salvage) / years
print(f"{per_year:.2f}")
```
Executed, it shows 1600.00.
Depreciation is $1,600.00 per year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "1600.00", "printed": "1600.00", "notation": null} |
nlprog_det-setting-0075288 | A measure needs at least 67% of 285 votes. How many votes is that, rounded up?
A Python solution:
```python
import math
voters = 285
needed = math.ceil(voters * 67 / 100) # 191
print(needed)
```
It prints: 191
191 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "191", "printed": "191", "notation": null} |
nlprog_det-setting-0075289 | <|start|><|system|>
You may call the tools below.
[{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "paramet... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"lookup_statute\", \"descriptio... | nlprog_det | setting | original | null | deterministic | [] | [] | 380 | {"gold": "225", "printed": "225", "notation": null} |
nlprog_det-setting-0075290 | 14 of 20 members attended. What percent attended?
A few lines of Python do it:
present = 14
total = 20
percent = present / total * 100 # 70.0
print(round(percent, 1))
That prints: 70.0
70.0% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "70.0", "printed": "70.0", "notation": null} |
nlprog_det-setting-0075291 | A backpack costs $180. It is 10% off. What is the sale price?
Python makes this quick:
```python
price = 180
discount = 10 / 100 # 0.1
sale_price = price * (1 - discount) # 162.0
print(f"{sale_price:.2f}")
```
The interpreter prints: 162.00
The sale price is $162.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "162.00", "printed": "162.00", "notation": null} |
nlprog_det-setting-0075292 | Buying 2 keyboards at $17 each, 2 calendars at $23 each, someone hands over $100. What change comes back?
Let's compute it with Python.
```python
items = [(2, 17), (2, 23)]
total = sum(q * p for q, p in items) # 80
paid = 100
change = paid - total # 20
print(change)
```
This prints: 20
$20 comes back. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0075293 | <|start|><|system|>
You help people work with structured data.<|eot|>
<|user|>
A 29 lb package ships at $10 base plus $2.50/lb. What is the charge?<|eot|>
<|assistant|>
```python
base = 10
per_pound = 2.5
weight = 29
cost = base + per_pound * weight # 82.5
print(f"{cost:.2f}")
```
Run it and it prints: 82.50
Shipping... | chat | [
{
"role": "system",
"content": "You help people work with structured data."
},
{
"role": "user",
"content": "A 29 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 = 29\ncost = base + p... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "82.50", "printed": "82.50", "notation": null} |
nlprog_det-setting-0075294 | <|start|><|user|>
From 1998 to 2021, how many years is that?<|eot|>
<|assistant|>
```python
start_year = 1998
end_year = 2021
print(end_year - start_year)
```
Output = 23
That is 23 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From 1998 to 2021, how many years is that?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 1998\nend_year = 2021\nprint(end_year - start_year)\n```\nOutput = 23\n\nThat is 23 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 67 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0075295 | How much is a $64 daily meal allowance over 7 days?
We write it as a program:
```python
days = 7
meal_rate = 64
total = days * meal_rate # 448
print(total)
```
# result: 448
That comes to $448. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "448", "printed": "448", "notation": null} |
nlprog_det-setting-0075297 | A jacket costs $250. It is 30% off. What is the sale price?
The sale price is $175.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "175.00", "printed": "175.00", "notation": null} |
nlprog_det-setting-0075298 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "sandbox_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
Copies cost ... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"sandbox_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"r... | nlprog_det | setting | original | null | deterministic | [] | [] | 257 | {"gold": "50.50", "printed": "50.50", "notation": null} |
nlprog_det-setting-0075299 | A hearing is set for June 23, 1993. What day of the week is that?
Python code:
```python
from datetime import date
hearing = date(1993, 6, 23) # datetime.date(1993, 6, 23)
print(hearing.strftime("%A"))
```
Running it prints Wednesday, as expected.
It is a Wednesday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "Wednesday", "printed": "Wednesday", "notation": null} |
nlprog_det-setting-0075300 | Malik lends $5,000 at 6% simple interest per year for 2 years. How much interest is earned?
As a program:
```python
principal = 5000
rate = 6 / 100
years = 2
interest = principal * rate * years
print(f"{interest:.2f}")
```
It prints: 600.00
It earns $600.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "600.00", "printed": "600.00", "notation": null} |
nlprog_det-setting-0075301 | <|start|><|user|>
Fixed costs are $9,000. Each unit sells for $30 and costs $24 to make. How many units must be sold to break even?<|eot|>
<|assistant|>
```python
import math
fixed = 9000
price = 30
variable = 24
units = math.ceil(fixed / (price - variable)) # 1500
print(units)
```
The program outputs 1500.
Break-eve... | chat | [
{
"role": "user",
"content": "Fixed costs are $9,000. Each unit sells for $30 and costs $24 to make. How many units must be sold to break even?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixed = 9000\nprice = 30\nvariable = 24\nunits = math.ceil(fixed / (price - variable)) #... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "1500", "printed": "1500", "notation": null} |
nlprog_det-setting-0075302 | <|start|><|system|>
Write short, precise answers.<|eot|>
<|user|>
Someone works 38 hours at $24.89 per hour. What are the earnings?<|eot|>
<|assistant|>
```python
rate = 24.89
hours = 38
earnings = rate * hours
print(f"{earnings:.2f}")
```
# result: 945.82
That earns $945.82.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Write short, precise answers."
},
{
"role": "user",
"content": "Someone works 38 hours at $24.89 per hour. What are the earnings?"
},
{
"role": "assistant",
"content": "```python\nrate = 24.89\nhours = 38\nearnings = rate * hours\nprint(f\"{earnings:.2... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "945.82", "printed": "945.82", "notation": null} |
nlprog_det-setting-0075303 | How many meters are in 82.5 kilometers?
Written as code:
```python
km = 82.5
meters = km * 1000 # 82500.0
print(round(meters))
```
Run it and it prints: 82500
82,500 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "82500", "printed": "82500", "notation": null} |
nlprog_det-setting-0075304 | A $180 dinner bill gets a 20% tip, and 5 people share the cost equally. What is each person's share?
Let the code do the arithmetic:
```python
bill = 180
tip_rate = 20 / 100 # 0.2
people = 5
each = bill * (1 + tip_rate) / people # 43.2
print(f"{each:.2f}")
```
Interpreter output: 43.20
The share is $43.20 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "43.20", "printed": "43.20", "notation": null} |
nlprog_det-setting-0075305 | Notice was given on August 10, 2023. The notice period is 120 days. When does it run out?
from datetime import date, timedelta
start = date(2023, 8, 10) # datetime.date(2023, 8, 10)
end = start + timedelta(days=120) # datetime.date(2023, 12, 8)
print(end.isoformat())
Python prints 2023-12-08.
The pe... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "2023-12-08", "printed": "2023-12-08", "notation": null} |
nlprog_det-setting-0075306 | <|start|><|system|>
You have access to these functions:
[{"name": "py_exec", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "business_days", "description... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"py_exec\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\... | nlprog_det | setting | original | null | deterministic | [] | [] | 322 | {"gold": "27", "printed": "27", "notation": null} |
nlprog_det-setting-0075307 | <|start|><|user|>
Divide 58 items among 4 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|>
<|assistant|>
```python
total = 58
groups = 4
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Running this gives: 14 each, 2 left o... | chat | [
{
"role": "user",
"content": "Divide 58 items among 4 groups as evenly as possible with equal groups. How many per group, and how many remain?"
},
{
"role": "assistant",
"content": "```python\ntotal = 58\ngroups = 4\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remai... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "14 each, 2 left over", "printed": "14 each, 2 left over", "notation": null} |
nlprog_det-setting-0075308 | Liesel was born on April 9, 1995. How old is Liesel on September 2, 2029?
As a program:
```python
from datetime import date
born = date(1995, 4, 9) # datetime.date(1995, 4, 9)
on = date(2029, 9, 2) # datetime.date(2029, 9, 2)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 34
print(age)
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "34", "printed": "34", "notation": null} |
nlprog_det-setting-0075309 | <|start|><|user|>
Papers were served by mail on January 2, 2018. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date?<|eot|>
<|assistant|>
from datetime import date, timedelta
served = date(2018, 1, 2) # datetime.date(2018, 1, 2)
response_days = 21
mail_days = 3... | chat | [
{
"role": "user",
"content": "Papers were served by mail on January 2, 2018. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date?"
},
{
"role": "assistant",
"content": " from datetime import date, timedelta\n served = date(2018, 1, 2) # datetime.da... | nlprog_det | setting | original | null | deterministic | [] | [] | 163 | {"gold": "2018-01-26", "printed": "2018-01-26", "notation": null} |
nlprog_det-setting-0075310 | Sales went from 1,200 to 600. What is the percent change?
Python does the arithmetic:
```python
old = 1200
new = 600
change = (new - old) / old * 100 # -50.0
print(round(change))
```
Output — -50
The change is -50%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "-50", "printed": "-50", "notation": null} |
nlprog_det-setting-0075311 | A deposition lasted 2 hours and 34 minutes. How many minutes is that?
The Python version:
```python
hours = 2
minutes = 34
total_minutes = hours * 60 + minutes # 154
print(total_minutes)
```
When run, it prints 154, as expected.
That is 154 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "154", "printed": "154", "notation": null} |
nlprog_det-setting-0075312 | A library charges $0.50 per book per day late. What is the fine for 4 books that are 16 days late?
The computation:
```python
per_day = 0.5
days_late = 16
books = 4
fine = per_day * days_late * books # 32.0
print(f"{fine:.2f}")
```
# console output: 32.00
$32.00 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "32.00", "printed": "32.00", "notation": null} |
nlprog_det-setting-0075313 | <|start|><|system|>
Functions:
[{"name": "python_exec", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
How many units at $15 each (variable cost $10... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"python_exec\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}]"
},
... | nlprog_det | setting | original | null | deterministic | [] | [] | 231 | {"gold": "1800", "printed": "1800", "notation": null} |
nlprog_det-setting-0075314 | <|start|><|user|>
108 copies of a 41-page packet are printed at $0.08 per page. What is the cost?<|eot|>
<|assistant|>
pages = 41
copies = 108
cost_per_page = 0.08
cost = pages * copies * cost_per_page
print(f"{cost:.2f}")
stdout:
354.24
Printing costs $354.24.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "108 copies of a 41-page packet are printed at $0.08 per page. What is the cost?"
},
{
"role": "assistant",
"content": " pages = 41\n copies = 108\n cost_per_page = 0.08\n cost = pages * copies * cost_per_page\n print(f\"{cost:.2f}\")\nstdout:\n354.24\... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "354.24", "printed": "354.24", "notation": null} |
nlprog_det-setting-0075315 | Maren was born on March 4, 1988. How old is Maren on October 6, 2023?
```python
from datetime import date
born = date(1988, 3, 4) # datetime.date(1988, 3, 4)
on = date(2023, 10, 6) # datetime.date(2023, 10, 6)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 35
print(age)
```
Run it and i... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "35", "printed": "35", "notation": null} |
nlprog_det-setting-0075316 | A pack of 8 envelopes sells for $128. What does each cost?
```python
total = 128
count = 8
per_item = total // count # 16
print(per_item)
```
Result: 16
The unit price is $16. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0075317 | <|start|><|user|>
5 boxes hold 24 mugs each. After 7 are handed out, how many are left?<|eot|>
<|assistant|>
```python
boxes = 5
per_box = 24
given_away = 7
left = boxes * per_box - given_away # 113
print(left)
```
Execution prints 113, as expected.
113 mugs are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "5 boxes hold 24 mugs each. After 7 are handed out, how many are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 5\nper_box = 24\ngiven_away = 7\nleft = boxes * per_box - given_away # 113\nprint(left)\n```\nExecution prints 113, as expected.\n\n113 m... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "113", "printed": "113", "notation": null} |
nlprog_det-setting-0075318 | Convert 0 °C to Fahrenheit.
```python
celsius = 0
fahrenheit = celsius * 9 / 5 + 32 # 32.0
print(round(fahrenheit))
```
Printed result: 32
It equals 32 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0075319 | Bruna buys 8 boxes of 24 keyboards each and gives away 11 keyboards. How many keyboards are left?
181 keyboards are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "181", "printed": "181", "notation": null} |
nlprog_det-setting-0075320 | Rent of $1,800 goes up 2%. What is the new rent?
Computation in Python:
```python
rent = 1800
increase = 2 / 100 # 0.02
new_rent = rent * (1 + increase) # 1836.0
print(f"{new_rent:.2f}")
```
Python prints 1836.00, as expected.
It rises to $1,836.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "1836.00", "printed": "1836.00", "notation": null} |
nlprog_det-setting-0075321 | A hearing starts at 1:00 PM and lasts 50 minutes. When does it end?
It ends at 1:50 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "1:50 PM", "printed": "1:50 PM", "notation": null} |
nlprog_det-setting-0075322 | Each of Amir's walks burns 250 calories. How many calories over 3 walks?
Let's compute it with Python.
```python
per_session = 250
sessions = 3
total = per_session * sessions # 750
print(total)
```
# output: 750
That burns 750 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "750", "printed": "750", "notation": null} |
nlprog_det-setting-0075323 | <|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": "compute", "description... | 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 | [] | [] | 304 | {"gold": "72.00", "printed": "72.00", "notation": null} |
nlprog_det-setting-0075324 | Starting from $12,000, the team spends $1,336, $3,655, $1,291, $3,611. What remains?
$2,107 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 51 | {"gold": "2107", "printed": "2107", "notation": null} |
nlprog_det-setting-0075325 | Rafael drove 447 miles for work. Mileage is reimbursed at 67 cents a mile. How much is the reimbursement?
One way, in code:
```python
miles = 447
rate = 0.67
reimbursement = miles * rate # 299.49
print(f"{reimbursement:.2f}")
```
This prints 299.49, as expected.
Rafael is owed $299.49. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "299.49", "printed": "299.49", "notation": null} |
nlprog_det-setting-0075326 | <|start|><|system|>
Tools (call with JSON):
[{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "sandbox_python", "description": "Use for arith... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"target\"]}... | nlprog_det | setting | original | null | deterministic | [] | [] | 393 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0075327 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "py_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
3... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"py_exec\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source cod... | nlprog_det | setting | original | null | deterministic | [] | [] | 204 | {"gold": "5000", "printed": "5000", "notation": null} |
nlprog_det-setting-0075328 | 29 chairs cost $9 apiece. With 10% tax added, what is the total?
Python makes this quick:
```python
quantity = 29
unit_price = 9
subtotal = quantity * unit_price # 261
total = subtotal * (1 + 10 / 100) # 287.1
print(f"{total:.2f}")
```
Run output: 287.10
The invoice total is $287.10. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "287.10", "printed": "287.10", "notation": null} |
nlprog_det-setting-0075329 | Of a $4,000 budget, $2,400 has been spent. What percent is that?
Python:
```python
budget = 4000
spent = 2400
percent = spent / budget * 100 # 60.0
print(round(percent, 1))
```
(Printed result: 60.0)
60.0% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "60.0", "printed": "60.0", "notation": null} |
nlprog_det-setting-0075330 | Monthly: $12. Annual: $114. What is saved per year by paying annually?
Written as code:
```python
monthly = 12
yearly = 114
savings = monthly * 12 - yearly # 30
print(savings)
```
When run, it prints 30, as expected.
The annual plan saves $30. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0075331 | A settlement of $18,000 is split equally among 3 parties. How much does each party receive?
We can compute it in Python.
```python
settlement = 18000
parties = 3
share = settlement // parties # 6000
print(share)
```
Console output — 6000
Each party receives $6,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "6000", "printed": "6000", "notation": null} |
nlprog_det-setting-0075332 | The landlord deducts $200 from a $1,500 deposit. What is returned to the tenant?
Let the code do the arithmetic:
```python
deposit = 1500
deductions = [200]
refund = deposit - sum(deductions) # 1300
print(refund)
```
(Output: 1300)
The refund is $1,300. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "1300", "printed": "1300", "notation": null} |
nlprog_det-setting-0075334 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "sandbox_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "convert_units", ... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"sandbox_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}},... | nlprog_det | setting | original | null | deterministic | [] | [] | 394 | {"gold": "64.0", "printed": "64.0", "notation": null} |
nlprog_det-setting-0075335 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "interpreter", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"interpreter\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source ... | nlprog_det | setting | original | null | deterministic | [] | [] | 229 | {"gold": "960.00", "printed": "960.00", "notation": null} |
nlprog_det-setting-0075336 | Rent of $1,800 goes up 4%. What is the new rent?
Let the code do the arithmetic:
```python
rent = 1800
increase = 4 / 100 # 0.04
new_rent = rent * (1 + increase) # 1872.0
print(f"{new_rent:.2f}")
```
(Printed: 1872.00)
The new rent is $1,872.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "1872.00", "printed": "1872.00", "notation": null} |
nlprog_det-setting-0075337 | A 640-page report must be reviewed in 20 days. How many pages a day is that, evenly?
Here is a short program for it.
```python
pages = 640
days = 20
per_day = pages // days # 32
print(per_day)
```
Run output — 32
That is 32 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0075338 | Monthly: $15. Annual: $150. What is saved per year by paying annually?
Script:
```python
monthly = 15
yearly = 150
savings = monthly * 12 - yearly # 30
print(savings)
```
Output: 30
$30 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0075339 | Meals are $64 per day and lodging $110 per night. What is the allowance for 9 days and 8 nights?
The program:
```python
days = 9
meal_rate = 64
lodging_rate = 110
nights = days - 1 # 8
total = days * meal_rate + nights * lodging_rate # 1456
print(total)
```
Console output — 1456
The allowance is $1,456. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "1456", "printed": "1456", "notation": null} |
nlprog_det-setting-0075340 | <|start|><|user|>
Counting the first and last day, how many days are there from December 17, 2018 through December 20, 2018?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2018, 12, 17) # datetime.date(2018, 12, 17)
last = date(2018, 12, 20) # datetime.date(2018, 12, 20)
days = (last - first).d... | chat | [
{
"role": "user",
"content": "Counting the first and last day, how many days are there from December 17, 2018 through December 20, 2018?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2018, 12, 17) # datetime.date(2018, 12, 17)\nlast = date(2018, 12, 2... | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0075341 | <|start|><|user|>
Starting from $5,000, the team spends $1,438, $2,229, $2,813. What remains?<|eot|>
<|assistant|>
```python
budget = 5000
expenses = [1438, 2229, 2813]
left = budget - sum(expenses)
print(left)
```
This prints -1480.
-$1,480 is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting from $5,000, the team spends $1,438, $2,229, $2,813. What remains?"
},
{
"role": "assistant",
"content": "```python\nbudget = 5000\nexpenses = [1438, 2229, 2813]\nleft = budget - sum(expenses)\nprint(left)\n```\nThis prints -1480.\n\n-$1,480 is left."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "-1480", "printed": "-1480", "notation": null} |
nlprog_det-setting-0075342 | <|start|><|user|>
Quinn and Ulla share $4,592 in the ratio 3:4. How much does Quinn get?<|eot|>
<|assistant|>
```python
total = 4592
parts_a = 3
parts_b = 4
share_a = total * parts_a // (parts_a + parts_b) # 1968
print(share_a)
```
This prints 1968, as expected.
Quinn gets $1,968.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Quinn and Ulla share $4,592 in the ratio 3:4. How much does Quinn get?"
},
{
"role": "assistant",
"content": "```python\ntotal = 4592\nparts_a = 3\nparts_b = 4\nshare_a = total * parts_a // (parts_a + parts_b) # 1968\nprint(share_a)\n```\nThis prints 1968, as expec... | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "1968", "printed": "1968", "notation": null} |
nlprog_det-setting-0075343 | <|start|><|user|>
On which weekday does October 17, 1997 fall?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(1997, 10, 17) # datetime.date(1997, 10, 17)
print(hearing.strftime("%A"))
```
(Execution result: Friday)
It is a Friday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "On which weekday does October 17, 1997 fall?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(1997, 10, 17) # datetime.date(1997, 10, 17)\nprint(hearing.strftime(\"%A\"))\n```\n(Execution result: Friday)\n\nIt is a Friday.... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "Friday", "printed": "Friday", "notation": null} |
nlprog_det-setting-0075344 | <|start|><|user|>
A hall has 18 rows of 15 seats, and 16 seats are empty. How many people are seated?<|eot|>
<|assistant|>
rows = 18
per_row = 15
empty = 16
seated = rows * per_row - empty # 254
print(seated)
Python prints: 254
254 people are seated.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hall has 18 rows of 15 seats, and 16 seats are empty. How many people are seated?"
},
{
"role": "assistant",
"content": " rows = 18\n per_row = 15\n empty = 16\n seated = rows * per_row - empty # 254\n print(seated)\nPython prints: 254\n\n254 peopl... | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "254", "printed": "254", "notation": null} |
nlprog_det-setting-0075345 | <|start|><|user|>
Find the mean of these test scores: 65, 57, 64, 50 and 74.<|eot|>
<|assistant|>
```python
scores = [65, 57, 64, 50, 74]
average = sum(scores) // len(scores) # 62
print(average)
```
Python prints: 62
The average score is 62.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Find the mean of these test scores: 65, 57, 64, 50 and 74."
},
{
"role": "assistant",
"content": "```python\nscores = [65, 57, 64, 50, 74]\naverage = sum(scores) // len(scores) # 62\nprint(average)\n```\nPython prints: 62\n\nThe average score is 62."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "62", "printed": "62", "notation": null} |
nlprog_det-setting-0075346 | <|start|><|user|>
A kettle costs $40. It is 40% off. What is the sale price?<|eot|>
<|assistant|>
```python
price = 40
discount = 40 / 100 # 0.4
sale_price = price * (1 - discount) # 24.0
print(f"{sale_price:.2f}")
```
The program outputs: 24.00
It costs $24.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A kettle costs $40. It is 40% off. What is the sale price?"
},
{
"role": "assistant",
"content": "```python\nprice = 40\ndiscount = 40 / 100 # 0.4\nsale_price = price * (1 - discount) # 24.0\nprint(f\"{sale_price:.2f}\")\n```\nThe program outputs: 24.00\n\nIt cost... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "24.00", "printed": "24.00", "notation": null} |
nlprog_det-setting-0075347 | <|start|><|system|>
You are a math tutor.<|eot|>
<|user|>
Divide 175 items among 8 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|>
<|assistant|>
The answer: 21 each, 7 left over.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a math tutor."
},
{
"role": "user",
"content": "Divide 175 items among 8 groups as evenly as possible with equal groups. How many per group, and how many remain?"
},
{
"role": "assistant",
"content": "The answer: 21 each, 7 left over."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 58 | {"gold": "21 each, 7 left over", "printed": "21 each, 7 left over", "notation": null} |
nlprog_det-setting-0075348 | What is -5 degrees Celsius in Fahrenheit?
That is 23 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 26 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0075349 | <|start|><|system|>
Tool definitions:
{"name": "calc", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|user|>
Someone works 40 hours at $23.29 per hour. ... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"calc\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}"
}... | nlprog_det | setting | original | null | deterministic | [] | [] | 203 | {"gold": "931.60", "printed": "931.60", "notation": null} |
nlprog_det-setting-0075351 | Starting with 573 staplers and using 31 per day, how many remain after 4 days?
Computing it:
stock = 573
per_day = 31
days = 4
left = stock - per_day * days # 449
print(left)
# out: 449
449 staplers are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "449", "printed": "449", "notation": null} |
nlprog_det-setting-0075352 | What average speed covers 104 miles in 2 hours?
Here is the program.
```python
distance = 104
hours = 2
speed = distance / hours # 52.0
print(round(speed))
```
# output: 52
The average speed is 52 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "52", "printed": "52", "notation": null} |
nlprog_det-setting-0075353 | A $1,200 loan carries 10% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?
Python code:
```python
principal = 1200
annual_rate = 10 / 100 # 0.1
months = 12
interest = principal * annual_rate * months / 12 # 120.0
payment = (principal + interest... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "110.00", "printed": "110.00", "notation": null} |
nlprog_det-setting-0075354 | How many 1-foot square tiles cover a 5 ft by 3 ft floor (round up)?
```python
import math
length = 5
width = 3
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 15
print(tiles)
```
Run it and it prints 15.
15 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0075355 | Nikhil drove 598 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?
Computing it:
miles = 598
rate = 0.65
reimbursement = miles * rate # 388.7
print(f"{reimbursement:.2f}")
Run result = 388.70
Nikhil is owed $388.70. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "388.70", "printed": "388.70", "notation": null} |
nlprog_det-setting-0075356 | 807 files go into boxes of 12. How many boxes does that take?
Computation in Python:
```python
import math
files = 807
per_box = 12
boxes = math.ceil(files / per_box) # 68
print(boxes)
```
Run result = 68
It takes 68 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "68", "printed": "68", "notation": null} |
nlprog_det-setting-0075357 | <|start|><|system|>
Functions:
[{"name": "compute", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
A $24,000 grant pays $6,000 up front and the rest... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"compute\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippet\"]}}]"
},
{
... | nlprog_det | setting | original | null | deterministic | [] | [] | 239 | {"gold": "6000.00", "printed": "6000.00", "notation": null} |
nlprog_det-setting-0075358 | <|start|><|user|>
Sales went from 200 to 100. What is the percent change?<|eot|>
<|assistant|>
The change is -50%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Sales went from 200 to 100. What is the percent change?"
},
{
"role": "assistant",
"content": "The change is -50%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "-50", "printed": "-50", "notation": null} |
nlprog_det-setting-0075359 | <|start|><|user|>
How many meters are in 26.6 kilometers?<|eot|>
<|assistant|>
km = 26.6
meters = km * 1000 # 26600.0
print(round(meters))
Shell output: 26600
26,600 m.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many meters are in 26.6 kilometers?"
},
{
"role": "assistant",
"content": " km = 26.6\n meters = km * 1000 # 26600.0\n print(round(meters))\nShell output: 26600\n\n26,600 m."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 68 | {"gold": "26600", "printed": "26600", "notation": null} |
nlprog_det-setting-0075360 | A shift runs from 8:36 AM to 2:28 PM. How long is it in minutes?
```python
start = 8 * 60 + 36 # 516
end = 14 * 60 + 28 # 868
print(end - start)
```
Executing it gives 352.
It is 352 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "352", "printed": "352", "notation": null} |
nlprog_det-setting-0075361 | A penalty of $25 a day accrues, capped at $2,500. What is owed after 45 days?
Computing it:
```python
per_day = 25
days = 45
cap = 2500
fine = min(per_day * days, cap) # 1125
print(fine)
```
Output of the run: 1125
$1,125 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "1125", "printed": "1125", "notation": null} |
nlprog_det-setting-0075362 | <|start|><|user|>
Someone born November 18, 2002 turns how old by April 5, 2027? Give the age in whole years.<|eot|>
<|assistant|>
from datetime import date
born = date(2002, 11, 18) # datetime.date(2002, 11, 18)
on = date(2027, 4, 5) # datetime.date(2027, 4, 5)
age = on.year - born.year - ((on.month,... | chat | [
{
"role": "user",
"content": "Someone born November 18, 2002 turns how old by April 5, 2027? Give the age in whole years."
},
{
"role": "assistant",
"content": " from datetime import date\n born = date(2002, 11, 18) # datetime.date(2002, 11, 18)\n on = date(2027, 4, 5) # datetime.date... | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0075363 | Divide 112 items among 5 groups as evenly as possible with equal groups. How many per group, and how many remain?
A Python solution:
```python
total = 112
groups = 5
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
It outputs 22 each, 2 left over.
The answer: 22 each,... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "22 each, 2 left over", "printed": "22 each, 2 left over", "notation": null} |
nlprog_det-setting-0075364 | Divide 262 items among 3 groups as evenly as possible with equal groups. How many per group, and how many remain?
A Python solution:
```python
total = 262
groups = 3
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Run it and it prints: 87 each, 1 left over
87 each, 1... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "87 each, 1 left over", "printed": "87 each, 1 left over", "notation": null} |
nlprog_det-setting-0075365 | How many whole days and leftover hours are in 253 hours?
```python
hours = 253
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Result:
10 days and 13 hours
253 hours is 10 days and 13 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "10 days and 13 hours", "printed": "10 days and 13 hours", "notation": null} |
nlprog_det-setting-0075367 | <|start|><|user|>
A water bill is $15 plus $3.50 per thousand gallons beyond the first 0 thousand. What is the bill for 10 thousand gallons?<|eot|>
<|assistant|>
base = 15
rate = 3.5
used = 10
free = 0
bill = base + rate * max(0, used - free)
print(f"{bill:.2f}")
Printed:
50.00
The bill is $50.... | chat | [
{
"role": "user",
"content": "A water bill is $15 plus $3.50 per thousand gallons beyond the first 0 thousand. What is the bill for 10 thousand gallons?"
},
{
"role": "assistant",
"content": " base = 15\n rate = 3.5\n used = 10\n free = 0\n bill = base + rate * max(0, used - free)... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "50.00", "printed": "50.00", "notation": null} |
nlprog_det-setting-0075368 | <|start|><|user|>
How many days are there from November 2, 2023 to November 20, 2023?<|eot|>
<|assistant|>
There are 18 days between the two dates.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many days are there from November 2, 2023 to November 20, 2023?"
},
{
"role": "assistant",
"content": "There are 18 days between the two dates."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0075369 | <|start|><|user|>
$5,000 is invested at 2% compounded yearly. What is it worth after 3 years?<|eot|>
<|assistant|>
The balance is $5,306.04.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "$5,000 is invested at 2% compounded yearly. What is it worth after 3 years?"
},
{
"role": "assistant",
"content": "The balance is $5,306.04."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "5306.04", "printed": "5306.04", "notation": null} |
nlprog_det-setting-0075370 | <|start|><|user|>
A lease runs for 36 months at $1,475 per month. How much rent is paid over the whole term?<|eot|>
<|assistant|>
monthly_rent = 1475
months = 36
total = monthly_rent * months # 53100
print(total)
It outputs 53100.
The rent over the term is $53,100.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lease runs for 36 months at $1,475 per month. How much rent is paid over the whole term?"
},
{
"role": "assistant",
"content": " monthly_rent = 1475\n months = 36\n total = monthly_rent * months # 53100\n print(total)\nIt outputs 53100.\n\nThe rent ov... | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "53100", "printed": "53100", "notation": null} |
nlprog_det-setting-0075372 | After a 25% fee is taken from a $60,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?
award = 60000
fee = award * 25 / 100 # 15000.0
remaining = award - fee # 45000.0
per_client = remaining / 3 # 15000.0
print(f"{per_client:.2f}")
The code prints 15000.00.
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "15000.00", "printed": "15000.00", "notation": null} |
nlprog_det-setting-0075373 | <|start|><|user|>
What is the total rent on a 12-month lease at $850 a month?<|eot|>
<|assistant|>
```python
monthly_rent = 850
months = 12
total = monthly_rent * months # 10200
print(total)
```
On running, it outputs: 10200
The rent over the term is $10,200.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is the total rent on a 12-month lease at $850 a month?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 850\nmonths = 12\ntotal = monthly_rent * months # 10200\nprint(total)\n```\nOn running, it outputs: 10200\n\nThe rent over the term is $10,2... | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "10200", "printed": "10200", "notation": null} |
nlprog_det-setting-0075374 | Monthly rent is $900. A tenant moves in with 20 days left in a 31-day month. What is the prorated rent?
Program:
```python
rent = 900
days_in_month = 31
days_occupied = 20
prorated = rent * days_occupied / days_in_month # 580.6451612903226
print(f"{prorated:.2f}")
```
# printed: 580.65
The prorated rent is $580.65. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "580.65", "printed": "580.65", "notation": null} |
nlprog_det-setting-0075375 | From a $2,500 retainer, 4 hours at $250/hour have been drawn. What remains?
Python:
retainer = 2500
hours = 4
rate = 250
left = retainer - hours * rate # 1500
print(left)
Program output — 1500
The remaining balance is $1,500. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "1500", "printed": "1500", "notation": null} |
nlprog_det-setting-0075376 | A hearing lasted 5 hours and 7 minutes. How many minutes is that?
Python, step by step:
```python
hours = 5
minutes = 7
total_minutes = hours * 60 + minutes # 307
print(total_minutes)
```
Running it prints: 307
The hearing lasted 307 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "307", "printed": "307", "notation": null} |
nlprog_det-setting-0075377 | Flooring at $12/sq ft for a 21 ft × 6 ft room costs how much?
It costs $1,512. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "1512", "printed": "1512", "notation": null} |
nlprog_det-setting-0075378 | A class starts at 8:30 AM and lasts 105 minutes. When does it end?
Translated to Python:
```python
start = 8 * 60 + 30
end = start + 105
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
The script prints: 10:15 AM
The class finishes at 10:15 AM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "10:15 AM", "printed": "10:15 AM", "notation": null} |
nlprog_det-setting-0075379 | <|start|><|system|>
Tools (call with JSON):
{"name": "interpreter", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|user|>
Quinn drove 552... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n{\"name\": \"interpreter\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"req... | nlprog_det | setting | original | null | deterministic | [] | [] | 230 | {"gold": "369.84", "printed": "369.84", "notation": null} |
nlprog_det-setting-0075380 | <|start|><|system|>
You are a patient tutor.<|eot|>
<|user|>
Ivan buys 4 boxes of 24 keyboards each and gives away 4 keyboards. How many keyboards are left?<|eot|>
<|assistant|>
```python
boxes = 4
per_box = 24
given_away = 4
left = boxes * per_box - given_away # 92
print(left)
```
It prints 92, as expected.
That lea... | chat | [
{
"role": "system",
"content": "You are a patient tutor."
},
{
"role": "user",
"content": "Ivan buys 4 boxes of 24 keyboards each and gives away 4 keyboards. How many keyboards are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 4\nper_box = 24\ngiven_away = 4\nleft =... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "92", "printed": "92", "notation": null} |
nlprog_det-setting-0075381 | How many 1-foot square tiles cover a 7 ft by 7 ft floor (round up)?
Script:
```python
import math
length = 7
width = 7
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 49
print(tiles)
```
Out — 49
49 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "49", "printed": "49", "notation": null} |
nlprog_det-setting-0075382 | A storeroom has 1210 envelopes. The office uses 16 a day. How many are left after 9 days?
One way, in code:
```python
stock = 1210
per_day = 16
days = 9
left = stock - per_day * days # 1066
print(left)
```
When run, it prints 1066, as expected.
1066 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "1066", "printed": "1066", "notation": null} |
nlprog_det-setting-0075383 | <|start|><|user|>
At a 6% tax rate, what is the tax on $398.79?<|eot|>
<|assistant|>
```python
price = 398.79
tax_rate = 6 / 100
tax = price * tax_rate
print(f"{tax:.2f}")
```
stdout — 23.93
$23.93 in tax.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At a 6% tax rate, what is the tax on $398.79?"
},
{
"role": "assistant",
"content": "```python\nprice = 398.79\ntax_rate = 6 / 100\ntax = price * tax_rate\nprint(f\"{tax:.2f}\")\n```\nstdout — 23.93\n\n$23.93 in tax."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "23.93", "printed": "23.93", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.