Adding multiple equals clauses in the equals in where condition