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: Lieutenant general, lieutenant-general and similar (abbrev Lt Gen, LTG and similar) is a three-star military rank (NATO code OF-8) used in many countries. The rank traces its origins to the Middle Ages, where the title of lieutenant general was held by the second in command on the battlefield, who was normally subordinate to a captain general., Social work is an academic and practice-based professional discipline that seeks to facilitate the welfare of communities, individuals, families, and groups. It may promote social change, development, cohesion, and empowerment. Underpinned by theories of social sciences and guided by principles of social justice, human rights, collective responsibility, and respect for diversities, social work engages people and structures to address life challenges and enhance well-being., The German Empire (officially ') was the historical German nation state that existed from the unification of Germany in 1871 to the abdication of Kaiser Wilhelm II in November 1918, when Germany became a federal republic (the Weimar Republic)., Battle of Kaniv, or Battle of Kaniów took place during World War I on the night of 1011 May 1918, near Kaniv, Ukraine between Polish and German army troops. The fighting pitted the Polish II Corps in Russia (including Brigade II of the Polish Legions), under general Józef Haller von Hallenburg, against the German Imperial Army (including the 28th Landwehr Brigade), under general Zierhold. Ultimately the Germans were victorious with about half of the Polish forces surrendering and the rest retreating in disarray., The Central Powers , consisting of Germany, , the Ottoman Empire and Bulgaria  hence also known as the Quadruple Alliance  was one of the two main factions during World War I (191418). It faced and was defeated by the Allied Powers that had formed around the Triple Entente, after which it was dissolved., The Triple Entente (from French "entente" "friendship, understanding, agreement") was the understanding linking the Russian Empire, the French Third Republic, and the United Kingdom of Great Britain and Ireland after the signing of the Anglo-Russian Entente on 31 August 1907. The understanding between the three powers, supplemented by agreements with Japan and Portugal, constituted a powerful counterweight to the Triple Alliance of Germany, Austria-Hungary and the Kingdom of Italy, though Italy did not side with Germany and Austria during World War I, and joined the Entente Powers instead, in the 1915 Treaty of London., The Order of Polonia Restituta is a Polish state order established 4 February 1921. It is conferred to both military and civilians as well as to foreigners for outstanding achievements in the fields of education, science, sport, culture, art, economics, national defense, social work, civil service, or for furthering good relations between countries., Austria-Hungary, often referred to as the Austro-Hungarian Empire in English-language sources, was a constitutional union of the Austrian Empire (the Kingdoms and lands represented in the Imperial Council, or "Cisleithania") and the Kingdom of Hungary (Lands of the Crown of Saint Stephen or "Transleithania") that existed from 1867 to 1918, when it collapsed as a result of defeat in World War I. The union was a result of the Austro-Hungarian Compromise of 1867 and came into existence on 30 March 1867. Austria-Hungary consisted of two monarchies (Austria and Hungary), and one autonomous region: the Kingdom of Croatia-Slavonia under the Hungarian crown, which negotiated the CroatianHungarian Settlement ("Nagodba") in 1868. It was ruled by the House of Habsburg, and constituted the last phase in the constitutional evolution of the Habsburg Monarchy. Following the 1867 reforms, the Austrian and the Hungarian states were co-equal. Foreign affairs and the military came under joint oversight, but all other governmental faculties were divided between respective states., The Battle of Raracza was fought between Polish Legionnaires, and Austria-Hungary, from February 15 to 16, 1918, near Raracza in Bukovina, and ended with a Polish victory., Russia, also officially known as the Russian Empire, was a state that existed from 1721 until it was overthrown by the short-lived liberal February Revolution in 1917. One of the largest empires in world history, stretching over three continents, the Russian Empire was surpassed in landmass only by the British and Mongol empires. The rise of the Russian Empire happened in association with the decline of neighboring rival powers: the Swedish Empire, the PolishLithuanian Commonwealth, Persia and the Ottoman Empire. It played a major role in 181214 in defeating Napoleon's ambitions to control Europe, and expanded to the west and south., In the history of Europe, the Middle Ages or medieval period lasted from the 5th to the 15th century. It began with the fall of the Western Roman Empire and merged into the Renaissance and the Age of Discovery. The Middle Ages is the middle period of the three traditional divisions of Western history: classical antiquity, the medieval period, and the modern period. The medieval period is itself subdivided into the Early, High, and Late Middle Ages., Second in Command is a 2006 American action film starring Jean-Claude Van Damme and directed by Simon Fellows. The film was released on direct-to-DVD in the United States on May 2, 2006., The Polish II Corps in Russia was a Polish military formation formed in revolutionary Russia in 1917., The Austro-Hungarian Army was the ground force of the Austro-Hungarian Dual Monarchy from 1867 to 1918. It was composed of three parts: the joint army (", "Common Army", recruited from all parts of the country), the Imperial Austrian Landwehr (recruited from Cisleithania), and the Royal Hungarian Honved (recruited from Transleithania)., Cisleithania (also "Zisleithanien", , , , , , , , , transliterated: "Tsysleitàniia") was a common yet unofficial denotation of the northern and western part of Austria-Hungary, the Dual Monarchy created in the Compromise of 1867as distinguished from "Transleithania", i.e. the Hungarian Lands of the Crown of Saint Stephen east of ("beyond") the Leitha River., Dual monarchy occurs when two separate kingdoms are ruled by the same monarch, follow the same foreign policy, exist in a customs union with each other and have a combined military but are otherwise self-governing. The term is typically used to refer to AustriaHungary, a dual monarchy that existed from 1867 to 1918., A civil servant or public servant is a person in the public sector employed for a government department or agency. The extent of civil servants of a state as part of the "civil service" varies from country to country. In the United Kingdom, for instance, only Crown (national government) employees are referred to as civil servants whereas county or city employees are not., The Polish Legions (Polish "Legiony Polskie") was a name of the Polish military force (the first active Polish army in generations) established in August 1914 in Galicia soon after World War I erupted between the opposing alliances of the Triple Entente on one side (including the British Empire, the French Republic and the Russian Empire); and the Central Powers on the other side, including the German Empire and Austria-Hungary. The Legions became "a founding myth for the creation of modern Poland" in spite of their considerably short existence; they were replaced by the Polish Auxiliary Corps formation on 20 September 1916, merged with Polish II Corps in Russia on 19 February 1918 for the Battle of Raracza against Austria-Hungary, and disbanded following the military defeat at the Battle of Kaniów in May 1918, against imperial Germany. General Haller escaped to France to form the Polish army in the West against the anti-Polish German-Bolshevik treaty., Karol Durski - Trzaska ( 1849 -- 1935 ) was an officer in Austro - Hungarian Army and later , Polish Army . Reached the rank of Lieutenant General ( Feldmarschalleutnant ) in Austrian - Hungarian Army ; commander of Austrian Polish Legions in World War I from 23 September 1914 to December 1915 . Transferred to reserve afterwards . He served in the Polish Army from 1919 to 1922 , in reserve again afterwards . Recipient of the Silver Cross of the Order of Polonia Restituta and the Commander 's Cross of the Polonia Restituta ., The British Empire comprised the dominions, colonies, protectorates, mandates and other territories ruled or administered by the United Kingdom and its predecessor states. It originated with the overseas possessions and trading posts established by England between the late 16th and early 18th centuries. At its height, it was the largest empire in history and, for over a century, was the foremost global power. By 1913, the British Empire held sway over 412 million people, % of the world population at the time, and by 1920, it covered , % of the Earth's total land area. As a result, its political, legal, linguistic and cultural legacy is widespread. At the peak of its power, the phrase "the empire on which the sun never sets" was often used to describe the British Empire, because its expanse around the globe meant that the sun was always shining on at least one of its territories., Subject: karol durski-trzaska, Relation: country_of_citizenship, Options: (A) academic (B) american (C) austria (D) austrian empire (E) british (F) british empire (G) bulgaria (H) england (I) french republic (J) french third republic (K) galicia (L) german empire (M) germans (N) germany (O) habsburg monarchy (P) hungary (Q) italy (R) kingdom of hungary (S) london (T) ottoman empire (U) poland (V) roman empire (W) russia (X) russian empire (Y) ukraine (Z) united kingdom

Ex Output:
poland


Ex Input:
Context: England is a country that is part of the United Kingdom. It shares land borders with Scotland to the north and Wales to the west. The Irish Sea lies northwest of England and the Celtic Sea lies to the southwest. England is separated from continental Europe by the North Sea to the east and the English Channel to the south. The country covers five-eighths of the island of Great Britain (which lies in the North Atlantic) in its centre and south; and includes over 100 smaller islands such as the Isles of Scilly, and the Isle of Wight., Hornby Dock was a dock located on the River Mersey, England, and part of the Port of Liverpool. It was situated in the northern dock system in Bootle. It connected to Gladstone Dock to the north and Alexandra Dock to the south and encompassed a sloping quayside. , The City and South London Railway (C&SLR) was the first deep-level underground "tube" railway in the world, and the first major railway to use electric traction. The railway was originally intended for cable-hauled trains, but owing to the bankruptcy of the cable contractor during construction, a system of electric traction using electric locomotivesan experimental technology at the timewas chosen instead., The Mersey Docks and Harbour Company (MDHC), formerly the Mersey Docks and Harbour Board (MDHB), owns and administers the dock facilities of the Port of Liverpool, on the River Mersey, England. These include the operation of the enclosed northern dock system that runs from Prince's Dock to Seaforth Dock, in the city of Liverpool and the dock facilities built around the Great Float of the Wirral Peninsula, located on the west side of the river., The Liverpool Overhead Railway (known locally as the Dockers' Umbrella) was an overhead railway in Liverpool which operated along the Liverpool Docks and opened in 1893 with lightweight electric multiple units. The railway had a number world firsts; it was the first electric elevated railway, the first to use automatic signalling & electric colour light signals, electric multiple units, and was home to one of the first passenger escalator at a railway station. It was also the second oldest electric metro in the world being preceded by the 1890 City and South London Railway. In the early 1900s electric trains ran on the electrified Lancashire and Yorkshire Railway to Southport and Aintree. Special trains to Aintree for the horse race meetings ran twice a year after regular services were withdrawn. Being a local railway it was not nationalised in 1948., Liverpool, in North West England, is a major city and metropolitan borough with an estimated population of 478,580 in 2015 within the City of Liverpool. Liverpool and its surrounding areas form the fifth largest metropolitan area in the UK, with an estimated population of over 2.24 million in 2011. The local authority is Liverpool City Council, which is the most populous local government district within the metropolitan county of Merseyside and the largest within the Liverpool City Region., The River Mersey is a river in the north west of England. Its name is derived from the Anglo-Saxon language and translates as "boundary river". The river may have been the border between the ancient kingdoms of Mercia and Northumbria and for centuries it formed part of the boundary between the historic counties of Lancashire and Cheshire., Gladstone Dock is a dock on the River Mersey, England, and part of the Port of Liverpool. It is situated in the northern dock system in Bootle. The dock is connected to Seaforth Dock to the north and what remains of Hornby Dock to the south. Part of Liverpool Freeport, Gladstone Dock is operated by the Mersey Docks and Harbour Company., The Lancashire and Yorkshire Railway (L&YR) was a major British railway company before the 1923 Grouping. It was incorporated in 1847 from an amalgamation of several existing railways. It was the third-largest railway system based in Northern England (after the Midland and North Eastern Railways)., The Port of Liverpool is the enclosed dock system that runs from Brunswick Dock in Liverpool to Seaforth Dock, Seaforth, on the east side of the River Mersey and the Birkenhead Docks between Birkenhead and Wallasey on the west side of the river. The port is being extended by the building of an in-river container terminal at Seaforth Dock, name Liverpool2. The terminal will berth two 14,000 container Post-Panamax ships. The terminal was scheduled to be opened in phases during 2016, simultaneously with the widened third locks of the Panama Canal., Seaforth Dock (also known as the Royal Seaforth Dock) is a purpose-built dock and container terminal, on the River Mersey, England, at Seaforth, to the north of Liverpool. As part of the Port of Liverpool and Liverpool Freeport, it is operated by the Mersey Docks and Harbour Company. Situated at the northern end of the dock system, it is connected to Gladstone Dock to the south, which via its lock entrance provides maritime access to Seaforth Dock from the river.
History.
Despite planning permission having been obtained almost sixty years previously, work commenced during the 1960s on Liverpool's largest dock facility. The dock was the largest built in the United Kingdom for some time, with of quay and a depth of and world's largest lock gates., Bootle (pronounced ) is a town within the Metropolitan Borough of Sefton in Merseyside. The town was formerly known as Bootle-cum-Linacre and has a total resident population of 77,640., Gladstone Dock was a station on the Liverpool Overhead Railway , between Alexandra Dock and Seaforth Sands . It was opened on 16 June 1930 , the final station to open on the network . It was named after the adjacent Gladstone Dock , and was the only station on the network to be accessible directly from the dockside , with two steel bridges connecting the platforms , as it primarily served the passenger liners which frequently docked nearby . Only the northbound platform was directly accessible from the street . The station was opened at 6am on the first day of operation without a formal ceremony . It was originally only open on week days , but service was intended to be extended to be extended to weekends . The station was damaged during the Liverpool Blitz , requiring it to be rebuilt . The station closed , along with the rest of the line on 30 December 1956 . No evidence of the station remains ., Subject: gladstone dock , Relation: instance_of, Options: (A) bankruptcy (B) border (C) borough (D) city (E) city council (F) company (G) construction (H) container (I) council (J) country (K) county (L) dock (M) england (N) facility (O) history (P) horse race (Q) local government (R) metropolitan area (S) metropolitan borough (T) name (U) number (V) peninsula (W) port (X) race (Y) railway company (Z) railway station ([) railway system (\) river (]) side (^) station (_) system (`) technology (a) town (b) two (c) will

Ex Output:
railway station


Ex Input:
Context: The Thames Estuary is the estuary in which the River Thames meets the waters of the North Sea, in the south-east of Great Britain., The River Thames is a river that flows through southern England. At , it is the longest river entirely in England and the second longest in the United Kingdom, after the River Severn. It also flows through Oxford (where it is called Isis), Reading, Henley-on-Thames and Windsor. The lower reaches of the river are called the Tideway, derived from its long tidal reach up to Teddington Lock. It rises at Thames Head in Gloucestershire, and flows into the North Sea via the Thames Estuary. The Thames drains the whole of Greater London. , Oxford is a city in the South East region of England and the county town of Oxfordshire. With a population of 159,994 it is the 52nd largest city in the United Kingdom, and one of the fastest growing and most ethnically diverse. The city is situated from London, from Bristol, from both Southampton and Birmingham and from Reading., Surrey is a county in the south east of England and also one of the home counties bordering Greater London. Surrey shares borders with Kent to the east, East Sussex to the south-east, West Sussex to the south, Hampshire to the west and south-west and Berkshire to the north-west. The county town is Guildford. Surrey County Council sits extraterritorially at Kingston upon Thames, administered as part of Greater London since 1965. With a resident population of 1.1 million, Surrey is the most densely populated and third most populated county in the South East region, after Kent and Hampshire., Teddington is a town in the London Borough of Richmond upon Thames. Until 1965, it was in the historic county of Middlesex. Teddington is on the north bank of the Thames, just after the start of a long meander, between Hampton Wick and Strawberry Hill, Twickenham. Mostly residential, it stretches from the Thames to Bushy Park with a long high street reaching down to pubs, restaurants, leisure premises, fields and fitness clubs by the riverside, having a pedestrian suspension bridge over the lowest non-tidal lock on the Thames, Teddington Lock. Teddington has no dual carriageways or high-rise residential buildings and its centre is mid-rise urban development., Hertfordshire (often abbreviated Herts) is a county in southern England, bordered by Bedfordshire to the north, Cambridgeshire to the north-east, Essex to the east, Buckinghamshire to the west and Greater London to the south. For government statistical purposes, it is placed in the East of England region., The Tideway is a name given to the part of the River Thames in England that is subject to tides. This stretch of water is downstream from Teddington Lock and is in its widest definition just under long. The Tideway includes the Thames Estuary, the Thames Gateway and the Pool of London., London is the capital and most populous city of England and the United Kingdom, as well as the most populous city proper in the European Union. Standing on the River Thames in the south east of the island of Great Britain, London has been a major settlement for two millennia. It was founded by the Romans, who named it "Londinium". London's ancient core, the City of London, largely retains its medieval boundaries. Since at least the 19th century, "London" has also referred to the metropolis around this core, historically split between Middlesex, Essex, Surrey, Kent, and Hertfordshire, which today largely makes up Greater London, governed by the Mayor of London and the London Assembly., The European Union (EU) is a political and economic union of member states that are located primarily in Europe. It has an area of , and an estimated population of over 510 million. The EU has developed an internal single market through a standardised system of laws that apply in all member states. EU policies aim to ensure the free movement of people, goods, services, and capital within the internal market, enact legislation in justice and home affairs, and maintain common policies on trade, agriculture, fisheries, and regional development. Within the Schengen Area, passport controls have been abolished. A monetary union was established in 1999 and came into full force in 2002, and is composed of 19 EU member states which use the euro currency., 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). , The United Kingdom of Great Britain and Northern Ireland, commonly known as the United Kingdom (UK) or Britain, is a sovereign country in western Europe. Lying off the north-western coast of the European mainland, it includes the island of Great Britain (the name of which is also loosely applied to the whole country), the north-eastern part of the island of Ireland, and many smaller islands. Northern Ireland is the only part of the UK that shares a land border with another sovereign statethe Republic of Ireland. Apart from this land border, the UK is surrounded by the Atlantic Ocean, with the North Sea to its east, the English Channel to its south and the Celtic Sea to its south-south-west, giving it the 12th-longest coastline in the world. The Irish Sea lies between Great Britain and Ireland. With an area of , the UK is the 78th-largest sovereign state in the world and the 11th-largest in Europe. It is also the 21st-most populous country, with an estimated 65.1 million inhabitants. Together, this makes it the fourth most densely populated country in the European Union., Great Britain, also known as Britain , is a large island in the north Atlantic Ocean off the northwest coast of continental Europe. With an area of , Great Britain is the largest European island and the ninth-largest in the world. In 2011 the island had a population of about 61 million people, making it the world's third-most populous island after Java in Indonesia and Honshu in Japan. The island of Ireland is situated to the west of it, and together these islands, along with over 1,000 smaller surrounding islands, comprise the British Isles archipelago., Kent is a county in South East England and one of the home counties. It borders Greater London to the north west, Surrey to the west, East Sussex to the south west, and Essex across the Thames Estuary to the north. The county town is Maidstone. , Kennington is a district in London , England , south of the River Thames . It is mainly within the London Borough of Lambeth , running along the boundary with the London Borough of Southwark a boundary which can be discerned from the early medieval period between the Lambeth and St George 's parishes of those boroughs respectively . It is located 1.4 miles ( 2.3 km ) south of Charing Cross , in Inner London and is identified as a local centre in the London Plan . It was a royal manor in the ancient parish of St Mary , Lambeth in the county of Surrey and was the administrative centre of the parish from 1853 . Proximity to central London was key to the development of the area as a residential suburb and it was incorporated into the metropolitan area of London in 1855 . Kennington is the location of three significant London landmarks : the Oval cricket ground , the Imperial War Museum , and Kennington Park . Its population at the United Kingdom Census 2011 was 21,287 ., The London Assembly is an elected body, part of the Greater London Authority, that scrutinises the activities of the Mayor of London and has the power, with a two-thirds majority, to amend the Mayor's annual budget and to reject the Mayor's draft statutory strategies. The assembly was established in 2000 and meets at City Hall on the South Bank of the River Thames, close to Tower Bridge. The assembly is also able to investigate other issues of importance to Londoners (transport, environmental matters, etc.), publish its findings and recommendations, and make proposals to the Mayor., Henley-on-Thames is a town and civil parish on the River Thames in Oxfordshire, England, northeast of Reading and 7 miles west of Maidenhead. One of its boundaries has the tripoint of Oxfordshire, Berkshire and Buckinghamshire. The 2011 Census recorded the parish population as 11,619.
History.
<includeonly>Henley does not appear in Domesday Book of 1086; often it is mistaken for "Henlei" in the book which is in Surrey.</includeonly>
The first record of Henley is from 1179, when it is recorded that King Henry II "had bought land for the making of buildings". King John granted the manor of Benson and the town and manor of Henley to Robert Harcourt in 1199. A church at Henley is first mentioned in 1204. In 1205 the town received a paviage grant, and in 1234 the bridge is first mentioned. In 1278 Henley is described as a hamlet of Benson with a chapel. The street plan was probably established by the end of the 13th century., Gloucestershire (; abbreviated Glos.) is a county in South West England. The county comprises part of the Cotswold Hills, part of the flat fertile valley of the River Severn, and the entire Forest of Dean., Londinium was a settlement established on the current site of the City of London around  43. Its bridge over the River Thames turned the city into a road nexus and major port, serving as a major commercial centre in Roman Britain until its abandonment during the 5th century., The Mayor of London is an elected politician who, along with the London Assembly of 25 members, is accountable for the strategic government of Greater London. The current mayor is Sadiq Khan, who took up office on 9 May 2016. The position had been held by Ken Livingstone from the creation of the role on 4 May 2000 until he was defeated in 2008 by Boris Johnson, who served two terms before being succeeded by Khan., England is a country that is part of the United Kingdom. It shares land borders with Scotland to the north and Wales to the west. The Irish Sea lies northwest of England and the Celtic Sea lies to the southwest. England is separated from continental Europe by the North Sea to the east and the English Channel to the south. The country covers five-eighths of the island of Great Britain (which lies in the North Atlantic) in its centre and south; and includes over 100 smaller islands such as the Isles of Scilly, and the Isle of Wight., Teddington Lock is a complex of three locks and a weir on the River Thames in England at Ham in south west London. The lock is on the southern side of the river., The River Severn (Welsh: "Afon Hafren", Latin: "Sabrina") is the longest river in the United Kingdom, at about . It rises at an altitude of on Plynlimon, close to the Ceredigion/Powys border near Llanidloes, in the Cambrian Mountains of mid Wales. It then flows through Shropshire, Worcestershire and Gloucestershire, with the county towns of Shrewsbury, Worcester and Gloucester on its banks. With an average discharge of at Apperley, Gloucestershire, the Severn is the greatest river in terms of water flow in England and Wales., Thames Head is a site in Gloucestershire, traditionally identified as the source of the River Thames, a major river which runs through the centre of London. It lies near the village of Kemble and the town of Cirencester. The elevation of the source is above sea level., The North Sea is a marginal sea of the Atlantic Ocean located between Great Britain, Scandinavia, Germany, the Netherlands, Belgium, and France. An epeiric (or "shelf") sea on the European continental shelf, it connects to the ocean through the English Channel in the south and the Norwegian Sea in the north. It is more than long and wide, with an area of around ., Southern England, or the South of England, also known as the South, refers roughly to the southern counties of England. The extent of this area can take a number of different interpretations depending on the context, including geographical, cultural, political and economic., Middlesex (abbreviation: Middx) was a county in southeast England that is now mostly part of Greater London, with small sections in neighbouring counties. It was established in the Anglo-Saxon system from the territory of the Middle Saxons, and existed as an official unit until 1965. The historic county included land stretching north of the River Thames from east to west of the City of London with the rivers Colne and Lea and a ridge of hills as the other boundaries. The largely low-lying county, dominated by clay in its north and alluvium on gravel in its south, was the second smallest by area in 1831., Subject: kennington, Relation: shares_border_with, Options: (A) as (B) atlantic ocean (C) bedfordshire (D) belgium (E) bristol (F) buckinghamshire (G) city of london (H) east (I) england (J) english channel (K) europe (L) european union (M) glos (N) gloucestershire (O) greater london (P) guildford (Q) ham (R) hampton (S) hertfordshire (T) isle (U) johnson (V) kent (W) kingston (X) lies (Y) london (Z) maidenhead ([) major (\) most (]) netherlands (^) north (_) north sea (`) northwest (a) oxfordshire (b) park (c) port (d) severn (e) shrewsbury (f) south (g) south bank (h) southampton (i) strawberry hill (j) surrey (k) thames estuary (l) this (m) united kingdom (n) west (o) westminster (p) worcester

Ex Output:
south bank