> For the complete documentation index, see [llms.txt](https://docs.snello.io/snello-cms/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.snello.io/snello-cms/select-queries.md). Agents can also search and read this documentation through its [MCP server](https://docs.snello.io/snello-cms/~gitbook/mcp).

# Select Queries

You can create all select queries.

Give a name (**query\_name**), define your "**select\_query**" and finally specify if your query will use the parameters in condition ("**with\_params**").

Tipically use case is create distinct query.

```
  query_name: 'cities'
  select_query: 'select distinct(city) from users'
  with_params: 'false'
```

�
