Query editor
with params as (selectdate_add('day', -16, current_date) as start_date,date_add('day', -1, current_date) as end_date,cast(2500 as double)as leader_revenue_bucket_lamports,cast(10000 as double)as vote_fee_bucket_lamports,cast(100000 as double)as burn_bucket_lamports),all_txs as (selectt.block_date,t.block_slot,t.id as tx_id,'non_vote' as tx_type,t.fee as current_fee_lamports,t.cost_units as cost_unit_consumed,t.required_signaturesfrom solana.transactions tcross join params pwhere t.block_date >= p.start_dateand t.block_date < p.end_dateand t.fee is not nulland t.cost_units is not nulland t.required_signatures is not nullunion allselectt.block_date,t.block_slot,t.id as tx_id,'vote' as tx_type,t.fee as current_fee_lamports,t.cost_units as cost_unit_consumed,t.required_signaturesfrom solana.vote_transactions tcross join params pwhere t.block_date >= p.start_dateand t.block_date < p.end_dateand t.fee is not nulland t.cost_units is not nulland t.required_signatures is not null),fee_components as (