Afonso_Diaz2023-06-16 10:38 PM
    Updated 2023-06-16
    select
    'Near' as chain,
    count(distinct tx_hash) as proposals
    from near.core.fact_actions_events_function_call a
    left outer join near.core.dim_address_labels
    on address = receiver_id
    where method_name = 'add_proposal'
    and label_type = 'dao'
    and creator = 'Near Foundation'

    union all

    select
    'Cosmos' as chain,
    count(distinct tx_id) as proposals
    from cosmos.core.fact_governance_submit_proposal
    where tx_succeeded = 1
    group by 1

    union all

    select
    'Osmosis' as chain,
    count(distinct tx_id) as proposals
    from osmosis.core.fact_governance_submit_proposal
    where tx_succeeded = 1
    group by 1
    Run a query to Download Data