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).
One example: Context: Joanne McLeod is a Canadian figure skating coach. She is the skating director at the Champs International Skating Centre of BC (formerly known as the BC Centre of Excellence). Here current and former students include Emanuel Sandhu, Mira Leung, Kevin Reynolds, Jeremy Ten, Nam Nguyen, and many others. In 2012, McLeod became the first level 5 certified figure skating coach in British Columbia., Victor Kraatz, MSC (born April 7, 1971) is a Canadian former ice dancer. In 2003, he and his partner, Shae-Lynn Bourne, became the first North American ice dancers to win a World Championship., Allie Hann-McCurdy (born May 23, 1987 in Nanaimo, British Columbia) is a Canadian ice dancer. McCurdy began skating at age eight and was a singles skater until age 12 when she switched to ice dancing. In 2003 she teamed up with Michael Coreno, with whom she was the 2010 Four Continents silver medalist and the 2008 Canadian bronze medalist. The pair retired in June 2010, to coach at the Gloucester Skating Club., Maikki Uotila - Kraatz ( born 25 February 1977 ) is a Finnish ice dancer . She is a former Finnish national champion with Toni Mattila . She married Victor Kraatz on June 19 , 2004 . The two coach in Vancouver , where they are the ice dancing directors at the BC Centre of Excellence . She and Kraatz have two sons , born September 14 , 2006 and July 10 , 2010 ., Burnaby is a city in British Columbia, Canada, located immediately to the east of Vancouver. It is the third-largest city in British Columbia by population, surpassed only by nearby Surrey and Vancouver., Canada (French: ) is a country in the northern half of North America. Its ten provinces and three territories extend from the Atlantic to the Pacific and northward into the Arctic Ocean, covering , making it the world's second-largest country by total area and the fourth-largest country by land area. Canada's border with the United States is the world's longest land border. The majority of the country has a cold or severely cold winter climate, but southerly areas are warm in summer. Canada is sparsely populated, the majority of its land territory being dominated by forest and tundra and the Rocky Mountains. About four-fifths of the country's population of 36 million people is urbanized and live near the southern border. Its capital is Ottawa, its largest city is Toronto; other major urban areas include Montreal, Vancouver, Calgary, Edmonton, Quebec City, Winnipeg and Hamilton., British Columbia (BC) is the westernmost province of Canada, with a population of more than four million people located between the Pacific Ocean and the Rocky Mountains.
British Columbia is also a component of the Pacific Northwest and the Cascadia bioregion, along with the U.S. states of Idaho, Oregon, Washington and Alaska., The "Champs International Skating Centre of British Columbia" (formerly known as the 'BC Centre of Excellence') is one of two major figure skating training centers in Canada. Located in Burnaby, British Columbia, it is home to many great national and international skaters. The programs there are overseen by a staff, including Joanne McLeod, who coaches 3-time Canadian men's national champion Emanuel Sandhu; Bruno Marcotte, who competed at the 2002 Winter Olympics; Victor Kraatz, the 2003 World Champion in ice dancing, and Maikki Uotila, who was a national champion in Finland. The center operates out of Canlan Ice Sports Burnaby 8 Rinks. Notable skaters who train there include Emanuel Sandhu, Mira Leung, Allie Hann-McCurdy & Michael Coreno, Jessica Millar & Ian Moram, Jeremy Ten, and Kevin Reynolds. This skating school is sometimes known as a training site for international competitors to practice for competitions in Vancouver. Champs International hosts its annual competition known as the BC/YK SummerSkate Competition every August., Shae-Lynn Bourne, MSC (born January 24, 1976) is a Canadian ice dancer. In 2003, she and partner Victor Kraatz became the first North American ice dancers to win a World Championship. They competed at three Winter Olympic Games, placing 10th at the 1994 Winter Olympics, 4th at the 1998 Winter Olympics, and 4th at the 2002 Winter Olympics., Vancouver, officially the City of Vancouver, is a coastal seaport city on the mainland of British Columbia, Canada, and the most populous city in the province., Subject: maikki uotila, Relation: country_of_citizenship, Options: (A) american (B) british (C) canada (D) finland (E) montreal
Solution is here: finland
Explanation: This is a good example, as maikki uotila is citizen of the finland.

