Query editor
WITH farcaster_followers AS (-- Your existing query for followers with all their verified addressesWITH followers_with_addresses AS (SELECTu.fid,u.fname AS username,u.verified_addresses,COUNT(DISTINCT c.hash) as reply_countFROMdune.neynar.dataset_farcaster_links fJOINdune.neynar.dataset_farcaster_profile_with_addresses u ON f.target_fid = u.fidLEFT JOINdune.neynar.dataset_farcaster_casts cON c.fid = u.fidAND c.parent_fid = 9933WHEREf.fid = 9933AND f.type = 'follow'GROUP BYu.fid, u.fname, u.verified_addresses),expanded_addresses AS (SELECTfid,username,reply_count,addrFROM followers_with_addressesCROSS JOIN UNNEST(CAST(json_parse(verified_addresses) AS ARRAY(VARCHAR))) AS t(addr)WHERE LENGTH(addr) = 42AND SUBSTR(addr, 1, 2) = '0x'AND REGEXP_LIKE(addr, '^0x[0-9a-fA-F]{40}$'))SELECTfid,username,reply_count,LOWER(SUBSTR(addr, 3)) AS eth_address_no_0x -- Remove 0x prefix for comparisonFROM expanded_addresses),-- All m00n token transfers with proper filteringm00n_transfers AS (SELECTblock_time,tx_hash,LOWER(to_hex(bytearray_substring(topic1, 13, 20))) as from_address,LOWER(to_hex(bytearray_substring(topic2, 13, 20))) as to_address,bytearray_to_uint256(data) / 1e18 AS amount_tokensFROM monad.logsWHERE contract_address = 0x22cd99ec337a2811f594340a4a6e41e4a3022b07AND block_time >= TIMESTAMP '2025-11-26 00:00:00'AND data IS NOT NULLAND bytearray_to_uint256(data) < 1e36 -- Filter out obviously wrong amounts (< 1e18 raw tokens)AND bytearray_to_uint256(data) > 0 -- No zero transfers),-- Identify claims (look for the specific tier amounts)