Query editor
WITH date_series AS (SELECTDATE_TRUNC( 'day', CAST(day AS DATE) ) AS event_dayFROMUNNEST(sequence(CAST('2021-09-23' AS DATE),CURRENT_DATE,INTERVAL '1' DAY)) AS t(day)),profile AS (SELECTprofile.fid,profile.fname,profile.display_name,profile.avatar_url,ROW_NUMBER() OVER (PARTITION BY profile.fid ORDER BY LENGTH(profile.verified_addresses) DESC NULLS LAST) AS rnFROM dune.neynar.dataset_farcaster_profile_with_addresses profile),display_names AS (SELECTfid,value AS display_name,timestamp,ROW_NUMBER() OVER (PARTITION BY fid ORDER BY timestamp DESC) AS rnFROMdune.neynar.dataset_farcaster_user_dataWHEREtype = 2),avatar_urls AS (SELECTfid,value AS avatar_url,timestamp,ROW_NUMBER() OVER (PARTITION BY fid ORDER BY timestamp DESC) AS rnFROMdune.neynar.dataset_farcaster_user_dataWHEREtype = 1),users AS (SELECTfid,MIN( DATE_TRUNC('day', timestamp) ) AS first_cast_timestampFROMdune.neynar.dataset_farcaster_castsWHEREdeleted_at IS NULLAND parent_hash IS NULLGROUP BYfidHAVINGCOUNT(*) >= 3),daily_users AS (SELECTd.event_day,