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: Rajaraja Chola II succeeded his father Kulothunga Chola II to the Chola throne in 1150. He was made his heir apparent and coregent in 1146 and so the inscriptions of Rajaraja II count his reign from 1146. Rajaraja's reign began to show signs of the coming end of the great dynasty., Kulothunga Chola II was a 12th-century king of the Chola Dynasty of the Tamil people of South India. He succeeded his father Vikrama Chola to the throne in 1135 CE. Vikrama Chola made Kulothunga his heir apparent and coregent in 1133 CE, so the inscriptions of Kulothunga II count his reign from 1133 CE. , Rajadhiraja Chola II ( 1166 -- 1178 CE ) reigned as the Chola king succeeding Rajaraja Chola II. According to historian N. Sethuraman , Rajadhiraja was not the direct descendant of Rajaraja Chola II but was a son of his sister . Rajaraja Chola II chose Rajadhiraja as his heir in 1166 as he did not have any sons of his own . Soon after the installation of Rajadhiraja II , a fierce succession dispute in the Pandya country led to the intervention of the Chola and the Sinhalese rulers on opposite sides which brought misery to both . Out of the ashes of this civil war arose the Pandya power which in its renewed strength soon swallowed both the Chola and Sinhalese kingdoms ., Subject: rajadhiraja chola ii, Relation: father, Options: (A) rajaraja chola ii (B) vikrama chola

Ex Output:
vikrama chola


Ex Input:
Context: Kojo Adeyemo Annan ( born 25 July 1973 in Geneva , Switzerland ) is the only son of former UN Secretary - General Kofi Annan ., Nelson Rolihlahla Mandela (18 July 1918  5 December 2013) was a South African anti-apartheid revolutionary, politician, and philanthropist, who served as President of South Africa from 1994 to 1999. He was the country's first black head of state and the first elected in a fully representative democratic election. His government focused on dismantling the legacy of apartheid by tackling institutionalised racism and fostering racial reconciliation. Ideologically an African nationalist and socialist, he served as President of the African National Congress (ANC) party from 1991 to 1997.
A Xhosa, Mandela was born in Mvezo to the Thembu royal family. He studied law at the University of Fort Hare and the University of the Witwatersrand before working as a lawyer in Johannesburg. There he became involved in anti-colonial and African nationalist politics, joining the ANC in 1943 and co-founding its Youth League in 1944. After the National Party's white-only government established apartheida system of racial segregation that privileged whiteshe and the ANC committed themselves to its overthrow. Mandela was appointed President of the ANC's Transvaal branch, rising to prominence for his involvement in the 1952 Defiance Campaign and the 1955 Congress of the People. He was repeatedly arrested for seditious activities and was unsuccessfully prosecuted in the 1956 Treason Trial. Influenced by Marxism, he secretly joined the South African Communist Party (SACP). Although initially committed to non-violent protest, in association with the SACP he co-founded the militant Umkhonto we Sizwe in 1961 and led a sabotage campaign against the government. In 1962, he was arrested for conspiring to overthrow the state and sentenced to life imprisonment in the Rivonia Trial.
Mandela served 27 years in prison, initially on Robben Island, and later in Pollsmoor Prison and Victor Verster Prison. Amid growing domestic and international pressure, and with fears of a racial civil war, President F. W. de Klerk released him in 1990. Mandela and de Klerk negotiated an end to apartheid and organised the 1994 multiracial general election in which Mandela led the ANC to victory and became President. Leading a broad coalition government which promulgated a new constitution, Mandela emphasised reconciliation between the country's racial groups and created the Truth and Reconciliation Commission to investigate past human rights abuses. Economically, Mandela's administration retained its predecessor's liberal framework despite his own socialist beliefs, also introducing measures to encourage land reform, combat poverty, and expand healthcare services. Internationally, he acted as mediator in the Pan Am Flight 103 bombing trial and served as Secretary-General of the Non-Aligned Movement from 1998 to 1999. He declined a second presidential term and in 1999 was succeeded by his deputy, Thabo Mbeki. Mandela became an elder statesman and focused on combating poverty and HIV/AIDS through the charitable Nelson Mandela Foundation.
Mandela was a controversial figure for much of his life. Although critics on the right denounced him as a communist terrorist and those on the radical left deemed him too eager to negotiate and reconcile with apartheid's supporters, he gained international acclaim for his activism. Widely regarded as an icon of democracy and social justice, he received more than 250 honoursincluding the Nobel Peace Prizeand became the subject of a cult of personality. He is held in deep respect within South Africa, where he is often referred to by his Xhosa clan name, Madiba, and described as the "Father of the Nation"., Ghana, officially the Republic of Ghana is a unitary presidential constitutional democracy, located along the Gulf of Guinea and Atlantic Ocean, in the subregion of West Africa. Spanning a land mass of 238,535 km², Ghana is bordered by the Ivory Coast in the west, Burkina Faso in the north, Togo in the east and the Gulf of Guinea and Atlantic Ocean in the south. "Ghana" means "Warrior King" in the Soninke language., Kofi Atta Annan (born 8 April 1938) is a Ghanaian diplomat who served as the seventh Secretary-General of the United Nations from January 1997 to December 2006. Annan and the UN were the co-recipients of the 2001 Nobel Peace Prize. He is the founder and chairman of the Kofi Annan Foundation, as well as chairman of The Elders, an international organization founded by Nelson Mandela., Subject: kojo annan, Relation: country_of_citizenship, Options: (A) burkina faso (B) ghana (C) ivory coast (D) lawyer (E) politician (F) transvaal

