Need more tests: NEXT VALUE in WHERE clause, repeating same NEXT VALUE for same table, using in expression: NEXT VALUE FOR alpha.kappa + 1, etc.