Query editor
SELECT active, COUNT(*) as countFROM (SELECTCASEWHEN EXISTS (SELECT 1FROM nft.trades t2WHERE t1.address = t2.tx_from --- OR t1.recipient = t2.tx_to (don't need this cause none received and was too big to run)) THEN 'active'ELSE 'not active'END AS activeFROM dune.lamora.dataset_current_badgeholders_2024 t1) AS subqueryGROUP BY active