0xBlackfishBonk for Z-Pass Season 2
    Updated 2024-01-12
    with
    tab1 as (
    select
    tx_from as the_address,
    sum(-amount) as net_amt
    from solana.core.fact_transfers
    where
    block_timestamp >= '2022-12-01'
    and mint = 'DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263'
    group by 1

    union all

    select
    tx_to as the_address,
    sum(amount) as net_amt
    from solana.core.fact_transfers
    where
    block_timestamp >= '2022-12-01'
    and mint = 'DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263'
    group by 1

    union all

    select
    '9AhKqLR67hwapvG8SA2JFXaCshXc9nALJjpKaHZrsbkw' as the_address,
    power(10, 14) as net_amt
    ),

    tab2 as (
    select
    the_address as address,
    sum(net_amt) as net_amt
    from tab1
    group by 1
    having sum(net_amt) >= power(10, 6)
    QueryRunArchived: QueryRun has been archived