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).

Example Input: Context: John III (20 December 1537  17 November 1592) was King of Sweden from 1568 until his death. He was the son of King Gustav I of Sweden and his second wife Margaret Leijonhufvud. He was also, quite autonomously, the ruler of Finland, as "Duke John" from 1556 to 1563. In 1581 he assumed also the title Grand Prince of Finland. He attained the Swedish throne after a rebellion against his brother Eric XIV. He is mainly remembered for his attempts to close the gap between the newly established Lutheran Church of Sweden and the Catholic church., The Spanish Empire was one of the largest empires in history. It reached the peak of its military, political and economic power under the Spanish Habsburgs, through most of the 16th and 17th centuries, and its greatest territorial extent under the House of Bourbon in the 18th century, when it was the largest empire in the world. The Spanish Empire became the foremost global power of its time and was the first to be called "the empire on which the sun never sets"., A composite monarchy (or composite state) is a historical category, introduced by J. H. Elliott, that describes early modern states consisting of several countries under one ruler, who governs his territories as if they were separate kingdoms, in accordance with local traditions and legal structures. The composite state was the typical kind in the early modern period. H. G. Koenigsberger divides composite states into two classes: those, like the Spanish Empire, that consisted of countries separated by either other states or by the sea, and those, like PolandLithuania, that were contiguous., Sigismund III Vasa ( also known as Sigismund III of Poland , Polish : Zygmunt III Waza , Lithuanian : Žygimantas Vaza , English exonym : Sigmund ; 20 June 1566 -- 30 April 1632 N.S. ) was King of Poland and Grand Duke of Lithuania , monarch of the united Polish -- Lithuanian Commonwealth from 1587 to 1632 , and King of Sweden ( where he is known simply as Sigismund ) from 1592 as a composite monarchy until he was deposed in 1599 . He was the son of King John III of Sweden and his first wife , Catherine Jagellonica of Poland . Elected to the throne of the Polish -- Lithuanian Commonwealth , Sigismund sought to create a personal union between the Commonwealth and Sweden ( Polish -- Swedish union ) , and succeeded for a time in 1592 . After he had been deposed in 1599 from the Swedish throne by his uncle , Charles IX of Sweden , and a meeting of the Riksens ständer ( Swedish Riksdag ) , he spent much of the rest of his life attempting to reclaim it . Shortly after his victory over his internal enemies , Sigismund took advantage of a period of civil unrest in Muscovy ( known as the Time of Troubles ) and invaded Russia , holding Moscow for two years ( 1610 -- 12 ) and Smolensk thereafter . In 1617 the Polish -- Swedish conflict , which had been interrupted by an armistice in 1611 , broke out again . While Sigismund 's army was also fighting Ottoman forces in Moldavia ( 1617 -- 21 ) , King Gustavus II Adolphus of Sweden ( Charles IX 's son ) invaded Sigismund 's lands , capturing Riga ( 1621 ) and seizing almost all of Polish Livonia . Sigismund , who concluded the Truce of Altmark with Sweden in 1629 , never regained the Swedish crown . His Swedish wars resulted , moreover , in Poland 's loss of Livonia and in a diminution of the kingdom 's international prestige . Sigismund remains a highly controversial figure in Poland . His long reign coincided with the apex of the Polish -- Lithuanian Commonwealth 's prestige , power and economic influence . On the other hand , it was during his reign that the symptoms of decline leading to the Commonwealth 's eventual demise surfaced . Popular histories , such as the books of Pawe Jasienica , tend to present Sigismund as the principal source of these destructive processes ; whereas academic histories are usually not as damning of him . However , the question of whether the Commonwealth 's decline was caused by Sigismund 's decisions or had its roots in historical processes beyond his personal control , remains a highly debated topic . He was commemorated in Warsaw with Sigismund 's Column , commissioned by his son and successor , Wadysaw IV., Gustav I, born Gustav Eriksson of the Vasa noble family and later known as Gustav Vasa (12 May 1496  29 September 1560), was King of Sweden from 1523 until his death in 1560, previously self-recognised Protector of the Realm ("Riksföreståndare") from 1521, during the ongoing Swedish War of Liberation against King Christian II of Denmark, Norway and Sweden. Initially of low standing, Gustav rose to lead the rebel movement following the Stockholm Bloodbath, in which his father perished. Gustav's election as King on 6 June 1523 and his triumphant entry into Stockholm eleven days later meant the end of Medieval Sweden's elective monarchy and the Kalmar Union, and the birth of a hereditary monarchy under the House of Vasa and its successors, including the current House of Bernadotte., Subject: sigismund iii vasa, Relation: noble_family, Options: (A) house of bourbon (B) house of vasa
Example Output: house of vasa

