How do i query to display a list of pairs of nodes having more than three properties' value in common

I have many nodes with the same label and the same properties name, now I want to query some of them which have more than three same properties value with others and list them as pairs, can I do it?

I guess the first step is to index the properties of the label.