Query editor
with price_feed_ids as (selectidentifier, category, display_symbol, from_hex("hash") as "hash"FROMquery_4308215), pyth_contracts as (selectchain, contract_address, chain_typeFROMquery_4860280where chain_type = 'evm'), final_logs as (select distinctpcc.chain_type, pcc.chain, coalesce(ids.identifier, 'Unknown') as identifier, coalesce(ids.category, 'Unknown') as category, coalesce(ids.display_symbol, 'Unknown') as display_symbol, log.block_time, log.block_number, log.tx_hash, log.topic0 as price_id, log.index, log.tx_indexfrom evms.logs loginner join pyth_contracts pcc on log.contract_address = pcc.contract_address and log.blockchain = pcc.chainleft join price_feed_ids ids on log.topic1 = ids."hash"wherelog.block_time >= timestamp'2022-09-01'and log.topic0 in (0xd06a6b7f4918494b3719217d1802786c1f5112a6c1d88fe2cfec00b4584f6aec, 0xef1f4c97783da7fc718b0334ca9b16bb0c5d1da6db75e96012b3613bb12707a0)--PriceFeedUpdate, legacy PriceFeedUpdateorder by log.block_time desc), final_traces AS (SELECT DISTINCTpcc.chain_type,pcc.chain,'Unknown' AS identifier,'Unknown' AS category,'Unknown' as display_symbol,tr.block_time,tr.block_number,tr.tx_hash,'Unknown' AS price_id,CASE WHEN CARDINALITY(tr.trace_address) >= 1 THEN tr.trace_address[1] ELSE NULL END AS index, /* safe access */tr.tx_index