When Bart and T-Rex start fighting at his birthday party, the live band starts playing "the fight song" music from the Amok Time (1967), which was played when Kirk and Spock fought. The music is "The Ritual/Ancient Battle/Second Kroykah," which was composed in July 1967 by veteran Hollywood composer Gerald Fried .
The title is a reference to "The Day the Earth Stood Still".
Terrence and Emily are from Portland. They are played by Fred Armisen and Carrie Brownstein, the comedy duo who are the writers and stars of Portlandia (2011).