> For the complete documentation index, see [llms.txt](https://docs.dbnl.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dbnl.com/v0.20.x/using-distributional/python-sdk/sdk-functions/baseline/get_run_query.md). Agents can also search and read this documentation through its [MCP server](https://docs.dbnl.com/~gitbook/mcp).

# get\_run\_query

Retrieve a dbnl RunQuery with the given name

```python
dbnl.get_run_query(
    project: Project,
    name: str,
) -> RunQuery:
```

## Parameters

| Arguments | Description                                                                                                                                                                                                                      |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `project` | The dbnl [Project](https://docs.dbnl.com/v0.20.x/using-distributional/python-sdk/sdk-objects/project.md)this [RunQuery](https://docs.dbnl.com/v0.20.x/using-distributional/python-sdk/sdk-objects/runquery.md)is associated with |
| `name`    | Name of the Run Query.                                                                                                                                                                                                           |

## Returns

| Type                                                                                              | Description                                                                                                                                                                             |
| ------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [RunQuery](https://docs.dbnl.com/v0.20.x/using-distributional/python-sdk/sdk-objects/runquery.md) | The dbnl RunQuery, typically used for finding a [Dynamic Baseline](https://docs.dbnl.com/v0.20.x/using-distributional/testing/production-testing/dynamic-baseline.md)for a Test Session |

## Example

```python
query = dbnl.get_run_query(
  project=project,
  name="look back 3"
)
```
