-
Notifications
You must be signed in to change notification settings - Fork 448
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(interactive): add some experimental queries in paper (#4110)
- Loading branch information
1 parent
09dd999
commit 74755c3
Showing
38 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
interactive_engine/benchmark/queries/cypher_queries/experiments/gopt/Qr7.cypher
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
3 changes: 3 additions & 0 deletions
3
interactive_engine/benchmark/queries/cypher_queries/experiments/gopt/Qr8.cypher
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions
4
interactive_engine/benchmark/queries/cypher_queries/experiments/neo4j/Qc1(a).cypher
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
4 changes: 4 additions & 0 deletions
4
interactive_engine/benchmark/queries/cypher_queries/experiments/neo4j/Qc1(b).cypher
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
5 changes: 5 additions & 0 deletions
5
interactive_engine/benchmark/queries/cypher_queries/experiments/neo4j/Qc2(a).cypher
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
5 changes: 5 additions & 0 deletions
5
interactive_engine/benchmark/queries/cypher_queries/experiments/neo4j/Qc2(b).cypher
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
5 changes: 5 additions & 0 deletions
5
interactive_engine/benchmark/queries/cypher_queries/experiments/neo4j/Qc3(a).cypher
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
4 changes: 4 additions & 0 deletions
4
interactive_engine/benchmark/queries/cypher_queries/experiments/neo4j/Qc3(b).cypher
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
7 changes: 7 additions & 0 deletions
7
interactive_engine/benchmark/queries/cypher_queries/experiments/neo4j/Qc4(a).cypher
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
7 changes: 7 additions & 0 deletions
7
interactive_engine/benchmark/queries/cypher_queries/experiments/neo4j/Qc4(b).cypher
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
3 changes: 3 additions & 0 deletions
3
interactive_engine/benchmark/queries/cypher_queries/experiments/neo4j/Qr1.cypher
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
5 changes: 5 additions & 0 deletions
5
interactive_engine/benchmark/queries/cypher_queries/experiments/neo4j/Qr2.cypher
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
1 change: 1 addition & 0 deletions
1
interactive_engine/benchmark/queries/cypher_queries/experiments/neo4j/Qr3.cypher
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
1 change: 1 addition & 0 deletions
1
interactive_engine/benchmark/queries/cypher_queries/experiments/neo4j/Qr4.cypher
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
1 change: 1 addition & 0 deletions
1
interactive_engine/benchmark/queries/cypher_queries/experiments/neo4j/Qt1.cypher
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Match (p1:Person)<-[:HAS_CREATOR]-()<-[:CONTAINER_OF]-(p2) Return count(p1); |
1 change: 1 addition & 0 deletions
1
interactive_engine/benchmark/queries/cypher_queries/experiments/neo4j/Qt2.cypher
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Match (p)-[]->(:Organisation)-[]->(:Place) Return count(p); |
1 change: 1 addition & 0 deletions
1
interactive_engine/benchmark/queries/cypher_queries/experiments/neo4j/Qt3.cypher
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Match (p1)<-[:IS_LOCATED_IN]-(p2:Comment)-[]->(:Tag) Return count(p1); |
3 changes: 3 additions & 0 deletions
3
interactive_engine/benchmark/queries/cypher_queries/experiments/neo4j/Qt4.cypher
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
1 change: 1 addition & 0 deletions
1
interactive_engine/benchmark/queries/cypher_queries/experiments/neo4j/Qt5.cypher
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Match (p:Post)-[]->(p1), (p1)-[]->(:Place) Return count(p1); |