Returning two aggregates in a single Cypher query?
问题 I've been struggling some with Cypher in regards to taking the SUM of two values and finding the difference. I have these two queries, which find the total sent and the total received of a node: START addr = node(5) MATCH addr <- [:owns] - owner - [to:transfers] -> receiver RETURN SUM(to.value) AS Total_Sent START addr = node(5) MATCH addr <- [:owns] - owner <- [from:transfers] - sender RETURN SUM(from.value) AS Total_Received Basically my question is - how do I combine these two separate