Postgresql Boolean Aggregate Functions In Excel