title: nested FOREACH statements
body: <p>It seems that group is not supported in nested FOREACH statements. I have the following schema:</p>
  
  <pre><code>data2: {group: chararray,data1: {(lt: chararray,ln: chararray)}}
  </code></pre>
  
  <p>on which I want to flatten data1, group all pairs of (lt, ln), count, order DESC, and finally limit 1.</p>
  
  <p>The idea is to extract the most probable pair of (lt, ln) for each group. How would you recommend me to do that?</p>