Last active
April 10, 2022 16:10
-
-
Save danstarns/f6b4328a33e4526fb5eb9f94fbdb4397 to your computer and use it in GitHub Desktop.
cypher-coactors-coactors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MATCH (tom:Person {name: 'Tom Hanks'}) | |
MATCH (tom)-[:ACTED_IN]->(:Movie)<-[:ACTED_IN]-(:Person)-[:ACTED_IN]->(:Movie)<-[:ACTED_IN]-(coCoActor:Person) | |
WHERE | |
tom <> coCoActor AND | |
NOT (tom)-[:ACTED_IN]->(:Movie)<-[:ACTED_IN]-(coCoActor) | |
RETURN coCoActor.name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment