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: As far as we know, the earliest cantatas of Johann Sebastian Bach were performed in Mühlhausen from 1706 to 1708. He was employed as an organist there, but he occasionally composed cantatas, mostly for special occasions. The cantatas were based mainly on biblical texts and hymns, such as Aus der Tiefen rufe ich, Herr, zu dir, BWV 131 (a psalm setting), and the Easter chorale cantata Christ lag in Todes Banden, BWV 4.
Bach was next appointed organist and chamber musician in Weimar on 25 June 1708 at the court of the co-reigning dukes in Saxe-Weimar, Wilhelm Ernst and his nephew Ernst August. He initially concentrated on the organ, composing major works for the instrument, including the Orgelbüchlein, the Toccata and Fugue in D minor, BWV 565, and the Prelude and Fugue in E major, BWV 566. He was promoted to Konzertmeister on 2 March 1714, an honour that entailed performing a church cantata monthly in the Schlosskirche. The first cantatas he composed in the new position were Himmelskönig, sei willkommen, BWV 182, for Palm Sunday, Weinen, Klagen, Sorgen, Zagen, BWV 12 for Jubilate Sunday, and Erschallet, ihr Lieder, BWV 172, for Pentecost. Mostly inspired by texts by the court poet, Salomo Franck, they contain recitatives and arias. When Johann Samuel Drese, the Kapellmeister (director of music), died in 1716, Bach hoped in vain to become his successor. Bach looked for a better position and found it as Kapellmeister at the court of Leopold, Prince of Anhalt-Köthen. However, the duke in Weimar did not dismiss him and arrested him for disobedience. He was released on 2 December 1717.In Köthen, Bach found an employer who was an enthusiastic musician himself. The court was Calvinist, therefore Bach's work from this period was mostly secular, including the orchestral suites, the cello suites, the sonatas and partitas for solo violin, and the Brandenburg Concertos. He composed secular cantatas for the court for occasions such as New Year's Day and the prince's birthday, including Die Zeit, die Tag und Jahre macht, BWV 134a. He later parodied some of them as church cantatas without major changes, for example Ein Herz, das seinen Jesum lebend weiß, BWV 134. 
Question: What is full the name of the person whose successor Bach hoped in vain to become?

Ex Output:
Johann Samuel Drese.


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: In 1885–87 the partnership designed Abbeystead House for the 4th Earl of Sefton in North Lancashire. Hubbard describes this as "the finest of Douglas's Elizabethan houses, and one of the largest which he ever designed". During this time additions were made to Jodrell Hall in Cheshire and Halkyn Castle in Flintshire. In 1885 the Castle Hotel at Conwy, Caernarfonshire, was remodelled, and in 1887–88 a strongroom was added to Hawarden Castle, followed by a porch in 1890. During this period more buildings were added to the Eaton Hall estate, and these included houses and cottages, such as Eccleston Hill, and Eccleston Ferry House, and farms such as Saighton Lane Farm. In 1890–91 an obelisk was built in the Belgrave Avenue approach to Eaton Hall. The last house designed by Douglas on a large scale was Brocksford Hall (1893) in Derbyshire. This was a country house in Elizabethan style using diapered brick and stone dressings with a clock tower. In Chester city centre, 38 Bridge Street (1897) is a timber-framed shop that incorporates a section of Chester Rows and contains heavily decorated carving. From 1892 the partnership designed houses and cottages in Port Sunlight for Lever Brothers. Also in the village they designed the Dell Bridge (1894), and the school (1894–96), which is now called the Lyceum. In 1896 Douglas designed a house for himself, Walmoor Hill in Dee Banks, Chester, in Elizabethan style. Between 1895 and 1897 he designed a range of buildings on the east side of St Werburgh Street in the centre of Chester. At its south end, on the corner of Eastgate Street, is a bank whose ground storey is built in stone, and behind this leading up St Werburgh Street, the ground storey consists of shop fronts. Above this the range consists of two storeys plus an attic, which are covered in highly ornamented timber-framing. On the first floor is a series of oriel windows, the second floor is jettied, and at the top are eleven gables. Pevsner considers that this range of buildings is "Douglas at his best (though also at his showiest)". Hubbard expresses the opinion that "in this work, the city's half-timber revival reached its very apogee". 
Question: What is the name of the partnership that created cottages for Lever Brothers?

Ex Output:

Douglas.