Query editor
WITH blockchain_transactions AS (SELECT 'Ethereum' AS blockchain, COUNT(DISTINCT contract_address) AS nb_tokensFROM ethereum.logsWHEREtopic0 = 0x6a1105ac8148a3c319adbc369f9072573e8a11d3a3d195e067e7c40767ec54d1AND tx_from = 0xfe1bd11cd131c02f31a8b213651a8358fa1ab7a8AND tx_to IS NULLUNION ALLSELECT 'Polygon' AS blockchain, COUNT(DISTINCT contract_address) AS nb_tokensFROM polygon.logsWHEREtopic0 = 0x6a1105ac8148a3c319adbc369f9072573e8a11d3a3d195e067e7c40767ec54d1AND tx_from = 0xfe1bd11cd131c02f31a8b213651a8358fa1ab7a8AND tx_to IS NULLUNION ALLSELECT 'Avalanche' AS blockchain, COUNT(DISTINCT contract_address) AS nb_tokensFROM avalanche_c.logsWHEREtopic0 = 0x6a1105ac8148a3c319adbc369f9072573e8a11d3a3d195e067e7c40767ec54d1AND tx_from = 0x109416770918726a52fa4c63c76d32085e3c5949), total_count AS (SELECT SUM(nb_tokens) AS totalFROM blockchain_transactions)SELECTblockchain,nb_tokens,ROUND((nb_tokens * 100.0) / total, 2) AS percentage_of_totalFROM blockchain_transactions, total_count