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-0056247 | A settlement of $1,200 is split equally among 4 parties. How much does each party receive?
Computation in Python:
```python
settlement = 1200
parties = 4
share = settlement // parties # 300
print(share)
```
Run output: 300
Each party receives $300. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0056248 | Eamon buys 6 boxes of 10 rulers each and gives away 19 rulers. How many rulers are left?
```python
boxes = 6
per_box = 10
given_away = 19
left = boxes * per_box - given_away # 41
print(left)
```
It outputs 41.
That leaves 41 rulers. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "41", "printed": "41", "notation": null} |
nlprog_det-setting-0056249 | Starting from $20,000, the team spends $3,839, $545, $988. What remains?
As Python:
```python
budget = 20000
expenses = [3839, 545, 988]
left = budget - sum(expenses) # 14628
print(left)
```
The program prints 14628.
The remaining budget is $14,628. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "14628", "printed": "14628", "notation": null} |
nlprog_det-setting-0056250 | <|start|><|user|>
A measure needs at least 60% of 44 votes. How many votes is that, rounded up?<|eot|>
<|assistant|>
```python
import math
voters = 44
needed = math.ceil(voters * 60 / 100) # 27
print(needed)
```
It outputs: 27
27 votes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A measure needs at least 60% of 44 votes. How many votes is that, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 44\nneeded = math.ceil(voters * 60 / 100) # 27\nprint(needed)\n```\nIt outputs: 27\n\n27 votes are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "27", "printed": "27", "notation": null} |
nlprog_det-setting-0056251 | <|start|><|user|>
Walls total 345 sq ft and each can covers 300 sq ft. How many cans should be bought?<|eot|>
<|assistant|>
```python
import math
area = 345
coverage = 300
cans = math.ceil(area / coverage) # 2
print(cans)
```
# console output: 2
Buy 2 cans.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Walls total 345 sq ft and each can covers 300 sq ft. How many cans should be bought?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 345\ncoverage = 300\ncans = math.ceil(area / coverage) # 2\nprint(cans)\n```\n# console output: 2\n\nBuy 2 can... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0056252 | Lucia buys 6 boxes of 24 mugs each and gives away 14 mugs. How many mugs are left?
Computing it:
```python
boxes = 6
per_box = 24
given_away = 14
left = boxes * per_box - given_away # 130
print(left)
```
On running, it outputs 130.
130 mugs are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "130", "printed": "130", "notation": null} |
nlprog_det-setting-0056254 | <|start|><|user|>
How much sales tax is charged on a $735.07 purchase at 8%?<|eot|>
<|assistant|>
```python
price = 735.07
tax_rate = 8 / 100
tax = price * tax_rate
print(f"{tax:.2f}")
```
# stdout: 58.81
$58.81 in tax.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How much sales tax is charged on a $735.07 purchase at 8%?"
},
{
"role": "assistant",
"content": "```python\nprice = 735.07\ntax_rate = 8 / 100\ntax = price * tax_rate\nprint(f\"{tax:.2f}\")\n```\n# stdout: 58.81\n\n$58.81 in tax."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "58.81", "printed": "58.81", "notation": null} |
nlprog_det-setting-0056255 | <|start|><|user|>
Flooring at $12/sq ft for a 14 ft × 8 ft room costs how much?<|eot|>
<|assistant|>
It costs $1,344.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Flooring at $12/sq ft for a 14 ft × 8 ft room costs how much?"
},
{
"role": "assistant",
"content": "It costs $1,344."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 42 | {"gold": "1344", "printed": "1344", "notation": null} |
nlprog_det-setting-0056256 | At an exchange rate of 1.35 USD per GBP, how many USD is 4,611 GBP?
As a program:
```python
amount = 4611
rate = 1.35
converted = amount * rate # 6224.85
print(f"{converted:.2f}")
```
The interpreter prints: 6224.85
It converts to 6,224.85 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "6224.85", "printed": "6224.85", "notation": null} |
nlprog_det-setting-0056257 | <|start|><|user|>
What is the total rent on a 6-month lease at $850 a month?<|eot|>
<|assistant|>
In total, $5,100 is paid.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is the total rent on a 6-month lease at $850 a month?"
},
{
"role": "assistant",
"content": "In total, $5,100 is paid."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "5100", "printed": "5100", "notation": null} |
nlprog_det-setting-0056259 | Copies cost $10 plus $0.50 for each page beyond 10. How much for 105 pages?
Computation in Python:
```python
pages = 105
base = 10
per_page = 0.5
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 57.5
print(f"{cost:.2f}")
```
The code prints: 57.50
The copy costs $57.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "57.50", "printed": "57.50", "notation": null} |
nlprog_det-setting-0056260 | With 10% off, what does a $60 printer cost?
Here is the program.
```python
price = 60
discount = 10 / 100 # 0.1
sale_price = price * (1 - discount) # 54.0
print(f"{sale_price:.2f}")
```
(stdout: 54.00)
It costs $54.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "54.00", "printed": "54.00", "notation": null} |
nlprog_det-setting-0056261 | <|start|><|user|>
A measure needs at least 67% of 219 votes. How many votes is that, rounded up?<|eot|>
<|assistant|>
At least 147 votes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A measure needs at least 67% of 219 votes. How many votes is that, rounded up?"
},
{
"role": "assistant",
"content": "At least 147 votes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "147", "printed": "147", "notation": null} |
nlprog_det-setting-0056262 | Convert 43.3 km to meters.
Script:
```python
km = 43.3
meters = km * 1000 # 43300.0
print(round(meters))
```
Executed, it shows 43300.
43,300 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "43300", "printed": "43300", "notation": null} |
nlprog_det-setting-0056263 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_unit", "to_unit"]... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\": ... | nlprog_det | setting | original | null | deterministic | [] | [] | 335 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0056264 | <|start|><|user|>
What is the total rent on a 36-month lease at $1,640 a month?<|eot|>
<|assistant|>
```python
monthly_rent = 1640
months = 36
total = monthly_rent * months # 59040
print(total)
```
stdout = 59040
The rent over the term is $59,040.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What is the total rent on a 36-month lease at $1,640 a month?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 1640\nmonths = 36\ntotal = monthly_rent * months # 59040\nprint(total)\n```\nstdout = 59040\n\nThe rent over the term is $59,040."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "59040", "printed": "59040", "notation": null} |
nlprog_det-setting-0056265 | <|start|><|user|>
A $1,500 security deposit has deductions of $60, $45 and $120. How much is refunded?<|eot|>
<|assistant|>
The refund is $1,275.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A $1,500 security deposit has deductions of $60, $45 and $120. How much is refunded?"
},
{
"role": "assistant",
"content": "The refund is $1,275."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "1275", "printed": "1275", "notation": null} |
nlprog_det-setting-0056266 | The paralegal logged 6.5 hours at a rate of $150. How much is billed?
That comes to $975.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 35 | {"gold": "975.00", "printed": "975.00", "notation": null} |
nlprog_det-setting-0056267 | A garage charges $2 an hour, never more than $24 a day. How much for 6 hours?
Python does the arithmetic:
```python
rate = 2
hours = 6
daily_max = 24
cost = min(rate * hours, daily_max) # 12
print(cost)
```
Output of the run — 12
The charge is $12. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "12", "printed": "12", "notation": null} |
nlprog_det-setting-0056268 | A court charges $5 per request plus $0.10 per page after the first 20 pages. What does a 106-page copy cost?
Coded up:
```python
pages = 106
base = 5
per_page = 0.1
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page # 13.6
print(f"{cost:.2f}")
```
# result: 13.60
The copy costs $13.60. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "13.60", "printed": "13.60", "notation": null} |
nlprog_det-setting-0056269 | Printing costs 10 cents a page. What does it cost to print 169 copies of a 13-page handout?
A few lines of Python do it:
```python
pages = 13
copies = 169
cost_per_page = 0.1
cost = pages * copies * cost_per_page # 219.70000000000002
print(f"{cost:.2f}")
```
Console:
219.70
The job costs $219.70. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "219.70", "printed": "219.70", "notation": null} |
nlprog_det-setting-0056270 | <|start|><|system|>
You are a patient tutor.<|eot|>
<|user|>
Counting only Monday through Friday, how many business days are there after October 9, 2024 through October 15, 2024?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2024, 10, 9)
end = date(2024, 10, 15)
count = 0
for k in ran... | chat | [
{
"role": "system",
"content": "You are a patient tutor."
},
{
"role": "user",
"content": "Counting only Monday through Friday, how many business days are there after October 9, 2024 through October 15, 2024?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date... | nlprog_det | setting | original | null | deterministic | [] | [] | 170 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0056271 | Starting from $5,000, the team spends $3,605, $3,376, $1,809. What remains?
A short script:
```python
budget = 5000
expenses = [3605, 3376, 1809]
left = budget - sum(expenses) # -3790
print(left)
```
Out = -3790
The remaining budget is -$3,790. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "-3790", "printed": "-3790", "notation": null} |
nlprog_det-setting-0056272 | <|start|><|user|>
After an initial $6,000, the remainder of a $60,000 grant is paid in 12 equal parts. What is each part?<|eot|>
<|assistant|>
```python
grant = 60000
up_front = 6000
installments = 12
each = (grant - up_front) / installments # 4500.0
print(f"{each:.2f}")
```
(Run result: 4500.00)
$4,500.00 per instal... | chat | [
{
"role": "user",
"content": "After an initial $6,000, the remainder of a $60,000 grant is paid in 12 equal parts. What is each part?"
},
{
"role": "assistant",
"content": "```python\ngrant = 60000\nup_front = 6000\ninstallments = 12\neach = (grant - up_front) / installments # 4500.0\nprint(f\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "4500.00", "printed": "4500.00", "notation": null} |
nlprog_det-setting-0056273 | A class starts at 4:10 PM and lasts 105 minutes. When does it end?
The program:
```python
start = 16 * 60 + 10
end = start + 105
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Program output — 5:55 PM
The class finishes at 5:55 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "5:55 PM", "printed": "5:55 PM", "notation": null} |
nlprog_det-setting-0056274 | A 14 × 8 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?
We write it as a program:
```python
import math
length = 14
width = 8
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 28
print(tiles)
```
(Printed result: 28)
It takes 28 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "28", "printed": "28", "notation": null} |
nlprog_det-setting-0056275 | Parking is $2 per hour with a daily maximum of $20. What do 12 hours cost?
Python version:
```python
rate = 2
hours = 12
daily_max = 20
cost = min(rate * hours, daily_max)
print(cost)
```
# result: 20
Parking costs $20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0056276 | One can of paint covers 250 square feet. How many cans are needed for 603 square feet of wall?
We can compute it in Python.
```python
import math
area = 603
coverage = 250
cans = math.ceil(area / coverage) # 3
print(cans)
```
On running, it outputs: 3
3 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0056277 | A $12,000 grant pays $3,000 up front and the rest in 3 equal installments. How large is each installment?
The Python version:
```python
grant = 12000
up_front = 3000
installments = 3
each = (grant - up_front) / installments # 3000.0
print(f"{each:.2f}")
```
Executed, it shows 3000.00.
$3,000.00 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "3000.00", "printed": "3000.00", "notation": null} |
nlprog_det-setting-0056278 | 20 tape rolls cost $6 apiece. With 6% tax added, what is the total?
Python version:
```python
quantity = 20
unit_price = 6
subtotal = quantity * unit_price # 120
total = subtotal * (1 + 6 / 100) # 127.2
print(f"{total:.2f}")
```
# execution result: 127.20
The total with tax is $127.20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "127.20", "printed": "127.20", "notation": null} |
nlprog_det-setting-0056279 | A 10 × 4 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?
Python version:
```python
import math
length = 10
width = 4
tile = 1
tiles = math.ceil(length * width / (tile * tile))
print(tiles)
```
Printed result: 40
It takes 40 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "40", "printed": "40", "notation": null} |
nlprog_det-setting-0056280 | Monthly rent is $1,800. A tenant moves in with 23 days left in a 31-day month. What is the prorated rent?
We can compute it in Python.
```python
rent = 1800
days_in_month = 31
days_occupied = 23
prorated = rent * days_occupied / days_in_month # 1335.483870967742
print(f"{prorated:.2f}")
```
Shell output: 1335.48
The... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "1335.48", "printed": "1335.48", "notation": null} |
nlprog_det-setting-0056281 | The firm was founded in 2023. How many years had passed by 2062?
start_year = 2023
end_year = 2062
print(end_year - start_year)
The interpreter prints 39.
39 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 56 | {"gold": "39", "printed": "39", "notation": null} |
nlprog_det-setting-0056282 | How many whole days and leftover hours are in 210 hours?
In Python:
```python
hours = 210
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Out: 8 days and 18 hours
That is 8 days and 18 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "8 days and 18 hours", "printed": "8 days and 18 hours", "notation": null} |
nlprog_det-setting-0056283 | <|start|><|system|>
You are an assistant for a small office.<|eot|>
<|user|>
Pack A has 8 items for $12.20. Pack B has 18 items for $23.87. Which has the lower price per item?<|eot|>
<|assistant|>
Pack B is cheaper per item.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are an assistant for a small office."
},
{
"role": "user",
"content": "Pack A has 8 items for $12.20. Pack B has 18 items for $23.87. Which has the lower price per item?"
},
{
"role": "assistant",
"content": "Pack B is cheaper per item."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 66 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0056284 | <|start|><|user|>
At an exchange rate of 1.12 USD per CHF, how many USD is 2,439 CHF?<|eot|>
<|assistant|>
```python
amount = 2439
rate = 1.12
converted = amount * rate
print(f"{converted:.2f}")
```
Run result: 2731.68
It converts to 2,731.68 USD.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At an exchange rate of 1.12 USD per CHF, how many USD is 2,439 CHF?"
},
{
"role": "assistant",
"content": "```python\namount = 2439\nrate = 1.12\nconverted = amount * rate\nprint(f\"{converted:.2f}\")\n```\nRun result: 2731.68\n\nIt converts to 2,731.68 USD."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "2731.68", "printed": "2731.68", "notation": null} |
nlprog_det-setting-0056285 | <|start|><|system|>
Tools (call with JSON):
[{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "interpreter", "description": "A Python interpr... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"target\"]}... | nlprog_det | setting | original | null | deterministic | [] | [] | 325 | {"gold": "16.7", "printed": "16.7", "notation": null} |
nlprog_det-setting-0056286 | A 8-day trip pays $59 a day for meals and $140 a night for lodging (7 nights). What is the total allowance?
In code:
```python
days = 8
meal_rate = 59
lodging_rate = 140
nights = days - 1 # 7
total = days * meal_rate + nights * lodging_rate # 1452
print(total)
```
Printed result — 1452
The allowance is $1,452. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "1452", "printed": "1452", "notation": null} |
nlprog_det-setting-0056287 | Someone born July 16, 1958 turns how old by June 13, 2027? Give the age in whole years.
Coded up:
```python
from datetime import date
born = date(1958, 7, 16) # datetime.date(1958, 7, 16)
on = date(2027, 6, 13) # datetime.date(2027, 6, 13)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 158 | {"gold": "68", "printed": "68", "notation": null} |
nlprog_det-setting-0056288 | <|start|><|system|>
You help paralegals with routine tasks.<|eot|>
<|user|>
An unpaid balance of $12,000 accrues 2% simple interest per month. How much interest accrues in 6 months?<|eot|>
<|assistant|>
balance = 12000
monthly_rate = 2 / 100 # 0.02
months = 6
interest = balance * monthly_rate * months ... | chat | [
{
"role": "system",
"content": "You help paralegals with routine tasks."
},
{
"role": "user",
"content": "An unpaid balance of $12,000 accrues 2% simple interest per month. How much interest accrues in 6 months?"
},
{
"role": "assistant",
"content": " balance = 12000\n monthly_... | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "1440.00", "printed": "1440.00", "notation": null} |
nlprog_det-setting-0056289 | <|start|><|user|>
41 of 50 members attended. What percent attended?<|eot|>
<|assistant|>
Attendance was 82.0%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "41 of 50 members attended. What percent attended?"
},
{
"role": "assistant",
"content": "Attendance was 82.0%."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 31 | {"gold": "82.0", "printed": "82.0", "notation": null} |
nlprog_det-setting-0056290 | A count moves from 800 to 680. By what percent did it change (use a minus sign for a drop)?
Program:
```python
old = 800
new = 680
change = (new - old) / old * 100 # -15.0
print(round(change))
```
The printout reads -15.
The change is -15%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "-15", "printed": "-15", "notation": null} |
nlprog_det-setting-0056291 | Convert 1 h 15 min (the length of a workshop) to minutes.
We can compute it in Python.
```python
hours = 1
minutes = 15
total_minutes = hours * 60 + minutes # 75
print(total_minutes)
```
(Printed: 75)
That is 75 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "75", "printed": "75", "notation": null} |
nlprog_det-setting-0056292 | <|start|><|user|>
Cyrus earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 47-hour week?<|eot|>
<|assistant|>
The weekly pay is $1,010.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Cyrus earns $20.00 an hour and time and a half for hours over 40. What is the pay for a 47-hour week?"
},
{
"role": "assistant",
"content": "The weekly pay is $1,010.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 52 | {"gold": "1010.00", "printed": "1010.00", "notation": null} |
nlprog_det-setting-0056293 | 1 books come back 24 days late, at $0.50 a day each. What is the fine?
Set it up in Python:
```python
per_day = 0.5
days_late = 24
books = 1
fine = per_day * days_late * books # 12.0
print(f"{fine:.2f}")
```
(Execution result: 12.00)
The fine is $12.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "12.00", "printed": "12.00", "notation": null} |
nlprog_det-setting-0056294 | To read 645 pages in 15 days, how many pages per day are needed?
Python, step by step:
```python
pages = 645
days = 15
per_day = pages // days # 43
print(per_day)
```
# out: 43
43 pages a day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "43", "printed": "43", "notation": null} |
nlprog_det-setting-0056295 | What simple interest does $8,000 earn at 5% a year over 3 years?
Computation in Python:
```python
principal = 8000
rate = 5 / 100 # 0.05
years = 3
interest = principal * rate * years # 1200.0
print(f"{interest:.2f}")
```
(Result: 1200.00)
The interest is $1,200.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "1200.00", "printed": "1200.00", "notation": null} |
nlprog_det-setting-0056296 | <|start|><|user|>
A 200-mile drive at a steady 40 mph takes how many minutes?<|eot|>
<|assistant|>
```python
distance = 200
speed = 40
minutes = distance / speed * 60 # 300.0
print(round(minutes))
```
It outputs 300.
300 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 200-mile drive at a steady 40 mph takes how many minutes?"
},
{
"role": "assistant",
"content": "```python\ndistance = 200\nspeed = 40\nminutes = distance / speed * 60 # 300.0\nprint(round(minutes))\n```\nIt outputs 300.\n\n300 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0056297 | <|start|><|user|>
On which weekday does February 23, 2009 fall?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(2009, 2, 23)
print(hearing.strftime("%A"))
```
Execution result: Monday
February 23, 2009 is a Monday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "On which weekday does February 23, 2009 fall?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(2009, 2, 23)\nprint(hearing.strftime(\"%A\"))\n```\nExecution result: Monday\n\nFebruary 23, 2009 is a Monday."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "Monday", "printed": "Monday", "notation": null} |
nlprog_det-setting-0056298 | <|start|><|system|>
You have access to these functions:
[{"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}}, {"name": "fetch_filing", "descr... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\": ... | nlprog_det | setting | original | null | deterministic | [] | [] | 389 | {"gold": "2700", "printed": "2700", "notation": null} |
nlprog_det-setting-0056299 | <|start|><|user|>
2 clients win $30,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?<|eot|>
<|assistant|>
award = 30000
fee = award * 25 / 100
remaining = award - fee
per_client = remaining / 2
print(f"{per_client:.2f}")
Printed = 11250.00
Each client gets $1... | chat | [
{
"role": "user",
"content": "2 clients win $30,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?"
},
{
"role": "assistant",
"content": " award = 30000\n fee = award * 25 / 100\n remaining = award - fee\n per_client = remaining / 2\n print(f\... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "11250.00", "printed": "11250.00", "notation": null} |
nlprog_det-setting-0056300 | Parking is $2 per hour with a daily maximum of $15. What do 12 hours cost?
Let the code do the arithmetic:
```python
rate = 2
hours = 12
daily_max = 15
cost = min(rate * hours, daily_max) # 15
print(cost)
```
The program prints 15.
Parking costs $15. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0056301 | <|start|><|system|>
Avoid unnecessary detail.<|eot|>
<|user|>
3 claimants share a $525 settlement equally. What is each share?<|eot|>
<|assistant|>
Each party receives $175.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Avoid unnecessary detail."
},
{
"role": "user",
"content": "3 claimants share a $525 settlement equally. What is each share?"
},
{
"role": "assistant",
"content": "Each party receives $175."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 43 | {"gold": "175", "printed": "175", "notation": null} |
nlprog_det-setting-0056302 | A 195-mile drive at a steady 45 mph takes how many minutes?
In Python:
```python
distance = 195
speed = 45
minutes = distance / speed * 60 # 260.0
print(round(minutes))
```
The printout reads 260.
The trip takes 260 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "260", "printed": "260", "notation": null} |
nlprog_det-setting-0056303 | <|start|><|system|>
You are a careful assistant.<|eot|>
<|user|>
A 8-day trip pays $79 a day for meals and $140 a night for lodging (7 nights). What is the total allowance?<|eot|>
<|assistant|>
```python
days = 8
meal_rate = 79
lodging_rate = 140
nights = days - 1 # 7
total = days * meal_rate + nights * lodging_rate ... | chat | [
{
"role": "system",
"content": "You are a careful assistant."
},
{
"role": "user",
"content": "A 8-day trip pays $79 a day for meals and $140 a night for lodging (7 nights). What is the total allowance?"
},
{
"role": "assistant",
"content": "```python\ndays = 8\nmeal_rate = 79\nlodgi... | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "1612", "printed": "1612", "notation": null} |
nlprog_det-setting-0056304 | <|start|><|user|>
A garage charges $3 an hour, never more than $18 a day. How much for 6 hours?<|eot|>
<|assistant|>
```python
rate = 3
hours = 6
daily_max = 18
cost = min(rate * hours, daily_max) # 18
print(cost)
```
Run it and it prints: 18
Parking costs $18.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A garage charges $3 an hour, never more than $18 a day. How much for 6 hours?"
},
{
"role": "assistant",
"content": "```python\nrate = 3\nhours = 6\ndaily_max = 18\ncost = min(rate * hours, daily_max) # 18\nprint(cost)\n```\nRun it and it prints: 18\n\nParking cost... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0056305 | <|start|><|user|>
How many weekdays (Monday to Friday) fall after July 24, 2027 up to and including August 1, 2027?<|eot|>
<|assistant|>
There are 5 business days.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many weekdays (Monday to Friday) fall after July 24, 2027 up to and including August 1, 2027?"
},
{
"role": "assistant",
"content": "There are 5 business days."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0056306 | With 30% off, what does a $75 filing cabinet cost?
Computing it:
```python
price = 75
discount = 30 / 100 # 0.3
sale_price = price * (1 - discount) # 52.5
print(f"{sale_price:.2f}")
```
On running, it outputs 52.50.
It costs $52.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "52.50", "printed": "52.50", "notation": null} |
nlprog_det-setting-0056307 | <|start|><|user|>
Monthly rent is $1,500. A tenant moves in with 24 days left in a 30-day month. What is the prorated rent?<|eot|>
<|assistant|>
```python
rent = 1500
days_in_month = 30
days_occupied = 24
prorated = rent * days_occupied / days_in_month # 1200.0
print(f"{prorated:.2f}")
```
# program output: 1200.00
T... | chat | [
{
"role": "user",
"content": "Monthly rent is $1,500. A tenant moves in with 24 days left in a 30-day month. What is the prorated rent?"
},
{
"role": "assistant",
"content": "```python\nrent = 1500\ndays_in_month = 30\ndays_occupied = 24\nprorated = rent * days_occupied / days_in_month # 1200.0... | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "1200.00", "printed": "1200.00", "notation": null} |
nlprog_det-setting-0056308 | A pack of 8 sticky pads sells for $408. What does each cost?
A Python solution:
```python
total = 408
count = 8
per_item = total // count # 51
print(per_item)
```
(Out: 51)
The unit price is $51. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "51", "printed": "51", "notation": null} |
nlprog_det-setting-0056309 | Printing costs 12 cents a page. What does it cost to print 91 copies of a 50-page handout?
As Python:
```python
pages = 50
copies = 91
cost_per_page = 0.12
cost = pages * copies * cost_per_page # 546.0
print(f"{cost:.2f}")
```
Executed, it shows: 546.00
Printing costs $546.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "546.00", "printed": "546.00", "notation": null} |
nlprog_det-setting-0056310 | A lease runs for 12 months at $3,250 per month. How much rent is paid over the whole term?
As a program:
monthly_rent = 3250
months = 12
total = monthly_rent * months # 39000
print(total)
It prints 39000.
The rent over the term is $39,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "39000", "printed": "39000", "notation": null} |
nlprog_det-setting-0056311 | <|start|><|user|>
To read 209 pages in 19 days, how many pages per day are needed?<|eot|>
<|assistant|>
```python
pages = 209
days = 19
per_day = pages // days # 11
print(per_day)
```
On running, it outputs: 11
That is 11 pages per day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "To read 209 pages in 19 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": "```python\npages = 209\ndays = 19\nper_day = pages // days # 11\nprint(per_day)\n```\nOn running, it outputs: 11\n\nThat is 11 pages per day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "11", "printed": "11", "notation": null} |
nlprog_det-setting-0056312 | After an initial $6,000, the remainder of a $30,000 grant is paid in 12 equal parts. What is each part?
One way, in code:
```python
grant = 30000
up_front = 6000
installments = 12
each = (grant - up_front) / installments # 2000.0
print(f"{each:.2f}")
```
Run output — 2000.00
Each installment is $2,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "2000.00", "printed": "2000.00", "notation": null} |
nlprog_det-setting-0056313 | <|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": "calc", "description": "Executes P... | 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 | [] | [] | 290 | {"gold": "67.5", "printed": "67.5", "notation": null} |
nlprog_det-setting-0056314 | After an initial $2,000, the remainder of a $60,000 grant is paid in 6 equal parts. What is each part?
A short script:
```python
grant = 60000
up_front = 2000
installments = 6
each = (grant - up_front) / installments # 9666.666666666666
print(f"{each:.2f}")
```
Execution result — 9666.67
$9,666.67 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "9666.67", "printed": "9666.67", "notation": null} |
nlprog_det-setting-0056315 | After an initial $2,000, the remainder of a $24,000 grant is paid in 6 equal parts. What is each part?
The program:
```python
grant = 24000
up_front = 2000
installments = 6
each = (grant - up_front) / installments # 3666.6666666666665
print(f"{each:.2f}")
```
stdout — 3666.67
$3,666.67 per installment. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "3666.67", "printed": "3666.67", "notation": null} |
nlprog_det-setting-0056316 | <|start|><|user|>
Kofi buys 12 boxes of 8 file boxes each and gives away 7 file boxes. How many file boxes are left?<|eot|>
<|assistant|>
```python
boxes = 12
per_box = 8
given_away = 7
left = boxes * per_box - given_away # 89
print(left)
```
# execution result: 89
That leaves 89 file boxes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Kofi buys 12 boxes of 8 file boxes each and gives away 7 file boxes. How many file boxes are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 12\nper_box = 8\ngiven_away = 7\nleft = boxes * per_box - given_away # 89\nprint(left)\n```\n# execution res... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "89", "printed": "89", "notation": null} |
nlprog_det-setting-0056317 | 8 boxes hold 8 binders each. After 15 are handed out, how many are left?
Python makes this quick:
```python
boxes = 8
per_box = 8
given_away = 15
left = boxes * per_box - given_away # 49
print(left)
```
Out:
49
That leaves 49 binders. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "49", "printed": "49", "notation": null} |
nlprog_det-setting-0056318 | <|start|><|user|>
An office budget of $5,000 has expenses of $3,312, $314, $2,084, $2,698. How much of the budget is left?<|eot|>
<|assistant|>
```python
budget = 5000
expenses = [3312, 314, 2084, 2698]
left = budget - sum(expenses) # -3408
print(left)
```
# console output: -3408
The remaining budget is -$3,408.<|eot... | chat | [
{
"role": "user",
"content": "An office budget of $5,000 has expenses of $3,312, $314, $2,084, $2,698. How much of the budget is left?"
},
{
"role": "assistant",
"content": "```python\nbudget = 5000\nexpenses = [3312, 314, 2084, 2698]\nleft = budget - sum(expenses) # -3408\nprint(left)\n```\n# ... | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "-3408", "printed": "-3408", "notation": null} |
nlprog_det-setting-0056319 | How many days are there from June 12, 2028 to October 20, 2028?
A few lines of Python do it:
```python
from datetime import date
first = date(2028, 6, 12) # datetime.date(2028, 6, 12)
second = date(2028, 10, 20) # datetime.date(2028, 10, 20)
print((second - first).days)
```
Printed: 130
There are 130 days between t... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "130", "printed": "130", "notation": null} |
nlprog_det-setting-0056320 | <|start|><|system|>
You help with homework problems.<|eot|>
<|user|>
An office budget of $5,000 has expenses of $2,828, $1,366. How much of the budget is left?<|eot|>
<|assistant|>
```python
budget = 5000
expenses = [2828, 1366]
left = budget - sum(expenses) # 806
print(left)
```
# execution result: 806
The remaining... | chat | [
{
"role": "system",
"content": "You help with homework problems."
},
{
"role": "user",
"content": "An office budget of $5,000 has expenses of $2,828, $1,366. How much of the budget is left?"
},
{
"role": "assistant",
"content": "```python\nbudget = 5000\nexpenses = [2828, 1366]\nleft... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "806", "printed": "806", "notation": null} |
nlprog_det-setting-0056321 | <|start|><|user|>
4 claimants share a $1,200 settlement equally. What is each share?<|eot|>
<|assistant|>
```python
settlement = 1200
parties = 4
share = settlement // parties # 300
print(share)
```
The script prints 300.
Each party receives $300.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "4 claimants share a $1,200 settlement equally. What is each share?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 1200\nparties = 4\nshare = settlement // parties # 300\nprint(share)\n```\nThe script prints 300.\n\nEach party receives $300."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0056322 | Copies cost $5 plus $0.10 for each page beyond 10. How much for 40 pages?
A few lines of Python do it:
```python
pages = 40
base = 5
per_page = 0.1
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 8.0
print(f"{cost:.2f}")
```
(Out: 8.00)
The copy costs $8.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "8.00", "printed": "8.00", "notation": null} |
nlprog_det-setting-0056323 | A lawyer's fee is 33% of a $150,000 recovery. How large is the fee?
Python, step by step:
```python
recovery = 150000
rate = 33 / 100 # 0.33
fee = recovery * rate # 49500.0
print(f"{fee:.2f}")
```
It prints 49500.00.
The fee is $49,500.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "49500.00", "printed": "49500.00", "notation": null} |
nlprog_det-setting-0056324 | 172 copies of a 4-page packet are printed at $0.12 per page. What is the cost? The job costs $82.56. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "82.56", "printed": "82.56", "notation": null} |
nlprog_det-setting-0056325 | Which is cheaper per unit: 6 for $12.78 (A) or 30 for $29.93 (B)?
Python, step by step:
```python
pack_a = 12.78 / 6
pack_b = 29.93 / 30
cheaper = "A" if pack_a < pack_b else "B"
print(cheaper)
```
It prints B, as expected.
Pack B is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0056326 | 4 claimants share a $15,000 settlement equally. What is each share?
Script:
```python
settlement = 15000
parties = 4
share = settlement // parties # 3750
print(share)
```
Executing it gives 3750, as expected.
Each party receives $3,750. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "3750", "printed": "3750", "notation": null} |
nlprog_det-setting-0056328 | 19 pens cost $6 apiece. With 5% tax added, what is the total?
A Python solution:
quantity = 19
unit_price = 6
subtotal = quantity * unit_price # 114
total = subtotal * (1 + 5 / 100) # 119.7
print(f"{total:.2f}")
# result: 119.70
The invoice total is $119.70. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "119.70", "printed": "119.70", "notation": null} |
nlprog_det-setting-0056329 | 130 volunteers are split into 7 equal teams. How many are on each team, and how many are left over?
Python, step by step:
total = 130
groups = 7
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
(Printed result: 18 each, 4 left over)
18 each, 4 left over. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "18 each, 4 left over", "printed": "18 each, 4 left over", "notation": null} |
nlprog_det-setting-0056330 | A deposition lasted 5 hours and 6 minutes. How many minutes is that?
```python
hours = 5
minutes = 6
total_minutes = hours * 60 + minutes # 306
print(total_minutes)
```
# out: 306
The deposition lasted 306 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "306", "printed": "306", "notation": null} |
nlprog_det-setting-0056331 | Of a $4,000 budget, $800 has been spent. What percent is that?
Python makes this quick:
```python
budget = 4000
spent = 800
percent = spent / budget * 100 # 20.0
print(round(percent, 1))
```
Printed:
20.0
That is 20.0% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "20.0", "printed": "20.0", "notation": null} |
nlprog_det-setting-0056333 | What simple interest does $20,000 earn at 8% a year over 4 years?
Computation in Python:
```python
principal = 20000
rate = 8 / 100 # 0.08
years = 4
interest = principal * rate * years # 6400.0
print(f"{interest:.2f}")
```
Result:
6400.00
It earns $6,400.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "6400.00", "printed": "6400.00", "notation": null} |
nlprog_det-setting-0056334 | <|start|><|user|>
The paralegal logged 2.5 hours at a rate of $300. How much is billed?<|eot|>
<|assistant|>
```python
hours = 2.5
rate = 300
bill = hours * rate # 750.0
print(f"{bill:.2f}")
```
The printout reads: 750.00
The bill is $750.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The paralegal logged 2.5 hours at a rate of $300. How much is billed?"
},
{
"role": "assistant",
"content": "```python\nhours = 2.5\nrate = 300\nbill = hours * rate # 750.0\nprint(f\"{bill:.2f}\")\n```\nThe printout reads: 750.00\n\nThe bill is $750.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "750.00", "printed": "750.00", "notation": null} |
nlprog_det-setting-0056336 | <|start|><|system|>
You help people work with structured data.<|eot|>
<|user|>
Attendance was 13 out of 20. Express it as a percent.<|eot|>
<|assistant|>
```python
present = 13
total = 20
percent = present / total * 100 # 65.0
print(round(percent, 1))
```
Program output — 65.0
65.0% attended.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help people work with structured data."
},
{
"role": "user",
"content": "Attendance was 13 out of 20. Express it as a percent."
},
{
"role": "assistant",
"content": "```python\npresent = 13\ntotal = 20\npercent = present / total * 100 # 65.0\nprin... | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "65.0", "printed": "65.0", "notation": null} |
nlprog_det-setting-0056337 | Express 340 hours in days and hours.
We can compute it in Python.
```python
hours = 340
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Printed: 14 days and 4 hours
340 hours is 14 days and 4 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "14 days and 4 hours", "printed": "14 days and 4 hours", "notation": null} |
nlprog_det-setting-0056339 | A shift runs from 10:50 AM to 4:34 PM. How long is it in minutes?
Python version:
```python
start = 10 * 60 + 50 # 650
end = 16 * 60 + 34 # 994
print(end - start)
```
Result — 344
344 minutes pass. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "344", "printed": "344", "notation": null} |
nlprog_det-setting-0056340 | <|start|><|system|>
Tools (call with JSON):
{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}
{"name": "compute", "description": "Use for arithmetic and... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"target\"]}}... | nlprog_det | setting | original | null | deterministic | [] | [] | 305 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0056341 | <|start|><|system|>
You help with homework problems.<|eot|>
<|user|>
A settlement of $36,000 is split equally among 8 parties. How much does each party receive?<|eot|>
<|assistant|>
```python
settlement = 36000
parties = 8
share = settlement // parties # 4500
print(share)
```
Printed: 4500
Each party receives $4,500.... | chat | [
{
"role": "system",
"content": "You help with homework problems."
},
{
"role": "user",
"content": "A settlement of $36,000 is split equally among 8 parties. How much does each party receive?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 36000\nparties = 8\nshare = se... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "4500", "printed": "4500", "notation": null} |
nlprog_det-setting-0056343 | What simple interest does $5,000 earn at 4% a year over 3 years?
The program:
```python
principal = 5000
rate = 4 / 100 # 0.04
years = 3
interest = principal * rate * years # 600.0
print(f"{interest:.2f}")
```
That prints 600.00.
It earns $600.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "600.00", "printed": "600.00", "notation": null} |
nlprog_det-setting-0056344 | What commission does Mateo make on $25,635 in sales at 8%?
Program:
```python
sales = 25635
rate = 8 / 100 # 0.08
commission = sales * rate # 2050.8
print(f"{commission:.2f}")
```
Console:
2050.80
Mateo earns $2,050.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "2050.80", "printed": "2050.80", "notation": null} |
nlprog_det-setting-0056345 | Which is cheaper per unit: 8 for $7.60 (A) or 18 for $31.89 (B)?
Pack A is cheaper per item. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 39 | {"gold": "A", "printed": "A", "notation": null} |
nlprog_det-setting-0056346 | A water bill is $20 plus $3.50 per thousand gallons beyond the first 0 thousand. What is the bill for 23 thousand gallons?
The computation:
```python
base = 20
rate = 3.5
used = 23
free = 0
bill = base + rate * max(0, used - free) # 100.5
print(f"{bill:.2f}")
```
This prints 100.50.
$100.50 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "100.50", "printed": "100.50", "notation": null} |
nlprog_det-setting-0056348 | <|start|><|system|>
Be brief and correct.<|eot|>
<|user|>
With 30% off, what does a $75 kettle cost?<|eot|>
<|assistant|>
It costs $52.50.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be brief and correct."
},
{
"role": "user",
"content": "With 30% off, what does a $75 kettle cost?"
},
{
"role": "assistant",
"content": "It costs $52.50."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "52.50", "printed": "52.50", "notation": null} |
nlprog_det-setting-0056349 | A claim accrued on October 3, 2024. The limitations period is 3 years. On what date does it expire?
A Python solution:
```python
from datetime import date
accrued = date(2024, 10, 3) # datetime.date(2024, 10, 3)
years = 3
expires = accrued.replace(year=accrued.year + years) # datetime.date(2027, 10, 3)
print(expires... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "2027-10-03", "printed": "2027-10-03", "notation": null} |
nlprog_det-setting-0056350 | <|start|><|user|>
37 labels cost $5 apiece. With 7% tax added, what is the total?<|eot|>
<|assistant|>
quantity = 37
unit_price = 5
subtotal = quantity * unit_price # 185
total = subtotal * (1 + 7 / 100) # 197.95000000000002
print(f"{total:.2f}")
Run result = 197.95
The total with tax is $197.95.... | chat | [
{
"role": "user",
"content": "37 labels cost $5 apiece. With 7% tax added, what is the total?"
},
{
"role": "assistant",
"content": " quantity = 37\n unit_price = 5\n subtotal = quantity * unit_price # 185\n total = subtotal * (1 + 7 / 100) # 197.95000000000002\n print(f\"{total... | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "197.95", "printed": "197.95", "notation": null} |
nlprog_det-setting-0056351 | <|start|><|system|>
You have access to these functions:
{"name": "eval_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|>
<|user|>
What day of t... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"eval_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"re... | nlprog_det | setting | original | null | deterministic | [] | [] | 205 | {"gold": "Thursday", "printed": "Thursday", "notation": null} |
nlprog_det-setting-0056352 | Jonas has 16 documents to file, and each filing costs $125. How much are the filing fees in total?
Python:
```python
fee = 125
filings = 16
total = fee * filings # 2000
print(total)
```
Out — 2000
The total fee is $2,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "2000", "printed": "2000", "notation": null} |
nlprog_det-setting-0056354 | <|start|><|user|>
Revenue is $38,000 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|>
<|assistant|>
Profit is 5.3% of revenue.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Revenue is $38,000 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?"
},
{
"role": "assistant",
"content": "Profit is 5.3% of revenue."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 48 | {"gold": "5.3", "printed": "5.3", "notation": null} |
nlprog_det-setting-0056355 | <|start|><|system|>
Keep answers short and correct.<|eot|>
<|user|>
Signe earns a 10% commission on $42,573 of sales. What is the commission?<|eot|>
<|assistant|>
```python
sales = 42573
rate = 10 / 100 # 0.1
commission = sales * rate # 4257.3
print(f"{commission:.2f}")
```
That prints: 4257.30
The commission is $4,... | chat | [
{
"role": "system",
"content": "Keep answers short and correct."
},
{
"role": "user",
"content": "Signe earns a 10% commission on $42,573 of sales. What is the commission?"
},
{
"role": "assistant",
"content": "```python\nsales = 42573\nrate = 10 / 100 # 0.1\ncommission = sales * ra... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "4257.30", "printed": "4257.30", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.