Query editor
with zora_mint_dedups AS (SELECT*FROM (SELECT*,ROW_NUMBER() OVER (PARTITION BY tx_hash) AS rnFROM zora.mints) tWHERE(rn) = 1)selectblockchain, date_trunc('week',block_time) as week, count(distinct recipient) as distinct_minters, sum(total_price) as eth_vol, sum(total_price_usd) as usd_vol, count(distinct contract_address) as distinct_collections_minted-- total number of mints occuring, count(distinct tx_hash) as total_transactions-- total number of minted items, sum(quantity) as mint_volume, sum(sum(quantity)) OVER (PARTITION BY blockchain ORDER BY date_trunc('week', block_time)) AS cumulative_total_mintedfrom zora_mint_dedups mgroup by 1,2