Query editor
WITH TPS_Per_Minute AS (SELECTDATE_TRUNC('hour', block_time) AS time,COUNT(*) / CAST(3600.0 AS DOUBLE) AS tpsFROMsolana.transactionsWHEREblock_time < DATE_TRUNC('day', CURRENT_TIMESTAMP)GROUP BY1), TPS_Per_Hour AS (SELECTDATE_TRUNC('hour', time) AS hour_time,AVG(tps) AS avg_tpsFROMTPS_Per_MinuteGROUP BY1)SELECThour_time,AVG(avg_tps) OVER (ORDER BY hour_time ROWS BETWEEN 23 PRECEDING AND CURRENT ROW) AS moving_avg_tpsFROMTPS_Per_HourORDER BYhour_time DESC;