Query editor
-- fork from pandajackson42: https://dune.com/queries/1919367/3164172SELECTdate_trunc('week', block_time) AS day,CASEWHEN nt.project = 'blur' and (nt.aggregator_name is null or nt.aggregator_name = '') THEN 'Blur'WHEN nt.aggregator_name is null or nt.aggregator_name = '' THEN 'Direct'ELSE nt.aggregator_nameEND AS aggregator_source,SUM(nt.amount_usd) AS total_volume,SUM(nt.amount_usd) FILTER (WHERE nt.project != 'blur') AS volume_except_blur,COUNT(DISTINCT nt.tx_hash) AS total_tx,COUNT(DISTINCT nt.tx_hash) FILTER (WHERE nt.project != 'blur') AS tx_except_blur,COUNT(1) AS total_trades,COUNT(1) FILTER (WHERE nt.project != 'blur') AS trades_except_blur,SUM(number_of_items) AS items,SUM(number_of_items) FILTER (WHERE nt.project != 'blur') AS items_except_blur,COUNT(DISTINCT nt.buyer) AS total_buyers,COUNT(DISTINCT nt.buyer) FILTER (WHERE nt.project != 'blur') AS buyers_except_blurFROM nft.trades ntINNER JOIN nft.wash_trades nwt USING(block_time, unique_trade_id)WHERE nt.blockchain = 'ethereum'AND nwt.is_wash_trade = falseAND block_time > timestamp'2021-01-01'GROUP BY 1,2