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: Screenwriting, also called scriptwriting, is the art and craft of writing scripts for mass media such as feature films, television productions or video games. It is frequently a freelance profession., Nithiwat Tharathorn is a Thai film director. He made his directorial debut alongside five other directors on the 2003 childhood romantic comedy "Fan Chan" (2003) and his solo debut with the romantic comedy "Seasons Change" in 2006. and now, he have romantic drama film "Teacher's Diary" in 2014, The mass media is a diversified collection of media technologies that reach a large audience via mass communication. The technologies through which this communication takes place include a variety of outlets., A writer is a person who uses written words in various styles and techniques to communicate their ideas. Writers produce various forms of literary art and creative writing such as novels, short stories, poetry, plays, screenplays, and essays as well as various reports and news articles that may be of interest to the public. Writers' texts are published across a range of media. Skilled writers who are able to use language to express ideas well often contribute significantly to the cultural content of a society. The word is also used elsewhere in the arts  such as songwriter  but as a standalone term, "writer" normally refers to the creation of written language. Some writers work from an oral tradition., A screenplay writer, screenwriter for short, scriptwriter or scenarist is a writer who practices the craft of screenwriting, writing screenplays on which mass media such as films, television programs, comics or video games are based., Thailand (or  ), officially the Kingdom of Thailand, formerly known as Siam, is a country at the centre of the Indochinese peninsula in Southeast Asia. With a total area of approximately , Thailand is the world's 51st-largest country. It is the 20th-most-populous country in the world, with around 66 million people. The capital and largest city is Bangkok., A screenplay or script is a written work by screenwriters for a film, video game, or television program. These screenplays can be original works or adaptations from existing pieces of writing. In them, the movement, actions, expression, and dialogues of the characters are also narrated. A screenplay written for television is also known as a teleplay., 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:, 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., Bangkok is the capital and most populous city of Thailand. It is known in Thai as "Krung Thep Maha Nakhon" (pronounced ) or simply . The city occupies in the Chao Phraya River delta in Central Thailand, and has a population of over 8 million, or 12.6 percent of the country's population. Over 14 million people (22.2 percent) live within the surrounding Bangkok Metropolitan Region, making Bangkok an extreme primate city, significantly dwarfing Thailand's other urban centres in terms of importance. There are 581 high-rise buildings in the city, ranking number 5 in the world., Fan Chan ( Thai :  , English : My Girl ) is a 2003 Thai romantic film offering a nostalgic look back at the childhood friendship of a boy and girl growing up in a small town in Thailand in the 1980s . It was the debut film by six young screenwriter - directors , Vitcha Gojiew , Songyos Sugmakanan , Nithiwat Tharathorn , Witthaya Thongyooyong , Anusorn Trisirikasem and Komgrit Triwimol . With a soundtrack that featured Thai pop music of the era , Fan Chan was the top domestic film at the Thailand box office in 2003 , earning 140 million baht ., A film director is a person who directs the making of a film. Generally, a film director controls a film's artistic and dramatic aspects, and visualizes the script while guiding the technical crew and actors in the fulfillment of that vision. The director has a key role in choosing the cast members, production design, and the creative aspects of filmmaking. Under European Union law, the director is viewed as the author of the film., The history of comics has followed different paths in different cultures. Scholars have posited a pre-history as far back as the Lascaux cave paintings. By the mid-20th century, comics flourished particularly in the United States, western Europe (especially in France and Belgium), and Japan. The history of European comics is often traced to Rodolphe Töpffer's cartoon strips of the 1830s, and became popular following the success in the 1930s of strips and books such as "The Adventures of Tintin". American comics emerged as a mass medium in the early 20th century with the advent of newspaper comic strips; magazine-style comic books followed in the 1930s, in which the superhero genre became prominent after Superman appeared in 1938. Histories of Japanese comics and cartooning ("") propose origins as early as the 12th century. Modern comic strips emerged in Japan in the early 20th century, and the output of comics magazines and books rapidly expanded in the post-World War II era with the popularity of cartoonists such as Osamu Tezuka. had a lowbrow reputation for much of its history, but towards the end of the 20th century began to find greater acceptance with the public and in academia., A television program is a segment of content intended for broadcast on over-the-air, cable television, or Internet television, other than a commercial, trailer, or any other segment of content not serving as attraction for viewership. It may be a single production, or more commonly, a series of related productions (also called a television series or a television show)., Subject: fan chan, Relation: genre, Options: (A) academia (B) art (C) cartoon (D) comedy (E) comic (F) computer animation (G) country (H) design (I) dramatic (J) genre (K) history (L) india (M) japanese (N) mass (O) miniature (P) music (Q) news (R) optical illusion (S) poetry (T) pop (U) romantic (V) romantic comedy (W) screenplay (X) society (Y) superhero (Z) television ([) thai pop music (\) urban (]) variety (^) various (_) video (`) western

Ex Output:
romantic comedy


Ex Input:
Context: The Sejm of the Republic of Poland is the lower house of the Polish parliament. It consists of 460 deputies (posowie, literally "envoys", in Polish) elected by universal ballot and is presided over by a speaker called the "Marshal of the "Sejm" of the Republic of Poland" ("Marszaek Sejmu Rzeczypospolitej Polskiej"). In the Kingdom of Poland, ""Sejm"" referred to the entire three-chamber parliament of Poland, comprising the lower house (the Chamber of Envoys), the upper house (the Senate; Polish: "Senat") and the King. It was thus a three-estate parliament. Since the Second Polish Republic (19181939), ""Sejm"" has referred only to the lower house of the parliament; the upper house is called the "Senat Rzeczypospolitej Polskiej" ("Senate of the Republic of Poland")., Prussia was a historic state originating out of the Duchy of Prussia and the Margraviate of Brandenburg, and centred on the region of Prussia. For centuries, the House of ruled Prussia, successfully expanding its size by way of an unusually well-organised and effective army. Prussia, with its capital in and from 1701 in Berlin, shaped the history of Germany. In 1871, German states united to create the German Empire under Prussian leadership. In November 1918, the monarchies were abolished and the nobility lost its political power during the German Revolution of 191819. The Kingdom of Prussia was thus abolished in favour of a republicthe Free State of Prussia, a state of Germany from 1918 until 1933. From 1933, Prussia lost its independence as a result of the Prussian coup, when the Nazi regime was successfully establishing its ' laws in pursuit of a unitary state. With the end of the Nazi regime, the division of Germany into allied-occupation zones and the separation of its territories east of the line, which were incorporated into Poland and the Soviet Union, the State of Prussia ceased to exist de facto in 1945. Prussia existed "" until its formal liquidation by the Allied Control Council Enactment No. 46 of 25 February 1947., Chem County is a unit of territorial administration and local government (powiat) in Lublin Voivodeship, eastern Poland, on the border with Ukraine. It was established on January 1, 1999, as a result of the Polish local government reforms passed in 1998. Its administrative seat is the city of Chem, although the city is not part of the county (it constitutes a separate city county). The only town in Chem County is Rejowiec Fabryczny, which lies west of Chem., Belarus ( lat. ', ), officially the Republic of Belarus, formerly known by its Russian name Byelorussia (though this name is no longer used in Belarus itself, even in Russian language), is a landlocked country in Eastern Europe bordered by Russia to the northeast, Ukraine to the south, Poland to the west, and Lithuania and Latvia to the northwest. Its capital and most populous city is Minsk. Over 40% of its is forested. Its strongest economic sectors are service industries and manufacturing. Until the 20th century, different states at various times controlled the lands of modern-day Belarus, including the Principality of Polotsk (11th to 14th centuries), the Grand Duchy of Lithuania, the PolishLithuanian Commonwealth, and the Russian Empire., Grodno Sejm  was the last Sejm (session of parliament) of the PolishLithuanian Commonwealth. The Grodno Sejm, held in fall of 1793 in Grodno, Grand Duchy of Lithuania (now Hrodna, Belarus) is infamous because its deputies, bribed or coerced by the Russian Empire, passed the act of Second Partition of Poland. The Sejm started on 17 June and ended on 23 November 1793. It ratified the division of the country in a futile attempt to prevent its subsequent complete annexation two years later in the 1795 Third Partition of Poland., The 1793 Second Partition of Poland was the second of three partitions (or partial annexations) that ended the existence of the PolishLithuanian Commonwealth by 1795. The second partition occurred in the aftermath of the War in Defense of the Constitution and the Targowica Confederation of 1792, and was approved by its territorial beneficiaries, the Russian Empire and the Kingdom of Prussia. The division was ratified by the coerced Polish parliament (Sejm) in 1793 (see the Grodno Sejm) in a short-lived attempt to prevent the inevitable complete annexation of Poland, the Third Partition., Chem (, meaning "a hill") is a city in eastern Poland with 67,702 inhabitants (2007). It is located to the south-east of Lublin, north of Zamo and south of Biaa Podlaska, some from the border with Ukraine. Chem used to be the capital of the Chem Voivodeship until it became part of the Lublin Voivodeship in 1999., Poland, officially the Republic of Poland, is a country in Central Europe, situated between the Baltic Sea in the north and two mountain ranges (the Sudetes and Carpathian Mountains) in the south. Bordered by Germany to the west; the Czech Republic and Slovakia to the south; Ukraine and Belarus to the east; and the Baltic Sea, Kaliningrad Oblast (a Russian exclave) and Lithuania to the north. The total area of Poland is , making it the 69th largest country in the world and the 9th largest in Europe. With a population of over 38.5 million people, Poland is the 34th most populous country in the world, the 8th most populous country in Europe and the sixth most populous member of the European Union. Poland is a unitary state divided into 16 administrative subdivisions, and its capital and largest city is Warsaw. Other metropolises include Kraków, Wrocaw, Pozna, Gdask and Szczecin., The Targowica Confederation was a confederation established by Polish and Lithuanian magnates on 27 April 1792, in Saint Petersburg, with the backing of the Russian Empress Catherine II. The confederation opposed the Polish Constitution of May 3, 1791, which had been adopted by the Great Sejm, especially the provisions limiting the privileges of the nobility. The text of the founding act of the confederation was written by the Russian general Vasili Stepanovich Popov, Chief of Staff of Prince Grigori Alexandrovich Potemkin. Its purpose was proclaimed in the small town of Targowica (now in Kirovohrad Oblast, Ukraine) on May 14, 1792. Four days later two Russian armies invaded the Polish-Lithuanian Commonwealth without a formal declaration of war., 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., Lithuania (UK and US: ), officially the Republic of Lithuania, is a country in Northern Europe. One of the three Baltic states, it is situated along the southeastern shore of the Baltic Sea, to the east of Sweden and Denmark. It is bordered by Latvia to the north, Belarus to the east and south, Poland to the south, and Kaliningrad Oblast (a Russian exclave) to the southwest. Lithuania has an estimated population of 2.9 million people , and its capital and largest city is Vilnius. Lithuanians are a Baltic people. The official language, Lithuanian, along with Latvian, is one of only two living languages in the Baltic branch of the Indo-European language family., Dubienka ("Dubenka") is a village in Chem County, Lublin Voivodeship, in eastern Poland, close to the border with Ukraine on the Bug River. It is the seat of the gmina (administrative district) called Gmina Dubienka. It lies approximately east of Chem and east of the regional capital Lublin., The gmina (Polish pronunciation , plural "gminy" ) is the principal unit of the administrative division of Poland, similar to a commune or municipality. As of 2010 there were 2,478 gminy throughout the country. The word "gmina" derives from the German word "Gemeinde", meaning "community.", The Battle of Dubienka occurred during the Polish -- Russian War of 1792 ( War of the Second Partition of Poland ) where on July 18 , 1792 , the Polish army under the command of General Tadeusz Kociuszko defended the Bug River crossing against the Russian army under General Michail Kachovski . Although the Russians had a numerical advantage of 5:1 over the Polish defenders , their attacks were stymied by field fortifications raised by the Poles , leading to a Polish tactical victory . Subsequent Russian flanking forced the Poles to retreat to avoid being encircled . After the Polish - Lithuanian forces left their forward positions , the Russian army occupied the area ., The PolishLithuanian Commonwealth, formally the Kingdom of Poland and the Grand Duchy of Lithuania, after 1791 the Commonwealth of Poland, was a dualistic state, a bi-confederation, of Poland and Lithuania ruled by a common monarch, who was both the King of Poland and the Grand Duke of Lithuania. It was one of the largest and most populous countries of 16th- and 17th-century Europe. At its peak in the early 17th century, the Commonwealth spanned some and sustained a multi-ethnic population of 11 million. The union was formalized by the Union of Lublin in July 1569, but the Crown of the Kingdom of Poland and the Grand Duchy of Lithuania were in a de-facto personal union since 1386 with the marriage of the Polish queen Hedwig and Lithuania's Grand Duke Jogaila, who was crowned King "jure uxoris" Wadysaw II Jagieo of Poland. The First Partition of Poland in 1772 and the Second Partition of Poland in 1793 greatly reduced the nation's size and the Commonwealth disappeared as an independent state following the Third Partition of Poland in 1795., The American Revolutionary War (17751783), also referred to as the American War of Independence and the Revolutionary War in the United States, was an armed conflict between Great Britain and thirteen of its North American colonies that after onset of the war declared independence as the United States of America., Lublin Voivodeship, or Lublin Province (in Polish, "województwo lubelskie" ), is a voivodeship, or province, located in southeastern Poland. It was created on January 1, 1999, out of the former Lublin, Chem, Zamo, Biaa Podlaska and (partially) Tarnobrzeg and Siedlce Voivodeships, pursuant to Polish local government reforms adopted in 1998. The province is named after its largest city and regional capital, Lublin, and its territory is made of four historical lands: the western part of the voivodeship, with Lublin itself, belongs to Lesser Poland, the eastern part of Lublin Area belongs to Red Ruthenia, and the northeast belongs to Polesie and Podlasie., Ukraine (tr. ) is a sovereign state in Eastern Europe, bordered by Russia to the east and northeast, Belarus to the northwest, Poland and Slovakia to the west, Hungary, Romania, and Moldova to the southwest, and the Black Sea and Sea of Azov to the south and southeast, respectively. Ukraine is currently in territorial dispute with Russia over the Crimean Peninsula which Russia annexed in 2014 but which Ukraine and most of the international community recognise as Ukrainian. Including Crimea, Ukraine has an area of , making it the largest country entirely within Europe and the 46th largest country in the world. It has a population of about 44.5 million, making it the 32nd most populous country in the world., Annexation (Latin "ad", to, and "nexus", joining) is the political transition of land from the control of one entity to another. It is also the incorporation of unclaimed land into a state's sovereignty, which is in most cases legitimate. In international law it is the forcible transition of one state's territory by another state or the legal process by which a city acquires land. Usually, it is implied that the territory and population being annexed is the smaller, more peripheral, and weaker of the two merging entities, barring physical size. It can also imply a certain measure of coercion, expansionism or unilateralism on the part of the stronger of the merging entities. Because of this, more positive euphemisms like political union/unification or reunification are sometimes seen in discourse. Annexation differs from cession and amalgamation, because unlike cession where territory is given or sold through treaty, or amalgamation (where the authorities of both sides are asked if they agree with the merge), annexation is a unilateral act where territory is seized and held by one state and legitimized via general recognition by the other international bodies (i.e. countries and intergovernmental organisations).
During World War II, the use of annexation deprived whole populations of the safeguards provided by international laws governing military occupations. The authors of the Fourth Geneva Convention made a point of "giving these rules an absolute character", thus making it much more difficult for a state to bypass international law through the use of annexation., Gmina Dubienka is a rural gmina (administrative district) in Chem County, Lublin Voivodeship, in eastern Poland, on the border with Ukraine. Its seat is the village of Dubienka, which lies approximately east of Chem and east of the regional capital Lublin., The Kingdom of Prussia was a German kingdom that constituted the state of Prussia between 1701 and 1918 and included parts of present-day Germany, Poland, Russia, Lithuania, Denmark, Belgium and the Czech Republic. It was the driving force behind the unification of Germany in 1871 and was the leading state of the German Empire until its dissolution in 1918. Although it took its name from the region called Prussia, it was based in the Margraviate of Brandenburg, where its capital was Berlin., The Kociuszko Uprising was an uprising against Imperial Russia and the Kingdom of Prussia led by Tadeusz Kociuszko in the Commonwealth of Poland and the Prussian partition in 1794. It was a failed attempt to liberate the Polish-Lithuanian Commonwealth from Russian influence after the Second Partition of Poland (1793) and the creation of the Targowica Confederation., Lublin (, "Lublin", ) is the ninth largest city in Poland and the second largest city of Lesser Poland. It is the capital and the center of Lublin Voivodeship ("province") with a population of 349,103 (March 2011). Lublin is the largest Polish city east of the Vistula River, and is located approximately to the southeast of Warsaw., Andrzej Tadeusz Bonawentura Kociuszko ("Andrew Thaddeus Bonaventure Kociuszko"; February 4 or 12, 1746  October 15, 1817) was a PolishLithuanian military engineer and a military leader who became a national hero in Poland, Lithuania, Belarus, and the United States. He fought in the PolishLithuanian Commonwealth's struggles against Russia and Prussia, and on the American side in the American Revolutionary War. As Supreme Commander of the Polish National Armed Forces, he led the 1794 Kociuszko Uprising., Subject: battle of dubienka, Relation: location, Options: (A) baltic sea (B) belarus (C) berlin (D) czech republic (E) denmark (F) eastern europe (G) europe (H) geneva (I) german (J) hungary (K) kraków (L) latvia (M) lithuania (N) lublin (O) minsk (P) poland (Q) romania (R) russia (S) russian empire (T) saint petersburg (U) slovakia (V) ukraine (W) united states of america (X) vilnius (Y) warsaw (Z) zamość

Ex Output:
lublin


Ex Input:
Context: The Hecatomnid dynasty or Hecatomnids were the rulers of Caria and surrounding areas from about 395334 BCE.
They were nominally satraps (governors) under the Persian Achaeminid Empire, but ruled with considerable autonomy, and established a hereditary dynasty. The dynasty was founded by Hecatomnus and originally had its seat in Mylasa; Mausolus moved it to Halicarnassus., Mausolus was a ruler of Caria (377353 BC), nominally the Persian Satrap, who enjoyed the status of king or dynast by virtue of the powerful position created by his father Hecatomnus who had succeeded the assassinated Persian Satrap Tissaphernes in the Carian satrapy and founded the hereditary dynasty of the Hecatomnids., The Sasanian Empire (or ), also known as Sassanian, Sasanid, Sassanid or Neo-Persian Empire), known to its inhabitants as rnshahr in Middle Persian, was the last imperial dynasty in Persia (Iran) before the rise of Islam, ruled by and named after the Sasanian dynasty from 224 to 651 AD. The Sasanian Empire, which succeeded the Parthian Empire, was recognized as one of the leading world powers alongside its neighboring arch-rival the Roman-Byzantine Empire, for a period of more than 400 years., Caria (from Luwian: "Karuwa", "steep country"; Ancient Greek: , "Karia") was a region of western Anatolia extending along the coast from mid-Ionia (Mycale) south to Lycia and east to Phrygia. The Ionian and Dorian Greeks colonized the west of it and joined the Carian population in forming Greek-dominated states there. The inhabitants of Caria, known as Carians, had arrived there before the Greeks. They were described by Herodotos as being of Minoan descent, while the Carians themselves maintained that they were Anatolian mainlanders intensely engaged in seafaring and were akin to the Mysians and the Lydians. The Carians did speak an Anatolian language, known as Carian, which does not necessarily reflect their geographic origin, as Anatolian once may have been widespread. Also closely associated with the Carians were the Leleges, which could be an earlier name for Carians or for a people who had preceded them in the region and continued to exist as part of their society in a reputedly second-class status., Hecatomnus of Mylasa or Hekatomnos ( Greek :  ) was an early 4th - century BC ruler of Caria . He was the satrap ( governor ) of Caria for the Persian Achaemenid king Artaxerxes II ( 404 -- 358 BC ) . However , the basis for Hecatomnus ' political power was twofold : he was both a high appointed Persian official and a powerful local dynast , who founded the hereditary dynasty of the Hecatomnids ., A governor is, in most cases, a public official with the power to govern the executive branch of a non-sovereign or sub-national level of government, ranking under the head of state. In federations, "governor" may be the title of a politician who governs a constituent state and may be either appointed or elected. The power of the individual governor can vary dramatically between political systems, with some governors having only nominal and largely ceremonial power, while others having a complete control over the entire government., Mycale. also Mykale and Mykali, called Samsun Da and Dilek Da (Dilek Peninsula) in modern Turkey, is a mountain on the west coast of central Anatolia in Turkey, north of the mouth of the Maeander and divided from the Greek island of Samos by the 1.6 km wide Mycale Strait. The mountain forms a ridge, terminating in what was known anciently as the Trogilium promontory (Ancient Greek  or ). There are several beaches on the north shore ranging from sand to pebbles. The south flank is mainly escarpment., A province is almost always an administrative division, within a country or state. The term derives from the ancient Roman "provincia", which was the major territorial and administrative unit of the Roman Empire's territorial possessions outside Italy. The term province has since been adopted by many countries, and in those with no actual provinces, it has come to mean "outside the capital city". While some provinces were produced artificially by colonial powers, others were formed around local groups with their own ethnic identities. Many have their own powers independent of federal authority, especially in Canada. In other countries, like China, provinces are the creation of central government, with very little autonomy., The Old Persian language is one of the two directly attested Old Iranian languages (the other being Avestan). Old Persian appears primarily in the inscriptions, clay tablets, and seals of the Achaemenid era (c. 600 BCE to 300 BCE). Examples of Old Persian have been found in what is now present-day Iran, Romania (Gherla), Armenia, Bahrain, Iraq, Turkey and Egypt, the most important attestation by far being the contents of the Behistun Inscription (dated to 525 BCE). Recent research into the vast Persepolis Fortification Archive at the Oriental Institute at the University of Chicago have unearthed Old Persian tablets (2007). This new text shows that the Old Persian language was a written language in use for practical recording and not only for royal display., Satraps (Old Persian: xšarapwn) were the governors of the provinces of the ancient Median and Achaemenid (Persian) Empires and in several of their successors, such as the Sasanian Empire and the Hellenistic empires., The Leleges were one of the aboriginal peoples of the Aegean littoral, distinct from the Pelasgians, the Bronze Age Greeks, the Cretan Minoans, the Cycladic Telkhines, and the Tyrrhenians. The classical Hellenes emerged as an amalgam of these six peoples. The distinction between the Leleges and the Carians (a nation living in south west Anatolia) is unclear. According to Homer, the Leleges were a distinct Anatolian tribe; However, Herodotus states that "Leleges" had been an early name for the Carians. The fourth-century BCE historian Philippus of Theangela, suggested that the Leleges maintained connections to Messenia, Laconia, Locris and other regions in mainland Greece, after they were overcome by the Carians in Asia Minor., Subject: hecatomnus, Relation: occupation, Options: (A) canada (B) governor (C) head of state (D) historian (E) islam (F) major (G) mountain (H) official (I) research (J) ruler (K) sovereign

Ex Output:
sovereign