Postgresql Boolean Functions Python Examples