Query editor
WITH recipients AS (SELECTaddress as recipient -- Select the address column and alias it as recipientFROM dune.lamora.dataset_current_badgeholders_2024 -- Source table),-- Define another temporary table "counts"counts AS (SELECTCOUNT(*) AS transaction_count, -- Count all transactionsDATE_TRUNC('month', block_time) AS month -- Truncate the block time to the monthFROM nft.trades -- Source table for NFT transactionsWHERE"tx_from" IN (SELECTrecipient -- Filter where the sender is in the list of recipientsFROM recipients)GROUP BY 2) --should be the monthSELECTtransaction_count, -- Select the total transaction count for each monthmonth -- Select the truncated monthFROM counts