cheeyoung-kekRealms Dao
    Updated 2022-08-17
    select
    case
    when realms_id ='DPiH3H3c7t47BMxqTxLsuPQpEC6Kne8GA9VXbxpnZxFE' then 'Mango Dao'
    when realms_id = 'By2sVGZXwfQq6rAiAM3rNPJ9iQfb5e2QhnF4YjJ4Bip' then 'Grape Dao'
    when realms_id = 'FiG6YoqWnVzUmxFNukcRVXZC51HvLr6mts8nxcm7ScR8' then 'Psy Finance'
    when realms_id = '7sf3tcWm58vhtkJMwuw2P3T6UBX7UE5VKxPMnXJUZ1Hn' then 'Solend'
    when realms_id = 'B1CxhV1khhj7n5mi5hebbivesqH9mvXr5Hfh2nD2UCh6' then 'MonkeDAO'
    when realms_id = 'Cdui9Va8XnKVng3VGZXcfBFF6XSxbqSi2XruMc7iu817' then 'Metaplex Genesis'
    when realms_id = '2sEcHwzsNBwNoTM1yAXjtF1HTMQKUAXf8ivtdpSpo9Fv' then 'Metaplex Foundation'
    when realms_id = '3MMDxjv1SzEFQDKryT7csAvaydYtrgMAc3L9xL9CVLCg' then 'Serum Dao'
    when realms_id = '6orGiJYGXYk9GT2NFoTv2ZMYpA6asMieAqdek4YRH2Dn' then 'The Imperium of Rain'
    when realms_id = '7oB84bSuxv9AH1iRdMp5nFLwpQApv8Yo9s1gGmDkHtSP' then 'Synthetify Dao'
    else null
    end as Daos,
    count(distinct voter) as tx_member,
    count(distinct tx_id) as tx_count,
    count(distinct proposal) as tx_proposal,
    tx_count/tx_member as average_votes_per_member,
    tx_count/tx_proposal as average_proposal,
    row_number() over ( order by tx_count asc) as rank

    from solana.core.fact_proposal_votes
    where GOVERNANCE_PLATFORM='realms'
    and SUCCEEDED='TRUE'
    and Daos is not null
    group by 1

    Run a query to Download Data