All the references, lovingly collated

All

Why do you want to go up there?... (12.48)

Wendy: Why do you want to go up there?

Elena Gabriel: It's the undiscovered country.

Wendy: Hmm. That's from Hamlet. He was describing death.

Elena Gabriel: It's the final frontier.

Wendy: How about in your own words?

The Tragedy of Hamlet, Prince of Denmark, often shortened to Hamlet, is a tragedy written by William Shakespeare at an uncertain date between 1599 and 1602. Set in Denmark, the play dramatises the revenge Prince Hamlet is called to wreak upon his uncle, Claudius, by the ghost of Hamlet's father, King Hamlet. Claudius had murdered his own brother and seized the throne, also marrying his deceased brother's widow.

There are also a lot of Star Trek jokes in this exchange too. The Undiscovered Country is also the title of Star Trek VI. The final frontier is, of course, also a Star Trek reference.