Query editor
with liquidation_event_raw as(selectevt_block_time,evt_tx_hash,case when _collateral=0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee then 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 else _collateral end as collateralAsset,_liquidatedCollateralAmount as liquidatedCollateralAmount,'v1'as version,'ethereum' as chainfrom aave_ethereum.LendingPool_evt_LiquidationCallwhere evt_block_time>timestamp '2020-01-01'union allselectevt_block_time,evt_tx_hash,collateralAsset,liquidatedCollateralAmount,'v2'as version,'ethereum' as chainfrom aave_v2_ethereum.LendingPool_evt_LiquidationCallwhere evt_block_time>timestamp '2020-01-01'union allselectevt_block_time,evt_tx_hash,collateralAsset,liquidatedCollateralAmount,'v2'as version,'polygon' as chainfrom aave_v2_polygon.LendingPool_evt_LiquidationCallwhere evt_block_time>timestamp '2020-01-01'union allselectevt_block_time,evt_tx_hash,collateralAsset,liquidatedCollateralAmount,'v2'as version,'avalanche_c' as chainfrom aave_v2_avalanche_c.LendingPool_evt_LiquidationCallwhere evt_block_time>timestamp '2020-01-01'union allselectevt_block_time,evt_tx_hash,collateralAsset,liquidatedCollateralAmount,'v3'as version,'ethereum' as chainfrom aave_v3_ethereum.Pool_evt_LiquidationCallwhere evt_block_time>timestamp '2020-01-01'