Postgresql Aggregate Functions Cannot Be Nested Knowledge