Query editor
with nowash AS (SELECT DISTINCT DATE(tx_timestamp_dt) AS day,CASE when order_source in ('looksrare.org', 'opensea.io', 'genie.xyz', 'x2y2.io', 'blur.io', 'sudoswap.xyz' ) THEN order_sourceWHEN order_source IN ('gem.xyz', 'pro.opensea.io') THEN 'opensea.io'ELSE 'other' END AS order_source,tx_hash as transactions,'No' as WashTypeFROM reservoir.salesWHERE tx_timestamp_dt >= date_trunc('day', NOW()) - interval '4' monthAND order_kind != 'mint'AND order_source != 'cryptopunks.app'AND wash_trading_score = 0AND CAST(tx_hash as varbinary) NOT IN (SELECT tx_hash FROM query_2007904)AND('{{Private Sales Included}}' = 'Yes'OR ('{{Private Sales Included}}' = 'No' AND tx_hash NOT IN (SELECT tx_hash FROM query_2418645)))AND('{{Raffles Included}}' = 'Yes'OR ('{{Raffles Included}}' = 'No' AND tx_hash NOT IN (SELECT tx_hash FROM query_2506474)))GROUP BY 1,2,3,4),wash as (SELECT DISTINCT DATE(tx_timestamp_dt) AS day,CASE when order_source in ('looksrare.org', 'opensea.io', 'genie.xyz', 'x2y2.io', 'blur.io', 'sudoswap.xyz' ) THEN order_sourceWHEN order_source IN ('gem.xyz', 'pro.opensea.io') THEN 'opensea.io'ELSE 'other' END AS order_source,tx_hash as transactions,'No' as WashTypeFROM reservoir.salesWHERE tx_timestamp_dt >= date_trunc('day', NOW()) - interval '4' monthAND order_kind != 'mint'AND order_source != 'cryptopunks.app'AND('{{Raffles Included}}' = 'Yes'OR ('{{Raffles Included}}' = 'No' AND tx_hash NOT IN (SELECT tx_hash FROM query_2506474)))GROUP BY 1,2,3,4),washsel as (SELECT * FROM (SELECT * FROM nowashUNION ALLSELECT * FROM wash)WHERE WashType = '{{Washing Included}}'),calendar AS (with weeks_seq as (SELECTsequence((CURRENT_DATE - interval '3' month - interval '7' day), CURRENT_DATE