Query editor
WITH tx_counts AS (SELECT"from" AS address,COUNT(*) AS sentFROM base.transactionsWHERE"from" IN (SELECTaddressFROM dune.artemisrsch.dataset_base_rug)GROUP BY"from"UNION ALLSELECT"to" AS address,COUNT(*) AS receivedFROM base.transactionsWHERE"to" IN (SELECTaddressFROM dune.artemisrsch.dataset_base_rug)GROUP BY"to")SELECTaddress,SUM(sent) AS tx_countFROM tx_countsGROUP BYaddressORDER BYtx_count DESC