Now, solve this: Context: The Abbasid Caliphate (or "") was the third of the Islamic caliphates to succeed the Islamic prophet Muhammad. The Abbasid dynasty descended from Muhammad's youngest uncle, Abbas ibn Abd al-Muttalib (566653 CE), from whom the dynasty takes its name. They ruled as caliphs, for most of their period from their capital in Baghdad in modern-day Iraq, after assuming authority over the Muslim empire from the Umayyads in 750 CE (132AH)., The Ba 'Alawi sadah or Sadah Ba 'Alawi are a group of Hadhrami Sayyid families and social group originating in Hadhramaut in the southwest corner of the Arabian Peninsula. They trace their lineage to al-Imam Ahmad al-Muhajir bin Isa ar-Rumi, a descendant of al-Imam Ja'far as-Sadiq born in 260H, who emigrated from Basra to Hadhramaut in 320H to avoid sectarian violence, including the invasion of the Qaramite forces into the Abbasid Caliphate. The families are descendants of Muhammad the prophet of Islam., Muhammad (c.570 CE 8 June 632 CE) is the central figure of Islam and widely regarded as its founder by non-Muslims. He is known as the "Holy Prophet" to Muslims, almost all of whom consider him to be the last prophet sent by God to mankind to restore Islam, believed by Muslims to be the unaltered original monotheistic faith of Adam, Abraham, Moses, Jesus, and other prophets. Muhammad united Arabia into a single Muslim polity and ensured that his teachings, practices, and the Quran, formed the basis of Islamic religious belief., Indonesia (or ; Indonesian: ), officially the Republic of Indonesia, is a unitary sovereign state and transcontinental country located mainly in Southeast Asia with some territories in Oceania. Situated between the Indian and Pacific oceans, it is the world's largest island country, with more than seventeen thousand islands. At , Indonesia is the world's 14th-largest country in terms of land area and world's 7th-largest country in terms of combined sea and land area. It has an estimated population of over 260 million people and is the world's fourth most populous country, the most populous Austronesian nation, as well as the most populous Muslim-majority country. The world's most populous island of Java contains more than half of the country's population., Tin is a chemical element with the symbolSn (for ) and atomic number50, is a post-transition metal in group 14 of the periodic table. It is obtained chiefly from the mineral cassiterite, which contains tin dioxide, SnO. Tin shows a chemical similarity to both of its neighbors in group 14, germanium and lead, and has two main oxidation states, +2 and the slightly more stable +4. Tin is the 49th most abundant element and has, with 10 stable isotopes, the largest number of stable isotopes in the periodic table, thanks to its magic number of protons. It has two main allotropes: at room temperature, the stable allotrope is -tin, a silvery-white, malleable metal, but at low temperatures it transforms into the less dense grey -tin, which has the diamond cubic structure. Metallic tin is not easily oxidized in air., A sovereign state is, in international law, a nonphysical juridical entity that is represented by one centralised government that has sovereignty over a geographic area. International law defines sovereign states as having a permanent population, defined territory, one government, and the capacity to enter into relations with other sovereign states. It is also normally understood that a sovereign state is neither dependent on nor subjected to any other power or state., Ali Alatas ( Arabic : Al al - As ; 4 November 1932 -- 11 December 2008 ) was an Indonesian diplomat of Ba ' Alawi sada descent , who served as the country 's foreign minister from 1988 to 1999 . He was Indonesia 's longest serving foreign minister ., A foreign minister or minister of foreign affairs (less commonly "for foreign affairs") is generally a cabinet minister in charge of a state's foreign policy and relations., An imam (', plural: ') is an Islamic leadership position. It is most commonly in the context of a worship leader of a mosque and Muslim community by Sunni Muslims. In this context, imams may lead Islamic worship services, serve as community leaders, and provide religious guidance. For Shi'a Muslims, the imam has a more central meaning and role in Islam through the concept of Imamah; the term is only applicable to those members of the house of the prophet ahl al-Bayt, designated as infallibles., Subject: ali alatas, Relation: position_held, Options: (A) 4 (B) abbasid caliphate (C) foreign minister (D) founder (E) leader (F) minister of foreign affairs (G) sovereign
Solution:
minister of foreign affairs