In Homer's dream, Homer has the role of King Solomon who, according to the Books of Kings and Book of Chronicles was a King of Israel, as well as one of the 48 prophets according to the Talmud. Bart's dream shows Bart as King David and, rather than telling the story of David and Goliath, Bart's dream is a "sequel" to the story. The segment is inspired by and contains references to several films by Jerry Bruckheimer, including "Die Hard" and "Lethal Weapon", and borrows elements from other action films. At one point in the segment, Bart's dog Santa's Little Helper starts talking to him. The dog's voice is similar to that of Goliath in the stop-motion animated television series "Davey and Goliath". Inside the whale skeleton in the episode, Bart finds the remains of Jonah. Jonah was a prophet of the northern kingdom of Israel, according to the Hebrew Bible. Nelson lives in the Tower of Babel which, according to the Book of Genesis, was an enormous tower that the humans built in order to reach heaven. After being defeated by Bart, Nelson reappears while a variation of Modest Mussorgsky's composition "St. John's Night on the Bare Mountain" plays in the background. At the end of the segment, Bart is arrested and Chief Wiggum says "Where's your messiah now?" Wiggum's line was also taken from "The Ten Commandments", from a character played by Edward G. Robinson, on whom Wiggum's voice is based. King David's (Bart) training montage of arm-wrestling with his sheep is a reference to the film "Over the Top", complete with Sammy Hagar's "Winner Takes It All" from the film.