Postgresql Sql Case When Contains