Query editor
WITH user_v3 AS (SELECT'Ethereum' AS chain,onBehalfOf AS user_addressFROM aave_v3_ethereum.Pool_evt_SupplyUNION ALLSELECT'Polygon' AS chain,onBehalfOf AS user_addressFROM aave_v3_polygon.Pool_evt_SupplyUNION ALLSELECT'Optimism' AS chain,onBehalfOf AS user_addressFROM aave_v3_optimism.Pool_evt_SupplyUNION ALLSELECT'Arbitrum' AS chain,onBehalfOf AS user_addressFROM aave_v3_arbitrum.L2Pool_evt_SupplyUNION ALLSELECT'Avalanche' AS chain,onBehalfOf AS user_addressFROM aave_v3_avalanche_c.Pool_evt_SupplyUNION ALLSELECT'Fantom' AS chain,onBehalfOf AS user_addressFROM aave_v3_fantom.Pool_evt_SupplyUNION ALLSELECT'Base' AS chain,onBehalfOf AS user_addressFROM aave_v3_base.L2Pool_evt_Supply)SELECTchain,COUNT(DISTINCT user_address) AS usersFROM user_v3GROUP BY 1ORDER BY 2 DESC