Updated 2023-06-24
    -- forked from 01 @ https://flipsidecrypto.xyz/edit/queries/bb68fbcc-21c9-4e37-a8ee-0206ecfa73f6

    with

    horizon AS
    (
    SELECT
    a.signer_id AS address
    FROM
    near.horizon.fact_decoded_actions a
    WHERE
    a.method_name = 'add_project'
    )
    ,
    od AS
    (
    SELECT
    b.address AS address
    , count( DISTINCT a.tx_hash ) AS transaction
    FROM
    near.core.fact_transactions a
    JOIN
    horizon b
    ON a.tx_receiver = b.address
    WHERE
    a.block_timestamp::date >= dateadd( 'month' , -24 , current_date )
    GROUP BY
    1
    ORDER BY
    2 DESC LIMIT 10
    )

    SELECT
    date_trunc( '{{period}}' , a.block_timestamp ) AS date

    , split_part( b.address , '.' , 1 ) AS projects
    Run a query to Download Data