Alias raw subquery as required by Postgres