Reference
... ( SELECT ... FROM ... [WHERE sql_cond] [GROUP BY ...] [HAVING sql_cond] ) ... .
SELECT statement in parentheses that can be used in conditions sql_cond of OpenSQL statements for a subquery.