Query editor
WITH follower_counts AS (SELECTfid,COUNT(target_fid) as follower_countFROMdune.neynar.dataset_farcaster_linksWHERE deleted_at IS NULLGROUP BY fid)SELECTf.fname,r.fid,fc.follower_count, COUNT(r.reaction_type) AS number_of_reactionsFROM dune.neynar.dataset_farcaster_reactions AS rJOIN dune.neynar.dataset_farcaster_fnames AS f ON f.fid = r.fidJOIN follower_counts AS fc ON fc.fid = r.target_fidGROUP BY f.fname, r.fid, fc.follower_countHAVING COUNT(r.reaction_type) > 50 AND fc.follower_count < 100ORDER BY COUNT(r.reaction_type) DESCLIMIT 30