Question: Who was the person Thinking Out Loud written for by the artist who released UK's biggest selling single of 2017?

full_context: Document 1: Perfect (Ed Sheeran song): ``Perfect ''is a song by English singer - songwriter Ed Sheeran from his third studio album, ÷ (2017). After the album's release it charted at number four on the UK Singles Chart. On 21 August 2017, Billboard announced that`` Perfect'' would be the fourth single from the album. The song was serviced to pop radio on 26 September 2017, as the third single from the album in the United States (fourth overall). The song eventually reached number one on the UK Singles Chart and the US Billboard Hot 100 in December 2017. It also peaked at number one in sixteen other countries, including Australia, Canada, Ireland and New Zealand. A version of ``Perfect '', titled`` Perfect Duet'', with American singer Beyoncé was released on 1 December 2017. Another duet with Italian tenor Andrea Bocelli, titled ``Perfect Symphony '', was released on 15 December 2017.`` Perfect'' also became the UK Christmas number - one song for 2017.
Document 2: Songs I Wrote with Amy: Songs I Wrote with Amy is an extended play, independently released by Ed Sheeran on April 4, 2010. After the success of +, Sheeran re-released five of his EPs, including "Songs I Wrote with Amy", which was released a second time on December 9, 2011. All of the songs were written collaboratively by Ed Sheeran and Amy Wadge.
Document 3: List of best-selling singles in the United Kingdom: The best - selling single in the UK is ``Something About the Way You Look Tonight ''/ Candle in the Wind 1997'', a double A-side released by Elton John following the death of Diana, Princess of Wales. Since September 1997, the single has sold over 4.93 million copies in the UK.
Document 4: Photograph (Ed Sheeran song): "Photograph" is a song recorded by the English singer-songwriter, Ed Sheeran, for his second studio album, "×" (2014). Sheeran wrote the song with Snow Patrol member, Johnny McDaid, who had a piano loop from which the composition developed. After recording several versions with other producers, Sheeran eventually solicited help from Jeff Bhasker; the collaboration generated a version that Bhasker further enhanced for months. The ballad derives its music primarily from an acoustic guitar, piano and programmed drums. With visually descriptive lyrics, it discusses a long-distance relationship inspired by Sheeran's own experience of being away from his then-girlfriend while he was on tour.
Document 5: Gorgeous (Taylor Swift song): Swift co-wrote ``Gorgeous ''with its producers Max Martin and Shellback. It has been described as a`` radio - friendly pop'' song. Lyrically, the song depicts ``the pursuit of a maddening love interest '', whom Swift describes as`` gorgeous''. Hugh McIntyre of Forbes characterized the production of the song as ``simultaneously a basic 808 drum and an attempt at something that pushes electro - pop into a more interesting territory than Top 40 is used to ''. Maeve McDermott of USA Today likened the chorus of the song to the sound of Katy Perry. According to Elle, the man mentioned in the song is the British actor Joe Alwyn, who is Swift's current boyfriend. The song is composed in the key of C major with a tempo of 92 beats per minute, with Swift's vocals spanning from C to F.
Document 6: List of UK top-ten singles in 2017: Ed Sheeran had the best - selling and streamed single of the year with ``Shape of You ''. The song spent twenty - two weeks in the top 10 (including fourteen weeks at number one), sold over 787,000 copies as well as scoring 248 million streams (3.2 million combined sales) and was certified 5x platinum by the BPI.`` Despacito'' by Luis Fonsi, Daddy Yankee & Justin Bieber came in second place with more than 2.3 million combined sales. Ed Sheeran's ``Castle on the Hill '',`` Unforgettable'' from French Montana featuring Swae Lee and ``Galway Girl ''by Ed Sheeran made up the top five. Songs by Ed Sheeran (`` Perfect''), Clean Bandit featuring Zara Larsson, Rag'n'Bone Man, The Chainsmokers & Coldplay and Jax Jones featuring RAYE were also in the top ten best - selling singles of the year.
Document 7: Thinking Out Loud: In the kitchen, Sheeran and Wadge began writing the song at 2: 00 am on 4 February 2014, and completed it in 20 minutes. According to Wadge, the lyrical content resulted from her and Sheeran's talking about ``everlasting love '', inspired by the circumstances relevant at that time. Sheeran also revealed that the lyrics were inspired by his then - girlfriend, Athina Andrelos, whom Sheeran met in early 2014. Sheeran would later explain that he wrote the song`` in a relationship at a really, really happy point''. Immediately after writing, Sheeran recorded the song on his phone. He was keen to include ``Thinking Out Loud ''on the second album. He properly recorded the song the following day at the Sticky Studios, a recording facility located in the small Surrey village of Windlesham, and informed Wadge of its inclusion on the album. It became the last song recorded for the album. For`` Thinking Out Loud'', Sheeran sought the assistance of Jake Gosling, who produced much of his debut album and had earlier contributed tracks, four of which appear on the standard version of the second album.
Document 8: List of best-selling music artists: This list includes music artists with claims of 75 million or more record sales. The artists in the following tables are listed with both their claimed sales figure along with their total of certified units and are ranked in descending order, with the artist with the highest amount of claimed sales at the top. If two or more artists have the same claimed sales, they are then ranked by certified units. The claimed sales figure and the total of certified units (for each country) within the provided sources include sales of albums, singles, compilation - albums, music videos as well as downloads of singles and full - length albums. Sales figures, such as those from Soundscan, which are sometimes published by Billboard magazine, have not been included in the certified units column. As of 2017, based on both sales claims and certified units, The Beatles are considered the highest - selling band. Elvis Presley is considered the highest - selling individual artist based on sales claims and Rihanna is the highest - selling individual artist based on certified units.
Document 9: From This Moment On (Shania Twain song): ``From This Moment On ''was written during a soccer game in Italy. Twain once explained,`` We were in Italy at a soccer game. My husband loves sports. I do n't know the game that well, so my mind drifted and I started writing.'' Initially, Twain thought that ``From This Moment On ''would be perfect for singer Celine Dion; however, as Twain and Lange developed the song, they concluded that it would work best as a duet. While their first choice for the duet was Elton John, they chose country singer Bryan White. Twain later described White as`` the best male voice in country music. Beyond country music! He's an excellent singer. So he needed to be on this record, because the song soars. It demands that. It demands dynamics.'' White explained that, by the time he went to the recording, the song was mostly finalized, and described it as' extremely challenging 'vocally.
Document 10: List of most-streamed songs on Spotify: This list of most - streamed songs on Spotify contains the top 100 songs with the most streams of all time, as derived from Spotify charts. As of January 2018, six songs have exceeded 1 billion streams, with Ed Sheeran's ``Shape of You ''ranked in the top position.
Document 11: The Long and Winding Road: Paul McCartney said he came up with the title ``The Long and Winding Road ''during one of his first visits to his property High Park Farm, near Campbeltown in Scotland, which he purchased in June 1966. The phrase was inspired by the sight of a road`` stretching up into the hills'' in the remote Highlands surroundings of lochs and distant mountains. He wrote the song at his farm in 1968, inspired by the growing tension among the Beatles. Based on other comments McCartney has made, author Howard Sounes writes, the lyrics can be seen as McCartney expressing his anguish at the direction his personal life was taking in the autumn of 1968, after he had separated from his fiancée Jane Asher, as well as a nostalgic look back at the Beatles' history. McCartney recalled: ``I just sat down at my piano in Scotland, started playing and came up with that song, imagining it was going to be done by someone like Ray Charles. I have always found inspiration in the calm beauty of Scotland and again it proved the place where I found inspiration. ''
Document 12: We Are Never Ever Getting Back Together: After writing Speak Now (2010) entirely solo, Swift opted to collaborate with different songwriters and producers for Red. Thus, she called Max Martin and Shellback, two songwriters and producers whose work she admired, to discuss a possible collaboration. The trio conceived the concept for ``We Are Never Ever Getting Back Together ''shortly after a friend of Swift's ex-boyfriend walked into the recording studio and spoke of rumors he heard that Swift and her former flame were reuniting. After the friend left, Martin and Shellback asked Swift to elaborate on the details of the relationship, which she described as`` break up, get back together, break up, get back together, just, ugh, the worst''. When Martin suggested that they write about the incident. Swift began playing the guitar and singing, ``We are never ever... '', and the song flowed rapidly afterwards. She described the process as one of the most humorous experiences she had while recording, and said the musical partners matched her expectations. An audio clip of her sarcastically speaking about breakups can be heard before the final chorus. The song is reportedly about Swift's ex, Jake Gyllenhaal, as the two had broken up in January 2011 but had been seen on a date a few days later. After the release of the music video, more clues linking the song to Gyllenhaal emerged, with the actor looking like Gyllenhaal, the actor in the video giving her a scarf as Gyllenhaal had reportedly done for Swift and a bracelet Swift wears in the video that is speculated to look similar to that of which Gyllenhaal was rumored to have given Swift for her birthday.
Document 13: List of most-streamed artists on Spotify: Rank Artist Total streams (billions) Country 1. Francesca Michielin 17.1 ITA 2. Justin Bieber 11 CAN As of July 27, 2018
Document 14: List of best-selling singles: According to Guinness World Records, ``White Christmas ''(1942) by Bing Crosby is the best - selling single worldwide, with estimated sales of over 50 million copies. The song recognized as`` the best - selling single of all time'' was released before the pop / rock singles - chart era and ``was listed as the world's best - selling single in the first - ever Guinness Book of Records (published in 1955) and -- remarkably -- still retains the title more than 50 years later. ''Guinness World Records states that double A-side charity single`` Candle in the Wind 1997'' / ``Something About the Way You Look Tonight ''(1997) by Elton John, a tribute to the late Diana, Princess of Wales, is`` the biggest - selling single since UK and US singles charts began in the 1950s, having accumulated worldwide sales of 33 million copies,'' making it the second - best - selling single of all time.
Document 15: Shape of You: ``Shape of You ''is a song by English singer - songwriter Ed Sheeran. It was released as a digital download on 6 January 2017 as one of the double lead singles from his third studio album ÷ (2017), along with`` Castle on the Hill''.
ground_truth: his then - girlfriend, Athina Andrelos
sub_queries: who released the uk's biggest selling single of 2017 Answer: Ed Sheeran
who did Ed Sheeran wrote the song thinking out loud for Answer: his then - girlfriend, Athina Andrelos