Example Input: Context: A regnal name, or reign name, is a name used by some monarchs and popes during their reigns, and used subsequently to refer to them. The term is simply the adjective "regnal", of or relating to a reign, monarch, or kingdom, modifying "name". Since ancient times, monarchs have frequently, but not always, chosen to use a different name from their original name when they accede to the monarchy.
The regnal name is usually followed by a regnal number (ordinal), usually written as a Roman numeral (VI rather than 6), to provide a unique identification for that monarch among other monarchs of that realm. In some cases, the monarch has more than one regnal name, but the regnal number is based on only one of those names, for example Charles X Gustav of Sweden, George Tupou V of Tonga. If a monarch reigns in more than one realm, he or she may carry different ordinals in each one, as they are each assigned chronologically, and some realms may have had different numbers of rulers of the same regnal name previously. For example, the same person was both King James I of England (along with Ireland) and King James VI of Scotland., A pen name ("nom de plume", or "literary double") is a pseudonym (or, in some cases, a variant form of a real name) adopted by an author and printed on the title page or by-line of his or her works in place of their "real" name. A pen name may be used to make the author's name more distinctive, to disguise his or her gender, to distance an author from some or all of his or her previous works, to protect the author from retribution for his or her writings, to combine more than one author into a single author, or for any of a number of reasons related to the marketing or aesthetic presentation of the work. The author's name may be known only to the publisher, or may come to be common knowledge., A stage name, also called a screen name, is a pseudonym used by performers and entertainers such as actors, comedians, and musicians., A name is a term used for identification. Names can identify a class or category of things, or a single thing, either uniquely, or within a given context. A personal name identifies, not necessarily uniquely, a "specific" individual human. The name of a specific entity is sometimes called a proper name (although that term has a philosophical meaning also) and is, when consisting of only one word, a proper noun. Other nouns are sometimes called "common names" or (obsolete) "general names". A name can be given to a person, place, or thing; for example, parents can give their child a name or a scientist can give an element a name., A pseudonym (and ) or alias is a name that a person or group assumes for a particular purpose, which can differ from their original or true name (orthonym). Pseudonyms include stage names and user names (both called "screen names"), ring names, pen names, nicknames, aliases, superhero identities and code names, gamer identifications, and regnal names of emperors, popes, and other monarchs. Historically, they have often taken the form of anagrams, Graecisms, and Latinisations, although there are many other methods of choosing a pseudonym., Anthony Peter "Tony" Hatch (born 30 June 1939), also credited as Fred Nightingale and Mark Anthony, is an English composer for musical theatre and television. He is also a noted songwriter, pianist, arranger and producer., A ring name is a stage name used by a professional wrestler, martial artist, or a boxer. While some ring names may have a fictitious first name and surname, others may simply be a nickname from the moves that they do or their talents in the ring., An anagram is direct word switch or word play, the result of rearranging the letters of a word or phrase to produce a new word or phrase, using all the original letters exactly once; for example, the word anagram can be rearranged into nag-a-ram. Someone who creates anagrams may be called an "anagrammatist". The original word or phrase is known as the "subject" of the anagram. Anagrams are often used as a form of mnemonic device as well., A nickname is a substitute for the proper name of a familiar person, place, or thing, for affection or ridicule., A monarch is the sovereign head of state in a monarchy. A monarch may exercise the highest authority and power in the state, or others may wield that power on behalf of the monarch. Typically a monarch either personally inherits the lawful right to exercise the state's sovereign rights (often referred to as "the throne" or "the crown") or is selected by an established process from a family or cohort eligible to provide the nation's monarch. Alternatively, an individual may become monarch by conquest, acclamation or a combination of means. A monarch usually reigns for life or until abdication. , The pope (from "pappas", a child's word for "father") is the Bishop of Rome and, therefore, the leader of the worldwide Catholic Church. The primacy of the Roman bishop is largely derived from his role as the traditional successor to Saint Peter, to whom Jesus is supposed to have given the keys of Heaven and the powers of "binding and loosing", naming him as the "rock" upon which the church would be built. The current pope is Francis, who was elected on 13 March 2013, succeeding Benedict XVI., In modern popular fiction, a superhero (sometimes rendered super-hero or super hero) is a type of costumed heroic character who possesses supernatural or superhuman powers and who is dedicated to fighting crime, protecting the public, and usually battling supervillains. A female superhero is sometimes called a superheroine (also rendered super-heroine or super heroine). Fiction centered on such characters, especially in American comic books since the 1930s, is known as superhero fiction., `` Sugar and Spice '' is a 1963 song by Merseybeat band The Searchers written by Tony Hatch under the pseudonym Fred Nightingale . It made number two on the UK charts ( on Pye ) and number 44 in the USA charts . A chorus `` Sugar and spice and all things nice '' contains a reference to a nursery rhyme What Are Little Boys Made Of ? . Covers included a hit for The Cryan ' Shames , whose version was released in 1966 on the Chicago - based Destination label . The song became a local and regional hit for the band and finally peaked at number 49 on the Billboard Hot 100 chart . The Cryan ' Shames ' recording of the song was included on the influential 1972 compilation Nuggets : Original Artyfacts from the First Psychedelic Era , 1965 -- 1968 ., Subject: sugar and spice , Relation: instance_of, Options: (A) adjective (B) bishop (C) character (D) child (E) class (F) combination (G) conquest (H) crown (I) distance (J) england (K) fiction (L) group (M) head of state (N) hero (O) human (P) june (Q) march (R) may (S) monarch (T) name (U) nation (V) nickname (W) number (X) numeral (Y) page (Z) pen ([) person (\) personal name (]) presentation (^) proper noun (_) pseudonym (`) publisher (a) ring (b) role (c) saint (d) single (e) stage (f) state (g) superhero (h) surname (i) television (j) the crown (k) user (l) word (m) word play (n) work
Example Output: single

Example Input: Context: Dumfries (; possibly from ) is a market town and former royal burgh within the Dumfries and Galloway council area of Scotland. It is near the mouth of the River Nith into the Solway Firth. Dumfries was a civil parish and became the county town of the former county of Dumfriesshire. Dumfries is nicknamed "Queen of the South". People from Dumfries are known colloquially as "Doonhamers"., Stewartry is a committee area in Dumfries and Galloway, Scotland., Dumfries and Galloway is one of 32 unitary council areas of Scotland and is located in the western Southern Uplands. It comprises the historic counties of Dumfriesshire, Stewartry of Kirkcudbright and Wigtownshire, the latter two of which are collectively known as Galloway. The administrative centre is the town of Dumfries., The Palace of Westminster is the meeting place of the House of Commons and the House of Lords, the two houses of the Parliament of the United Kingdom. Commonly known as the Houses of Parliament after its occupants, it is also known as the 'heart of British politics'. The Palace lies on the north bank of the River Thames in the City of Westminster, in central London., The City of London is a city and county within London. It constituted most of London from its settlement by the Romans in the 1st century AD to the Middle Ages, but the agglomeration has since grown far beyond the City's borders. The City is now only a tiny part of the metropolis of London, though it remains a notable part of central London. Administratively, it forms one of the 33 local authority districts of Greater London; however, the City of London is not a London borough, a status reserved for the other 32 districts (including London's only other city, the City of Westminster). , Kirkcudbrightshire, or the County of Kirkcudbright or the Stewartry of Kirkcudbright is a historic county, registration county and lieutenancy area in the informal Galloway area of south-western Scotland. For local government purposes, it forms part of the wider Dumfries and Galloway council area of which it forms a committee area under the name of the Stewartry., In modern politics and history, a parliament is a legislative, elected body of government. Generally a modern parliament has three functions: representing the electorate, making laws, and overseeing the government ("i.e.", hearings, inquiries)., The Parliament of Scotland, officially the Estates of Parliament, was the legislature of the Kingdom of Scotland. The parliament, like other such institutions, evolved during the Middle Ages from the king's council of bishops and earls. It is first identifiable as a parliament in 1235, during the reign of Alexander II, when it was described as a "colloquium" and already possessed a political and judicial role. By the early fourteenth century, the attendance of knights and freeholders had become important, and from 1326 commissioners from the burghs attended. Consisting of the "three estates" of clergy, nobility and the burghs sitting in a single chamber, the parliament gave consent for the raising of taxation and played an important role in the administration of justice, foreign policy, war, and all manner of other legislation. Parliamentary business was also carried out by "sister" institutions, such as General Councils or Convention of Estates. These could carry out much business also dealt with by parliament  taxation, legislation and policy-making  but lacked the ultimate authority of a full parliament., The Acts of Union 1800 (sometimes erroneously referred to as a single Act of Union 1801) united the Kingdom of Great Britain and the Kingdom of Ireland (previously in personal union) to create the United Kingdom of Great Britain and Ireland with effect from 1 January 1801. Both Acts, though since amended, still remain in force in the United Kingdom, but have been repealed in the Republic of Ireland., The Kingdom of Great Britain, officially Great Britain , was a sovereign state in western Europe from 1 May 1707 to 31 December 1800. The state came into being following the Treaty of Union in 1706, ratified by the Acts of Union 1707, which united the kingdoms of England and Scotland to form a single kingdom encompassing the whole island of Great Britain and its outlying islands. It did not include Ireland, which remained a separate realm. The unitary state was governed by a single parliament and government that was based in Westminster. The former kingdoms had been in personal union since James VI, King of Scots, became King of England and King of Ireland in 1603 following the death of Queen Elizabeth I, bringing about a "Union of the Crowns". Also after the accession of George I to the throne of Great Britain in 1714, the kingdom was in a personal union with the Electorate of Hanover., Lieutenancy areas are the separate areas of the United Kingdom appointed a Lord Lieutenant - the representative of the British monarch. In many cases they have similar demarcation and naming to, but are not necessarily conterminate with, the counties of the United Kingdom., A Member of Parliament (MP) is the 
representative of the voters to a parliament. In many countries with bicameral parliaments, this category includes specifically members of the lower house, as upper houses often have a different title., Kirkcudbright, is a town and parish in Kirkcudbrightshire, of which it is traditionally the county town, within Dumfries and Galloway, Scotland., Scotland (Scots: ) is a country that is part of the United Kingdom and covers the northern third of the island of Great Britain. It shares a border with England to the south, and is otherwise surrounded by the Atlantic Ocean, with the North Sea to the east and the North Channel and Irish Sea to the south-west. In addition to the mainland, the country is made up of more than 790 islands, including the Northern Isles and the Hebrides., Galloway (Gaelic: "Gall-Ghàidhealaibh"; Latin: "Gallovidia") is a region in southwestern Scotland comprising the counties of Wigtown and Kirkcudbright., The Parliament of Great Britain was formed in 1707 following the ratification of the Acts of Union by both the Parliament of England and the Parliament of Scotland. The Acts created a new unified Kingdom of Great Britain and dissolved the separate English and Scottish parliaments in favour of a single parliament, located in the former home of the English parliament in the Palace of Westminster, near the City of London. This lasted nearly a century, until the Acts of Union 1800 merged the separate British and Irish Parliaments into a single Parliament of the United Kingdom with effect from 1 January 1801., The 14 British Overseas Territories (BOT) are territories under the jurisdiction and sovereignty of the United Kingdom. They are those parts of the former British Empire that have not chosen independence or have voted to remain British territories. Most of the inhabited territories are internally self-governing, with the UK retaining responsibility for defence and foreign relations. The rest are either uninhabited or have a transitory population of military or scientific personnel. They share the British monarch (Elizabeth II) as head of state., The Parliament of England was the legislature of the Kingdom of England. In 1066, William of Normandy introduced what, in later centuries, became referred to as a feudal system, by which he sought the advice of a council of tenants-in-chief (a person who held land) and ecclesiastics before making laws. In 1215, the tenants-in-chief secured Magna Carta from King John, which established that the king may not levy or collect any taxes (except the feudal taxes to which they were hitherto accustomed), save with the consent of his royal council, which gradually developed into a parliament., Kirkcudbright Stewartry , later known as Kirkcudbright or Kirkcudbrightshire , was a constituency of the House of Commons of the Parliament of Great Britain from 1708 to 1801 and of the Parliament of the United Kingdom from 1801 to 1918 . It was represented by one Member of Parliament ( MP ) . The first election in the stewartry was in 1708 . In 1707 - 08 , members of the 1702 - 1707 Parliament of Scotland were co-opted to serve in the 1st Parliament of Great Britain . See Scottish representatives to the 1st Parliament of Great Britain , for further details . In 1918 the area was combined with Wigtownshire to form the Galloway constituency ., The Parliament of the United Kingdom, commonly known as the UK Parliament or British Parliament, is the supreme legislative body in the United Kingdom, British Crown dependencies and British overseas territories. It alone possesses legislative supremacy and thereby ultimate power over all other political bodies in the UK and its territories. Its head is the Sovereign of the United Kingdom (currently Queen Elizabeth II) and its seat is the Palace of Westminster in the City of Westminster, London., A registration county was, in Great Britain and Ireland, a statistical unit used for the registration of births, deaths and marriages and for the output of census information. In Scotland registration counties are used for land registration purposes., The City of Westminster is an Inner London borough which also holds city status. It occupies much of the central area of Greater London including most of the West End. It is to the west of and adjoining the ancient City of London, directly to the east of the Royal Borough of Kensington and Chelsea, and its southern boundary is the River Thames. It was created with the 1965 establishment of Greater London. Upon creation, Westminster was awarded city status, which had been previously held by the smaller Metropolitan Borough of Westminster., Subject: kirkcudbright stewartry , Relation: located_in_the_administrative_territorial_entity, Options: (A) centre (B) city of westminster (C) dumfries (D) dumfries and galloway (E) east (F) elizabeth (G) england (H) europe (I) galloway (J) greater london (K) hanover (L) ireland (M) kensington (N) king (O) kingdom of great britain (P) kirkcudbright (Q) kirkcudbrightshire (R) london (S) mainland (T) most (U) northern (V) of (W) royal borough of kensington and chelsea (X) scotland (Y) united kingdom (Z) united kingdom of great britain and ireland ([) westminster
Example Output:
dumfries and galloway