diff --git a/demos/guru_scripts/docker/tutorial/4.x/cypher/c14.cypher b/demos/guru_scripts/docker/tutorial/4.x/cypher/c14.cypher new file mode 100644 index 00000000..38eb882b --- /dev/null +++ b/demos/guru_scripts/docker/tutorial/4.x/cypher/c14.cypher @@ -0,0 +1,12 @@ +USE GRAPH financialGraph +CREATE OR REPLACE OPENCYPHER QUERY c14(){ + MATCH (src)-[e:transfer]-> (tgt1) + WHERE src.name in ["Jenny", "Paul"] + UNWIND [1, 2, 3] AS x //the "Jenny" row will be expanded to [Jenny, 1], [Jenny,2], [Jenny, 3]. Same fashion applies to the "Paul" row. + WITH src AS srcAccount, e.amount * x AS res + RETURN srcAccount, res +} + +install query c14 + +run query c14()