Season 20, Episode 4
The 19th annual Halloween special:
The opening pre-titles sequence sees Homer trying to vote for the President in the 2008 elections before he realises the polling booth is rigged.
The first segment is called Untitled Robot Parody and has Bart shopping for a Christmas present for Lisa. He buys her a Malibu Stacy convertible car, but doesn't realise its hidden powers. When his back is turned it morfs into a deadly transformer who, along with a load of other items, seek out to destroy the human race.
In the second segment, How To Get Ahead In Dead-Vertising Homer is employed to kill off a bunch of celebrities so that an advertising corporation can use their images for free in their commercials. In Heaven, the celebs, led by Krusty the Klown hire John Wayne to sort Homer out for his crimes.
The final segment, It's The Grand Pumpkin, Milhouse, sees Milhouse determined to prove the existence of the fabled Grand Pumpkin despite being mocked by his closest friends.
See Simpsons Wiki for more details.