Query editor
WITH withdraws AS (SELECTDATE_TRUNC('day', block_time) AS block_date,CASEWHEN block_slot >= 266793916 THEN account_arguments[3]ELSE account_arguments[2]END AS token_address,account_arguments[4] AS bonding_curveFROMsolana.instruction_callsWHEREexecuting_account = '6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P'AND bytearray_substring(data, 1, 8) = 0xb712469c946da122AND tx_success = true)SELECTblock_date,COUNT(DISTINCT token_address) AS withdraw_token_cnt,COUNT(DISTINCT bonding_curve) AS unique_bonding_curves_cnt,SUM(COUNT(DISTINCT token_address)) OVER (ORDER BY block_date ASC) AS total_withdraw_token_cnt,SUM(COUNT(DISTINCT bonding_curve)) OVER (ORDER BY block_date ASC) AS total_bonding_curves_cnt,AVG(COUNT(DISTINCT token_address)) OVER () AS avg_withdraw_per_day,AVG(COUNT(DISTINCT token_address)) OVER (ORDER BY block_date ASCROWS BETWEEN 6 PRECEDING AND CURRENT ROW) AS seven_day_avg_withdraw_cntFROMwithdrawsGROUP BYblock_dateORDER BYblock_date ASC;