diff --git a/flex/resources/queries/examples/store_procedure/Q1.1.cypher b/flex/resources/queries/examples/store_procedure/Q1.1.cypher new file mode 100644 index 000000000000..8ab6bc52abf1 --- /dev/null +++ b/flex/resources/queries/examples/store_procedure/Q1.1.cypher @@ -0,0 +1,2 @@ +Match (author:PERSON)<-[:HASCREATOR]-(msg1:POST|COMMENT) +Return count(author); \ No newline at end of file diff --git a/flex/resources/queries/examples/store_procedure/Q1.2.cypher b/flex/resources/queries/examples/store_procedure/Q1.2.cypher new file mode 100644 index 000000000000..cab0b9fd3181 --- /dev/null +++ b/flex/resources/queries/examples/store_procedure/Q1.2.cypher @@ -0,0 +1,2 @@ +Match (author:PERSON)<-[:HASCREATOR]-(msg1:POST|COMMENT)<-[:REPLYOF]-(msg2:POST|COMMENT) +Return count(author); \ No newline at end of file diff --git a/flex/resources/queries/examples/store_procedure/Q1.3.cypher b/flex/resources/queries/examples/store_procedure/Q1.3.cypher new file mode 100644 index 000000000000..5dd78a0b6a6e --- /dev/null +++ b/flex/resources/queries/examples/store_procedure/Q1.3.cypher @@ -0,0 +1,3 @@ +Match (author:PERSON)<-[:HASCREATOR]-(msg1:POST|COMMENT) +where msg1.length > $len +Return count(author); \ No newline at end of file diff --git a/flex/resources/queries/examples/store_procedure/Q1.4.cypher b/flex/resources/queries/examples/store_procedure/Q1.4.cypher new file mode 100644 index 000000000000..98b718502491 --- /dev/null +++ b/flex/resources/queries/examples/store_procedure/Q1.4.cypher @@ -0,0 +1,3 @@ +Match (author:PERSON)<-[:HASCREATOR]-(msg1:POST|COMMENT)<-[:REPLYOF]-(msg2:POST|COMMENT) +where msg2.length > $len +Return count(author); \ No newline at end of file diff --git a/flex/resources/queries/examples/store_procedure/Q2.1.cypher b/flex/resources/queries/examples/store_procedure/Q2.1.cypher new file mode 100644 index 000000000000..b22deeca4574 --- /dev/null +++ b/flex/resources/queries/examples/store_procedure/Q2.1.cypher @@ -0,0 +1,3 @@ +Match (p1:PERSON)-[:KNOWS]->(p2:PERSON) +Where p1.id = $id1 and p2.id = $id2 +Return count(p1); \ No newline at end of file diff --git a/flex/resources/queries/examples/store_procedure/Q2.2.cypher b/flex/resources/queries/examples/store_procedure/Q2.2.cypher new file mode 100644 index 000000000000..47d2896a13e4 --- /dev/null +++ b/flex/resources/queries/examples/store_procedure/Q2.2.cypher @@ -0,0 +1,3 @@ +Match (p1:PERSON)-[:KNOWS]->(p2:PERSON)-[:LIKES]->(comment:COMMENT) +Where p1.id = $id1 and p2.id = $id2 and comment.length > $len +Return count(p1); \ No newline at end of file diff --git a/flex/resources/queries/examples/store_procedure/Q2.3.cypher b/flex/resources/queries/examples/store_procedure/Q2.3.cypher new file mode 100644 index 000000000000..747577e28135 --- /dev/null +++ b/flex/resources/queries/examples/store_procedure/Q2.3.cypher @@ -0,0 +1,3 @@ +Match (p1:PERSON)-[k:KNOWS]->(p2:PERSON) +Where k.creationDate > $date1 and k.creationDate < $date2 +Return count(p2); \ No newline at end of file diff --git a/flex/resources/queries/examples/store_procedure/Q2.4.cypher b/flex/resources/queries/examples/store_procedure/Q2.4.cypher new file mode 100644 index 000000000000..4b990e77c2fa --- /dev/null +++ b/flex/resources/queries/examples/store_procedure/Q2.4.cypher @@ -0,0 +1,3 @@ +Match (p1:PERSON)-[k:KNOWS]->(p2:PERSON)-[:LIKES]->(comment:COMMENT) +Where k.creationDate > $date1 and k.creationDate < $date2 +Return count(p1); diff --git a/flex/resources/queries/examples/store_procedure/Q3.1.cypher b/flex/resources/queries/examples/store_procedure/Q3.1.cypher new file mode 100644 index 000000000000..ebc468d7e5a9 --- /dev/null +++ b/flex/resources/queries/examples/store_procedure/Q3.1.cypher @@ -0,0 +1,4 @@ +Match (message:COMMENT|POST)-[:HASCREATOR]->(person:PERSON), + (message:COMMENT|POST)-[:HASTAG]->(tag:TAG), + (person:PERSON) -[:HASINTEREST]->(tag:TAG) +Return count(person); \ No newline at end of file diff --git a/flex/resources/queries/examples/store_procedure/Q3.2.cypher b/flex/resources/queries/examples/store_procedure/Q3.2.cypher new file mode 100644 index 000000000000..a5281251f3e9 --- /dev/null +++ b/flex/resources/queries/examples/store_procedure/Q3.2.cypher @@ -0,0 +1,5 @@ +Match (person1:PERSON)-[:LIKES]->(message:COMMENT|POST), + (message:COMMENT|POST)-[:HASCREATOR]->(person2:PERSON), + (person1:PERSON)-[:ISLOCATEDIN]->(place:PLACE), + (person2:PERSON) -[:ISLOCATEDIN]->(place:PLACE) +Return count(person1); \ No newline at end of file diff --git a/flex/resources/queries/examples/store_procedure/Q3.3.cypher b/flex/resources/queries/examples/store_procedure/Q3.3.cypher new file mode 100644 index 000000000000..3e7b5a6b3c1c --- /dev/null +++ b/flex/resources/queries/examples/store_procedure/Q3.3.cypher @@ -0,0 +1,5 @@ +Match (person1:PERSON)<-[:HASCREATOR]-(comment:COMMENT), + (comment:COMMENT)-[:REPLYOF]->(post:POST), + (post:POST)<-[:CONTAINEROF]-(forum:FORUM), + (forum:FORUM)-[:HASMEMBER]->(person2:PERSON) +Return count(person1); \ No newline at end of file diff --git a/flex/resources/queries/examples/store_procedure/Q3.4.cypher b/flex/resources/queries/examples/store_procedure/Q3.4.cypher new file mode 100644 index 000000000000..f409b4aee261 --- /dev/null +++ b/flex/resources/queries/examples/store_procedure/Q3.4.cypher @@ -0,0 +1,7 @@ +Match (forum:FORUM)-[:CONTAINEROF]->(post:POST), + (forum:FORUM)-[:HASMEMBER]->(person1:PERSON), + (forum:FORUM)-[:HASMEMBER]->(person2:PERSON), + (person1:PERSON)-[:KNOWS]->(person2:PERSON), + (person1:PERSON)-[:LIKES]->(post:POST), + (person2:PERSON)-[:LIKES]->(post:POST) +Return count(person1);