Query editor
WITH transactions_counts AS (SELECTto_owner AS wallet_address,COUNT(*) AS transaction_count_A,SolT.block_time AS transaction_date_AFROM tokens_solana.transfers AS SolTWHEREtoken_mint_address = 'A3eME5CetyZPBoWbRUwY3tSe25S6tb18ba9ZPbWk9eFJ'AND SolT.block_time > TIMESTAMP '2024-03-26 00:01' /* Fecha inicial (A) */AND SolT.block_time < TIMESTAMP '2024-05-26 23:59' /* Fecha final (A) */GROUP BYto_owner,SolT.block_timeHAVINGCOUNT(*) = 3 /* Tres transacciones exactamente en el período (A) */),single_transaction_counts AS (SELECTto_owner AS wallet_address,COUNT(*) AS transaction_count_B,SolT.block_time AS transaction_date_BFROM tokens_solana.transfers AS SolTWHEREtoken_mint_address = 'A3eME5CetyZPBoWbRUwY3tSe25S6tb18ba9ZPbWk9eFJ'AND SolT.block_time > TIMESTAMP '2024-03-30 00:01' /* Fecha inicial (B) */AND SolT.block_time < TIMESTAMP '2024-03-30 23:59' /* Fecha final (B) */GROUP BYto_owner,SolT.block_timeHAVINGCOUNT(*) = 1 /* Una transacción exactamente en el período (B) */),double_transaction_counts AS (SELECTto_owner AS wallet_address,COUNT(*) AS transaction_count_C,SolT.block_time AS transaction_date_CFROM tokens_solana.transfers AS SolTWHEREtoken_mint_address = 'A3eME5CetyZPBoWbRUwY3tSe25S6tb18ba9ZPbWk9eFJ'AND SolT.block_time > TIMESTAMP '2024-03-26 00:01' /* Fecha inicial (B) */AND SolT.block_time < TIMESTAMP '2024-03-27 23:59' /* Fecha final (B) */GROUP BYto_owner,SolT.block_timeHAVINGCOUNT(*) = 2 /* Una transacción exactamente en el período (B) */)SELECT distinct*FROMtransactions_counts tcainner JOIN single_transaction_counts stcb ON tca.wallet_address = stcb.wallet_addressInner JOIN double_transaction_counts dtcb ON tca.wallet_address = dtcb.wallet_addressWHEREtca.transaction_count_A = 3AND stcb.transaction_count_B = 1AND dtcb.transaction_count_C = 2;