I really think the online training is fantastic, thanks to anyone/everyone involved in putting it together! I believe I've encountered an inconsistency in one of the examples. I'm mentioning it because either A) I may help correct a small error -or- B) I'll learn something from my mistake/misunderstanding.
Under the topic " Testing with patterns" the first query is described as " Here is an example where we want to return all Person nodes of people who wrote movies:". The Cypher for this is:
MATCH (p:Person)-[:WROTE]->(m:Movie)
RETURN p.name, m.title
We're good up until this point.
The next step is described as "Next, we modify this query to exclude people who directed that movie:" and the Cypher in the training for this is:
MATCH (p:Person)-[:WROTE]->(m:Movie)
WHERE NOT exists( (p)-[:DIRECTED]->() )
RETURN p.name, m.title
I think the anonymous node in the WHERE clause is incorrect. This causes all people who have directed ANY movie to be excluded. For example, Nora Ephron wrote "When Harry Met Sally" but did not direct it. She directed "You've Got Mail". Nora is filtered out of the result set with the Cypher provided.
To match the description, I believe the Cypher should be:
MATCH (p:Person)-[:WROTE]->(m:Movie)
WHERE NOT exists( (p)-[:DIRECTED]->(m) )
RETURN p.name, m.title
Alternately, you can keep the Cypher the same and change the description of that step to "Next, we modify this query to exclude people who directed any movie:"