Hello
I am working through the training dataset at https://guides.neo4j.com/sandbox/pole/index.html
I came across a query that I am not sure what it does and it isn't really explained. What does (friend) do on the first line of this query?
MATCH (p:Person)-[:KNOWS]-(friend)-[:PARTY_TO]->(:Crime)
WHERE NOT (p:Person)-[:PARTY_TO]->(:Crime)
RETURN p.name AS name, p.surname AS surname, p.nhs_no AS id, count(distinct friend) AS dangerousFriends
ORDER BY dangerousFriends DESC
LIMIT 5