Query editor
WITH recent_trades AS (SELECTtoken_sold_symbol AS "Token",token_sold_address AS "Contract Address",amount_usd,projectFROM dex.tradesWHEREblock_time >= CURRENT_TIMESTAMP - INTERVAL '1' dayAND blockchain = 'berachain'AND project IN ('kodiak', 'beraswap', 'burrbear')AND NOT token_sold_symbol IN ('BERA', 'BGT', 'HONEY', 'WBERA', 'WETH', 'WBTC', 'stETH', 'USDC', 'USDT', 'USDS', 'iBGT', 'USDC.e', 'wgBERA', 'USD₮0', 'suUSD') --excludes native, wrapped and governance tokens)SELECT"Token","Contract Address",COUNT(*) AS "Transaction Count",COUNT(CASE WHEN amount_usd > 1000000 THEN 1 ELSE NULL END) AS "Transaction Count Whales",SUM(amount_usd) AS "Total Transaction Amount (USD)",SUM(CASE WHEN amount_usd > 1000000 THEN amount_usd ELSE 0 END) AS "Total Transaction Amount Whales (USD)"FROM recent_tradesGROUP BY"Contract Address","Token"ORDER BY"Transaction Count" DESCLIMIT 1