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-0053350 | Convert 52.5 km to meters.
A few lines of Python do it:
```python
km = 52.5
meters = km * 1000 # 52500.0
print(round(meters))
```
Out: 52500
52,500 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "52500", "printed": "52500", "notation": null} |
nlprog_det-setting-0053351 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "eval_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "business_days"... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"eval_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}... | nlprog_det | setting | original | null | deterministic | [] | [] | 344 | {"gold": "29", "printed": "29", "notation": null} |
nlprog_det-setting-0053352 | A 135-mile drive at a steady 60 mph takes how many minutes?
The trip takes 135 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 28 | {"gold": "135", "printed": "135", "notation": null} |
nlprog_det-setting-0053353 | <|start|><|system|>
You can call tools. Available tools:
{"name": "sandbox_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|>
<|user|>
A trial runs from ... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"sandbox_python\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require... | nlprog_det | setting | original | null | deterministic | [] | [] | 250 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0053354 | <|start|><|user|>
9 boxes hold 10 tape rolls each. After 5 are handed out, how many are left?<|eot|>
<|assistant|>
boxes = 9
per_box = 10
given_away = 5
left = boxes * per_box - given_away # 85
print(left)
Execution prints 85, as expected.
85 tape rolls are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "9 boxes hold 10 tape rolls each. After 5 are handed out, how many are left?"
},
{
"role": "assistant",
"content": " boxes = 9\n per_box = 10\n given_away = 5\n left = boxes * per_box - given_away # 85\n print(left)\nExecution prints 85, as expected.\... | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "85", "printed": "85", "notation": null} |
nlprog_det-setting-0053355 | <|start|><|system|>
Tools (call with JSON):
[{"name": "calculator", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
A customer buys 3 flash drives at... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"calculator\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\... | nlprog_det | setting | original | null | deterministic | [] | [] | 252 | {"gold": "37", "printed": "37", "notation": null} |
nlprog_det-setting-0053356 | Convert 5 h 46 min (the length of a workshop) to minutes.
That is 346 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 26 | {"gold": "346", "printed": "346", "notation": null} |
nlprog_det-setting-0053357 | <|start|><|system|>
You are a study helper for students.<|eot|>
<|user|>
Fixed costs are $2,500. Each unit sells for $40 and costs $32 to make. How many units must be sold to break even?<|eot|>
<|assistant|>
```python
import math
fixed = 2500
price = 40
variable = 32
units = math.ceil(fixed / (price - variable)) # 313... | chat | [
{
"role": "system",
"content": "You are a study helper for students."
},
{
"role": "user",
"content": "Fixed costs are $2,500. Each unit sells for $40 and costs $32 to make. How many units must be sold to break even?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfixe... | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "313", "printed": "313", "notation": null} |
nlprog_det-setting-0053358 | How many meters are in 68.9 kilometers?
Code:
```python
km = 68.9
meters = km * 1000 # 68900.0
print(round(meters))
```
It prints: 68900
68,900 m. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "68900", "printed": "68900", "notation": null} |
nlprog_det-setting-0053359 | <|start|><|user|>
Beatriz drove 301 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?<|eot|>
<|assistant|>
Beatriz is owed $195.65.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Beatriz drove 301 miles for work. Mileage is reimbursed at 65 cents a mile. How much is the reimbursement?"
},
{
"role": "assistant",
"content": "Beatriz is owed $195.65."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 52 | {"gold": "195.65", "printed": "195.65", "notation": null} |
nlprog_det-setting-0053360 | <|start|><|system|>
The following tools are available. Call one when it helps.
{"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",... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, ... | nlprog_det | setting | original | null | deterministic | [] | [] | 350 | {"gold": "3333.33", "printed": "3333.33", "notation": null} |
nlprog_det-setting-0053361 | A 21-day notice period begins on January 28, 2018. On what date does it end?
A Python solution:
```python
from datetime import date, timedelta
start = date(2018, 1, 28) # datetime.date(2018, 1, 28)
end = start + timedelta(days=21) # datetime.date(2018, 2, 18)
print(end.isoformat())
```
It outputs 2018-02-18.
That d... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "2018-02-18", "printed": "2018-02-18", "notation": null} |
nlprog_det-setting-0053362 | <|start|><|user|>
One can of paint covers 400 square feet. How many cans are needed for 206 square feet of wall?<|eot|>
<|assistant|>
```python
import math
area = 206
coverage = 400
cans = math.ceil(area / coverage) # 1
print(cans)
```
Output of the run — 1
Buy 1 cans.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "One can of paint covers 400 square feet. How many cans are needed for 206 square feet of wall?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 206\ncoverage = 400\ncans = math.ceil(area / coverage) # 1\nprint(cans)\n```\nOutput of the run — 1\... | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "1", "printed": "1", "notation": null} |
nlprog_det-setting-0053364 | <|start|><|system|>
Keep answers short and correct.<|eot|>
<|user|>
A $48,000 grant pays $0 up front and the rest in 4 equal installments. How large is each installment?<|eot|>
<|assistant|>
```python
grant = 48000
up_front = 0
installments = 4
each = (grant - up_front) / installments # 12000.0
print(f"{each:.2f}")
``... | chat | [
{
"role": "system",
"content": "Keep answers short and correct."
},
{
"role": "user",
"content": "A $48,000 grant pays $0 up front and the rest in 4 equal installments. How large is each installment?"
},
{
"role": "assistant",
"content": "```python\ngrant = 48000\nup_front = 0\ninsta... | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "12000.00", "printed": "12000.00", "notation": null} |
nlprog_det-setting-0053365 | <|start|><|user|>
A settlement of $7,350 is split equally among 5 parties. How much does each party receive?<|eot|>
<|assistant|>
settlement = 7350
parties = 5
share = settlement // parties # 1470
print(share)
That prints 1470.
Each party receives $1,470.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A settlement of $7,350 is split equally among 5 parties. How much does each party receive?"
},
{
"role": "assistant",
"content": " settlement = 7350\n parties = 5\n share = settlement // parties # 1470\n print(share)\nThat prints 1470.\n\nEach party rec... | nlprog_det | setting | original | null | deterministic | [] | [] | 76 | {"gold": "1470", "printed": "1470", "notation": null} |
nlprog_det-setting-0053366 | Meals are $59 per day and lodging $110 per night. What is the allowance for 3 days and 2 nights?
Python makes this quick:
```python
days = 3
meal_rate = 59
lodging_rate = 110
nights = days - 1 # 2
total = days * meal_rate + nights * lodging_rate # 397
print(total)
```
Executed, it shows: 397
The allowance is $397. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "397", "printed": "397", "notation": null} |
nlprog_det-setting-0053368 | A count moves from 2,000 to 2,100. By what percent did it change (use a minus sign for a drop)?
Here is the program.
```python
old = 2000
new = 2100
change = (new - old) / old * 100 # 5.0
print(round(change))
```
Running it prints 5.
It changed by 5%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0053369 | One can of paint covers 350 square feet. How many cans are needed for 456 square feet of wall?
Computation in Python:
import math
area = 456
coverage = 350
cans = math.ceil(area / coverage) # 2
print(cans)
This prints: 2
Buy 2 cans. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "2", "printed": "2", "notation": null} |
nlprog_det-setting-0053370 | <|start|><|user|>
A court charges $10 per request plus $0.50 per page after the first 10 pages. What does a 81-page copy cost?<|eot|>
<|assistant|>
```python
pages = 81
base = 10
per_page = 0.5
free_pages = 10
cost = base + max(0, pages - free_pages) * per_page # 45.5
print(f"{cost:.2f}")
```
The printout reads 45.50.... | chat | [
{
"role": "user",
"content": "A court charges $10 per request plus $0.50 per page after the first 10 pages. What does a 81-page copy cost?"
},
{
"role": "assistant",
"content": "```python\npages = 81\nbase = 10\nper_page = 0.5\nfree_pages = 10\ncost = base + max(0, pages - free_pages) * per_page... | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "45.50", "printed": "45.50", "notation": null} |
nlprog_det-setting-0053371 | Parking is $3 per hour with a daily maximum of $18. What do 2 hours cost?
```python
rate = 3
hours = 2
daily_max = 18
cost = min(rate * hours, daily_max) # 6
print(cost)
```
Executing it gives 6.
The charge is $6. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0053372 | Filing fees are $350 per document. What do 17 filings cost?
Python version:
```python
fee = 350
filings = 17
total = fee * filings # 5950
print(total)
```
On running, it outputs 5950.
$5,950 in filing fees. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "5950", "printed": "5950", "notation": null} |
nlprog_det-setting-0053373 | <|start|><|system|>
Tools (call with JSON):
[{"name": "code_runner", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
If a 6-year limitat... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"code_runner\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required... | nlprog_det | setting | original | null | deterministic | [] | [] | 250 | {"gold": "2030-02-21", "printed": "2030-02-21", "notation": null} |
nlprog_det-setting-0053374 | A water bill is $20 plus $4.75 per thousand gallons beyond the first 0 thousand. What is the bill for 3 thousand gallons?
Here is the program.
```python
base = 20
rate = 4.75
used = 3
free = 0
bill = base + rate * max(0, used - free)
print(f"{bill:.2f}")
```
Output: 34.25
$34.25 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "34.25", "printed": "34.25", "notation": null} |
nlprog_det-setting-0053375 | <|start|><|user|>
Copies cost $10 plus $0.50 for each page beyond 0. How much for 11 pages?<|eot|>
<|assistant|>
```python
pages = 11
base = 10
per_page = 0.5
free_pages = 0
cost = base + max(0, pages - free_pages) * per_page # 15.5
print(f"{cost:.2f}")
```
Executed, it shows 15.50.
The copy costs $15.50.<|eot|>
<|en... | chat | [
{
"role": "user",
"content": "Copies cost $10 plus $0.50 for each page beyond 0. How much for 11 pages?"
},
{
"role": "assistant",
"content": "```python\npages = 11\nbase = 10\nper_page = 0.5\nfree_pages = 0\ncost = base + max(0, pages - free_pages) * per_page # 15.5\nprint(f\"{cost:.2f}\")\n``... | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "15.50", "printed": "15.50", "notation": null} |
nlprog_det-setting-0053376 | 94 copies of a 48-page packet are printed at $0.15 per page. What is the cost?
Computing it:
```python
pages = 48
copies = 94
cost_per_page = 0.15
cost = pages * copies * cost_per_page # 676.8
print(f"{cost:.2f}")
```
The program outputs 676.80.
The job costs $676.80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "676.80", "printed": "676.80", "notation": null} |
nlprog_det-setting-0053377 | At a 7% tax rate, what is the tax on $728.21?
A Python solution:
```python
price = 728.21
tax_rate = 7 / 100 # 0.07
tax = price * tax_rate # 50.974700000000006
print(f"{tax:.2f}")
```
Executed, it shows: 50.97
$50.97 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "50.97", "printed": "50.97", "notation": null} |
nlprog_det-setting-0053378 | <|start|><|system|>
You help paralegals with routine tasks.<|eot|>
<|user|>
How much sales tax is charged on a $107.86 purchase at 6%?<|eot|>
<|assistant|>
$6.47 in tax.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You help paralegals with routine tasks."
},
{
"role": "user",
"content": "How much sales tax is charged on a $107.86 purchase at 6%?"
},
{
"role": "assistant",
"content": "$6.47 in tax."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 49 | {"gold": "6.47", "printed": "6.47", "notation": null} |
nlprog_det-setting-0053379 | A pack of 5 ink cartridges sells for $55. What does each cost?
In Python:
```python
total = 55
count = 5
per_item = total // count # 11
print(per_item)
```
On running, it outputs 11.
The unit price is $11. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "11", "printed": "11", "notation": null} |
nlprog_det-setting-0053380 | Papers were served by mail on December 19, 2022. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date?
The Python version:
```python
from datetime import date, timedelta
served = date(2022, 12, 19) # datetime.date(2022, 12, 19)
response_days = 28
mail_days = 3
due = served + ti... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 178 | {"gold": "2023-01-19", "printed": "2023-01-19", "notation": null} |
nlprog_det-setting-0053381 | <|start|><|user|>
A $30,000 grant pays $6,000 up front and the rest in 4 equal installments. How large is each installment?<|eot|>
<|assistant|>
```python
grant = 30000
up_front = 6000
installments = 4
each = (grant - up_front) / installments # 6000.0
print(f"{each:.2f}")
```
Run result = 6000.00
$6,000.00 per instal... | chat | [
{
"role": "user",
"content": "A $30,000 grant pays $6,000 up front and the rest in 4 equal installments. How large is each installment?"
},
{
"role": "assistant",
"content": "```python\ngrant = 30000\nup_front = 6000\ninstallments = 4\neach = (grant - up_front) / installments # 6000.0\nprint(f\... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "6000.00", "printed": "6000.00", "notation": null} |
nlprog_det-setting-0053382 | <|start|><|system|>
You have access to these functions:
[{"name": "calculator", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}, {"name": "fetch_filing", "descrip... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"calculator\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"requir... | nlprog_det | setting | original | null | deterministic | [] | [] | 412 | {"gold": "10.00", "printed": "10.00", "notation": null} |
nlprog_det-setting-0053383 | What day of the week is March 13, 2006?
Computing it:
```python
from datetime import date
hearing = date(2006, 3, 13) # datetime.date(2006, 3, 13)
print(hearing.strftime("%A"))
```
The run gives Monday, as expected.
It is a Monday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "Monday", "printed": "Monday", "notation": null} |
nlprog_det-setting-0053384 | How many days are there from May 24, 2024 to November 9, 2024?
Let the code do the arithmetic:
```python
from datetime import date
first = date(2024, 5, 24) # datetime.date(2024, 5, 24)
second = date(2024, 11, 9) # datetime.date(2024, 11, 9)
print((second - first).days)
```
stdout — 169
It is 169 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "169", "printed": "169", "notation": null} |
nlprog_det-setting-0053385 | Split $2,560 between Wen and Mei in the ratio 3 to 5. What is Wen's share?
Programmatically:
```python
total = 2560
parts_a = 3
parts_b = 5
share_a = total * parts_a // (parts_a + parts_b) # 960
print(share_a)
```
The interpreter prints: 960
Wen's share is $960. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "960", "printed": "960", "notation": null} |
nlprog_det-setting-0053386 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
Fixed costs are $6,000. Each unit sells for $20 and costs $15 to make. How many units must be sold to break even?<|eot|>
<|assistant|>
```python
import math
fixed = 6000
price = 20
variable = 15
units = math.ceil(fixed / (price - variable)) # 1... | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "Fixed costs are $6,000. Each unit sells for $20 and costs $15 to make. How many units must be sold to break even?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfi... | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "1200", "printed": "1200", "notation": null} |
nlprog_det-setting-0053387 | A 60-mile drive at a steady 30 mph takes how many minutes?
Python does the arithmetic:
```python
distance = 60
speed = 30
minutes = distance / speed * 60 # 120.0
print(round(minutes))
```
# output: 120
The trip takes 120 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "120", "printed": "120", "notation": null} |
nlprog_det-setting-0053388 | $10,000 is invested at 3% compounded yearly. What is it worth after 5 years?
A short script:
```python
principal = 10000
rate = 3 / 100 # 0.03
years = 5
value = principal * (1 + rate) ** years # 11592.740743
print(f"{value:.2f}")
```
When run, it prints: 11592.74
It is worth $11,592.74. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "11592.74", "printed": "11592.74", "notation": null} |
nlprog_det-setting-0053389 | Water costs $12 a month plus $4.20 for each 1,000 gallons over 3,000. What is owed for 13,000 gallons?
Python, step by step:
```python
base = 12
rate = 4.2
used = 13
free = 3
bill = base + rate * max(0, used - free) # 54.0
print(f"{bill:.2f}")
```
Python prints: 54.00
The bill is $54.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "54.00", "printed": "54.00", "notation": null} |
nlprog_det-setting-0053390 | How many 2-foot square tiles cover a 20 ft by 7 ft floor (round up)?
Let's compute it with Python.
```python
import math
length = 20
width = 7
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 35
print(tiles)
```
Printed — 35
It takes 35 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "35", "printed": "35", "notation": null} |
nlprog_det-setting-0053391 | A clerk's office charges $350 for each filing. Olga submits 13 filings. What is the total fee?
The filings cost $4,550 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "4550", "printed": "4550", "notation": null} |
nlprog_det-setting-0053392 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "interpreter", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"interpreter\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": ... | nlprog_det | setting | original | null | deterministic | [] | [] | 301 | {"gold": "41.49", "printed": "41.49", "notation": null} |
nlprog_det-setting-0053393 | <|start|><|user|>
26 hard drives cost $15 apiece. With 5% tax added, what is the total?<|eot|>
<|assistant|>
```python
quantity = 26
unit_price = 15
subtotal = quantity * unit_price # 390
total = subtotal * (1 + 5 / 100) # 409.5
print(f"{total:.2f}")
```
Executed, it shows 409.50.
The total with tax is $409.50.<|eot... | chat | [
{
"role": "user",
"content": "26 hard drives cost $15 apiece. With 5% tax added, what is the total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 26\nunit_price = 15\nsubtotal = quantity * unit_price # 390\ntotal = subtotal * (1 + 5 / 100) # 409.5\nprint(f\"{total:.2f}\")\n```\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "409.50", "printed": "409.50", "notation": null} |
nlprog_det-setting-0053396 | Quinn was born on November 15, 1968. How old is Quinn on March 22, 2028?
```python
from datetime import date
born = date(1968, 11, 15) # datetime.date(1968, 11, 15)
on = date(2028, 3, 22) # datetime.date(2028, 3, 22)
age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 59
print(age)
```
Run i... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "59", "printed": "59", "notation": null} |
nlprog_det-setting-0053397 | <|start|><|user|>
At $30.49 an hour, what does 12 hours of work pay?<|eot|>
<|assistant|>
```python
rate = 30.49
hours = 12
earnings = rate * hours # 365.88
print(f"{earnings:.2f}")
```
Printed:
365.88
The pay is $365.88.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $30.49 an hour, what does 12 hours of work pay?"
},
{
"role": "assistant",
"content": "```python\nrate = 30.49\nhours = 12\nearnings = rate * hours # 365.88\nprint(f\"{earnings:.2f}\")\n```\nPrinted:\n365.88\n\nThe pay is $365.88."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "365.88", "printed": "365.88", "notation": null} |
nlprog_det-setting-0053398 | A 264-page report must be reviewed in 8 days. How many pages a day is that, evenly?
Set it up in Python:
```python
pages = 264
days = 8
per_day = pages // days # 33
print(per_day)
```
This prints: 33
That is 33 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "33", "printed": "33", "notation": null} |
nlprog_det-setting-0053399 | <|start|><|user|>
Water costs $20 a month plus $4.75 for each 1,000 gallons over 3,000. What is owed for 11,000 gallons?<|eot|>
<|assistant|>
```python
base = 20
rate = 4.75
used = 11
free = 3
bill = base + rate * max(0, used - free) # 58.0
print(f"{bill:.2f}")
```
# output: 58.00
The bill is $58.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Water costs $20 a month plus $4.75 for each 1,000 gallons over 3,000. What is owed for 11,000 gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 20\nrate = 4.75\nused = 11\nfree = 3\nbill = base + rate * max(0, used - free) # 58.0\nprint(f\"{bill:.2f... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "58.00", "printed": "58.00", "notation": null} |
nlprog_det-setting-0053400 | 3 swims at 250 calories each burn how many calories in total?
Python:
```python
per_session = 250
sessions = 3
total = per_session * sessions # 750
print(total)
```
Running it prints 750.
That burns 750 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "750", "printed": "750", "notation": null} |
nlprog_det-setting-0053401 | <|start|><|user|>
A jacket costs $80. It is 20% off. What is the sale price?<|eot|>
<|assistant|>
```python
price = 80
discount = 20 / 100 # 0.2
sale_price = price * (1 - discount) # 64.0
print(f"{sale_price:.2f}")
```
Executed, it shows 64.00.
It costs $64.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A jacket costs $80. It is 20% off. What is the sale price?"
},
{
"role": "assistant",
"content": "```python\nprice = 80\ndiscount = 20 / 100 # 0.2\nsale_price = price * (1 - discount) # 64.0\nprint(f\"{sale_price:.2f}\")\n```\nExecuted, it shows 64.00.\n\nIt costs... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "64.00", "printed": "64.00", "notation": null} |
nlprog_det-setting-0053402 | <|start|><|system|>
Answer accurately and briefly.<|eot|>
<|user|>
A water bill is $15 plus $4.20 per thousand gallons beyond the first 3 thousand. What is the bill for 18 thousand gallons?<|eot|>
<|assistant|>
```python
base = 15
rate = 4.2
used = 18
free = 3
bill = base + rate * max(0, used - free) # 78.0
print(f"{b... | chat | [
{
"role": "system",
"content": "Answer accurately and briefly."
},
{
"role": "user",
"content": "A water bill is $15 plus $4.20 per thousand gallons beyond the first 3 thousand. What is the bill for 18 thousand gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 15\nrat... | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "78.00", "printed": "78.00", "notation": null} |
nlprog_det-setting-0053403 | <|start|><|user|>
Pack A has 6 items for $6.15. Pack B has 24 items for $14.08. Which has the lower price per item?<|eot|>
<|assistant|>
```python
pack_a = 6.15 / 6
pack_b = 14.08 / 24
cheaper = "A" if pack_a < pack_b else "B"
print(cheaper)
```
The program prints B.
Pack B is cheaper per item.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Pack A has 6 items for $6.15. Pack B has 24 items for $14.08. Which has the lower price per item?"
},
{
"role": "assistant",
"content": "```python\npack_a = 6.15 / 6\npack_b = 14.08 / 24\ncheaper = \"A\" if pack_a < pack_b else \"B\"\nprint(cheaper)\n```\nThe progra... | nlprog_det | setting | original | null | deterministic | [] | [] | 118 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0053404 | <|start|><|user|>
At 60 miles per hour, how many minutes does a 135-mile trip take?<|eot|>
<|assistant|>
```python
distance = 135
speed = 60
minutes = distance / speed * 60 # 135.0
print(round(minutes))
```
Result = 135
The trip takes 135 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At 60 miles per hour, how many minutes does a 135-mile trip take?"
},
{
"role": "assistant",
"content": "```python\ndistance = 135\nspeed = 60\nminutes = distance / speed * 60 # 135.0\nprint(round(minutes))\n```\nResult = 135\n\nThe trip takes 135 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "135", "printed": "135", "notation": null} |
nlprog_det-setting-0053405 | <|start|><|system|>
Avoid unnecessary detail.<|eot|>
<|user|>
7 runs at 350 calories each burn how many calories in total?<|eot|>
<|assistant|>
```python
per_session = 350
sessions = 7
total = per_session * sessions # 2450
print(total)
```
# execution result: 2450
2450 calories in total.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Avoid unnecessary detail."
},
{
"role": "user",
"content": "7 runs at 350 calories each burn how many calories in total?"
},
{
"role": "assistant",
"content": "```python\nper_session = 350\nsessions = 7\ntotal = per_session * sessions # 2450\nprint(to... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "2450", "printed": "2450", "notation": null} |
nlprog_det-setting-0053406 | A 9-day trip pays $64 a day for meals and $140 a night for lodging (8 nights). What is the total allowance?
```python
days = 9
meal_rate = 64
lodging_rate = 140
nights = days - 1 # 8
total = days * meal_rate + nights * lodging_rate # 1696
print(total)
```
The run gives 1696.
That comes to $1,696. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "1696", "printed": "1696", "notation": null} |
nlprog_det-setting-0053407 | <|start|><|system|>
You may call the tools below.
[{"name": "code_runner", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
Split $1,515 between... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"code_runner\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\... | nlprog_det | setting | original | null | deterministic | [] | [] | 241 | {"gold": "505", "printed": "505", "notation": null} |
nlprog_det-setting-0053408 | <|start|><|user|>
A room is 22 feet by 17 feet. Flooring costs $6 per square foot. What does it cost to floor the room?<|eot|>
<|assistant|>
The flooring costs $2,244.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A room is 22 feet by 17 feet. Flooring costs $6 per square foot. What does it cost to floor the room?"
},
{
"role": "assistant",
"content": "The flooring costs $2,244."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 47 | {"gold": "2244", "printed": "2244", "notation": null} |
nlprog_det-setting-0053409 | With 15% off, what does a $45 backpack cost?
```python
price = 45
discount = 15 / 100 # 0.15
sale_price = price * (1 - discount) # 38.25
print(f"{sale_price:.2f}")
```
The run gives: 38.25
It costs $38.25. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "38.25", "printed": "38.25", "notation": null} |
nlprog_det-setting-0053410 | From 2014 to 2047, how many years is that?
Let's compute it with Python.
```python
start_year = 2014
end_year = 2047
print(end_year - start_year)
```
# result: 33
That is 33 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 75 | {"gold": "33", "printed": "33", "notation": null} |
nlprog_det-setting-0053411 | A 32 lb package ships at $8 base plus $1.50/lb. What is the charge?
Code:
```python
base = 8
per_pound = 1.5
weight = 32
cost = base + per_pound * weight # 56.0
print(f"{cost:.2f}")
```
Executing it gives 56.00.
The charge is $56.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "56.00", "printed": "56.00", "notation": null} |
nlprog_det-setting-0053412 | <|start|><|system|>
You are a teaching assistant.<|eot|>
<|user|>
How much sales tax is charged on a $813.68 purchase at 8%?<|eot|>
<|assistant|>
```python
price = 813.68
tax_rate = 8 / 100 # 0.08
tax = price * tax_rate # 65.0944
print(f"{tax:.2f}")
```
# program output: 65.09
$65.09 in tax.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a teaching assistant."
},
{
"role": "user",
"content": "How much sales tax is charged on a $813.68 purchase at 8%?"
},
{
"role": "assistant",
"content": "```python\nprice = 813.68\ntax_rate = 8 / 100 # 0.08\ntax = price * tax_rate # 65.0944\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "65.09", "printed": "65.09", "notation": null} |
nlprog_det-setting-0053413 | <|start|><|user|>
Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 43 hours?<|eot|>
<|assistant|>
```python
rate = 20.0
hours = 43
regular = 40 * rate # 800.0
overtime = (hours - 40) * rate * 1.5 # 90.0
pay = regular + overtime # 890.0
print(f"{pay:.2f}")
```
The script prints: ... | chat | [
{
"role": "user",
"content": "Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 43 hours?"
},
{
"role": "assistant",
"content": "```python\nrate = 20.0\nhours = 43\nregular = 40 * rate # 800.0\novertime = (hours - 40) * rate * 1.5 # 90.0\npay = regular + ov... | nlprog_det | setting | original | null | deterministic | [] | [] | 143 | {"gold": "890.00", "printed": "890.00", "notation": null} |
nlprog_det-setting-0053414 | A client paid a $10,000 retainer. The firm has billed 2 hours at $250 per hour. How much of the retainer is left?
Let's compute it with Python.
```python
retainer = 10000
hours = 2
rate = 250
left = retainer - hours * rate # 9500
print(left)
```
Executed, it shows 9500.
$9,500 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "9500", "printed": "9500", "notation": null} |
nlprog_det-setting-0053415 | $2,000 is invested at 4% compounded yearly. What is it worth after 4 years?
Computing it:
```python
principal = 2000
rate = 4 / 100 # 0.04
years = 4
value = principal * (1 + rate) ** years # 2339.7171200000003
print(f"{value:.2f}")
```
# console output: 2339.72
It is worth $2,339.72. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 127 | {"gold": "2339.72", "printed": "2339.72", "notation": null} |
nlprog_det-setting-0053417 | 136 volunteers are split into 7 equal teams. How many are on each team, and how many are left over?
Python, step by step:
```python
total = 136
groups = 7
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
It prints 19 each, 3 left over, as expected.
19 each, 3 left ove... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "19 each, 3 left over", "printed": "19 each, 3 left over", "notation": null} |
nlprog_det-setting-0053418 | With $36,000 in costs and $36,500 in revenue, what percent of revenue is profit? Round to one decimal.
Python, step by step:
```python
revenue = 36500
costs = 36000
profit = revenue - costs # 500
margin = profit / revenue * 100 # 1.36986301369863
print(round(margin, 1))
```
Run result: 1.4
The margin is 1.4%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "1.4", "printed": "1.4", "notation": null} |
nlprog_det-setting-0053419 | Counting the first and last day, how many days are there from August 5, 2026 through August 10, 2026?
A Python solution:
```python
from datetime import date
first = date(2026, 8, 5) # datetime.date(2026, 8, 5)
last = date(2026, 8, 10) # datetime.date(2026, 8, 10)
days = (last - first).days + 1 # 6
print(days)
```
I... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0053420 | A lawyer's fee is 30% of a $25,000 recovery. How large is the fee?
The fee is $7,500.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 33 | {"gold": "7500.00", "printed": "7500.00", "notation": null} |
nlprog_det-setting-0053421 | Papers were served by mail on March 25, 2019. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date?
One way, in code:
```python
from datetime import date, timedelta
served = date(2019, 3, 25) # datetime.date(2019, 3, 25)
response_days = 21
mail_days = 3
due = served + timedelta... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 179 | {"gold": "2019-04-18", "printed": "2019-04-18", "notation": null} |
nlprog_det-setting-0053423 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "py_exec", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}
{"name": "lookup_statute", "d... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"py_exec\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"re... | nlprog_det | setting | original | null | deterministic | [] | [] | 337 | {"gold": "2023-09-18", "printed": "2023-09-18", "notation": null} |
nlprog_det-setting-0053424 | What is a 20% tip on a $155.93 bill?
In Python:
```python
bill = 155.93
tip_rate = 20 / 100 # 0.2
tip = bill * tip_rate # 31.186000000000003
print(f"{tip:.2f}")
```
Out:
31.19
Leave $31.19. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "31.19", "printed": "31.19", "notation": null} |
nlprog_det-setting-0053425 | Each storage box holds 24 files. How many boxes are needed for 556 files?
Program:
```python
import math
files = 556
per_box = 24
boxes = math.ceil(files / per_box) # 24
print(boxes)
```
# program output: 24
24 boxes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0053426 | <|start|><|user|>
Equipment costs $24,000, has a salvage value of $2,000, and a useful life of 5 years. What is the straight-line depreciation per year?<|eot|>
<|assistant|>
```python
cost = 24000
salvage = 2000
years = 5
per_year = (cost - salvage) / years # 4400.0
print(f"{per_year:.2f}")
```
Output of the run — 440... | chat | [
{
"role": "user",
"content": "Equipment costs $24,000, has a salvage value of $2,000, and a useful life of 5 years. What is the straight-line depreciation per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 24000\nsalvage = 2000\nyears = 5\nper_year = (cost - salvage) / years # 4... | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "4400.00", "printed": "4400.00", "notation": null} |
nlprog_det-setting-0053427 | <|start|><|user|>
Meals are $74 per day and lodging $140 per night. What is the allowance for 7 days and 6 nights?<|eot|>
<|assistant|>
```python
days = 7
meal_rate = 74
lodging_rate = 140
nights = days - 1 # 6
total = days * meal_rate + nights * lodging_rate # 1358
print(total)
```
Run output — 1358
That comes to $... | chat | [
{
"role": "user",
"content": "Meals are $74 per day and lodging $140 per night. What is the allowance for 7 days and 6 nights?"
},
{
"role": "assistant",
"content": "```python\ndays = 7\nmeal_rate = 74\nlodging_rate = 140\nnights = days - 1 # 6\ntotal = days * meal_rate + nights * lodging_rate ... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "1358", "printed": "1358", "notation": null} |
nlprog_det-setting-0053428 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}, {"name": "interpreter", "description": "Pytho... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \... | nlprog_det | setting | original | null | deterministic | [] | [] | 380 | {"gold": "67", "printed": "67", "notation": null} |
nlprog_det-setting-0053429 | A film lasted 1 hours and 54 minutes. How many minutes is that?
A Python solution:
```python
hours = 1
minutes = 54
total_minutes = hours * 60 + minutes # 114
print(total_minutes)
```
Printed = 114
The film lasted 114 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "114", "printed": "114", "notation": null} |
nlprog_det-setting-0053430 | <|start|><|user|>
A $6,000 loan carries 5% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|>
<|assistant|>
The monthly payment is $275.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A $6,000 loan carries 5% simple annual interest over 24 months. Interest and principal are repaid in equal monthly payments. What is each payment?"
},
{
"role": "assistant",
"content": "The monthly payment is $275.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 52 | {"gold": "275.00", "printed": "275.00", "notation": null} |
nlprog_det-setting-0053431 | How many whole days and leftover hours are in 54 hours?
```python
hours = 54
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
stdout: 2 days and 6 hours
That is 2 days and 6 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "2 days and 6 hours", "printed": "2 days and 6 hours", "notation": null} |
nlprog_det-setting-0053432 | <|start|><|user|>
Carmen earns a 5% commission on $25,343 of sales. What is the commission?<|eot|>
<|assistant|>
Carmen earns $1,267.15.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Carmen earns a 5% commission on $25,343 of sales. What is the commission?"
},
{
"role": "assistant",
"content": "Carmen earns $1,267.15."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "1267.15", "printed": "1267.15", "notation": null} |
nlprog_det-setting-0053433 | The landlord deducts $85 from a $2,000 deposit. What is returned to the tenant?
Python code:
```python
deposit = 2000
deductions = [85]
refund = deposit - sum(deductions) # 1915
print(refund)
```
Executing it gives 1915, as expected.
$1,915 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "1915", "printed": "1915", "notation": null} |
nlprog_det-setting-0053434 | <|start|><|system|>
You may call the tools below.
[{"name": "compute", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
How many 2-foot square t... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"compute\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [... | nlprog_det | setting | original | null | deterministic | [] | [] | 224 | {"gold": "35", "printed": "35", "notation": null} |
nlprog_det-setting-0053436 | What is a 20% tip on a $189.20 bill?
The program:
```python
bill = 189.2
tip_rate = 20 / 100 # 0.2
tip = bill * tip_rate # 37.839999999999996
print(f"{tip:.2f}")
```
(Program output: 37.84)
Leave $37.84. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "37.84", "printed": "37.84", "notation": null} |
nlprog_det-setting-0053437 | Equal monthly payments repay $2,400 plus 6% simple yearly interest over 36 months. How large is a payment?
Here is a short program for it.
```python
principal = 2400
annual_rate = 6 / 100 # 0.06
months = 36
interest = principal * annual_rate * months / 12 # 432.0
payment = (principal + interest) / months # 78.66666... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "78.67", "printed": "78.67", "notation": null} |
nlprog_det-setting-0053439 | With $36,000 in costs and $40,000 in revenue, what percent of revenue is profit? Round to one decimal.
Programmatically:
```python
revenue = 40000
costs = 36000
profit = revenue - costs
margin = profit / revenue * 100
print(round(margin, 1))
```
Python prints 10.0.
The margin is 10.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "10.0", "printed": "10.0", "notation": null} |
nlprog_det-setting-0053440 | The landlord deducts $150, $120 and $120 from a $2,000 deposit. What is returned to the tenant?
A few lines of Python do it:
```python
deposit = 2000
deductions = [150, 120, 120]
refund = deposit - sum(deductions) # 1610
print(refund)
```
Output of the run: 1610
$1,610 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "1610", "printed": "1610", "notation": null} |
nlprog_det-setting-0053441 | Rent of $2,200 goes up 3%. What is the new rent?
Translated to Python:
```python
rent = 2200
increase = 3 / 100 # 0.03
new_rent = rent * (1 + increase) # 2266.0
print(f"{new_rent:.2f}")
```
The script prints 2266.00.
It rises to $2,266.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "2266.00", "printed": "2266.00", "notation": null} |
nlprog_det-setting-0053442 | Paula buys 11 boxes of 12 toner kits each and gives away 9 toner kits. How many toner kits are left?
A Python solution:
```python
boxes = 11
per_box = 12
given_away = 9
left = boxes * per_box - given_away # 123
print(left)
```
Output of the run: 123
That leaves 123 toner kits. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "123", "printed": "123", "notation": null} |
nlprog_det-setting-0053443 | Straight-line depreciation: cost $12,000, salvage $0, 8 years. How much per year?
We can compute it in Python.
```python
cost = 12000
salvage = 0
years = 8
per_year = (cost - salvage) / years # 1500.0
print(f"{per_year:.2f}")
```
Printed result — 1500.00
$1,500.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "1500.00", "printed": "1500.00", "notation": null} |
nlprog_det-setting-0053445 | 21 clipboards cost $3 apiece. With 5% tax added, what is the total?
Translated to Python:
```python
quantity = 21
unit_price = 3
subtotal = quantity * unit_price # 63
total = subtotal * (1 + 5 / 100) # 66.15
print(f"{total:.2f}")
```
Python prints 66.15.
The total with tax is $66.15. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "66.15", "printed": "66.15", "notation": null} |
nlprog_det-setting-0053446 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "math_engine", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "business_days", "descriptio... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"math_engine\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required... | nlprog_det | setting | original | null | deterministic | [] | [] | 310 | {"gold": "2400", "printed": "2400", "notation": null} |
nlprog_det-setting-0053447 | Of a $5,000 budget, $2,200 has been spent. What percent is that?
Python does the arithmetic:
budget = 5000
spent = 2200
percent = spent / budget * 100 # 44.0
print(round(percent, 1))
Shell output — 44.0
That is 44.0% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "44.0", "printed": "44.0", "notation": null} |
nlprog_det-setting-0053448 | <|start|><|user|>
Papers were served by mail on January 9, 2018. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
served = date(2018, 1, 9) # datetime.date(2018, 1, 9)
response_days = 28
mail_days = 3
due =... | chat | [
{
"role": "user",
"content": "Papers were served by mail on January 9, 2018. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nserved = date(2018, 1, 9) # datetime... | nlprog_det | setting | original | null | deterministic | [] | [] | 176 | {"gold": "2018-02-09", "printed": "2018-02-09", "notation": null} |
nlprog_det-setting-0053449 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "python_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}<|eot|>
<|user|>
Counting the first and la... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"python_exec\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [... | nlprog_det | setting | original | null | deterministic | [] | [] | 239 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0053450 | An office budget of $5,000 has expenses of $2,084, $3,613, $3,764. How much of the budget is left?
-$4,461 is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 48 | {"gold": "-4461", "printed": "-4461", "notation": null} |
nlprog_det-setting-0053451 | Rent of $900 goes up 6%. What is the new rent?
One way, in code:
```python
rent = 900
increase = 6 / 100 # 0.06
new_rent = rent * (1 + increase) # 954.0
print(f"{new_rent:.2f}")
```
Run result: 954.00
The new rent is $954.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "954.00", "printed": "954.00", "notation": null} |
nlprog_det-setting-0053453 | <|start|><|system|>
You are a precise assistant.<|eot|>
<|user|>
If a 3-year limitations period starts on April 21, 2020, when does it end?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2020, 4, 21) # datetime.date(2020, 4, 21)
years = 3
expires = accrued.replace(year=accrued.year + years) #... | chat | [
{
"role": "system",
"content": "You are a precise assistant."
},
{
"role": "user",
"content": "If a 3-year limitations period starts on April 21, 2020, when does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrued = date(2020, 4, 21) # dateti... | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "2023-04-21", "printed": "2023-04-21", "notation": null} |
nlprog_det-setting-0053454 | At 45 miles per hour, how many minutes does a 270-mile trip take?
Python code:
```python
distance = 270
speed = 45
minutes = distance / speed * 60
print(round(minutes))
```
Out — 360
The trip takes 360 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "360", "printed": "360", "notation": null} |
nlprog_det-setting-0053455 | Counting the first and last day, how many days are there from July 28, 2022 through August 19, 2022?
Python:
from datetime import date
first = date(2022, 7, 28) # datetime.date(2022, 7, 28)
last = date(2022, 8, 19) # datetime.date(2022, 8, 19)
days = (last - first).days + 1 # 23
print(days)
Runn... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0053456 | <|start|><|user|>
5 walks at 150 calories each burn how many calories in total?<|eot|>
<|assistant|>
```python
per_session = 150
sessions = 5
total = per_session * sessions # 750
print(total)
```
The script prints 750, as expected.
That burns 750 calories.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "5 walks at 150 calories each burn how many calories in total?"
},
{
"role": "assistant",
"content": "```python\nper_session = 150\nsessions = 5\ntotal = per_session * sessions # 750\nprint(total)\n```\nThe script prints 750, as expected.\n\nThat burns 750 calories.... | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "750", "printed": "750", "notation": null} |
nlprog_det-setting-0053457 | <|start|><|system|>
You are a study helper for students.<|eot|>
<|user|>
Prorate $1,800 of monthly rent for 23 days of a 30-day month.<|eot|>
<|assistant|>
The tenant owes $1,380.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a study helper for students."
},
{
"role": "user",
"content": "Prorate $1,800 of monthly rent for 23 days of a 30-day month."
},
{
"role": "assistant",
"content": "The tenant owes $1,380.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 54 | {"gold": "1380.00", "printed": "1380.00", "notation": null} |
nlprog_det-setting-0053458 | A measure needs at least 67% of 37 votes. How many votes is that, rounded up?
Python does the arithmetic:
import math
voters = 37
needed = math.ceil(voters * 67 / 100) # 25
print(needed)
stdout:
25
25 votes are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0053459 | $10,000 is invested at 5% compounded yearly. What is it worth after 4 years?
A few lines of Python do it:
principal = 10000
rate = 5 / 100 # 0.05
years = 4
value = principal * (1 + rate) ** years # 12155.062500000002
print(f"{value:.2f}")
When run, it prints 12155.06.
It is worth $12,155.06. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "12155.06", "printed": "12155.06", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.