Complex sentence: His origin as the Mad Hatter is also revealed in the episode, having worked for the Evil Queen to help her enter Wonderland in exchange for giving his daughter a life of ease.
Split into simpler sentences: His origin as the Mad Hatter is also revealed in the episode. Apparently, the Hatter once worked for the Evil Queen to help her enter Wonderland in exchange for giving his daughter a life of ease.