Kibana vega viz plug-in:multiple aggregations: how-to?

Update: Vega has added flatten transform, which will be available in Kibana 6.3, as well as in the 6.0 & 6.1 as a plugin (and hopefully I will update Vega plugin to support 6.2 soonish.