Query editor
with t as (selectb.symbol || '-' || a.project as symbol_project,a.source_chain,split_part(a.primary_key, '-', 1) as src_eid,lower(split_part(a.primary_key, '-', 3)) as src_oapp,lower(b.token) as token,a.ts_source,coalesce(b.usd_value, 0) as usd_valuefrom layerzero.messages ajoin layerzero.transfers b on a.primary_key = b.messages_foreign_keywhere b.type_transfer = 'oft' and b.symbol <> 'unknown'and a.ts_source < timestamp '2026-09-15 00:00:00 UTC'),c as (select symbol_project, source_chain, src_eid, src_oapp, token,min(ts_source) as first_seen,count_if(ts_source >= timestamp '2026-06-17 00:00:00 UTC') as msgs_90d,sum(case when ts_source >= timestamp '2026-06-17 00:00:00 UTC' then usd_value else 0 end) as usd_90dfrom t group by 1,2,3,4,5)select * from cwhere first_seen >= timestamp '2026-06-17 00:00:00 UTC'order by usd_90d desc