Query editor
with question_tx as (select t."from" as creator, t.nonce as question_nonce,try(from_utf8(varbinary_substring(l.data, 97,cast(varbinary_to_uint256(varbinary_substring(l.data, 65, 32)) as bigint)))) as event_namefrom bnb.logs ljoin bnb.transactions t on t.hash = l.tx_hashwhere l.contract_address = 0xf21b2d4f8989b27f732e369907f25f0e8d95fe62and l.topic0 = 0x9a4e51c055a131a450c9489fe292ab1838b43d5cf1101aca669f9d93c0495f60and l.block_date >= date '2026-02-01' and t.block_date >= date '2026-02-01'),creation_tx as (select ct.address as event_address, t."from" as creator, t.nonce as create_nonce,try(from_utf8(t.data)) as calldata_utf8from bnb.creation_traces ctjoin bnb.transactions t on t.hash = ct.tx_hashwhere t.block_date >= date '2026-02-01'and ct."from" in (0xf21b2d4f8989b27f732e369907f25f0e8d95fe62, 0x8fe93361d2b8b9519c4d20d47a319288feec9072)),question_v2 as (select ct.address as event_address,regexp_extract(try(from_utf8(l.data)), '([A-Za-z][A-Za-z0-9 ,./()?%-]{12,160})', 1) as event_namefrom bnb.creation_traces ctjoin bnb.logs l on l.tx_hash = ct.tx_hashwhere ct."from" = 0x8fe93361d2b8b9519c4d20d47a319288feec9072and l.contract_address = 0x8fe93361d2b8b9519c4d20d47a319288feec9072and l.topic0 = 0x1625976c30303d3e3c54734a7cbe4af6e06db162133ccf67eb0c16a35a4e879cand l.block_date >= date '2026-02-01'),ranked_name as (select c.event_address, q.event_name,row_number() over (partition by c.event_address order by q.question_nonce desc) as rnfrom creation_tx cleft join question_tx q on c.creator = q.creator and q.question_nonce < c.create_nonce),event_map as (select r.event_address,coalesce(nullif(trim(v2.event_name), ''), nullif(trim(r.event_name), ''), 'Unknown') as event_name,c.calldata_utf8from ranked_name rleft join question_v2 v2 on v2.event_address = r.event_addressjoin creation_tx c on c.event_address = r.event_addresswhere r.rn = 1),event_category as (select event_address, event_name,coalesce(casewhen regexp_like(calldata_utf8, 'Prediction Platform') then 'Prediction Platform'when regexp_like(calldata_utf8, 'Geopolitics') then 'Geopolitics'when regexp_like(calldata_utf8, 'Economy') then 'Economy'when regexp_like(calldata_utf8, 'Finance') then 'Finance'when regexp_like(calldata_utf8, 'Culture') then 'Culture'when regexp_like(calldata_utf8, 'Sports') then 'Sports'when regexp_like(calldata_utf8, 'Crypto') then 'Crypto'when regexp_like(calldata_utf8, 'Games') then 'Games'when regexp_like(calldata_utf8, 'Nerd') then 'Nerd'when regexp_like(calldata_utf8, '\bAI\b') then 'AI'when regexp_like(calldata_utf8, '\bPrice\b') then 'Price'else nullend,