Visualization of complicated elasticsearch queries/aggregations

Hi,

Kibana appears to be a decent tool to allow users to design basic search/dashboards interactively, however it seems to fall short of supporting arbitrary queries/aggregations. I was wondering for folks who have built complicated elasticsearch queries (such as deeply nested aggregations), what kind of visualization/frontend are you using?

Thanks in advance,
Frank