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-0053997 | With 9 rows of 17 chairs and 34 empty chairs, how many chairs are taken?
In code:
rows = 9
per_row = 17
empty = 34
seated = rows * per_row - empty # 119
print(seated)
The script prints 119, as expected.
119 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "119", "printed": "119", "notation": null} |
nlprog_det-setting-0053998 | Equipment costs $45,000, has a salvage value of $2,000, and a useful life of 8 years. What is the straight-line depreciation per year?
Python:
```python
cost = 45000
salvage = 2000
years = 8
per_year = (cost - salvage) / years # 5375.0
print(f"{per_year:.2f}")
```
Executing it gives 5375.00, as expected.
Depreciatio... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "5375.00", "printed": "5375.00", "notation": null} |
nlprog_det-setting-0054000 | <|start|><|user|>
Rent of $2,200 goes up 4%. What is the new rent?<|eot|>
<|assistant|>
```python
rent = 2200
increase = 4 / 100 # 0.04
new_rent = rent * (1 + increase) # 2288.0
print(f"{new_rent:.2f}")
```
Result = 2288.00
The new rent is $2,288.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Rent of $2,200 goes up 4%. What is the new rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 2200\nincrease = 4 / 100 # 0.04\nnew_rent = rent * (1 + increase) # 2288.0\nprint(f\"{new_rent:.2f}\")\n```\nResult = 2288.00\n\nThe new rent is $2,288.00."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "2288.00", "printed": "2288.00", "notation": null} |
nlprog_det-setting-0054001 | Equal monthly payments repay $2,400 plus 6% simple yearly interest over 24 months. How large is a payment?
Written as code:
principal = 2400
annual_rate = 6 / 100 # 0.06
months = 24
interest = principal * annual_rate * months / 12 # 288.0
payment = (principal + interest) / months # 112.0
pri... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "112.00", "printed": "112.00", "notation": null} |
nlprog_det-setting-0054002 | Divide 138 items among 8 groups as evenly as possible with equal groups. How many per group, and how many remain?
Let's compute it with Python.
```python
total = 138
groups = 8
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Program output — 17 each, 2 left over
17 e... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "17 each, 2 left over", "printed": "17 each, 2 left over", "notation": null} |
nlprog_det-setting-0054003 | Monthly rent is $1,800. A tenant moves in with 17 days left in a 31-day month. What is the prorated rent?
The tenant owes $987.10. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "987.10", "printed": "987.10", "notation": null} |
nlprog_det-setting-0054004 | <|start|><|user|>
The paralegal logged 1.5 hours at a rate of $150. How much is billed?<|eot|>
<|assistant|>
```python
hours = 1.5
rate = 150
bill = hours * rate # 225.0
print(f"{bill:.2f}")
```
(Run result: 225.00)
That comes to $225.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The paralegal logged 1.5 hours at a rate of $150. How much is billed?"
},
{
"role": "assistant",
"content": "```python\nhours = 1.5\nrate = 150\nbill = hours * rate # 225.0\nprint(f\"{bill:.2f}\")\n```\n(Run result: 225.00)\n\nThat comes to $225.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "225.00", "printed": "225.00", "notation": null} |
nlprog_det-setting-0054005 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "eval_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}, {"name": "get_weat... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"eval_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code... | nlprog_det | setting | original | null | deterministic | [] | [] | 374 | {"gold": "32.00", "printed": "32.00", "notation": null} |
nlprog_det-setting-0054006 | A lawyer's fee is 25% of a $60,000 recovery. How large is the fee?
A short script:
```python
recovery = 60000
rate = 25 / 100 # 0.25
fee = recovery * rate # 15000.0
print(f"{fee:.2f}")
```
(Out: 15000.00)
The lawyer's fee comes to $15,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "15000.00", "printed": "15000.00", "notation": null} |
nlprog_det-setting-0054007 | <|start|><|user|>
Starting from $25,000, the team spends $1,815, $2,750. What remains?<|eot|>
<|assistant|>
$20,435 is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting from $25,000, the team spends $1,815, $2,750. What remains?"
},
{
"role": "assistant",
"content": "$20,435 is left."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "20435", "printed": "20435", "notation": null} |
nlprog_det-setting-0054008 | Malik's scores were 53, 100 and 75. What is the average score?
Let the code do the arithmetic:
```python
scores = [53, 100, 75]
average = sum(scores) // len(scores) # 76
print(average)
```
What it prints: 76
The mean is 76. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "76", "printed": "76", "notation": null} |
nlprog_det-setting-0054009 | Attendance was 123 out of 200. Express it as a percent.
The Python version:
```python
present = 123
total = 200
percent = present / total * 100 # 61.5
print(round(percent, 1))
```
Running it prints 61.5, as expected.
Attendance was 61.5%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "61.5", "printed": "61.5", "notation": null} |
nlprog_det-setting-0054010 | Grace was born on February 17, 2010. How old is Grace on March 18, 2026?
In code:
```python
from datetime import date
born = date(2010, 2, 17) # datetime.date(2010, 2, 17)
on = date(2026, 3, 18) # datetime.date(2026, 3, 18)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 16
print(age)
``... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 152 | {"gold": "16", "printed": "16", "notation": null} |
nlprog_det-setting-0054011 | <|start|><|user|>
Copies cost $5 plus $0.50 for each page beyond 20. How much for 45 pages?<|eot|>
<|assistant|>
```python
pages = 45
base = 5
per_page = 0.5
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page # 17.5
print(f"{cost:.2f}")
```
(Out: 17.50)
The copy costs $17.50.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Copies cost $5 plus $0.50 for each page beyond 20. How much for 45 pages?"
},
{
"role": "assistant",
"content": "```python\npages = 45\nbase = 5\nper_page = 0.5\nfree_pages = 20\ncost = base + max(0, pages - free_pages) * per_page # 17.5\nprint(f\"{cost:.2f}\")\n``... | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "17.50", "printed": "17.50", "notation": null} |
nlprog_det-setting-0054012 | Which is cheaper per unit: 6 for $4.48 (A) or 24 for $25.94 (B)?
In code:
```python
pack_a = 4.48 / 6 # 0.7466666666666667
pack_b = 25.94 / 24 # 1.0808333333333333
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
# console output: A
A has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0054013 | <|start|><|user|>
A service costs $9 a month or $78 a year. How much does the yearly plan save over 12 monthly payments?<|eot|>
<|assistant|>
monthly = 9
yearly = 78
savings = monthly * 12 - yearly # 30
print(savings)
On running, it outputs: 30
$30 is saved.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A service costs $9 a month or $78 a year. How much does the yearly plan save over 12 monthly payments?"
},
{
"role": "assistant",
"content": " monthly = 9\n yearly = 78\n savings = monthly * 12 - yearly # 30\n print(savings)\nOn running, it outputs: 30\... | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0054014 | Prorate $1,800 of monthly rent for 5 days of a 30-day month.
Here's the code.
```python
rent = 1800
days_in_month = 30
days_occupied = 5
prorated = rent * days_occupied / days_in_month # 300.0
print(f"{prorated:.2f}")
```
Out: 300.00
The tenant owes $300.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "300.00", "printed": "300.00", "notation": null} |
nlprog_det-setting-0054015 | At an exchange rate of 1.35 USD per CHF, how many USD is 2,544 CHF?
Python makes this quick:
```python
amount = 2544
rate = 1.35
converted = amount * rate # 3434.4
print(f"{converted:.2f}")
```
The program prints: 3434.40
It converts to 3,434.40 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "3434.40", "printed": "3434.40", "notation": null} |
nlprog_det-setting-0054016 | Each storage box holds 40 files. How many boxes are needed for 506 files?
In Python:
```python
import math
files = 506
per_box = 40
boxes = math.ceil(files / per_box) # 13
print(boxes)
```
(Printed: 13)
13 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0054017 | 16 of 20 members attended. What percent attended?
As Python:
present = 16
total = 20
percent = present / total * 100 # 80.0
print(round(percent, 1))
On running, it outputs 80.0.
Attendance was 80.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 73 | {"gold": "80.0", "printed": "80.0", "notation": null} |
nlprog_det-setting-0054018 | <|start|><|user|>
The meal allowance is $59 per day. What is it for 5 days?<|eot|>
<|assistant|>
```python
days = 5
meal_rate = 59
total = days * meal_rate # 295
print(total)
```
The program outputs: 295
That comes to $295.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The meal allowance is $59 per day. What is it for 5 days?"
},
{
"role": "assistant",
"content": "```python\ndays = 5\nmeal_rate = 59\ntotal = days * meal_rate # 295\nprint(total)\n```\nThe program outputs: 295\n\nThat comes to $295."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "295", "printed": "295", "notation": null} |
nlprog_det-setting-0054019 | What is a 22% tip on a $158.01 bill?
The computation:
bill = 158.01
tip_rate = 22 / 100 # 0.22
tip = bill * tip_rate # 34.7622
print(f"{tip:.2f}")
Run result — 34.76
The tip is $34.76. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "34.76", "printed": "34.76", "notation": null} |
nlprog_det-setting-0054021 | A 14 lb package ships at $10 base plus $1.20/lb. What is the charge?
Code:
```python
base = 10
per_pound = 1.2
weight = 14
cost = base + per_pound * weight # 26.8
print(f"{cost:.2f}")
```
The program prints 26.80, as expected.
The charge is $26.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "26.80", "printed": "26.80", "notation": null} |
nlprog_det-setting-0054022 | <|start|><|system|>
Functions:
[{"name": "code_runner", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
Tariq was born on January 18, 1983. How old is Tari... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"code_runner\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}]"
},
{
... | nlprog_det | setting | original | null | deterministic | [] | [] | 242 | {"gold": "39", "printed": "39", "notation": null} |
nlprog_det-setting-0054023 | Meals are $59 per day and lodging $140 per night. What is the allowance for 5 days and 4 nights?
Python:
days = 5
meal_rate = 59
lodging_rate = 140
nights = days - 1 # 4
total = days * meal_rate + nights * lodging_rate # 855
print(total)
Running it prints: 855
The allowance is $855. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "855", "printed": "855", "notation": null} |
nlprog_det-setting-0054024 | How long, in days, is it from June 6, 2020 until May 20, 2021?
Here is the program.
```python
from datetime import date
first = date(2020, 6, 6) # datetime.date(2020, 6, 6)
second = date(2021, 5, 20) # datetime.date(2021, 5, 20)
print((second - first).days)
```
When run, it prints 348.
There are 348 days between th... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "348", "printed": "348", "notation": null} |
nlprog_det-setting-0054025 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "search_cases", "description": "Search case law by keyword.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}, {"name": "calc", "description": "Executes a Python program and returns its ou... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"search_cases\", \"description\": \"Search case law by keyword.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\"}}, \"required\": [\"query\"]}}, {\"name\": \"calc\", \"des... | nlprog_det | setting | original | null | deterministic | [] | [] | 295 | {"gold": "19.60", "printed": "19.60", "notation": null} |
nlprog_det-setting-0054026 | <|start|><|system|>
Functions:
[{"name": "compute", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
Count 30 days forward from November 19, 2... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"compute\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program\"]}}]"
... | nlprog_det | setting | original | null | deterministic | [] | [] | 218 | {"gold": "2018-12-19", "printed": "2018-12-19", "notation": null} |
nlprog_det-setting-0054027 | Vera lends $1,000 at 4% simple interest per year for 3 years. How much interest is earned?
Computing it:
```python
principal = 1000
rate = 4 / 100 # 0.04
years = 3
interest = principal * rate * years # 120.0
print(f"{interest:.2f}")
```
Output — 120.00
The interest is $120.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "120.00", "printed": "120.00", "notation": null} |
nlprog_det-setting-0054028 | Convert -5 °C to Fahrenheit.
A Python solution:
```python
celsius = -5
fahrenheit = celsius * 9 / 5 + 32 # 23.0
print(round(fahrenheit))
```
Out: 23
It equals 23 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0054029 | A 34 lb package ships at $12 base plus $2.50/lb. What is the charge?
The charge is $97.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "97.00", "printed": "97.00", "notation": null} |
nlprog_det-setting-0054030 | $5,000 is invested at 2% compounded yearly. What is it worth after 4 years?
Code:
```python
principal = 5000
rate = 2 / 100 # 0.02
years = 4
value = principal * (1 + rate) ** years # 5412.1608
print(f"{value:.2f}")
```
Output: 5412.16
It is worth $5,412.16. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "5412.16", "printed": "5412.16", "notation": null} |
nlprog_det-setting-0054031 | Convert 20 °C to Fahrenheit.
The computation:
celsius = 20
fahrenheit = celsius * 9 / 5 + 32 # 68.0
print(round(fahrenheit))
It outputs: 68
It equals 68 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "68", "printed": "68", "notation": null} |
nlprog_det-setting-0054032 | <|start|><|user|>
From 2000 to 2018, how many years is that?<|eot|>
<|assistant|>
```python
start_year = 2000
end_year = 2018
print(end_year - start_year)
```
(Printed: 18)
18 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From 2000 to 2018, how many years is that?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 2000\nend_year = 2018\nprint(end_year - start_year)\n```\n(Printed: 18)\n\n18 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 66 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0054033 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
{"name": "python_exec", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|>
<|user|... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"python_exec\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python sourc... | nlprog_det | setting | original | null | deterministic | [] | [] | 252 | {"gold": "-2725", "printed": "-2725", "notation": null} |
nlprog_det-setting-0054034 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "python", "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|>... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Pyt... | nlprog_det | setting | original | null | deterministic | [] | [] | 227 | {"gold": "5250", "printed": "5250", "notation": null} |
nlprog_det-setting-0054035 | The landlord deducts $45, $120 and $60 from a $2,000 deposit. What is returned to the tenant?
$1,775 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "1775", "printed": "1775", "notation": null} |
nlprog_det-setting-0054036 | <|start|><|system|>
You help people work with structured data.<|eot|>
<|user|>
What does $5,000 grow to in 4 years at 4% annual compounding?<|eot|>
<|assistant|>
```python
principal = 5000
rate = 4 / 100 # 0.04
years = 4
value = principal * (1 + rate) ** years # 5849.292800000001
print(f"{value:.2f}")
```
The program... | chat | [
{
"role": "system",
"content": "You help people work with structured data."
},
{
"role": "user",
"content": "What does $5,000 grow to in 4 years at 4% annual compounding?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 5000\nrate = 4 / 100 # 0.04\nyears = 4\nvalue = pr... | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "5849.29", "printed": "5849.29", "notation": null} |
nlprog_det-setting-0054037 | One can of paint covers 400 square feet. How many cans are needed for 967 square feet of wall?
We can compute it in Python.
```python
import math
area = 967
coverage = 400
cans = math.ceil(area / coverage)
print(cans)
```
The code prints: 3
3 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0054038 | <|start|><|system|>
You are a study helper for students.<|eot|>
<|user|>
An office budget of $20,000 has expenses of $3,272, $955, $2,838. How much of the budget is left?<|eot|>
<|assistant|>
$12,935 is left.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a study helper for students."
},
{
"role": "user",
"content": "An office budget of $20,000 has expenses of $3,272, $955, $2,838. How much of the budget is left?"
},
{
"role": "assistant",
"content": "$12,935 is left."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 64 | {"gold": "12935", "printed": "12935", "notation": null} |
nlprog_det-setting-0054039 | <|start|><|system|>
Functions:
[{"name": "py_exec", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "search_cases", "description": "Search case law ... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"py_exec\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}, {\... | nlprog_det | setting | original | null | deterministic | [] | [] | 285 | {"gold": "1816", "printed": "1816", "notation": null} |
nlprog_det-setting-0054040 | 2 friends split a $210 bill plus a 15% tip evenly. How much does each pay?
Python does the arithmetic:
```python
bill = 210
tip_rate = 15 / 100 # 0.15
people = 2
each = bill * (1 + tip_rate) / people # 120.74999999999999
print(f"{each:.2f}")
```
Program output — 120.75
Each person pays $120.75. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "120.75", "printed": "120.75", "notation": null} |
nlprog_det-setting-0054041 | <|start|><|user|>
Under a 25% contingency agreement, what fee is owed on a $25,000 award?<|eot|>
<|assistant|>
```python
recovery = 25000
rate = 25 / 100 # 0.25
fee = recovery * rate # 6250.0
print(f"{fee:.2f}")
```
The program prints 6250.00.
The fee is $6,250.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Under a 25% contingency agreement, what fee is owed on a $25,000 award?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 25000\nrate = 25 / 100 # 0.25\nfee = recovery * rate # 6250.0\nprint(f\"{fee:.2f}\")\n```\nThe program prints 6250.00.\n\nThe fee i... | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "6250.00", "printed": "6250.00", "notation": null} |
nlprog_det-setting-0054042 | <|start|><|system|>
Keep answers short and correct.<|eot|>
<|user|>
A 3-day trip pays $79 a day for meals and $140 a night for lodging (2 nights). What is the total allowance?<|eot|>
<|assistant|>
```python
days = 3
meal_rate = 79
lodging_rate = 140
nights = days - 1 # 2
total = days * meal_rate + nights * lodging_rat... | chat | [
{
"role": "system",
"content": "Keep answers short and correct."
},
{
"role": "user",
"content": "A 3-day trip pays $79 a day for meals and $140 a night for lodging (2 nights). What is the total allowance?"
},
{
"role": "assistant",
"content": "```python\ndays = 3\nmeal_rate = 79\nlo... | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "517", "printed": "517", "notation": null} |
nlprog_det-setting-0054043 | <|start|><|user|>
From a $2,500 retainer, 11 hours at $150/hour have been drawn. What remains?<|eot|>
<|assistant|>
$850 of the retainer is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From a $2,500 retainer, 11 hours at $150/hour have been drawn. What remains?"
},
{
"role": "assistant",
"content": "$850 of the retainer is left."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "850", "printed": "850", "notation": null} |
nlprog_det-setting-0054044 | <|start|><|user|>
A water bill is $12 plus $5.10 per thousand gallons beyond the first 0 thousand. What is the bill for 15 thousand gallons?<|eot|>
<|assistant|>
The bill is $88.50.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A water bill is $12 plus $5.10 per thousand gallons beyond the first 0 thousand. What is the bill for 15 thousand gallons?"
},
{
"role": "assistant",
"content": "The bill is $88.50."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 47 | {"gold": "88.50", "printed": "88.50", "notation": null} |
nlprog_det-setting-0054045 | <|start|><|user|>
Copies cost $15 plus $0.10 for each page beyond 20. How much for 102 pages?<|eot|>
<|assistant|>
```python
pages = 102
base = 15
per_page = 0.1
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page # 23.200000000000003
print(f"{cost:.2f}")
```
What it prints — 23.20
The total is $23.20... | chat | [
{
"role": "user",
"content": "Copies cost $15 plus $0.10 for each page beyond 20. How much for 102 pages?"
},
{
"role": "assistant",
"content": "```python\npages = 102\nbase = 15\nper_page = 0.1\nfree_pages = 20\ncost = base + max(0, pages - free_pages) * per_page # 23.200000000000003\nprint(f\... | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "23.20", "printed": "23.20", "notation": null} |
nlprog_det-setting-0054046 | <|start|><|user|>
How many units at $15 each (variable cost $5) cover $9,000 of fixed costs?<|eot|>
<|assistant|>
import math
fixed = 9000
price = 15
variable = 5
units = math.ceil(fixed / (price - variable)) # 900
print(units)
Program output: 900
Break-even is 900 units.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many units at $15 each (variable cost $5) cover $9,000 of fixed costs?"
},
{
"role": "assistant",
"content": " import math\n fixed = 9000\n price = 15\n variable = 5\n units = math.ceil(fixed / (price - variable)) # 900\n print(units)\nProgram... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0054047 | Monthly: $9. Annual: $84. What is saved per year by paying annually?
```python
monthly = 9
yearly = 84
savings = monthly * 12 - yearly # 24
print(savings)
```
Executed, it shows 24.
$24 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0054048 | Rent of $1,800 goes up 5%. What is the new rent?
We can compute it in Python.
```python
rent = 1800
increase = 5 / 100 # 0.05
new_rent = rent * (1 + increase) # 1890.0
print(f"{new_rent:.2f}")
```
(Printed result: 1890.00)
The new rent is $1,890.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "1890.00", "printed": "1890.00", "notation": null} |
nlprog_det-setting-0054049 | <|start|><|user|>
208 volunteers are split into 7 equal teams. How many are on each team, and how many are left over?<|eot|>
<|assistant|>
29 each, 5 left over.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "208 volunteers are split into 7 equal teams. How many are on each team, and how many are left over?"
},
{
"role": "assistant",
"content": "29 each, 5 left over."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "29 each, 5 left over", "printed": "29 each, 5 left over", "notation": null} |
nlprog_det-setting-0054050 | With $4,000 in costs and $6,500 in revenue, what percent of revenue is profit? Round to one decimal.
A Python solution:
```python
revenue = 6500
costs = 4000
profit = revenue - costs # 2500
margin = profit / revenue * 100 # 38.46153846153847
print(round(margin, 1))
```
stdout: 38.5
Profit is 38.5% of revenue. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "38.5", "printed": "38.5", "notation": null} |
nlprog_det-setting-0054051 | Notice was given on September 5, 2024. The notice period is 90 days. When does it run out?
We write it as a program:
```python
from datetime import date, timedelta
start = date(2024, 9, 5) # datetime.date(2024, 9, 5)
end = start + timedelta(days=90) # datetime.date(2024, 12, 4)
print(end.isoformat())
```
Output: 202... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "2024-12-04", "printed": "2024-12-04", "notation": null} |
nlprog_det-setting-0054052 | <|start|><|system|>
Be exact with numbers.<|eot|>
<|user|>
What is the total rent on a 12-month lease at $975 a month?<|eot|>
<|assistant|>
```python
monthly_rent = 975
months = 12
total = monthly_rent * months # 11700
print(total)
```
What it prints — 11700
In total, $11,700 is paid.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be exact with numbers."
},
{
"role": "user",
"content": "What is the total rent on a 12-month lease at $975 a month?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 975\nmonths = 12\ntotal = monthly_rent * months # 11700\nprint(total)... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "11700", "printed": "11700", "notation": null} |
nlprog_det-setting-0054053 | <|start|><|user|>
A count moves from 1,200 to 1,320. By what percent did it change (use a minus sign for a drop)?<|eot|>
<|assistant|>
The change is 10%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A count moves from 1,200 to 1,320. By what percent did it change (use a minus sign for a drop)?"
},
{
"role": "assistant",
"content": "The change is 10%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0054054 | <|start|><|user|>
A 60-mile drive at a steady 45 mph takes how many minutes?<|eot|>
<|assistant|>
```python
distance = 60
speed = 45
minutes = distance / speed * 60 # 80.0
print(round(minutes))
```
Result = 80
80 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 60-mile drive at a steady 45 mph takes how many minutes?"
},
{
"role": "assistant",
"content": "```python\ndistance = 60\nspeed = 45\nminutes = distance / speed * 60 # 80.0\nprint(round(minutes))\n```\nResult = 80\n\n80 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "80", "printed": "80", "notation": null} |
nlprog_det-setting-0054055 | What average speed covers 138 miles in 3 hours?
distance = 138
hours = 3
speed = distance / hours # 46.0
print(round(speed))
The run gives 46, as expected.
The average speed is 46 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 61 | {"gold": "46", "printed": "46", "notation": null} |
nlprog_det-setting-0054056 | <|start|><|system|>
You are a precise assistant.<|eot|>
<|user|>
Filing fees are $45 per document. What do 12 filings cost?<|eot|>
<|assistant|>
```python
fee = 45
filings = 12
total = fee * filings # 540
print(total)
```
Executing it gives 540.
The filings cost $540 in all.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a precise assistant."
},
{
"role": "user",
"content": "Filing fees are $45 per document. What do 12 filings cost?"
},
{
"role": "assistant",
"content": "```python\nfee = 45\nfilings = 12\ntotal = fee * filings # 540\nprint(total)\n```\nExecuti... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "540", "printed": "540", "notation": null} |
nlprog_det-setting-0054057 | An attorney bills 8 hours at $180 per hour. What is the bill?
The computation:
```python
hours = 8
rate = 180
bill = hours * rate # 1440
print(f"{bill:.2f}")
```
The program prints: 1440.00
The bill is $1,440.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "1440.00", "printed": "1440.00", "notation": null} |
nlprog_det-setting-0054058 | Split $1,964 between Lena and Tariq in the ratio 1 to 3. What is Lena's share?
Program:
```python
total = 1964
parts_a = 1
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b) # 491
print(share_a)
```
Python prints: 491
Lena's share is $491. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "491", "printed": "491", "notation": null} |
nlprog_det-setting-0054059 | <|start|><|user|>
$1,000 is invested at 2% compounded yearly. What is it worth after 4 years?<|eot|>
<|assistant|>
It is worth $1,082.43.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "$1,000 is invested at 2% compounded yearly. What is it worth after 4 years?"
},
{
"role": "assistant",
"content": "It is worth $1,082.43."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "1082.43", "printed": "1082.43", "notation": null} |
nlprog_det-setting-0054060 | Revenue is $38,500 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?
```python
revenue = 38500
costs = 36000
profit = revenue - costs # 2500
margin = profit / revenue * 100 # 6.493506493506493
print(round(margin, 1))
```
Output:
6.5
Profit is 6.5% of revenue. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "6.5", "printed": "6.5", "notation": null} |
nlprog_det-setting-0054061 | Count the days between January 23, 2028 and February 13, 2028. There are 21 days between the two dates. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 26 | {"gold": "21", "printed": "21", "notation": null} |
nlprog_det-setting-0054062 | A library charges $0.25 per book per day late. What is the fine for 1 books that are 30 days late?
One way, in code:
```python
per_day = 0.25
days_late = 30
books = 1
fine = per_day * days_late * books # 7.5
print(f"{fine:.2f}")
```
Interpreter output — 7.50
$7.50 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "7.50", "printed": "7.50", "notation": null} |
nlprog_det-setting-0054064 | <|start|><|system|>
Functions:
{"name": "python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|>
<|user|>
Each storage box holds 12 files. How many boxes a... | chat | [
{
"role": "system",
"content": "Functions:\n{\"name\": \"python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}}"
},
{
... | nlprog_det | setting | original | null | deterministic | [] | [] | 207 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0054065 | The paralegal logged 2 hours at a rate of $410. How much is billed?
Python does the arithmetic:
```python
hours = 2
rate = 410
bill = hours * rate # 820
print(f"{bill:.2f}")
```
Execution prints: 820.00
The bill is $820.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "820.00", "printed": "820.00", "notation": null} |
nlprog_det-setting-0054066 | <|start|><|user|>
A service costs $25 a month or $276 a year. How much does the yearly plan save over 12 monthly payments?<|eot|>
<|assistant|>
```python
monthly = 25
yearly = 276
savings = monthly * 12 - yearly # 24
print(savings)
```
The run gives: 24
The annual plan saves $24.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A service costs $25 a month or $276 a year. How much does the yearly plan save over 12 monthly payments?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 25\nyearly = 276\nsavings = monthly * 12 - yearly # 24\nprint(savings)\n```\nThe run gives: 24\n\nTh... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0054067 | <|start|><|system|>
Tools (call with JSON):
[{"name": "eval_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
A meal costs $43.73. How... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"eval_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\... | nlprog_det | setting | original | null | deterministic | [] | [] | 229 | {"gold": "9.62", "printed": "9.62", "notation": null} |
nlprog_det-setting-0054068 | A kettle costs $120. It is 10% off. What is the sale price?
Here's the code.
```python
price = 120
discount = 10 / 100 # 0.1
sale_price = price * (1 - discount) # 108.0
print(f"{sale_price:.2f}")
```
The printout reads 108.00.
It costs $108.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "108.00", "printed": "108.00", "notation": null} |
nlprog_det-setting-0054069 | <|start|><|user|>
Starting with 1972 markers and using 5 per day, how many remain after 9 days?<|eot|>
<|assistant|>
1927 markers are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting with 1972 markers and using 5 per day, how many remain after 9 days?"
},
{
"role": "assistant",
"content": "1927 markers are left."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "1927", "printed": "1927", "notation": null} |
nlprog_det-setting-0054070 | A 6% increase is applied to $1,250 monthly rent. What is the new amount?
We write it as a program:
```python
rent = 1250
increase = 6 / 100 # 0.06
new_rent = rent * (1 + increase) # 1325.0
print(f"{new_rent:.2f}")
```
This prints 1325.00.
It rises to $1,325.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "1325.00", "printed": "1325.00", "notation": null} |
nlprog_det-setting-0054071 | From 2023 to 2059, how many years is that?
Set it up in Python:
```python
start_year = 2023
end_year = 2059
print(end_year - start_year)
```
Executing it gives: 36
That is 36 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0054072 | <|start|><|system|>
Answer in plain English.<|eot|>
<|user|>
2 claimants share a $18,000 settlement equally. What is each share?<|eot|>
<|assistant|>
```python
settlement = 18000
parties = 2
share = settlement // parties # 9000
print(share)
```
The run gives 9000.
Each party receives $9,000.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer in plain English."
},
{
"role": "user",
"content": "2 claimants share a $18,000 settlement equally. What is each share?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 18000\nparties = 2\nshare = settlement // parties # 9000\npri... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "9000", "printed": "9000", "notation": null} |
nlprog_det-setting-0054073 | A shift runs from 10:18 AM to 12:28 PM. How long is it in minutes?
Here is a short program for it.
```python
start = 10 * 60 + 18 # 618
end = 12 * 60 + 28 # 748
print(end - start)
```
Python prints 130, as expected.
It is 130 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "130", "printed": "130", "notation": null} |
nlprog_det-setting-0054074 | Rent of $2,200 goes up 4%. What is the new rent?
Here's the code.
```python
rent = 2200
increase = 4 / 100 # 0.04
new_rent = rent * (1 + increase) # 2288.0
print(f"{new_rent:.2f}")
```
# printed result: 2288.00
It rises to $2,288.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "2288.00", "printed": "2288.00", "notation": null} |
nlprog_det-setting-0054075 | <|start|><|user|>
Each of Zainab's walks burns 300 calories. How many calories over 5 walks?<|eot|>
<|assistant|>
```python
per_session = 300
sessions = 5
total = per_session * sessions # 1500
print(total)
```
The program prints 1500, as expected.
1500 calories in total.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each of Zainab's walks burns 300 calories. How many calories over 5 walks?"
},
{
"role": "assistant",
"content": "```python\nper_session = 300\nsessions = 5\ntotal = per_session * sessions # 1500\nprint(total)\n```\nThe program prints 1500, as expected.\n\n1500 cal... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "1500", "printed": "1500", "notation": null} |
nlprog_det-setting-0054076 | <|start|><|user|>
A pack of 25 badges sells for $575. What does each cost?<|eot|>
<|assistant|>
```python
total = 575
count = 25
per_item = total // count # 23
print(per_item)
```
Console output — 23
Each one costs $23.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A pack of 25 badges sells for $575. What does each cost?"
},
{
"role": "assistant",
"content": "```python\ntotal = 575\ncount = 25\nper_item = total // count # 23\nprint(per_item)\n```\nConsole output — 23\n\nEach one costs $23."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0054077 | The paralegal logged 1.5 hours at a rate of $225. How much is billed?
Code:
```python
hours = 1.5
rate = 225
bill = hours * rate # 337.5
print(f"{bill:.2f}")
```
Run result: 337.50
The bill is $337.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "337.50", "printed": "337.50", "notation": null} |
nlprog_det-setting-0054078 | A lease runs for 24 months at $3,250 per month. How much rent is paid over the whole term?
Set it up in Python:
```python
monthly_rent = 3250
months = 24
total = monthly_rent * months
print(total)
```
The printout reads 78000.
The rent over the term is $78,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "78000", "printed": "78000", "notation": null} |
nlprog_det-setting-0054079 | Convert 68.2 km to meters.
68,200 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 20 | {"gold": "68200", "printed": "68200", "notation": null} |
nlprog_det-setting-0054080 | <|start|><|user|>
Fiona and Amir share $3,731 in the ratio 3:4. How much does Fiona get?<|eot|>
<|assistant|>
```python
total = 3731
parts_a = 3
parts_b = 4
share_a = total * parts_a // (parts_a + parts_b) # 1599
print(share_a)
```
It outputs 1599.
Fiona's share is $1,599.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Fiona and Amir share $3,731 in the ratio 3:4. How much does Fiona get?"
},
{
"role": "assistant",
"content": "```python\ntotal = 3731\nparts_a = 3\nparts_b = 4\nshare_a = total * parts_a // (parts_a + parts_b) # 1599\nprint(share_a)\n```\nIt outputs 1599.\n\nFiona'... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "1599", "printed": "1599", "notation": null} |
nlprog_det-setting-0054081 | <|start|><|user|>
A meal costs $121.20. How much is a 15% tip?<|eot|>
<|assistant|>
```python
bill = 121.2
tip_rate = 15 / 100 # 0.15
tip = bill * tip_rate # 18.18
print(f"{tip:.2f}")
```
Python prints 18.18.
Leave $18.18.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A meal costs $121.20. How much is a 15% tip?"
},
{
"role": "assistant",
"content": "```python\nbill = 121.2\ntip_rate = 15 / 100 # 0.15\ntip = bill * tip_rate # 18.18\nprint(f\"{tip:.2f}\")\n```\nPython prints 18.18.\n\nLeave $18.18."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "18.18", "printed": "18.18", "notation": null} |
nlprog_det-setting-0054082 | On which weekday does March 27, 1999 fall?
Python:
```python
from datetime import date
hearing = date(1999, 3, 27) # datetime.date(1999, 3, 27)
print(hearing.strftime("%A"))
```
(Console output: Saturday)
It is a Saturday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "Saturday", "printed": "Saturday", "notation": null} |
nlprog_det-setting-0054083 | <|start|><|user|>
From 2015 to 2052, how many years is that?<|eot|>
<|assistant|>
```python
start_year = 2015
end_year = 2052
print(end_year - start_year)
```
(Execution result: 37)
That is 37 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From 2015 to 2052, how many years is that?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 2015\nend_year = 2052\nprint(end_year - start_year)\n```\n(Execution result: 37)\n\nThat is 37 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "37", "printed": "37", "notation": null} |
nlprog_det-setting-0054085 | Count 14 days forward from January 6, 2019. What date is that?
```python
from datetime import date, timedelta
start = date(2019, 1, 6) # datetime.date(2019, 1, 6)
end = start + timedelta(days=14) # datetime.date(2019, 1, 20)
print(end.isoformat())
```
stdout:
2019-01-20
The period ends on January 20, 2019. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "2019-01-20", "printed": "2019-01-20", "notation": null} |
nlprog_det-setting-0054086 | Which is cheaper per unit: 6 for $5.63 (A) or 30 for $23.77 (B)?
Python version:
pack_a = 5.63 / 6 # 0.9383333333333334
pack_b = 23.77 / 30 # 0.7923333333333333
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
# program output: B
B has the lower unit price. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0054087 | <|start|><|user|>
The statute was enacted in 2014. How many years had passed by 2033?<|eot|>
<|assistant|>
start_year = 2014
end_year = 2033
print(end_year - start_year)
# out: 19
19 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The statute was enacted in 2014. How many years had passed by 2033?"
},
{
"role": "assistant",
"content": " start_year = 2014\n end_year = 2033\n print(end_year - start_year)\n# out: 19\n\n19 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 59 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0054088 | A $120 dinner bill gets a 15% tip, and 4 people share the cost equally. What is each person's share?
Computing it:
bill = 120
tip_rate = 15 / 100 # 0.15
people = 4
each = bill * (1 + tip_rate) / people # 34.5
print(f"{each:.2f}")
# output: 34.50
The share is $34.50 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "34.50", "printed": "34.50", "notation": null} |
nlprog_det-setting-0054089 | <|start|><|user|>
477 files go into boxes of 15. How many boxes does that take?<|eot|>
<|assistant|>
```python
import math
files = 477
per_box = 15
boxes = math.ceil(files / per_box) # 32
print(boxes)
```
The program outputs: 32
32 boxes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "477 files go into boxes of 15. How many boxes does that take?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 477\nper_box = 15\nboxes = math.ceil(files / per_box) # 32\nprint(boxes)\n```\nThe program outputs: 32\n\n32 boxes are needed."
}
... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0054091 | A client paid a $7,500 retainer. The firm has billed 9 hours at $250 per hour. How much of the retainer is left?
Python version:
```python
retainer = 7500
hours = 9
rate = 250
left = retainer - hours * rate # 5250
print(left)
```
Printed result: 5250
The remaining balance is $5,250. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "5250", "printed": "5250", "notation": null} |
nlprog_det-setting-0054092 | Filing fees are $150 per document. What do 8 filings cost?
```python
fee = 150
filings = 8
total = fee * filings
print(total)
```
Interpreter output: 1200
The filings cost $1,200 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "1200", "printed": "1200", "notation": null} |
nlprog_det-setting-0054093 | Papers were served by mail on September 1, 2018. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date?
Computing it:
```python
from datetime import date, timedelta
served = date(2018, 9, 1) # datetime.date(2018, 9, 1)
response_days = 21
mail_days = 3
due = served + timedelta(da... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 175 | {"gold": "2018-09-25", "printed": "2018-09-25", "notation": null} |
nlprog_det-setting-0054094 | Prorate $1,500 of monthly rent for 11 days of a 31-day month.
Set it up in Python:
```python
rent = 1500
days_in_month = 31
days_occupied = 11
prorated = rent * days_occupied / days_in_month # 532.258064516129
print(f"{prorated:.2f}")
```
The code prints 532.26.
The tenant owes $532.26. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "532.26", "printed": "532.26", "notation": null} |
nlprog_det-setting-0054096 | <|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": "code_runner", "description": "Executes a Python program and returns its output.... | 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\": \"code_runner\", \"descript... | nlprog_det | setting | original | null | deterministic | [] | [] | 308 | {"gold": "18 each, 3 left over", "printed": "18 each, 3 left over", "notation": null} |
nlprog_det-setting-0054097 | Revenue is $9,000 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)?
In Python:
```python
revenue = 9000
costs = 4000
profit = revenue - costs # 5000
margin = profit / revenue * 100 # 55.55555555555556
print(round(margin, 1))
```
The run gives 55.6, as expected.
Profit is 55.6% o... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "55.6", "printed": "55.6", "notation": null} |
nlprog_det-setting-0054098 | 12 boxes hold 25 desk lamps each. After 1 are handed out, how many are left?
Here's the code.
```python
boxes = 12
per_box = 25
given_away = 1
left = boxes * per_box - given_away # 299
print(left)
```
The program outputs 299.
That leaves 299 desk lamps. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "299", "printed": "299", "notation": null} |
nlprog_det-setting-0054099 | Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 55 hours?
Computation in Python:
```python
rate = 20.0
hours = 55
regular = 40 * rate # 800.0
overtime = (hours - 40) * rate * 1.5 # 450.0
pay = regular + overtime # 1250.0
print(f"{pay:.2f}")
```
Run it and it prints 1250.00.
A... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 150 | {"gold": "1250.00", "printed": "1250.00", "notation": null} |
nlprog_det-setting-0054100 | Convert 1 h 5 min (the length of a meeting) to minutes.
Let's compute it with Python.
```python
hours = 1
minutes = 5
total_minutes = hours * 60 + minutes # 65
print(total_minutes)
```
# program output: 65
That is 65 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "65", "printed": "65", "notation": null} |
nlprog_det-setting-0054101 | A 20 × 6 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?
Written as code:
```python
import math
length = 20
width = 6
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 120
print(tiles)
```
Python prints 120.
120 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "120", "printed": "120", "notation": null} |
nlprog_det-setting-0054102 | How many of 35 members form a majority (more than half)?
Code:
```python
members = 35
majority = members // 2 + 1 # 18
print(majority)
```
Console:
18
18 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 70 | {"gold": "18", "printed": "18", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.