Question: How long did it take the singer-songwriter Randy Newman to compose the hit song "You've Got a Friend in Me"?
About the article "Toy Story", section "Music".

Candidate passages:
Lyle Lovett is an American singer-songwriter and actor.
Active since 1980, he has recorded fourteen albums and released 22 singles to date, including his highest entry, the number 10 chart hit on the U.S. "Billboard" Hot Country Songs chart, "Cowboy Man".
Despite not having charted a Top 40 single on the charts since 1988, all of Lovett's 1990's album were all certified Gold by the Recording Industry Association of America.
He has not charted a single since 1997, though he did chart a single, "You've Got a Friend in Me" with Randy Newman in 1996.
The song was released from the "Toy Story" soundtrack, and peaked at number 40 on the Canadian "RPM" Adult Contemporary chart. 
  "You've Got a Friend" (Andy Williams album), 1971  "You've Got a Friend" (Susie Luchsinger album), 2003  "You've Got a Friend" (Johnny Mathis album), 1971  "You've Got a Friend" (Sonia and Big Fun song), 1990  "You've Got a Friend in Me", a 1995 song by Randy Newman  
Disney was concerned with Lasseter's position on the use of music.
Unlike other Disney films of the time, Lasseter did not want the film to be a musical, saying it was a buddy film featuring "real toys."
Joss Whedon agreed saying, "It would have been a really bad musical, because it's a buddy movie.
It's about people who won't admit what they want, much less sing about it.
...
Buddy movies are about sublimating, punching an arm, 'I hate you.'
It's not about open emotion."
However, Disney favored the musical format, claiming "Musicals are our orientation.
Characters breaking into song is a great shorthand.
It takes some of the onus off what they're asking for."
Disney and Pixar reached a compromise: the characters in "Toy Story" would not break into song, but the film would use songs over the action, as in "The Graduate", to convey and amplify the emotions that Buzz and Woody were feeling.
Disney tapped Randy Newman to compose the film.
The edited "Toy Story" was due to Randy Newman and Gary Rydstrom in late September 1995 for their final work on the score and sound design, respectively.
Lasseter claimed "His songs are touching, witty, and satirical, and he would deliver the emotional underpinning for every scene."
Newman developed the film's signature song "You've Got a Friend in Me" in one day.
'" "Colors of the Wind" by Vanessa Williams – "Pocahontas"  "Have You Ever Really Loved a Woman?"
by Bryan Adams – "Don Juan DeMarco"  "Hold Me, Thrill Me, Kiss Me, Kill Me" by U2 – "Batman Forever"  "Moonlight" by Sting – "Sabrina"  "You've Got a Friend in Me" by Randy Newman – "Toy Story"  
"You've Got a Friend in Me" is a song written and first recorded by Randy Newman.
Originally written as the theme song for the 1995 Disney/Pixar animated film "Toy Story", it has since become the theme song for its sequels, "Toy Story 2" (1999) and "Toy Story 3" (2010).
The song was nominated for both the 1996 Academy Award for Best Original Song and the 1995 Golden Globe Award for Best Original Song but lost both to another Disney song, "Colors of the Wind" from "Pocahontas".
Like many other Disney theme songs, "You've Got a Friend in Me" has been covered numerous times.
Cover versions featured in the three "Toy Story" films include a duet with Newman and Lyle Lovett in "Toy Story", a version by Robert Goulet and an instrumental by Tom Scott in "Toy Story 2", an Italian language version by Riccardo Cocciante, and a Spanish language version by the Gipsy Kings in "Toy Story 3".