Postgres Aggregate Functions Not Function In Google