Query editor
with t as (select case when token_mint_address = 'GyWgeqpy5GueU2YbkE8xqUeVEokCMMCEeUrfbtMw6phr' then 'BUIDL' else 'JLTXX' end fund,action, amount_display u, block_time ts, from_owner, to_ownerfrom tokens_solana.transferswhere block_date >= date '2026-04-01' and block_date < date '2026-11-01'and token_mint_address in ('GyWgeqpy5GueU2YbkE8xqUeVEokCMMCEeUrfbtMw6phr', 'J4cTuCH6frt4AnEmKfMS2k8hsUf7K94PV62sjUJno8Cz')), top as (select fund tfund, to_owner top_to, sum(u) recv, row_number() over (partition by fund order by sum(u) desc) rk from t where action = 'transfer' group by 1, 2)select t.fund, t.action, count(*) n, round(sum(t.u)/1e6, 1) usd_m, count_if(day_of_week(t.ts) in (6,7)) weekend_n,round(coalesce(sum(case when day_of_week(t.ts) in (6,7) then t.u end), 0)/1e6, 1) weekend_usd_m,count(distinct t.to_owner) receivers, count(distinct t.from_owner) senders, round(approx_percentile(t.u, 0.5), 0) median_usd,max(tp.top_to) top_receiver, max(round(tp.recv/1e6, 1)) top_receiver_usd_mfrom t left join top tp on tp.tfund = t.fund and tp.rk = 1 and t.action = 'transfer'group by 1, 2 order by 1, 2