diff --git a/demos/guru_scripts/docker/tutorial/4.x/cypher/c12.cypher b/demos/guru_scripts/docker/tutorial/4.x/cypher/c12.cypher new file mode 100644 index 00000000..1482b178 --- /dev/null +++ b/demos/guru_scripts/docker/tutorial/4.x/cypher/c12.cypher @@ -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()