I am building a graph database for a given family and I want to get the common family member(node) between two family members(two nodes).
I should say that the two nodes are not directly connected to the common requested node.
MATCH (b:Person)-[:RELATES*]->(a:Person)<-[:RELATES*]-(c:Person)
where ID(b) = 7
and ID(c) = 50
RETURN a
a -> b -> c
d -> c
What I'm expecting when I run the query with 'a' and 'd' is to get 'c'