title: Neo4j Cypher query RETURN distinct set of nodes
body: <p>I have a simple social network graph db model. Users can follow other users and post posts. I am trying to get a list of all posts that a user has posted along with any that anyone the user follows has posted</p>
  
  <pre><code>START a=node:node_auto_index(UserIdentifier = "USER0") 
  MATCH (a)-[:POSTED]-&gt;(b), (a)-[:FOLLOWS]-&gt;(c)-[:POSTED]-&gt;(d) 
  RETURN b, d;
  </code></pre>
  
  <p>It is returning the cross product of the two, a tuple of all the values in b joined with all the values in d. (b x d) I would like just a straight list of posts. How do I do this? Do I need to do two separate queries?</p>