# SHOW QUERY POLICIES
`SHOW QUERY POLICIES` lists the query policies in Materialize.

> For the complete documentation index, see [llms.txt](https://materialize.com/docs/llms.txt).




`SHOW QUERY POLICIES` lists the [query policies](https://materialize.com/docs/markdown-docs/clusters/query-policies/index.md) in
Materialize.

## Syntax

```mzsql
SHOW QUERY POLICIES [ LIKE <pattern> | WHERE <condition expression> ];
```

Syntax element                | Description
------------------------------|------------
**LIKE** \<pattern\>          | If specified, only show query policies whose name matches the pattern.
**WHERE** \<condition expression\> | If specified, only show query policies that match the condition expression.

## Examples

```mzsql
SHOW QUERY POLICIES;
```
```nofmt
        name        |  mode   |                  rules                  | comment
--------------------+---------+-----------------------------------------+---------
 indexed_reads_only | enforce | no_storage_reads,no_temporary_dataflows |
```

To see the rules in each policy and the clusters each policy is attached to,
query [`mz_internal.mz_query_policy_rules`](https://materialize.com/docs/markdown-docs/sql/system-catalog/mz_internal/index.md#mz_query_policy_rules)
and [`mz_internal.mz_query_policy_attachments`](https://materialize.com/docs/markdown-docs/sql/system-catalog/mz_internal/index.md#mz_query_policy_attachments):

```mzsql
SELECT p.name AS policy, c.name AS cluster
FROM mz_internal.mz_query_policy_attachments a
JOIN mz_internal.mz_query_policies p ON p.id = a.policy_id
JOIN mz_catalog.mz_clusters c ON c.id = a.object_id;
```

## Related pages

- [Query policies](https://materialize.com/docs/markdown-docs/clusters/query-policies/index.md)
- [`CREATE QUERY POLICY`](https://materialize.com/docs/markdown-docs/sql/create-query-policy/index.md)
- [`ALTER QUERY POLICY`](https://materialize.com/docs/markdown-docs/sql/alter-query-policy/index.md)
- [`DROP QUERY POLICY`](https://materialize.com/docs/markdown-docs/sql/drop-query-policy/index.md)
