added in & nin operator into query checking