> For the complete documentation index, see [llms.txt](https://docs.r.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.r.xyz/glider-ide/api/instructions/instructions.exec.md).

# Instructions.exec()

`exec(limit_count: int = 0, offset_count: int = 0) →` [`APIList`](/glider-ide/api/iterables/apilist.md)`[`[`Instruction`](/glider-ide/api/instruction.md)`]`

`limit_count` is the number of instructions to query, while `offset_count` is the offset applied to the results returned. For example with `offset_count` = 2, will return `limit_count` instructions starting from the 3rd instructions.

## Query Example

```python
from glider import *


def query():
  return Instructions().exec(10)
```

## Example Output

<figure><img src="/files/lOKAvMHZkrOYoXArAE2B" alt=""><figcaption></figcaption></figure>
