SELECT *
FROM (SELECT T1.*
FROM (SELECT T.NAME1, T.NAME2, T.NAME3, ROWNUM RN FROM TEST T) T1
WHERE MOD(T1.RN, 3) = 1) T11,
(SELECT T1.*
FROM (SELECT T.NAME1, T.NAME2, T.NAME3, ROWNUM RN FROM TEST T) T1
WHERE MOD(T1.RN, 3) = 2) T22,
(SELECT T1.*
FROM (SELECT T.NAME1, T.NAME2, T.NAME3, ROWNUM RN FROM TEST T) T1
WHERE MOD(T1.RN, 3) = 0) T33
WHERE T11.RN + 1 = T22.RN(+)
AND T11.RN + 2 = T33.RN(+)