Query editor
WITH tokens AS (SELECT 0x0000000000000000000000000000000000000000 AS address, 'ETH' AS symbol UNION ALLSELECT 0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73, 'WETH' UNION ALLSELECT 0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168, 'USDG' UNION ALLSELECT 0x020bfC650A365f8BB26819deAAbF3E21291018b4, 'CASHCAT' UNION ALLSELECT 0x39dBED3a2bd333467115dE45665cC57F813C4571, 'PONS' UNION ALLSELECT 0x77b0AA38451ccDC1b42587E2f80B9879A7f82356, 'DOGBULL' UNION ALLSELECT 0xCA9c78Dd337A67F6e0077F65F5E9218719d30eDf, 'NETNET'),all_univ4 as (select contract_address, currency0, currency1, fee, hooks, id, tickSpacing, evt_block_timefrom uniswap_v4_robinhood.poolmanager_evt_initializewhere contract_address = 0x8366a39cc670b4001a1121b8f6a443a643e40951and currency0 in (select address from tokens)and currency1 in (select address from tokens)),all_swaps as (select id, count(*) as swaps_amountfrom uniswap_v4_robinhood.poolmanager_evt_swapwhere contract_address = 0x8366a39cc670b4001a1121b8f6a443a643e40951group by id)select pools.*, swaps.swaps_amountfrom all_univ4 poolsleft join all_swaps swapson swaps.id = pools.idwhere swaps_amount > 1000order by swaps_amount desc