I'm trying out the Cypher examples on the Neo4j website and one of the queries has me a bit puzzled.
There are three movie nodes with respective titles "The Matrix", "The Matrix Reloaded" and "The Matrix Revolutions". The Matrix node has id "603".
There are also three actor nodes with respective names "Keanu Reeves", "Laurence Fishburne" and "Carrie-Anne Moss".
There are ACTS_IN relations between all actors and all movies.
This is a query that's supposed to return all the other movies that the actors in The Matrix acted in:
START matrix=node:node_auto_index(id="603")
MATCH (matrix)<-[:ACTS_IN]-(actor)-[:ACTS_IN]->(movie)
RETURN actor.name + ' acts in ' + movie.title;
And this is its (correct) result:
Keanu Reeves acts in The Matrix Reloaded
Keanu Reeves acts in The Matrix Revolutions
Laurence Fishburne acts in The Matrix Reloaded
Laurence Fishburne acts in The Matrix Revolutions
Carrie-Anne Moss acts in The Matrix Reloaded
Carrie-Anne Moss acts in The Matrix Revolutions
Why is The Matrix node itself not included in the results?