Ex Output:
ghana


Ex Input:
Context: Mindanao is the second largest and southernmost major island in the Philippines. It is also the name of one of the three island groups in the country (the other two being Luzon and the Visayas), consisting of the island of Mindanao and smaller outlying islands. Davao City is the largest city in Mindanao. As of the 2010 census, the island's population itself is 20,281,545 people, while the Mindanao island group has 21,968,174 inhabitants. Davao City is the most populous in Mindanao as 1,632,991 population, and the 2nd is Zamboanga City as 861,799 population, the 3rd is Cagayan de Oro City as 675,950 population, and followed by General Santos City as 594,446 population as of 2015 census., Asia is Earth's largest and most populous continent, located primarily in the eastern and northern hemispheres and sharing the continental landmass of Eurasia with the continent of Europe. Asia covers an area of , about 30% of Earth's total land area and 8.7% of the Earth's total surface area. The continent, which has long been home to the majority of the human population, was the site of many of the first civilizations. Asia is notable for not only its overall large size and population, but also dense and large settlements as well as vast barely populated regions within the continent of 4.4 billion people., China, officially the People's Republic of China (PRC), is a unitary sovereign state in East Asia. With a population of over 1.381 billion, it is the world's most populous country. The state is governed by the Communist Party of China, and its capital is Beijing. It exercises jurisdiction over 22 provinces, five autonomous regions, four direct-controlled municipalities (Beijing, Tianjin, Shanghai, and Chongqing), and two mostly self-governing special administrative regions (Hong Kong and Macau), and claims sovereignty over Taiwan. The country's major urban areas include Shanghai, Guangzhou, Beijing, Chongqing, Shenzhen, Tianjin and Hong Kong. China is a great power and a major regional power within Asia, and has been characterized as a potential superpower., An island country is a country whose primary territory consists of one or more islands or parts of islands. As of 2011, 46 (approximately 24%) of the 193 UN member states are island countries., Southeast Asia or Southeastern Asia is a subregion of Asia, consisting of the countries that are geographically south of China, east of India, west of New Guinea and north of Australia. The region lies near the intersection of geological plates, with heavy seismic and volcanic activity. Southeast Asia consists of two geographic regions:, Vietnam, officially the Socialist Republic of Vietnam (SRV), is the easternmost country on the Indochina Peninsula in Southeast Asia. With an estimated 90.5 million inhabitants , it is the world's 14th-most-populous country, and the eighth-most-populous Asian country. Vietnam is bordered by China to the north, Laos to the northwest, Cambodia to the southwest, Thailand across the Gulf of Thailand to the southwest, and the Philippines, Malaysia and Indonesia across the South China Sea to the east and southeast. Its capital city has been Hanoi since the reunification of North and South Vietnam in 1976., 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., The Ilocos Region  is an administrative region of the Philippines, designated as Region I, occupying the northwestern section of Luzon. It is bordered by the Cordillera Administrative Region to the east, the Cagayan Valley to the northeast and southeast, and the Central Luzon to the south. To the west lies the South China Sea., Palau (historically Belau or Pelew), officially the Republic of Palau, is an island country located in the western Pacific Ocean. The country contains approximately 250 islands, forming the western chain of the Caroline Islands in Micronesia, and has an area of . The most populous island is Koror. The capital Ngerulmud is located on the nearby island of Babeldaob, in Melekeok State. Palau shares maritime boundaries with Indonesia, the Philippines, and the Federated States of Micronesia., Quezon City (  also known as QC) is the most populous city in the Philippines. It is one of the cities that make up Metro Manila, the National Capital Region of the Philippines. Quezon City was named after Manuel L. Quezon, second President of the Philippines, who founded the city and developed it to replace Manila as the national capital for 28 years from 1948 to 1976. Quezon City is not located in and should not be confused with Quezon Province, which was also named after the president. It is the largest city in Metro Manila in terms of land area and most populated local government unit in the country., The Philippine Sea is a marginal sea east and northeast of the Philippines occupying an estimated surface area of 5 million km² (2 million mi²). of the western part of the North Pacific Ocean. It is bordered by the Philippine archipelago (Luzon, Catanduanes, Samar, Leyte and Mindanao) on the southwest; Halmahera, Morotai, Palau, Yap, and Ulithi (of the Carolines) on the southeast; the Marianas, including Guam, Saipan, and Tinian, on the east; the Bonin and Iwo Jima on the northeast; the Japanese islands of Honshu, Shikoku, and Kysh on the north; the Ryukyu Islands on the northwest; and Taiwan in the west., Malaysia is a federal constitutional monarchy located in Southeast Asia. It consists of thirteen states and three federal territories and has a total landmass of separated by the South China Sea into two similarly sized regions, Peninsular Malaysia and East Malaysia (Malaysian Borneo). Peninsular Malaysia shares a land and maritime border with Thailand and maritime borders with Singapore, Vietnam, and Indonesia. East Malaysia shares land and maritime borders with Brunei and Indonesia and a maritime border with the Philippines and Vietnam. The capital city is Kuala Lumpur, while Putrajaya is the seat of the federal government. With a population of over 30 million, Malaysia is the 44th most populous country. The southernmost point of continental Eurasia, Tanjung Piai, is in Malaysia. Located in the tropics, Malaysia is one of 17 megadiverse countries on earth, with large numbers of endemic species., Metropolitan Manila, commonly known as Metro Manila or simply Manila, is the capital region of the Philippines, is the seat of government, the 2nd most populous and the most densely populated region of the country. The National Capital Region (NCR) is composed of Manila, the capital city of the country, Quezon City, the country's most populous city, and the cities of Caloocan, Las Piñas, Makati, Malabon, Mandaluyong, Marikina, Muntinlupa, Navotas, Parañaque, Pasay, Pasig, San Juan, Taguig, and Valenzuela, including the only remaining municipality of Pateros., Ilocos Sur is a province in the Philippines located in the Ilocos Region in Luzon. Vigan City, located on the mouth of the Mestizo River is the provincial capital. Ilocos Sur is bordered by Ilocos Norte and Abra to the north, Mountain Province to the east, La Union and Benguet to the south and the South China Sea to the west., The Luzon Strait (Filipino: "Kipot ng Luzon") is the strait between Taiwan and Luzon island of the Philippines. The strait thereby connects the Philippine Sea to the South China Sea in the western Pacific Ocean., The Visayas or the Visayan Islands (Visayan: "Kabisay-an",  ), is one of the three principal geographical divisions of the Philippines, along with Luzon and Mindanao. It consists of several islands, primarily surrounding the Visayan Sea, although the Visayas are considered the northeast extremity of the entire Sulu Sea. Its inhabitants are predominantly the Visayan people., The South China Sea is a marginal sea that is part of the Pacific Ocean, encompassing an area from the Karimata and Malacca Straits to the Strait of Taiwan of around . The area's importance largely results from one-third of the world's shipping sailing through its waters and that it is believed to hold huge oil and gas reserves beneath its seabed., Ilocos Norte is a province of the Philippines located in the Ilocos Region. Its capital is Laoag City and is located at the northwest corner of Luzon Island, bordering Cagayan to the extreme northeast, Apayao to the east, and Abra to the southeast, and Ilocos Sur to the southwest. Ilocos Norte faces the South China Sea to the west and the Luzon Strait to the north., Paoay is a fourth class municipality in the province of Ilocos Norte , Philippines . According to the 2010 census , it had a population of 23,956 people . The town is home to the Paoay Church , a UNESCO World Heritage Site ., Laoag, officially the City of Laoag, is a third-class city and capital of the province of Ilocos Norte in the Philippines. The city is the province's political, commercial, and industrial hub and the location of the Ilocos Region's only commercial airport, the Laoag International Airport. According to the 2010 census, it had a population of 104,904 people., Apayao is a landlocked province in the Philippines in the Cordillera Administrative Region in Luzon. Its capital town is Kabugao., The Celebes Sea of the western Pacific Ocean is bordered on the north by the Sulu Archipelago and Sulu Sea and Mindanao Island of the Philippines, on the east by the Sangihe Islands chain, on the south by Sulawesi's Minahassa Peninsula, and on the west by Kalimantan in Indonesia. It extends 420 miles (675 km) north-south by 520 miles (837 km) east-west and has a total surface area of , to a maximum depth of . The sea opens southwest through the Makassar Strait into the Java Sea., Taiwan, officially the Republic of China (ROC), is a state in East Asia. Neighbors include China (officially the People's Republic of China, abbreviated as PRC) to the west, Japan to the northeast, and the Philippines to the south.
Taiwan is the most populous state that is not a member of the United Nations, and the one with the largest economy., Luzon is the largest and most populous island in the Philippines and the 15th largest in the world. Located in the northern region of the archipelago, it is the economic and political center of the nation, being home to the country's capital city, Manila, as well as Quezon City, the country's most populous. With a population of 52.99 million , it is the fourth most populous island in the world (after Java, Honshu, and Great Britain), containing about 53% of the country's total population., Manila (or ), officially City of Manila, is the capital of the Philippines., The Philippines, officially the Republic of the Philippines, is a sovereign island country in Southeast Asia situated in the western Pacific Ocean. It consists of about 7,641 islands that are categorized broadly under three main geographical divisions from north to south: Luzon, Visayas, and Mindanao. The capital city of the Philippines is Manila and the most populous city is Quezon City, both part of Metro Manila. Bounded by the South China Sea on the west, the Philippine Sea on the east and the Celebes Sea on the southwest, the Philippines shares maritime borders with Taiwan to the north, Vietnam to the west, Palau to the east and Malaysia and Indonesia to the south., Cagayan is a province of the Philippines in the Cagayan Valley region in the northeast of Luzon Island, and includes the Babuyan Islands to the north. The province borders Ilocos Norte and Apayao to the west, and Kalinga and Isabela to the south. Its capital is Tuguegarao., Subject: paoay, Relation: shares_border_with, Options: (A) as (B) asia (C) australia (D) cagayan de oro (E) celebes sea (F) cordillera (G) davao city (H) east (I) europe (J) gas (K) guangzhou (L) hong kong (M) ilocos norte (N) ilocos sur (O) indonesia (P) island (Q) kalinga (R) laoag (S) leyte (T) major (U) malaysia (V) manila (W) most (X) mountain (Y) muntinlupa (Z) national capital region ([) navotas (\) north (]) northern region (^) northwest (_) pacific ocean (`) palau (a) parañaque (b) pasig (c) putrajaya (d) quezon (e) quezon city (f) san juan (g) south (h) southwest (i) sulu sea (j) sur (k) taiwan (l) thailand (m) tianjin (n) tuguegarao (o) valenzuela (p) vietnam

Ex Output:

laoag