Query editor
WITHprofile_creation AS (SELECTblock_time AS profile_block_time,date_trunc('day', block_time) as profile_block_day,block_number AS profile_block_number,varbinary_substring(topic1, 13, 40) as profile_address,profile_names.channel_name AS profile_name,'https://www.alfafrens.com/profile/' || CAST(varbinary_substring(topic1, 13, 40) AS VARCHAR) as profile_urlFROM base.logsLEFT JOIN dune.superfluid_hq.dataset_af_channel_names profile_namesON profile_names.channel_address = varbinary_substring(topic1, 13, 40)WHERE topic0 = 0x8967dcaa00d8fcb9bb2b5beff4aaf8c020063512cf08fbe11fec37a1e3a150f2),channel_creation AS (SELECTblock_time AS channel_block_time,date_trunc('day', block_time) as channel_block_day,block_number AS channel_block_number,varbinary_substring(topic2, 13, 40) as owner_address,varbinary_substring(topic3, 13, 40) as channel_address,channel_names.channel_name as channel_name,'https://www.alfafrens.com/channel/' || CAST(varbinary_substring(topic3, 13, 40) AS VARCHAR) as channel_urlFROM base.logs logsLEFT JOIN dune.superfluid_hq.dataset_af_channel_names channel_namesON channel_names.channel_address = varbinary_substring(topic3, 13, 40)WHERE topic0 = 0x5494b1fc852316511252ddc42cf54d48c8df25db65a6979b2481d55c6fb241d4)SELECT *FROM profile_creationLEFT JOIN channel_creation on profile_address = owner_addressORDER BY profile_block_time