mo1152023-03-08 01:46 AM
Updated 2023-03-08
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
›
⌄
with actions as (
select
NODE_DATA,
case
when NODE_DATA like '{"follow%' then 'follow'
when NODE_DATA like '{"comment%' then 'comment'
when NODE_DATA like '{"like%' then 'like'
when NODE_DATA like '{"post%' then 'post'
else null end as action
from near.social.fact_decoded_actions
)
select action, NODE_DATA:follow as acount
from actions
where action = 'follow'
limit 5
Run a query to Download Data