Yes, esquery is a pretty cool project, and I wonder if we could add date_historgram aggregation support, see es doc.
date_historgram