Query editor
WITH wash_trading AS (SELECT distinct wash_trading_filter_ AS wash_trading_filterFROM (SELECT CASE WHEN '{{Wash Trading Filter}}' IN ('ON', 'OFF') THEN false END AS wash_trading_filter_UNIONSELECT CASE WHEN '{{Wash Trading Filter}}'='OFF' THEN true END AS wash_trading_filter_)WHERE wash_trading_filter_ IS NOT NULL)SELECT COUNT(distinct trader) AS total_tradersFROM (SELECT distinct nftt.buyer AS traderFROM nft.trades nfttINNER JOIN nft.wash_trades wt ON wt.block_number=nftt.block_numberAND wt.unique_trade_id=nftt.unique_trade_idWHERE nftt.blockchain='ethereum'AND nftt.project = 'looksrare'AND (wt.is_wash_trade IN (SELECT wash_trading_filter FROM wash_trading) OR wt.is_wash_trade IS NULL)UNION ALLSELECT distinct nftt.seller AS traderFROM nft.trades nfttINNER JOIN nft.wash_trades wt ON wt.block_number=nftt.block_numberAND wt.unique_trade_id=nftt.unique_trade_idWHERE nftt.blockchain='ethereum'AND nftt.project = 'looksrare'AND (wt.is_wash_trade IN (SELECT wash_trading_filter FROM wash_trading) OR wt.is_wash_trade IS NULL))