Basically, you put a bunch of very smart people in a writers’ room and let them loose: “The result is a show packed with references to art, literature, pop culture, politics and science.” (Alternative theory: The Simpsons has so many episodes that it’s bound to get a few things right.)