Nested Aggregate Functions Postgresql W3schools Html