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-0046265 | <|start|><|user|>
A client paid a $10,000 retainer. The firm has billed 8 hours at $200 per hour. How much of the retainer is left?<|eot|>
<|assistant|>
```python
retainer = 10000
hours = 8
rate = 200
left = retainer - hours * rate # 8400
print(left)
```
The printout reads 8400.
$8,400 of the retainer is left.<|eot|>... | chat | [
{
"role": "user",
"content": "A client paid a $10,000 retainer. The firm has billed 8 hours at $200 per hour. How much of the retainer is left?"
},
{
"role": "assistant",
"content": "```python\nretainer = 10000\nhours = 8\nrate = 200\nleft = retainer - hours * rate # 8400\nprint(left)\n```\nThe... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "8400", "printed": "8400", "notation": null} |
nlprog_det-setting-0046266 | A pack of 20 staplers sells for $600. What does each cost?
total = 600
count = 20
per_item = total // count # 30
print(per_item)
(stdout: 30)
Each one costs $30. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 66 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0046267 | Each storage box holds 25 files. How many boxes are needed for 461 files?
As Python:
import math
files = 461
per_box = 25
boxes = math.ceil(files / per_box) # 19
print(boxes)
(Program output: 19)
19 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "19", "printed": "19", "notation": null} |
nlprog_det-setting-0046268 | <|start|><|user|>
A water bill is $20 plus $3.50 per thousand gallons beyond the first 2 thousand. What is the bill for 25 thousand gallons?<|eot|>
<|assistant|>
$100.50 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A water bill is $20 plus $3.50 per thousand gallons beyond the first 2 thousand. What is the bill for 25 thousand gallons?"
},
{
"role": "assistant",
"content": "$100.50 is owed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "100.50", "printed": "100.50", "notation": null} |
nlprog_det-setting-0046269 | A $1,500 security deposit has deductions of $75. How much is refunded?
```python
deposit = 1500
deductions = [75]
refund = deposit - sum(deductions)
print(refund)
```
Printed result: 1425
The refund is $1,425. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "1425", "printed": "1425", "notation": null} |
nlprog_det-setting-0046270 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
A 4% increase is applied to $2,200 monthly rent. What is the new amount?<|eot|>
<|assistant|>
```python
rent = 2200
increase = 4 / 100 # 0.04
new_rent = rent * (1 + increase) # 2288.0
print(f"{new_rent:.2f}")
```
Console output — 2288.00
It rises to $2... | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "A 4% increase is applied to $2,200 monthly rent. What is the new amount?"
},
{
"role": "assistant",
"content": "```python\nrent = 2200\nincrease = 4 / 100 # 0.04\nnew_rent = rent * (1 + in... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "2288.00", "printed": "2288.00", "notation": null} |
nlprog_det-setting-0046271 | A penalty of $100 a day accrues, capped at $2,500. What is owed after 59 days?
A few lines of Python do it:
per_day = 100
days = 59
cap = 2500
fine = min(per_day * days, cap) # 2500
print(fine)
Executed, it shows: 2500
$2,500 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "2500", "printed": "2500", "notation": null} |
nlprog_det-setting-0046272 | A 21 lb package ships at $8 base plus $2.50/lb. What is the charge?
Here is a short program for it.
base = 8
per_pound = 2.5
weight = 21
cost = base + per_pound * weight # 60.5
print(f"{cost:.2f}")
Executing it gives: 60.50
The charge is $60.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "60.50", "printed": "60.50", "notation": null} |
nlprog_det-setting-0046273 | <|start|><|user|>
Filing fees are $405 per document. What do 6 filings cost?<|eot|>
<|assistant|>
```python
fee = 405
filings = 6
total = fee * filings # 2430
print(total)
```
Interpreter output — 2430
The filings cost $2,430 in all.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Filing fees are $405 per document. What do 6 filings cost?"
},
{
"role": "assistant",
"content": "```python\nfee = 405\nfilings = 6\ntotal = fee * filings # 2430\nprint(total)\n```\nInterpreter output — 2430\n\nThe filings cost $2,430 in all."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "2430", "printed": "2430", "notation": null} |
nlprog_det-setting-0046274 | <|start|><|system|>
Show working only when it helps.<|eot|>
<|user|>
Xavier and Jamal share $3,210 in the ratio 2:3. How much does Xavier get?<|eot|>
<|assistant|>
Xavier's share is $1,284.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Show working only when it helps."
},
{
"role": "user",
"content": "Xavier and Jamal share $3,210 in the ratio 2:3. How much does Xavier get?"
},
{
"role": "assistant",
"content": "Xavier's share is $1,284."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 61 | {"gold": "1284", "printed": "1284", "notation": null} |
nlprog_det-setting-0046275 | A $48,000 grant pays $3,000 up front and the rest in 3 equal installments. How large is each installment?
The computation:
grant = 48000
up_front = 3000
installments = 3
each = (grant - up_front) / installments
print(f"{each:.2f}")
The program prints: 15000.00
Each installment is $15,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "15000.00", "printed": "15000.00", "notation": null} |
nlprog_det-setting-0046276 | <|start|><|system|>
Functions:
[{"name": "math_engine", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "get_weather", "description": "Get the weather f... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"math_engine\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}, {\... | nlprog_det | setting | original | null | deterministic | [] | [] | 277 | {"gold": "12 days and 9 hours", "printed": "12 days and 9 hours", "notation": null} |
nlprog_det-setting-0046277 | <|start|><|system|>
Functions:
[{"name": "run_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
A quorum is 2/3 of the 31 membe... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"run_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"cod... | nlprog_det | setting | original | null | deterministic | [] | [] | 214 | {"gold": "21", "printed": "21", "notation": null} |
nlprog_det-setting-0046278 | <|start|><|user|>
Counting the first and last day, how many days are there from June 9, 2028 through June 12, 2028?<|eot|>
<|assistant|>
4 calendar days.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Counting the first and last day, how many days are there from June 9, 2028 through June 12, 2028?"
},
{
"role": "assistant",
"content": "4 calendar days."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0046279 | Monthly: $29. Annual: $324. What is saved per year by paying annually?
Programmatically:
```python
monthly = 29
yearly = 324
savings = monthly * 12 - yearly # 24
print(savings)
```
stdout = 24
$24 is saved. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0046280 | <|start|><|user|>
A service costs $25 a month or $282 a year. How much does the yearly plan save over 12 monthly payments?<|eot|>
<|assistant|>
The annual plan saves $18.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A service costs $25 a month or $282 a year. How much does the yearly plan save over 12 monthly payments?"
},
{
"role": "assistant",
"content": "The annual plan saves $18."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0046281 | <|start|><|user|>
Express 254 hours in days and hours.<|eot|>
<|assistant|>
```python
hours = 254
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
(Printed result: 10 days and 14 hours)
That is 10 days and 14 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Express 254 hours in days and hours."
},
{
"role": "assistant",
"content": "```python\nhours = 254\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\n(Printed result: 10 days and 14 hours)\n\nThat is 10 days and 14 hours."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "10 days and 14 hours", "printed": "10 days and 14 hours", "notation": null} |
nlprog_det-setting-0046282 | The firm was founded in 2001. How many years had passed by 2024?
```python
start_year = 2001
end_year = 2024
print(end_year - start_year)
```
Running this gives: 23
23 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 65 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0046283 | <|start|><|user|>
A library charges $0.10 per book per day late. What is the fine for 2 books that are 8 days late?<|eot|>
<|assistant|>
```python
per_day = 0.1
days_late = 8
books = 2
fine = per_day * days_late * books # 1.6
print(f"{fine:.2f}")
```
The run gives: 1.60
$1.60 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A library charges $0.10 per book per day late. What is the fine for 2 books that are 8 days late?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.1\ndays_late = 8\nbooks = 2\nfine = per_day * days_late * books # 1.6\nprint(f\"{fine:.2f}\")\n```\nThe r... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "1.60", "printed": "1.60", "notation": null} |
nlprog_det-setting-0046284 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "eval_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"eval_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\... | nlprog_det | setting | original | null | deterministic | [] | [] | 251 | {"gold": "240.00", "printed": "240.00", "notation": null} |
nlprog_det-setting-0046285 | A customer buys 1 folders at $4 each, 3 flash drives at $22 each, 2 folders at $29 each and pays with $150. How much change is due?
Code:
```python
items = [(1, 4), (3, 22), (2, 29)]
total = sum(q * p for q, p in items) # 128
paid = 150
change = paid - total # 22
print(change)
```
The program outputs 22.
The change... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0046286 | <|start|><|user|>
Nilufar and Diego share $5,656 in the ratio 3:4. How much does Nilufar get?<|eot|>
<|assistant|>
```python
total = 5656
parts_a = 3
parts_b = 4
share_a = total * parts_a // (parts_a + parts_b) # 2424
print(share_a)
```
(Console output: 2424)
Nilufar's share is $2,424.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Nilufar and Diego share $5,656 in the ratio 3:4. How much does Nilufar get?"
},
{
"role": "assistant",
"content": "```python\ntotal = 5656\nparts_a = 3\nparts_b = 4\nshare_a = total * parts_a // (parts_a + parts_b) # 2424\nprint(share_a)\n```\n(Console output: 2424... | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "2424", "printed": "2424", "notation": null} |
nlprog_det-setting-0046287 | <|start|><|user|>
An unpaid balance of $12,000 accrues 1% simple interest per month. How much interest accrues in 5 months?<|eot|>
<|assistant|>
```python
balance = 12000
monthly_rate = 1 / 100 # 0.01
months = 5
interest = balance * monthly_rate * months # 600.0
print(f"{interest:.2f}")
```
Python prints 600.00.
$60... | chat | [
{
"role": "user",
"content": "An unpaid balance of $12,000 accrues 1% simple interest per month. How much interest accrues in 5 months?"
},
{
"role": "assistant",
"content": "```python\nbalance = 12000\nmonthly_rate = 1 / 100 # 0.01\nmonths = 5\ninterest = balance * monthly_rate * months # 600... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "600.00", "printed": "600.00", "notation": null} |
nlprog_det-setting-0046288 | <|start|><|user|>
A party has 30 days to respond to a motion served on April 7, 2018, with 3 days added because service was by mail. When is the response due?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
served = date(2018, 4, 7) # datetime.date(2018, 4, 7)
response_days = 30
mail_days = 3
due =... | chat | [
{
"role": "user",
"content": "A party has 30 days to respond to a motion served on April 7, 2018, with 3 days added because service was by mail. When is the response due?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nserved = date(2018, 4, 7) # datetime... | nlprog_det | setting | original | null | deterministic | [] | [] | 174 | {"gold": "2018-05-10", "printed": "2018-05-10", "notation": null} |
nlprog_det-setting-0046289 | <|start|><|system|>
You help people work with structured data.<|eot|>
<|user|>
At 2% a month (simple), what interest builds on $7,500 over 4 months?<|eot|>
<|assistant|>
```python
balance = 7500
monthly_rate = 2 / 100
months = 4
interest = balance * monthly_rate * months
print(f"{interest:.2f}")
```
(stdout: 600.00)
$... | chat | [
{
"role": "system",
"content": "You help people work with structured data."
},
{
"role": "user",
"content": "At 2% a month (simple), what interest builds on $7,500 over 4 months?"
},
{
"role": "assistant",
"content": "```python\nbalance = 7500\nmonthly_rate = 2 / 100\nmonths = 4\nint... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "600.00", "printed": "600.00", "notation": null} |
nlprog_det-setting-0046290 | A $1,200 loan carries 6% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment?
A few lines of Python do it:
```python
principal = 1200
annual_rate = 6 / 100 # 0.06
months = 36
interest = principal * annual_rate * months / 12 # 216.0
payment = (princ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 155 | {"gold": "39.33", "printed": "39.33", "notation": null} |
nlprog_det-setting-0046291 | <|start|><|user|>
Counting only Monday through Friday, how many business days are there after October 9, 2022 through October 29, 2022?<|eot|>
<|assistant|>
There are 15 business days.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Counting only Monday through Friday, how many business days are there after October 9, 2022 through October 29, 2022?"
},
{
"role": "assistant",
"content": "There are 15 business days."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0046292 | Equal monthly payments repay $1,200 plus 6% simple yearly interest over 36 months. How large is a payment?
Each payment is $39.33. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "39.33", "printed": "39.33", "notation": null} |
nlprog_det-setting-0046293 | Equipment costs $45,000, has a salvage value of $2,000, and a useful life of 6 years. What is the straight-line depreciation per year?
Python code:
```python
cost = 45000
salvage = 2000
years = 6
per_year = (cost - salvage) / years # 7166.666666666667
print(f"{per_year:.2f}")
```
The program prints 7166.67, as expect... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "7166.67", "printed": "7166.67", "notation": null} |
nlprog_det-setting-0046294 | Convert -15 °C to Fahrenheit.
As a program:
```python
celsius = -15
fahrenheit = celsius * 9 / 5 + 32 # 5.0
print(round(fahrenheit))
```
That prints 5.
It equals 5 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0046295 | A client paid a $7,500 retainer. The firm has billed 9 hours at $200 per hour. How much of the retainer is left?
Script:
```python
retainer = 7500
hours = 9
rate = 200
left = retainer - hours * rate # 5700
print(left)
```
stdout: 5700
The remaining balance is $5,700. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "5700", "printed": "5700", "notation": null} |
nlprog_det-setting-0046296 | <|start|><|system|>
You check calculations for an accounting team.<|eot|>
<|user|>
How many whole days and leftover hours are in 392 hours?<|eot|>
<|assistant|>
```python
hours = 392
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Output of the run — 16 days and 8 hours
That is 16 days and 8 ... | chat | [
{
"role": "system",
"content": "You check calculations for an accounting team."
},
{
"role": "user",
"content": "How many whole days and leftover hours are in 392 hours?"
},
{
"role": "assistant",
"content": "```python\nhours = 392\ndays, rest = divmod(hours, 24)\nprint(f\"{days} day... | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "16 days and 8 hours", "printed": "16 days and 8 hours", "notation": null} |
nlprog_det-setting-0046297 | How many meters are in 42.5 kilometers?
Set it up in Python:
```python
km = 42.5
meters = km * 1000 # 42500.0
print(round(meters))
```
# execution result: 42500
42,500 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "42500", "printed": "42500", "notation": null} |
nlprog_det-setting-0046298 | A hall has 16 rows of 10 seats, and 24 seats are empty. How many people are seated?
In code:
rows = 16
per_row = 10
empty = 24
seated = rows * per_row - empty # 136
print(seated)
That prints: 136
136 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "136", "printed": "136", "notation": null} |
nlprog_det-setting-0046299 | A bicycle helmet costs $75. It is 25% off. What is the sale price?
```python
price = 75
discount = 25 / 100 # 0.25
sale_price = price * (1 - discount) # 56.25
print(f"{sale_price:.2f}")
```
(Out: 56.25)
It costs $56.25. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "56.25", "printed": "56.25", "notation": null} |
nlprog_det-setting-0046300 | Goods bought on April 14, 2021 carry a 18-month warranty. When does it expire?
Let's compute it with Python.
from datetime import date
start = date(2021, 4, 14)
months = 18
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "2022-10-14", "printed": "2022-10-14", "notation": null} |
nlprog_det-setting-0046301 | <|start|><|system|>
You are a careful reviewer of figures.<|eot|>
<|user|>
Buying 2 toner kits at $11 each, 2 tape rolls at $7 each, 3 binders at $27 each, 1 chairs at $19 each, someone hands over $150. What change comes back?<|eot|>
<|assistant|>
items = [(2, 11), (2, 7), (3, 27), (1, 19)]
total = sum(q * p fo... | chat | [
{
"role": "system",
"content": "You are a careful reviewer of figures."
},
{
"role": "user",
"content": "Buying 2 toner kits at $11 each, 2 tape rolls at $7 each, 3 binders at $27 each, 1 chairs at $19 each, someone hands over $150. What change comes back?"
},
{
"role": "assistant",
... | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0046302 | From 2001 to 2023, how many years is that?
Coded up:
```python
start_year = 2001
end_year = 2023
print(end_year - start_year)
```
stdout — 22
22 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 63 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0046303 | What average speed covers 428 miles in 4 hours? It averages 107 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 23 | {"gold": "107", "printed": "107", "notation": null} |
nlprog_det-setting-0046304 | How long, in days, is it from December 3, 2027 until July 3, 2028?
Python does the arithmetic:
```python
from datetime import date
first = date(2027, 12, 3) # datetime.date(2027, 12, 3)
second = date(2028, 7, 3) # datetime.date(2028, 7, 3)
print((second - first).days)
```
# execution result: 213
It is 213 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "213", "printed": "213", "notation": null} |
nlprog_det-setting-0046305 | What is a 22% tip on a $89.42 bill?
A Python solution:
```python
bill = 89.42
tip_rate = 22 / 100
tip = bill * tip_rate
print(f"{tip:.2f}")
```
Result:
19.67
Leave $19.67. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "19.67", "printed": "19.67", "notation": null} |
nlprog_det-setting-0046306 | A lease runs for 18 months at $2,100 per month. How much rent is paid over the whole term?
In total, $37,800 is paid. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "37800", "printed": "37800", "notation": null} |
nlprog_det-setting-0046307 | Rent of $1,100 goes up 5%. What is the new rent?
Translated to Python:
rent = 1100
increase = 5 / 100
new_rent = rent * (1 + increase)
print(f"{new_rent:.2f}")
Out:
1155.00
It rises to $1,155.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "1155.00", "printed": "1155.00", "notation": null} |
nlprog_det-setting-0046308 | <|start|><|system|>
Tool definitions:
[{"name": "calc", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>
A meal costs $163.79. Ho... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"calc\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\... | nlprog_det | setting | original | null | deterministic | [] | [] | 205 | {"gold": "40.95", "printed": "40.95", "notation": null} |
nlprog_det-setting-0046309 | <|start|><|user|>
A storeroom has 1074 scissors. The office uses 18 a day. How many are left after 6 days?<|eot|>
<|assistant|>
```python
stock = 1074
per_day = 18
days = 6
left = stock - per_day * days # 966
print(left)
```
(Output: 966)
966 remain.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A storeroom has 1074 scissors. The office uses 18 a day. How many are left after 6 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 1074\nper_day = 18\ndays = 6\nleft = stock - per_day * days # 966\nprint(left)\n```\n(Output: 966)\n\n966 remain."
}... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "966", "printed": "966", "notation": null} |
nlprog_det-setting-0046310 | <|start|><|user|>
How many whole days and leftover hours are in 84 hours?<|eot|>
<|assistant|>
```python
hours = 84
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Execution result: 3 days and 12 hours
84 hours is 3 days and 12 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many whole days and leftover hours are in 84 hours?"
},
{
"role": "assistant",
"content": "```python\nhours = 84\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nExecution result: 3 days and 12 hours\n\n84 hours is 3 days and 12 ho... | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "3 days and 12 hours", "printed": "3 days and 12 hours", "notation": null} |
nlprog_det-setting-0046311 | <|start|><|user|>
A customer buys 1 batteries at $29 each, 3 cables at $11 each, 6 headsets at $14 each, 3 file boxes at $14 each and pays with $200. How much change is due?<|eot|>
<|assistant|>
```python
items = [(1, 29), (3, 11), (6, 14), (3, 14)]
total = sum(q * p for q, p in items) # 188
paid = 200
change = paid -... | chat | [
{
"role": "user",
"content": "A customer buys 1 batteries at $29 each, 3 cables at $11 each, 6 headsets at $14 each, 3 file boxes at $14 each and pays with $200. How much change is due?"
},
{
"role": "assistant",
"content": "```python\nitems = [(1, 29), (3, 11), (6, 14), (3, 14)]\ntotal = sum(q ... | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0046312 | A party has 21 days to respond to a motion served on May 5, 2027, with 3 days added because service was by mail. When is the response due?
One way, in code:
```python
from datetime import date, timedelta
served = date(2027, 5, 5) # datetime.date(2027, 5, 5)
response_days = 21
mail_days = 3
due = served + timedelta(da... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 179 | {"gold": "2027-05-29", "printed": "2027-05-29", "notation": null} |
nlprog_det-setting-0046313 | 33 volunteers are split into 7 equal teams. How many are on each team, and how many are left over?
A Python solution:
total = 33
groups = 7
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
Interpreter output — 4 each, 5 left over
The answer: 4 each, 5 left... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "4 each, 5 left over", "printed": "4 each, 5 left over", "notation": null} |
nlprog_det-setting-0046316 | <|start|><|system|>
Give the answer first.<|eot|>
<|user|>
Yusuf and Wanjiru share $728 in the ratio 2:5. How much does Yusuf get?<|eot|>
<|assistant|>
Yusuf's share is $208.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Give the answer first."
},
{
"role": "user",
"content": "Yusuf and Wanjiru share $728 in the ratio 2:5. How much does Yusuf get?"
},
{
"role": "assistant",
"content": "Yusuf's share is $208."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 61 | {"gold": "208", "printed": "208", "notation": null} |
nlprog_det-setting-0046317 | Parking is $3 per hour with a daily maximum of $20. What do 3 hours cost?
Python does the arithmetic:
```python
rate = 3
hours = 3
daily_max = 20
cost = min(rate * hours, daily_max)
print(cost)
```
Output: 9
The charge is $9. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0046318 | How many 1-foot square tiles cover a 9 ft by 4 ft floor (round up)?
As Python:
```python
import math
length = 9
width = 4
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 36
print(tiles)
```
Printed: 36
It takes 36 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0046319 | <|start|><|user|>
Buying 5 flash drives at $21 each, 6 calendars at $10 each, someone hands over $200. What change comes back?<|eot|>
<|assistant|>
```python
items = [(5, 21), (6, 10)]
total = sum(q * p for q, p in items) # 165
paid = 200
change = paid - total # 35
print(change)
```
Interpreter output: 35
$35 comes ... | chat | [
{
"role": "user",
"content": "Buying 5 flash drives at $21 each, 6 calendars at $10 each, someone hands over $200. What change comes back?"
},
{
"role": "assistant",
"content": "```python\nitems = [(5, 21), (6, 10)]\ntotal = sum(q * p for q, p in items) # 165\npaid = 200\nchange = paid - total ... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "35", "printed": "35", "notation": null} |
nlprog_det-setting-0046320 | From a $5,000 retainer, 10 hours at $150/hour have been drawn. What remains?
Python does the arithmetic:
```python
retainer = 5000
hours = 10
rate = 150
left = retainer - hours * rate # 3500
print(left)
```
The run gives: 3500
The remaining balance is $3,500. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "3500", "printed": "3500", "notation": null} |
nlprog_det-setting-0046321 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "run_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|>
<|user|>
How many day... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"run_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"... | nlprog_det | setting | original | null | deterministic | [] | [] | 225 | {"gold": "395", "printed": "395", "notation": null} |
nlprog_det-setting-0046322 | An attorney bills 2.5 hours at $300 per hour. What is the bill?
Code:
```python
hours = 2.5
rate = 300
bill = hours * rate # 750.0
print(f"{bill:.2f}")
```
# stdout: 750.00
The bill is $750.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "750.00", "printed": "750.00", "notation": null} |
nlprog_det-setting-0046323 | Ines earns a 8% commission on $36,740 of sales. What is the commission?
Program:
```python
sales = 36740
rate = 8 / 100
commission = sales * rate
print(f"{commission:.2f}")
```
Output: 2939.20
The commission is $2,939.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "2939.20", "printed": "2939.20", "notation": null} |
nlprog_det-setting-0046324 | 4 boxes hold 25 clipboards each. After 17 are handed out, how many are left? That leaves 83 clipboards. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "83", "printed": "83", "notation": null} |
nlprog_det-setting-0046325 | <|start|><|user|>
Divide 180 items among 6 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|>
<|assistant|>
The answer: 30 each, 0 left over.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Divide 180 items among 6 groups as evenly as possible with equal groups. How many per group, and how many remain?"
},
{
"role": "assistant",
"content": "The answer: 30 each, 0 left over."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "30 each, 0 left over", "printed": "30 each, 0 left over", "notation": null} |
nlprog_det-setting-0046326 | <|start|><|system|>
You are an assistant for a small office.<|eot|>
<|user|>
One can of paint covers 400 square feet. How many cans are needed for 1199 square feet of wall?<|eot|>
<|assistant|>
```python
import math
area = 1199
coverage = 400
cans = math.ceil(area / coverage) # 3
print(cans)
```
Printed result — 3
Bu... | chat | [
{
"role": "system",
"content": "You are an assistant for a small office."
},
{
"role": "user",
"content": "One can of paint covers 400 square feet. How many cans are needed for 1199 square feet of wall?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 1199\ncover... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0046327 | A hall has 11 rows of 15 seats, and 23 seats are empty. How many people are seated?
Computing it:
rows = 11
per_row = 15
empty = 23
seated = rows * per_row - empty # 142
print(seated)
This prints: 142
142 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "142", "printed": "142", "notation": null} |
nlprog_det-setting-0046328 | $1,000 is invested at 5% compounded yearly. What is it worth after 5 years?
Programmatically:
```python
principal = 1000
rate = 5 / 100 # 0.05
years = 5
value = principal * (1 + rate) ** years # 1276.2815625000003
print(f"{value:.2f}")
```
Result:
1276.28
The balance is $1,276.28. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "1276.28", "printed": "1276.28", "notation": null} |
nlprog_det-setting-0046329 | Buying 6 chairs at $5 each, 2 batteries at $11 each, 4 cables at $6 each, 3 calendars at $25 each, someone hands over $200. What change comes back?
Written as code:
```python
items = [(6, 5), (2, 11), (4, 6), (3, 25)]
total = sum(q * p for q, p in items) # 151
paid = 200
change = paid - total # 49
print(change)
```
... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 147 | {"gold": "49", "printed": "49", "notation": null} |
nlprog_det-setting-0046330 | Starting from $5,000, the team spends $2,468, $2,432, $445, $2,817. What remains?
Python does the arithmetic:
```python
budget = 5000
expenses = [2468, 2432, 445, 2817]
left = budget - sum(expenses) # -3162
print(left)
```
Console output — -3162
-$3,162 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "-3162", "printed": "-3162", "notation": null} |
nlprog_det-setting-0046331 | Mei's scores were 68, 50 and 65. What is the average score?
Python does the arithmetic:
```python
scores = [68, 50, 65]
average = sum(scores) // len(scores) # 61
print(average)
```
Running it prints 61.
The average score is 61. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "61", "printed": "61", "notation": null} |
nlprog_det-setting-0046332 | <|start|><|system|>
Respond clearly and to the point.<|eot|>
<|user|>
Parking is $2 per hour with a daily maximum of $20. What do 3 hours cost?<|eot|>
<|assistant|>
```python
rate = 2
hours = 3
daily_max = 20
cost = min(rate * hours, daily_max) # 6
print(cost)
```
Run result: 6
Parking costs $6.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Respond clearly and to the point."
},
{
"role": "user",
"content": "Parking is $2 per hour with a daily maximum of $20. What do 3 hours cost?"
},
{
"role": "assistant",
"content": "```python\nrate = 2\nhours = 3\ndaily_max = 20\ncost = min(rate * hours... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0046334 | What average speed covers 350 miles in 5 hours?
Here's the code.
```python
distance = 350
hours = 5
speed = distance / hours # 70.0
print(round(speed))
```
Run it and it prints: 70
It averages 70 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "70", "printed": "70", "notation": null} |
nlprog_det-setting-0046335 | 6 claimants share a $7,350 settlement equally. What is each share?
In code:
```python
settlement = 7350
parties = 6
share = settlement // parties # 1225
print(share)
```
The code prints: 1225
Each party receives $1,225. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "1225", "printed": "1225", "notation": null} |
nlprog_det-setting-0046336 | <|start|><|user|>
Equal monthly payments repay $9,000 plus 5% simple yearly interest over 36 months. How large is a payment?<|eot|>
<|assistant|>
```python
principal = 9000
annual_rate = 5 / 100 # 0.05
months = 36
interest = principal * annual_rate * months / 12 # 1350.0
payment = (principal + interest) / months # 2... | chat | [
{
"role": "user",
"content": "Equal monthly payments repay $9,000 plus 5% simple yearly interest over 36 months. How large is a payment?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 9000\nannual_rate = 5 / 100 # 0.05\nmonths = 36\ninterest = principal * annual_rate * months / 1... | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "287.50", "printed": "287.50", "notation": null} |
nlprog_det-setting-0046337 | What is 25 degrees Celsius in Fahrenheit?
Python version:
```python
celsius = 25
fahrenheit = celsius * 9 / 5 + 32 # 77.0
print(round(fahrenheit))
```
The printout reads 77.
It equals 77 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "77", "printed": "77", "notation": null} |
nlprog_det-setting-0046338 | <|start|><|user|>
A lease runs for 6 months at $850 per month. How much rent is paid over the whole term?<|eot|>
<|assistant|>
```python
monthly_rent = 850
months = 6
total = monthly_rent * months # 5100
print(total)
```
(stdout: 5100)
In total, $5,100 is paid.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lease runs for 6 months at $850 per month. How much rent is paid over the whole term?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 850\nmonths = 6\ntotal = monthly_rent * months # 5100\nprint(total)\n```\n(stdout: 5100)\n\nIn total, $5,100 is ... | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "5100", "printed": "5100", "notation": null} |
nlprog_det-setting-0046339 | <|start|><|user|>
To read 253 pages in 11 days, how many pages per day are needed?<|eot|>
<|assistant|>
pages = 253
days = 11
per_day = pages // days # 23
print(per_day)
Python prints 23, as expected.
That is 23 pages per day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "To read 253 pages in 11 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": " pages = 253\n days = 11\n per_day = pages // days # 23\n print(per_day)\nPython prints 23, as expected.\n\nThat is 23 pages per day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0046340 | A trial runs from March 17, 2019 to April 7, 2019, counting both days. How many calendar days is that?
Python version:
from datetime import date
first = date(2019, 3, 17) # datetime.date(2019, 3, 17)
last = date(2019, 4, 7) # datetime.date(2019, 4, 7)
days = (last - first).days + 1 # 22
print(da... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0046341 | Convert 7,407 EUR to USD at 1 EUR = 1.12 USD. That is 8,295.84 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "8295.84", "printed": "8295.84", "notation": null} |
nlprog_det-setting-0046342 | A settlement of $1,200 is split equally among 2 parties. How much does each party receive?
In Python:
settlement = 1200
parties = 2
share = settlement // parties # 600
print(share)
# stdout: 600
Each share is $600. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 73 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0046343 | Yusuf buys 4 boxes of 6 file boxes each and gives away 2 file boxes. How many file boxes are left?
We write it as a program:
```python
boxes = 4
per_box = 6
given_away = 2
left = boxes * per_box - given_away # 22
print(left)
```
(Printed result: 22)
That leaves 22 file boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0046344 | <|start|><|user|>
Which is cheaper per unit: 6 for $11.71 (A) or 20 for $17.58 (B)?<|eot|>
<|assistant|>
```python
pack_a = 11.71 / 6 # 1.9516666666666669
pack_b = 17.58 / 20 # 0.8789999999999999
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
(Printed result: B)
B has the lower unit price.<|eot|... | chat | [
{
"role": "user",
"content": "Which is cheaper per unit: 6 for $11.71 (A) or 20 for $17.58 (B)?"
},
{
"role": "assistant",
"content": "```python\npack_a = 11.71 / 6 # 1.9516666666666669\npack_b = 17.58 / 20 # 0.8789999999999999\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'B'\nprint(cheap... | nlprog_det | setting | original | null | deterministic | [] | [] | 139 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0046345 | A 6 × 6 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?
Python does the arithmetic:
```python
import math
length = 6
width = 6
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 36
print(tiles)
```
Program output: 36
It takes 36 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0046346 | <|start|><|user|>
How many days are there from August 3, 2021 to November 23, 2021?<|eot|>
<|assistant|>
```python
from datetime import date
first = date(2021, 8, 3)
second = date(2021, 11, 23)
print((second - first).days)
```
Executing it gives 112, as expected.
There are 112 days between the two dates.<|eot|>
<|end|... | chat | [
{
"role": "user",
"content": "How many days are there from August 3, 2021 to November 23, 2021?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nfirst = date(2021, 8, 3)\nsecond = date(2021, 11, 23)\nprint((second - first).days)\n```\nExecuting it gives 112, as expect... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "112", "printed": "112", "notation": null} |
nlprog_det-setting-0046347 | <|start|><|system|>
Functions:
[{"name": "run_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
<|user|>
8 boxes hold 10 t... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"run_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require... | nlprog_det | setting | original | null | deterministic | [] | [] | 233 | {"gold": "66", "printed": "66", "notation": null} |
nlprog_det-setting-0046348 | <|start|><|user|>
With $4,000 in costs and $9,000 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|>
<|assistant|>
```python
revenue = 9000
costs = 4000
profit = revenue - costs # 5000
margin = profit / revenue * 100 # 55.55555555555556
print(round(margin, 1))
```
(Console output: 55.6)
Prof... | chat | [
{
"role": "user",
"content": "With $4,000 in costs and $9,000 in revenue, what percent of revenue is profit? Round to one decimal."
},
{
"role": "assistant",
"content": "```python\nrevenue = 9000\ncosts = 4000\nprofit = revenue - costs # 5000\nmargin = profit / revenue * 100 # 55.5555555555555... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "55.6", "printed": "55.6", "notation": null} |
nlprog_det-setting-0046349 | After a 40% fee is taken from a $30,000 judgment, 2 plaintiffs share the remainder equally. What is each plaintiff's share?
We can compute it in Python.
```python
award = 30000
fee = award * 40 / 100 # 12000.0
remaining = award - fee # 18000.0
per_client = remaining / 2 # 9000.0
print(f"{per_client:.2f}")
```
The r... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "9000.00", "printed": "9000.00", "notation": null} |
nlprog_det-setting-0046350 | Ines earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 45-hour week?
The Python version:
```python
rate = 18.5
hours = 45
regular = 40 * rate # 740.0
overtime = (hours - 40) * rate * 1.5 # 138.75
pay = regular + overtime # 878.75
print(f"{pay:.2f}")
```
(Output: 878.75)
Ines earns $... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "878.75", "printed": "878.75", "notation": null} |
nlprog_det-setting-0046351 | How many of 138 votes make 60% (round up)?
Computing it:
```python
import math
voters = 138
needed = math.ceil(voters * 60 / 100) # 83
print(needed)
```
(Console output: 83)
At least 83 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "83", "printed": "83", "notation": null} |
nlprog_det-setting-0046352 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
Equal monthly payments repay $6,000 plus 8% simple yearly interest over 24 months. How large is a payment?<|eot|>
<|assistant|>
principal = 6000
annual_rate = 8 / 100 # 0.08
months = 24
interest = principal * annual_rate * month... | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "Equal monthly payments repay $6,000 plus 8% simple yearly interest over 24 months. How large is a payment?"
},
{
"role": "assistant",
"content": " principal = 6000\n annual_... | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "290.00", "printed": "290.00", "notation": null} |
nlprog_det-setting-0046353 | <|start|><|user|>
If a 105-minute meeting begins at 10:40 AM, what time does it finish?<|eot|>
<|assistant|>
```python
start = 10 * 60 + 40
end = start + 105
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
The program outputs: 12:25 PM
It ends at 12:25 PM.<... | chat | [
{
"role": "user",
"content": "If a 105-minute meeting begins at 10:40 AM, what time does it finish?"
},
{
"role": "assistant",
"content": "```python\nstart = 10 * 60 + 40\nend = start + 105\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}... | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "12:25 PM", "printed": "12:25 PM", "notation": null} |
nlprog_det-setting-0046354 | <|start|><|user|>
A penalty of $50 a day accrues, capped at $1,000. What is owed after 8 days?<|eot|>
<|assistant|>
The fine is $400.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A penalty of $50 a day accrues, capped at $1,000. What is owed after 8 days?"
},
{
"role": "assistant",
"content": "The fine is $400."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "400", "printed": "400", "notation": null} |
nlprog_det-setting-0046355 | <|start|><|user|>
A printer costs $300. It is 30% off. What is the sale price?<|eot|>
<|assistant|>
```python
price = 300
discount = 30 / 100 # 0.3
sale_price = price * (1 - discount) # 210.0
print(f"{sale_price:.2f}")
```
(Execution result: 210.00)
It costs $210.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A printer costs $300. It is 30% off. What is the sale price?"
},
{
"role": "assistant",
"content": "```python\nprice = 300\ndiscount = 30 / 100 # 0.3\nsale_price = price * (1 - discount) # 210.0\nprint(f\"{sale_price:.2f}\")\n```\n(Execution result: 210.00)\n\nIt ... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "210.00", "printed": "210.00", "notation": null} |
nlprog_det-setting-0046356 | How many units at $15 each (variable cost $10) cover $4,000 of fixed costs?
A few lines of Python do it:
```python
import math
fixed = 4000
price = 15
variable = 10
units = math.ceil(fixed / (price - variable)) # 800
print(units)
```
The script prints 800, as expected.
800 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "800", "printed": "800", "notation": null} |
nlprog_det-setting-0046357 | <|start|><|user|>
A storeroom has 1402 cables. The office uses 16 a day. How many are left after 4 days?<|eot|>
<|assistant|>
1338 cables are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A storeroom has 1402 cables. The office uses 16 a day. How many are left after 4 days?"
},
{
"role": "assistant",
"content": "1338 cables are left."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "1338", "printed": "1338", "notation": null} |
nlprog_det-setting-0046358 | <|start|><|user|>
A 390-mile drive at a steady 65 mph takes how many minutes?<|eot|>
<|assistant|>
```python
distance = 390
speed = 65
minutes = distance / speed * 60 # 360.0
print(round(minutes))
```
Executing it gives 360.
360 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 390-mile drive at a steady 65 mph takes how many minutes?"
},
{
"role": "assistant",
"content": "```python\ndistance = 390\nspeed = 65\nminutes = distance / speed * 60 # 360.0\nprint(round(minutes))\n```\nExecuting it gives 360.\n\n360 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "360", "printed": "360", "notation": null} |
nlprog_det-setting-0046359 | <|start|><|user|>
An attorney bills 8 hours at $300 per hour. What is the bill?<|eot|>
<|assistant|>
hours = 8
rate = 300
bill = hours * rate # 2400
print(f"{bill:.2f}")
Output:
2400.00
The bill is $2,400.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An attorney bills 8 hours at $300 per hour. What is the bill?"
},
{
"role": "assistant",
"content": " hours = 8\n rate = 300\n bill = hours * rate # 2400\n print(f\"{bill:.2f}\")\nOutput:\n2400.00\n\nThe bill is $2,400.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "2400.00", "printed": "2400.00", "notation": null} |
nlprog_det-setting-0046360 | 6 runs at 350 calories each burn how many calories in total?
2100 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 25 | {"gold": "2100", "printed": "2100", "notation": null} |
nlprog_det-setting-0046361 | A lawyer's fee is 33% of a $40,000 recovery. How large is the fee?
Let the code do the arithmetic:
```python
recovery = 40000
rate = 33 / 100 # 0.33
fee = recovery * rate # 13200.0
print(f"{fee:.2f}")
```
# result: 13200.00
The fee is $13,200.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "13200.00", "printed": "13200.00", "notation": null} |
nlprog_det-setting-0046362 | <|start|><|system|>
You are a logic tutor.<|eot|>
<|user|>
A 6-day trip pays $74 a day for meals and $110 a night for lodging (5 nights). What is the total allowance?<|eot|>
<|assistant|>
```python
days = 6
meal_rate = 74
lodging_rate = 110
nights = days - 1 # 5
total = days * meal_rate + nights * lodging_rate # 994
... | chat | [
{
"role": "system",
"content": "You are a logic tutor."
},
{
"role": "user",
"content": "A 6-day trip pays $74 a day for meals and $110 a night for lodging (5 nights). What is the total allowance?"
},
{
"role": "assistant",
"content": "```python\ndays = 6\nmeal_rate = 74\nlodging_rat... | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "994", "printed": "994", "notation": null} |
nlprog_det-setting-0046364 | Shipping costs $5 plus $1.50 per pound. What does a 37-pound parcel cost to ship?
A short script:
```python
base = 5
per_pound = 1.5
weight = 37
cost = base + per_pound * weight # 60.5
print(f"{cost:.2f}")
```
Python prints 60.50, as expected.
The charge is $60.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "60.50", "printed": "60.50", "notation": null} |
nlprog_det-setting-0046365 | With 20% off, what does a $250 kettle cost?
One way, in code:
```python
price = 250
discount = 20 / 100 # 0.2
sale_price = price * (1 - discount) # 200.0
print(f"{sale_price:.2f}")
```
Executed, it shows: 200.00
The sale price is $200.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "200.00", "printed": "200.00", "notation": null} |
nlprog_det-setting-0046366 | Monthly rent is $1,800. A tenant moves in with 15 days left in a 31-day month. What is the prorated rent?
Python does the arithmetic:
```python
rent = 1800
days_in_month = 31
days_occupied = 15
prorated = rent * days_occupied / days_in_month # 870.9677419354839
print(f"{prorated:.2f}")
```
Printed result — 870.97
Th... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "870.97", "printed": "870.97", "notation": null} |
nlprog_det-setting-0046367 | Ulla's scores were 72, 91, 53, 53, 51 and 94. What is the average score?
Translated to Python:
```python
scores = [72, 91, 53, 53, 51, 94]
average = sum(scores) // len(scores) # 69
print(average)
```
Printed result: 69
The average score is 69. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "69", "printed": "69", "notation": null} |
nlprog_det-setting-0046368 | <|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": "business_days", "description": "Count business days between two dates.", "parameter... | 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\"]}}\n{\"name\": \"business_days\", \"descripti... | nlprog_det | setting | original | null | deterministic | [] | [] | 381 | {"gold": "44.25", "printed": "44.25", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.