title: Neo4J: Avoid repeating nodes
body: <p>I have a model with students and the courses that they assisted. All students have a groupNumber.</p>
  
  <p>So when I want to get all the students that assisted to same course but are from a different groupNumber I do this:</p>
  
  <pre><code>MATCH (s1:Student)-[:Assisted]-(c:Course), (s2:Student)-[:Assisted]-(c)
  WHERE s1.groupNumber &lt;&gt; s2.groupNumber
  RETURN s1, s2
  </code></pre>
  
  <p>This works, however, this shows me something like this:</p>
  
  <pre><code>Paul | Steve
  Steve | Paul
  Carl |Steve
  Steve | Mark
  </code></pre>
  
  <p>Is there a simple way to avoid showing repeated students?</p>