OneDataAnalystMonthly new Stats
    Updated 2022-08-13
    WITH t1 AS
    (
    SELECT Month, Count(*) AS new_voters
    FROM (
    SELECT MIN(Date_trunc('month',PROPOSAL_START_TIME)) AS Month,
    VOTER
    FROM ethereum.core.ez_snapshot
    GROUP BY 2 )
    GROUP By 1
    ),

    t2 AS
    (
    SELECT Month as m2, Count(*) AS new_authors
    FROM (
    SELECT MIN(Date_trunc('month',PROPOSAL_START_TIME)) AS Month,
    PROPOSAL_AUTHOR
    FROM ethereum.core.ez_snapshot
    GROUP BY 2 )
    GROUP By 1
    ),

    t3 AS
    (
    SELECT Month as m3, Count(*) AS new_spaces
    FROM (
    SELECT MIN(Date_trunc('month',PROPOSAL_START_TIME)) AS Month,
    SPACE_ID
    FROM ethereum.core.ez_snapshot
    GROUP BY 2 )
    GROUP By 1
    )

    SELECT Month, new_voters, new_authors, new_spaces
    FROM t1
    Run a query to Download Data