The example on the online course calls for 3 Recommended actors that Keanu Reeves should work with but hasn't, the solution in that example is demonstrated as:
MATCH (keanu:Person {name:"Keanu Reeves"})-[:ACTED_IN]->()<-[:ACTED_IN]-(c),
(c)-[:ACTED_IN]->()<-[:ACTED_IN]-(coc)
WHERE coc <> keanu AND NOT((keanu)-[:ACTED_IN]->()<-[:ACTED_IN]-(coc))
RETURN coc.name, count(coc)
ORDER BY count(coc) DESC
LIMIT 3;
The results of the above
Tom Hanks 4
Stephen Rea 3
John Hurt 3
However, Tom Hanks played in 12 movies according to the sample database. Further more there's higher ranked movie stars like Meg Ryan that is not on that list.
My solution was this cypher
match (other:Person)-[:ACTED_IN]->(movie),
(keanu:Person {name:'Keanu Reeves'})
WHERE
NOT (keanu)-[:ACTED_IN]->(movie)
return other.name, count(movie)
order by count(movie) desc
limit 3;
Which results in the following:
Tom Hanks 12
Meg Ryan 5
Jack Nicholson 4
Am I missing something? Or is the example solution provided is not accurate.
I'm a total beginner to Neo4j so forgive me if I'm totally off my rocker.