The trailing VALUES clause is joined before the SELECT expressions are evaluated (18.2.4.3), so its variables are in scope for those expressions (grammar note 11).
The trailing VALUES clause is joined before the SELECT expressions are evaluated (18.2.4.3), so its variables are in scope for those expressions (grammar note 11).