Query editor
with temp as (selectdate_trunc('day', "evt_block_time") as day,sum(value/1e18) as LP_Tokenfrom erc20_bnb.evt_Transferwhere "evt_block_time" > cast('2022-07-01 00:00' as TIMESTAMP)and "from" = 0x0000000000000000000000000000000000000000and "contract_address" = 0x352008bf4319c3B7B8794f1c2115B9Aa18259EBbgroup by 1union allselectdate_trunc('day', "evt_block_time") as day,- sum(value/1e18) as LP_Tokenfrom erc20_bnb.evt_Transferwhere "evt_block_time" > cast('2022-07-01 00:00' as TIMESTAMP)and "to" = 0x0000000000000000000000000000000000000000and "contract_address" = 0x352008bf4319c3B7B8794f1c2115B9Aa18259EBbgroup by 1),tempGHNYBNB as (selectdate_trunc('day', "evt_block_time") as day,sum(value/1e18) as LP_GHNY_BNBfrom erc20_bnb.evt_Transferwhere "evt_block_time" > cast('2022-07-01 00:00' as TIMESTAMP)and "to" = 0xf530b259fff408aab2b02aa60dd6fe48fcdc2fc9and "contract_address" = 0x352008bf4319c3B7B8794f1c2115B9Aa18259EBbgroup by 1union allselectdate_trunc('day', "evt_block_time") as day,- sum(value/1e18) as LP_GHNY_BNBfrom erc20_bnb.evt_Transferwhere "evt_block_time" > cast('2022-07-01 00:00' as TIMESTAMP)and "from" = 0xf530b259fff408aab2b02aa60dd6fe48fcdc2fc9and "contract_address" = 0x352008bf4319c3B7B8794f1c2115B9Aa18259EBbgroup by 1),BNB as (selectdate_trunc('day', "evt_block_time") as day,sum(value/1e18) as BNBfrom erc20_bnb.evt_Transferwhere "evt_block_time" > cast('2022-07-01 00:00' as TIMESTAMP)and "to" = 0x352008bf4319c3B7B8794f1c2115B9Aa18259EBband "contract_address" = 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095cgroup by 1union allselectdate_trunc('day', "evt_block_time") as day,- sum(value/1e18) as BNBfrom erc20_bnb.evt_Transfer