Query editor
select coalesce(with_code, '[None]') as code,sum(amount) as node_cnt,coalesce(sum(case when rnd = 'WL' then amount end),0) as wl_cnt,coalesce(sum(case when rnd = 'PUBLIC' then amount end),0) as public_cnt,sum(price) as eth_price,sum(price) / sum(amount) as avg_pricefrom query_3672085 agroup by 1order by 2 desc, 3 desc