> 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()

Executes the formed query and returns the list of Instruction objects

`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="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FlnTBAh0zRL002N5Oa9UQ%2Fimage.png?alt=media&amp;token=e90ace21-a3eb-427a-90ab-64abeb54b1ac" alt=""><figcaption></figcaption></figure>
