Query editor
with meso as (selecttx_to as address,min(block_time) as first_meso_active_atfrom dune.meso_team.result_solana_onchain_float_transactionsgroup by 1)selectt.to_owner as meso_wallet_address,min_by(from_owner, t.block_time) as first_funded_by_address,min_by(cex_name, t.block_time) as first_funded_by_cex_name,round(min_by(amount_usd, t.block_time),2) as first_funded_amount_usd,min_by(symbol, t.block_time) as first_funded_token_symbol,min_by(token_mint_address, t.block_time) as first_funded_token_address,count(distinct cex_name) cex_used_count,array_agg(distinct cex_name) filter(where cex_name is not null) as cex_used_names,round(sum(amount_usd),2) as cex_funding_amount_usd,count(tx_id) as cex_funding_count,extract(day from max(first_meso_active_at) - min(t.block_time)) as days_active_before_meso,count(distinct cex_name) filter(where t.block_time < first_meso_active_at) as pre_meso_cex_used_count,round(sum(amount_usd) filter(where t.block_time < first_meso_active_at),2) as pre_meso_cex_funding_amount_usd,count(distinct tx_id) filter(where t.block_time < first_meso_active_at) as pre_meso_cex_funding_countfrom tokens_solana.transfers tjoin meso ms on ms.address = to_ownerleft join cex_solana.addresses cex on cex.address = from_ownergroup by 1