Query editor
with temp as (selectdate_trunc('day', "evt_block_time") as day,sum(value/1e18) as LP_Tokenfrom pancakeswap_v2_bnb.PancakePair_evt_Transferwhere "evt_block_time" > cast('2020-07-01 00:00' as TIMESTAMP)and "from" = 0x0000000000000000000000000000000000000000and "contract_address" = 0x7EFaEf62fDdCCa950418312c6C91Aef321375A00group by 1union allselectdate_trunc('day', "evt_block_time") as day,- sum(value/1e18) as LP_Tokenfrom pancakeswap_v2_bnb.PancakePair_evt_Transferwhere "evt_block_time" > cast('2020-07-01 00:00' as TIMESTAMP)and "to" = 0x0000000000000000000000000000000000000000and "contract_address" = 0x7EFaEf62fDdCCa950418312c6C91Aef321375A00group by 1),tempPCSUSDTBUSD as (selectdate_trunc('day', "evt_block_time") as day,sum(value/1e18) as LP_PCSUSDTBUSDfrom pancakeswap_v2_bnb.PancakePair_evt_Transferwhere "evt_block_time" > cast('2022-07-01 00:00' as TIMESTAMP)and "to" = 0xa5f8c5dbd5f286960b9d90548680ae5ebff07652and "From" = 0xE4Dbb05498C42A6E780e4C6F96A4E20a7D7Cb1d6and "contract_address" = 0x7EFaEf62fDdCCa950418312c6C91Aef321375A00group by 1union allselectdate_trunc('day', "evt_block_time") as day,- sum(value/1e18) as LP_PCSUSDTBUSDfrom pancakeswap_v2_bnb.PancakePair_evt_Transferwhere "evt_block_time" > cast('2022-07-01 00:00' as TIMESTAMP)and "from" = 0xa5f8c5dbd5f286960b9d90548680ae5ebff07652And "to" = 0xE4Dbb05498C42A6E780e4C6F96A4E20a7D7Cb1d6and "contract_address" = 0x7EFaEf62fDdCCa950418312c6C91Aef321375A00group by 1),BUSD as (selectdate_trunc('day', "evt_block_time") as day,sum(value/1e18) as BUSDfrom busd_bnb.BEP20BUSD_evt_Transferwhere "evt_block_time" > cast('2020-07-01 00:00' as TIMESTAMP)and"to" = 0x7EFaEf62fDdCCa950418312c6C91Aef321375A00and "contract_address" = 0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56group by 1union allselectdate_trunc('day', "evt_block_time") as day,