Thanks, that makes me feel better that it's not only me that has a hard time understanding it.
Here's the manual, non-vertical method for producing the output
CREATE TABLE #temp1 (GroupID INT, MyValue INT)
INSERT INTO #temp1 (GroupID, MyValue)
VALUES (1,8),(2,7),(2,9),(3,1),(3,6),(3,3)...