It's not that important, but to match the picture (ARRAY [1,2,3,4,4,7,8],ARRAY [3,3,4,5,6,8,9]) And recursive subquery in recursive query - is this possible?