People know what they do; frequently they know why they do what they do; but what they don't know is what what they do does.
Quite unusually, in this sentence "what" occurs twice and third person verb form "does" appears after the verb "do." Can you please help to understand what kind of sentence is it?