Updated 2022-10-16
    (select pool_name as top_10_pool_name, count (distinct tx_hash) as number_of_transactions,
    count (distinct origin_from_address) as number_of_swappers,
    sum (amount_in_usd) as swap_amount, 'optimisim' as type
    from optimism.sushi.ez_swaps where amount_in_usd is not null
    group by 1
    order by 2 desc
    limit 5)
    union all
    (select pool_name as top_10_pool_name, count (distinct tx_hash) as number_of_transactions,
    count (distinct origin_from_address) as number_of_swappers,
    sum (amount_in_usd) as swap_amount, 'polygon' as type
    from polygon.sushi.ez_swaps where amount_in_usd is not null
    group by 1
    order by 2 desc
    limit 5)
    union ALL
    (select pool_name as top_10_pool_name, count (distinct tx_hash) as number_of_transactions,
    count (distinct origin_from_address) as number_of_swappers,
    sum (amount_in_usd) as swap_amount, 'arbitrum' as type
    from arbitrum.sushi.ez_swaps where amount_in_usd is not null
    group by 1
    order by 2 desc
    limit 5)


    Run a query to Download Data