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-0063196 | <|start|><|user|>
Fixed costs are $1,200. Each unit sells for $15 and costs $9 to make. How many units must be sold to break even?<|eot|>
<|assistant|>
200 units are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Fixed costs are $1,200. Each unit sells for $15 and costs $9 to make. How many units must be sold to break even?"
},
{
"role": "assistant",
"content": "200 units are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "200", "printed": "200", "notation": null} |
nlprog_det-setting-0063197 | <|start|><|system|>
You are a helpful assistant.<|eot|>
<|user|>
A lease runs for 24 months at $975 per month. How much rent is paid over the whole term?<|eot|>
<|assistant|>
```python
monthly_rent = 975
months = 24
total = monthly_rent * months # 23400
print(total)
```
The interpreter prints: 23400
The rent over the... | chat | [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "A lease runs for 24 months at $975 per month. How much rent is paid over the whole term?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 975\nmonths = 24\ntotal = monthly_r... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "23400", "printed": "23400", "notation": null} |
nlprog_det-setting-0063198 | On which weekday does July 17, 1990 fall?
A short script:
```python
from datetime import date
hearing = date(1990, 7, 17) # datetime.date(1990, 7, 17)
print(hearing.strftime("%A"))
```
Out = Tuesday
It is a Tuesday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "Tuesday", "printed": "Tuesday", "notation": null} |
nlprog_det-setting-0063199 | <|start|><|user|>
A count moves from 2,500 to 2,750. By what percent did it change (use a minus sign for a drop)?<|eot|>
<|assistant|>
```python
old = 2500
new = 2750
change = (new - old) / old * 100 # 10.0
print(round(change))
```
Printed:
10
It changed by 10%.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A count moves from 2,500 to 2,750. By what percent did it change (use a minus sign for a drop)?"
},
{
"role": "assistant",
"content": "```python\nold = 2500\nnew = 2750\nchange = (new - old) / old * 100 # 10.0\nprint(round(change))\n```\nPrinted:\n10\n\nIt changed ... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "10", "printed": "10", "notation": null} |
nlprog_det-setting-0063200 | The rules require 3/5 of 14 members (round up) to be present. How many is that?
```python
import math
members = 14
quorum = math.ceil(members * 3 / 5) # 9
print(quorum)
```
# stdout: 9
9 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "9", "printed": "9", "notation": null} |
nlprog_det-setting-0063201 | <|start|><|system|>
You help paralegals with routine tasks.<|eot|>
<|user|>
A claim accrued on September 28, 2012. The limitations period is 5 years. On what date does it expire?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2012, 9, 28) # datetime.date(2012, 9, 28)
years = 5
expires = accrue... | chat | [
{
"role": "system",
"content": "You help paralegals with routine tasks."
},
{
"role": "user",
"content": "A claim accrued on September 28, 2012. The limitations period is 5 years. On what date does it expire?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date... | nlprog_det | setting | original | null | deterministic | [] | [] | 161 | {"gold": "2017-09-28", "printed": "2017-09-28", "notation": null} |
nlprog_det-setting-0063202 | Each of Emeka's bike rides burns 150 calories. How many calories over 4 bike rides?
Python version:
per_session = 150
sessions = 4
total = per_session * sessions # 600
print(total)
When run, it prints: 600
That burns 600 calories. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0063203 | <|start|><|user|>
Malik buys 5 boxes of 12 clipboards each and gives away 3 clipboards. How many clipboards are left?<|eot|>
<|assistant|>
```python
boxes = 5
per_box = 12
given_away = 3
left = boxes * per_box - given_away # 57
print(left)
```
Output — 57
57 clipboards are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Malik buys 5 boxes of 12 clipboards each and gives away 3 clipboards. How many clipboards are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 5\nper_box = 12\ngiven_away = 3\nleft = boxes * per_box - given_away # 57\nprint(left)\n```\nOutput — 57\n\... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "57", "printed": "57", "notation": null} |
nlprog_det-setting-0063204 | <|start|><|system|>
Tool definitions:
{"name": "python_exec", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|>
<|user|>
A clerk's office ... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"python_exec\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"req... | nlprog_det | setting | original | null | deterministic | [] | [] | 211 | {"gold": "200", "printed": "200", "notation": null} |
nlprog_det-setting-0063205 | Water costs $18 a month plus $5.10 for each 1,000 gallons over 0,000. What is owed for 17,000 gallons?
Programmatically:
```python
base = 18
rate = 5.1
used = 17
free = 0
bill = base + rate * max(0, used - free) # 104.69999999999999
print(f"{bill:.2f}")
```
Execution result — 104.70
$104.70 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "104.70", "printed": "104.70", "notation": null} |
nlprog_det-setting-0063206 | Express 49 hours in days and hours.
```python
hours = 49
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
What it prints: 2 days and 1 hours
49 hours is 2 days and 1 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "2 days and 1 hours", "printed": "2 days and 1 hours", "notation": null} |
nlprog_det-setting-0063207 | Each of Bruna's bike rides burns 250 calories. How many calories over 3 bike rides?
A few lines of Python do it:
```python
per_session = 250
sessions = 3
total = per_session * sessions # 750
print(total)
```
Console output: 750
750 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "750", "printed": "750", "notation": null} |
nlprog_det-setting-0063208 | 80 files go into boxes of 24. How many boxes does that take?
```python
import math
files = 80
per_box = 24
boxes = math.ceil(files / per_box) # 4
print(boxes)
```
Shell output — 4
It takes 4 boxes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0063209 | How many 1-foot square tiles cover a 5 ft by 7 ft floor (round up)?
Python makes this quick:
```python
import math
length = 5
width = 7
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 35
print(tiles)
```
Result — 35
It takes 35 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "35", "printed": "35", "notation": null} |
nlprog_det-setting-0063210 | Printing costs 10 cents a page. What does it cost to print 114 copies of a 6-page handout?
The job costs $68.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "68.40", "printed": "68.40", "notation": null} |
nlprog_det-setting-0063211 | Printing costs 5 cents a page. What does it cost to print 25 copies of a 34-page handout?
The program:
```python
pages = 34
copies = 25
cost_per_page = 0.05
cost = pages * copies * cost_per_page # 42.5
print(f"{cost:.2f}")
```
Interpreter output — 42.50
Printing costs $42.50. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "42.50", "printed": "42.50", "notation": null} |
nlprog_det-setting-0063212 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "eval_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
From a $7,500... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"eval_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"re... | nlprog_det | setting | original | null | deterministic | [] | [] | 227 | {"gold": "6250", "printed": "6250", "notation": null} |
nlprog_det-setting-0063213 | At 30 miles per hour, how many minutes does a 60-mile trip take?
Here is the program.
```python
distance = 60
speed = 30
minutes = distance / speed * 60 # 120.0
print(round(minutes))
```
Executing it gives 120.
120 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "120", "printed": "120", "notation": null} |
nlprog_det-setting-0063214 | A 28 lb package ships at $8 base plus $2.00/lb. What is the charge?
Programmatically:
```python
base = 8
per_pound = 2.0
weight = 28
cost = base + per_pound * weight # 64.0
print(f"{cost:.2f}")
```
Execution result: 64.00
Shipping costs $64.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "64.00", "printed": "64.00", "notation": null} |
nlprog_det-setting-0063215 | 51 copies of a 43-page packet are printed at $0.05 per page. What is the cost?
A Python solution:
```python
pages = 43
copies = 51
cost_per_page = 0.05
cost = pages * copies * cost_per_page # 109.65
print(f"{cost:.2f}")
```
Printed result — 109.65
The job costs $109.65. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "109.65", "printed": "109.65", "notation": null} |
nlprog_det-setting-0063216 | <|start|><|user|>
To read 315 pages in 15 days, how many pages per day are needed?<|eot|>
<|assistant|>
```python
pages = 315
days = 15
per_day = pages // days # 21
print(per_day)
```
Interpreter output: 21
21 pages a day.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "To read 315 pages in 15 days, how many pages per day are needed?"
},
{
"role": "assistant",
"content": "```python\npages = 315\ndays = 15\nper_day = pages // days # 21\nprint(per_day)\n```\nInterpreter output: 21\n\n21 pages a day."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "21", "printed": "21", "notation": null} |
nlprog_det-setting-0063217 | The rules require 2/3 of 58 members (round up) to be present. How many is that?
One way, in code:
```python
import math
members = 58
quorum = math.ceil(members * 2 / 3) # 39
print(quorum)
```
Run output — 39
39 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "39", "printed": "39", "notation": null} |
nlprog_det-setting-0063218 | <|start|><|system|>
You check calculations for an accounting team.<|eot|>
<|user|>
A 6-month warranty starts on August 27, 2025. On what date does it end?<|eot|>
<|assistant|>
```python
from datetime import date
start = date(2025, 8, 27)
months = 6
years, month_index = divmod(start.month - 1 + months, 12)
end = date(st... | chat | [
{
"role": "system",
"content": "You check calculations for an accounting team."
},
{
"role": "user",
"content": "A 6-month warranty starts on August 27, 2025. On what date does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nstart = date(2025, 8, ... | nlprog_det | setting | original | null | deterministic | [] | [] | 161 | {"gold": "2026-02-27", "printed": "2026-02-27", "notation": null} |
nlprog_det-setting-0063219 | Find the mean of these test scores: 77, 75 and 88.
Let's compute it with Python.
scores = [77, 75, 88]
average = sum(scores) // len(scores) # 80
print(average)
Executing it gives 80.
The mean is 80. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "80", "printed": "80", "notation": null} |
nlprog_det-setting-0063220 | A hearing lasted 5 hours and 38 minutes. How many minutes is that?
A Python solution:
```python
hours = 5
minutes = 38
total_minutes = hours * 60 + minutes # 338
print(total_minutes)
```
# output: 338
The hearing lasted 338 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "338", "printed": "338", "notation": null} |
nlprog_det-setting-0063221 | Split $3,560 between Zoe and Yusuf in the ratio 1 to 3. What is Zoe's share?
Computation in Python:
```python
total = 3560
parts_a = 1
parts_b = 3
share_a = total * parts_a // (parts_a + parts_b) # 890
print(share_a)
```
Console output — 890
Zoe's share is $890. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "890", "printed": "890", "notation": null} |
nlprog_det-setting-0063222 | The paralegal logged 8 hours at a rate of $180. How much is billed?
We write it as a program:
```python
hours = 8
rate = 180
bill = hours * rate # 1440
print(f"{bill:.2f}")
```
That prints: 1440.00
The bill is $1,440.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "1440.00", "printed": "1440.00", "notation": null} |
nlprog_det-setting-0063223 | What day of the week is June 5, 2013?
Let the code do the arithmetic:
```python
from datetime import date
hearing = date(2013, 6, 5) # datetime.date(2013, 6, 5)
print(hearing.strftime("%A"))
```
Printed result — Wednesday
It is a Wednesday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "Wednesday", "printed": "Wednesday", "notation": null} |
nlprog_det-setting-0063224 | Each of Tariq's runs burns 200 calories. How many calories over 3 runs?
```python
per_session = 200
sessions = 3
total = per_session * sessions # 600
print(total)
```
(Program output: 600)
600 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "600", "printed": "600", "notation": null} |
nlprog_det-setting-0063225 | With 10 rows of 13 chairs and 28 empty chairs, how many chairs are taken?
Code:
```python
rows = 10
per_row = 13
empty = 28
seated = rows * per_row - empty # 102
print(seated)
```
Out:
102
102 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "102", "printed": "102", "notation": null} |
nlprog_det-setting-0063226 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "run_python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}
{"name": "business_days", "description": "... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"run_python\", \"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 | [] | [] | 337 | {"gold": "28", "printed": "28", "notation": null} |
nlprog_det-setting-0063227 | <|start|><|user|>
At an exchange rate of 0.92 EUR per USD, how many EUR is 5,549 USD?<|eot|>
<|assistant|>
```python
amount = 5549
rate = 0.92
converted = amount * rate # 5105.08
print(f"{converted:.2f}")
```
(Out: 5105.08)
It converts to 5,105.08 EUR.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At an exchange rate of 0.92 EUR per USD, how many EUR is 5,549 USD?"
},
{
"role": "assistant",
"content": "```python\namount = 5549\nrate = 0.92\nconverted = amount * rate # 5105.08\nprint(f\"{converted:.2f}\")\n```\n(Out: 5105.08)\n\nIt converts to 5,105.08 EUR."
... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "5105.08", "printed": "5105.08", "notation": null} |
nlprog_det-setting-0063228 | <|start|><|user|>
What does $1,000 grow to in 4 years at 3% annual compounding?<|eot|>
<|assistant|>
```python
principal = 1000
rate = 3 / 100 # 0.03
years = 4
value = principal * (1 + rate) ** years # 1125.50881
print(f"{value:.2f}")
```
The run gives 1125.51, as expected.
The balance is $1,125.51.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What does $1,000 grow to in 4 years at 3% annual compounding?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 1000\nrate = 3 / 100 # 0.03\nyears = 4\nvalue = principal * (1 + rate) ** years # 1125.50881\nprint(f\"{value:.2f}\")\n```\nThe run gives 11... | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "1125.51", "printed": "1125.51", "notation": null} |
nlprog_det-setting-0063229 | Monthly rent is $1,200. A tenant moves in with 22 days left in a 30-day month. What is the prorated rent?
Here is a short program for it.
```python
rent = 1200
days_in_month = 30
days_occupied = 22
prorated = rent * days_occupied / days_in_month # 880.0
print(f"{prorated:.2f}")
```
Output of the run: 880.00
The tena... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "880.00", "printed": "880.00", "notation": null} |
nlprog_det-setting-0063230 | 3 swims at 300 calories each burn how many calories in total?
Written as code:
```python
per_session = 300
sessions = 3
total = per_session * sessions # 900
print(total)
```
Executed, it shows: 900
900 calories in total. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "900", "printed": "900", "notation": null} |
nlprog_det-setting-0063231 | <|start|><|user|>
2 clients win $30,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?<|eot|>
<|assistant|>
```python
award = 30000
fee = award * 30 / 100 # 9000.0
remaining = award - fee # 21000.0
per_client = remaining / 2 # 10500.0
print(f"{per_client:.2f}")
```
Run result — ... | chat | [
{
"role": "user",
"content": "2 clients win $30,000. The lawyer takes 30%, and the rest is split equally. How much does each client get?"
},
{
"role": "assistant",
"content": "```python\naward = 30000\nfee = award * 30 / 100 # 9000.0\nremaining = award - fee # 21000.0\nper_client = remaining /... | nlprog_det | setting | original | null | deterministic | [] | [] | 135 | {"gold": "10500.00", "printed": "10500.00", "notation": null} |
nlprog_det-setting-0063232 | <|start|><|user|>
What simple interest does $2,500 earn at 8% a year over 4 years?<|eot|>
<|assistant|>
```python
principal = 2500
rate = 8 / 100 # 0.08
years = 4
interest = principal * rate * years # 800.0
print(f"{interest:.2f}")
```
Run output — 800.00
The interest is $800.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What simple interest does $2,500 earn at 8% a year over 4 years?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 2500\nrate = 8 / 100 # 0.08\nyears = 4\ninterest = principal * rate * years # 800.0\nprint(f\"{interest:.2f}\")\n```\nRun output — 800.00... | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "800.00", "printed": "800.00", "notation": null} |
nlprog_det-setting-0063233 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "code_runner", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"code_runner\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source c... | nlprog_det | setting | original | null | deterministic | [] | [] | 219 | {"gold": "106", "printed": "106", "notation": null} |
nlprog_det-setting-0063234 | <|start|><|user|>
A claim accrued on August 11, 2022. The limitations period is 4 years. On what date does it expire?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2022, 8, 11) # datetime.date(2022, 8, 11)
years = 4
expires = accrued.replace(year=accrued.year + years) # datetime.date(2026, 8... | chat | [
{
"role": "user",
"content": "A claim accrued on August 11, 2022. The limitations period is 4 years. On what date does it expire?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrued = date(2022, 8, 11) # datetime.date(2022, 8, 11)\nyears = 4\nexpires = accrued.r... | nlprog_det | setting | original | null | deterministic | [] | [] | 150 | {"gold": "2026-08-11", "printed": "2026-08-11", "notation": null} |
nlprog_det-setting-0063235 | <|start|><|user|>
A 90-mile drive at a steady 30 mph takes how many minutes?<|eot|>
<|assistant|>
180 minutes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 90-mile drive at a steady 30 mph takes how many minutes?"
},
{
"role": "assistant",
"content": "180 minutes."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 30 | {"gold": "180", "printed": "180", "notation": null} |
nlprog_det-setting-0063236 | Counting only Monday through Friday, how many business days are there after January 10, 2026 through January 16, 2026?
As a program:
```python
from datetime import date, timedelta
start = date(2026, 1, 10)
end = date(2026, 1, 16)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).w... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 156 | {"gold": "5", "printed": "5", "notation": null} |
nlprog_det-setting-0063237 | <|start|><|system|>
You are an assistant for a small office.<|eot|>
<|user|>
The paralegal logged 12 hours at a rate of $410. How much is billed?<|eot|>
<|assistant|>
```python
hours = 12
rate = 410
bill = hours * rate # 4920
print(f"{bill:.2f}")
```
Out = 4920.00
That comes to $4,920.00.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are an assistant for a small office."
},
{
"role": "user",
"content": "The paralegal logged 12 hours at a rate of $410. How much is billed?"
},
{
"role": "assistant",
"content": "```python\nhours = 12\nrate = 410\nbill = hours * rate # 4920\nprint... | nlprog_det | setting | original | null | deterministic | [] | [] | 110 | {"gold": "4920.00", "printed": "4920.00", "notation": null} |
nlprog_det-setting-0063238 | What average speed covers 36 miles in 1 hours?
The average speed is 36 mph. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 22 | {"gold": "36", "printed": "36", "notation": null} |
nlprog_det-setting-0063239 | Water costs $18 a month plus $3.50 for each 1,000 gallons over 0,000. What is owed for 4,000 gallons?
In code:
```python
base = 18
rate = 3.5
used = 4
free = 0
bill = base + rate * max(0, used - free) # 32.0
print(f"{bill:.2f}")
```
Result = 32.00
$32.00 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "32.00", "printed": "32.00", "notation": null} |
nlprog_det-setting-0063240 | How many weekdays (Monday to Friday) fall after October 28, 2023 up to and including November 15, 2023?
Written as code:
```python
from datetime import date, timedelta
start = date(2023, 10, 28)
end = date(2023, 11, 15)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k)).weekday() <... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 154 | {"gold": "13", "printed": "13", "notation": null} |
nlprog_det-setting-0063241 | A garage charges $3 an hour, never more than $20 a day. How much for 12 hours?
Here is the program.
```python
rate = 3
hours = 12
daily_max = 20
cost = min(rate * hours, daily_max) # 20
print(cost)
```
Output of the run — 20
Parking costs $20. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "20", "printed": "20", "notation": null} |
nlprog_det-setting-0063242 | <|start|><|user|>
At $20.42 an hour, what does 30 hours of work pay?<|eot|>
<|assistant|>
```python
rate = 20.42
hours = 30
earnings = rate * hours # 612.6
print(f"{earnings:.2f}")
```
(Out: 612.60)
That earns $612.60.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At $20.42 an hour, what does 30 hours of work pay?"
},
{
"role": "assistant",
"content": "```python\nrate = 20.42\nhours = 30\nearnings = rate * hours # 612.6\nprint(f\"{earnings:.2f}\")\n```\n(Out: 612.60)\n\nThat earns $612.60."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "612.60", "printed": "612.60", "notation": null} |
nlprog_det-setting-0063243 | <|start|><|system|>
Answer accurately and briefly.<|eot|>
<|user|>
A 18-month warranty starts on October 7, 2020. On what date does it end?<|eot|>
<|assistant|>
```python
from datetime import date
start = date(2020, 10, 7)
months = 18
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + yea... | chat | [
{
"role": "system",
"content": "Answer accurately and briefly."
},
{
"role": "user",
"content": "A 18-month warranty starts on October 7, 2020. On what date does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nstart = date(2020, 10, 7)\nmonths = 1... | nlprog_det | setting | original | null | deterministic | [] | [] | 154 | {"gold": "2022-04-07", "printed": "2022-04-07", "notation": null} |
nlprog_det-setting-0063244 | Count the days between September 11, 2019 and October 31, 2019.
Let's compute it with Python.
```python
from datetime import date
first = date(2019, 9, 11) # datetime.date(2019, 9, 11)
second = date(2019, 10, 31) # datetime.date(2019, 10, 31)
print((second - first).days)
```
Python prints 50.
It is 50 days. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0063245 | A customer buys 4 staplers at $10 each, 3 notebooks at $20 each, 6 clipboards at $15 each, 6 flash drives at $27 each and pays with $400. How much change is due?
Here is a short program for it.
```python
items = [(4, 10), (3, 20), (6, 15), (6, 27)]
total = sum(q * p for q, p in items) # 352
paid = 400
change = paid -... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 157 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0063248 | Someone born September 27, 1993 turns how old by January 11, 2023? Give the age in whole years.
Here's the code.
```python
from datetime import date
born = date(1993, 9, 27) # datetime.date(1993, 9, 27)
on = date(2023, 1, 11) # datetime.date(2023, 1, 11)
age = on.year - born.year - ((on.month, on.day) < (born.month,... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 156 | {"gold": "29", "printed": "29", "notation": null} |
nlprog_det-setting-0063249 | If a 105-minute class begins at 8:45 AM, what time does it finish?
We write it as a program:
```python
start = 8 * 60 + 45
end = start + 105
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
```
Interpreter output: 10:30 AM
It ends at 10:30 AM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 128 | {"gold": "10:30 AM", "printed": "10:30 AM", "notation": null} |
nlprog_det-setting-0063250 | Convert 84.3 km to meters.
The program:
km = 84.3
meters = km * 1000 # 84300.0
print(round(meters))
The program prints 84300, as expected.
That is 84,300 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "84300", "printed": "84300", "notation": null} |
nlprog_det-setting-0063251 | A workshop lasted 3 hours and 34 minutes. How many minutes is that?
Python version:
```python
hours = 3
minutes = 34
total_minutes = hours * 60 + minutes # 214
print(total_minutes)
```
# console output: 214
The workshop lasted 214 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "214", "printed": "214", "notation": null} |
nlprog_det-setting-0063252 | Yoko's scores were 99, 67, 58, 66, 57 and 79. What is the average score?
A few lines of Python do it:
```python
scores = [99, 67, 58, 66, 57, 79]
average = sum(scores) // len(scores) # 71
print(average)
```
The script prints 71.
The mean is 71. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 106 | {"gold": "71", "printed": "71", "notation": null} |
nlprog_det-setting-0063253 | A court charges $5 per request plus $0.25 per page after the first 20 pages. What does a 116-page copy cost?
Coded up:
```python
pages = 116
base = 5
per_page = 0.25
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page # 29.0
print(f"{cost:.2f}")
```
(Run result: 29.00)
The copy costs $29.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 132 | {"gold": "29.00", "printed": "29.00", "notation": null} |
nlprog_det-setting-0063254 | A storeroom has 825 tape rolls. The office uses 21 a day. How many are left after 14 days?
Script:
stock = 825
per_day = 21
days = 14
left = stock - per_day * days # 531
print(left)
Running it prints 531.
531 tape rolls are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "531", "printed": "531", "notation": null} |
nlprog_det-setting-0063255 | Of a $10,000 budget, $100 has been spent. What percent is that?
We write it as a program:
```python
budget = 10000
spent = 100
percent = spent / budget * 100 # 1.0
print(round(percent, 1))
```
What it prints — 1.0
1.0% has been spent. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "1.0", "printed": "1.0", "notation": null} |
nlprog_det-setting-0063256 | <|start|><|system|>
Answer the user's question directly.<|eot|>
<|user|>
Which is cheaper per unit: 6 for $5.27 (A) or 20 for $12.81 (B)?<|eot|>
<|assistant|>
Pack B is cheaper per item.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer the user's question directly."
},
{
"role": "user",
"content": "Which is cheaper per unit: 6 for $5.27 (A) or 20 for $12.81 (B)?"
},
{
"role": "assistant",
"content": "Pack B is cheaper per item."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 58 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0063257 | Equal monthly payments repay $3,600 plus 10% simple yearly interest over 36 months. How large is a payment?
The program:
```python
principal = 3600
annual_rate = 10 / 100 # 0.1
months = 36
interest = principal * annual_rate * months / 12 # 1080.0
payment = (principal + interest) / months # 130.0
print(f"{payment:.2... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 142 | {"gold": "130.00", "printed": "130.00", "notation": null} |
nlprog_det-setting-0063258 | <|start|><|user|>
Filing fees are $350 per document. What do 19 filings cost?<|eot|>
<|assistant|>
The filings cost $6,650 in all.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Filing fees are $350 per document. What do 19 filings cost?"
},
{
"role": "assistant",
"content": "The filings cost $6,650 in all."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "6650", "printed": "6650", "notation": null} |
nlprog_det-setting-0063259 | <|start|><|user|>
The paralegal logged 10.5 hours at a rate of $410. How much is billed?<|eot|>
<|assistant|>
```python
hours = 10.5
rate = 410
bill = hours * rate # 4305.0
print(f"{bill:.2f}")
```
Result = 4305.00
The bill is $4,305.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "The paralegal logged 10.5 hours at a rate of $410. How much is billed?"
},
{
"role": "assistant",
"content": "```python\nhours = 10.5\nrate = 410\nbill = hours * rate # 4305.0\nprint(f\"{bill:.2f}\")\n```\nResult = 4305.00\n\nThe bill is $4,305.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "4305.00", "printed": "4305.00", "notation": null} |
nlprog_det-setting-0063260 | Someone born September 19, 1993 turns how old by September 26, 2028? Give the age in whole years.
Computation in Python:
```python
from datetime import date
born = date(1993, 9, 19) # datetime.date(1993, 9, 19)
on = date(2028, 9, 26) # datetime.date(2028, 9, 26)
age = on.year - born.year - ((on.month, on.day) < (bor... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 161 | {"gold": "35", "printed": "35", "notation": null} |
nlprog_det-setting-0063261 | <|start|><|system|>
You are a study helper for students.<|eot|>
<|user|>
Monthly: $12. Annual: $96. What is saved per year by paying annually?<|eot|>
<|assistant|>
```python
monthly = 12
yearly = 96
savings = monthly * 12 - yearly # 48
print(savings)
```
Python prints 48.
$48 is saved.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "You are a study helper for students."
},
{
"role": "user",
"content": "Monthly: $12. Annual: $96. What is saved per year by paying annually?"
},
{
"role": "assistant",
"content": "```python\nmonthly = 12\nyearly = 96\nsavings = monthly * 12 - yearly #... | nlprog_det | setting | original | null | deterministic | [] | [] | 102 | {"gold": "48", "printed": "48", "notation": null} |
nlprog_det-setting-0063262 | Convert 30 °C to Fahrenheit.
We write it as a program:
celsius = 30
fahrenheit = celsius * 9 / 5 + 32 # 86.0
print(round(fahrenheit))
Result — 86
That is 86 °F. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 74 | {"gold": "86", "printed": "86", "notation": null} |
nlprog_det-setting-0063263 | <|start|><|system|>
Tool definitions:
{"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_unit", "to_unit"]}}
{"name": "tran... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\": \"string\"}}, \"r... | nlprog_det | setting | original | null | deterministic | [] | [] | 409 | {"gold": "2 days and 18 hours", "printed": "2 days and 18 hours", "notation": null} |
nlprog_det-setting-0063264 | A 9-day trip pays $69 a day for meals and $110 a night for lodging (8 nights). What is the total allowance?
Program:
```python
days = 9
meal_rate = 69
lodging_rate = 110
nights = days - 1 # 8
total = days * meal_rate + nights * lodging_rate # 1501
print(total)
```
When run, it prints 1501, as expected.
The allowanc... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "1501", "printed": "1501", "notation": null} |
nlprog_det-setting-0063265 | <|start|><|system|>
Functions:
[{"name": "interpreter", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
4 swims at 300 calories each burn how man... | chat | [
{
"role": "system",
"content": "Functions:\n[{\"name\": \"interpreter\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}]"
... | nlprog_det | setting | original | null | deterministic | [] | [] | 197 | {"gold": "1200", "printed": "1200", "notation": null} |
nlprog_det-setting-0063266 | The landlord deducts $150 from a $2,500 deposit. What is returned to the tenant?
Computation in Python:
```python
deposit = 2500
deductions = [150]
refund = deposit - sum(deductions)
print(refund)
```
What it prints — 2350
The refund is $2,350. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "2350", "printed": "2350", "notation": null} |
nlprog_det-setting-0063267 | The rules require 3/5 of 38 members (round up) to be present. How many is that?
As Python:
```python
import math
members = 38
quorum = math.ceil(members * 3 / 5)
print(quorum)
```
# printed result: 23
That is 23 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0063268 | <|start|><|user|>
A water bill is $20 plus $4.20 per thousand gallons beyond the first 3 thousand. What is the bill for 20 thousand gallons?<|eot|>
<|assistant|>
```python
base = 20
rate = 4.2
used = 20
free = 3
bill = base + rate * max(0, used - free) # 91.4
print(f"{bill:.2f}")
```
The code prints: 91.40
$91.40 is ... | chat | [
{
"role": "user",
"content": "A water bill is $20 plus $4.20 per thousand gallons beyond the first 3 thousand. What is the bill for 20 thousand gallons?"
},
{
"role": "assistant",
"content": "```python\nbase = 20\nrate = 4.2\nused = 20\nfree = 3\nbill = base + rate * max(0, used - free) # 91.4\... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "91.40", "printed": "91.40", "notation": null} |
nlprog_det-setting-0063269 | At 1.5% a month (simple), what interest builds on $7,500 over 6 months? $675.00 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "675.00", "printed": "675.00", "notation": null} |
nlprog_det-setting-0063271 | A measure needs at least 75% of 50 votes. How many votes is that, rounded up?
Let's compute it with Python.
```python
import math
voters = 50
needed = math.ceil(voters * 75 / 100) # 38
print(needed)
```
Printed result — 38
At least 38 votes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "38", "printed": "38", "notation": null} |
nlprog_det-setting-0063272 | From a $7,500 retainer, 7 hours at $150/hour have been drawn. What remains?
Here is a short program for it.
```python
retainer = 7500
hours = 7
rate = 150
left = retainer - hours * rate # 6450
print(left)
```
# printed: 6450
The remaining balance is $6,450. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "6450", "printed": "6450", "notation": null} |
nlprog_det-setting-0063273 | What does $10,000 grow to in 5 years at 3% annual compounding?
```python
principal = 10000
rate = 3 / 100 # 0.03
years = 5
value = principal * (1 + rate) ** years # 11592.740743
print(f"{value:.2f}")
```
(Program output: 11592.74)
The balance is $11,592.74. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "11592.74", "printed": "11592.74", "notation": null} |
nlprog_det-setting-0063274 | A car travels 66 miles in 2 hours. What is its average speed in miles per hour?
In code:
```python
distance = 66
hours = 2
speed = distance / hours
print(round(speed))
```
The code prints: 33
It averages 33 miles per hour. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 78 | {"gold": "33", "printed": "33", "notation": null} |
nlprog_det-setting-0063275 | A penalty of $50 a day accrues, capped at $5,000. What is owed after 34 days?
Set it up in Python:
```python
per_day = 50
days = 34
cap = 5000
fine = min(per_day * days, cap) # 1700
print(fine)
```
Run result = 1700
$1,700 is owed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "1700", "printed": "1700", "notation": null} |
nlprog_det-setting-0063276 | <|start|><|system|>
Double-check numbers before answering.<|eot|>
<|user|>
A settlement of $15,000 is split equally among 8 parties. How much does each party receive?<|eot|>
<|assistant|>
```python
settlement = 15000
parties = 8
share = settlement // parties # 1875
print(share)
```
Printed = 1875
Each party receives ... | chat | [
{
"role": "system",
"content": "Double-check numbers before answering."
},
{
"role": "user",
"content": "A settlement of $15,000 is split equally among 8 parties. How much does each party receive?"
},
{
"role": "assistant",
"content": "```python\nsettlement = 15000\nparties = 8\nshar... | nlprog_det | setting | original | null | deterministic | [] | [] | 103 | {"gold": "1875", "printed": "1875", "notation": null} |
nlprog_det-setting-0063277 | <|start|><|system|>
Answer the user's question directly.<|eot|>
<|user|>
11 boxes hold 10 chairs each. After 18 are handed out, how many are left?<|eot|>
<|assistant|>
```python
boxes = 11
per_box = 10
given_away = 18
left = boxes * per_box - given_away # 92
print(left)
```
The program outputs 92.
92 chairs are left.... | chat | [
{
"role": "system",
"content": "Answer the user's question directly."
},
{
"role": "user",
"content": "11 boxes hold 10 chairs each. After 18 are handed out, how many are left?"
},
{
"role": "assistant",
"content": "```python\nboxes = 11\nper_box = 10\ngiven_away = 18\nleft = boxes *... | nlprog_det | setting | original | null | deterministic | [] | [] | 108 | {"gold": "92", "printed": "92", "notation": null} |
nlprog_det-setting-0063278 | An attorney bills 4 hours at $150 per hour. What is the bill?
A short script:
```python
hours = 4
rate = 150
bill = hours * rate # 600
print(f"{bill:.2f}")
```
# out: 600.00
The bill is $600.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "600.00", "printed": "600.00", "notation": null} |
nlprog_det-setting-0063281 | Revenue is $38,000 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?
Let the code do the arithmetic:
revenue = 38000
costs = 36000
profit = revenue - costs # 2000
margin = profit / revenue * 100 # 5.263157894736842
print(round(margin, 1))
Output = 5.3
The ma... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "5.3", "printed": "5.3", "notation": null} |
nlprog_det-setting-0063282 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "calculator", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"calculator\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 287 | {"gold": "225", "printed": "225", "notation": null} |
nlprog_det-setting-0063283 | <|start|><|system|>
You may call the tools below.
{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}
{"name": "math_engine", "description": "Executes Python code and returns std... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}\n{\"name\": \"math_engine... | nlprog_det | setting | original | null | deterministic | [] | [] | 310 | {"gold": "2020-04-14", "printed": "2020-04-14", "notation": null} |
nlprog_det-setting-0063284 | <|start|><|system|>
Keep answers short and correct.<|eot|>
<|user|>
Starting with 316 file boxes and using 16 per day, how many remain after 13 days?<|eot|>
<|assistant|>
```python
stock = 316
per_day = 16
days = 13
left = stock - per_day * days # 108
print(left)
```
stdout — 108
108 remain.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Keep answers short and correct."
},
{
"role": "user",
"content": "Starting with 316 file boxes and using 16 per day, how many remain after 13 days?"
},
{
"role": "assistant",
"content": "```python\nstock = 316\nper_day = 16\ndays = 13\nleft = stock - p... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "108", "printed": "108", "notation": null} |
nlprog_det-setting-0063285 | <|start|><|user|>
A lease runs for 12 months at $975 per month. How much rent is paid over the whole term?<|eot|>
<|assistant|>
```python
monthly_rent = 975
months = 12
total = monthly_rent * months # 11700
print(total)
```
Printed: 11700
In total, $11,700 is paid.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lease runs for 12 months at $975 per month. How much rent is paid over the whole term?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 975\nmonths = 12\ntotal = monthly_rent * months # 11700\nprint(total)\n```\nPrinted: 11700\n\nIn total, $11,700... | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "11700", "printed": "11700", "notation": null} |
nlprog_det-setting-0063286 | <|start|><|system|>
Answer the user's question directly.<|eot|>
<|user|>
How many 2-foot square tiles cover a 10 ft by 12 ft floor (round up)?<|eot|>
<|assistant|>
```python
import math
length = 10
width = 12
tile = 2
tiles = math.ceil(length * width / (tile * tile)) # 30
print(tiles)
```
stdout:
30
It takes 30 tiles... | chat | [
{
"role": "system",
"content": "Answer the user's question directly."
},
{
"role": "user",
"content": "How many 2-foot square tiles cover a 10 ft by 12 ft floor (round up)?"
},
{
"role": "assistant",
"content": "```python\nimport math\nlength = 10\nwidth = 12\ntile = 2\ntiles = math.... | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "30", "printed": "30", "notation": null} |
nlprog_det-setting-0063287 | <|start|><|user|>
Parking is $3 per hour with a daily maximum of $20. What do 2 hours cost?<|eot|>
<|assistant|>
```python
rate = 3
hours = 2
daily_max = 20
cost = min(rate * hours, daily_max) # 6
print(cost)
```
Program output: 6
Parking costs $6.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Parking is $3 per hour with a daily maximum of $20. What do 2 hours cost?"
},
{
"role": "assistant",
"content": "```python\nrate = 3\nhours = 2\ndaily_max = 20\ncost = min(rate * hours, daily_max) # 6\nprint(cost)\n```\nProgram output: 6\n\nParking costs $6."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 94 | {"gold": "6", "printed": "6", "notation": null} |
nlprog_det-setting-0063288 | <|start|><|user|>
An invoice lists 34 batteries at $24 each, plus 8% sales tax. What is the invoice total?<|eot|>
<|assistant|>
```python
quantity = 34
unit_price = 24
subtotal = quantity * unit_price
total = subtotal * (1 + 8 / 100)
print(f"{total:.2f}")
```
stdout — 881.28
The invoice total is $881.28.<|eot|>
<|end|... | chat | [
{
"role": "user",
"content": "An invoice lists 34 batteries at $24 each, plus 8% sales tax. What is the invoice total?"
},
{
"role": "assistant",
"content": "```python\nquantity = 34\nunit_price = 24\nsubtotal = quantity * unit_price\ntotal = subtotal * (1 + 8 / 100)\nprint(f\"{total:.2f}\")\n``... | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "881.28", "printed": "881.28", "notation": null} |
nlprog_det-setting-0063289 | Nikhil buys 8 boxes of 6 cables each and gives away 11 cables. How many cables are left?
That leaves 37 cables. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 38 | {"gold": "37", "printed": "37", "notation": null} |
nlprog_det-setting-0063290 | 11 boxes hold 10 toner kits each. After 8 are handed out, how many are left?
Programmatically:
```python
boxes = 11
per_box = 10
given_away = 8
left = boxes * per_box - given_away # 102
print(left)
```
stdout = 102
That leaves 102 toner kits. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "102", "printed": "102", "notation": null} |
nlprog_det-setting-0063291 | <|start|><|system|>
Tools (call with JSON):
{"name": "py_exec", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|user|>
A quorum is... | chat | [
{
"role": "system",
"content": "Tools (call with JSON):\n{\"name\": \"py_exec\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \... | nlprog_det | setting | original | null | deterministic | [] | [] | 221 | {"gold": "32", "printed": "32", "notation": null} |
nlprog_det-setting-0063293 | <|start|><|system|>
Tool definitions:
{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}
{"name": "interpreter", "description": "Evaluates Python and ret... | chat | [
{
"role": "system",
"content": "Tool definitions:\n{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"target\"]}}\n{\"n... | nlprog_det | setting | original | null | deterministic | [] | [] | 384 | {"gold": "351", "printed": "351", "notation": null} |
nlprog_det-setting-0063294 | 3 clients win $60,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?
Python:
```python
award = 60000
fee = award * 25 / 100 # 15000.0
remaining = award - fee # 45000.0
per_client = remaining / 3 # 15000.0
print(f"{per_client:.2f}")
```
# console output: 15000.00
Each client ge... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 138 | {"gold": "15000.00", "printed": "15000.00", "notation": null} |
nlprog_det-setting-0063295 | A meal costs $87.26. How much is a 10% tip?
Leave $8.73. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 26 | {"gold": "8.73", "printed": "8.73", "notation": null} |
nlprog_det-setting-0063296 | <|start|><|user|>
A hearing is set for October 16, 1997. What day of the week is that?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(1997, 10, 16) # datetime.date(1997, 10, 16)
print(hearing.strftime("%A"))
```
The printout reads: Thursday
It is a Thursday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A hearing is set for October 16, 1997. What day of the week is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(1997, 10, 16) # datetime.date(1997, 10, 16)\nprint(hearing.strftime(\"%A\"))\n```\nThe printout reads: T... | nlprog_det | setting | original | null | deterministic | [] | [] | 101 | {"gold": "Thursday", "printed": "Thursday", "notation": null} |
nlprog_det-setting-0063297 | Divide 170 items among 3 groups as evenly as possible with equal groups. How many per group, and how many remain?
As Python:
```python
total = 170
groups = 3
per_group, remainder = divmod(total, groups)
print(f"{per_group} each, {remainder} left over")
```
Interpreter output — 56 each, 2 left over
56 each, 2 left ove... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "56 each, 2 left over", "printed": "56 each, 2 left over", "notation": null} |
nlprog_det-setting-0063298 | Water costs $12 a month plus $5.10 for each 1,000 gallons over 0,000. What is owed for 24,000 gallons?
Written as code:
base = 12
rate = 5.1
used = 24
free = 0
bill = base + rate * max(0, used - free) # 134.39999999999998
print(f"{bill:.2f}")
Output of the run — 134.40
The bill is $134.40. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 125 | {"gold": "134.40", "printed": "134.40", "notation": null} |
nlprog_det-setting-0063299 | <|start|><|user|>
Lucia earns a 4% commission on $35,098 of sales. What is the commission?<|eot|>
<|assistant|>
```python
sales = 35098
rate = 4 / 100 # 0.04
commission = sales * rate # 1403.92
print(f"{commission:.2f}")
```
(Program output: 1403.92)
Lucia earns $1,403.92.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Lucia earns a 4% commission on $35,098 of sales. What is the commission?"
},
{
"role": "assistant",
"content": "```python\nsales = 35098\nrate = 4 / 100 # 0.04\ncommission = sales * rate # 1403.92\nprint(f\"{commission:.2f}\")\n```\n(Program output: 1403.92)\n\nLu... | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "1403.92", "printed": "1403.92", "notation": null} |
nlprog_det-setting-0063300 | How much sales tax is charged on a $716.17 purchase at 5%?
Set it up in Python:
```python
price = 716.17
tax_rate = 5 / 100 # 0.05
tax = price * tax_rate # 35.8085
print(f"{tax:.2f}")
```
Printed — 35.81
The tax is $35.81. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "35.81", "printed": "35.81", "notation": null} |
nlprog_det-setting-0063301 | How many 1-foot square tiles cover a 12 ft by 11 ft floor (round up)?
We write it as a program:
```python
import math
length = 12
width = 11
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 132
print(tiles)
```
Run it and it prints: 132
It takes 132 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "132", "printed": "132", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.