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-09-01 00:00' as TIMESTAMP)and "from" = 0x0000000000000000000000000000000000000000and "contract_address" = 0xA97E46DC17e2b678e5f049A2670fAe000b57F05Egroup 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-09-01 00:00' as TIMESTAMP)and "to" = 0x0000000000000000000000000000000000000000and "contract_address" = 0xA97E46DC17e2b678e5f049A2670fAe000b57F05Egroup 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-09-01 00:00' as TIMESTAMP)and "to" = 0xe1ad94646e9866d48cca59080535ef782d03b4afand "contract_address" = 0xA97E46DC17e2b678e5f049A2670fAe000b57F05Egroup 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-09-01 00:00' as TIMESTAMP)and "from" = 0xe1ad94646e9866d48cca59080535ef782d03b4afand "contract_address" = 0xA97E46DC17e2b678e5f049A2670fAe000b57F05Egroup 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-09-01 00:00' as TIMESTAMP)and "to" = 0xA97E46DC17e2b678e5f049A2670fAe000b57F05Eand "contract_address" = 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095cgroup by 1union allselectdate_trunc('day', "evt_block_time") as day,- sum(value/1e18) as BNBfrom erc20_bnb.evt_Transfer