Query editor
WITH filtered_orders AS (SELECTbridge_name || '_' || product AS productAndBridge,date,SUM(total_usd) AS total_usd,SUM(count) AS tx_countFROMquery_4024304WHEREdate BETWEEN current_date - interval '{{startDaysDiff}}' day AND current_date - interval '{{endDaysDiff}}' day AND product LIKE '%okx%'GROUP BYdate,bridge_name,product)SELECT productAndBridge, date, total_usd, tx_countFROM filtered_ordersWHERE total_usd > 10000GROUP BY productAndBridge, date, total_usd, tx_countHAVING COUNT(productAndBridge) = 1ORDER BY tx_count DESC, date DESC