drone-mostafaUntitled Query
    Updated 2022-07-10
    with lst_top as (
    select top 20
    SIGNERS[0] as wallet
    ,(select min( LABEL) from solana.core.dim_labels where ADDRESS=SIGNERS[0]) as name
    ,sum(FEE/pow(10,9)) as amount_fee
    from solana.core.fact_transactions
    where block_timestamp::date>='2022-01-01'
    and SUCCEEDED=false
    group by 1,2
    order by amount_fee DESC
    )
    select
    block_timestamp::date as day
    ,SIGNERS[0] as wallet
    ,sum(FEE/pow(10,9)) as amount_fee
    from solana.core.fact_transactions
    where block_timestamp::date>='2022-01-01'
    and SUCCEEDED=false
    and wallet in (select wallet from lst_top)
    group by 1,2
    order by 1
    Run a query to Download Data