mlhcomparing whales
    Updated 2022-07-16
    with flow_whale as (
    SELECT
    COUNT(distinct buyer) as whale_numbers,
    sum(volume) as volume,
    sum(sale_count)as sales_number
    FROM (
    select top 100
    buyer,
    count(DISTINCT tx_id) as sale_count,
    sum(price) as volume
    from flow.core.fact_nft_sales
    group by 1
    order by 3 desc
    )

    )
    , ethereum_whale as (
    SELECT
    COUNT(distinct buyer) as whale_numbers,
    sum(volume) as volume,
    sum(sale_count)as sales_number
    FROM (
    select top 100
    buyer_address as buyer,
    count(DISTINCT tx_hash) as sale_count,
    sum(price_usd) as volume
    from ethereum.core.ez_nft_sales
    where price_usd is not null and block_timestamp::date >= '2022-05-09'
    group by 1
    order by 3 desc
    )
    )
    , solana_whale as (
    SELECT
    COUNT(distinct buyer) as whale_numbers,
    sum(volume) as volume,
    Run a query to Download Data