title: Iterate over a list in a Match query
body: <p>I have a relation that has a list of ids s_ids as a property of the relation. each id in the list correspond to another node that has a sentence corresponding to an id.I used:</p>
  
  <pre><code>MATCH (c: term)-[r: semrel]-&gt;(t: term), (b: Sentence)
  Where r.source = "xyz" And b.sentence_id IN r.s_id
  return r,b 
  </code></pre>
  
  <p>to return all sentences corresponding to the relation, 
  the result looks like :</p>
  
  <pre><code>r  b
  w  abc
  w  rty
  w  zxv
  e  nmx
  e  qrt
  </code></pre>
  
  <p>the relation r is repeated for every sentence how can I group the list of sentences corresponding to each relation to get </p>
  
  <pre><code>r  b
  w  abc, rty, zxv
  e  nmx,qrt
  </code></pre>
  
  <p>Thanks</p>