Sql Server Sql Query Group Consecutive Items Based On Condition

Sql Server Sql Query Group Consecutive Items Based On Condition