Skip to content

Commit

Permalink
fix(interactive): add some experimental queries in paper (#4110)
Browse files Browse the repository at this point in the history
  • Loading branch information
BingqingLyu authored Aug 6, 2024
1 parent 09dd999 commit 74755c3
Show file tree
Hide file tree
Showing 38 changed files with 64 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Match (p1: PERSON {id:1243})-[:KNOWS*3..4]->(:PERSON)
UNION (p1: PERSON {id:1243})-[:KNOWS*4..5]->(:PERSON),
Return count(p1);
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Match (p1: PERSON {id:1243})-[:KNOWS*4..5]->(:PERSON)
UNION (p1: PERSON {id:1243})-[:KNOWS*5..6]->(:PERSON),
Return count(p1);
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Match (message:Post)-[:HAS_CREATOR]->(person),
(message:Post)-[:HAS_TAG]->(tag:Tag),
(person)-[:HAS_INTEREST]->(tag:Tag)
Return count(person);
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Match (message)-[:KNOWS|HAS_MODERATOR]->(person:Person),
(message)-[]->(tag:Tag),
(person)-[]->(tag)
Return count(person);
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Match (person1:Person)-[:LIKES]->(message:Post),
(message:Post)<-[:CONTAINER_OF]-(person2:Forum),
(person1:Person)-[:KNOWS]->(place),
(person2:Forum)-[:HAS_MODERATOR]->(place)
Return count(person1);
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Match (person1:Person)-[:LIKES]->(message:Post),
(message:Post)<-[:CONTAINER_OF]-(person2:Forum),
(person1:Person)-[:KNOWS|HAS_INTEREST]->(place),
(person2:Forum)-[:HAS_MODERATOR|HAS_TAG]->(place)
Return count(person1);
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Match (person1)<-[:HAS_CREATOR]-(comment:Comment),
(comment:Comment)-[:REPLY_OF]->(post:Post),
(post:Post)<-[:CONTAINER_OF]-(forum),
(forum)-[:HAS_MEMBER]->(person2)
Return count(person1);
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Match (p:Comment)-[]->(:Person)-[]->(:Place),
(p)<-[]-(message),
(message)-[]->(tag:Tag)
Return count(p);
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Match (forum)-[:CONTAINER_OF]->(post:Post),
(forum)-[:HAS_MEMBER]->(person1:Person),
(forum)-[:HAS_MEMBER]->(person2:Person),
(person1:Person)-[:KNOWS]->(person2:Person),
(person1:Person)-[:LIKES]->(post:Post),
(person2:Person)-[:LIKES]->(post:Post)
Return count(person1);
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Match (forum)-[:HAS_TAG]->(post:Tag),
(forum)-[:HAS_MODERATOR]->(person1),
(forum)-[:HAS_MODERATOR|CONTAINER_OF]->(person2),
(person1)-[:KNOWS|LIKES]->(person2),
(person1)-[:HAS_INTEREST]->(post:Tag),
(person2)-[:HAS_INTEREST|HAS_TAG]->(post:Tag)
Return count(person1);
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Match (p1:Person)-[:KNOWS]->(p2:Person)
Where p1.id < 933
Return count(p1);
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Match (p1:Person)<-[:HAS_MODERATOR]-(forum:Forum),
(p1:Person)<-[:HAS_CREATOR]-(post:Post),
(post)<-[:CONTAINER_OF]-(forum)
Where p1.id < 933
Return count(p1);
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Match (p1:Person)-[:KNOWS]->(p2:Person)-[:KNOWS]->(p3:Person) Return count(p1);
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Match (p1:Person)<-[:HAS_MODERATOR]-(forum:Forum)-[:CONTAINER_OF]->(post:Post)-[:HAS_CREATOR]->(p2:Person) Return count(p1);
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Match (p1:Person)<-[:HAS_CREATOR]-()<-[:CONTAINER_OF]-(p2) Return count(p1);
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Match (p)-[]->(:Organisation)-[]->(:Place) Return count(p);
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Match (p1)<-[:IS_LOCATED_IN]-(p2:Comment)-[]->(:Tag) Return count(p1);
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Match (p1)<-[]-(p2:Post),
(p1)<-[:HAS_MODERATOR]-()-[]->(p2)
Return count(p1);
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Match (p:Post)-[]->(p1), (p1)-[]->(:Place) Return count(p1);

0 comments on commit 74755c3

Please sign in to comment.