Query editor
with tmp as (selectblock_date as dt,sum(balance_change)/1e9 as daily_revenue_feefrom solana.account_activityWHERE tx_successAND address = '6wX3nH2FFHhARaS3aSWTbLEwUcKaVB3tHsnzwThwWfiF'AND balance_change > 0group by 1)select*,casewhen daily_revenue_fee = 0.05 then 'bundler launch'when daily_revenue_fee = 0.01 * (sum(daily_revenue_fee) over(order by dt asc)) then 'trading'when daily_revenue_fee = 0.008 then 'distribution'when daily_revenue_fee = 0.001 then 'consolidation'else nullend as revenue_category,sum(daily_revenue_fee) over(order by dt asc) as total_revenue_feefrom tmporder by dt desc;