From 68b8bb205b4531382a65ce956bc4bc979e0def8b Mon Sep 17 00:00:00 2001 From: Yee <2520865+yixinglu@users.noreply.github.com> Date: Wed, 7 Dec 2022 19:10:03 +0800 Subject: [PATCH] Fix ic 14 (#71) --- nebula/queries/interactive-complex-14.ngql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nebula/queries/interactive-complex-14.ngql b/nebula/queries/interactive-complex-14.ngql index 36cb2c050..4c188a4a0 100644 --- a/nebula/queries/interactive-complex-14.ngql +++ b/nebula/queries/interactive-complex-14.ngql @@ -15,4 +15,4 @@ WITH count(comm) AS cnt3, cnt1, cnt2, prev, curr, personIdsInPath OPTIONAL MATCH (curr)<-[:COMMENT_HAS_CREATOR]-(comm:`Comment`)-[:REPLY_OF_COMMENT]->(comm2:`Comment`), (prev)<-[:COMMENT_HAS_CREATOR]-(comm2) WITH count(comm) AS cnt4, cnt1, cnt2, cnt3, prev, curr, personIdsInPath RETURN personIdsInPath, sum(cnt1 + cnt2 + 0.5 * cnt3 + 0.5 * cnt4) AS pathWeight -ORDER BY pathWeight DESC, personIdsInPath DESC +ORDER BY pathWeight DESC, personIdsInPath ASC