PapasotAlgorand Governance bounty
    Updated 2022-01-11
    WITH exi as(SELECT
    distinct address as users
    from algorand.account
    where account_closed='FALSE'),
    gov as (select
    distinct sender as users
    from algorand.payment_transaction
    where receiver in ('GULDQIEZ2CUPBSHKXRWUW7X3LCYL44AI5GGSHHOQDGKJAZ2OANZJ43S72U',
    '57QZ4S7YHTWPRAM3DQ2MLNSVLAQB7DTK4D7SUNRIEFMRGOU7DMYFGF55BY')),

    gov1 as (select distinct sender as users
    from algorand.payment_transaction
    where receiver in ('GULDQIEZ2CUPBSHKXRWUW7X3LCYL44AI5GGSHHOQDGKJAZ2OANZJ43S72U')),

    gov2 as (select distinct sender as users
    from algorand.payment_transaction
    where receiver in ('57QZ4S7YHTWPRAM3DQ2MLNSVLAQB7DTK4D7SUNRIEFMRGOU7DMYFGF55BY'))
    select
    'gov' as type,
    count(distinct exi.users) as total
    from exi
    join gov
    on exi.users=gov.users
    union

    select
    'gov1' as type,
    count(distinct exi.users) as total
    from exi join gov1 on exi.users=gov1.users

    union

    select
    Run a query to Download Data