Skip to content

Commit

Permalink
Create c12.cypher
Browse files Browse the repository at this point in the history
  • Loading branch information
mingxiw authored Jan 19, 2025
1 parent 4c9d525 commit a7921e8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions demos/guru_scripts/docker/tutorial/4.x/cypher/c12.cypher
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
USE GRAPH financialGraph

CREATE OR REPLACE OPENCYPHER QUERY c12(){
MATCH (src)-[e:transfer]-> (tgt1)
MATCH (tgt1)-[e:transfer]-> (tgt2)
WITH src.name AS srcAccountName, COUNT(tgt2) AS tgt2Cnt
ORDER BY tgt2Cnt DESC, srcAccountName DESC
SKIP 1
LIMIT 3
RETURN srcAccountName, tgt2Cnt
}

install query c12

run query c12()

0 comments on commit a7921e8

Please sign in to comment.