Write a Cypher query to retrieve all people in the graph whose name begins with Tom and optionally retrieve all people named Tom who directed a movie.
And the answer is:
WHERE p.name STARTS WITH 'Tom'
OPTIONAL MATCH (p)-[:DIRECTED]->(m:Movie)
RETURN p.name, m.title
I think the Question would be better worded as:
Return all persons who's name begins with Tom and optionally return the name of a movie that this person directed.