Given the question: Here's a complex question that requires someone to reason about the input, can you answer it? The actor who played Ted Chaough on Mad Men also appeared as one half of a gay couple on which ABC television series?
The answer is:
Desperate Housewives