In this task, you're expected to write answers to questions involving multiple references to the same entity. The answer to the question should be unambiguous and a phrase in the paragraph. Most questions can have only one correct answer.

Ex Input:
Passage: Katheryn Elizabeth Hudson (born October 25, 1984), known professionally as Katy Perry, is an American singer, songwriter, and television judge. After singing in church during her childhood, she pursued a career in gospel music as a teenager. Perry signed with Red Hill Records and released her debut studio album Katy Hudson under her birth name in 2001, which was commercially unsuccessful. She moved to Los Angeles the following year to venture into secular music after Red Hill ceased operations and she subsequently began working with producers Glen Ballard, Dr. Luke, and Max Martin. After adopting the stage name Katy Perry and being dropped by The Island Def Jam Music Group and Columbia Records, she signed a recording contract with Capitol Records in April 2007.
Perry rose to fame in 2008 with the release of her second album, a pop rock record titled One of the Boys, and its singles "I Kissed a Girl" and "Hot n Cold". The former track also sparked controversy for its sapphic themes. Her third album, Teenage Dream (2010), ventured into disco, and was her first album to top the U.S. Billboard 200. It topped the U.S. Billboard Hot 100 with the singles "California Gurls", "Teenage Dream", "Firework", "E.T.", and "Last Friday Night (T.G.I.F.)", while "The One That Got Away" reached number three on the chart. The album became the first by a female artist to produce five number-one songs in the U.S., and the second overall after Michael Jackson's album Bad. In March 2012, she re-issued the album as Teenage Dream: The Complete Confection, which produced the songs "Part of Me" and "Wide Awake". Her fourth album, Prism (2013), was her second to peak atop the U.S. charts. It is influenced by pop and dance, and she became the first artist with multiple videos to reach one billion views on Vevo with the videos for its songs "Roar" and "Dark Horse". Her fifth album, Witness (2017), delved into electropop and became her third album to reach number one in the U.S. "Chained to the Rhythm" was the album's most successful single, breaking Spotify's record at the time for most first-day streams for a song by a female artist.
Perry has received various awards, including four Guinness World Records, five American Music Awards, a Brit Award, and a Juno Award, and has been included in the annual Forbes lists of highest-earning women in music from 2011–2018. Her estimated net worth as of 2016 is $125 million. She is one of the best-selling music artists of all time, having sold more than 100 million records globally throughout her career. In film, she released an autobiographical documentary titled Katy Perry: Part of Me in 2012, and voiced Smurfette in the 2011 film The Smurfs and its sequel in 2013. Perry also began serving as a judge on American Idol in 2018. 
Question: What is the better-known last name of the person who signed a recording contract with Capitol Records in April 2007?

Ex Output:
Perry.


Ex Input:
Passage: The yellowhammer is a conspicuous, vocal and formerly common country bird, and has attracted human interest. Yellowham Wood and Yellowham Hill, near Dorchester, both derive their names from the bird. Robbie Burns' poem "The Yellow, Yellow Yorlin'" gets its title from a Scottish name for the yellowhammer, which is given an obvious sexual connotation: I met a pretty maid, an' unto her I said,/ "I wad fain fin' your yellow, yellow yorlin'." More factual descriptions of the bird and its behaviour can be found in John Clare's "The Yellowhammer's Nest" and "The Yellowhammer", whose final lines read:
Enid Blyton helped to popularise the bird's song as "little bit of bread and no cheese" in books such as The Ship of Adventure and Five Go Off in a Caravan, and wrote a poem called "The Yellow-hammer".
Beethoven's student, Carl Czerny, and biographer Anton Schindler, both suggested that the composer got the idea for the first four notes of his 5th symphony from the yellowhammer's call, although it is more likely that the opening of the 4th Piano Concerto was actually the work in question. Beethoven also used the yellowhammer theme in two piano sonatas, no. 21 in C major (the "Waldstein", Op.53) and No. 23 in F minor (the "Appassionata", Op.57).Olivier Messiaen often used birdsong as an inspiration for his music, and the yellowhammer features in Chronochromie, Catalogue d'oiseaux, La fauvette des jardins and Méditations sur le mystère de la Sainte Trinité, appearing in four movements of the last piece.An old legend links the yellowhammer to the Devil. Its tongue was supposed to bear a drop of his blood, and the intricate pattern on the eggs was said to carry a concealed, possibly evil, message; these satanic associations sometimes led to the persecution of the bird. The unusual appearance of the eggs also led to "scribble lark", an old name for the bird. 
Question: What are the names of the two piano sonatas Beethoven used the yellowhammer theme in?

Ex Output:
no. 21 in C major.


Ex Input:
Passage: During the First World War, a British officer - David Compton - on leave from the trenches in Paris falls in love with and has a liaison of three days with a French performing artist: Deloryse/Lola. He proposes to her and tells her to get ready for the wedding in an hour. He rushes to search for the English church. On the way he meets his superior, who tells him that he has to report immediately, they have to leave Paris. He doesn't even have the time to see his fiancé again.
After returning to fight on the front, he suffers from shellshock and forgets everything that happened in the last four years. After recovering he goes back to his wealthy life of rich industrialist, marries a British Socialite, with whom he runs entirely separate lives. She is the one to invite Deloryse to London to dance on one of her charity events. While dancing and singing on the stage she sees him in a loge. During her second number, where she sings the same song of when he met her in Paris, he finally has a flash back of the song and the singer. After the performance he sends her a notice that he wants to see her. She's very excited, but when Doctor Gavron comes to see her, he measures her pulse and tells her, that she has to give up the stage, as the strain might kill her, even if she dances once more. Then David comes. He meets her and his son Davey. But  he is now married to a British Socialite: Vesta Compton, who never wanted children, to the big regret of her husband. 
Question: Whose wife holds charity events?

Ex Output:

David Compton.