# Subquery

> A SQL query nested inside a larger query, used to retrieve data that will be used in the main query as a condition to further restrict the data to be retrieved.

Source: https://dagster.io/glossary/subquery
