In this task, you are given a context, a subject, a relation, and many options. Based on the context, from the options select the object entity that has the given relation with the subject. Answer with text (not indexes).

Ex Input:
Context: The (Spanish and Portuguese for the "reconquest") is the period of history of the Iberian Peninsula spanning approximately 770 years between the Islamic conquest of Hispania in 710 and the fall of the last Islamic state in Iberia at Granada to the expanding Christian kingdoms in 1492. The " ended just before the European discovery of the Americasthe "New World"which ushered in the era of the Portuguese and Spanish colonial empires., Al-Andalus (trans.   Berber: "Andalus"), also known as Muslim Spain or Islamic Iberia, was a medieval Muslim territory and cultural domain occupying at its peak most of what are today Spain and Portugal. At its greatest geographical extent in the eighth century, southern FranceSeptimaniawas briefly under its control. The name more generally describes parts of the Iberian Peninsula governed by Muslims (given the generic name of Moors) at various times between 711 and 1492, though the boundaries changed constantly as the Christian Reconquista progressed., Spain, officially the Kingdom of Spain, is a sovereign state largely located on the Iberian Peninsula in southwestern Europe, with two large archipelagos, the Balearic Islands in the Mediterranean Sea and the Canary Islands off the North African Atlantic coast, two cities Ceuta and Melilla in the North African mainland and several small islands in the Alboran Sea near the Moroccan coast. Its mainland is bordered to the south and east by the Mediterranean Sea except for a small land boundary with Gibraltar; to the north and northeast by France, Andorra, and the Bay of Biscay; and to the west and northwest by Portugal and the Atlantic Ocean. It is the only European country to have a border with an African country (Morocco) and its African territory accounts for nearly 5% of its population, mostly in the Canary Islands but also in Ceuta and Melilla., A Muslim is someone who follows or practises Islam, a monotheistic Abrahamic religion. Muslims consider the Quran (Koran), their holy book, to be the verbatim word of God as revealed to the Islamic prophet and messenger Muhammad. They also follow the teachings and practices of Muhammad ("sunnah ") as recorded in traditional accounts ("hadith"). "Muslim" is an Arabic word meaning "one who submits (to God)"., Ibn al - Abbar , in full Abu Abd Allah Muhammad Ibn al - Abbar ( 1199 -- 1260 ) was a well - known poet , diplomat , theologian and scholar from al - Andalus and perhaps the most famous man of letters produced by the city of Valencia during the Middle Ages . Ibn al - Abbar was born in Valencia , and began his official career as a secretary to the Muslim governor of the Emirate of Balansiya . Well - known is the qasida which he wrote as ambassador of the Hafsid governor of Valencia to the Tunisian sultan asking for help against the forces of king James and the elegy he wrote after the fall of the city ( September 1238 ) . He then settled in Tunisia . Later he fell in disgrace and was burnt at the stake because of his writings . He died in Béjaïa . His works that remain ( La Tunica recamada and Complemento al libro del regalo ) are of great importance for the understanding of the history and the culture of his period ., Portugal (Portuguese: ), officially the Portuguese Republic (Portuguese: ), is a country on the Iberian Peninsula in Southwestern Europe. It is the westernmost country of mainland Europe. To the west and south it is bordered by the Atlantic Ocean and to the east and north by Spain. The PortugalSpain border is long and considered the longest uninterrupted border within the European Union. The republic also includes the Atlantic archipelagos of the Azores and Madeira, both autonomous regions with their own regional governments., The Iberian Peninsula , also known as Iberia , is located in the southwest corner of Europe. The peninsula is principally divided between Portugal and Spain, comprising most of their territory. It also includes Andorra and a small part of France along the peninsula's northeastern edge, as well as Gibraltar on its south coast, a small peninsula which forms an overseas territory of the United Kingdom. With an area of approximately , it is the second largest European peninsula, after the Scandinavian., Septimania (  ) was the western region of the Roman province of Gallia Narbonensis that passed under the control of the Visigoths in 462, when Septimania was ceded to their king, Theodoric II. Under the Visigoths it was known as simply Gallia or Narbonensis. It corresponded roughly with the modern French region of Languedoc-Roussillon. It passed briefly to the Emirate of Córdoba in the eighth century before its conquest by the Franks, who by the end of the ninth century termed it Gothia or the Gothic March ("Marca Gothica")., Subject: ibn al-abbar, Relation: languages_spoken_or_written, Options: (A) arabic (B) french (C) portugal (D) portuguese (E) spain (F) spanish

