I have these relations:
NodeType1 A {ts:11} =r1=> NodeType2 m
NodeType1 B {ts: 22} =r1=> NodeType2 m
NodeType1 Y {ts: 22} =r1=> NodeType2 n
NodeType1 Z {ts: 32} =r1=> NodeType2 n
NodeType1 X {ts: 23} =r1=> NodeType2 o
.......
For each NodeType2, I wi...