How Lin-Manuel Miranda's family inspired his Oscar-nominated song

The "Hamilton" star is up for an EGOT for his song from "Moana."

— -- From "Beauty and the Beast" to "Can You Feel the Love Tonight" to "Under the Sea," songs from Disney animated movies have won many Oscars for best original song.

On Sunday night, yet another Disney song is in the running for an Oscar. If it wins, the guy who wrote it will have accomplished a feat only 12 other people have: an EGOT (an Emmy, a Grammy, an Oscar and a Tony).

"Hamilton" creator Lin-Manuel Miranda is nominated for writing "How Far I'll Go," from the Disney animated film "Moana," about a young Polynesian princess.

For Miranda, this Oscar stuff is his childhood dream come true.

"How Far I'll Go" represents Moana's desire to pursue her dreams, even if danger lies ahead. To gain inspiration, Lin-Manuel said he had to revisit his past.

"I actually went to my parent's house [in New York City], locked myself there overnight and wrote the song," he says.

"I wanted to get in touch with that 16-year-old me, who wanted a life in the movies and in theater," he explains. "And the distance between 200th St. and that is so impossibly far -- it's about as far as Moana from her ultimate goals."

The Walt Disney Co. is the parent company of ABC News.