I am using the sample movie graph which comes with a Neo4j installation.
I would like to get an actor (by name), roles which he acted in movies and all other movies (which he isn't yet connected to).
The closest I can get is something like the following, but the actor, roles and actedInMovies repeat as many times as there are otherMovies.
MATCH (actor{name:'Bill Paxton'})-[roles:ACTED_IN]->(actedInMovies), (otherMovies:Movie)
WHERE NOT (actor)-[:ACTED_IN]->(otherMovies)
RETURN actor, roles, actedInMovies, otherMovies
How can I get only one result for the actor, roles for corresponding movie, and all other movies?
Thanks in advance!