How to compare two aggregations

Ok, do some one has any proposal how to solve this question in Kibana or ElasticSearch?