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-0063521 | <|start|><|user|>
What day of the week is August 12, 2023?<|eot|>
<|assistant|>
from datetime import date
hearing = date(2023, 8, 12) # datetime.date(2023, 8, 12)
print(hearing.strftime("%A"))
Running it prints: Saturday
August 12, 2023 is a Saturday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What day of the week is August 12, 2023?"
},
{
"role": "assistant",
"content": " from datetime import date\n hearing = date(2023, 8, 12) # datetime.date(2023, 8, 12)\n print(hearing.strftime(\"%A\"))\nRunning it prints: Saturday\n\nAugust 12, 2023 is a Sat... | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "Saturday", "printed": "Saturday", "notation": null} |
nlprog_det-setting-0063522 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "interpreter", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
A trial run... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"interpreter\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"r... | nlprog_det | setting | original | null | deterministic | [] | [] | 233 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0063523 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
Pack A has 12 items for $5.90. Pack B has 24 items for $25.98. Which has the lower price per item?<|eot|>
<|assistant|>
```python
pack_a = 5.9 / 12 # 0.4916666666666667
pack_b = 25.98 / 24 # 1.0825
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(... | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Pack A has 12 items for $5.90. Pack B has 24 items for $25.98. Which has the lower price per item?"
},
{
"role": "assistant",
"content": "```python\npack_a = 5.9 / 12 # 0.4916666666666667\... | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0063524 | How many days are there from April 17, 2026 to March 19, 2027?
```python
from datetime import date
first = date(2026, 4, 17)
second = date(2027, 3, 19)
print((second - first).days)
```
Out: 336
There are 336 days between the two dates. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "336", "printed": "336", "notation": null} |
nlprog_det-setting-0063525 | Equal monthly payments repay $3,600 plus 8% simple yearly interest over 12 months. How large is a payment?
A short script:
```python
principal = 3600
annual_rate = 8 / 100 # 0.08
months = 12
interest = principal * annual_rate * months / 12 # 288.0
payment = (principal + interest) / months # 324.0
print(f"{payment:.... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "324.00", "printed": "324.00", "notation": null} |
nlprog_det-setting-0063526 | From a $7,500 retainer, 8 hours at $250/hour have been drawn. What remains?
The remaining balance is $5,500. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "5500", "printed": "5500", "notation": null} |
nlprog_det-setting-0063527 | Chen was born on August 2, 1952. How old is Chen on December 21, 2028?
Python:
```python
from datetime import date
born = date(1952, 8, 2) # datetime.date(1952, 8, 2)
on = date(2028, 12, 21) # datetime.date(2028, 12, 21)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 76
print(age)
```
E... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 155 | {"gold": "76", "printed": "76", "notation": null} |
nlprog_det-setting-0063528 | <|start|><|system|>
You may call the tools below.
[{"name": "py_exec", "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"]}}]<|eot|>
<|user|>
Prorate... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"py_exec\", \"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 | [] | [] | 244 | {"gold": "464.52", "printed": "464.52", "notation": null} |
nlprog_det-setting-0063530 | With 26 rows of 20 chairs and 33 empty chairs, how many chairs are taken?
Script:
```python
rows = 26
per_row = 20
empty = 33
seated = rows * per_row - empty # 487
print(seated)
```
Result:
487
487 seats are taken. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "487", "printed": "487", "notation": null} |
nlprog_det-setting-0063531 | <|start|><|user|>
How many days are there from May 6, 2025 to January 30, 2026?<|eot|>
<|assistant|>
There are 269 days between the two dates.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many days are there from May 6, 2025 to January 30, 2026?"
},
{
"role": "assistant",
"content": "There are 269 days between the two dates."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "269", "printed": "269", "notation": null} |
nlprog_det-setting-0063532 | A lawyer's fee is 35% of a $25,000 recovery. How large is the fee?
```python
recovery = 25000
rate = 35 / 100 # 0.35
fee = recovery * rate # 8750.0
print(f"{fee:.2f}")
```
Result — 8750.00
The fee is $8,750.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "8750.00", "printed": "8750.00", "notation": null} |
nlprog_det-setting-0063533 | Starting from $5,000, the team spends $3,386, $2,048, $1,531. What remains?
-$1,965 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "-1965", "printed": "-1965", "notation": null} |
nlprog_det-setting-0063534 | Fixed costs are $1,200. Each unit sells for $25 and costs $21 to make. How many units must be sold to break even?
Break-even is 300 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0063535 | <|start|><|system|>
You are a puzzle helper.<|eot|>
<|user|>
Prorate $1,200 of monthly rent for 16 days of a 31-day month.<|eot|>
<|assistant|>
```python
rent = 1200
days_in_month = 31
days_occupied = 16
prorated = rent * days_occupied / days_in_month # 619.3548387096774
print(f"{prorated:.2f}")
```
(Printed result: 6... | chat | [
{
"role": "system",
"content": "You are a puzzle helper."
},
{
"role": "user",
"content": "Prorate $1,200 of monthly rent for 16 days of a 31-day month."
},
{
"role": "assistant",
"content": "```python\nrent = 1200\ndays_in_month = 31\ndays_occupied = 16\nprorated = rent * days_occup... | nlprog_det | setting | original | null | deterministic | [] | [] | 146 | {"gold": "619.35", "printed": "619.35", "notation": null} |
nlprog_det-setting-0063536 | <|start|><|user|>
713 files go into boxes of 12. How many boxes does that take?<|eot|>
<|assistant|>
```python
import math
files = 713
per_box = 12
boxes = math.ceil(files / per_box) # 60
print(boxes)
```
What it prints: 60
60 boxes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "713 files go into boxes of 12. How many boxes does that take?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 713\nper_box = 12\nboxes = math.ceil(files / per_box) # 60\nprint(boxes)\n```\nWhat it prints: 60\n\n60 boxes are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "60", "printed": "60", "notation": null} |
nlprog_det-setting-0063537 | Buying 1 chairs at $10 each, 3 ink cartridges at $25 each, 1 notebooks at $5 each, 5 notebooks at $2 each, someone hands over $150. What change comes back?
$50 comes back. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 60 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0063538 | Printing costs 15 cents a page. What does it cost to print 57 copies of a 14-page handout?
We can compute it in Python.
```python
pages = 14
copies = 57
cost_per_page = 0.15
cost = pages * copies * cost_per_page # 119.69999999999999
print(f"{cost:.2f}")
```
When run, it prints: 119.70
Printing costs $119.70. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "119.70", "printed": "119.70", "notation": null} |
nlprog_det-setting-0063539 | A water bill is $12 plus $4.20 per thousand gallons beyond the first 2 thousand. What is the bill for 15 thousand gallons?
In code:
```python
base = 12
rate = 4.2
used = 15
free = 2
bill = base + rate * max(0, used - free) # 66.6
print(f"{bill:.2f}")
```
Out: 66.60
The bill is $66.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "66.60", "printed": "66.60", "notation": null} |
nlprog_det-setting-0063541 | Convert 3,627 USD to CAD at 1 USD = 0.74 CAD.
```python
amount = 3627
rate = 0.74
converted = amount * rate # 2683.98
print(f"{converted:.2f}")
```
What it prints: 2683.98
It converts to 2,683.98 CAD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "2683.98", "printed": "2683.98", "notation": null} |
nlprog_det-setting-0063542 | <|start|><|system|>
You have access to these functions:
{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}
{"name": "calculator", "description": "Run Python code in a sandbox; the result is whatever... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}\n{\"name\": \"calculator\", \"descriptio... | nlprog_det | setting | original | null | deterministic | [] | [] | 375 | {"gold": "12155.06", "printed": "12155.06", "notation": null} |
nlprog_det-setting-0063543 | <|start|><|user|>
What average speed covers 526 miles in 2 hours?<|eot|>
<|assistant|>
```python
distance = 526
hours = 2
speed = distance / hours # 263.0
print(round(speed))
```
Output of the run: 263
It averages 263 miles per hour.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What average speed covers 526 miles in 2 hours?"
},
{
"role": "assistant",
"content": "```python\ndistance = 526\nhours = 2\nspeed = distance / hours # 263.0\nprint(round(speed))\n```\nOutput of the run: 263\n\nIt averages 263 miles per hour."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "263", "printed": "263", "notation": null} |
nlprog_det-setting-0063544 | <|start|><|user|>
A measure needs at least 60% of 193 votes. How many votes is that, rounded up?<|eot|>
<|assistant|>
import math
voters = 193
needed = math.ceil(voters * 60 / 100) # 116
print(needed)
When run, it prints: 116
At least 116 votes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A measure needs at least 60% of 193 votes. How many votes is that, rounded up?"
},
{
"role": "assistant",
"content": " import math\n voters = 193\n needed = math.ceil(voters * 60 / 100) # 116\n print(needed)\nWhen run, it prints: 116\n\nAt least 116 vot... | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "116", "printed": "116", "notation": null} |
nlprog_det-setting-0063545 | <|start|><|user|>
6 claimants share a $1,200 settlement equally. What is each share?<|eot|>
<|assistant|>
```python
settlement = 1200
parties = 6
share = settlement // parties # 200
print(share)
```
This prints: 200
Each party receives $200.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "6 claimants share a $1,200 settlement equally. What is each share?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 1200\nparties = 6\nshare = settlement // parties # 200\nprint(share)\n```\nThis prints: 200\n\nEach party receives $200."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "200", "printed": "200", "notation": null} |
nlprog_det-setting-0063546 | <|start|><|user|>
Someone born February 28, 1969 turns how old by August 15, 2025? Give the age in whole years.<|eot|>
<|assistant|>
Jae is 56.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Someone born February 28, 1969 turns how old by August 15, 2025? Give the age in whole years."
},
{
"role": "assistant",
"content": "Jae is 56."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "56", "printed": "56", "notation": null} |
nlprog_det-setting-0063547 | What commission does Hana make on $14,609 in sales at 3%?
The Python version:
```python
sales = 14609
rate = 3 / 100
commission = sales * rate
print(f"{commission:.2f}")
```
Executing it gives: 438.27
The commission is $438.27. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "438.27", "printed": "438.27", "notation": null} |
nlprog_det-setting-0063548 | <|start|><|system|>
Functions:
{"name": "math_engine", "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"]}}
{"name": "business_days", "description": "Co... | chat | [
{
"role": "system",
"content": "Functions:\n{\"name\": \"math_engine\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"s... | nlprog_det | setting | original | null | deterministic | [] | [] | 272 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0063550 | $2,000 is invested at 4% compounded yearly. What is it worth after 5 years?
Let's compute it with Python.
```python
principal = 2000
rate = 4 / 100 # 0.04
years = 5
value = principal * (1 + rate) ** years # 2433.3058048000003
print(f"{value:.2f}")
```
What it prints — 2433.31
The balance is $2,433.31. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "2433.31", "printed": "2433.31", "notation": null} |
nlprog_det-setting-0063551 | After an initial $3,000, the remainder of a $12,000 grant is paid in 4 equal parts. What is each part?
Python version:
```python
grant = 12000
up_front = 3000
installments = 4
each = (grant - up_front) / installments # 2250.0
print(f"{each:.2f}")
```
(Result: 2250.00)
Each installment is $2,250.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "2250.00", "printed": "2250.00", "notation": null} |
nlprog_det-setting-0063552 | How many meters are in 18.2 kilometers?
Written as code:
km = 18.2
meters = km * 1000 # 18200.0
print(round(meters))
Output = 18200
18,200 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 69 | {"gold": "18200", "printed": "18200", "notation": null} |
nlprog_det-setting-0063553 | Starting with 1358 envelopes and using 8 per day, how many remain after 11 days?
A Python solution:
stock = 1358
per_day = 8
days = 11
left = stock - per_day * days # 1270
print(left)
# program output: 1270
1270 envelopes are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "1270", "printed": "1270", "notation": null} |
nlprog_det-setting-0063554 | A customer buys 2 staplers at $22 each, 5 sticky pads at $11 each, 1 rulers at $15 each and pays with $150. How much change is due?
We can compute it in Python.
```python
items = [(2, 22), (5, 11), (1, 15)]
total = sum(q * p for q, p in items) # 114
paid = 150
change = paid - total # 36
print(change)
```
Printed res... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0063555 | Equipment costs $45,000, has a salvage value of $0, and a useful life of 8 years. What is the straight-line depreciation per year?
Python code:
cost = 45000
salvage = 0
years = 8
per_year = (cost - salvage) / years # 5625.0
print(f"{per_year:.2f}")
Executed, it shows 5625.00.
$5,625.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "5625.00", "printed": "5625.00", "notation": null} |
nlprog_det-setting-0063556 | Starting from $25,000, the team spends $879, $2,817, $3,646. What remains? The remaining budget is $17,658. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "17658", "printed": "17658", "notation": null} |
nlprog_det-setting-0063557 | From 2014 to 2020, how many years is that?
Program:
```python
start_year = 2014
end_year = 2020
print(end_year - start_year)
```
The printout reads 6.
That is 6 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 67 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0063558 | <|start|><|user|>
2 clients win $96,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?<|eot|>
<|assistant|>
award = 96000
fee = award * 30 / 100 # 28800.0
remaining = award - fee # 67200.0
per_client = remaining / 2 # 33600.0
print(f"{per_client:.2f}")
The pr... | chat | [
{
"role": "user",
"content": "2 clients win $96,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?"
},
{
"role": "assistant",
"content": " award = 96000\n fee = award * 30 / 100 # 28800.0\n remaining = award - fee # 67200.0\n per_client = remai... | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "33600.00", "printed": "33600.00", "notation": null} |
nlprog_det-setting-0063559 | <|start|><|system|>
You may call the tools below.
[{"name": "py_exec", "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": "search_cases"... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"py_exec\", \"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 | [] | [] | 386 | {"gold": "2024-06-13", "printed": "2024-06-13", "notation": null} |
nlprog_det-setting-0063560 | From 1994 to 2014, how many years is that?
A Python solution:
```python
start_year = 1994
end_year = 2014
print(end_year - start_year)
```
The run gives: 20
20 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 66 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0063561 | Buying 6 rulers at $30 each, 4 folders at $12 each, 2 toner kits at $4 each, someone hands over $250. What change comes back?
In code:
```python
items = [(6, 30), (4, 12), (2, 4)]
total = sum(q * p for q, p in items) # 236
paid = 250
change = paid - total # 14
print(change)
```
The script prints 14.
The change is $... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0063562 | <|start|><|user|>
What simple interest does $12,000 earn at 4% a year over 2 years?<|eot|>
<|assistant|>
The interest is $960.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What simple interest does $12,000 earn at 4% a year over 2 years?"
},
{
"role": "assistant",
"content": "The interest is $960.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "960.00", "printed": "960.00", "notation": null} |
nlprog_det-setting-0063564 | A service costs $12 a month or $120 a year. How much does the yearly plan save over 12 monthly payments?
```python
monthly = 12
yearly = 120
savings = monthly * 12 - yearly # 24
print(savings)
```
Execution prints: 24
$24 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0063565 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
What is a 18% tip on a $42.21 bill?<|eot|>
<|assistant|>
```python
bill = 42.21
tip_rate = 18 / 100 # 0.18
tip = bill * tip_rate # 7.597799999999999
print(f"{tip:.2f}")
```
(Out: 7.60)
The tip is $7.60.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "What is a 18% tip on a $42.21 bill?"
},
{
"role": "assistant",
"content": "```python\nbill = 42.21\ntip_rate = 18 / 100 # 0.18\ntip = bill * tip_rate # 7.597799999999999\nprint(f\"{tip:.2... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "7.60", "printed": "7.60", "notation": null} |
nlprog_det-setting-0063566 | <|start|><|system|>
You may call the tools below.
[{"name": "calculator", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "business_days", "description"... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"calculator\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": ... | nlprog_det | setting | original | null | deterministic | [] | [] | 356 | {"gold": "2021-03-11", "printed": "2021-03-11", "notation": null} |
nlprog_det-setting-0063567 | Buying 2 paper reams at $20 each, 1 sticky pads at $2 each, 1 staplers at $14 each, 2 labels at $7 each, someone hands over $100. What change comes back?
Python does the arithmetic:
```python
items = [(2, 20), (1, 2), (1, 14), (2, 7)]
total = sum(q * p for q, p in items) # 70
paid = 100
change = paid - total # 30
pr... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0063568 | A 7 × 7 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?
Python version:
```python
import math
length = 7
width = 7
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 49
print(tiles)
```
# stdout: 49
It takes 49 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "49", "printed": "49", "notation": null} |
nlprog_det-setting-0063569 | <|start|><|system|>
Tools you may use:
[{"name": "sandbox_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
Straight-line depreciation: cost $... | chat | [
{
"role": "system",
"content": "Tools you may use:\n[{\"name\": \"sandbox_python\", \"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 | [] | [] | 256 | {"gold": "2800.00", "printed": "2800.00", "notation": null} |
nlprog_det-setting-0063570 | 4 hours of work at $180 an hour: what is the total charge?
As a program:
```python
hours = 4
rate = 180
bill = hours * rate # 720
print(f"{bill:.2f}")
```
Console output: 720.00
That comes to $720.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "720.00", "printed": "720.00", "notation": null} |
nlprog_det-setting-0063571 | <|start|><|user|>
Which is cheaper per unit: 8 for $8.33 (A) or 15 for $30.27 (B)?<|eot|>
<|assistant|>
```python
pack_a = 8.33 / 8 # 1.04125
pack_b = 30.27 / 15 # 2.018
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
# output: A
A has the lower unit price.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Which is cheaper per unit: 8 for $8.33 (A) or 15 for $30.27 (B)?"
},
{
"role": "assistant",
"content": "```python\npack_a = 8.33 / 8 # 1.04125\npack_b = 30.27 / 15 # 2.018\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'A'\nprint(cheaper)\n```\n# output: A\n\nA... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0063572 | A 432-page report must be reviewed in 9 days. How many pages a day is that, evenly?
As Python:
```python
pages = 432
days = 9
per_day = pages // days # 48
print(per_day)
```
(stdout: 48)
That is 48 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0063573 | Someone works 40 hours at $29.43 per hour. What are the earnings?
Here is a short program for it.
```python
rate = 29.43
hours = 40
earnings = rate * hours # 1177.2
print(f"{earnings:.2f}")
```
Printed — 1177.20
The pay is $1,177.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "1177.20", "printed": "1177.20", "notation": null} |
nlprog_det-setting-0063574 | An office budget of $20,000 has expenses of $3,158, $644, $1,091, $3,625. How much of the budget is left?
Coded up:
```python
budget = 20000
expenses = [3158, 644, 1091, 3625]
left = budget - sum(expenses) # 11482
print(left)
```
Python prints 11482.
$11,482 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "11482", "printed": "11482", "notation": null} |
nlprog_det-setting-0063575 | Starting with 1145 headsets and using 32 per day, how many remain after 8 days?
Python makes this quick:
```python
stock = 1145
per_day = 32
days = 8
left = stock - per_day * days # 889
print(left)
```
The script prints: 889
889 headsets are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "889", "printed": "889", "notation": null} |
nlprog_det-setting-0063576 | <|start|><|user|>
At $23.18 an hour, what does 12 hours of work pay?<|eot|>
<|assistant|>
That earns $278.16.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $23.18 an hour, what does 12 hours of work pay?"
},
{
"role": "assistant",
"content": "That earns $278.16."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 36 | {"gold": "278.16", "printed": "278.16", "notation": null} |
nlprog_det-setting-0063577 | <|start|><|user|>
A 3-day trip pays $64 a day for meals and $110 a night for lodging (2 nights). What is the total allowance?<|eot|>
<|assistant|>
```python
days = 3
meal_rate = 64
lodging_rate = 110
nights = days - 1 # 2
total = days * meal_rate + nights * lodging_rate # 412
print(total)
```
# printed result: 412
T... | chat | [
{
"role": "user",
"content": "A 3-day trip pays $64 a day for meals and $110 a night for lodging (2 nights). What is the total allowance?"
},
{
"role": "assistant",
"content": "```python\ndays = 3\nmeal_rate = 64\nlodging_rate = 110\nnights = days - 1 # 2\ntotal = days * meal_rate + nights * lo... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "412", "printed": "412", "notation": null} |
nlprog_det-setting-0063578 | <|start|><|system|>
Be concise.<|eot|>
<|user|>
3 boxes hold 10 staplers each. After 11 are handed out, how many are left?<|eot|>
<|assistant|>
```python
boxes = 3
per_box = 10
given_away = 11
left = boxes * per_box - given_away # 19
print(left)
```
Program output: 19
That leaves 19 staplers.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be concise."
},
{
"role": "user",
"content": "3 boxes hold 10 staplers each. After 11 are handed out, how many are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 3\nper_box = 10\ngiven_away = 11\nleft = boxes * per_box - given_away # ... | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0063580 | <|start|><|user|>
What is the total rent on a 6-month lease at $1,200 a month?<|eot|>
<|assistant|>
```python
monthly_rent = 1200
months = 6
total = monthly_rent * months
print(total)
```
Shell output: 7200
The rent over the term is $7,200.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is the total rent on a 6-month lease at $1,200 a month?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 1200\nmonths = 6\ntotal = monthly_rent * months\nprint(total)\n```\nShell output: 7200\n\nThe rent over the term is $7,200."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "7200", "printed": "7200", "notation": null} |
nlprog_det-setting-0063581 | Convert 5 h 20 min (the length of a hearing) to minutes.
We can compute it in Python.
```python
hours = 5
minutes = 20
total_minutes = hours * 60 + minutes
print(total_minutes)
```
Out — 320
The hearing lasted 320 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "320", "printed": "320", "notation": null} |
nlprog_det-setting-0063582 | 12 boxes hold 6 markers each. After 8 are handed out, how many are left?
Code:
```python
boxes = 12
per_box = 6
given_away = 8
left = boxes * per_box - given_away # 64
print(left)
```
# console output: 64
That leaves 64 markers. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "64", "printed": "64", "notation": null} |
nlprog_det-setting-0063583 | Pack A has 12 items for $13.04. Pack B has 24 items for $6.84. Which has the lower price per item?
In code:
```python
pack_a = 13.04 / 12 # 1.0866666666666667
pack_b = 6.84 / 24 # 0.285
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
Result:
B
Pack B is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0063584 | <|start|><|system|>
You can call tools. Available tools:
[{"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"]}}, {"name":... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\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 ... | nlprog_det | setting | original | null | deterministic | [] | [] | 389 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0063585 | Divide 75 items among 3 groups as evenly as possible with equal groups. How many per group, and how many remain?
Here is a short program for it.
```python
total = 75
groups = 3
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Run result — 25 each, 0 left over
The answ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "25 each, 0 left over", "printed": "25 each, 0 left over", "notation": null} |
nlprog_det-setting-0063586 | 121 volunteers are split into 4 equal teams. How many are on each team, and how many are left over?
Written as code:
```python
total = 121
groups = 4
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Run it and it prints: 30 each, 1 left over
30 each, 1 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "30 each, 1 left over", "printed": "30 each, 1 left over", "notation": null} |
nlprog_det-setting-0063587 | What average speed covers 96 miles in 4 hours?
Computation in Python:
```python
distance = 96
hours = 4
speed = distance / hours # 24.0
print(round(speed))
```
Program output: 24
It averages 24 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0063588 | 31 of 50 members attended. What percent attended?
Script:
present = 31
total = 50
percent = present / total * 100 # 62.0
print(round(percent, 1))
The program outputs 62.0.
62.0% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 66 | {"gold": "62.0", "printed": "62.0", "notation": null} |
nlprog_det-setting-0063589 | What average speed covers 202 miles in 2 hours?
As a program:
```python
distance = 202
hours = 2
speed = distance / hours # 101.0
print(round(speed))
```
The program outputs: 101
The average speed is 101 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "101", "printed": "101", "notation": null} |
nlprog_det-setting-0063590 | Meals are $59 per day and lodging $175 per night. What is the allowance for 8 days and 7 nights?
A short script:
```python
days = 8
meal_rate = 59
lodging_rate = 175
nights = days - 1 # 7
total = days * meal_rate + nights * lodging_rate # 1697
print(total)
```
stdout — 1697
That comes to $1,697. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "1697", "printed": "1697", "notation": null} |
nlprog_det-setting-0063591 | How many days are there from February 7, 2024 to December 12, 2024?
```python
from datetime import date
first = date(2024, 2, 7) # datetime.date(2024, 2, 7)
second = date(2024, 12, 12) # datetime.date(2024, 12, 12)
print((second - first).days)
```
Program output: 309
There are 309 days between the two dates. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "309", "printed": "309", "notation": null} |
nlprog_det-setting-0063592 | With $20,000 in costs and $21,000 in revenue, what percent of revenue is profit? Round to one decimal.
Programmatically:
```python
revenue = 21000
costs = 20000
profit = revenue - costs # 1000
margin = profit / revenue * 100 # 4.761904761904762
print(round(margin, 1))
```
Executing it gives 4.8.
The margin is 4.8%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "4.8", "printed": "4.8", "notation": null} |
nlprog_det-setting-0063593 | 53 of 80 members attended. What percent attended?
Program:
```python
present = 53
total = 80
percent = present / total * 100 # 66.25
print(round(percent, 1))
```
# stdout: 66.2
66.2% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "66.2", "printed": "66.2", "notation": null} |
nlprog_det-setting-0063594 | <|start|><|user|>
If a 5-year limitations period starts on May 16, 2014, when does it end?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2014, 5, 16) # datetime.date(2014, 5, 16)
years = 5
expires = accrued.replace(year=accrued.year + years) # datetime.date(2019, 5, 16)
print(expires.isoform... | chat | [
{
"role": "user",
"content": "If a 5-year limitations period starts on May 16, 2014, when does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrued = date(2014, 5, 16) # datetime.date(2014, 5, 16)\nyears = 5\nexpires = accrued.replace(year=accrued.year + ... | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "2019-05-16", "printed": "2019-05-16", "notation": null} |
nlprog_det-setting-0063595 | A $12,000 grant pays $3,000 up front and the rest in 3 equal installments. How large is each installment?
Python does the arithmetic:
```python
grant = 12000
up_front = 3000
installments = 3
each = (grant - up_front) / installments # 3000.0
print(f"{each:.2f}")
```
Output: 3000.00
$3,000.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "3000.00", "printed": "3000.00", "notation": null} |
nlprog_det-setting-0063596 | <|start|><|user|>
Convert -20 °C to Fahrenheit.<|eot|>
<|assistant|>
```python
celsius = -20
fahrenheit = celsius * 9 / 5 + 32 # -4.0
print(round(fahrenheit))
```
The program outputs: -4
It equals -4 degrees Fahrenheit.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert -20 °C to Fahrenheit."
},
{
"role": "assistant",
"content": "```python\ncelsius = -20\nfahrenheit = celsius * 9 / 5 + 32 # -4.0\nprint(round(fahrenheit))\n```\nThe program outputs: -4\n\nIt equals -4 degrees Fahrenheit."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "-4", "printed": "-4", "notation": null} |
nlprog_det-setting-0063597 | <|start|><|system|>
You help with homework problems.<|eot|>
<|user|>
22 copies of a 20-page packet are printed at $0.08 per page. What is the cost?<|eot|>
<|assistant|>
```python
pages = 20
copies = 22
cost_per_page = 0.08
cost = pages * copies * cost_per_page # 35.2
print(f"{cost:.2f}")
```
Running this gives: 35.20
... | chat | [
{
"role": "system",
"content": "You help with homework problems."
},
{
"role": "user",
"content": "22 copies of a 20-page packet are printed at $0.08 per page. What is the cost?"
},
{
"role": "assistant",
"content": "```python\npages = 20\ncopies = 22\ncost_per_page = 0.08\ncost = pa... | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "35.20", "printed": "35.20", "notation": null} |
nlprog_det-setting-0063598 | Express 134 hours in days and hours.
134 hours is 5 days and 14 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 23 | {"gold": "5 days and 14 hours", "printed": "5 days and 14 hours", "notation": null} |
nlprog_det-setting-0063599 | <|start|><|user|>
453 files go into boxes of 24. How many boxes does that take?<|eot|>
<|assistant|>
```python
import math
files = 453
per_box = 24
boxes = math.ceil(files / per_box) # 19
print(boxes)
```
Running it prints 19, as expected.
19 boxes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "453 files go into boxes of 24. How many boxes does that take?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 453\nper_box = 24\nboxes = math.ceil(files / per_box) # 19\nprint(boxes)\n```\nRunning it prints 19, as expected.\n\n19 boxes are ne... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0063600 | A clerk's office charges $90 for each filing. Yara submits 16 filings. What is the total fee?
Code:
fee = 90
filings = 16
total = fee * filings # 1440
print(total)
Program output: 1440
The filings cost $1,440 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "1440", "printed": "1440", "notation": null} |
nlprog_det-setting-0063601 | Pay is $18.50/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 55 hours?
A Python solution:
```python
rate = 18.5
hours = 55
regular = 40 * rate # 740.0
overtime = (hours - 40) * rate * 1.5 # 416.25
pay = regular + overtime # 1156.25
print(f"{pay:.2f}")
```
Printed: 1156.25
The weekly pay i... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "1156.25", "printed": "1156.25", "notation": null} |
nlprog_det-setting-0063602 | A service costs $15 a month or $150 a year. How much does the yearly plan save over 12 monthly payments?
Coded up:
monthly = 15
yearly = 150
savings = monthly * 12 - yearly # 30
print(savings)
The interpreter prints: 30
$30 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0063603 | <|start|><|system|>
Tool definitions:
[{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}, {"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "obje... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}, {\"name\": \"translate\", \"description\": \"Translate ... | nlprog_det | setting | original | null | deterministic | [] | [] | 396 | {"gold": "1452", "printed": "1452", "notation": null} |
nlprog_det-setting-0063604 | <|start|><|user|>
Elena was born on March 18, 2005. How old is Elena on November 18, 2020?<|eot|>
<|assistant|>
```python
from datetime import date
born = date(2005, 3, 18) # datetime.date(2005, 3, 18)
on = date(2020, 11, 18) # datetime.date(2020, 11, 18)
age = on.year - born.year - ((on.month, on.day) < (born.month,... | chat | [
{
"role": "user",
"content": "Elena was born on March 18, 2005. How old is Elena on November 18, 2020?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(2005, 3, 18) # datetime.date(2005, 3, 18)\non = date(2020, 11, 18) # datetime.date(2020, 11, 18)\nage ... | nlprog_det | setting | original | null | deterministic | [] | [] | 150 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0063606 | What is 35 degrees Celsius in Fahrenheit?
We can compute it in Python.
```python
celsius = 35
fahrenheit = celsius * 9 / 5 + 32 # 95.0
print(round(fahrenheit))
```
The program prints 95.
It equals 95 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "95", "printed": "95", "notation": null} |
nlprog_det-setting-0063607 | 591 files go into boxes of 25. How many boxes does that take?
Code:
```python
import math
files = 591
per_box = 25
boxes = math.ceil(files / per_box) # 24
print(boxes)
```
When run, it prints 24, as expected.
It takes 24 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0063608 | <|start|><|user|>
45 of 50 members attended. What percent attended?<|eot|>
<|assistant|>
```python
present = 45
total = 50
percent = present / total * 100 # 90.0
print(round(percent, 1))
```
stdout:
90.0
90.0% attended.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "45 of 50 members attended. What percent attended?"
},
{
"role": "assistant",
"content": "```python\npresent = 45\ntotal = 50\npercent = present / total * 100 # 90.0\nprint(round(percent, 1))\n```\nstdout:\n90.0\n\n90.0% attended."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "90.0", "printed": "90.0", "notation": null} |
nlprog_det-setting-0063609 | How many days are there from November 13, 2018 to January 15, 2019?
The program:
from datetime import date
first = date(2018, 11, 13) # datetime.date(2018, 11, 13)
second = date(2019, 1, 15) # datetime.date(2019, 1, 15)
print((second - first).days)
That prints 63.
There are 63 days between the two d... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "63", "printed": "63", "notation": null} |
nlprog_det-setting-0063610 | <|start|><|user|>
Shipping costs $12 plus $2.50 per pound. What does a 5-pound parcel cost to ship?<|eot|>
<|assistant|>
```python
base = 12
per_pound = 2.5
weight = 5
cost = base + per_pound * weight # 24.5
print(f"{cost:.2f}")
```
(Output: 24.50)
The charge is $24.50.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Shipping costs $12 plus $2.50 per pound. What does a 5-pound parcel cost to ship?"
},
{
"role": "assistant",
"content": "```python\nbase = 12\nper_pound = 2.5\nweight = 5\ncost = base + per_pound * weight # 24.5\nprint(f\"{cost:.2f}\")\n```\n(Output: 24.50)\n\nThe ... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "24.50", "printed": "24.50", "notation": null} |
nlprog_det-setting-0063611 | <|start|><|system|>
You are an assistant for a small office.<|eot|>
<|user|>
At 40 miles per hour, how many minutes does a 140-mile trip take?<|eot|>
<|assistant|>
distance = 140
speed = 40
minutes = distance / speed * 60 # 210.0
print(round(minutes))
Interpreter output: 210
210 minutes.<|eot|>
<|end|... | chat | [
{
"role": "system",
"content": "You are an assistant for a small office."
},
{
"role": "user",
"content": "At 40 miles per hour, how many minutes does a 140-mile trip take?"
},
{
"role": "assistant",
"content": " distance = 140\n speed = 40\n minutes = distance / speed * 60 ... | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "210", "printed": "210", "notation": null} |
nlprog_det-setting-0063612 | What percentage of $8,000 is $2,800?
Python, step by step:
```python
budget = 8000
spent = 2800
percent = spent / budget * 100 # 35.0
print(round(percent, 1))
```
stdout: 35.0
35.0% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "35.0", "printed": "35.0", "notation": null} |
nlprog_det-setting-0063613 | Parking is $2 per hour with a daily maximum of $18. What do 5 hours cost?
```python
rate = 2
hours = 5
daily_max = 18
cost = min(rate * hours, daily_max) # 10
print(cost)
```
(Output: 10)
The charge is $10. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0063614 | Uma has 19 documents to file, and each filing costs $90. How much are the filing fees in total?
Let's compute it with Python.
```python
fee = 90
filings = 19
total = fee * filings # 1710
print(total)
```
# stdout: 1710
$1,710 in filing fees. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "1710", "printed": "1710", "notation": null} |
nlprog_det-setting-0063616 | A $1,000 security deposit has deductions of $200, $85 and $120. How much is refunded?
A short script:
```python
deposit = 1000
deductions = [200, 85, 120]
refund = deposit - sum(deductions) # 595
print(refund)
```
Running it prints 595, as expected.
$595 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "595", "printed": "595", "notation": null} |
nlprog_det-setting-0063617 | Kemal lends $5,000 at 5% simple interest per year for 4 years. How much interest is earned?
The Python version:
principal = 5000
rate = 5 / 100 # 0.05
years = 4
interest = principal * rate * years # 1000.0
print(f"{interest:.2f}")
It outputs: 1000.00
The interest is $1,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "1000.00", "printed": "1000.00", "notation": null} |
nlprog_det-setting-0063618 | <|start|><|user|>
A jacket costs $75. It is 20% off. What is the sale price?<|eot|>
<|assistant|>
```python
price = 75
discount = 20 / 100 # 0.2
sale_price = price * (1 - discount) # 60.0
print(f"{sale_price:.2f}")
```
(Out: 60.00)
It costs $60.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A jacket costs $75. It is 20% off. What is the sale price?"
},
{
"role": "assistant",
"content": "```python\nprice = 75\ndiscount = 20 / 100 # 0.2\nsale_price = price * (1 - discount) # 60.0\nprint(f\"{sale_price:.2f}\")\n```\n(Out: 60.00)\n\nIt costs $60.00."
}... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "60.00", "printed": "60.00", "notation": null} |
nlprog_det-setting-0063619 | <|start|><|user|>
Convert 69.4 km to meters.<|eot|>
<|assistant|>
```python
km = 69.4
meters = km * 1000
print(round(meters))
```
Executing it gives: 69400
That is 69,400 meters.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 69.4 km to meters."
},
{
"role": "assistant",
"content": "```python\nkm = 69.4\nmeters = km * 1000\nprint(round(meters))\n```\nExecuting it gives: 69400\n\nThat is 69,400 meters."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "69400", "printed": "69400", "notation": null} |
nlprog_det-setting-0063620 | A service costs $29 a month or $324 a year. How much does the yearly plan save over 12 monthly payments?
Python, step by step:
```python
monthly = 29
yearly = 324
savings = monthly * 12 - yearly # 24
print(savings)
```
Interpreter output — 24
The annual plan saves $24. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0063621 | A library charges $0.50 per book per day late. What is the fine for 3 books that are 27 days late?
Python:
```python
per_day = 0.5
days_late = 27
books = 3
fine = per_day * days_late * books # 40.5
print(f"{fine:.2f}")
```
Output of the run — 40.50
The fine is $40.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "40.50", "printed": "40.50", "notation": null} |
nlprog_det-setting-0063623 | <|start|><|user|>
Under a 30% contingency agreement, what fee is owed on a $60,000 award?<|eot|>
<|assistant|>
```python
recovery = 60000
rate = 30 / 100 # 0.3
fee = recovery * rate # 18000.0
print(f"{fee:.2f}")
```
This prints 18000.00.
The fee is $18,000.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Under a 30% contingency agreement, what fee is owed on a $60,000 award?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 60000\nrate = 30 / 100 # 0.3\nfee = recovery * rate # 18000.0\nprint(f\"{fee:.2f}\")\n```\nThis prints 18000.00.\n\nThe fee is $18,... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "18000.00", "printed": "18000.00", "notation": null} |
nlprog_det-setting-0063624 | <|start|><|user|>
A claim accrued on June 13, 2016. The limitations period is 6 years. On what date does it expire?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2016, 6, 13) # datetime.date(2016, 6, 13)
years = 6
expires = accrued.replace(year=accrued.year + years) # datetime.date(2022, 6, ... | chat | [
{
"role": "user",
"content": "A claim accrued on June 13, 2016. The limitations period is 6 years. On what date does it expire?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrued = date(2016, 6, 13) # datetime.date(2016, 6, 13)\nyears = 6\nexpires = accrued.rep... | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "2022-06-13", "printed": "2022-06-13", "notation": null} |
nlprog_det-setting-0063626 | Someone born October 15, 1979 turns how old by November 13, 2024? Give the age in whole years.
In Python:
```python
from datetime import date
born = date(1979, 10, 15) # datetime.date(1979, 10, 15)
on = date(2024, 11, 13) # datetime.date(2024, 11, 13)
age = on.year - born.year - ((on.month, on.day) < (born.month, bo... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 158 | {"gold": "45", "printed": "45", "notation": null} |
nlprog_det-setting-0063627 | <|start|><|system|>
You have access to these functions:
[{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "python", "description": "A Python interpreter. Returns standard output.", "para... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"python\", \"description\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 281 | {"gold": "78000", "printed": "78000", "notation": null} |
nlprog_det-setting-0063628 | A $6,000 loan carries 6% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?
In code:
```python
principal = 6000
annual_rate = 6 / 100 # 0.06
months = 12
interest = principal * annual_rate * months / 12 # 360.0
payment = (principal + interest) / m... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 144 | {"gold": "530.00", "printed": "530.00", "notation": null} |
nlprog_det-setting-0063629 | <|start|><|user|>
A quorum is 3/5 of the 56 members, rounded up. How many members make a quorum?<|eot|>
<|assistant|>
```python
import math
members = 56
quorum = math.ceil(members * 3 / 5) # 34
print(quorum)
```
The run gives: 34
34 members are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A quorum is 3/5 of the 56 members, rounded up. How many members make a quorum?"
},
{
"role": "assistant",
"content": "```python\nimport math\nmembers = 56\nquorum = math.ceil(members * 3 / 5) # 34\nprint(quorum)\n```\nThe run gives: 34\n\n34 members are needed."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "34", "printed": "34", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.