Customers who bought the tent also bought
Query 1Two hops: from the product to its buyers, then to their other products.
MATCH (:Product {name: 'Tent'})<-[:BOUGHT]-(c:Customer)-[:BOUGHT]->(other:Product)
RETURN other.name AS alsoBought, count(c) AS customers
ORDER BY customers DESC, alsoBought LIMIT 3;+----------------+-----------+
| alsoBought | customers |
+----------------+-----------+
| "Camp stove" | 2 |
| "Head lamp" | 2 |
| "Sleeping bag" | 2 |
+----------------+-----------+
3 rows