Postgresql Aggregate Functions Cannot Be Nested Ifs In Google