https://neo4j.com/docs/getting-started/cypher/
In the "Patterns in Cypher" part of the chapter Cypher , one of the cypher code, to retieve the pattern of initially created graph ,the following example is provided:
MATCH (sally:Person {name: "Sally"})-[r:LIKES]->(t:Technology {type: "Graphs"})
RETURN p,r,t
Here while returning the output, it must be calling for the variable sally, as the variable p is not defined anywhere.
he correct version should use the variable sally, as defined in the pattern:
MATCH (sally:Person {name: "Sally"})-[r:LIKES]->(t:Technology {type: "Graphs"})
RETURN sally, r, t