Ex Output:
arabic


Ex Input:
Context: Terms of Endearment is a 1983 American comedy-drama film adapted from the novel of the same name by Larry McMurtry, directed, written, and produced by James L. Brooks and starring Shirley MacLaine, Debra Winger, Jack Nicholson, Danny DeVito, Jeff Daniels, and John Lithgow. The film covers 30 years of the relationship between Aurora Greenway (MacLaine) and her daughter Emma (Winger)., Tom Pedigo ( March 4 , 1940 -- January 25 , 2000 ) was an American set decorator . He was nominated for an Academy Award in the category Best Art Direction for the film Terms of Endearment ., Shirley MacLaine (born Shirley MacLean Beaty; April 24, 1934) is an American film, television and theater actress, singer, dancer, activist and author. An Academy Award winner, MacLaine received the 40th AFI Life Achievement Award from the American Film Institute in 2012, and received the Kennedy Center Honors for her lifetime contributions to American culture through the performing arts in 2013. She is known for her New Age beliefs, and has an interest in spirituality and reincarnation. She has written a series of autobiographical works that describe these beliefs, document her world travels, and describe her Hollywood career., Jeffrey Warren Daniels (born February 19, 1955) is an American actor, musician, and playwright, whose career includes roles in films, stage productions and on television, for which he has won an Emmy Award and received Golden Globe, Screen Actors Guild and Tony Award nominations., John Arthur Lithgow (; born , 1945) is an American actor, musician, singer, and author. He has received two Tony Awards, five Emmy Awards, two Golden Globe Awards, three Screen Actors Guild Awards, an American Comedy Award, four Drama Desk Awards and has also been nominated for two Academy Awards and four Grammy Awards. Lithgow has received a star on the Hollywood Walk of Fame and has been inducted into the American Theater Hall of Fame., Larry Jeff McMurtry (born June 3, 1936) is an American novelist, essayist, bookseller and screenwriter whose work is predominantly set in either the old West or in contemporary Texas. His novels include "Horseman, Pass By" (1962), "The Last Picture Show" (1966) and "Terms of Endearment" (1975), which were adapted into films earning 26 Academy Award nominations (10 wins). His 1985 Pulitzer Prize-winning novel "Lonesome Dove" was adapted into a television miniseries that earned 18 Emmy Award nominations (seven wins), with the other three novels in his "Lonesome Dove" series adapted into three more miniseries earning eight more Emmy nominations. McMurtry and co-writer Diana Ossana adapted the screenplay for "Brokeback Mountain" (2005), which earned eight Academy Award nominations with three wins, including McMurtry and Ossana for Best Adapted Screenplay., Debra Lynn Winger (born May 16, 1955) is an American actress. She has been nominated three times for the Academy Award for Best Actress; for "An Officer and a Gentleman" (1982), "Terms of Endearment" (1983), and "Shadowlands" (1993). She won the National Society of Film Critics Award for Best Actress for "Terms of Endearment", and the Tokyo International Film Festival Award for Best Actress for "A Dangerous Woman" (1993). Her other film roles include "Urban Cowboy" (1980), "Legal Eagles" (1986), "Black Widow" (1987), "Betrayed" (1988), "Forget Paris" (1995), and "Rachel Getting Married" (2008). In 2012, she made her Broadway debut in the original production of the David Mamet play "The Anarchist"., Subject: tom pedigo, Relation: award_received, Options: (A) academy awards (B) afi life achievement award (C) american film institute (D) award (E) emmy award (F) hollywood walk of fame (G) national society of film critics (H) pulitzer prize

Ex Output:
emmy award


