Query editor
SELECTcontract_address,blockchain,ARRAY_AGG(DISTINCT data_source) AS data_sources -- Aggregate sources for each unique address/chainFROM (-- Source 1: Allo V1 Round Factory EventsSELECTroundAddress as contract_address,chain as blockchain,'allo_v1_roundfactory' as data_sourceFROM allo_protocol_multichain.roundfactory_evt_roundcreatedWHERE chain = 'arbitrum' -- Filter early for ArbitrumUNION ALL-- Source 2: Allo Capital Curated ListSELECTcontract_address,chain as blockchain,'allo_capital_dataset' as data_sourceFROM dune.allo_capital.dataset_allo_contracts_to_trackWHERE chain = 'arbitrum' -- Filter early for ArbitrumUNION ALL-- Source 3: Allo V2 Pool Created EventsSELECTstrategy AS contract_address, -- Assuming 'strategy' is the address to monitor outflows fromchain AS blockchain,'allo_v2_poolcreated' as data_sourceFROM allo_protocol_v2_multichain.allo_evt_poolcreatedWHERE chain = 'arbitrum' -- Filter early for Arbitrum) AS all_sources-- WHERE blockchain = 'arbitrum' -- Apply final filter (redundant if filtered above, but safe)GROUP BY 1, 2 -- Group to get distinct address/blockchain pairs and aggregate sources