Query editor
SELECTtx_from AS wallet,COUNT(*) AS trade_count,COUNT(DISTINCT token_bought_address) AS token_count,SUM(amount_usd) AS total_volumeFROM dex.tradesWHERE blockchain = 'ethereum'AND block_time >= NOW() - INTERVAL '90' DAYAND amount_usd >= 100GROUP BY tx_fromHAVINGCOUNT(*) >= 20AND COUNT(DISTINCT token_bought_address) >= 5AND SUM(amount_usd) >= 50000ORDER BY total_volume DESCLIMIT 500;