From bd9566077d072a7fe90c0e24017cce3d0e829d32 Mon Sep 17 00:00:00 2001 From: Gabor Szarnyas Date: Mon, 21 Nov 2022 21:59:56 +0100 Subject: [PATCH] Cypher: Fix typo in query --- cypher/queries/bi-14.cypher | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cypher/queries/bi-14.cypher b/cypher/queries/bi-14.cypher index 6864a795..3175a3d6 100644 --- a/cypher/queries/bi-14.cypher +++ b/cypher/queries/bi-14.cypher @@ -12,16 +12,16 @@ MATCH WITH person1, person2, city1, 0 AS score // case 1 OPTIONAL MATCH (person1)<-[:HAS_CREATOR]-(c:Comment)-[:REPLY_OF]->(:Message)-[:HAS_CREATOR]->(person2) -WITH DISTINCT person1, person2, city1, score + (CASE WHEN c IS NUL THEN 0 ELSE 4 END) AS score +WITH DISTINCT person1, person2, city1, score + (CASE WHEN c IS NULL THEN 0 ELSE 4 END) AS score // case 2 OPTIONAL MATCH (person1)<-[:HAS_CREATOR]-(m:Message)<-[:REPLY_OF]-(:Comment)-[:HAS_CREATOR]->(person2) WITH DISTINCT person1, person2, city1, score + (CASE WHEN m IS NULL THEN 0 ELSE 1 END) AS score // case 3 OPTIONAL MATCH (person1)-[:LIKES]->(m:Message)-[:HAS_CREATOR]->(person2) -WITH DISTINCT person1, person2, city1, score + (CASE WHEN m IS null THEN 0 ELSE 10 END) AS score +WITH DISTINCT person1, person2, city1, score + (CASE WHEN m IS NULL THEN 0 ELSE 10 END) AS score // case 4 OPTIONAL MATCH (person1)<-[:HAS_CREATOR]-(m:Message)<-[:LIKES]-(person2) -WITH DISTINCT person1, person2, city1, score + (CASE WHEN m IS null THEN 0 ELSE 1 END) AS score +WITH DISTINCT person1, person2, city1, score + (CASE WHEN m IS NULL THEN 0 ELSE 1 END) AS score // preorder ORDER BY city1.name ASC,