mo1152023-03-08 01:46 AM
    Updated 2023-03-08
    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