Ex Input:
Context: Made of Honor (Made of Honour in the United Kingdom, Ireland, Canada and Australia) is a 2008 American romantic comedy film directed by Paul Weiland and written by Adam Sztykiel, Deborah Kaplan and Harry Elfont. The film stars Patrick Dempsey, Michelle Monaghan and Sydney Pollack, in his final screen appearance prior to his death less than a month after the film's release. , A movie theater or movie theatre (also called a cinema) is a venue, usually a building, that contains an auditorium for viewing films (also called movies or motion pictures), for entertainment. Most, but not all, movie theaters are commercial operations catering to the general public, who attend by purchasing a ticket. Some movie theaters, however, are operated by non-profit organizations or societies which charge members a membership fee to view films., Patrick Galen Dempsey (born January 13, 1966) is an American actor and race car driver, best known for his role as neurosurgeon Dr. Derek "McDreamy" Shepherd on "Grey's Anatomy". He saw early success as an actor, starring in a number of films in his early 20s, including "Can't Buy Me Love" (1987) and "Loverboy" (1989). In the 1990s, he mostly appeared in smaller roles in film, such as "Outbreak" (1995), and television, before landing a lead role in "Sweet Home Alabama" (2002), a surprise box office hit. He has since then starred in a number of other films, including "Enchanted" (2007), "Made of Honor" (2008), "Valentine's Day" (2010), "Flypaper" (2011), "Freedom Writers" (2007), and "" (2011)., Grey's Anatomy is an American medical drama television series that premiered on American Broadcasting Company (ABC) as a mid-season replacement on March 27, 2005. The series focuses on the fictional lives of surgical interns, residents, and attendings as they gradually evolve into seasoned doctors, while trying to maintain personal lives and relationships. The title is a play on "Gray's Anatomy", a human anatomy textbook by Henry Gray. The show's premise originated with Shonda Rhimes, who serves as an executive producer, along with Betsy Beers, Mark Gordon, Krista Vernoff, Rob Corn, Mark Wilding, and Allan Heinberg. Although the show is set in Seattle at the fictional Grey-Sloan Memorial Hospital (Formerly Seattle Grace-Mercy West) it is primarily filmed in Los Angeles, California. The show was originally titled "Complications" following the complicated medical procedures and personal lives of the cast., Television or TV is a telecommunication medium used for transmitting moving images in monochrome (black-and-white), or in color, and in two or three dimensions and sound. It can refer to a television set, a television program ("TV show"), or the medium of television transmission. Television is a mass medium, for entertainment, education, news, and advertising., Lucky 7 is a 2003 television film starring Patrick Dempsey and Kimberly Williams ., A television film (also known as a TV film; television movie; TV movie; telefilm; telemovie; made-for-television film; direct-to-TV film; movie of the week (MOTW or MOW); feature-length drama; single drama and original movie) is a feature-length motion picture that is produced for, and originally distributed by or to, a television network, in contrast to theatrical films, which are made explicitly for initial showing in movie theaters., A film, also called a movie, motion picture, theatrical film or photoplay, is a series of still images which, when shown on a screen, creates the illusion of moving images due to the phi phenomenon. This optical illusion causes the audience to perceive continuous motion between separate objects viewed rapidly in succession. The process of filmmaking is both an art and an industry. A film is created by photographing actual scenes with a motion picture camera; by photographing drawings or miniature models using traditional animation techniques; by means of CGI and computer animation; or by a combination of some or all of these techniques and other visual effects., A television network is a telecommunications network for distribution of television program content, whereby a central operation provides programming to many television stations or pay television providers. Until the mid-1980s, television programming in most countries of the world was dominated by a small number of broadcast networks. Many early television networks (such as the BBC, NBC or CBC) evolved from earlier radio networks., Subject: lucky 7 , Relation: genre, Options: (A) animation (B) art (C) computer animation (D) dr (E) drama (F) education (G) entertainment (H) march (I) mass (J) miniature (K) optical illusion (L) play (M) radio (N) romantic (O) romantic comedy (P) television (Q) television series (R) theater (S) tv show

Ex Output:
romantic comedy