Query editor
withvoters as (selectCASE CAST(voter as varchar)WHEN LOWER('0x329c54289ff5d6b7b7dae13592c6b1eda1543ed4') then 'ACI'WHEN LOWER('0x62a43123FE71f9764f26554b3F5017627996816a') then 'Flipside'WHEN LOWER('0x13BDaE8c5F0fC40231F0E6A4ad70196F59138548') then 'Michigan'WHEN LOWER('0xB83b3e9C8E3393889Afb272D354A7a3Bd1Fbcf5C') then 'LBS Blockchain'WHEN LOWER('0xB933AEe47C438f22DE0747D57fc239FE37878Dd1') then 'Wintermute'WHEN LOWER('0x1855f41B8A86e701E33199DE7C25d3e3830698ba') then 'Keyrock'WHEN LOWER('0xea172676E4105e92Cc52DBf45fD93b274eC96676') then 'StableLab'WHEN LOWER('0xA06c2e5BB33cd6718b08EC9335081Cbba62861f7') then 'TokenLogic'WHEN LOWER('0xb0aeC0a9546dEf648304A203B5923241578DFE25') then 'OnChainCoop'WHEN LOWER('0x8872fd5F66728Fc7cF01898199e162ee26f47BA8') then 'DAOStewards'WHEN LOWER('0x17296956b4E07Ff8931E4ff4eA06709FaB70b879') then 'Curia'WHEN LOWER('0xE4594A66d9507fFc0d4335CC240BD61C1173E666') then 'HKUST'WHEN LOWER('0xdC1F98682F4F8a5c6d54F345F448437b83f5E432') then 'Blockchain@Columbia'WHEN LOWER('0x43D3938Ebd74106e2d177f9A304C1E9f914f2b52') then 'BristolBlockchain'WHEN LOWER('0xA5dF0cf3F95C6cd97d998b9D990a86864095d9b0') then 'Blockworkresearch'WHEN LOWER('0x732a4B05C31da514e30411d79E3E17624579B848') then 'Lucasvo.eth'WHEN LOWER('0x3Cbded22F878aFC8d39dCD744d3Fe62086B76193') then 'ACI Deployer'WHEN LOWER('0x57ab7ee15cE5ECacB1aB84EE42D5A9d0d8112922') then 'ACI.eth'else 'other'END as voting,voter,evt_tx_hash,id,evt_block_timefromaave_ethereum.AaveGovernanceV2_evt_VoteEmittedwhere evt_block_time > timestamp '{{date_start}}'and evt_block_time < timestamp '{{date_end}}'),participation as (selectvoter,count(distinct id) as proposals_participatedfromaave_ethereum.AaveGovernanceV2_evt_VoteEmittedwhereevt_block_time > timestamp '{{date_start}}'and evt_block_time < timestamp '{{date_end}}'group by1order by2 desc),total_proposal as (selectcount(distinct id) as total_proposalsfromaave_ethereum.AaveGovernanceV2_evt_VoteEmittedwhere evt_block_time > timestamp '{{date_start}}'and evt_block_time < timestamp '{{date_end}}'),base as (select