Query editor
WITH logs_parsed AS (SELECTvarbinary_to_uint256(topic2) AS trancheFROM ethereum.logsWHEREtopic0 = 0x9cdcf2f7714cca3508c7f0110b04a90a80a3a8dd0e35de99689db74d28c5383eAND contract_address = 0xdD8A6C6D3667133e783E8bd2a3B33b551B97482f)SELECTCOUNT_IF(tranche = 1) AS tranche_1,COUNT_IF(tranche = 2) AS tranche_2FROM logs_parsed;