Query editor
with nowash AS (SELECT day,fill_source,users,WashTypeFROM (SELECT DATE(tx_timestamp_dt) AS day,CASE when fill_source in ('looksrare.org', 'opensea.io', 'genie.xyz', 'x2y2.io', 'blur.io', 'sudoswap.xyz' ) THEN fill_sourceWHEN fill_source IN ('gem.xyz', 'pro.opensea.io') THEN 'opensea.io'ELSE 'other' END AS fill_source,to as users,'No' as WashTypeFROM reservoir.salesWHERE tx_timestamp_dt >= date_trunc('day', NOW()) - interval '4' monthAND order_kind != 'mint'AND order_source != 'cryptopunks.app'AND ('{{Private Sales Included}}' = 'Yes' OR ('{{Private Sales Included}}' = 'No' AND tx_hash NOT IN (SELECT tx_hash FROM query_2418645)))AND wash_trading_score = 0AND tx_hash NOT IN (SELECT tx_hash FROM query_2007904)UNION ALLSELECT DATE(tx_timestamp_dt) AS day,CASE when fill_source in ('looksrare.org', 'opensea.io', 'genie.xyz', 'x2y2.io', 'blur.io', 'sudoswap.xyz' ) THEN fill_sourceWHEN fill_source IN ('gem.xyz', 'pro.opensea.io') THEN 'opensea.io'ELSE 'other' END AS fill_source,"from" as users,'No' as WashTypeFROM reservoir.salesWHERE tx_timestamp_dt >= date_trunc('day', NOW()) - interval '4' monthAND order_kind != 'mint'AND order_source != 'cryptopunks.app'AND ('{{Private Sales Included}}' = 'Yes' OR ('{{Private Sales Included}}' = 'No' AND tx_hash NOT IN (SELECT tx_hash FROM query_2418645)))AND wash_trading_score = 0AND tx_hash NOT IN (SELECT tx_hash FROM query_2007904)) a),wash AS (SELECT day,fill_source,users,WashTypeFROM (SELECT DATE(tx_timestamp_dt) AS day,CASE when fill_source in ('looksrare.org', 'opensea.io', 'genie.xyz', 'x2y2.io', 'blur.io', 'sudoswap.xyz' ) THEN fill_sourceWHEN fill_source IN ('gem.xyz', 'pro.opensea.io') THEN 'opensea.io'ELSE 'other' END AS fill_source,to as users,'Yes' as WashTypeFROM reservoir.salesWHERE tx_timestamp_dt >= date_trunc('day', NOW()) - interval '4' monthAND order_kind != 'mint'AND order_source != 'cryptopunks.app'AND ('{{Private Sales Included}}' = 'Yes' OR ('{{Private Sales Included}}' = 'No' AND tx_hash NOT IN (SELECT tx_hash FROM query_2418645)))UNION ALLSELECT DATE(tx_timestamp_dt) AS day,CASE when fill_source in ('looksrare.org', 'opensea.io', 'genie.xyz', 'x2y2.io', 'blur.io', 'sudoswap.xyz' ) THEN fill_sourceWHEN fill_source IN ('gem.xyz', 'pro.opensea.io') THEN 'opensea.io'ELSE 'other' END AS fill_source,"from" as users,'Yes' as WashType