Query editor
-- ============================================================-- TABLE 0B-- Pre-treatment matching characteristics---- IMPORTANT:-- ONLY event_week -12 to -1 is used.-- No treatment or post-treatment information enters matching.-- ============================================================WITH pre_panel AS (SELECT *FROM query_8816216WHERE event_week BETWEEN -12 AND -1),-- -------------------------------------------------------------- 1. Aggregate weekly variables into collection-level features-- ------------------------------------------------------------pre_features AS (SELECTcollection_name,contract_address,cohort_date,treated,-- =====================================================-- A. MARKET SIZE / ACTIVITY-- =====================================================SUM(sales_count)AS pre_sales_count,AVG(CAST(sales_count AS DOUBLE))AS pre_avg_weekly_sales,SUM(volume_eth)AS pre_volume_eth,AVG(volume_eth)AS pre_avg_weekly_volume_eth,SUM(volume_usd)AS pre_volume_usd,-- =====================================================-- B. PRICE LEVEL-- =====================================================