Query editor
-- Find proportion of ERC-173 contracts vs total contractsWITH sig AS (-- keccak256("OwnershipTransferred(address,address)")SELECT 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0 AS topic_ownership),erc173_contracts AS (-- Unique contracts that have ever emitted OwnershipTransferredSELECT DISTINCT l.contract_addressFROM evms.logs lWHERE l.blockchain = 'ethereum'AND l.topic0 = (SELECT topic_ownership FROM sig)),erc173_count AS (SELECT COUNT(*) AS cnt FROM erc173_contracts),total_contracts AS (SELECT COUNT(*) AS cntFROM evms.creation_tracesWHERE blockchain = 'ethereum')SELECTerc173_count.cnt AS erc173_contracts,total_contracts.cnt AS total_contracts,--ROUND((erc173_count.cnt * 100.0) / erc173_count.cnt, 4) || '%' AS proportion_erc173CONCAT(TRIM(TRAILING '0' FROM CAST((CAST(erc173_count.cnt AS DECIMAL(18, 8)) / total_contracts.cnt) * 100AS VARCHAR)),'%') AS percentage_of_erc173FROM erc173_countCROSS JOIN total_contracts;