HQL supports subqueries in the where clause. We can’t think of many good uses for subqueries in the from clause, although select clause subqueries might be a nice future extension.