Query editor
WITH addresses as (SELECTDISTINCT(account) as "Addresses",amount / 10^18 as "Airdropped Amount"FROM uniswap."MerkleDistributor_evt_Claimed"),voting as (SELECT DISTINCT(voter) as voterFROM (SELECTDISTINCT(voter) as voterFROM uniswap_v2."GovernorAlpha_evt_VoteCast"UNION ALLSELECT DISTINCT(voter) as voterfrom uniswap_v3."GovernorBravoDelegate_evt_VoteCast") f),temp as (SELECTDISTINCT(delegate) as delegateFROM uniswap."UNI_evt_DelegateVotesChanged"LEFT JOIN addresses ON "Addresses" = delegate),t as (SELECT"Addresses",CASEWHEN voter IS NULL and delegate IS NOT NULL THEN 'Just Delegated'WHEN voter IS NOT NULL and delegate IS NULL THEN 'Just Voted'WHEN voter IS NOT NULL and delegate IS NOT NULL THEN 'Voted + Delegated'ELSE 'Did Nothing'END AS "Action"FROM addressesLEFT JOIN voting ON voter = "Addresses"LEFT JOIN temp ON delegate ="Addresses")SELECT"Action",COUNT("Action") as "# of Addresses"FROM tGROUP BY "Action"ORDER BY "Action"