Query editor
----------------------------------------------------------------------------------------------------- Table: op_optimism.GovernanceToken_evt_DelegateVotesChanged d---- Columns:-- ========================-- contract_address-- evt_tx_hash-- evt_tx_from-- evt_tx_to-- evt_index-- evt_block_time-- evt_block_number-- evt_block_date-- delegate-- previousBalance-- newBalance---- Description:-- ========================---- This table is to track delegate totals and percentages referencing-- optimism airdrop 4, to see how power has changed and distributed---------------------------------------------------------------------------------------------------with-- 199,940 delegatesdelegate_power_before_airdrop as (selectdelegate,round(newBalance, 2) as power_beforefrom (selectdelegate,cast(newBalance as double) / pow(10,18) as newBalance,evt_block_number,evt_index,evt_block_time,dense_rank() over (partition by delegateorder byevt_block_number desc,evt_index desc) AS evt_rankfrom op_optimism.GovernanceToken_evt_DelegateVotesChangedwhere evt_block_time < cast('2024-02-20' as timestamp)and contract_address = 0x4200000000000000000000000000000000000042)where evt_rank = 1),-- 23,293 delegatesdelegate_power_after_airdrop as (selectdelegate,round(newBalance, 2) as power_afterfrom (selectdelegate,