Query editor
WITHbotTrades AS (SELECT DISTINCTuser AS userAddressFROMquery_2640849WHEREisLastTradeInTransaction = true)SELECTSUM(count) AS total_countFROM(SELECTae.first_funded_by,COUNT(DISTINCT ae.address) AS countFROMaddresses_events.first_funded_by AS aeJOIN botTrades AS bt ON ae.address = bt.userAddressWHEREae.blockchain = 'ethereum'GROUP BYae.first_funded_by) AS subquery;