memgraph/cypher/query/read/with/match-with-order-skip-limit.cypher

2 lines
117 B
Plaintext

MATCH (user)-[:FRIEND]-(friend) WITH user, count(friend) AS friends ORDER BY friends DESC SKIP 1 LIMIT 3 RETURN user