Query editor
withtoken_info as (SELECTa.call_tx_id AS tx,a.call_block_time,a.account_owner AS account_owner,b.symbol,b.decimals,a.amount/POWER(10, b.decimals) supplyFROM spl_token_solana.spl_token_call_mintTo ajoin (select token_mint_address,symbol,decimals from tokens_solana.fungible where token_mint_address ='{{token_address}}') b on a.account_mint = b.token_mint_addresswhere a.account_mint ='{{token_address}}'--OR account_owner /* token creator */ = '4tvoTsEZWebbzzJCigmatMCrp3LkWJZpQXHjNJH3AnE2'),initial_transfers_lvl_1 as (selecta.to_owner as to_ownerfrom tokens_solana.transfers ajoin token_info b on a.from_owner = b.account_ownerwherea.from_owner = (select account_owner from token_info )anda.token_mint_address = '{{token_address}}'and a.to_owner !='5Q544fKrFoe6tsEbD7S8EmxGTJYAKtTVhAW5Q5pge4j1' -- to raydium pull-- raydium adress 5Q544fKrFoe6tsEbD7S8EmxGTJYAKtTVhAW5Q5pge4j1),initial_transfers_lvl_2 as (selecta.to_owner as to_ownerfrom tokens_solana.transfers ajoin initial_transfers_lvl_1 b on a.from_owner = b.to_ownerwherea.from_owner in (select to_owner from initial_transfers_lvl_1 )anda.to_owner != (select account_owner from token_info )anda.token_mint_address = '{{token_address}}'and a.to_owner !='5Q544fKrFoe6tsEbD7S8EmxGTJYAKtTVhAW5Q5pge4j1' -- to raydium pull-- raydium adress 5Q544fKrFoe6tsEbD7S8EmxGTJYAKtTVhAW5Q5pge4j1),table_final as (select account_owner,'creator' as lvl from token_infounion allselect to_owner as account_owner,'got from creator' as lvl from initial_transfers_lvl_1union allselect to_owner as account_owner,'got from 1st receivers' as lvl from initial_transfers_lvl_2)selectcase when lvl is null and n_buy_trades = 0 then ' 0 buy trades/transfered by someone' else lvl end as lvl,trader_id,n_total_trades,n_sell_trades