Query editor
-- replies by ALL fids that receive a reply from a third user-- NO FID restrictionWITH first_replies AS (SELECTDATE(timestamp) AS reply_date,fid AS replier_fid,hash AS reply_hash,root_parent_hashFROMdune.neynar.dataset_farcaster_castsWHEREparent_hash = root_parent_hashAND hash != root_parent_hashand "text" not like '%$%'),replies_to_first_replies AS (SELECTfr.reply_date,fr.reply_hash,COUNT(DISTINCT t.fid) AS third_party_repliesFROMfirst_replies frJOINdune.neynar.dataset_farcaster_casts t ON fr.reply_hash = t.parent_hashWHEREt.fid != fr.replier_fidAND t.fid != (SELECT fid FROM dune.neynar.dataset_farcaster_casts WHERE hash = fr.root_parent_hash)and "text" not like '%$%'GROUP BYfr.reply_date, fr.reply_hash)SELECTfr.reply_date,COUNT(fr.reply_hash) AS total_first_replies,COUNT(rtr.reply_hash) AS first_replies_with_third_party_response,ROUND(COUNT(rtr.reply_hash) * 100.0 / COUNT(fr.reply_hash), 2) AS percentageFROMfirst_replies frLEFT JOINreplies_to_first_replies rtr ON fr.reply_hash = rtr.reply_hashGROUP BYfr.reply_dateORDER BYfr.reply_date desclimit 450