How to display nested query on Grafana

I want to display a table panel that can show nested query

I want to display

Screen Shot 2021-06-10 at 6.33.15 AM

will appreciate your help!!