Skip to content

Instantly share code, notes, and snippets.

@amencarini
Created June 18, 2014 19:07
Show Gist options
  • Save amencarini/6945cfd0da525eb42e7d to your computer and use it in GitHub Desktop.
Save amencarini/6945cfd0da525eb42e7d to your computer and use it in GitHub Desktop.
Neo4j World Cup: Top scorers for England
match (s:Squad)--(player:Player)--()-[:SCORED_GOAL]->(g)
where s.name =~ "England.*"
return player.name, count(distinct g) as count
order by count desc
limit 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment