The parser recognizes two types of expressions:

1) expression evaluates to a relation
2) scalar expression evaluates to a scalar

Anything at the top-level is an ordinary expression; scalar expressions are only allowed within a comprehension or SQL statement.