title: Resources Exceeded in BigQuery
body: <p>I keeping getting resources exceeded for the following query. I've tried running in batch mode and from the command line and nothing seems to be working. Anyone have ideas?</p>
  
  <p><code>SELECT num, extid, amount, note, balance
  FROM
    (
    SELECT row_number() over(partition by extid order by stamp) as num
      , extid, stamp, ds, amount, note, balance
    FROM monte.ledger2_trailing_21d 
    WHERE ds &gt;= '2015-02-09'
    ORDER BY extid, stamp
    )
  WHERE num &lt;= 10
  limit 300</code></p>