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-0060442 | With 21 rows of 9 chairs and 2 empty chairs, how many chairs are taken?
The computation:
```python
rows = 21
per_row = 9
empty = 2
seated = rows * per_row - empty # 187
print(seated)
```
(Output: 187)
187 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 95 | {"gold": "187", "printed": "187", "notation": null} |
nlprog_det-setting-0060443 | Scale 100 g of lentils from 6 servings to 12 servings.
Coded up:
```python
grams = 100
serves = 6
needed_for = 12
scaled = grams * needed_for // serves # 200
print(scaled)
```
(Out: 200)
Use 200 g of lentils. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "200", "printed": "200", "notation": null} |
nlprog_det-setting-0060444 | <|start|><|system|>
You may call the tools below.
[{"name": "math_engine", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|>
<|user|>
Shipping costs $5 plus $1.20... | chat | [
{
"role": "system",
"content": "You may call the tools below.\n[{\"name\": \"math_engine\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"so... | nlprog_det | setting | original | null | deterministic | [] | [] | 231 | {"gold": "7.40", "printed": "7.40", "notation": null} |
nlprog_det-setting-0060445 | At an exchange rate of 1.35 USD per CHF, how many USD is 7,774 CHF?
Computation in Python:
```python
amount = 7774
rate = 1.35
converted = amount * rate # 10494.900000000001
print(f"{converted:.2f}")
```
(Execution result: 10494.90)
That is 10,494.90 USD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "10494.90", "printed": "10494.90", "notation": null} |
nlprog_det-setting-0060446 | 82 of 100 members attended. What percent attended?
A Python solution:
```python
present = 82
total = 100
percent = present / total * 100 # 82.0
print(round(percent, 1))
```
Execution result: 82.0
Attendance was 82.0%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "82.0", "printed": "82.0", "notation": null} |
nlprog_det-setting-0060447 | <|start|><|user|>
A 10-day notice period begins on February 2, 2023. On what date does it end?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2023, 2, 2) # datetime.date(2023, 2, 2)
end = start + timedelta(days=10) # datetime.date(2023, 2, 12)
print(end.isoformat())
```
(Printed resu... | chat | [
{
"role": "user",
"content": "A 10-day notice period begins on February 2, 2023. On what date does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2023, 2, 2) # datetime.date(2023, 2, 2)\nend = start + timedelta(days=10) # datetime.d... | nlprog_det | setting | original | null | deterministic | [] | [] | 140 | {"gold": "2023-02-12", "printed": "2023-02-12", "notation": null} |
nlprog_det-setting-0060448 | A 24-month warranty starts on December 17, 2019. On what date does it end?
Programmatically:
```python
from datetime import date
start = date(2019, 12, 17)
months = 24
years, month_index = divmod(start.month - 1 + months, 12)
end = date(start.year + years, month_index + 1, start.day)
print(end.isoformat())
```
Run it ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "2021-12-17", "printed": "2021-12-17", "notation": null} |
nlprog_det-setting-0060449 | Someone works 12 hours at $20.62 per hour. What are the earnings?
The program:
```python
rate = 20.62
hours = 12
earnings = rate * hours # 247.44
print(f"{earnings:.2f}")
```
Executing it gives 247.44, as expected.
That earns $247.44. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "247.44", "printed": "247.44", "notation": null} |
nlprog_det-setting-0060450 | <|start|><|user|>
How many weekdays (Monday to Friday) fall after April 5, 2020 up to and including April 28, 2020?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2020, 4, 5)
end = date(2020, 4, 28)
count = 0
for k in range(1, (end - start).days + 1):
if (start + timedelta(days=k))... | chat | [
{
"role": "user",
"content": "How many weekdays (Monday to Friday) fall after April 5, 2020 up to and including April 28, 2020?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2020, 4, 5)\nend = date(2020, 4, 28)\ncount = 0\nfor k in range(1, ... | nlprog_det | setting | original | null | deterministic | [] | [] | 155 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0060451 | <|start|><|user|>
Count 90 days forward from December 27, 2018. What date is that?<|eot|>
<|assistant|>
```python
from datetime import date, timedelta
start = date(2018, 12, 27) # datetime.date(2018, 12, 27)
end = start + timedelta(days=90) # datetime.date(2019, 3, 27)
print(end.isoformat())
```
# printed: 2019-03-27... | chat | [
{
"role": "user",
"content": "Count 90 days forward from December 27, 2018. What date is that?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date, timedelta\nstart = date(2018, 12, 27) # datetime.date(2018, 12, 27)\nend = start + timedelta(days=90) # datetime.date(2019... | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "2019-03-27", "printed": "2019-03-27", "notation": null} |
nlprog_det-setting-0060452 | <|start|><|system|>
Available functions (JSON Schema):
{"name": "translate", "description": "Translate text into another language.", "parameters": {"type": "object", "properties": {"text": {"type": "string"}, "target": {"type": "string"}}, "required": ["text", "target"]}}
{"name": "get_weather", "description": "Get the... | chat | [
{
"role": "system",
"content": "Available functions (JSON Schema):\n{\"name\": \"translate\", \"description\": \"Translate text into another language.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\"}, \"target\": {\"type\": \"string\"}}, \"required\": [\"text\", \"... | nlprog_det | setting | original | null | deterministic | [] | [] | 367 | {"gold": "31.88", "printed": "31.88", "notation": null} |
nlprog_det-setting-0060453 | <|start|><|user|>
If a 2-year limitations period starts on November 13, 2022, when does it end?<|eot|>
<|assistant|>
```python
from datetime import date
accrued = date(2022, 11, 13)
years = 2
expires = accrued.replace(year=accrued.year + years)
print(expires.isoformat())
```
Executed, it shows: 2024-11-13
It runs out ... | chat | [
{
"role": "user",
"content": "If a 2-year limitations period starts on November 13, 2022, when does it end?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\naccrued = date(2022, 11, 13)\nyears = 2\nexpires = accrued.replace(year=accrued.year + years)\nprint(expires.is... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "2024-11-13", "printed": "2024-11-13", "notation": null} |
nlprog_det-setting-0060454 | A hearing is set for June 18, 2029. What day of the week is that?
A short script:
from datetime import date
hearing = date(2029, 6, 18) # datetime.date(2029, 6, 18)
print(hearing.strftime("%A"))
When run, it prints Monday, as expected.
June 18, 2029 is a Monday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "Monday", "printed": "Monday", "notation": null} |
nlprog_det-setting-0060455 | A settlement of $15,000 is split equally among 3 parties. How much does each party receive?
We can compute it in Python.
```python
settlement = 15000
parties = 3
share = settlement // parties # 5000
print(share)
```
# output: 5000
Each share is $5,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "5000", "printed": "5000", "notation": null} |
nlprog_det-setting-0060456 | Equal monthly payments repay $1,200 plus 5% simple yearly interest over 24 months. How large is a payment?
Coded up:
principal = 1200
annual_rate = 5 / 100 # 0.05
months = 24
interest = principal * annual_rate * months / 12 # 120.0
payment = (principal + interest) / months # 55.0
print(f"{pa... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 122 | {"gold": "55.00", "printed": "55.00", "notation": null} |
nlprog_det-setting-0060457 | <|start|><|system|>
You can call tools. Available tools:
[{"name": "math_engine", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|>
<|user|>
What average speed co... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n[{\"name\": \"math_engine\", \"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 | [] | [] | 204 | {"gold": "141", "printed": "141", "notation": null} |
nlprog_det-setting-0060458 | <|start|><|system|>
You have access to these functions:
[{"name": "interpreter", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|>
<|user|>
A 420-page report mu... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"interpreter\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require... | nlprog_det | setting | original | null | deterministic | [] | [] | 202 | {"gold": "21", "printed": "21", "notation": null} |
nlprog_det-setting-0060459 | Count the days between September 14, 2022 and April 19, 2023.
```python
from datetime import date
first = date(2022, 9, 14) # datetime.date(2022, 9, 14)
second = date(2023, 4, 19) # datetime.date(2023, 4, 19)
print((second - first).days)
```
Running this gives 217.
There are 217 days between the two dates. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "217", "printed": "217", "notation": null} |
nlprog_det-setting-0060460 | <|start|><|system|>
You have access to these functions:
[{"name": "python_exec", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|>
<|user|>... | chat | [
{
"role": "system",
"content": "You have access to these functions:\n[{\"name\": \"python_exec\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source c... | nlprog_det | setting | original | null | deterministic | [] | [] | 224 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0060461 | <|start|><|user|>
A court charges $15 per request plus $0.25 per page after the first 20 pages. What does a 76-page copy cost?<|eot|>
<|assistant|>
```python
pages = 76
base = 15
per_page = 0.25
free_pages = 20
cost = base + max(0, pages - free_pages) * per_page # 29.0
print(f"{cost:.2f}")
```
The interpreter prints: ... | chat | [
{
"role": "user",
"content": "A court charges $15 per request plus $0.25 per page after the first 20 pages. What does a 76-page copy cost?"
},
{
"role": "assistant",
"content": "```python\npages = 76\nbase = 15\nper_page = 0.25\nfree_pages = 20\ncost = base + max(0, pages - free_pages) * per_pag... | nlprog_det | setting | original | null | deterministic | [] | [] | 134 | {"gold": "29.00", "printed": "29.00", "notation": null} |
nlprog_det-setting-0060462 | <|start|><|user|>
From a $2,500 retainer, 10 hours at $150/hour have been drawn. What remains?<|eot|>
<|assistant|>
retainer = 2500
hours = 10
rate = 150
left = retainer - hours * rate
print(left)
Execution prints 1000, as expected.
$1,000 of the retainer is left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "From a $2,500 retainer, 10 hours at $150/hour have been drawn. What remains?"
},
{
"role": "assistant",
"content": " retainer = 2500\n hours = 10\n rate = 150\n left = retainer - hours * rate\n print(left)\nExecution prints 1000, as expected.\n\n$1,00... | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0060463 | <|start|><|user|>
A 21-day notice period begins on February 15, 2023. On what date does it end?<|eot|>
<|assistant|>
from datetime import date, timedelta
start = date(2023, 2, 15)
end = start + timedelta(days=21)
print(end.isoformat())
# execution result: 2023-03-08
The period ends on March 8, 2023.<|e... | chat | [
{
"role": "user",
"content": "A 21-day notice period begins on February 15, 2023. On what date does it end?"
},
{
"role": "assistant",
"content": " from datetime import date, timedelta\n start = date(2023, 2, 15)\n end = start + timedelta(days=21)\n print(end.isoformat())\n# executio... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "2023-03-08", "printed": "2023-03-08", "notation": null} |
nlprog_det-setting-0060464 | At $0.58 per mile, what is the reimbursement for 258 miles?
As a program:
miles = 258
rate = 0.58
reimbursement = miles * rate # 149.64
print(f"{reimbursement:.2f}")
(Execution result: 149.64)
Tomas is owed $149.64. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 88 | {"gold": "149.64", "printed": "149.64", "notation": null} |
nlprog_det-setting-0060465 | Fixed costs are $6,000. Each unit sells for $40 and costs $32 to make. How many units must be sold to break even?
Here is a short program for it.
```python
import math
fixed = 6000
price = 40
variable = 32
units = math.ceil(fixed / (price - variable)) # 750
print(units)
```
Run result = 750
750 units are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "750", "printed": "750", "notation": null} |
nlprog_det-setting-0060466 | <|start|><|user|>
Walls total 1370 sq ft and each can covers 400 sq ft. How many cans should be bought?<|eot|>
<|assistant|>
```python
import math
area = 1370
coverage = 400
cans = math.ceil(area / coverage) # 4
print(cans)
```
Program output: 4
Buy 4 cans.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Walls total 1370 sq ft and each can covers 400 sq ft. How many cans should be bought?"
},
{
"role": "assistant",
"content": "```python\nimport math\narea = 1370\ncoverage = 400\ncans = math.ceil(area / coverage) # 4\nprint(cans)\n```\nProgram output: 4\n\nBuy 4 can... | nlprog_det | setting | original | null | deterministic | [] | [] | 98 | {"gold": "4", "printed": "4", "notation": null} |
nlprog_det-setting-0060467 | <|start|><|user|>
Each storage box holds 20 files. How many boxes are needed for 347 files?<|eot|>
<|assistant|>
```python
import math
files = 347
per_box = 20
boxes = math.ceil(files / per_box) # 18
print(boxes)
```
Printed result — 18
It takes 18 boxes.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each storage box holds 20 files. How many boxes are needed for 347 files?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 347\nper_box = 20\nboxes = math.ceil(files / per_box) # 18\nprint(boxes)\n```\nPrinted result — 18\n\nIt takes 18 boxes.... | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "18", "printed": "18", "notation": null} |
nlprog_det-setting-0060468 | Filing fees are $25 per document. What do 18 filings cost?
As a program:
```python
fee = 25
filings = 18
total = fee * filings # 450
print(total)
```
When run, it prints 450, as expected.
$450 in filing fees. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 85 | {"gold": "450", "printed": "450", "notation": null} |
nlprog_det-setting-0060469 | A customer buys 6 staplers at $17 each, 3 flash drives at $27 each, 4 file boxes at $5 each, 5 folders at $18 each and pays with $300. How much change is due?
In code:
```python
items = [(6, 17), (3, 27), (4, 5), (5, 18)]
total = sum(q * p for q, p in items) # 293
paid = 300
change = paid - total # 7
print(change)
`... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 148 | {"gold": "7", "printed": "7", "notation": null} |
nlprog_det-setting-0060470 | <|start|><|user|>
At an exchange rate of 1.35 EUR per USD, how many EUR is 5,717 USD?<|eot|>
<|assistant|>
```python
amount = 5717
rate = 1.35
converted = amount * rate # 7717.950000000001
print(f"{converted:.2f}")
```
(Result: 7717.95)
That is 7,717.95 EUR.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At an exchange rate of 1.35 EUR per USD, how many EUR is 5,717 USD?"
},
{
"role": "assistant",
"content": "```python\namount = 5717\nrate = 1.35\nconverted = amount * rate # 7717.950000000001\nprint(f\"{converted:.2f}\")\n```\n(Result: 7717.95)\n\nThat is 7,717.95 ... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "7717.95", "printed": "7717.95", "notation": null} |
nlprog_det-setting-0060471 | A 45-mile drive at a steady 45 mph takes how many minutes?
Python makes this quick:
distance = 45
speed = 45
minutes = distance / speed * 60 # 60.0
print(round(minutes))
Shell output — 60
The trip takes 60 minutes. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 71 | {"gold": "60", "printed": "60", "notation": null} |
nlprog_det-setting-0060473 | <|start|><|user|>
A pack of 6 rulers sells for $102. What does each cost?<|eot|>
<|assistant|>
```python
total = 102
count = 6
per_item = total // count # 17
print(per_item)
```
Running it prints: 17
Each one costs $17.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A pack of 6 rulers sells for $102. What does each cost?"
},
{
"role": "assistant",
"content": "```python\ntotal = 102\ncount = 6\nper_item = total // count # 17\nprint(per_item)\n```\nRunning it prints: 17\n\nEach one costs $17."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 82 | {"gold": "17", "printed": "17", "notation": null} |
nlprog_det-setting-0060475 | <|start|><|user|>
Yara earns a 8% commission on $94,550 of sales. What is the commission?<|eot|>
<|assistant|>
sales = 94550
rate = 8 / 100 # 0.08
commission = sales * rate # 7564.0
print(f"{commission:.2f}")
(Result: 7564.00)
Yara earns $7,564.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Yara earns a 8% commission on $94,550 of sales. What is the commission?"
},
{
"role": "assistant",
"content": " sales = 94550\n rate = 8 / 100 # 0.08\n commission = sales * rate # 7564.0\n print(f\"{commission:.2f}\")\n(Result: 7564.00)\n\nYara earns $... | nlprog_det | setting | original | null | deterministic | [] | [] | 100 | {"gold": "7564.00", "printed": "7564.00", "notation": null} |
nlprog_det-setting-0060476 | <|start|><|user|>
What day of the week is March 1, 1992?<|eot|>
<|assistant|>
```python
from datetime import date
hearing = date(1992, 3, 1)
print(hearing.strftime("%A"))
```
Printed result: Sunday
It is a Sunday.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What day of the week is March 1, 1992?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nhearing = date(1992, 3, 1)\nprint(hearing.strftime(\"%A\"))\n```\nPrinted result: Sunday\n\nIt is a Sunday."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "Sunday", "printed": "Sunday", "notation": null} |
nlprog_det-setting-0060477 | <|start|><|user|>
A 6% increase is applied to $1,500 monthly rent. What is the new amount?<|eot|>
<|assistant|>
It rises to $1,590.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A 6% increase is applied to $1,500 monthly rent. What is the new amount?"
},
{
"role": "assistant",
"content": "It rises to $1,590.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 40 | {"gold": "1590.00", "printed": "1590.00", "notation": null} |
nlprog_det-setting-0060478 | A 6 × 9 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?
As a program:
```python
import math
length = 6
width = 9
tile = 1
tiles = math.ceil(length * width / (tile * tile)) # 54
print(tiles)
```
Result: 54
It takes 54 tiles. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "54", "printed": "54", "notation": null} |
nlprog_det-setting-0060479 | Papers were served by mail on October 14, 2021. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date?
Python makes this quick:
```python
from datetime import date, timedelta
served = date(2021, 10, 14) # datetime.date(2021, 10, 14)
response_days = 28
mail_days = 3
due = served ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 181 | {"gold": "2021-11-14", "printed": "2021-11-14", "notation": null} |
nlprog_det-setting-0060480 | At an exchange rate of 1.08 CAD per USD, how many CAD is 6,390 USD?
Python code:
```python
amount = 6390
rate = 1.08
converted = amount * rate # 6901.200000000001
print(f"{converted:.2f}")
```
Run result: 6901.20
That is 6,901.20 CAD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "6901.20", "printed": "6901.20", "notation": null} |
nlprog_det-setting-0060481 | <|start|><|user|>
How many whole days and leftover hours are in 236 hours?<|eot|>
<|assistant|>
```python
hours = 236
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
```
The script prints: 9 days and 20 hours
That is 9 days and 20 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many whole days and leftover hours are in 236 hours?"
},
{
"role": "assistant",
"content": "```python\nhours = 236\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nThe script prints: 9 days and 20 hours\n\nThat is 9 days and 20 hou... | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "9 days and 20 hours", "printed": "9 days and 20 hours", "notation": null} |
nlprog_det-setting-0060482 | A 6-day trip pays $59 a day for meals and $110 a night for lodging (5 nights). What is the total allowance?
As Python:
```python
days = 6
meal_rate = 59
lodging_rate = 110
nights = days - 1 # 5
total = days * meal_rate + nights * lodging_rate # 904
print(total)
```
(Program output: 904)
That comes to $904. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 129 | {"gold": "904", "printed": "904", "notation": null} |
nlprog_det-setting-0060483 | Walls total 868 sq ft and each can covers 350 sq ft. How many cans should be bought?
```python
import math
area = 868
coverage = 350
cans = math.ceil(area / coverage)
print(cans)
```
On running, it outputs: 3
3 cans are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "3", "printed": "3", "notation": null} |
nlprog_det-setting-0060484 | <|start|><|user|>
A lease runs for 36 months at $850 per month. How much rent is paid over the whole term?<|eot|>
<|assistant|>
```python
monthly_rent = 850
months = 36
total = monthly_rent * months # 30600
print(total)
```
# console output: 30600
The rent over the term is $30,600.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "A lease runs for 36 months at $850 per month. How much rent is paid over the whole term?"
},
{
"role": "assistant",
"content": "```python\nmonthly_rent = 850\nmonths = 36\ntotal = monthly_rent * months # 30600\nprint(total)\n```\n# console output: 30600\n\nThe rent... | nlprog_det | setting | original | null | deterministic | [] | [] | 96 | {"gold": "30600", "printed": "30600", "notation": null} |
nlprog_det-setting-0060485 | A 8% increase is applied to $2,200 monthly rent. What is the new amount?
```python
rent = 2200
increase = 8 / 100 # 0.08
new_rent = rent * (1 + increase) # 2376.0
print(f"{new_rent:.2f}")
```
Execution prints 2376.00, as expected.
The new rent is $2,376.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "2376.00", "printed": "2376.00", "notation": null} |
nlprog_det-setting-0060486 | From a $7,500 retainer, 3 hours at $250/hour have been drawn. What remains?
Computing it:
retainer = 7500
hours = 3
rate = 250
left = retainer - hours * rate # 6750
print(left)
It outputs 6750.
$6,750 of the retainer is left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "6750", "printed": "6750", "notation": null} |
nlprog_det-setting-0060487 | <|start|><|user|>
Printing costs 10 cents a page. What does it cost to print 18 copies of a 31-page handout?<|eot|>
<|assistant|>
Printing costs $55.80.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Printing costs 10 cents a page. What does it cost to print 18 copies of a 31-page handout?"
},
{
"role": "assistant",
"content": "Printing costs $55.80."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 45 | {"gold": "55.80", "printed": "55.80", "notation": null} |
nlprog_det-setting-0060488 | <|start|><|user|>
Convert 5,556 GBP to USD at 1 GBP = 1.35 USD.<|eot|>
<|assistant|>
amount = 5556
rate = 1.35
converted = amount * rate
print(f"{converted:.2f}")
The program outputs: 7500.60
It converts to 7,500.60 USD.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 5,556 GBP to USD at 1 GBP = 1.35 USD."
},
{
"role": "assistant",
"content": " amount = 5556\n rate = 1.35\n converted = amount * rate\n print(f\"{converted:.2f}\")\nThe program outputs: 7500.60\n\nIt converts to 7,500.60 USD."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "7500.60", "printed": "7500.60", "notation": null} |
nlprog_det-setting-0060489 | <|start|><|system|>
You help people work with structured data.<|eot|>
<|user|>
What simple interest does $12,000 earn at 6% a year over 2 years?<|eot|>
<|assistant|>
```python
principal = 12000
rate = 6 / 100 # 0.06
years = 2
interest = principal * rate * years # 1440.0
print(f"{interest:.2f}")
```
Output of the run ... | chat | [
{
"role": "system",
"content": "You help people work with structured data."
},
{
"role": "user",
"content": "What simple interest does $12,000 earn at 6% a year over 2 years?"
},
{
"role": "assistant",
"content": "```python\nprincipal = 12000\nrate = 6 / 100 # 0.06\nyears = 2\ninter... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "1440.00", "printed": "1440.00", "notation": null} |
nlprog_det-setting-0060490 | <|start|><|user|>
Mateo's scores were 54, 57, 59 and 90. What is the average score?<|eot|>
<|assistant|>
```python
scores = [54, 57, 59, 90]
average = sum(scores) // len(scores) # 65
print(average)
```
Printed — 65
The average score is 65.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Mateo's scores were 54, 57, 59 and 90. What is the average score?"
},
{
"role": "assistant",
"content": "```python\nscores = [54, 57, 59, 90]\naverage = sum(scores) // len(scores) # 65\nprint(average)\n```\nPrinted — 65\n\nThe average score is 65."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 92 | {"gold": "65", "printed": "65", "notation": null} |
nlprog_det-setting-0060491 | A storeroom has 1701 water bottles. The office uses 12 a day. How many are left after 20 days?
1461 water bottles are left. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "1461", "printed": "1461", "notation": null} |
nlprog_det-setting-0060492 | The paralegal logged 8 hours at a rate of $150. How much is billed?
A Python solution:
```python
hours = 8
rate = 150
bill = hours * rate # 1200
print(f"{bill:.2f}")
```
Printed result — 1200.00
That comes to $1,200.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "1200.00", "printed": "1200.00", "notation": null} |
nlprog_det-setting-0060493 | <|start|><|user|>
Which is cheaper per unit: 6 for $8.50 (A) or 24 for $11.65 (B)?<|eot|>
<|assistant|>
```python
pack_a = 8.5 / 6 # 1.4166666666666667
pack_b = 11.65 / 24 # 0.48541666666666666
cheaper = "A" if pack_a < pack_b else "B" # 'B'
print(cheaper)
```
Result: B
B has the lower unit price.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Which is cheaper per unit: 6 for $8.50 (A) or 24 for $11.65 (B)?"
},
{
"role": "assistant",
"content": "```python\npack_a = 8.5 / 6 # 1.4166666666666667\npack_b = 11.65 / 24 # 0.48541666666666666\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'B'\nprint(cheaper... | nlprog_det | setting | original | null | deterministic | [] | [] | 137 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0060494 | With $36,000 in costs and $37,000 in revenue, what percent of revenue is profit? Round to one decimal.
Here is the program.
```python
revenue = 37000
costs = 36000
profit = revenue - costs # 1000
margin = profit / revenue * 100 # 2.7027027027027026
print(round(margin, 1))
```
The printout reads 2.7.
The margin is 2... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 121 | {"gold": "2.7", "printed": "2.7", "notation": null} |
nlprog_det-setting-0060495 | Starting from $12,000, the team spends $2,356, $3,279. What remains?
We write it as a program:
```python
budget = 12000
expenses = [2356, 3279]
left = budget - sum(expenses) # 6365
print(left)
```
This prints: 6365
The remaining budget is $6,365. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "6365", "printed": "6365", "notation": null} |
nlprog_det-setting-0060496 | <|start|><|system|>
You help with homework problems.<|eot|>
<|user|>
A recipe for 8 people uses 300 grams of oats. How many grams are needed for 12 people?<|eot|>
<|assistant|>
```python
grams = 300
serves = 8
needed_for = 12
scaled = grams * needed_for // serves # 450
print(scaled)
```
(stdout: 450)
450 grams of oat... | chat | [
{
"role": "system",
"content": "You help with homework problems."
},
{
"role": "user",
"content": "A recipe for 8 people uses 300 grams of oats. How many grams are needed for 12 people?"
},
{
"role": "assistant",
"content": "```python\ngrams = 300\nserves = 8\nneeded_for = 12\nscaled... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "450", "printed": "450", "notation": null} |
nlprog_det-setting-0060497 | <|start|><|user|>
At 1% a month (simple), what interest builds on $4,000 over 6 months?<|eot|>
<|assistant|>
```python
balance = 4000
monthly_rate = 1 / 100 # 0.01
months = 6
interest = balance * monthly_rate * months # 240.0
print(f"{interest:.2f}")
```
stdout:
240.00
The interest is $240.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At 1% a month (simple), what interest builds on $4,000 over 6 months?"
},
{
"role": "assistant",
"content": "```python\nbalance = 4000\nmonthly_rate = 1 / 100 # 0.01\nmonths = 6\ninterest = balance * monthly_rate * months # 240.0\nprint(f\"{interest:.2f}\")\n```\n... | nlprog_det | setting | original | null | deterministic | [] | [] | 114 | {"gold": "240.00", "printed": "240.00", "notation": null} |
nlprog_det-setting-0060498 | If a 90-minute appointment begins at 12:10 PM, what time does it finish?
Code:
start = 12 * 60 + 10
end = start + 90
hour, minute = divmod(end, 60)
print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}")
# out: 1:40 PM
The appointment finishes at 1:40 PM. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 115 | {"gold": "1:40 PM", "printed": "1:40 PM", "notation": null} |
nlprog_det-setting-0060499 | <|start|><|user|>
Diego lends $2,500 at 8% simple interest per year for 6 years. How much interest is earned?<|eot|>
<|assistant|>
It earns $1,200.00.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Diego lends $2,500 at 8% simple interest per year for 6 years. How much interest is earned?"
},
{
"role": "assistant",
"content": "It earns $1,200.00."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 46 | {"gold": "1200.00", "printed": "1200.00", "notation": null} |
nlprog_det-setting-0060500 | How many of 44 members form a majority (more than half)?
The program:
```python
members = 44
majority = members // 2 + 1 # 23
print(majority)
```
Result = 23
That is 23 members. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 70 | {"gold": "23", "printed": "23", "notation": null} |
nlprog_det-setting-0060501 | <|start|><|system|>
Use a tool when a calculation is needed. Tools:
[{"name": "py_exec", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|>
... | chat | [
{
"role": "system",
"content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"py_exec\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python ... | nlprog_det | setting | original | null | deterministic | [] | [] | 200 | {"gold": "31", "printed": "31", "notation": null} |
nlprog_det-setting-0060502 | How many whole days and leftover hours are in 253 hours?
hours = 253
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
The run gives 10 days and 13 hours.
253 hours is 10 days and 13 hours. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 72 | {"gold": "10 days and 13 hours", "printed": "10 days and 13 hours", "notation": null} |
nlprog_det-setting-0060503 | The rules require 2/3 of 33 members (round up) to be present. How many is that?
Python makes this quick:
```python
import math
members = 33
quorum = math.ceil(members * 2 / 3)
print(quorum)
```
Result: 22
22 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 89 | {"gold": "22", "printed": "22", "notation": null} |
nlprog_det-setting-0060504 | Convert 7,855 USD to CAD at 1 USD = 1.35 CAD.
Written as code:
```python
amount = 7855
rate = 1.35
converted = amount * rate # 10604.25
print(f"{converted:.2f}")
```
(Result: 10604.25)
That is 10,604.25 CAD. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 107 | {"gold": "10604.25", "printed": "10604.25", "notation": null} |
nlprog_det-setting-0060505 | <|start|><|system|>
You help paralegals with routine tasks.<|eot|>
<|user|>
Goods bought on January 4, 2019 carry a 36-month warranty. When does it expire?<|eot|>
<|assistant|>
```python
from datetime import date
start = date(2019, 1, 4)
months = 36
years, month_index = divmod(start.month - 1 + months, 12)
end = date(s... | chat | [
{
"role": "system",
"content": "You help paralegals with routine tasks."
},
{
"role": "user",
"content": "Goods bought on January 4, 2019 carry a 36-month warranty. When does it expire?"
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nstart = date(2019, 1,... | nlprog_det | setting | original | null | deterministic | [] | [] | 161 | {"gold": "2022-01-04", "printed": "2022-01-04", "notation": null} |
nlprog_det-setting-0060506 | <|start|><|user|>
Starting from $5,000, the team spends $550, $1,942, $3,246, $1,746. What remains?<|eot|>
<|assistant|>
```python
budget = 5000
expenses = [550, 1942, 3246, 1746]
left = budget - sum(expenses) # -2484
print(left)
```
Interpreter output — -2484
The remaining budget is -$2,484.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Starting from $5,000, the team spends $550, $1,942, $3,246, $1,746. What remains?"
},
{
"role": "assistant",
"content": "```python\nbudget = 5000\nexpenses = [550, 1942, 3246, 1746]\nleft = budget - sum(expenses) # -2484\nprint(left)\n```\nInterpreter output — -248... | nlprog_det | setting | original | null | deterministic | [] | [] | 124 | {"gold": "-2484", "printed": "-2484", "notation": null} |
nlprog_det-setting-0060507 | <|start|><|system|>
Answer in plain English.<|eot|>
<|user|>
A clerk's office charges $35 for each filing. Idris submits 10 filings. What is the total fee?<|eot|>
<|assistant|>
```python
fee = 35
filings = 10
total = fee * filings # 350
print(total)
```
The program outputs: 350
The total fee is $350.<|eot|>
<|end|> | chat | [
{
"role": "system",
"content": "Answer in plain English."
},
{
"role": "user",
"content": "A clerk's office charges $35 for each filing. Idris submits 10 filings. What is the total fee?"
},
{
"role": "assistant",
"content": "```python\nfee = 35\nfilings = 10\ntotal = fee * filings #... | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "350", "printed": "350", "notation": null} |
nlprog_det-setting-0060508 | <|start|><|user|>
690 files go into boxes of 15. How many boxes does that take?<|eot|>
<|assistant|>
```python
import math
files = 690
per_box = 15
boxes = math.ceil(files / per_box) # 46
print(boxes)
```
The code prints 46.
46 boxes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "690 files go into boxes of 15. How many boxes does that take?"
},
{
"role": "assistant",
"content": "```python\nimport math\nfiles = 690\nper_box = 15\nboxes = math.ceil(files / per_box) # 46\nprint(boxes)\n```\nThe code prints 46.\n\n46 boxes are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "46", "printed": "46", "notation": null} |
nlprog_det-setting-0060509 | <|start|><|user|>
At 1.5% a month (simple), what interest builds on $7,500 over 4 months?<|eot|>
<|assistant|>
```python
balance = 7500
monthly_rate = 1.5 / 100
months = 4
interest = balance * monthly_rate * months
print(f"{interest:.2f}")
```
The printout reads: 450.00
$450.00 accrues.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At 1.5% a month (simple), what interest builds on $7,500 over 4 months?"
},
{
"role": "assistant",
"content": "```python\nbalance = 7500\nmonthly_rate = 1.5 / 100\nmonths = 4\ninterest = balance * monthly_rate * months\nprint(f\"{interest:.2f}\")\n```\nThe printout ... | nlprog_det | setting | original | null | deterministic | [] | [] | 109 | {"gold": "450.00", "printed": "450.00", "notation": null} |
nlprog_det-setting-0060510 | 2 clients win $30,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?
Script:
```python
award = 30000
fee = award * 40 / 100 # 12000.0
remaining = award - fee # 18000.0
per_client = remaining / 2 # 9000.0
print(f"{per_client:.2f}")
```
Run result — 9000.00
Each share is $9,000.... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 131 | {"gold": "9000.00", "printed": "9000.00", "notation": null} |
nlprog_det-setting-0060511 | With 16 rows of 12 chairs and 8 empty chairs, how many chairs are taken?
The program:
```python
rows = 16
per_row = 12
empty = 8
seated = rows * per_row - empty # 184
print(seated)
```
Console:
184
184 people are seated. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 93 | {"gold": "184", "printed": "184", "notation": null} |
nlprog_det-setting-0060512 | The rules require 2/3 of 56 members (round up) to be present. How many is that?
38 members are needed. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 29 | {"gold": "38", "printed": "38", "notation": null} |
nlprog_det-setting-0060513 | Fines run at $100 per day up to a maximum of $1,000. How much after 43 days?
Computing it:
```python
per_day = 100
days = 43
cap = 1000
fine = min(per_day * days, cap)
print(fine)
```
The printout reads: 1000
The fine is $1,000. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 97 | {"gold": "1000", "printed": "1000", "notation": null} |
nlprog_det-setting-0060514 | <|start|><|system|>
You help with homework problems.<|eot|>
<|user|>
After an initial $3,000, the remainder of a $60,000 grant is paid in 12 equal parts. What is each part?<|eot|>
<|assistant|>
```python
grant = 60000
up_front = 3000
installments = 12
each = (grant - up_front) / installments # 4750.0
print(f"{each:.2f... | chat | [
{
"role": "system",
"content": "You help with homework problems."
},
{
"role": "user",
"content": "After an initial $3,000, the remainder of a $60,000 grant is paid in 12 equal parts. What is each part?"
},
{
"role": "assistant",
"content": "```python\ngrant = 60000\nup_front = 3000\... | nlprog_det | setting | original | null | deterministic | [] | [] | 133 | {"gold": "4750.00", "printed": "4750.00", "notation": null} |
nlprog_det-setting-0060515 | Noor drove 95 miles for work. Mileage is reimbursed at 67 cents a mile. How much is the reimbursement?
We write it as a program:
```python
miles = 95
rate = 0.67
reimbursement = miles * rate # 63.650000000000006
print(f"{reimbursement:.2f}")
```
Running this gives: 63.65
The reimbursement is $63.65. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "63.65", "printed": "63.65", "notation": null} |
nlprog_det-setting-0060516 | Find the mean of these test scores: 58, 96, 71, 90 and 55.
The average score is 74. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 27 | {"gold": "74", "printed": "74", "notation": null} |
nlprog_det-setting-0060517 | <|start|><|user|>
Each storage box holds 20 files. How many boxes are needed for 545 files?<|eot|>
<|assistant|>
28 boxes are needed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Each storage box holds 20 files. How many boxes are needed for 545 files?"
},
{
"role": "assistant",
"content": "28 boxes are needed."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 34 | {"gold": "28", "printed": "28", "notation": null} |
nlprog_det-setting-0060518 | 77 copies of a 51-page packet are printed at $0.05 per page. What is the cost?
A Python solution:
pages = 51
copies = 77
cost_per_page = 0.05
cost = pages * copies * cost_per_page # 196.35000000000002
print(f"{cost:.2f}")
# stdout: 196.35
Printing costs $196.35. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 112 | {"gold": "196.35", "printed": "196.35", "notation": null} |
nlprog_det-setting-0060519 | <|start|><|user|>
At an exchange rate of 1.08 USD per EUR, how many USD is 103 EUR?<|eot|>
<|assistant|>
```python
amount = 103
rate = 1.08
converted = amount * rate # 111.24000000000001
print(f"{converted:.2f}")
```
Out = 111.24
It converts to 111.24 USD.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "At an exchange rate of 1.08 USD per EUR, how many USD is 103 EUR?"
},
{
"role": "assistant",
"content": "```python\namount = 103\nrate = 1.08\nconverted = amount * rate # 111.24000000000001\nprint(f\"{converted:.2f}\")\n```\nOut = 111.24\n\nIt converts to 111.24 US... | nlprog_det | setting | original | null | deterministic | [] | [] | 104 | {"gold": "111.24", "printed": "111.24", "notation": null} |
nlprog_det-setting-0060520 | At 2% a month (simple), what interest builds on $1,000 over 4 months?
Here is the program.
```python
balance = 1000
monthly_rate = 2 / 100 # 0.02
months = 4
interest = balance * monthly_rate * months # 80.0
print(f"{interest:.2f}")
```
Executing it gives 80.00, as expected.
$80.00 accrues. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 116 | {"gold": "80.00", "printed": "80.00", "notation": null} |
nlprog_det-setting-0060521 | How many meters are in 79.6 kilometers?
That is 79,600 meters. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 25 | {"gold": "79600", "printed": "79600", "notation": null} |
nlprog_det-setting-0060523 | 2 clients win $96,000. The lawyer takes 40%, and the rest is split equally. How much does each client get?
In code:
```python
award = 96000
fee = award * 40 / 100
remaining = award - fee
per_client = remaining / 2
print(f"{per_client:.2f}")
```
Running it prints 28800.00, as expected.
Each share is $28,800.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 119 | {"gold": "28800.00", "printed": "28800.00", "notation": null} |
nlprog_det-setting-0060524 | Straight-line depreciation: cost $45,000, salvage $6,000, 3 years. How much per year?
Here is a short program for it.
```python
cost = 45000
salvage = 6000
years = 3
per_year = (cost - salvage) / years # 13000.0
print(f"{per_year:.2f}")
```
The run gives 13000.00, as expected.
$13,000.00 a year. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 130 | {"gold": "13000.00", "printed": "13000.00", "notation": null} |
nlprog_det-setting-0060525 | <|start|><|system|>
Functions:
{"name": "calc", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}
{"name": "lookup_statute", "description": "Look up the tex... | chat | [
{
"role": "system",
"content": "Functions:\n{\"name\": \"calc\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}\n{\... | nlprog_det | setting | original | null | deterministic | [] | [] | 301 | {"gold": "1836.00", "printed": "1836.00", "notation": null} |
nlprog_det-setting-0060526 | A storeroom has 1324 water bottles. The office uses 9 a day. How many are left after 5 days?
```python
stock = 1324
per_day = 9
days = 5
left = stock - per_day * days
print(left)
```
Python prints 1279, as expected.
1279 remain. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 90 | {"gold": "1279", "printed": "1279", "notation": null} |
nlprog_det-setting-0060527 | <|start|><|system|>
You can call tools. Available tools:
{"name": "eval_python", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}<|eot|>
<... | chat | [
{
"role": "system",
"content": "You can call tools. Available tools:\n{\"name\": \"eval_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python ... | nlprog_det | setting | original | null | deterministic | [] | [] | 245 | {"gold": "22.00", "printed": "22.00", "notation": null} |
nlprog_det-setting-0060528 | <|start|><|user|>
Convert 15.3 km to meters.<|eot|>
<|assistant|>
```python
km = 15.3
meters = km * 1000 # 15300.0
print(round(meters))
```
Run result: 15300
That is 15,300 meters.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Convert 15.3 km to meters."
},
{
"role": "assistant",
"content": "```python\nkm = 15.3\nmeters = km * 1000 # 15300.0\nprint(round(meters))\n```\nRun result: 15300\n\nThat is 15,300 meters."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 80 | {"gold": "15300", "printed": "15300", "notation": null} |
nlprog_det-setting-0060529 | What is 10 degrees Celsius in Fahrenheit?
Python version:
```python
celsius = 10
fahrenheit = celsius * 9 / 5 + 32
print(round(fahrenheit))
```
Output — 50
It equals 50 degrees Fahrenheit. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 87 | {"gold": "50", "printed": "50", "notation": null} |
nlprog_det-setting-0060530 | <|start|><|user|>
What percentage of $10,000 is $3,700?<|eot|>
<|assistant|>
```python
budget = 10000
spent = 3700
percent = spent / budget * 100 # 37.0
print(round(percent, 1))
```
The code prints: 37.0
37.0% has been spent.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "What percentage of $10,000 is $3,700?"
},
{
"role": "assistant",
"content": "```python\nbudget = 10000\nspent = 3700\npercent = spent / budget * 100 # 37.0\nprint(round(percent, 1))\n```\nThe code prints: 37.0\n\n37.0% has been spent."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 86 | {"gold": "37.0", "printed": "37.0", "notation": null} |
nlprog_det-setting-0060531 | The paralegal logged 4 hours at a rate of $410. How much is billed?
Python version:
```python
hours = 4
rate = 410
bill = hours * rate # 1640
print(f"{bill:.2f}")
```
Console output — 1640.00
That comes to $1,640.00. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 99 | {"gold": "1640.00", "printed": "1640.00", "notation": null} |
nlprog_det-setting-0060533 | <|start|><|user|>
Zoe buys 10 boxes of 6 file boxes each and gives away 3 file boxes. How many file boxes are left?<|eot|>
<|assistant|>
boxes = 10
per_box = 6
given_away = 3
left = boxes * per_box - given_away # 57
print(left)
Result = 57
57 file boxes are left.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Zoe buys 10 boxes of 6 file boxes each and gives away 3 file boxes. How many file boxes are left?"
},
{
"role": "assistant",
"content": " boxes = 10\n per_box = 6\n given_away = 3\n left = boxes * per_box - given_away # 57\n print(left)\nResult = 57\... | nlprog_det | setting | original | null | deterministic | [] | [] | 91 | {"gold": "57", "printed": "57", "notation": null} |
nlprog_det-setting-0060534 | Pay is $25.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 44 hours?
Python makes this quick:
```python
rate = 25.0
hours = 44
regular = 40 * rate # 1000.0
overtime = (hours - 40) * rate * 1.5 # 150.0
pay = regular + overtime # 1150.0
print(f"{pay:.2f}")
```
stdout: 1150.00
Pilar earns ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 145 | {"gold": "1150.00", "printed": "1150.00", "notation": null} |
nlprog_det-setting-0060535 | A party has 30 days to respond to a motion served on July 15, 2025, with 3 days added because service was by mail. When is the response due?
We write it as a program:
```python
from datetime import date, timedelta
served = date(2025, 7, 15) # datetime.date(2025, 7, 15)
response_days = 30
mail_days = 3
due = served + ... | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 181 | {"gold": "2025-08-17", "printed": "2025-08-17", "notation": null} |
nlprog_det-setting-0060536 | <|start|><|user|>
Of a $2,000 budget, $1,000 has been spent. What percent is that?<|eot|>
<|assistant|>
50.0% has been spent.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "Of a $2,000 budget, $1,000 has been spent. What percent is that?"
},
{
"role": "assistant",
"content": "50.0% has been spent."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 37 | {"gold": "50.0", "printed": "50.0", "notation": null} |
nlprog_det-setting-0060537 | <|start|><|user|>
How many whole days and leftover hours are in 348 hours?<|eot|>
<|assistant|>
hours = 348
days, rest = divmod(hours, 24)
print(f"{days} days and {rest} hours")
Out = 14 days and 12 hours
That is 14 days and 12 hours.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "How many whole days and leftover hours are in 348 hours?"
},
{
"role": "assistant",
"content": " hours = 348\n days, rest = divmod(hours, 24)\n print(f\"{days} days and {rest} hours\")\nOut = 14 days and 12 hours\n\nThat is 14 days and 12 hours."
}
] | nlprog_det | setting | original | null | deterministic | [] | [] | 77 | {"gold": "14 days and 12 hours", "printed": "14 days and 12 hours", "notation": null} |
nlprog_det-setting-0060538 | <|start|><|system|>
Tools you may use:
{"name": "interpreter", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|>
<|user|>
Pack A has 6 items for $12.... | chat | [
{
"role": "system",
"content": "Tools you may use:\n{\"name\": \"interpreter\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"... | nlprog_det | setting | original | null | deterministic | [] | [] | 239 | {"gold": "B", "printed": "B", "notation": null} |
nlprog_det-setting-0060539 | What percentage of $2,000 is $800?
Script:
```python
budget = 2000
spent = 800
percent = spent / budget * 100 # 40.0
print(round(percent, 1))
```
Run result — 40.0
That is 40.0% of the budget. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 81 | {"gold": "40.0", "printed": "40.0", "notation": null} |
nlprog_det-setting-0060540 | What day of the week is December 18, 2030?
A short script:
```python
from datetime import date
hearing = date(2030, 12, 18)
print(hearing.strftime("%A"))
```
The run gives Wednesday, as expected.
It is a Wednesday. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 84 | {"gold": "Wednesday", "printed": "Wednesday", "notation": null} |
nlprog_det-setting-0060541 | <|start|><|user|>
3 books come back 16 days late, at $0.20 a day each. What is the fine?<|eot|>
<|assistant|>
```python
per_day = 0.2
days_late = 16
books = 3
fine = per_day * days_late * books # 9.600000000000001
print(f"{fine:.2f}")
```
Executing it gives 9.60.
$9.60 is owed.<|eot|>
<|end|> | chat | [
{
"role": "user",
"content": "3 books come back 16 days late, at $0.20 a day each. What is the fine?"
},
{
"role": "assistant",
"content": "```python\nper_day = 0.2\ndays_late = 16\nbooks = 3\nfine = per_day * days_late * books # 9.600000000000001\nprint(f\"{fine:.2f}\")\n```\nExecuting it give... | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "9.60", "printed": "9.60", "notation": null} |
nlprog_det-setting-0060542 | 96 copies of a 11-page packet are printed at $0.08 per page. What is the cost?
As a program:
```python
pages = 11
copies = 96
cost_per_page = 0.08
cost = pages * copies * cost_per_page # 84.48
print(f"{cost:.2f}")
```
Console output — 84.48
Printing costs $84.48. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 113 | {"gold": "84.48", "printed": "84.48", "notation": null} |
nlprog_det-setting-0060543 | Revenue is $12,000 and costs are $8,000. What is the profit margin as a percent of revenue (one decimal)?
As a program:
```python
revenue = 12000
costs = 8000
profit = revenue - costs # 4000
margin = profit / revenue * 100 # 33.33333333333333
print(round(margin, 1))
```
Run result = 33.3
The margin is 33.3%. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 117 | {"gold": "33.3", "printed": "33.3", "notation": null} |
nlprog_det-setting-0060544 | <|start|><|user|>
Someone born May 26, 1976 turns how old by June 23, 2029? Give the age in whole years.<|eot|>
<|assistant|>
```python
from datetime import date
born = date(1976, 5, 26) # datetime.date(1976, 5, 26)
on = date(2029, 6, 23) # datetime.date(2029, 6, 23)
age = on.year - born.year - ((on.month, on.day) < ... | chat | [
{
"role": "user",
"content": "Someone born May 26, 1976 turns how old by June 23, 2029? Give the age in whole years."
},
{
"role": "assistant",
"content": "```python\nfrom datetime import date\nborn = date(1976, 5, 26) # datetime.date(1976, 5, 26)\non = date(2029, 6, 23) # datetime.date(2029, ... | nlprog_det | setting | original | null | deterministic | [] | [] | 157 | {"gold": "53", "printed": "53", "notation": null} |
nlprog_det-setting-0060545 | What does $1,000 grow to in 3 years at 5% annual compounding?
We write it as a program:
```python
principal = 1000
rate = 5 / 100 # 0.05
years = 3
value = principal * (1 + rate) ** years # 1157.6250000000002
print(f"{value:.2f}")
```
# printed result: 1157.63
It is worth $1,157.63. | plain | null | nlprog_det | setting | original | null | deterministic | [] | [] | 120 | {"gold": "1157.63", "printed": "1157.63", "notation": null} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.