Allpairs comparision in where2