Query editor
selectsum(number_of_tx) as number_of_txfrom(-- number of direct txsSELECTcount(*) AS number_of_txFROMgnosis.transactions as etinner join query_3100122 as m on m.module_address = et.toor m.module_address = et."from"union all-- number of ERC20s transfersSELECTcount(*) as number_of_txFROM(SELECTcontract_address AS token_address,cast(value as double) AS amount_rawFROMerc20_gnosis.evt_Transfer AS tINNER JOIN query_3100122 AS m ON t."from" = m.module_addressWHEREt."from" <> t.toUNION ALLSELECTcontract_address AS token_address,cast(value as double) AS amount_rawFROMerc20_gnosis.evt_Transfer AS tINNER JOIN query_3100122 AS m ON t.to = m.module_addressWHEREt."from" <> t.to)-- union all-- nested calls - had to comment this out; its to slow, and the query times out-- SELECT-- count(*) AS number_of_tx-- FROM-- gnosis.traces as et-- inner join modules as m on m.module_address = et.to-- or m.module_address = et."from")