Query editor
WITH pool_ids_eth AS (SELECT name,poolId as lbp_idFROM balancer_v2_ethereum.CopperProxy_evt_PoolCreatedUNION ALLSELECT name,poolId as lbp_idFROM balancer_v2_ethereum.CopperProxyV2_evt_PoolCreatedUNION ALLSELECT name,poolId as lbp_idFROM fjord_ethereum.FjordLbpProxyV6_evt_PoolCreatedUNION ALLSELECT name,poolId as lbp_idFROM query_2972525WHERE pool IN ('0x327c7cb1ad72216ac90988fae4960bc2d5ef9738','0x13c7d3b51c304add517c40a39d8a85b0cdea605f','0xf2b7794b89ea4fd2abfe66dcb6529a27c03d429e','0x89d4a55ca51192109bb85083ff7d9a13ab24c8a1','0x6d68d7b0ca469bd1171f81a895e649d86d523c20','0xc79b9b75cd0e9567a000eeb8f6e46b3d074ac38c','0xa30ac4a3bf3f680a29eb02238280c75acbb89d6d','0xb61bef0cf17b25542c061ed861f270d5ac88a6b7','0xd153e1de63b478213b7b62bf47dcc4099608b1ae','0x9c4626fcacc114be8134e655cd6a93d2987863dd','0x4ddf308520864ecfc759c49e72acfc96c023ed90','0x68184be6773816f753192cece797ef67841ff1a7','0x656201f721012dda23ab7544021d79ca28b756d9','0x3cbbbe0d1a6284f82e88a06b55641ee1146cd540','0x6a06e2a5cb13fcd54b28f3f90144e64952a3a0b4','0x4eebc19e5f29dec3dea07f66b9e707afc8f28c06','0x6aa8a7b23f7b3875a966ddcc83d5b675cc9af54b','0x064dd1c629731e31a944aa434acde33f3b7eae99','0x9234f3a62154f7fcda5346c35d8d53f608651864')),volumes_eth AS (SELECTevt_tx_hash as hash,tokenOut as token_bought_address_,tokenIn as token_sold_address_,poolId as lbp_idFROM balancer_v2_ethereum.Vault_evt_SwapWHERE poolId IN (SELECT lbp_id FROM pool_ids_eth)),------------------ ARBITRUMpool_ids_arb AS(SELECT name,poolId as lbp_idFROM fjord_arbitrum.FjordLbpProxyV6_evt_PoolCreatedUNION ALLSELECT name,poolId as lbp_idFROM fjord_arbitrum.CopperProxyV1_evt_PoolCreatedUNION ALL