PROPOSED: Aliased variables can be used in expressions further to the right in the SELECT clause and in the HAVING clause; query strings that have an aliased variable elsewhere (e.g. in the query pattern) are malformed queries.