title: Sequelize with join, group by, having, order by
body: <p>How this query can be written using ORM?</p>
  
  <pre><code>SELECT p.id, 
      p.name, 
      COUNT(c.id) counter 
  FROM Posts p 
  LEFT JOIN Comments c 
      ON c.post_id = p.id 
  WHERE p.rating &gt; 100 
  GROUP BY p.id
  HAVING counter &gt; 10
  ORDER BY counter DESC 
  LIMIT 5
  </code></pre>