How to average only for the consecutive rows in SQL Server. For instance, I have the following table: