Query editor
WITH address_entity_counts AS (SELECTtx_from,COUNT(DISTINCT entity) AS entity_countFROM staking_ethereum.depositswhere depositor_address is not nullGROUP BY tx_fromHAVING COUNT(DISTINCT entity) > 1)select distinct depositor_address,entity,null as entity_unique_name,category from staking_ethereum.entitieswhere entity is not nulland depositor_address is not nulland depositor_address<>0x16beb8782c2607fd90ca93f3119cf12c00255c6eunion allselect distinct tx_from as depositor_address, entity,null as entity_unique_name,entity_category as category from staking_ethereum.depositswhere tx_from not in (select depositor_address from staking_ethereum.entities where entity is not null and depositor_address is not null)and tx_from not in (select tx_from from address_entity_counts)and entity is not nulland depositor_address is not nulland depositor_address<>0x16beb8782c2607fd90ca93f3119cf12c00255c6eunion allselect 0x79f17234746344e0365d40be50d8d43db9082c32 as depositor_address,'Kelp Dao' as entity, null as entity_unique_name, 'Liquid Restaking' as categoryunion allselect 0xfa5f9eaa65ffb2a75de092eb7f3fc84fc86b5b18 as depositor_address,'Abyss Finance' as entity,null as entity_unique_name, 'Staking Provider' as categoryunion allselect 0x0ef8fa4760db8f5cd4d993f3e3416f30f942d705 as depositor_address,'ether.fi' as entity,null as entity_unique_name, 'Liquid Restaking' as categoryunion allselect 0x710b3303fb508a84f10793c1106e32be873c24cd as depositor_address,'Lido' as entity,null as entity_unique_name, 'Liquid Staking' as categoryunion allselect * from (select 0x18fb2400e61b623c3fc55b212c9022b44edd1c18 as depositor_address,'P2P.org' as entity,null as entity_unique_name, 'Staking Pool' as category) hcwhere hc.depositor_address not in (select depositor_address from staking_ethereum.entitieswhere entity is not null and depositor_address is not null)