Not able understand logic and working

not understand

And (apart from the clumsy one-liner) the question is? Why don't you analyse the looong pipe step by step? Does the result (a sample of which might have been helpful) satisfy your needs?