title: Is it possible to do a subquery with Sequelize.js?
body: <p>I have a query that looks like:</p>
  
  <pre><code>select es.EssayId, (esmax.WordCount - esmin.WordCount)
  from (select es.EssayId, min(es.EssayDate) as mined, max(es.EssayDate) as maxed
        from EssayStats es
        group by es.EssayId
       ) es join
       EssayStats esmin
       on es.EssayId = esmin.EssayId and es.mined = esmin.EssayDate join
       EssayStats esmax
       on es.EssayId = esmax.EssayId and es.maxed = esmax.EssayDate;
  </code></pre>
  
  <p>Is it possible to write this with Sequelize.js ORM? I know I can just use a <code>query</code> directly, but I'm wondering if it's possible to construct.</p>