Query editor
-- Step 1: Filter and extract relevant tx_hash early onWITH filtered_logs AS (SELECTl.block_time,l.tx_hash,l.topic1FROMtron.logs lJOIN(SELECT tx_hashFROM tron.logs_decodedWHERE event_name = 'AddedBlackList') blONl.tx_hash = bl.tx_hashWHEREl.topic0 = from_hex('42e160154868087d6bfdc0ca23d96a1c1cfa32f1b72ba9ba27b69b98a0d819dc')-- AND-- DATE(l.block_time) = current_date),-- TODO: Decode topic1 to Tron addressdecoded_addresses AS (SELECTblock_time,tx_hash,topic1FROMfiltered_logs)-- Step 3: Final selectionSELECTblock_time,tx_hash,topic1FROMdecoded_addresses;