Query editor
WITH follower_counts AS (-- Counting the number of followers for each fidSELECTtarget_fid AS fid,COUNT(*) AS number_of_followersFROMdune.neynar.dataset_farcaster_linksWHEREtype = 'follow'GROUP BYtarget_fid),cast_counts AS (-- Counting the number of casts for each fidSELECTparent_fid AS fid,COUNT(*) AS number_of_castsFROMdune.neynar.dataset_farcaster_castsGROUP BYparent_fid),mention_counts AS (-- Counting the number of mentions for each fidSELECTfid,COUNT(*) AS number_of_mentionsFROM (SELECTfid,unnested_mentionFROMdune.neynar.dataset_farcaster_castsCROSS JOIN UNNEST(mentions) AS t(unnested_mention)) mentionsGROUP BYfid),like_counts AS (-- Counting the number of likes for each fidSELECTtarget_fid AS fid,COUNT(*) AS number_of_likesFROMdune.neynar.dataset_farcaster_reactionsWHEREreaction_type = 1GROUP BYtarget_fid),recast_counts AS (-- Counting the number of recasts for each fidSELECTtarget_fid AS fid,COUNT(*) AS number_of_recastsFROMdune.neynar.dataset_farcaster_reactionsWHEREreaction_type = 2GROUP BY