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" = 0xEc6557348085Aa57C72514D67070dC863C0a5A8cgroup 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" = 0xEc6557348085Aa57C72514D67070dC863C0a5A8cgroup by 1),tempPCSUSDCUSDT as (selectdate_trunc('day', "evt_block_time") as day,sum(value/1e18) as LP_PCSUSDCUSDTfrom erc20_bnb.evt_Transferwhere "evt_block_time" > cast('2022-07-01 00:00' as TIMESTAMP)and "to" = 0xa5f8c5dbd5f286960b9d90548680ae5ebff07652and "From" = 0x8D83Ad61Ae6eDE4274876EE9ad9127843ba2AbF7and "contract_address" = 0xEc6557348085Aa57C72514D67070dC863C0a5A8cgroup by 1union allselectdate_trunc('day', "evt_block_time") as day,- sum(value/1e18) as LP_PCSUSDCUSDTfrom erc20_bnb.evt_Transferwhere "evt_block_time" > cast('2022-07-01 00:00' as TIMESTAMP)and "from" = 0xa5f8c5dbd5f286960b9d90548680ae5ebff07652And "to" = 0x8D83Ad61Ae6eDE4274876EE9ad9127843ba2AbF7and "contract_address" = 0xEc6557348085Aa57C72514D67070dC863C0a5A8cgroup by 1),USDT as (selectdate_trunc('day', "evt_block_time") as day,sum(value/1e18) as USDTfrom erc20_bnb.evt_Transferwhere "evt_block_time" > cast('2022-07-01 00:00' as TIMESTAMP)and"to" = 0xEc6557348085Aa57C72514D67070dC863C0a5A8cand "contract_address" = 0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580dgroup by 1union allselectdate_trunc('day', "evt_block_time") as day,