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-0065866 | How many meters are in 91 kilometers?
Computing it:
```python
km = 91
meters = km * 1000 # 91000
print(round(meters))
```
# program output: 91000
That is 91,000 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "91000", "printed": "91000", "notation": null} |
nlprog_det-setting-0065867 | The landlord deducts $75 from a $1,500 deposit. What is returned to the tenant?
A short script:
```python
deposit = 1500
deductions = [75]
refund = deposit - sum(deductions) # 1425
print(refund)
```
Execution prints: 1425
The refund is $1,425. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "1425", "printed": "1425", "notation": null} |
nlprog_det-setting-0065868 | <|start|><|user|>
Pack A has 12 items for $9.63. Pack B has 15 items for $27.61. Which has the lower price per item?<|eot|>
<|assistant|>
```python
pack_a = 9.63 / 12 # 0.8025000000000001
pack_b = 27.61 / 15 # 1.8406666666666667
cheaper = "A" if pack_a < pack_b else "B" # 'A'
print(cheaper)
```
Running it prints: A
... | chat | [
{
"role": "user",
"content": "Pack A has 12 items for $9.63. Pack B has 15 items for $27.61. Which has the lower price per item?"
},
{
"role": "assistant",
"content": "```python\npack_a = 9.63 / 12 # 0.8025000000000001\npack_b = 27.61 / 15 # 1.8406666666666667\ncheaper = \"A\" if pack_a < pack... | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0065869 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}, {"name": "interpreter", "description": "A Python interpreter. Returns standard output.", "par... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}, {\"name\": \"interpreter\", \"description\... | nlprog_det | setting | original | null | deterministic | [] | [] | 298 | {"gold": "200", "printed": "200", "notation": null} |
nlprog_det-setting-0065870 | One can of paint covers 300 square feet. How many cans are needed for 732 square feet of wall?
Here is a short program for it.
```python
import math
area = 732
coverage = 300
cans = math.ceil(area / coverage) # 3
print(cans)
```
# result: 3
3 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0065871 | <|start|><|user|>
How many weekdays (Monday to Friday) fall after July 2, 2022 up to and including August 5, 2022?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2022, 7, 2)
end = date(2022, 8, 5)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).w... | chat | [
{
"role": "user",
"content": "How many weekdays (Monday to Friday) fall after July 2, 2022 up to and including August 5, 2022?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2022, 7, 2)\nend = date(2022, 8, 5)\ncount = 0\nfor k in range(1, (e... | nlprog_det | setting | original | null | deterministic | [] | [] | 150 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0065872 | With 5 rows of 23 chairs and 27 empty chairs, how many chairs are taken?
We can compute it in Python.
rows = 5
per_row = 23
empty = 27
seated = rows * per_row - empty
print(seated)
Running this gives: 88
88 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "88", "printed": "88", "notation": null} |
nlprog_det-setting-0065873 | After an initial $3,000, the remainder of a $30,000 grant is paid in 6 equal parts. What is each part?
We write it as a program:
```python
grant = 30000
up_front = 3000
installments = 6
each = (grant - up_front) / installments # 4500.0
print(f"{each:.2f}")
```
It prints: 4500.00
$4,500.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "4500.00", "printed": "4500.00", "notation": null} |
nlprog_det-setting-0065874 | <|start|><|user|>
A client paid a $2,500 retainer. The firm has billed 9 hours at $275 per hour. How much of the retainer is left?<|eot|>
<|assistant|>
The remaining balance is $25.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A client paid a $2,500 retainer. The firm has billed 9 hours at $275 per hour. How much of the retainer is left?"
},
{
"role": "assistant",
"content": "The remaining balance is $25."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 49 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0065875 | What does $10,000 grow to in 4 years at 3% annual compounding?
Python makes this quick:
principal = 10000
rate = 3 / 100
years = 4
value = principal * (1 + rate) ** years
print(f"{value:.2f}")
(Result: 11255.09)
The balance is $11,255.09. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "11255.09", "printed": "11255.09", "notation": null} |
nlprog_det-setting-0065876 | How many minutes pass from 8:02 AM to 10:00 AM on the same day? 118 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 23 | {"gold": "118", "printed": "118", "notation": null} |
nlprog_det-setting-0065877 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
{"name": "run_python", "description": "Executes a Python program and returns its 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\": \"run_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source cod... | nlprog_det | setting | original | null | deterministic | [] | [] | 293 | {"gold": "5000", "printed": "5000", "notation": null} |
nlprog_det-setting-0065878 | A party has 30 days to respond to a motion served on May 7, 2024, with 3 days added because service was by mail. When is the response due?
It is due June 9, 2024. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "2024-06-09", "printed": "2024-06-09", "notation": null} |
nlprog_det-setting-0065879 | Split $6,111 between Nadia and Leon in the ratio 3 to 4. What is Nadia's share?
Let the code do the arithmetic:
```python
total = 6111
parts_a = 3
parts_b = 4
share_a = total * parts_a // (parts_a + parts_b) # 2619
print(share_a)
```
Executed, it shows: 2619
Nadia gets $2,619. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "2619", "printed": "2619", "notation": null} |
nlprog_det-setting-0065880 | <|start|><|user|>
If a 4-year limitations period starts on October 3, 2017, when does it end?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2017, 10, 3) # datetime.date(2017, 10, 3)
years = 4
expires = accrued.replace(year=accrued.year + years) # datetime.date(2021, 10, 3)
print(expires.isof... | chat | [
{
"role": "user",
"content": "If a 4-year limitations period starts on October 3, 2017, when does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrued = date(2017, 10, 3) # datetime.date(2017, 10, 3)\nyears = 4\nexpires = accrued.replace(year=accrued.year... | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "2021-10-03", "printed": "2021-10-03", "notation": null} |
nlprog_det-setting-0065881 | A $2,000 security deposit has deductions of $75, $85 and $75. How much is refunded?
In code:
```python
deposit = 2000
deductions = [75, 85, 75]
refund = deposit - sum(deductions) # 1765
print(refund)
```
Printed: 1765
The refund is $1,765. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "1765", "printed": "1765", "notation": null} |
nlprog_det-setting-0065882 | <|start|><|system|>
Functions:
{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}
{"name": "run_python", "description": "Evaluates Python and returns the... | chat | [
{
"role": "system",
"content": "Functions:\n{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"target\"]}}\n{\"name\": ... | nlprog_det | setting | original | null | deterministic | [] | [] | 301 | {"gold": "519", "printed": "519", "notation": null} |
nlprog_det-setting-0065883 | <|start|><|user|>
A lawyer's fee is 40% of a $12,000 recovery. How large is the fee?<|eot|>
<|assistant|>
```python
recovery = 12000
rate = 40 / 100 # 0.4
fee = recovery * rate # 4800.0
print(f"{fee:.2f}")
```
(Printed result: 4800.00)
The fee is $4,800.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lawyer's fee is 40% of a $12,000 recovery. How large is the fee?"
},
{
"role": "assistant",
"content": "```python\nrecovery = 12000\nrate = 40 / 100 # 0.4\nfee = recovery * rate # 4800.0\nprint(f\"{fee:.2f}\")\n```\n(Printed result: 4800.00)\n\nThe fee is $4,800... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "4800.00", "printed": "4800.00", "notation": null} |
nlprog_det-setting-0065884 | <|start|><|user|>
Someone works 16 hours at $15.82 per hour. What are the earnings?<|eot|>
<|assistant|>
rate = 15.82
hours = 16
earnings = rate * hours # 253.12
print(f"{earnings:.2f}")
Program output: 253.12
That earns $253.12.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Someone works 16 hours at $15.82 per hour. What are the earnings?"
},
{
"role": "assistant",
"content": " rate = 15.82\n hours = 16\n earnings = rate * hours # 253.12\n print(f\"{earnings:.2f}\")\nProgram output: 253.12\n\nThat earns $253.12."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "253.12", "printed": "253.12", "notation": null} |
nlprog_det-setting-0065885 | A shift runs from 7:19 AM to 10:17 AM. How long is it in minutes?
```python
start = 7 * 60 + 19
end = 10 * 60 + 17
print(end - start)
```
Execution result: 178
It is 178 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "178", "printed": "178", "notation": null} |
nlprog_det-setting-0065887 | A 23 lb package ships at $10 base plus $1.50/lb. What is the charge?
Script:
```python
base = 10
per_pound = 1.5
weight = 23
cost = base + per_pound * weight # 44.5
print(f"{cost:.2f}")
```
Run it and it prints 44.50.
Shipping costs $44.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "44.50", "printed": "44.50", "notation": null} |
nlprog_det-setting-0065888 | <|start|><|user|>
Notice was given on June 18, 2021. The notice period is 14 days. When does it run out?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2021, 6, 18) # datetime.date(2021, 6, 18)
end = start + timedelta(days=14) # datetime.date(2021, 7, 2)
print(end.isoformat())
```
Ru... | chat | [
{
"role": "user",
"content": "Notice was given on June 18, 2021. The notice period is 14 days. When does it run out?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2021, 6, 18) # datetime.date(2021, 6, 18)\nend = start + timedelta(days=14) ... | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "2021-07-02", "printed": "2021-07-02", "notation": null} |
nlprog_det-setting-0065889 | Under a 35% contingency agreement, what fee is owed on a $12,000 award?
In code:
```python
recovery = 12000
rate = 35 / 100 # 0.35
fee = recovery * rate # 4200.0
print(f"{fee:.2f}")
```
Python prints 4200.00, as expected.
The fee is $4,200.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "4200.00", "printed": "4200.00", "notation": null} |
nlprog_det-setting-0065890 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "interpreter", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"interpreter\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python sourc... | nlprog_det | setting | original | null | deterministic | [] | [] | 224 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0065891 | <|start|><|system|>
Answer in plain English.<|eot|>
<|user|>
How many meters are in 59.1 kilometers?<|eot|>
<|assistant|>
```python
km = 59.1
meters = km * 1000 # 59100.0
print(round(meters))
```
Run result: 59100
That is 59,100 meters.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer in plain English."
},
{
"role": "user",
"content": "How many meters are in 59.1 kilometers?"
},
{
"role": "assistant",
"content": "```python\nkm = 59.1\nmeters = km * 1000 # 59100.0\nprint(round(meters))\n```\nRun result: 59100\n\nThat is 59,10... | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "59100", "printed": "59100", "notation": null} |
nlprog_det-setting-0065892 | <|start|><|system|>
Tools you may use:
{"name": "calculator", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}
{"name": "business_days", "description": "Count ... | chat | [
{
"role": "system",
"content": "Tools you may use:\n{\"name\": \"calculator\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"snippe... | nlprog_det | setting | original | null | deterministic | [] | [] | 369 | {"gold": "9840", "printed": "9840", "notation": null} |
nlprog_det-setting-0065893 | <|start|><|user|>
On which weekday does May 1, 1997 fall?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(1997, 5, 1) # datetime.date(1997, 5, 1)
print(hearing.strftime("%A"))
```
Output:
Thursday
May 1, 1997 is a Thursday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "On which weekday does May 1, 1997 fall?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(1997, 5, 1) # datetime.date(1997, 5, 1)\nprint(hearing.strftime(\"%A\"))\n```\nOutput:\nThursday\n\nMay 1, 1997 is a Thursday."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "Thursday", "printed": "Thursday", "notation": null} |
nlprog_det-setting-0065894 | The meal allowance is $74 per day. What is it for 8 days?
Python makes this quick:
```python
days = 8
meal_rate = 74
total = days * meal_rate # 592
print(total)
```
Executing it gives 592, as expected.
That comes to $592. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "592", "printed": "592", "notation": null} |
nlprog_det-setting-0065895 | 3 friends split a $180 bill plus a 18% tip evenly. How much does each pay?
Python, step by step:
```python
bill = 180
tip_rate = 18 / 100 # 0.18
people = 3
each = bill * (1 + tip_rate) / people # 70.8
print(f"{each:.2f}")
```
This prints 70.80.
The share is $70.80 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "70.80", "printed": "70.80", "notation": null} |
nlprog_det-setting-0065896 | Olga and Sami share $7,152 in the ratio 3:5. How much does Olga get?
Let's compute it with Python.
```python
total = 7152
parts_a = 3
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 2682
print(share_a)
```
Running it prints 2682.
Olga gets $2,682. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "2682", "printed": "2682", "notation": null} |
nlprog_det-setting-0065897 | <|start|><|user|>
How many meters are in 43.2 kilometers?<|eot|>
<|assistant|>
```python
km = 43.2
meters = km * 1000
print(round(meters))
```
The run gives 43200.
That is 43,200 meters.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many meters are in 43.2 kilometers?"
},
{
"role": "assistant",
"content": "```python\nkm = 43.2\nmeters = km * 1000\nprint(round(meters))\n```\nThe run gives 43200.\n\nThat is 43,200 meters."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "43200", "printed": "43200", "notation": null} |
nlprog_det-setting-0065898 | How many of 42 members form a majority (more than half)?
Here is a short program for it.
```python
members = 42
majority = members // 2 + 1
print(majority)
```
Run it and it prints 22.
That is 22 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0065899 | Attendance was 29 out of 50. Express it as a percent.
58.0% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 24 | {"gold": "58.0", "printed": "58.0", "notation": null} |
nlprog_det-setting-0065900 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}
{"name": "translate", "description": "Tra... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\":... | nlprog_det | setting | original | null | deterministic | [] | [] | 339 | {"gold": "1097.60", "printed": "1097.60", "notation": null} |
nlprog_det-setting-0065901 | Fixed costs are $4,000. Each unit sells for $25 and costs $15 to make. How many units must be sold to break even?
Python code:
import math
fixed = 4000
price = 25
variable = 15
units = math.ceil(fixed / (price - variable)) # 400
print(units)
Run result — 400
Break-even is 400 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "400", "printed": "400", "notation": null} |
nlprog_det-setting-0065902 | <|start|><|system|>
You have access to these functions:
{"name": "business_days", "description": "Count business days between two dates.", "parameters": {"type": "object", "properties": {"start": {"type": "string"}, "end": {"type": "string"}}, "required": ["start", "end"]}}
{"name": "math_engine", "description": "Evalu... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"business_days\", \"description\": \"Count business days between two dates.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"string\"}, \"end\": {\"type\": \"string\"}}, \"required\": [\"start\... | nlprog_det | setting | original | null | deterministic | [] | [] | 369 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0065903 | What is the total rent on a 18-month lease at $975 a month?
In total, $17,550 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "17550", "printed": "17550", "notation": null} |
nlprog_det-setting-0065904 | How many minutes pass from 9:48 AM to 10:52 AM on the same day?
Set it up in Python:
```python
start = 9 * 60 + 48 # 588
end = 10 * 60 + 52 # 652
print(end - start)
```
On running, it outputs: 64
It is 64 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "64", "printed": "64", "notation": null} |
nlprog_det-setting-0065905 | A penalty of $50 a day accrues, capped at $1,000. What is owed after 37 days?
A few lines of Python do it:
```python
per_day = 50
days = 37
cap = 1000
fine = min(per_day * days, cap) # 1000
print(fine)
```
The script prints 1000, as expected.
The fine is $1,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0065906 | Printing costs 10 cents a page. What does it cost to print 36 copies of a 55-page handout?
A short script:
```python
pages = 55
copies = 36
cost_per_page = 0.1
cost = pages * copies * cost_per_page # 198.0
print(f"{cost:.2f}")
```
That prints: 198.00
Printing costs $198.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "198.00", "printed": "198.00", "notation": null} |
nlprog_det-setting-0065907 | <|start|><|user|>
A water bill is $12 plus $4.20 per thousand gallons beyond the first 3 thousand. What is the bill for 5 thousand gallons?<|eot|>
<|assistant|>
$20.40 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A water bill is $12 plus $4.20 per thousand gallons beyond the first 3 thousand. What is the bill for 5 thousand gallons?"
},
{
"role": "assistant",
"content": "$20.40 is owed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "20.40", "printed": "20.40", "notation": null} |
nlprog_det-setting-0065908 | Zainab's scores were 61, 70, 81, 74 and 79. What is the average score?
Code:
```python
scores = [61, 70, 81, 74, 79]
average = sum(scores) // len(scores) # 73
print(average)
```
On running, it outputs: 73
The average score is 73. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "73", "printed": "73", "notation": null} |
nlprog_det-setting-0065909 | 4 friends split a $180 bill plus a 18% tip evenly. How much does each pay?
Computing it:
bill = 180
tip_rate = 18 / 100 # 0.18
people = 4
each = bill * (1 + tip_rate) / people # 53.099999999999994
print(f"{each:.2f}")
The program prints: 53.10
The share is $53.10 each. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "53.10", "printed": "53.10", "notation": null} |
nlprog_det-setting-0065910 | Wen lends $12,000 at 5% simple interest per year for 5 years. How much interest is earned?
Set it up in Python:
principal = 12000
rate = 5 / 100 # 0.05
years = 5
interest = principal * rate * years # 3000.0
print(f"{interest:.2f}")
Run result: 3000.00
The interest is $3,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "3000.00", "printed": "3000.00", "notation": null} |
nlprog_det-setting-0065911 | <|start|><|user|>
How many whole days and leftover hours are in 238 hours?<|eot|>
<|assistant|>
hours = 238
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
When run, it prints 9 days and 22 hours.
That is 9 days and 22 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many whole days and leftover hours are in 238 hours?"
},
{
"role": "assistant",
"content": " hours = 238\n days, rest = divmod(hours, 24)\n print(f\"{days} days and {rest} hours\")\nWhen run, it prints 9 days and 22 hours.\n\nThat is 9 days and 22 hours... | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "9 days and 22 hours", "printed": "9 days and 22 hours", "notation": null} |
nlprog_det-setting-0065912 | <|start|><|user|>
A customer buys 2 clipboards at $7 each, 1 desk lamps at $22 each and pays with $50. How much change is due?<|eot|>
<|assistant|>
$14 comes back.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A customer buys 2 clipboards at $7 each, 1 desk lamps at $22 each and pays with $50. How much change is due?"
},
{
"role": "assistant",
"content": "$14 comes back."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 50 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0065913 | At $26.15 an hour, what does 12 hours of work pay?
Code:
rate = 26.15
hours = 12
earnings = rate * hours
print(f"{earnings:.2f}")
Printed:
313.80
The pay is $313.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 73 | {"gold": "313.80", "printed": "313.80", "notation": null} |
nlprog_det-setting-0065914 | <|start|><|user|>
A count moves from 800 to 400. By what percent did it change (use a minus sign for a drop)?<|eot|>
<|assistant|>
The change is -50%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A count moves from 800 to 400. By what percent did it change (use a minus sign for a drop)?"
},
{
"role": "assistant",
"content": "The change is -50%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "-50", "printed": "-50", "notation": null} |
nlprog_det-setting-0065915 | Ines earns a 6% commission on $42,929 of sales. What is the commission?
The Python version:
```python
sales = 42929
rate = 6 / 100 # 0.06
commission = sales * rate # 2575.74
print(f"{commission:.2f}")
```
# stdout: 2575.74
Ines earns $2,575.74. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "2575.74", "printed": "2575.74", "notation": null} |
nlprog_det-setting-0065916 | <|start|><|user|>
What percentage of $8,000 is $5,400?<|eot|>
<|assistant|>
```python
budget = 8000
spent = 5400
percent = spent / budget * 100 # 67.5
print(round(percent, 1))
```
(Printed: 67.5)
67.5% has been spent.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What percentage of $8,000 is $5,400?"
},
{
"role": "assistant",
"content": "```python\nbudget = 8000\nspent = 5400\npercent = spent / budget * 100 # 67.5\nprint(round(percent, 1))\n```\n(Printed: 67.5)\n\n67.5% has been spent."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "67.5", "printed": "67.5", "notation": null} |
nlprog_det-setting-0065917 | <|start|><|user|>
Someone works 16 hours at $22.35 per hour. What are the earnings?<|eot|>
<|assistant|>
rate = 22.35
hours = 16
earnings = rate * hours # 357.6
print(f"{earnings:.2f}")
It prints 357.60, as expected.
That earns $357.60.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Someone works 16 hours at $22.35 per hour. What are the earnings?"
},
{
"role": "assistant",
"content": " rate = 22.35\n hours = 16\n earnings = rate * hours # 357.6\n print(f\"{earnings:.2f}\")\nIt prints 357.60, as expected.\n\nThat earns $357.60."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "357.60", "printed": "357.60", "notation": null} |
nlprog_det-setting-0065918 | <|start|><|user|>
Split $5,040 between Elena and Abel in the ratio 3 to 5. What is Elena's share?<|eot|>
<|assistant|>
```python
total = 5040
parts_a = 3
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 1890
print(share_a)
```
The program outputs 1890.
Elena's share is $1,890.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Split $5,040 between Elena and Abel in the ratio 3 to 5. What is Elena's share?"
},
{
"role": "assistant",
"content": "```python\ntotal = 5040\nparts_a = 3\nparts_b = 5\nshare_a = total * parts_a // (parts_a + parts_b) # 1890\nprint(share_a)\n```\nThe program outpu... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "1890", "printed": "1890", "notation": null} |
nlprog_det-setting-0065919 | <|start|><|system|>
Avoid unnecessary detail.<|eot|>
<|user|>
A 225-page report must be reviewed in 9 days. How many pages a day is that, evenly?<|eot|>
<|assistant|>
```python
pages = 225
days = 9
per_day = pages // days # 25
print(per_day)
```
Output of the run — 25
25 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Avoid unnecessary detail."
},
{
"role": "user",
"content": "A 225-page report must be reviewed in 9 days. How many pages a day is that, evenly?"
},
{
"role": "assistant",
"content": "```python\npages = 225\ndays = 9\nper_day = pages // days # 25\nprin... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0065920 | <|start|><|user|>
A trial runs from August 27, 2019 to September 15, 2019, counting both days. How many calendar days is that?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2019, 8, 27) # datetime.date(2019, 8, 27)
last = date(2019, 9, 15) # datetime.date(2019, 9, 15)
days = (last - first).day... | chat | [
{
"role": "user",
"content": "A trial runs from August 27, 2019 to September 15, 2019, counting both days. How many calendar days is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2019, 8, 27) # datetime.date(2019, 8, 27)\nlast = date(2019, 9, 15... | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0065921 | <|start|><|user|>
Monthly: $25. Annual: $252. What is saved per year by paying annually?<|eot|>
<|assistant|>
```python
monthly = 25
yearly = 252
savings = monthly * 12 - yearly # 48
print(savings)
```
Python prints: 48
The annual plan saves $48.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Monthly: $25. Annual: $252. What is saved per year by paying annually?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 25\nyearly = 252\nsavings = monthly * 12 - yearly # 48\nprint(savings)\n```\nPython prints: 48\n\nThe annual plan saves $48."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0065922 | Convert 27 km to meters.
Python code:
```python
km = 27
meters = km * 1000
print(round(meters))
```
Result = 27000
That is 27,000 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 69 | {"gold": "27000", "printed": "27000", "notation": null} |
nlprog_det-setting-0065923 | A water bill is $18 plus $4.75 per thousand gallons beyond the first 2 thousand. What is the bill for 16 thousand gallons?
The Python version:
```python
base = 18
rate = 4.75
used = 16
free = 2
bill = base + rate * max(0, used - free)
print(f"{bill:.2f}")
```
# result: 84.50
$84.50 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "84.50", "printed": "84.50", "notation": null} |
nlprog_det-setting-0065924 | What percentage of $5,000 is $2,700?
In Python:
```python
budget = 5000
spent = 2700
percent = spent / budget * 100 # 54.0
print(round(percent, 1))
```
(Program output: 54.0)
54.0% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "54.0", "printed": "54.0", "notation": null} |
nlprog_det-setting-0065925 | Water costs $18 a month plus $4.20 for each 1,000 gallons over 3,000. What is owed for 9,000 gallons?
Programmatically:
```python
base = 18
rate = 4.2
used = 9
free = 3
bill = base + rate * max(0, used - free) # 43.2
print(f"{bill:.2f}")
```
Console output — 43.20
The bill is $43.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "43.20", "printed": "43.20", "notation": null} |
nlprog_det-setting-0065926 | 4 swims at 200 calories each burn how many calories in total?
A few lines of Python do it:
```python
per_session = 200
sessions = 4
total = per_session * sessions
print(total)
```
Execution result — 800
That burns 800 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "800", "printed": "800", "notation": null} |
nlprog_det-setting-0065927 | $5,000 is invested at 3% compounded yearly. What is it worth after 3 years?
We can compute it in Python.
```python
principal = 5000
rate = 3 / 100
years = 3
value = principal * (1 + rate) ** years
print(f"{value:.2f}")
```
This prints 5463.64.
The balance is $5,463.64. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "5463.64", "printed": "5463.64", "notation": null} |
nlprog_det-setting-0065928 | <|start|><|user|>
Yusuf buys 10 boxes of 6 rulers each and gives away 16 rulers. How many rulers are left?<|eot|>
<|assistant|>
```python
boxes = 10
per_box = 6
given_away = 16
left = boxes * per_box - given_away # 44
print(left)
```
Execution result: 44
That leaves 44 rulers.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Yusuf buys 10 boxes of 6 rulers each and gives away 16 rulers. How many rulers are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 10\nper_box = 6\ngiven_away = 16\nleft = boxes * per_box - given_away # 44\nprint(left)\n```\nExecution result: 44\n\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "44", "printed": "44", "notation": null} |
nlprog_det-setting-0065930 | With 21 rows of 10 chairs and 33 empty chairs, how many chairs are taken?
```python
rows = 21
per_row = 10
empty = 33
seated = rows * per_row - empty # 177
print(seated)
```
Python prints 177.
177 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "177", "printed": "177", "notation": null} |
nlprog_det-setting-0065931 | With 10% off, what does a $75 desk lamp cost?
The sale price is $67.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "67.50", "printed": "67.50", "notation": null} |
nlprog_det-setting-0065932 | How many units at $15 each (variable cost $10) cover $4,000 of fixed costs?
```python
import math
fixed = 4000
price = 15
variable = 10
units = math.ceil(fixed / (price - variable)) # 800
print(units)
```
That prints 800.
800 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "800", "printed": "800", "notation": null} |
nlprog_det-setting-0065933 | A film lasted 3 hours and 33 minutes. How many minutes is that?
```python
hours = 3
minutes = 33
total_minutes = hours * 60 + minutes # 213
print(total_minutes)
```
The program prints 213.
That is 213 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "213", "printed": "213", "notation": null} |
nlprog_det-setting-0065934 | How many 1-foot square tiles cover a 15 ft by 10 ft floor (round up)?
150 tiles are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "150", "printed": "150", "notation": null} |
nlprog_det-setting-0065935 | <|start|><|system|>
You are an assistant for a small office.<|eot|>
<|user|>
A 225-mile drive at a steady 50 mph takes how many minutes?<|eot|>
<|assistant|>
270 minutes.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are an assistant for a small office."
},
{
"role": "user",
"content": "A 225-mile drive at a steady 50 mph takes how many minutes?"
},
{
"role": "assistant",
"content": "270 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "270", "printed": "270", "notation": null} |
nlprog_det-setting-0065936 | <|start|><|user|>
How many of 111 votes make 75% (round up)?<|eot|>
<|assistant|>
```python
import math
voters = 111
needed = math.ceil(voters * 75 / 100) # 84
print(needed)
```
Run it and it prints 84.
84 votes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many of 111 votes make 75% (round up)?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 111\nneeded = math.ceil(voters * 75 / 100) # 84\nprint(needed)\n```\nRun it and it prints 84.\n\n84 votes are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "84", "printed": "84", "notation": null} |
nlprog_det-setting-0065937 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "convert_units"... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}... | nlprog_det | setting | original | null | deterministic | [] | [] | 310 | {"gold": "69400", "printed": "69400", "notation": null} |
nlprog_det-setting-0065939 | A 92-page report must be reviewed in 4 days. How many pages a day is that, evenly?
Here is the program.
```python
pages = 92
days = 4
per_day = pages // days # 23
print(per_day)
```
Run result: 23
That is 23 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0065940 | <|start|><|user|>
How many units at $40 each (variable cost $32) cover $2,500 of fixed costs?<|eot|>
<|assistant|>
Break-even is 313 units.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many units at $40 each (variable cost $32) cover $2,500 of fixed costs?"
},
{
"role": "assistant",
"content": "Break-even is 313 units."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "313", "printed": "313", "notation": null} |
nlprog_det-setting-0065941 | Papers were served by mail on March 23, 2020. A response is due 14 days after service, plus 3 extra days for mailing. What is the due date?
from datetime import date, timedelta
served = date(2020, 3, 23)
response_days = 14
mail_days = 3
due = served + timedelta(days=response_days + mail_days)
p... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "2020-04-09", "printed": "2020-04-09", "notation": null} |
nlprog_det-setting-0065942 | From a $10,000 retainer, 13 hours at $150/hour have been drawn. What remains?
Coded up:
```python
retainer = 10000
hours = 13
rate = 150
left = retainer - hours * rate # 8050
print(left)
```
Python prints: 8050
The remaining balance is $8,050. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "8050", "printed": "8050", "notation": null} |
nlprog_det-setting-0065943 | <|start|><|user|>
A $6,000 loan carries 5% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|>
<|assistant|>
```python
principal = 6000
annual_rate = 5 / 100 # 0.05
months = 12
interest = principal * annual_rate * months / 12 # 300.0
payment... | chat | [
{
"role": "user",
"content": "A $6,000 loan carries 5% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 6000\nannual_rate = 5 / 100 # 0.05\nmonths = 12\ninteres... | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "525.00", "printed": "525.00", "notation": null} |
nlprog_det-setting-0065945 | Goods bought on May 5, 2023 carry a 12-month warranty. When does it expire?
The program:
```python
from datetime import date
start = date(2023, 5, 5)
months = 12
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
# out: 2024-0... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "2024-05-05", "printed": "2024-05-05", "notation": null} |
nlprog_det-setting-0065946 | A pack of 12 chairs sells for $408. What does each cost?
Here's the code.
```python
total = 408
count = 12
per_item = total // count # 34
print(per_item)
```
When run, it prints: 34
The unit price is $34. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "34", "printed": "34", "notation": null} |
nlprog_det-setting-0065947 | A 4% increase is applied to $1,500 monthly rent. What is the new amount?
Let the code do the arithmetic:
rent = 1500
increase = 4 / 100 # 0.04
new_rent = rent * (1 + increase) # 1560.0
print(f"{new_rent:.2f}")
Printed: 1560.00
It rises to $1,560.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "1560.00", "printed": "1560.00", "notation": null} |
nlprog_det-setting-0065948 | <|start|><|user|>
Of a $8,000 budget, $4,600 has been spent. What percent is that?<|eot|>
<|assistant|>
```python
budget = 8000
spent = 4600
percent = spent / budget * 100 # 57.49999999999999
print(round(percent, 1))
```
(Printed result: 57.5)
57.5% has been spent.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Of a $8,000 budget, $4,600 has been spent. What percent is that?"
},
{
"role": "assistant",
"content": "```python\nbudget = 8000\nspent = 4600\npercent = spent / budget * 100 # 57.49999999999999\nprint(round(percent, 1))\n```\n(Printed result: 57.5)\n\n57.5% has be... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "57.5", "printed": "57.5", "notation": null} |
nlprog_det-setting-0065949 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "compute", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
A 14-day notice peri... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"compute\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require... | nlprog_det | setting | original | null | deterministic | [] | [] | 234 | {"gold": "2021-11-20", "printed": "2021-11-20", "notation": null} |
nlprog_det-setting-0065950 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
{"name": "math_engine", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|>
<|user|>
Le... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"math_engine\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source cod... | nlprog_det | setting | original | null | deterministic | [] | [] | 223 | {"gold": "91", "printed": "91", "notation": null} |
nlprog_det-setting-0065951 | <|start|><|user|>
Papers were served by mail on March 3, 2024. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
served = date(2024, 3, 3) # datetime.date(2024, 3, 3)
response_days = 21
mail_days = 3
due = s... | chat | [
{
"role": "user",
"content": "Papers were served by mail on March 3, 2024. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nserved = date(2024, 3, 3) # datetime.d... | nlprog_det | setting | original | null | deterministic | [] | [] | 179 | {"gold": "2024-03-27", "printed": "2024-03-27", "notation": null} |
nlprog_det-setting-0065952 | Fixed costs are $2,500. Each unit sells for $40 and costs $34 to make. How many units must be sold to break even?
Translated to Python:
```python
import math
fixed = 2500
price = 40
variable = 34
units = math.ceil(fixed / (price - variable)) # 417
print(units)
```
stdout: 417
Break-even is 417 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "417", "printed": "417", "notation": null} |
nlprog_det-setting-0065953 | 3 clients win $30,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?
Python makes this quick:
```python
award = 30000
fee = award * 25 / 100 # 7500.0
remaining = award - fee # 22500.0
per_client = remaining / 3 # 7500.0
print(f"{per_client:.2f}")
```
It prints 7500.00.
Each sh... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 136 | {"gold": "7500.00", "printed": "7500.00", "notation": null} |
nlprog_det-setting-0065954 | Equal monthly payments repay $3,600 plus 6% simple yearly interest over 12 months. How large is a payment?
Python does the arithmetic:
```python
principal = 3600
annual_rate = 6 / 100 # 0.06
months = 12
interest = principal * annual_rate * months / 12 # 216.0
payment = (principal + interest) / months # 318.0
print(... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "318.00", "printed": "318.00", "notation": null} |
nlprog_det-setting-0065955 | What simple interest does $1,000 earn at 5% a year over 6 years?
Python, step by step:
```python
principal = 1000
rate = 5 / 100
years = 6
interest = principal * rate * years
print(f"{interest:.2f}")
```
Printed: 300.00
It earns $300.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "300.00", "printed": "300.00", "notation": null} |
nlprog_det-setting-0065956 | <|start|><|user|>
Counting only Monday through Friday, how many business days are there after August 17, 2023 through September 11, 2023?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2023, 8, 17)
end = date(2023, 9, 11)
count = 0
for k in range(1, (end - start).days + 1):
if (sta... | chat | [
{
"role": "user",
"content": "Counting only Monday through Friday, how many business days are there after August 17, 2023 through September 11, 2023?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2023, 8, 17)\nend = date(2023, 9, 11)\ncount ... | nlprog_det | setting | original | null | deterministic | [] | [] | 153 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0065957 | Equipment costs $45,000, has a salvage value of $3,000, and a useful life of 10 years. What is the straight-line depreciation per year?
Depreciation is $4,200.00 per year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 53 | {"gold": "4200.00", "printed": "4200.00", "notation": null} |
nlprog_det-setting-0065958 | Carmen lends $2,500 at 3% simple interest per year for 4 years. How much interest is earned?
The Python version:
```python
principal = 2500
rate = 3 / 100 # 0.03
years = 4
interest = principal * rate * years # 300.0
print(f"{interest:.2f}")
```
Output: 300.00
It earns $300.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "300.00", "printed": "300.00", "notation": null} |
nlprog_det-setting-0065959 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}, {"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parame... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}, {\"name\": \"fetch_filing\", \"descripti... | nlprog_det | setting | original | null | deterministic | [] | [] | 398 | {"gold": "14000.00", "printed": "14000.00", "notation": null} |
nlprog_det-setting-0065960 | At a 9% tax rate, what is the tax on $816.38?
The tax is $73.47. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 28 | {"gold": "73.47", "printed": "73.47", "notation": null} |
nlprog_det-setting-0065961 | A hall has 9 rows of 20 seats, and 32 seats are empty. How many people are seated?
Here's the code.
```python
rows = 9
per_row = 20
empty = 32
seated = rows * per_row - empty # 148
print(seated)
```
# console output: 148
148 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "148", "printed": "148", "notation": null} |
nlprog_det-setting-0065962 | <|start|><|user|>
A lawyer's fee is 30% of a $150,000 recovery. How large is the fee?<|eot|>
<|assistant|>
The lawyer's fee comes to $45,000.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lawyer's fee is 30% of a $150,000 recovery. How large is the fee?"
},
{
"role": "assistant",
"content": "The lawyer's fee comes to $45,000.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 44 | {"gold": "45000.00", "printed": "45000.00", "notation": null} |
nlprog_det-setting-0065963 | A quorum is 2/3 of the 28 members, rounded up. How many members make a quorum?
We can compute it in Python.
```python
import math
members = 28
quorum = math.ceil(members * 2 / 3) # 19
print(quorum)
```
The run gives: 19
19 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0065964 | <|start|><|user|>
Divide 158 items among 5 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|>
<|assistant|>
```python
total = 158
groups = 5
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
The program prints 31 each, 3 left ... | chat | [
{
"role": "user",
"content": "Divide 158 items among 5 groups as evenly as possible with equal groups. How many per group, and how many remain?"
},
{
"role": "assistant",
"content": "```python\ntotal = 158\ngroups = 5\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {rem... | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "31 each, 3 left over", "printed": "31 each, 3 left over", "notation": null} |
nlprog_det-setting-0065965 | How many whole days and leftover hours are in 364 hours?
364 hours is 15 days and 4 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 28 | {"gold": "15 days and 4 hours", "printed": "15 days and 4 hours", "notation": null} |
nlprog_det-setting-0065966 | Sales went from 1,200 to 1,080. What is the percent change?
Program:
```python
old = 1200
new = 1080
change = (new - old) / old * 100 # -10.0
print(round(change))
```
Execution prints: -10
The change is -10%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "-10", "printed": "-10", "notation": null} |
nlprog_det-setting-0065967 | <|start|><|system|>
Tool definitions:
{"name": "compute", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}
{"name": "fetch_filing", "description": "Fetch an S... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"compute\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 302 | {"gold": "30.30", "printed": "30.30", "notation": null} |
nlprog_det-setting-0065968 | <|start|><|user|>
A service costs $29 a month or $318 a year. How much does the yearly plan save over 12 monthly payments?<|eot|>
<|assistant|>
```python
monthly = 29
yearly = 318
savings = monthly * 12 - yearly # 30
print(savings)
```
On running, it outputs 30.
The annual plan saves $30.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A service costs $29 a month or $318 a year. How much does the yearly plan save over 12 monthly payments?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 29\nyearly = 318\nsavings = monthly * 12 - yearly # 30\nprint(savings)\n```\nOn running, it outputs ... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0065969 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"name": "python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|>... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Pytho... | nlprog_det | setting | original | null | deterministic | [] | [] | 249 | {"gold": "28800.00", "printed": "28800.00", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.