Query editor
SELECTinactivity_months as "Last activity (month from now)",SUM(token_count) as count_tokens,COUNT (DISTINCT to) as wallet,SUM(COUNT(DISTINCT to)) OVER (ORDER BY inactivity_months ASC) AS active_cumulative_wallet,SUM(SUM(token_count)) OVER (ORDER BY inactivity_months ASC) AS active_cumulative_count_tokens,SUM(COUNT(DISTINCT to)) OVER (ORDER BY inactivity_months DESC) AS inactive_cumulative_wallet,SUM(SUM(token_count)) OVER (ORDER BY inactivity_months DESC) AS inactive_cumulative_count_tokensFROMquery_3467618WHERE inactivity_months is not nullGROUP BYinactivity_monthsORDER BY inactivity_months ASC