Compare with same relation and attribute

I am trying to compare two nodes and the nodes connected to them.

Here is my data sample.
Each node has its own event time.
I want to compare all nodes connected to them with same relation or attribute.


[A.eventtime - A1.eventtime] compare to [B.eventtime - B1.eventtime] because they have same relation.
And so on
[A & A2] compare to [B & B2]
[A & A3] compare to [B & B3]

Or if they have same relation than compare by attribute.

[A & A4] compare to [B & B4] because they have same relation and attribute.

Is there any Cypher that can help me?