run a chunked version of a query defined by ESQuery
Merge pull request #4058 from dimagi/chunked-esquery

run a chunked version of a query defined by ESQuery