title: Neighbours, duplicates and aggregation with Cypher & Neo4j
body: <p>Maybe I need to spend more time with the Cypher documentation, but with the following cypher query:</p>
  
  <pre><code>MATCH (a)-[:friends|colleagues]-(b)
  WHERE 'Boston' IN a.lived_in and 'Boston' IN b.lived_in
  WITH a, count(b) as c
  RETURN a.name, c
  </code></pre>
  
  <p>Why does b contain duplicates?</p>