Update query 19
@@ -14,12 +14,12 @@ MATCH
// --> may be use two MATCH clauses?
(:TagClass {name: $tagClass1})<-[:hasType]-(:Tag)<-[:hasTag]-(forum1:Forum),
(:TagClass {name: $tagClass2})<-[:hasType]-(:Tag)<-[:hasTag]-(forum2:Forum),
- (forum1)-[:hasMember]->(stranger:Person)<-[:hasMember]-(forum2),
- (person)-[:knows]-(stranger)
+ (forum1)-[:hasMember]->(stranger:Person)<-[:hasMember]-(forum2)
WHERE NOT (person)-[:knows]-(stranger)
WITH person, stranger
OPTIONAL MATCH
- (person) <-[:hasCreator]-(comment1:Comment)-[:replyOf]->(:Message)-[:hasCreator]->(stranger),
+ (person)<-[:hasCreator]-(comment1:Comment)-[:replyOf]->(:Message)-[:hasCreator]->(stranger)
+OPTIONAL MATCH
(stranger)<-[:hasCreator]-(comment2:Comment)-[:replyOf]->(:Message)-[:hasCreator]->(person)
WITH
person,
