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-0062131 | 1 books come back 22 days late, at $0.15 a day each. What is the fine?
Python makes this quick:
```python
per_day = 0.15
days_late = 22
books = 1
fine = per_day * days_late * books # 3.3
print(f"{fine:.2f}")
```
stdout:
3.30
The fine is $3.30. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "3.30", "printed": "3.30", "notation": null} |
nlprog_det-setting-0062132 | Fines run at $100 per day up to a maximum of $1,000. How much after 51 days?
```python
per_day = 100
days = 51
cap = 1000
fine = min(per_day * days, cap) # 1000
print(fine)
```
Printed — 1000
The fine is $1,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0062133 | A 250-mile drive at a steady 50 mph takes how many minutes?
Python, step by step:
```python
distance = 250
speed = 50
minutes = distance / speed * 60 # 300.0
print(round(minutes))
```
Execution result — 300
The trip takes 300 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "300", "printed": "300", "notation": null} |
nlprog_det-setting-0062134 | Water costs $12 a month plus $3.50 for each 1,000 gallons over 3,000. What is owed for 13,000 gallons?
Python, step by step:
```python
base = 12
rate = 3.5
used = 13
free = 3
bill = base + rate * max(0, used - free) # 47.0
print(f"{bill:.2f}")
```
Python prints 47.00.
$47.00 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "47.00", "printed": "47.00", "notation": null} |
nlprog_det-setting-0062135 | A service costs $9 a month or $84 a year. How much does the yearly plan save over 12 monthly payments?
Python code:
```python
monthly = 9
yearly = 84
savings = monthly * 12 - yearly
print(savings)
```
The program outputs 24.
The annual plan saves $24. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "24", "printed": "24", "notation": null} |
nlprog_det-setting-0062136 | What average speed covers 598 miles in 2 hours?
Let the code do the arithmetic:
```python
distance = 598
hours = 2
speed = distance / hours # 299.0
print(round(speed))
```
Shell output: 299
It averages 299 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "299", "printed": "299", "notation": null} |
nlprog_det-setting-0062137 | <|start|><|user|>
At $29.86 an hour, what does 16 hours of work pay?<|eot|>
<|assistant|>
```python
rate = 29.86
hours = 16
earnings = rate * hours # 477.76
print(f"{earnings:.2f}")
```
# console output: 477.76
The pay is $477.76.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $29.86 an hour, what does 16 hours of work pay?"
},
{
"role": "assistant",
"content": "```python\nrate = 29.86\nhours = 16\nearnings = rate * hours # 477.76\nprint(f\"{earnings:.2f}\")\n```\n# console output: 477.76\n\nThe pay is $477.76."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "477.76", "printed": "477.76", "notation": null} |
nlprog_det-setting-0062138 | Starting from $5,000, the team spends $505, $540, $1,621, $922. What remains?
In Python:
```python
budget = 5000
expenses = [505, 540, 1621, 922]
left = budget - sum(expenses) # 1412
print(left)
```
The program prints 1412.
The remaining budget is $1,412. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "1412", "printed": "1412", "notation": null} |
nlprog_det-setting-0062139 | <|start|><|user|>
From 1996 to 2006, how many years is that?<|eot|>
<|assistant|>
```python
start_year = 1996
end_year = 2006
print(end_year - start_year)
```
Run result — 10
That is 10 years.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From 1996 to 2006, how many years is that?"
},
{
"role": "assistant",
"content": "```python\nstart_year = 1996\nend_year = 2006\nprint(end_year - start_year)\n```\nRun result — 10\n\nThat is 10 years."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 67 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0062140 | 191 of 200 members attended. What percent attended?
Translated to Python:
```python
present = 191
total = 200
percent = present / total * 100
print(round(percent, 1))
```
It prints 95.5.
95.5% attended. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "95.5", "printed": "95.5", "notation": null} |
nlprog_det-setting-0062141 | At 2% a month (simple), what interest builds on $12,000 over 2 months?
```python
balance = 12000
monthly_rate = 2 / 100 # 0.02
months = 2
interest = balance * monthly_rate * months # 480.0
print(f"{interest:.2f}")
```
Executing it gives 480.00.
The interest is $480.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "480.00", "printed": "480.00", "notation": null} |
nlprog_det-setting-0062142 | <|start|><|user|>
Filing fees are $350 per document. What do 12 filings cost?<|eot|>
<|assistant|>
The filings cost $4,200 in all.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Filing fees are $350 per document. What do 12 filings cost?"
},
{
"role": "assistant",
"content": "The filings cost $4,200 in all."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "4200", "printed": "4200", "notation": null} |
nlprog_det-setting-0062143 | <|start|><|user|>
Equipment costs $30,000, has a salvage value of $3,000, and a useful life of 6 years. What is the straight-line depreciation per year?<|eot|>
<|assistant|>
```python
cost = 30000
salvage = 3000
years = 6
per_year = (cost - salvage) / years # 4500.0
print(f"{per_year:.2f}")
```
The script prints: 4500... | chat | [
{
"role": "user",
"content": "Equipment costs $30,000, has a salvage value of $3,000, and a useful life of 6 years. What is the straight-line depreciation per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 30000\nsalvage = 3000\nyears = 6\nper_year = (cost - salvage) / years # 4... | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "4500.00", "printed": "4500.00", "notation": null} |
nlprog_det-setting-0062144 | Straight-line depreciation: cost $30,000, salvage $0, 5 years. How much per year?
Let's compute it with Python.
```python
cost = 30000
salvage = 0
years = 5
per_year = (cost - salvage) / years
print(f"{per_year:.2f}")
```
The printout reads: 6000.00
$6,000.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "6000.00", "printed": "6000.00", "notation": null} |
nlprog_det-setting-0062146 | 20 copies of a 35-page packet are printed at $0.05 per page. What is the cost?
Written as code:
```python
pages = 35
copies = 20
cost_per_page = 0.05
cost = pages * copies * cost_per_page # 35.0
print(f"{cost:.2f}")
```
Run result — 35.00
The job costs $35.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "35.00", "printed": "35.00", "notation": null} |
nlprog_det-setting-0062147 | How much sales tax is charged on a $36.82 purchase at 6%?
The program:
```python
price = 36.82
tax_rate = 6 / 100 # 0.06
tax = price * tax_rate # 2.2092
print(f"{tax:.2f}")
```
The run gives 2.21.
The tax is $2.21. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "2.21", "printed": "2.21", "notation": null} |
nlprog_det-setting-0062148 | Under a 40% contingency agreement, what fee is owed on a $90,000 award?
Python:
```python
recovery = 90000
rate = 40 / 100 # 0.4
fee = recovery * rate # 36000.0
print(f"{fee:.2f}")
```
The interpreter prints 36000.00.
The lawyer's fee comes to $36,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "36000.00", "printed": "36000.00", "notation": null} |
nlprog_det-setting-0062149 | <|start|><|system|>
You can call tools. Available tools:
{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}
{"name": "python", "description": "Python san... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\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 | [] | [] | 291 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0062150 | A 8% increase is applied to $2,200 monthly rent. What is the new amount?
The new rent is $2,376.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "2376.00", "printed": "2376.00", "notation": null} |
nlprog_det-setting-0062151 | <|start|><|user|>
With 19 rows of 23 chairs and 12 empty chairs, how many chairs are taken?<|eot|>
<|assistant|>
```python
rows = 19
per_row = 23
empty = 12
seated = rows * per_row - empty # 425
print(seated)
```
Executing it gives 425.
425 seats are taken.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "With 19 rows of 23 chairs and 12 empty chairs, how many chairs are taken?"
},
{
"role": "assistant",
"content": "```python\nrows = 19\nper_row = 23\nempty = 12\nseated = rows * per_row - empty # 425\nprint(seated)\n```\nExecuting it gives 425.\n\n425 seats are take... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "425", "printed": "425", "notation": null} |
nlprog_det-setting-0062152 | Water costs $15 a month plus $5.10 for each 1,000 gallons over 2,000. What is owed for 17,000 gallons?
A short script:
```python
base = 15
rate = 5.1
used = 17
free = 2
bill = base + rate * max(0, used - free) # 91.5
print(f"{bill:.2f}")
```
(Result: 91.50)
The bill is $91.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "91.50", "printed": "91.50", "notation": null} |
nlprog_det-setting-0062153 | A training session lasted 4 hours and 54 minutes. How many minutes is that?
One way, in code:
```python
hours = 4
minutes = 54
total_minutes = hours * 60 + minutes # 294
print(total_minutes)
```
The program prints 294.
The training session lasted 294 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "294", "printed": "294", "notation": null} |
nlprog_det-setting-0062154 | <|start|><|system|>
The following tools are available. Call one when it helps.
[{"name": "compute", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "... | chat | [
{
"role": "system",
"content": "The following tools are available. Call one when it helps.\n[{\"name\": \"compute\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python so... | nlprog_det | setting | original | null | deterministic | [] | [] | 338 | {"gold": "34", "printed": "34", "notation": null} |
nlprog_det-setting-0062155 | <|start|><|user|>
The paralegal logged 1.5 hours at a rate of $180. How much is billed?<|eot|>
<|assistant|>
```python
hours = 1.5
rate = 180
bill = hours * rate # 270.0
print(f"{bill:.2f}")
```
# execution result: 270.00
That comes to $270.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The paralegal logged 1.5 hours at a rate of $180. How much is billed?"
},
{
"role": "assistant",
"content": "```python\nhours = 1.5\nrate = 180\nbill = hours * rate # 270.0\nprint(f\"{bill:.2f}\")\n```\n# execution result: 270.00\n\nThat comes to $270.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "270.00", "printed": "270.00", "notation": null} |
nlprog_det-setting-0062156 | What average speed covers 345 miles in 5 hours?
A Python solution:
```python
distance = 345
hours = 5
speed = distance / hours # 69.0
print(round(speed))
```
Executing it gives 69, as expected.
It averages 69 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "69", "printed": "69", "notation": null} |
nlprog_det-setting-0062157 | <|start|><|user|>
A 475-page report must be reviewed in 19 days. How many pages a day is that, evenly?<|eot|>
<|assistant|>
```python
pages = 475
days = 19
per_day = pages // days # 25
print(per_day)
```
Output = 25
That is 25 pages per day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 475-page report must be reviewed in 19 days. How many pages a day is that, evenly?"
},
{
"role": "assistant",
"content": "```python\npages = 475\ndays = 19\nper_day = pages // days # 25\nprint(per_day)\n```\nOutput = 25\n\nThat is 25 pages per day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "25", "printed": "25", "notation": null} |
nlprog_det-setting-0062158 | Someone works 16 hours at $31.36 per hour. What are the earnings?
Let's compute it with Python.
```python
rate = 31.36
hours = 16
earnings = rate * hours # 501.76
print(f"{earnings:.2f}")
```
The printout reads 501.76.
The pay is $501.76. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "501.76", "printed": "501.76", "notation": null} |
nlprog_det-setting-0062159 | An unpaid balance of $7,500 accrues 1.5% simple interest per month. How much interest accrues in 2 months?
```python
balance = 7500
monthly_rate = 1.5 / 100 # 0.015
months = 2
interest = balance * monthly_rate * months # 225.0
print(f"{interest:.2f}")
```
Running this gives: 225.00
The interest is $225.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "225.00", "printed": "225.00", "notation": null} |
nlprog_det-setting-0062160 | <|start|><|user|>
Wanjiru's scores were 88, 56, 97, 54 and 55. What is the average score?<|eot|>
<|assistant|>
```python
scores = [88, 56, 97, 54, 55]
average = sum(scores) // len(scores)
print(average)
```
Run result: 70
The average score is 70.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Wanjiru's scores were 88, 56, 97, 54 and 55. What is the average score?"
},
{
"role": "assistant",
"content": "```python\nscores = [88, 56, 97, 54, 55]\naverage = sum(scores) // len(scores)\nprint(average)\n```\nRun result: 70\n\nThe average score is 70."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "70", "printed": "70", "notation": null} |
nlprog_det-setting-0062161 | <|start|><|user|>
Convert 5 °C to Fahrenheit.<|eot|>
<|assistant|>
celsius = 5
fahrenheit = celsius * 9 / 5 + 32 # 41.0
print(round(fahrenheit))
Out — 41
It equals 41 degrees Fahrenheit.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 5 °C to Fahrenheit."
},
{
"role": "assistant",
"content": " celsius = 5\n fahrenheit = celsius * 9 / 5 + 32 # 41.0\n print(round(fahrenheit))\nOut — 41\n\nIt equals 41 degrees Fahrenheit."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "41", "printed": "41", "notation": null} |
nlprog_det-setting-0062162 | <|start|><|user|>
An attorney bills 7 hours at $300 per hour. What is the bill?<|eot|>
<|assistant|>
```python
hours = 7
rate = 300
bill = hours * rate # 2100
print(f"{bill:.2f}")
```
The program prints 2100.00.
The bill is $2,100.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "An attorney bills 7 hours at $300 per hour. What is the bill?"
},
{
"role": "assistant",
"content": "```python\nhours = 7\nrate = 300\nbill = hours * rate # 2100\nprint(f\"{bill:.2f}\")\n```\nThe program prints 2100.00.\n\nThe bill is $2,100.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "2100.00", "printed": "2100.00", "notation": null} |
nlprog_det-setting-0062163 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"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": "py_exec",... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\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\"}}, \"... | nlprog_det | setting | original | null | deterministic | [] | [] | 313 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0062164 | An invoice lists 4 rulers at $3 each, plus 8% sales tax. What is the invoice total?
As a program:
```python
quantity = 4
unit_price = 3
subtotal = quantity * unit_price # 12
total = subtotal * (1 + 8 / 100) # 12.96
print(f"{total:.2f}")
```
Printed result: 12.96
The invoice total is $12.96. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 126 | {"gold": "12.96", "printed": "12.96", "notation": null} |
nlprog_det-setting-0062165 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "define_word", "description": "Return a dictionary definition.", "parameters": {"type": "object", "properties": {"word": {"type": "string"}}, "required": ["word"]}}
{"name": "interpreter", "description": "Python sandbox for calculations. Returns printed te... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"define_word\", \"description\": \"Return a dictionary definition.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\"}}, \"required\": [\"word\"]}}\n{\"name\": \"interpreter\", \"descripti... | nlprog_det | setting | original | null | deterministic | [] | [] | 381 | {"gold": "322", "printed": "322", "notation": null} |
nlprog_det-setting-0062166 | A shift runs from 9:12 AM to 12:18 PM. How long is it in minutes?
Python makes this quick:
```python
start = 9 * 60 + 12 # 552
end = 12 * 60 + 18 # 738
print(end - start)
```
Result:
186
It is 186 minutes long. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "186", "printed": "186", "notation": null} |
nlprog_det-setting-0062167 | A court charges $10 per request plus $0.25 per page after the first 0 pages. What does a 23-page copy cost?
The copy costs $15.75. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 41 | {"gold": "15.75", "printed": "15.75", "notation": null} |
nlprog_det-setting-0062168 | What simple interest does $8,000 earn at 3% a year over 2 years?
Program:
```python
principal = 8000
rate = 3 / 100 # 0.03
years = 2
interest = principal * rate * years # 480.0
print(f"{interest:.2f}")
```
The printout reads 480.00.
It earns $480.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "480.00", "printed": "480.00", "notation": null} |
nlprog_det-setting-0062169 | <|start|><|system|>
Tool definitions:
[{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "python", "description": "Evaluates Python and returns the printed output.", ... | chat | [
{
"role": "system",
"content": "Tool definitions:\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"name\": \"python\", \"descriptio... | nlprog_det | setting | original | null | deterministic | [] | [] | 372 | {"gold": "1200", "printed": "1200", "notation": null} |
nlprog_det-setting-0062170 | How many whole days and leftover hours are in 361 hours?
Code:
```python
hours = 361
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
Output = 15 days and 1 hours
That is 15 days and 1 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "15 days and 1 hours", "printed": "15 days and 1 hours", "notation": null} |
nlprog_det-setting-0062171 | Fixed costs are $1,200. Each unit sells for $40 and costs $32 to make. How many units must be sold to break even?
Program:
```python
import math
fixed = 1200
price = 40
variable = 32
units = math.ceil(fixed / (price - variable)) # 150
print(units)
```
Output — 150
Break-even is 150 units. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "150", "printed": "150", "notation": null} |
nlprog_det-setting-0062172 | How many units at $40 each (variable cost $32) cover $9,000 of fixed costs?
1125 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "1125", "printed": "1125", "notation": null} |
nlprog_det-setting-0062173 | After an initial $0, the remainder of a $24,000 grant is paid in 12 equal parts. What is each part?
grant = 24000
up_front = 0
installments = 12
each = (grant - up_front) / installments # 2000.0
print(f"{each:.2f}")
(Run result: 2000.00)
Each installment is $2,000.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "2000.00", "printed": "2000.00", "notation": null} |
nlprog_det-setting-0062174 | <|start|><|user|>
A 6 × 9 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?<|eot|>
<|assistant|>
```python
import math
length = 6
width = 9
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 14
print(tiles)
```
(Out: 14)
It takes 14 tiles.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 6 × 9 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 6\nwidth = 9\ntile = 2\ntiles = math.ceil(length * width / (tile * tile)) # 14\nprint(tiles)\n```\n(Out: 14)\n\nI... | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0062175 | <|start|><|user|>
The landlord deducts $200, $45 and $200 from a $1,000 deposit. What is returned to the tenant?<|eot|>
<|assistant|>
```python
deposit = 1000
deductions = [200, 45, 200]
refund = deposit - sum(deductions) # 555
print(refund)
```
Shell output — 555
The refund is $555.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The landlord deducts $200, $45 and $200 from a $1,000 deposit. What is returned to the tenant?"
},
{
"role": "assistant",
"content": "```python\ndeposit = 1000\ndeductions = [200, 45, 200]\nrefund = deposit - sum(deductions) # 555\nprint(refund)\n```\nShell output ... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "555", "printed": "555", "notation": null} |
nlprog_det-setting-0062176 | A clerk's office charges $350 for each filing. Helga submits 5 filings. What is the total fee?
As Python:
```python
fee = 350
filings = 5
total = fee * filings # 1750
print(total)
```
When run, it prints: 1750
The filings cost $1,750 in all. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "1750", "printed": "1750", "notation": null} |
nlprog_det-setting-0062177 | At a 4% tax rate, what is the tax on $883.28?
Code:
```python
price = 883.28
tax_rate = 4 / 100 # 0.04
tax = price * tax_rate # 35.3312
print(f"{tax:.2f}")
```
On running, it outputs 35.33.
$35.33 in tax. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "35.33", "printed": "35.33", "notation": null} |
nlprog_det-setting-0062178 | A 34 lb package ships at $5 base plus $2.00/lb. What is the charge?
Computation in Python:
```python
base = 5
per_pound = 2.0
weight = 34
cost = base + per_pound * weight # 73.0
print(f"{cost:.2f}")
```
(Printed result: 73.00)
The charge is $73.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "73.00", "printed": "73.00", "notation": null} |
nlprog_det-setting-0062179 | <|start|><|user|>
Convert 5,701 USD to EUR at 1 USD = 0.92 EUR.<|eot|>
<|assistant|>
```python
amount = 5701
rate = 0.92
converted = amount * rate # 5244.92
print(f"{converted:.2f}")
```
(Printed: 5244.92)
It converts to 5,244.92 EUR.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 5,701 USD to EUR at 1 USD = 0.92 EUR."
},
{
"role": "assistant",
"content": "```python\namount = 5701\nrate = 0.92\nconverted = amount * rate # 5244.92\nprint(f\"{converted:.2f}\")\n```\n(Printed: 5244.92)\n\nIt converts to 5,244.92 EUR."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 111 | {"gold": "5244.92", "printed": "5244.92", "notation": null} |
nlprog_det-setting-0062180 | Of a $4,000 budget, $200 has been spent. What percent is that? That is 5.0% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 29 | {"gold": "5.0", "printed": "5.0", "notation": null} |
nlprog_det-setting-0062181 | 35 of 50 members attended. What percent attended? Attendance was 70.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 23 | {"gold": "70.0", "printed": "70.0", "notation": null} |
nlprog_det-setting-0062182 | <|start|><|user|>
Equipment costs $30,000, has a salvage value of $3,000, and a useful life of 10 years. What is the straight-line depreciation per year?<|eot|>
<|assistant|>
```python
cost = 30000
salvage = 3000
years = 10
per_year = (cost - salvage) / years # 2700.0
print(f"{per_year:.2f}")
```
Interpreter output — ... | chat | [
{
"role": "user",
"content": "Equipment costs $30,000, has a salvage value of $3,000, and a useful life of 10 years. What is the straight-line depreciation per year?"
},
{
"role": "assistant",
"content": "```python\ncost = 30000\nsalvage = 3000\nyears = 10\nper_year = (cost - salvage) / years #... | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "2700.00", "printed": "2700.00", "notation": null} |
nlprog_det-setting-0062183 | A pack of 20 toner kits sells for $60. What does each cost?
The program:
total = 60
count = 20
per_item = total // count # 3
print(per_item)
# out: 3
The unit price is $3. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 69 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0062184 | <|start|><|system|>
You are a logic tutor.<|eot|>
<|user|>
115 copies of a 51-page packet are printed at $0.05 per page. What is the cost?<|eot|>
<|assistant|>
```python
pages = 51
copies = 115
cost_per_page = 0.05
cost = pages * copies * cost_per_page
print(f"{cost:.2f}")
```
Running it prints: 293.25
The job costs $... | chat | [
{
"role": "system",
"content": "You are a logic tutor."
},
{
"role": "user",
"content": "115 copies of a 51-page packet are printed at $0.05 per page. What is the cost?"
},
{
"role": "assistant",
"content": "```python\npages = 51\ncopies = 115\ncost_per_page = 0.05\ncost = pages * co... | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "293.25", "printed": "293.25", "notation": null} |
nlprog_det-setting-0062185 | <|start|><|system|>
You have access to these functions:
{"name": "compute", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|user|>
A $48,000 grant pays $... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n{\"name\": \"compute\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 235 | {"gold": "7000.00", "printed": "7000.00", "notation": null} |
nlprog_det-setting-0062186 | To read 442 pages in 17 days, how many pages per day are needed?
In Python:
```python
pages = 442
days = 17
per_day = pages // days # 26
print(per_day)
```
What it prints — 26
That is 26 pages per day. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "26", "printed": "26", "notation": null} |
nlprog_det-setting-0062187 | <|start|><|user|>
Someone born October 4, 2003 turns how old by February 1, 2027? Give the age in whole years.<|eot|>
<|assistant|>
```python
from datetime import date
born = date(2003, 10, 4) # datetime.date(2003, 10, 4)
on = date(2027, 2, 1) # datetime.date(2027, 2, 1)
age = on.year - born.year - ((on.month, on.day... | chat | [
{
"role": "user",
"content": "Someone born October 4, 2003 turns how old by February 1, 2027? Give the age in whole years."
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(2003, 10, 4) # datetime.date(2003, 10, 4)\non = date(2027, 2, 1) # datetime.date(2... | nlprog_det | setting | original | null | deterministic | [] | [] | 157 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0062188 | <|start|><|system|>
Tools (call with JSON):
[{"name": "math_engine", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
Convert 25 °C to Fah... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n[{\"name\": \"math_engine\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\... | nlprog_det | setting | original | null | deterministic | [] | [] | 210 | {"gold": "77", "printed": "77", "notation": null} |
nlprog_det-setting-0062189 | <|start|><|user|>
How many 1-foot square tiles cover a 11 ft by 10 ft floor (round up)?<|eot|>
<|assistant|>
```python
import math
length = 11
width = 10
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 110
print(tiles)
```
Program output — 110
It takes 110 tiles.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many 1-foot square tiles cover a 11 ft by 10 ft floor (round up)?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 11\nwidth = 10\ntile = 1\ntiles = math.ceil(length * width / (tile * tile)) # 110\nprint(tiles)\n```\nProgram output — 110\... | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "110", "printed": "110", "notation": null} |
nlprog_det-setting-0062190 | <|start|><|system|>
You are a patient tutor.<|eot|>
<|user|>
A client paid a $10,000 retainer. The firm has billed 14 hours at $275 per hour. How much of the retainer is left?<|eot|>
<|assistant|>
retainer = 10000
hours = 14
rate = 275
left = retainer - hours * rate # 6150
print(left)
Result:
6150
... | chat | [
{
"role": "system",
"content": "You are a patient tutor."
},
{
"role": "user",
"content": "A client paid a $10,000 retainer. The firm has billed 14 hours at $275 per hour. How much of the retainer is left?"
},
{
"role": "assistant",
"content": " retainer = 10000\n hours = 14\n ... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "6150", "printed": "6150", "notation": null} |
nlprog_det-setting-0062191 | A water bill is $15 plus $5.10 per thousand gallons beyond the first 0 thousand. What is the bill for 14 thousand gallons?
As a program:
```python
base = 15
rate = 5.1
used = 14
free = 0
bill = base + rate * max(0, used - free) # 86.39999999999999
print(f"{bill:.2f}")
```
What it prints: 86.40
The bill is $86.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "86.40", "printed": "86.40", "notation": null} |
nlprog_det-setting-0062192 | <|start|><|user|>
Convert 5 h 39 min (the length of a meeting) to minutes.<|eot|>
<|assistant|>
```python
hours = 5
minutes = 39
total_minutes = hours * 60 + minutes # 339
print(total_minutes)
```
(Program output: 339)
The meeting lasted 339 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 5 h 39 min (the length of a meeting) to minutes."
},
{
"role": "assistant",
"content": "```python\nhours = 5\nminutes = 39\ntotal_minutes = hours * 60 + minutes # 339\nprint(total_minutes)\n```\n(Program output: 339)\n\nThe meeting lasted 339 minutes."
}
... | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "339", "printed": "339", "notation": null} |
nlprog_det-setting-0062193 | <|start|><|system|>
You are an assistant for a small office.<|eot|>
<|user|>
After a 25% fee is taken from a $72,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|>
<|assistant|>
```python
award = 72000
fee = award * 25 / 100 # 18000.0
remaining = award - fee # 54000.0
per_c... | chat | [
{
"role": "system",
"content": "You are an assistant for a small office."
},
{
"role": "user",
"content": "After a 25% fee is taken from a $72,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?"
},
{
"role": "assistant",
"content": "```python\nawa... | nlprog_det | setting | original | null | deterministic | [] | [] | 149 | {"gold": "18000.00", "printed": "18000.00", "notation": null} |
nlprog_det-setting-0062194 | <|start|><|system|>
You have access to these functions:
[{"name": "interpreter", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
Prorate $1,500 of mont... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"interpreter\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\":... | nlprog_det | setting | original | null | deterministic | [] | [] | 235 | {"gold": "483.87", "printed": "483.87", "notation": null} |
nlprog_det-setting-0062195 | At 2% a month (simple), what interest builds on $12,000 over 3 months?
In Python:
```python
balance = 12000
monthly_rate = 2 / 100 # 0.02
months = 3
interest = balance * monthly_rate * months # 720.0
print(f"{interest:.2f}")
```
# output: 720.00
$720.00 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "720.00", "printed": "720.00", "notation": null} |
nlprog_det-setting-0062196 | <|start|><|system|>
You are an assistant for a small office.<|eot|>
<|user|>
What is a 18% tip on a $19.24 bill?<|eot|>
<|assistant|>
```python
bill = 19.24
tip_rate = 18 / 100
tip = bill * tip_rate
print(f"{tip:.2f}")
```
Printed — 3.46
The tip is $3.46.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are an assistant for a small office."
},
{
"role": "user",
"content": "What is a 18% tip on a $19.24 bill?"
},
{
"role": "assistant",
"content": "```python\nbill = 19.24\ntip_rate = 18 / 100\ntip = bill * tip_rate\nprint(f\"{tip:.2f}\")\n```\nPrint... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "3.46", "printed": "3.46", "notation": null} |
nlprog_det-setting-0062197 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "sandbox_python", "description": "Evaluates Python and retur... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"name\": \"sandb... | nlprog_det | setting | original | null | deterministic | [] | [] | 335 | {"gold": "950.00", "printed": "950.00", "notation": null} |
nlprog_det-setting-0062198 | Counting only Monday through Friday, how many business days are there after September 16, 2028 through October 5, 2028?
Python makes this quick:
from datetime import date, timedelta
start = date(2028, 9, 16)
end = date(2028, 10, 5)
count = 0
for k in range(1, (end - start).days + 1):
if (st... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 151 | {"gold": "14", "printed": "14", "notation": null} |
nlprog_det-setting-0062199 | Each storage box holds 50 files. How many boxes are needed for 749 files?
One way, in code:
import math
files = 749
per_box = 50
boxes = math.ceil(files / per_box) # 15
print(boxes)
The program outputs 15.
It takes 15 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "15", "printed": "15", "notation": null} |
nlprog_det-setting-0062200 | 3 clients win $72,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?
Let the code do the arithmetic:
```python
award = 72000
fee = award * 30 / 100 # 21600.0
remaining = award - fee # 50400.0
per_client = remaining / 3 # 16800.0
print(f"{per_client:.2f}")
```
On running, it out... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 141 | {"gold": "16800.00", "printed": "16800.00", "notation": null} |
nlprog_det-setting-0062201 | A garage charges $2 an hour, never more than $24 a day. How much for 9 hours?
Computation in Python:
```python
rate = 2
hours = 9
daily_max = 24
cost = min(rate * hours, daily_max) # 18
print(cost)
```
The script prints 18.
Parking costs $18. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0062203 | <|start|><|user|>
12 boxes hold 25 desk lamps each. After 20 are handed out, how many are left?<|eot|>
<|assistant|>
```python
boxes = 12
per_box = 25
given_away = 20
left = boxes * per_box - given_away # 280
print(left)
```
Python prints: 280
That leaves 280 desk lamps.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "12 boxes hold 25 desk lamps each. After 20 are handed out, how many are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 12\nper_box = 25\ngiven_away = 20\nleft = boxes * per_box - given_away # 280\nprint(left)\n```\nPython prints: 280\n\nThat leaves... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "280", "printed": "280", "notation": null} |
nlprog_det-setting-0062204 | A lawyer's fee is 40% of a $12,000 recovery. How large is the fee?
In Python:
```python
recovery = 12000
rate = 40 / 100 # 0.4
fee = recovery * rate # 4800.0
print(f"{fee:.2f}")
```
(Output: 4800.00)
The lawyer's fee comes to $4,800.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "4800.00", "printed": "4800.00", "notation": null} |
nlprog_det-setting-0062205 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
At an exchange rate of 0.92 CAD per USD, how many CAD is 6,705 USD?<|eot|>
<|assistant|>
```python
amount = 6705
rate = 0.92
converted = amount * rate # 6168.6
print(f"{converted:.2f}")
```
Output:
6168.60
It converts to 6,168.60 CAD.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "At an exchange rate of 0.92 CAD per USD, how many CAD is 6,705 USD?"
},
{
"role": "assistant",
"content": "```python\namount = 6705\nrate = 0.92\nconverted = amount * rate # 6168.6\nprint(... | nlprog_det | setting | original | null | deterministic | [] | [] | 123 | {"gold": "6168.60", "printed": "6168.60", "notation": null} |
nlprog_det-setting-0062206 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
{"name": "run_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}
{"name": "search_cas... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"run_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code... | nlprog_det | setting | original | null | deterministic | [] | [] | 287 | {"gold": "720.00", "printed": "720.00", "notation": null} |
nlprog_det-setting-0062207 | Revenue is $22,000 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)?
We can compute it in Python.
```python
revenue = 22000
costs = 20000
profit = revenue - costs # 2000
margin = profit / revenue * 100 # 9.090909090909092
print(round(margin, 1))
```
The printout reads: 9.1
Prof... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "9.1", "printed": "9.1", "notation": null} |
nlprog_det-setting-0062208 | <|start|><|user|>
How many of 238 votes make 67% (round up)?<|eot|>
<|assistant|>
```python
import math
voters = 238
needed = math.ceil(voters * 67 / 100)
print(needed)
```
(Out: 160)
160 votes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many of 238 votes make 67% (round up)?"
},
{
"role": "assistant",
"content": "```python\nimport math\nvoters = 238\nneeded = math.ceil(voters * 67 / 100)\nprint(needed)\n```\n(Out: 160)\n\n160 votes are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "160", "printed": "160", "notation": null} |
nlprog_det-setting-0062209 | <|start|><|user|>
How much sales tax is charged on a $640.07 purchase at 8%?<|eot|>
<|assistant|>
```python
price = 640.07
tax_rate = 8 / 100 # 0.08
tax = price * tax_rate # 51.205600000000004
print(f"{tax:.2f}")
```
The program prints 51.21.
$51.21 in tax.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How much sales tax is charged on a $640.07 purchase at 8%?"
},
{
"role": "assistant",
"content": "```python\nprice = 640.07\ntax_rate = 8 / 100 # 0.08\ntax = price * tax_rate # 51.205600000000004\nprint(f\"{tax:.2f}\")\n```\nThe program prints 51.21.\n\n$51.21 in ... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "51.21", "printed": "51.21", "notation": null} |
nlprog_det-setting-0062210 | From a $5,000 retainer, 5 hours at $275/hour have been drawn. What remains?
In code:
```python
retainer = 5000
hours = 5
rate = 275
left = retainer - hours * rate # 3625
print(left)
```
Output = 3625
The remaining balance is $3,625. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "3625", "printed": "3625", "notation": null} |
nlprog_det-setting-0062211 | Each of Signe's swims burns 200 calories. How many calories over 4 swims?
800 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 32 | {"gold": "800", "printed": "800", "notation": null} |
nlprog_det-setting-0062212 | <|start|><|system|>
Show working only when it helps.<|eot|>
<|user|>
A lease runs for 36 months at $2,875 per month. How much rent is paid over the whole term?<|eot|>
<|assistant|>
```python
monthly_rent = 2875
months = 36
total = monthly_rent * months # 103500
print(total)
```
The printout reads 103500.
The rent ove... | chat | [
{
"role": "system",
"content": "Show working only when it helps."
},
{
"role": "user",
"content": "A lease runs for 36 months at $2,875 per month. How much rent is paid over the whole term?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 2875\nmonths = 36\ntotal = mo... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "103500", "printed": "103500", "notation": null} |
nlprog_det-setting-0062213 | <|start|><|system|>
Available functions (JSON Schema):
[{"name": "eval_python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
So... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n[{\"name\": \"eval_python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source cod... | nlprog_det | setting | original | null | deterministic | [] | [] | 258 | {"gold": "63", "printed": "63", "notation": null} |
nlprog_det-setting-0062214 | On which weekday does June 28, 2008 fall?
Computing it:
```python
from datetime import date
hearing = date(2008, 6, 28) # datetime.date(2008, 6, 28)
print(hearing.strftime("%A"))
```
Run result — Saturday
It is a Saturday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "Saturday", "printed": "Saturday", "notation": null} |
nlprog_det-setting-0062215 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
Divide 224 items among 4 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|>
<|assistant|>
```python
total = 224
groups = 4
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remai... | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "Divide 224 items among 4 groups as evenly as possible with equal groups. How many per group, and how many remain?"
},
{
"role": "assistant",
"content": "```python\ntotal = 224\ngr... | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "56 each, 0 left over", "printed": "56 each, 0 left over", "notation": null} |
nlprog_det-setting-0062216 | <|start|><|system|>
Be brief and correct.<|eot|>
<|user|>
A lawyer's fee is 40% of a $40,000 recovery. How large is the fee?<|eot|>
<|assistant|>
The fee is $16,000.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be brief and correct."
},
{
"role": "user",
"content": "A lawyer's fee is 40% of a $40,000 recovery. How large is the fee?"
},
{
"role": "assistant",
"content": "The fee is $16,000.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 49 | {"gold": "16000.00", "printed": "16000.00", "notation": null} |
nlprog_det-setting-0062218 | <|start|><|user|>
A court charges $5 per request plus $0.25 per page after the first 10 pages. What does a 96-page copy cost?<|eot|>
<|assistant|>
The copy costs $26.50.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A court charges $5 per request plus $0.25 per page after the first 10 pages. What does a 96-page copy cost?"
},
{
"role": "assistant",
"content": "The copy costs $26.50."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 47 | {"gold": "26.50", "printed": "26.50", "notation": null} |
nlprog_det-setting-0062219 | <|start|><|system|>
Be concise.<|eot|>
<|user|>
A lawyer's fee is 40% of a $60,000 recovery. How large is the fee?<|eot|>
<|assistant|>
recovery = 60000
rate = 40 / 100 # 0.4
fee = recovery * rate # 24000.0
print(f"{fee:.2f}")
Shell output — 24000.00
The fee is $24,000.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Be concise."
},
{
"role": "user",
"content": "A lawyer's fee is 40% of a $60,000 recovery. How large is the fee?"
},
{
"role": "assistant",
"content": " recovery = 60000\n rate = 40 / 100 # 0.4\n fee = recovery * rate # 24000.0\n print(f\... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "24000.00", "printed": "24000.00", "notation": null} |
nlprog_det-setting-0062220 | Scale 240 g of sugar from 2 servings to 10 servings.
The program:
```python
grams = 240
serves = 2
needed_for = 10
scaled = grams * needed_for // serves # 1200
print(scaled)
```
The printout reads 1200.
1200 grams of sugar are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "1200", "printed": "1200", "notation": null} |
nlprog_det-setting-0062221 | Scale 200 g of flour from 2 servings to 10 servings. Use 1000 g of flour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 24 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0062222 | Rent of $1,100 goes up 6%. What is the new rent?
The program:
```python
rent = 1100
increase = 6 / 100 # 0.06
new_rent = rent * (1 + increase) # 1166.0
print(f"{new_rent:.2f}")
```
The run gives: 1166.00
The new rent is $1,166.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "1166.00", "printed": "1166.00", "notation": null} |
nlprog_det-setting-0062223 | <|start|><|user|>
With $12,500 in costs and $13,000 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|>
<|assistant|>
```python
revenue = 13000
costs = 12500
profit = revenue - costs # 500
margin = profit / revenue * 100 # 3.8461538461538463
print(round(margin, 1))
```
Printed result: 3.8
Pro... | chat | [
{
"role": "user",
"content": "With $12,500 in costs and $13,000 in revenue, what percent of revenue is profit? Round to one decimal."
},
{
"role": "assistant",
"content": "```python\nrevenue = 13000\ncosts = 12500\nprofit = revenue - costs # 500\nmargin = profit / revenue * 100 # 3.84615384615... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "3.8", "printed": "3.8", "notation": null} |
nlprog_det-setting-0062224 | <|start|><|user|>
After a 40% fee is taken from a $72,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|>
<|assistant|>
```python
award = 72000
fee = award * 40 / 100 # 28800.0
remaining = award - fee # 43200.0
per_client = remaining / 4 # 10800.0
print(f"{per_client:.2f}")... | chat | [
{
"role": "user",
"content": "After a 40% fee is taken from a $72,000 judgment, 4 plaintiffs share the remainder equally. What is each plaintiff's share?"
},
{
"role": "assistant",
"content": "```python\naward = 72000\nfee = award * 40 / 100 # 28800.0\nremaining = award - fee # 43200.0\nper_cl... | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "10800.00", "printed": "10800.00", "notation": null} |
nlprog_det-setting-0062225 | What percentage of $2,000 is $600?
As a program:
```python
budget = 2000
spent = 600
percent = spent / budget * 100 # 30.0
print(round(percent, 1))
```
The run gives 30.0.
30.0% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 79 | {"gold": "30.0", "printed": "30.0", "notation": null} |
nlprog_det-setting-0062226 | The landlord deducts $200, $45 and $45 from a $1,500 deposit. What is returned to the tenant?
Here's the code.
```python
deposit = 1500
deductions = [200, 45, 45]
refund = deposit - sum(deductions) # 1210
print(refund)
```
(Result: 1210)
$1,210 is returned. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 105 | {"gold": "1210", "printed": "1210", "notation": null} |
nlprog_det-setting-0062227 | <|start|><|user|>
From a $5,000 retainer, 5 hours at $250/hour have been drawn. What remains?<|eot|>
<|assistant|>
```python
retainer = 5000
hours = 5
rate = 250
left = retainer - hours * rate # 3750
print(left)
```
Running this gives 3750.
$3,750 of the retainer is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From a $5,000 retainer, 5 hours at $250/hour have been drawn. What remains?"
},
{
"role": "assistant",
"content": "```python\nretainer = 5000\nhours = 5\nrate = 250\nleft = retainer - hours * rate # 3750\nprint(left)\n```\nRunning this gives 3750.\n\n$3,750 of the ... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "3750", "printed": "3750", "notation": null} |
nlprog_det-setting-0062228 | Find the mean of these test scores: 56, 53, 59, 50 and 67.
Python does the arithmetic:
```python
scores = [56, 53, 59, 50, 67]
average = sum(scores) // len(scores) # 57
print(average)
```
Execution result: 57
The average score is 57. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "57", "printed": "57", "notation": null} |
nlprog_det-setting-0062229 | With 25% off, what does a $120 backpack cost?
Code:
```python
price = 120
discount = 25 / 100 # 0.25
sale_price = price * (1 - discount) # 90.0
print(f"{sale_price:.2f}")
```
Python prints 90.00.
The sale price is $90.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "90.00", "printed": "90.00", "notation": null} |
nlprog_det-setting-0062230 | A party has 21 days to respond to a motion served on January 9, 2022, with 3 days added because service was by mail. When is the response due?
```python
from datetime import date, timedelta
served = date(2022, 1, 9) # datetime.date(2022, 1, 9)
response_days = 21
mail_days = 3
due = served + timedelta(days=response_da... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 165 | {"gold": "2022-02-02", "printed": "2022-02-02", "notation": null} |
nlprog_det-setting-0062231 | <|start|><|user|>
Starting with 717 file boxes and using 6 per day, how many remain after 9 days?<|eot|>
<|assistant|>
stock = 717
per_day = 6
days = 9
left = stock - per_day * days # 663
print(left)
Run output: 663
663 file boxes are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting with 717 file boxes and using 6 per day, how many remain after 9 days?"
},
{
"role": "assistant",
"content": " stock = 717\n per_day = 6\n days = 9\n left = stock - per_day * days # 663\n print(left)\nRun output: 663\n\n663 file boxes are le... | nlprog_det | setting | original | null | deterministic | [] | [] | 83 | {"gold": "663", "printed": "663", "notation": null} |
nlprog_det-setting-0062232 | From 2020 to 2047, how many years is that?
Python version:
```python
start_year = 2020
end_year = 2047
print(end_year - start_year)
```
The program outputs 27.
That is 27 years. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 70 | {"gold": "27", "printed": "27", "notation": null} |
nlprog_det-setting-0062233 | <|start|><|user|>
Arjun buys 7 boxes of 25 envelopes each and gives away 8 envelopes. How many envelopes are left?<|eot|>
<|assistant|>
boxes = 7
per_box = 25
given_away = 8
left = boxes * per_box - given_away # 167
print(left)
Printed — 167
That leaves 167 envelopes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Arjun buys 7 boxes of 25 envelopes each and gives away 8 envelopes. How many envelopes are left?"
},
{
"role": "assistant",
"content": " boxes = 7\n per_box = 25\n given_away = 8\n left = boxes * per_box - given_away # 167\n print(left)\nPrinted — 16... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "167", "printed": "167", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.