30na_pnear welcome 3
    Updated 2022-07-20
    with address as
    ((select PERMISSION:FunctionCall:receiver_id as id,
    count(*)
    from flipside_prod_db.mdao_near.actions_events_addkey
    where PERMISSION:FunctionCall:receiver_id is not null
    and block_timestamp >= current_date - 90
    group by 1
    order by 2 desc
    limit 20)
    )


    select date_trunc('day', block_timestamp),
    PERMISSION:FunctionCall:receiver_id as addy,
    count(*) as trans
    from flipside_prod_db.mdao_near.actions_events_addkey
    where PERMISSION:FunctionCall:receiver_id is not null
    and block_timestamp >= current_date - 90
    and PERMISSION:FunctionCall:receiver_id in (select id from address)
    group by 1,2
    Run a query to Download Data