Did you ever watch the tv show "Get Smart" in the 70's (I think)? Basically, Smart was a gov't agent, total bungler, but he "covered himself" in the end by saying, "I knew you (the bad guy) were going to do such and such, and so I brilliantly did x, y, and z, to put you directly into my trap". It was a spoof of some kind of movie genre that I don't think I was old enough to even see. I was watching Get Smart at about 7-8 YO.
This episode was exactly the same thing, with the biggest idiot character as the brilliant "detective". If you can't make the connection(s), the show can seem really stupid.
Sure, I remember Get Smart. Late 60's, actually -- it was in syndication in the 70's. It was one of my favorite shows. I had a crush on Barbara Feldon ("99"). In my San Francisco neighborhood, there is a bar that is STILL named "Would You Believe?"
Basically, Smart was a gov't agent, total bungler, but he "covered himself" in the end by saying, "I knew you (the bad guy) were going to do such and such, and so I brilliantly did x, y, and z, to put you directly into my trap"...This episode was exactly the same thing, with the biggest idiot character as the brilliant "detective".
Of course! (shouted Don Adams-style) It was just like Get Smart!
That is, adding a potentially penis-chomping pony, a masturbating boy peeping in a big-breasted woman's window, and killing another boy's mother and father and cutting them up and putting them in a chili fed to the son.
I loved Get Smart!