Query editor
with mint_amount_by_type as(selectdate_trunc('day', evt_block_time) block_date,'Locked' mint_type,sum(amountFlex)/1e18 flex_amount,sum(amountOx)/1e18 ox_amountfromopnx_ethereum.FlexMinterV2_evt_MintedLockedWithFlexgroup by1union allselectdate_trunc('day', evt_block_time) block_date,'Unlocked' mint_type,sum(amountFlex)/1e18 flex_amount,sum(amountOx)/1e18 ox_amountfromopnx_ethereum.FlexMinterV2_evt_MintedUnlockedWithFlexgroup by1)select*frommint_amount_by_typeunion allselectblock_date,'Total' mint_type,sum(flex_amount) flex_amount,sum(ox_amount) ox_amountfrommint_amount_by_typegroup by1