FatemeTheLadyAccounts by number of posts copy
Updated 2023-03-08
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
›
⌄
-- forked from f61ba8d6-b7de-4179-a39d-6f79774a807d
with add_post_list as (
select
tx_hash,
block_timestamp,
signer_id,
node,
parse_json(node_data:main) as json_main
from near.social.fact_decoded_actions
join near.core.fact_transactions using(tx_hash)
where tx_status = 'Success' and block_timestamp::date<current_date
and node = 'post'
and json_main is not null
)
select
signer_id as "Account id",
count(distinct tx_hash) as "Number of Posts",
row_number() over(order by "Number of Posts" desc) as "rank"
from add_post_list
group by "Account id"
order by "Number of Posts" desc
limit 8
Run a query to Download Data