Query editor
with roles as (SELECTgranted.account,ARRAY_AGG(DISTINCTCASEWHEN granted.role = 0x0000000000000000000000000000000000000000000000000000000000000000 THEN 'DEFAULT_ADMIN_ROLE'WHEN granted.role = 0xa615a8afb6fffcb8c6809ac0997b5c9c12b8cc97651150f14c8f6203168cff4c THEN 'UPGRADER'WHEN granted.role = 0x8e4f01b2ef10e587f670bbfd448bba9a57a36fd9c81549b587269120cb62b24d THEN 'SETTER'ELSE 'UNKNOWN'END) AS role_labels,ARRAY_AGG(DISTINCT granted.role) AS rolesFROM hourglass_ethereum.FeeManager_evt_RoleGranted AS grantedLEFT JOIN hourglass_ethereum.FeeManager_evt_RoleRevoked AS revokedON granted.contract_address = revoked.contract_addressAND granted.role = revoked.roleAND granted.account = revoked.accountWHERErevoked.role IS NULLGROUP BYgranted.account)selectarray_sort(role_labels) as role_labels, account, ens.name as ensfrom rolesleft join ens.resolver_latest as enson roles.account = ens.address