PostgreSQL: using a calculated column in the same query PostgreSQL: using a calculated column in the same query sql sql