Question: What song did the writer of All You Need Is Love by the Beatles write for David Bowie?

full_context: Document 1: All Together Now: "All Together Now" is a song by the Beatles written primarily by Paul McCartney and credited to Lennon–McCartney. The song was recorded during the band's "Magical Mystery Tour" period, but remained unreleased until it was included on the "Yellow Submarine" soundtrack. It was released as a single in 1972 in European countries such as France and Germany, backed by "Hey Bulldog".
Document 2: The Beatles: On 25 June 1967, the Beatles performed their forthcoming single, "All You Need Is Love", to an estimated 350 million viewers on Our World, the first live global television link. Released a week later, during the Summer of Love, the song was adopted as a flower power anthem. Two months later, the group suffered a loss that threw their career into turmoil. Having been introduced to Maharishi Mahesh Yogi only the previous night in London, on 25 August they travelled to Bangor for his Transcendental Meditation retreat. Two days later, their manager's assistant, Peter Brown, phoned to inform them that Epstein, only thirty-two years old, had died. The coroner ruled the death an accidental carbitol overdose, although it was widely rumoured to be a suicide. Epstein had been in a fragile emotional state, stressed by personal troubles. His death left the group disoriented and fearful about the future. Lennon recalled: "We collapsed. I knew that we were in trouble then. I didn't really have any misconceptions about our ability to do anything other than play music, and I was scared. I thought, 'We've had it now.'"
Document 3: Mr. Tambourine Man: The song has been performed and recorded by many artists, including the Byrds, Judy Collins, Melanie, Odetta, and Stevie Wonder among others. The Byrds version was released in April of 1965 as their first single on Columbia Records, reaching number 1 on both the "Billboard" Hot 100 chart and the UK Singles Chart, as well as being the title track of their debut album, "Mr. Tambourine Man." The Byrds' recording of the song was influential in popularizing the musical subgenres of folk rock and jangle pop, leading many contemporary bands to mimic its fusion of jangly guitars and intellectual lyrics in the wake of the single's success.
Document 4: I'm Afraid of Americans: "I'm Afraid of Americans" is a single by David Bowie from the 1997 album "Earthling". The song, co-written by Bowie and Brian Eno, was originally written during Bowie's studio sessions for the 1995 album "Outside" but was not released until a rough mix appeared on the soundtrack to the film "Showgirls", and was subsequently remade for "Earthling". A top 20 hit in Canada, the rework also peaked at number 66 on the "Billboard" Hot 100 and spent 16 weeks on that chart. This was the final Bowie single which charted on the Hot 100 until "Blackstar" and "Lazarus" following his death.
Document 5: Fame (The Game): "Fame (The Game)" was the second official single from Donna Summer's 2008 studio album "Crayons". It reached #1 on the "Billboard" Hot Dance Club Play chart.
Document 6: Fame (David Bowie song): ``Fame ''is a song recorded by David Bowie, initially released in 1975. Written by Bowie, Carlos Alomar and John Lennon, it was a hit in North America, becoming Bowie's first number 1 single in the Canadian Singles Chart as well as the U.S. Billboard Hot 100. The song was one of the more successful singles of the year, ranking at number 7 on the Billboard Year - End Hot 100. It was less successful in Europe, reaching number 17 in the UK Singles Chart.
Document 7: "Heroes" (David Bowie song): ``'Heroes' ''is a song recorded by the English musician David Bowie, written by Brian Eno and Bowie. Produced by Bowie and Tony Visconti, it was recorded in July and August 1977, and released on 23 September 1977. A product of Bowie's`` Berlin'' period, the track was not a huge hit in the UK or US at the time, but has gone on to become one of Bowie's signature songs. In January 2016, following Bowie's death, the song reached a new peak of number 12 in the UK Singles Chart. ``'Heroes' ''has been cited as Bowie's second-most covered song after`` Rebel Rebel''.
Document 8: "Heroes" (David Bowie song): ``'Heroes' ''is a song recorded by the English musician David Bowie, written by Brian Eno and Bowie. Produced by Bowie and Tony Visconti, it was recorded in July and August 1977, and released on 23 September 1977. A product of Bowie's`` Berlin'' period, the track was not a huge hit in the United Kingdom or United States at the time, but has gone on to become one of Bowie's signature songs. In January 2016, following Bowie's death, the song reached a new peak of number 12 in the UK Singles Chart. ``'Heroes' ''has been cited as Bowie's second-most covered song after`` Rebel Rebel''.
Document 9: Changes (David Bowie song): ``Changes ''Single by David Bowie from the album Hunky Dory B - side`` Andy Warhol'' Released 7 January 1972 Format 7 ''single Recorded Trident Studios, London, summer 1971 Genre Art pop, glam rock Length 3: 33 Label RCA Records 2160 Songwriter (s) David Bowie Producer (s) Ken Scott, David Bowie David Bowie singles chronology ``Moonage Daydream'' (1971)`` Changes ''(1972) ``Starman'' (1972)`` Moonage Daydream ''(Arnold Corns) (1971) ``Changes'' (1972)`` Starman ''(1972) Hunky Dory track listing ``Changes'' (1)`` Oh! You Pretty Things ''(2) Alternative cover Music video ``Changes'' (Live) on YouTube
Document 10: Imagine (John Lennon song): ``Imagine ''is a song written and performed by English musician John Lennon. The best - selling single of his solo career, its lyrics encourage the listener to imagine a world at peace without the barriers of borders or the divisions of religion and nationality and to consider the possibility that the whole of humanity would live unattached to material possessions.
Document 11: Love Me Do: ``Love Me Do ''is the debut single by the English rock band the Beatles, backed by`` P.S. I Love You''. When the single was originally released in the United Kingdom on 5 October 1962, it peaked at No. 17; in 1982 it was re-promoted (not re-issued, retaining the same catalogue number) and reached No. 4. In the United States the single was a No. 1 hit in 1964. In 2013, recordings of the song that were released in 1962 entered the public domain in Europe.
Document 12: David Bowie: Dissatisfied with his stage name as Davy (and Davie) Jones, which in the mid-1960s invited confusion with Davy Jones of The Monkees, Bowie renamed himself after the 19th - century American pioneer James Bowie and the knife he had popularised. His April 1967 solo single, ``The Laughing Gnome '', using speeded - up thus high - pitched vocals, failed to chart. Released six weeks later, his album debut, David Bowie, an amalgam of pop, psychedelia, and music hall, met the same fate. It was his last release for two years.
Document 13: What the World Needs Now Is Love: ``What the World Needs Now Is Love ''is a 1965 popular song with lyrics by Hal David and music composed by Burt Bacharach. First recorded and made popular by Jackie DeShannon, it was released on April 15, 1965, on the Imperial label after a release on sister label Liberty records the previous month was canceled. It peaked at number seven on the US Hot 100 in July of that year. In Canada, the song reached number one.
Document 14: I Need You (Beatles song): ``I Need You ''is a song by the Beatles and appears on the album Help!. It is the second George Harrison song the band released after two albums without any songwriting contribution from Harrison. It was performed in their second film, Help! and is the second video produced showing George Harrison singing lead vocal (after`` I'm Happy Just to Dance with You'' from A Hard Day's Night).
Document 15: All You Need Is Love: ``All You Need Is Love ''is a song by the English rock band the Beatles that was released as a non-album single in July 1967. It was written by John Lennon and credited to Lennon -- McCartney. The Beatles performed the song over a pre-recorded backing track as Britain's contribution to Our World, the first live global television link. Watched by over 400 million in 25 countries, the programme was broadcast via satellite on 25 June 1967. The song captured the utopian sentiments of the Summer of Love era and topped singles charts in Britain, the United States and many other countries.
ground_truth: ``Fame ''
sub_queries: who wrote all you need is love by the beatles Answer: John Lennon
what song did John Lennon write for david bowie Answer: ``Fame ''