prompt
stringlengths
109
7.32k
response
stringlengths
1
1.45k
Detailed Instructions: In this task, you are given a hateful post in Bengali that expresses hate or encourages violence towards a person or a group based on the protected characteristics such as race, religion, sex, and sexual orientation. You are expected to classify the post into two classes: religious or non-political religious on the topic. Q: বিরোধীদলের বেলায় অনুমতি নাই, সরকারি দলের জন্য পথ বাতলে দেয পুলিশ A:
non-religious
In this task, you are given a country name and you need to answer with the government type of the country, as of the year 2015. The following are possible government types that are considered valid answers: Republic, Parliamentary Coprincipality, Federal Republic, Monarchy, Islamic Republic, Constitutional Monarchy, Parlementary Monarchy, Federation. Egypt Republic Malta Republic Congo, The Democratic Republic of the
Republic
In this task, you are given two strings A,B. You must perform the following operations to generate the required output list: (i) Find the longest common substring in the strings A and B, (ii) Convert this substring to all lowercase and sort it alphabetically, (iii) Replace the substring at its respective positions in the two lists with the updated substring. Example: bYubMFxyTqR, AcDbMFxSnI Example solution: bYubfmxyTqR, AcDbfmxSnI Example explanation: Here, 'bMFx' is the longest common substring in both the input strings 'bYubMFxyTqR' and 'AcDbMFxSnI'. Sorting it and converting to lowercase gives 'bfmx'. Replacing 'bfmx' instead of 'bMFx' in the two strings gives 'bYubfmxyTqR' and 'AcDbfmxSnI' Problem: nJvKMbqUjDfMfzydZMnoYcu, mcLpfMfzydZMnoyrYlXwL
Solution: nJvKMbqUjDdffmmnoyzzYcu, mcLpdffmmnoyzzyrYlXwL
You will be given a definition of a task first, then an example. Follow the example to solve a new instance of the task. Given the following Catalan sentence, indicate the name entities (i.e., the real-world objects such as a person, location, organization, etc. that can be denoted with a proper name) such as 'New York Times'. For each words of a named-entity, indicate their type 'LOC' or 'ORG' or 'PER', where 'LOC' indicates a location entity (such as 'New York City', 'ORG' indicates the token of an organization (such as 'Amazon'), 'PER' indicates the tokens of a person entity (such as 'Jeff Bezos'). Named entities with other types should be indicated with 'MISC'. To indicate boundaries of an entity, use IOB (Inside-Output-Begin) prefixes. The B- prefix before a tag indicates that the word is the beginning of a named entity. The I- prefix indicates that the word is inside a bigger chunk. For example, you can break 'New York' to 'New' and 'York.' and tag them as 'B-LOC' and 'I-LOC'. Any token that doesn't belong to a named entity must be tagged with 'O'. Una setantena de treballadors de Fomento de Construcciones y Contratas a Manresa , gairebé la totalitat de la plantilla , s' han manifestat aquest migdia pels carrers de la ciutat . Solution: Una (O) setantena (O) de (O) treballadors (O) de (O) Fomento (B-ORG) de (I-ORG) Construcciones (I-ORG) y (I-ORG) Contratas (I-ORG) a (O) Manresa (B-LOC) , (O) gairebé (O) la (O) totalitat (O) de (O) la (O) plantilla (O) , (O) s' (O) han (O) manifestat (O) aquest (O) migdia (O) pels (O) carrers (O) de (O) la (O) ciutat (O) . (O) Why? We split the sentence into single words or punctuation and then assigned correct tags to each token as per the definition. We assigned 30 correct tags to the given sentence. New input: Aquests són Els Garidells , Mont-ral , Nulles , Vallmoll ( Alt Camp ) , L' Arbolí , L' Argentera ( Baix Camp ) , Tivenys ( Baix Ebre ) , Llorac , Les Piles , Pontils , Sarral , Vallfogona de Riucorb , ( Conca de Barberà ) , Mas de Barberans , Masdenverge ( Montsià ) , La Bisbal de Falset , Cabassers , Capçanes , La Figuera , Gratallops , El Lloar , Margalef , Poboleda , Porrera , Pradell de Teixeta , La Torre de Fontaubella , Torroja de Priorat , Ulldemolins , La Vilella Alta ( Priorat ) , La Palma d' Ebre ( Ribera d' Ebre ) , Bot , Caseres , La Pobla de Massaluca , Prat de Comte ( Terra Alta ) . Solution:
Aquests (O) són (O) Els (B-LOC) Garidells (I-LOC) , (O) Mont-ral (B-LOC) , (O) Nulles (B-LOC) , (O) Vallmoll (B-LOC) ( (O) Alt (B-LOC) Camp (I-LOC) ) (O) , (O) L' (B-LOC) Arbolí (I-LOC) , (O) L' (B-LOC) Argentera (I-LOC) ( (O) Baix (B-LOC) Camp (I-LOC) ) (O) , (O) Tivenys (B-LOC) ( (O) Baix (B-LOC) Ebre (I-LOC) ) (O) , (O) Llorac (B-LOC) , (O) Les (B-LOC) Piles (I-LOC) , (O) Pontils (B-LOC) , (O) Sarral (B-LOC) , (O) Vallfogona (B-LOC) de (I-LOC) Riucorb (I-LOC) , (O) ( (O) Conca (B-LOC) de (I-LOC) Barberà (I-LOC) ) (O) , (O) Mas (B-LOC) de (I-LOC) Barberans (I-LOC) , (O) Masdenverge (B-LOC) ( (O) Montsià (B-LOC) ) (O) , (O) La (B-LOC) Bisbal (I-LOC) de (I-LOC) Falset (I-LOC) , (O) Cabassers (B-LOC) , (O) Capçanes (B-LOC) , (O) La (B-LOC) Figuera (I-LOC) , (O) Gratallops (B-LOC) , (O) El (B-LOC) Lloar (I-LOC) , (O) Margalef (B-LOC) , (O) Poboleda (B-LOC) , (O) Porrera (B-LOC) , (O) Pradell (B-LOC) de (I-LOC) Teixeta (I-LOC) , (O) La (B-LOC) Torre (I-LOC) de (I-LOC) Fontaubella (I-LOC) , (O) Torroja (B-LOC) de (I-LOC) Priorat (I-LOC) , (O) Ulldemolins (B-LOC) , (O) La (B-LOC) Vilella (I-LOC) Alta (I-LOC) ( (O) Priorat (B-LOC) ) (O) , (O) La (B-LOC) Palma (I-LOC) d' (I-LOC) Ebre (I-LOC) ( (O) Ribera (B-LOC) d' (I-LOC) Ebre (I-LOC) ) (O) , (O) Bot (B-LOC) , (O) Caseres (B-LOC) , (O) La (B-LOC) Pobla (I-LOC) de (I-LOC) Massaluca (I-LOC) , (O) Prat (B-LOC) de (I-LOC) Comte (I-LOC) ( (O) Terra (B-LOC) Alta (I-LOC) ) (O) . (O)
Adverse drug reactions are appreciably harmful or unpleasant reactions resulting from an intervention related to the use of medical products, which predicts hazard from future administration and warrants prevention or specific treatment, or alteration of the dosage regimen, or withdrawal of the product. Given medical case reports extracted from MEDLINE, the task is to classify whether the case report mentions the presence of any adverse drug reaction. Classify your answers into non-adverse drug event and adverse drug event. Example: A case is reported of a child with fatal pulmonary fibrosis following BCNU therapy. Example solution: adverse drug event Example explanation: Here, the child is facing some trouble after undergoing a particular therapy, thereby causing an adverse effect of the therapy. Problem: We also discuss the apparent increased thrombotic risk in patients receiving a VAD for chemotherapy induced cardiomyopathy and the implications this may have for the choice of VAD.
Solution: non-adverse drug event
Detailed Instructions: In this task, you will be given a list of numbers. The goal is to divide all the numbers in the list by a constant such that the sum of the resulting list is 1. The output should be rounded to 3 decimals. Q: [247.427, -24.78, 210.706, 95.202, -9.643, 77.975, 186.895, 51.029] A:
[ 0.296 -0.03 0.252 0.114 -0.012 0.093 0.224 0.061]
Generate a 5-star review (1 being lowest and 5 being highest) about an app with package com.google.android.gms. Answer:
Lovings apps
Given the task definition and input, reply with output. You will be given two sentences. One of them is created by paraphrasing the original one, with changes on an aspect, or using synonyms. Your task is to decide what is the difference between two sentences. Types of change are explained below: Tense: The verbs in the sentence are changed in tense. Number: Plural nouns, verbs and pronouns are changed into single ones or the other way around. Voice: If the verbs are in active voice, they're changed to passive or the other way around. Adverb: The paraphrase has one adverb or more than the original sentence. Gender: The paraphrase differs from the original sentence in the gender of the names and pronouns. Synonym: Some words or phrases of the original sentence are replaced with synonym words or phrases. Changes in the names of people are also considered a synonym change. Classify your answers into Tense, Number, Voice, Adverb, Gender, and Synonym. original sentence: Sid explained his theory to Mark but he couldn't convince him . paraphrase: Sid diligently explained his theory to Mark but he couldn't convince him .
Adverb
Given a premise, an initial context, an original ending, and a counterfactual context, the task is to generate a new story ending aligned with the counterfactual context and as close to the original ending as possible. Each instance consists of a five-sentence story. The premise is the first sentence of a story, and the second sentence, which is the initial context, provides more information about the story's context and the story's general plot. The original ending is the last three sentences of the story. Also, a counterfactual context is a slight modification to the initial context. You should write a new story ending that edits the original story ending as little as possible to regain coherence with the counterfactual context. To sum up, you should write the last three sentences of a story based on the premise(first sentence) and the counterfactual context(second sentence) of the story. Example: Premise: Susie was sitting on her barstool. Initial Context: She kept kicking the counter with her feet. Original Ending: Suddenly, her kick sent her falling backwards. The chair hit the ground with a thud and broke. Susie hurt her head and was really scared. Counterfactual Context: She kept herself steady with her feet. Example solution: Suddenly, an earthquake sent her falling backwards. The chair hit the ground with a thud and broke. Susie hurt her head and was really scared. Example explanation: The generated new ending is perfect. It considers the counterfactual context and changes required parts in original ending. Problem: Premise: Ben loved to play computer games whenever he can. Initial Context: One day Ben got a job to build computers. Original Ending: After a while he became very tired of working with computers so much. It made him not want to play on the computer in his free time anymore. Now Ben exercises at the gym in his free time. Counterfactual Context: One day he was fired from his job for it.
Solution: After a while he became very tired of playing with computers so much. It made him sad that he lost his job because of it. Now Ben exercises at the gym in his free time.
Part 1. Definition In this task, you are given a country name and you need to return the region of the world map that the country is located in. The possible regions that are considered valid answers are: Caribbean, Southern Europe, Eastern Europe, Western Europe, South America, North America, Central America, Antarctica, Australia and New Zealand, Central Africa, Northern Africa, Eastern Africa, Western Africa, Southern Africa, Eastern Asia, Southern and Central Asia, Southeast Asia, Middle East, Melanesia, Polynesia, British Isles, Micronesia, Nordic Countries, Baltic Countries. Part 2. Example Angola Answer: Central Africa Explanation: Angola is located in the Central Africa region of the world map. Part 3. Exercise Saint Pierre and Miquelon Answer:
North America
In this task you will be given a list of dictionaries. A dictionary is a set of key-value pairs, where each key is unique and has a value associated with that key. You should sort the list of dictionaries from smallest to largest by their 'first' key. If there is two dictionaries with the same 'first' value then sort them by their 'second' key. Negative numbers should come before positive numbers. One example: [{'first': 8, 'second': 7}, {'first': -7, 'second': -2}, {'first': 8, 'second': 2}] Solution is here: [{'first': -7, 'second': -2}, {'first': 8, 'second': 2}, {'first': 8, 'second': 7}] Explanation: The two dictionaries that had the same 'first' value were sorted by their 'second' value and the smaller one was listed first. So this is a good example. Now, solve this: [{'first': -73, 'second': 40}, {'first': 62, 'second': -50}, {'first': -62, 'second': 45}, {'first': -95, 'second': -69}] Solution:
[{'first': -95, 'second': -69}, {'first': -73, 'second': 40}, {'first': -62, 'second': 45}, {'first': 62, 'second': -50}]
In this task, you are given a string with unique characters in it and you need to return the character from the string which has the maximum ASCII value. ASCII stands for American Standard Code For Information Interchange and It assigns a unique number to each character. The characters [a - z] have an ASCII range of 97-122 and [A-Z] have an ASCII range of 65-90 respectively. Ex Input: KeBxcy Ex Output: y Ex Input: vcaRHATZOnDzxJw Ex Output: z Ex Input: EBQsngG Ex Output:
s
Given two entities as input, classify as "yes" if second entity is the part of the first entity. Otherwise classify them as "no". These are entities of meronym In linguistics, meronymy is a semantic relation between a meronym denoting a part and a holonym denoting a whole. In simpler terms, a meronym (i.e., second entity) is in a part-of relationship with its holonym (i.e., first entity). Example: Entity 1: plant Entity 2: leaf Example solution: yes Example explanation: The answer is correct. Because the leaf is part of the plant. Therefore, here leaf is meronym and the plant is holonym. Problem: Entity 1: red beetle Entity 2: black spot
Solution: yes
Detailed Instructions: In this task you will be given a string that only contains single digit numbers spelled out. The input string will not contain spaces between the different numbers. Your task is to return the number that the string spells out. The string will spell out each digit of the number for example '1726' will be 'oneseventwosix' instead of 'one thousand seven hundred six'. Q: eighteightsevenonesevenzerofourtwotwo A:
887170422
In this task, we ask you to parse restaurant descriptions into a structured data table of key-value pairs. Here are the attributes (keys) and their examples values. You should preserve this order when creating the answer: name: The Eagle,... eatType: restaurant, coffee shop,... food: French, Italian,... priceRange: cheap, expensive,... customerRating: 1 of 5 (low), 4 of 5 (high) area: riverside, city center, ... familyFriendly: Yes / No near: Panda Express,... The output table may contain all or only some of the attributes but must not contain unlisted attributes. For the output to be considered correct, it also must parse all of the attributes existant in the input sentence; in other words, incomplete parsing would be considered incorrect. Q: Cotto is a moderately-priced coffee shop serving Japanese food near The Portland Arms in the riverside area with a low customer rating. A:
name[Cotto], eatType[coffee shop], food[Japanese], priceRange[moderate], customer rating[1 out of 5], area[riverside], near[The Portland Arms]
In this task you will be given a list of integers. A list contains numbers separated by a comma. You need to round every integer to the closest power of 2. A power of 2 is a number in the form '2^n', it is a number that is the result of multiplying by 2 n times. The following are all powers of 2, '2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096'. If an integer is exactly in equally far from two different powers of 2 then you should output the larger power of 2. The output should be a list of integers that is the result of rounding each integer int the input list to the closest power of 2. The output should include a '[' to denote the start of the output list and ']' to denote the end of the output list. Input: Consider Input: [234, 882, 2509, 2816] Output: [256, 1024, 2048, 2048] Input: Consider Input: [33, 1353, 3776, 4222, 8, 76, 2, 49, 1283, 2364, 3770, 8, 69, 3, 235] Output: [32, 1024, 4096, 4096, 8, 64, 2, 64, 1024, 2048, 4096, 8, 64, 4, 256] Input: Consider Input: [68, 993, 1210, 1271, 20, 82, 4, 125, 940, 4433, 920, 11, 78, 2]
Output: [64, 1024, 1024, 1024, 16, 64, 4, 128, 1024, 4096, 1024, 8, 64, 2]
Given a sequence of actions to navigate an agent in its environment, provide the correct command in a limited form of natural language that matches the sequence of actions when executed. Commands are lowercase and encapsulate the logic of the sequence of actions. Actions are individual steps that serve as the building blocks for a command. There are only six actions: 'I_LOOK', 'I_WALK', 'I_RUN', 'I_JUMP', 'I_TURN_LEFT', and 'I_TURN_RIGHT'. These actions respectively align with the commands 'look', 'walk', 'run', 'jump', 'turn left', and 'turn right'. For commands, 'left' and 'right' are used to denote the direction of an action. opposite turns the agent backward in the specified direction. The word 'around' makes the agent execute an action while turning around in the specified direction. The word 'and' means to execute the next scope of the command following the previous scope of the command. The word 'after' signifies to execute the previous scope of the command following the next scope of the command. The words 'twice' and 'thrice' trigger repetition of a command that they scope over two times or three times, respectively. Actions and commands do not have quotations in the input and output. Q: I_TURN_LEFT I_RUN I_TURN_LEFT I_RUN I_JUMP A:
jump after run left twice
In this task, you will be given a list of numbers. The goal is to divide all the numbers in the list by a constant such that the sum of the resulting list is 1. The output should be rounded to 3 decimals. Example input: [1, 2, 3] Example output: [0.167, 0.333, 0.500] Example explanation: The output list sums to 1.0 and has the same weight as the input 0.333 is twice as large as 0.167, .5 is 3 times as large as 0.167, and 0.5 is 1.5 times as large as 0.333. This is a good example. Q: [-18.392, -44.676, -18.187, 32.406, 205.78, -10.037, 70.128, 118.209] A:
[-0.055 -0.133 -0.054 0.097 0.614 -0.03 0.209 0.353]
In this task, you are given music product reviews in German language. The goal is to classify the review as "POS" if the overall sentiment of the review is positive or as "NEG" if the overall sentiment of the review is negative. Example input: Fast schon teuflisch gut . Gleich mal eins vorne weg: dieses Album ist wieder wesentlich besser als das letzte ("The Last Kind Words"), wenn auch nicht ganz so gut wie die beiden ersten Alben "DevilDriver" und "The Fury Of Our Maker's Hand". Sofort wird hier munter "losgegroovt" mit dem Opener "Pray For Villains". Sofort merkt man: hier regiert der Hammer. Unüberhörbar, dass die Double Basses dermaßen losprügeln, das man fast schon meint es wurde ein Drumcomputer benutzt. Ziemlich sicher bin ich mir aber, dass hier getriggert wurde. Wobei mir das überhaupt nicht auf den Magen schlägt, der Gesamtsound ist wunderbar und vorantreibend. Auch die Gitarren leisten Spitzenarbeit ab. Noch schneller, gar extremer sind sie auf dieser Scheibe wahrzunehmen. Unglaublich... Natürlich leistet auch Dez ganze Arbeit mit seinem unglaublichen Organ. Es kommen sogar mal kurz cleane Vocals zum Einsatz. Aber diese werden nicht tragend für das Lied eingesetzt, also keine Sorge. Weiterhin regieren die tiefen Shouts aus Dez's Kehle. Ansonsten bleibt nur noch zu sagen, dass auch die Produktion auf ganzer Linie überzeugen kann. Einfach nur fett. Also, Devildriver Fans werden sicher nicht enttäuscht sein. Und alle anderen, die auf brachiale Grooves und sonstigen Krach stehen, können hier auch ohne schlechtes Gewissen zugreifen. Super Scheibe. Example output: POS Example explanation: The overall sentiment of the review is positive as the reviewer refers to the music piece with positive expressions such as 'Fast schon teuflisch gut', 'Super Scheibe' etc. Hence, the label is 'POS'. Q: Ja, sind wir denn im Theather? Ja sind wir! . Und zwar im Dream Theater, denn man hört überdeutlich wer das große Vorbild ist und zwar an allen Ecken und Kanten. Jedoch ist das gar nicht schlimm, denn ich behaupte mal die Platte ist mindestens auf dem Niveau von "Scenes from a Memory" oder "Images and Words" und zwar technisch, musikalisch und von der Produktion sogar besser als die meisten DT Alben. Jedes Lied ist auf seine Weise genial. Selbst neun/zehn Minuten Überlängen Tracks gehen vorbei wie in Zeitraffer, so dermaßen genial ist das, was man hier geboten bekommt. Und das schöne ist, dass Vanden Plas Melodien und Härte kombinieren ohne, dass ein Teil zurückstecken muss. Alles ist harmonisch in einem Guss, ohne Schwächen. Wer ist eigentlich Dream Theater? A:
POS
You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character. Example: password = a Example solution: 5 Example explanation: Using 5 steps, it can become a strong password Problem: password = 8KualugPbyA9H4DpnOxgy
Solution: 1
Definition: Adverse drug reactions are appreciably harmful or unpleasant reactions resulting from an intervention related to the use of medical products, which predicts hazard from future administration and warrants prevention or specific treatment, or alteration of the dosage regimen, or withdrawal of the product. Given medical case reports extracted from MEDLINE, the task is to classify whether the case report mentions the presence of any adverse drug reaction. Classify your answers into non-adverse drug event and adverse drug event. Input: This is the first report on the use of charcoal haemoperfusion for acute poisoning in Australia. Output:
non-adverse drug event
In this task, you are given a country name and you need to answer with the government type of the country, as of the year 2015. The following are possible government types that are considered valid answers: Republic, Parliamentary Coprincipality, Federal Republic, Monarchy, Islamic Republic, Constitutional Monarchy, Parlementary Monarchy, Federation. Ex Input: Dominica Ex Output: Republic Ex Input: Russian Federation Ex Output: Federal Republic Ex Input: Wallis and Futuna Ex Output:
Nonmetropolitan Territory of France
The provided file includes inquiries about restaurants in Spanish, and we ask you to translate those to English language. Please bear in mind the following guidelines while doing the translation: 1) We are looking for the most naturally written and formal form of each sentence in your language. We are *NOT* looking for colloquial forms of the sentence. We are looking for formal form which is how you would type your queries in a text-based virtual assistant. 2) The words between quotation marks *SHOULD NOT* be translated. We expect you to keep those values intact and include the quotation marks around them as well. 3) The fully capitalized words like DATE_0, or DURATION_0 *SHOULD NOT* be translated. Please keep them as they are in the translations. 4) Please do not localize measurement units like miles to kilometers during your translation. miles should be translated to its equivalent in your language. 6) Note the input is all lowercased except for fully capitalized special placeholders (e.g. NUMBER, DATE, TIME). Please do the same in your translations. Example: ¿hay algún restaurante " italian " cerca con opiniones de 3 estrellas? Example solution: are there any " italian " restaurants nearby with 3 star reviews ? Example explanation: The translation correctly preserves " italian " entity and is accurate Problem: muéstreme restaurantes "mexican" de 5 estrellas
Solution: show me 5 star " mexican " restaurants
Teacher: Given the following Catalan sentence, indicate the name entities (i.e., the real-world objects such as a person, location, organization, etc. that can be denoted with a proper name) such as 'New York Times'. For each words of a named-entity, indicate their type 'LOC' or 'ORG' or 'PER', where 'LOC' indicates a location entity (such as 'New York City', 'ORG' indicates the token of an organization (such as 'Amazon'), 'PER' indicates the tokens of a person entity (such as 'Jeff Bezos'). Named entities with other types should be indicated with 'MISC'. To indicate boundaries of an entity, use IOB (Inside-Output-Begin) prefixes. The B- prefix before a tag indicates that the word is the beginning of a named entity. The I- prefix indicates that the word is inside a bigger chunk. For example, you can break 'New York' to 'New' and 'York.' and tag them as 'B-LOC' and 'I-LOC'. Any token that doesn't belong to a named entity must be tagged with 'O'. Teacher: Now, understand the problem? If you are still confused, see the following example: Una setantena de treballadors de Fomento de Construcciones y Contratas a Manresa , gairebé la totalitat de la plantilla , s' han manifestat aquest migdia pels carrers de la ciutat . Solution: Una (O) setantena (O) de (O) treballadors (O) de (O) Fomento (B-ORG) de (I-ORG) Construcciones (I-ORG) y (I-ORG) Contratas (I-ORG) a (O) Manresa (B-LOC) , (O) gairebé (O) la (O) totalitat (O) de (O) la (O) plantilla (O) , (O) s' (O) han (O) manifestat (O) aquest (O) migdia (O) pels (O) carrers (O) de (O) la (O) ciutat (O) . (O) Reason: We split the sentence into single words or punctuation and then assigned correct tags to each token as per the definition. We assigned 30 correct tags to the given sentence. Now, solve this instance: Segons SCC , l' oficina comarcal del DARP de Vic gestiona aproximadament el 50 per cent del cens ramader de la demarcació de Barcelona . Student:
Segons (O) SCC (B-ORG) , (O) l' (O) oficina (O) comarcal (O) del (O) DARP (B-ORG) de (O) Vic (B-LOC) gestiona (O) aproximadament (O) el (O) 50 (O) per (O) cent (O) del (O) cens (O) ramader (O) de (O) la (O) demarcació (O) de (O) Barcelona (B-LOC) . (O)
Instructions: In this task, you are given a string with unique characters in it and you need to return the character from the string which has the maximum ASCII value. ASCII stands for American Standard Code For Information Interchange and It assigns a unique number to each character. The characters [a - z] have an ASCII range of 97-122 and [A-Z] have an ASCII range of 65-90 respectively. Input: NLWluMwtxryU Output:
y
You will be given a definition of a task first, then an example. Follow the example to solve a new instance of the task. This task is to find the number of 'For' loops present in the given cpp program. main() { float a[4]; float k; float c; int i; for(i=0;i<4;i++) { scanf("%f",&a[i]); } scanf("%f",&c); c=2*3.1415926*c/360; k=(a[0]+a[1]+a[2]+a[3])/2; double s,sq; sq=(k-a[0])*(k-a[1])*(k-a[2])*(k-a[3]) - a[0]*a[1]*a[2]*a[3]*(double)cos(c/2)*(double)cos(c/2); if(sq<0) printf("Invalid input"); else { s=sqrt(sq); printf("%.4f",s); } } Solution: 1 Why? The number of 'for' loops in the code is given by the number of 'for' string present in the code. Since we can find the exact number of for loops, this is a good example. New input: int f(int m,int l) { int re=0,j; if(l==4) re=1; if(l>4) { for(j=m;j<=sqrt(l);j++) { if(l%j==0) { re=re+1+f(j,l/j); } } } return re; } int main() { int n,i,a[100]={0}; scanf("%d",&n); for(i=0;i<n;i++) { scanf("%d",&a[i]); } for(i=0;i<n;i++) { printf("%d\n",(f(2,a[i])+1)); } } Solution:
3
In this task you will be given a list of integers. A list contains numbers separated by a comma. You need to round every integer to the closest power of 2. A power of 2 is a number in the form '2^n', it is a number that is the result of multiplying by 2 n times. The following are all powers of 2, '2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096'. If an integer is exactly in equally far from two different powers of 2 then you should output the larger power of 2. The output should be a list of integers that is the result of rounding each integer int the input list to the closest power of 2. The output should include a '[' to denote the start of the output list and ']' to denote the end of the output list. Example: [16, 205, 171, 2, 9, 317] Example solution: [16, 256, 128, 2, 8, 256] Example explanation: Every integer in the input list is rounded to the nearest power of 2. The number 2 and 16 are in the input list and both are a power of 2, therefore rounding to the closest power of 2 returns the same number. This is a good example. Problem: [179, 994, 2186, 4428, 6, 81, 3]
Solution: [128, 1024, 2048, 4096, 8, 64, 4]
The provided text is in English, and we ask you to translate the text to the Croatian language. Please bear in mind the following guidelines while translating: 1) We want a natural translation, a formal form. 2) Use the symbols like '#@%$-+_=^&!*' as-is. *Include* the special characters as suited when translating to Croatian. 3) Quantities like millions or billions should be translated to their equivalent in Croatian language 4) Note the input is all case-sensitive except for special placeholders and output is expected to be case-sensitive. 5) The output must have Croatian characters like Ž or č and the output must preserve the Croatian language characters. 6) The input contains punctuations and output is expected to have relevant punctuations for grammatical accuracy. Q: You should try it yourself. A:
Morali biste ih sami probati.
Given the task definition, example input & output, solve the new input case. Given the following Catalan sentence, indicate the name entities (i.e., the real-world objects such as a person, location, organization, etc. that can be denoted with a proper name) such as 'New York Times'. For each words of a named-entity, indicate their type 'LOC' or 'ORG' or 'PER', where 'LOC' indicates a location entity (such as 'New York City', 'ORG' indicates the token of an organization (such as 'Amazon'), 'PER' indicates the tokens of a person entity (such as 'Jeff Bezos'). Named entities with other types should be indicated with 'MISC'. To indicate boundaries of an entity, use IOB (Inside-Output-Begin) prefixes. The B- prefix before a tag indicates that the word is the beginning of a named entity. The I- prefix indicates that the word is inside a bigger chunk. For example, you can break 'New York' to 'New' and 'York.' and tag them as 'B-LOC' and 'I-LOC'. Any token that doesn't belong to a named entity must be tagged with 'O'. Example: Una setantena de treballadors de Fomento de Construcciones y Contratas a Manresa , gairebé la totalitat de la plantilla , s' han manifestat aquest migdia pels carrers de la ciutat . Output: Una (O) setantena (O) de (O) treballadors (O) de (O) Fomento (B-ORG) de (I-ORG) Construcciones (I-ORG) y (I-ORG) Contratas (I-ORG) a (O) Manresa (B-LOC) , (O) gairebé (O) la (O) totalitat (O) de (O) la (O) plantilla (O) , (O) s' (O) han (O) manifestat (O) aquest (O) migdia (O) pels (O) carrers (O) de (O) la (O) ciutat (O) . (O) We split the sentence into single words or punctuation and then assigned correct tags to each token as per the definition. We assigned 30 correct tags to the given sentence. New input case for you: L' estudi planteja també propostes sobre gestió comercial dels camps de neu , diverses ofertes de turisme de la natura , i fins i tot un producte de formació de postgrau sobre el sector turístic o gestió d' infraestructures d' hivern . Output:
L' (O) estudi (O) planteja (O) també (O) propostes (O) sobre (O) gestió (O) comercial (O) dels (O) camps (O) de (O) neu (O) , (O) diverses (O) ofertes (O) de (O) turisme (O) de (O) la (O) natura (O) , (O) i (O) fins (O) i (O) tot (O) un (O) producte (O) de (O) formació (O) de (O) postgrau (O) sobre (O) el (O) sector (O) turístic (O) o (O) gestió (O) d' (O) infraestructures (O) d' (O) hivern (O) . (O)
Part 1. Definition In this task, you are given a movie review in Persian, and you have to extract aspects of the movie mentioned in the text. We define aspects as music(موسیقی), directing(کارگردانی), screenplay/story(داستان), acting/performance(بازی), cinematography(فیلمبرداری), and scene(صحنه). Although there might be multiple aspects in a review, we only need you to write one aspect. Part 2. Example فیلم متوسطی بود از لحاظ داستان ولی خوشحالم که سینمای ایران یک نیم نگاهی به این قشر از جامعه مون کرد.نا گفته نماندگفتگو های پر تامل و تاثیرگذاری داشت با این حال امیدوارم که تماشاچیان عزیز در دام "خطالی عاطفی" نیوفتاده باشند. Answer: داستان Explanation: This is a good example. The review is about the story of the movie. Part 3. Exercise این فیلم عالی بود قرار نیست وقتی واقعیتهای جامعه و تلخی هاشو ببینیم حالمون خوب بشه چون این فیلم قصدش نشاندن این دردهای جامعه بود به آقای سیدی به خاطر این فیلم عالی تبریک می گویم .... Answer:
کارگردانی
Detailed Instructions: Adverse drug reactions are appreciably harmful or unpleasant reactions resulting from an intervention related to the use of medical products, which predicts hazard from future administration and warrants prevention or specific treatment, or alteration of the dosage regimen, or withdrawal of the product. Given medical case reports extracted from MEDLINE, the task is to classify whether the case report mentions the presence of any adverse drug reaction. Classify your answers into non-adverse drug event and adverse drug event. See one example below: Problem: A case is reported of a child with fatal pulmonary fibrosis following BCNU therapy. Solution: adverse drug event Explanation: Here, the child is facing some trouble after undergoing a particular therapy, thereby causing an adverse effect of the therapy. Problem: Diagnosis is made primarily by examination of the stool or intestinal secretions for ova and parasites. Solution:
non-adverse drug event
Indicate with `Yes` if the given question involves the provided reasoning `Category`. Indicate with `No`, otherwise. We define five categories of temporal reasoning. First: "event duration" which is defined as the understanding of how long events last. For example, "brushing teeth", usually takes few minutes. Second: "transient v. stationary" events. This category is based on the understanding of whether an event will change over time or not. For example, the sentence "he was born in the U.S." contains a stationary event since it will last forever; however, "he is hungry" contains a transient event since it will remain true for a short period of time. Third: "event ordering" which is the understanding of how events are usually ordered in nature. For example, "earning money" usually comes before "spending money". The fourth one is "absolute timepoint". This category deals with the understanding of when events usually happen. For example, "going to school" usually happens during the day (not at 2 A.M). The last category is "frequency" which refers to how often an event is likely to be repeated. For example, "taking showers" typically occurs ~5 times a week, "going to Saturday market" usually happens every few weeks/months, etc. Sentence: Martinez works two jobs as a physician's assistant and supports his elderly parents and 8-year-old son. Question: Does Martinez work on the weekdays? Category: Transient v. Stationary.
Yes.
You will be given a definition of a task first, then some input of the task. Read the given message of a sender that is intended to start a conversation, and determine whether it was written by a 'Bot' or by a 'Human'. Typically, bots will have a more disjointed manner of speaking, and will make statements that don't relate to each other, don't make coherent sense, or otherwise appear unnatural. Human will make statements in a more or less coherent and logical way. Since these messages are supposed to be conversation openers, humans will generally start sensibly with a hello or an introduction. Humans may also ask why the other person is not responding. Bots, however, may act as if they are in the middle of a nonsensical conversation. SENDER A: Hey SENDER A: Wanna go to party? SENDER A: Well shit Output:
Human
Given an input word generate a word that rhymes exactly with the input word. If not rhyme is found return "No" One example: difficult Solution is here: No Explanation: The word difficult has no natural English rhymes and so the model outputs No as specified in the instructions. Now, solve this: great Solution:
strait
Detailed Instructions: The provided file includes inquiries about restaurants in Spanish, and we ask you to translate those to English language. Please bear in mind the following guidelines while doing the translation: 1) We are looking for the most naturally written and formal form of each sentence in your language. We are *NOT* looking for colloquial forms of the sentence. We are looking for formal form which is how you would type your queries in a text-based virtual assistant. 2) The words between quotation marks *SHOULD NOT* be translated. We expect you to keep those values intact and include the quotation marks around them as well. 3) The fully capitalized words like DATE_0, or DURATION_0 *SHOULD NOT* be translated. Please keep them as they are in the translations. 4) Please do not localize measurement units like miles to kilometers during your translation. miles should be translated to its equivalent in your language. 6) Note the input is all lowercased except for fully capitalized special placeholders (e.g. NUMBER, DATE, TIME). Please do the same in your translations. Problem:busca restaurantes con más de 6 reseñas. Solution:
search for restaurants with more than 6 reviews .
Given news headlines and an edited word. The original sentence has word within given format {word}. Create new headlines by replacing {word} in the original sentence with edit word. Classify news headlines into "Funny" and "Not Funny" that have been modified by humans using an edit word to make them funny. Example: News Headline: France is ‘ hunting down its citizens who joined {Isis} without trial in Iraq Edit: twins Example solution: Not Funny Example explanation: The edited sentence is not making much sense, therefore it's not funny. Problem: News Headline: The author of the ' fake news ' dossier on Trump 's ties to {Russia} is looking increasingly credible Edit: Laundry
Solution: Not Funny
In this task, you are given two strings A,B. You must perform the following operations to generate the required output list: (i) Find the longest common substring in the strings A and B, (ii) Convert this substring to all lowercase and sort it alphabetically, (iii) Replace the substring at its respective positions in the two lists with the updated substring. One example: bYubMFxyTqR, AcDbMFxSnI Solution is here: bYubfmxyTqR, AcDbfmxSnI Explanation: Here, 'bMFx' is the longest common substring in both the input strings 'bYubMFxyTqR' and 'AcDbMFxSnI'. Sorting it and converting to lowercase gives 'bfmx'. Replacing 'bfmx' instead of 'bMFx' in the two strings gives 'bYubfmxyTqR' and 'AcDbfmxSnI' Now, solve this: zJYULWprDLvaqnqMSSknnxWBDUBQEIUiqUBSVZXaLDDMwNxd, IacZJMJTqnqMSSknnxWBDUBQEIUilVXhvsaeVqPH Solution:
zJYULWprDLvabbdeiikmnnnqqqssuuwxqUBSVZXaLDDMwNxd, IacZJMJTbbdeiikmnnnqqqssuuwxlVXhvsaeVqPH
Detailed Instructions: In this task you will be given a list of integers. You should remove any integer that is not prime. A prime integer is an integer that is only divisible by '1' and itself. The output should be the list of prime numbers in the input list. If there are no primes in the input list an empty list ("[]") should be returned. Q: [140, 245, 550, 853, 163, 857, 271, 477, 434, 41, 744, 429, 641] A:
[853, 163, 857, 271, 41, 641]
In this task, you are given commands (in terms of logical operations) and natural interpretation of the given command to select relevant rows from the given table. Your job is to generate a label "yes" if the interpretation is appropriate for the command, otherwise generate label "no". Here are the definitions of logical operators: 1. count: returns the number of rows in the view. 2. only: returns whether there is exactly one row in the view. 3. hop: returns the value under the header column of the row. 4. and: returns the boolean operation result of two arguments. 5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column. 6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column. 7. argmax/argmin: returns the row with the max/min value in header column. 8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column. 9. eq/not_eq: returns if the two arguments are equal. 10. round_eq: returns if the two arguments are roughly equal under certain tolerance. 11. greater/less: returns if the first argument is greater/less than the second argument. 12. diff: returns the difference between two arguments. 13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument. 14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument. 15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument. 16. filter_all: returns the view itself for the case of describing the whole table 17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument. 18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument. 19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument. 20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument. 21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument. 22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument. [Q]: Command: eq { count { filter_eq { all_rows ; location ; norfolk } } ; 4 }, interpretation: select the rows whose location record fuzzily matches to norfolk . the number of such rows is 4 . [A]: yes [Q]: Command: eq { count { filter_greater { all_rows ; capacity ; 10000 } } ; 3 }, interpretation: select the rows whose capacity record is greater than 10000 . the number of such rows is 3 . [A]: yes [Q]: Command: eq { hop { nth_argmin { all_rows ; season ; 5 } ; team } ; runcorn highfield }, interpretation: select the rows whose country record fuzzily matches to united states . among these rows , select the rows whose money record is less than 140000 . there is only one such row in the table . [A]:
no
Detailed Instructions: You will be given two sentences. One of them is created by paraphrasing the original one, with changes on an aspect, or using synonyms. Your task is to decide what is the difference between two sentences. Types of change are explained below: Tense: The verbs in the sentence are changed in tense. Number: Plural nouns, verbs and pronouns are changed into single ones or the other way around. Voice: If the verbs are in active voice, they're changed to passive or the other way around. Adverb: The paraphrase has one adverb or more than the original sentence. Gender: The paraphrase differs from the original sentence in the gender of the names and pronouns. Synonym: Some words or phrases of the original sentence are replaced with synonym words or phrases. Changes in the names of people are also considered a synonym change. Classify your answers into Tense, Number, Voice, Adverb, Gender, and Synonym. Q: original sentence: Bill passed the gameboy to John because his turn was over . paraphrase: Anne passed the gameboy to Mary because her turn was over . A:
Gender
Detailed Instructions: Given the sentence, generate "yes, and" response. "Yes, and" is a rule-of-thumb in improvisational comedy that suggests that a participant in a dialogue should accept what another participant has stated ("Yes") and then expand on that line of thought or context ("and..."). 1 In short, a "Yes, and" is a dialogue exchange in which a speaker responds by adding new information on top of the information/setting that was constructed by another speaker. Note that a "Yes, and" does not require someone explicitly saying 'yes, and...' as part of a dialogue exchange, although it could be the case if it agrees with the description above. There are many ways in which a response could implicitly/explicitly agree to the prompt without specifically saying 'yes, and...'. Q: I know another guy that teaches a workshop called "Strong and Wrong". I'd like to try that one. A:
That is weird. It doesn't really sound promising, at all.
Detailed Instructions: In this task you will be given a list of integers. A list contains numbers separated by a comma. You need to round every integer to the closest power of 2. A power of 2 is a number in the form '2^n', it is a number that is the result of multiplying by 2 n times. The following are all powers of 2, '2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096'. If an integer is exactly in equally far from two different powers of 2 then you should output the larger power of 2. The output should be a list of integers that is the result of rounding each integer int the input list to the closest power of 2. The output should include a '[' to denote the start of the output list and ']' to denote the end of the output list. Q: [97, 1903, 2178, 3899, 11, 46, 4, 51, 825, 1559, 3804, 11] A:
[128, 2048, 2048, 4096, 8, 32, 4, 64, 1024, 2048, 4096, 8]
A ploynomial equation is a sum of terms. Here each term is either a constant number, or consists of the variable x raised to a certain power and multiplied by a number. These numbers are called weights. For example, in the polynomial: 2x^2+3x+4, the weights are: 2,3,4. You can present a polynomial with the list of its weights, for example, equation weights = [6, 4] represent the equation 6x + 4 and equation weights = [1, 3, 4] represent the equation 1x^2 + 3x + 4. In this task, you need to compute the result of a polynomial expression by substituing a given value of x in the given polynomial equation. Equation weights are given as a list. Example input: x = 3, equation weights = [4, 2] Example output: 14 Example explanation: Here, the weights represent the polynomial: 4x + 2, so we should multiply 4 by 3, and add it to 2 which results in (4*3 + 2 =) 14. Q: x = 7, equation weights = [8, 6, 9] A:
443
Indicate with `Yes` if the given question involves the provided reasoning `Category`. Indicate with `No`, otherwise. We define five categories of temporal reasoning. First: "event duration" which is defined as the understanding of how long events last. For example, "brushing teeth", usually takes few minutes. Second: "transient v. stationary" events. This category is based on the understanding of whether an event will change over time or not. For example, the sentence "he was born in the U.S." contains a stationary event since it will last forever; however, "he is hungry" contains a transient event since it will remain true for a short period of time. Third: "event ordering" which is the understanding of how events are usually ordered in nature. For example, "earning money" usually comes before "spending money". The fourth one is "absolute timepoint". This category deals with the understanding of when events usually happen. For example, "going to school" usually happens during the day (not at 2 A.M). The last category is "frequency" which refers to how often an event is likely to be repeated. For example, "taking showers" typically occurs ~5 times a week, "going to Saturday market" usually happens every few weeks/months, etc. Example: Sentence: Jack played basketball after school, after which he was very tired. Question: How long did Jack play basketball? Category: Event Duration. Example solution: Yes. Example explanation: The question asks about the duration of playing basketball, therefore it's a "event duration" question. Problem: Sentence: So really, that's what many of the people are doing now,"" he said. Question: How often do they do this? Category: Frequency.
Solution: Yes.
Detailed Instructions: Given a premise, an initial context, an original ending, and a counterfactual context, the task is to generate a new story ending aligned with the counterfactual context and as close to the original ending as possible. Each instance consists of a five-sentence story. The premise is the first sentence of a story, and the second sentence, which is the initial context, provides more information about the story's context and the story's general plot. The original ending is the last three sentences of the story. Also, a counterfactual context is a slight modification to the initial context. You should write a new story ending that edits the original story ending as little as possible to regain coherence with the counterfactual context. To sum up, you should write the last three sentences of a story based on the premise(first sentence) and the counterfactual context(second sentence) of the story. Q: Premise: Jim got new shoes. Initial Context: They were a big upgrade from his old shoes. Original Ending: The next day someone stole them. Jim was mad. The thief ended up feeling bad and returning the shoes. Counterfactual Context: They weren't any different from his old shoes. A:
The next day someone stole them. Jim wasn't mad. The thief ended up feeling bad and returning the shoes.
You will be given two sentences. One of them is created by paraphrasing the original one, with changes on an aspect, or using synonyms. Your task is to decide what is the difference between two sentences. Types of change are explained below: Tense: The verbs in the sentence are changed in tense. Number: Plural nouns, verbs and pronouns are changed into single ones or the other way around. Voice: If the verbs are in active voice, they're changed to passive or the other way around. Adverb: The paraphrase has one adverb or more than the original sentence. Gender: The paraphrase differs from the original sentence in the gender of the names and pronouns. Synonym: Some words or phrases of the original sentence are replaced with synonym words or phrases. Changes in the names of people are also considered a synonym change. Classify your answers into Tense, Number, Voice, Adverb, Gender, and Synonym. Example: original sentence: Lily spoke to Donna , breaking her silence . paraphrase: Lily is speaking to Donna , breaking her silence . Example solution: Tense Example explanation: The verbs in this example are changed from past tense to present tense. Problem: original sentence: As Andrea in the crop duster passed over Susan , she could see the landing gear . paraphrase: As Jack in the crop duster passed over Bill , he could see the landing gear .
Solution: Gender
Detailed Instructions: In this task, you are given two sets, and you need to count the number of elements at the union of two given sets. A Set is shown by two curly braces and comma-separated numbers inside, like {1, 2, 3}. Union of two given sets is the smallest set which contains all the elements of both the sets. To find the union of two given sets, A and B is a set that consists of all the elements of A and all the elements of B such that no element is repeated. Q: Set1: '{2, 5, 7, 13, 16, 19}', Set2: '{1, 2, 3, 5, 12, 19}'. How many elements are there in the union of Set1 and Set2 ? A:
9
Indicate with `Yes` if the given question involves the provided reasoning `Category`. Indicate with `No`, otherwise. We define five categories of temporal reasoning. First: "event duration" which is defined as the understanding of how long events last. For example, "brushing teeth", usually takes few minutes. Second: "transient v. stationary" events. This category is based on the understanding of whether an event will change over time or not. For example, the sentence "he was born in the U.S." contains a stationary event since it will last forever; however, "he is hungry" contains a transient event since it will remain true for a short period of time. Third: "event ordering" which is the understanding of how events are usually ordered in nature. For example, "earning money" usually comes before "spending money". The fourth one is "absolute timepoint". This category deals with the understanding of when events usually happen. For example, "going to school" usually happens during the day (not at 2 A.M). The last category is "frequency" which refers to how often an event is likely to be repeated. For example, "taking showers" typically occurs ~5 times a week, "going to Saturday market" usually happens every few weeks/months, etc. Ex Input: Sentence: Cathy Wallace did not always know what she wanted to be when she grew up. Question: Did Cathy always have this unsure feeling? Category: Transient v. Stationary. Ex Output: Yes. Ex Input: Sentence: But while Ahmadinejad's mercurial rants captured our media's attention, back in Iran a coordinated strategy against the women's movement continued. Question: How often does Ahmadinejad rant on television? Category: Frequency. Ex Output: Yes. Ex Input: Sentence: They like to play hopscotch or jump rope but that day they wanted to play tag. Question: Were they playing tag the next day? Category: Transient v. Stationary. Ex Output:
No.
Given the following Catalan sentence, indicate the name entities (i.e., the real-world objects such as a person, location, organization, etc. that can be denoted with a proper name) such as 'New York Times'. For each words of a named-entity, indicate their type 'LOC' or 'ORG' or 'PER', where 'LOC' indicates a location entity (such as 'New York City', 'ORG' indicates the token of an organization (such as 'Amazon'), 'PER' indicates the tokens of a person entity (such as 'Jeff Bezos'). Named entities with other types should be indicated with 'MISC'. To indicate boundaries of an entity, use IOB (Inside-Output-Begin) prefixes. The B- prefix before a tag indicates that the word is the beginning of a named entity. The I- prefix indicates that the word is inside a bigger chunk. For example, you can break 'New York' to 'New' and 'York.' and tag them as 'B-LOC' and 'I-LOC'. Any token that doesn't belong to a named entity must be tagged with 'O'. La protesta ha aplegat una setantena d' empleats , gairebé el total de la plantilla , que és de 80 treballadors .
La (O) protesta (O) ha (O) aplegat (O) una (O) setantena (O) d' (O) empleats (O) , (O) gairebé (O) el (O) total (O) de (O) la (O) plantilla (O) , (O) que (O) és (O) de (O) 80 (O) treballadors (O) . (O)
Given two entities as input, classify as "yes" if second entity is the part of the first entity. Otherwise classify them as "no". These are entities of meronym In linguistics, meronymy is a semantic relation between a meronym denoting a part and a holonym denoting a whole. In simpler terms, a meronym (i.e., second entity) is in a part-of relationship with its holonym (i.e., first entity). Example: Entity 1: plant Entity 2: leaf Example solution: yes Example explanation: The answer is correct. Because the leaf is part of the plant. Therefore, here leaf is meronym and the plant is holonym. Problem: Entity 1: platypus Entity 2: nipple
Solution: yes
Q: Given a negotiation between two participants, answer 'Yes' if both participants agree to the deal, otherwise answer 'No'. THEM: i'll take the hat and two books, that cool? YOU: i need hat and ball or no deal can be made THEM: you can have the ball, but i need the hat. YOU: hat needed or no deal. A:
No
Read the given sentence and if it is a general advice then indicate via "yes". Otherwise indicate via "no". advice is basically offering suggestions about the best course of action to someone. advice can come in a variety of forms, for example Direct advice and Indirect advice. (1) Direct advice: Using words (e.g., suggest, advice, recommend), verbs (e.g., can, could, should, may), or using questions (e.g., why don't you's, how about, have you thought about). (2) Indirect advice: contains hints from personal experiences with the intention for someone to do the same thing or statements that imply an action should (or should not) be taken. Example: Our ruminating thoughts will still show up while you do it but you'll slowly be teaching yourself to let go of those thoughts and let them pass by. Example solution: yes Example explanation: This sentence suggesting someone to let go of their respective thoughts. Hence the answer is "yes". Problem: Once you understand why you 're doing it , you can work on not doing it .
Solution: no
In mathematics, the absolute value of a number is the non-negative value of that number, without regarding its sign. For example, the absolute value of -2 is 2, and the absolute value of 5 is 5. In this task you will be given a list of numbers and you need to return the element with highest absolute value. If a negative and positive element have the same absolute value you should return the positive element. The absolute value for negative numbers can be found by multiplying them by -1. After finding the element with the maximum absolute value you should return the value of that element before you applied the absolute value. Q: [-36.115 -25.204 -38.722] A: -38.722 **** Q: [ 16.147 -24.875 -64.468 48.768 -26.339 91.764 -66.03 -41.009] A: 91.764 **** Q: [-13.184 41.152 75.413 -46.028 95.636 61.967 16.105] A:
95.636 ****
In this task you will be given a string that only contains single digit numbers spelled out. The input string will not contain spaces between the different numbers. Your task is to return the number that the string spells out. The string will spell out each digit of the number for example '1726' will be 'oneseventwosix' instead of 'one thousand seven hundred six'. Q: twoninethreeeightthreefourthree A:
2938343
Given an input word generate a word that rhymes exactly with the input word. If not rhyme is found return "No" Example: difficult Example solution: No Example explanation: The word difficult has no natural English rhymes and so the model outputs No as specified in the instructions. Problem: gather
Solution: rather
In this task you will be given a list of dictionaries. A dictionary is a set of key-value pairs, where each key is unique and has a value associated with that key. You should sort the list of dictionaries from smallest to largest by their 'first' key. If there is two dictionaries with the same 'first' value then sort them by their 'second' key. Negative numbers should come before positive numbers. Example input: [{'first': 8, 'second': 7}, {'first': -7, 'second': -2}, {'first': 8, 'second': 2}] Example output: [{'first': -7, 'second': -2}, {'first': 8, 'second': 2}, {'first': 8, 'second': 7}] Example explanation: The two dictionaries that had the same 'first' value were sorted by their 'second' value and the smaller one was listed first. So this is a good example. Q: [{'first': -78, 'second': -27}, {'first': -6, 'second': -15}, {'first': -21, 'second': -20}, {'first': 71, 'second': -100}, {'first': -20, 'second': -85}] A:
[{'first': -78, 'second': -27}, {'first': -21, 'second': -20}, {'first': -20, 'second': -85}, {'first': -6, 'second': -15}, {'first': 71, 'second': -100}]
In this task, you are given commands (in terms of logical operations) and natural interpretation of the given command to select relevant rows from the given table. Your job is to generate a label "yes" if the interpretation is appropriate for the command, otherwise generate label "no". Here are the definitions of logical operators: 1. count: returns the number of rows in the view. 2. only: returns whether there is exactly one row in the view. 3. hop: returns the value under the header column of the row. 4. and: returns the boolean operation result of two arguments. 5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column. 6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column. 7. argmax/argmin: returns the row with the max/min value in header column. 8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column. 9. eq/not_eq: returns if the two arguments are equal. 10. round_eq: returns if the two arguments are roughly equal under certain tolerance. 11. greater/less: returns if the first argument is greater/less than the second argument. 12. diff: returns the difference between two arguments. 13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument. 14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument. 15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument. 16. filter_all: returns the view itself for the case of describing the whole table 17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument. 18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument. 19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument. 20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument. 21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument. 22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument. Command: greater { hop { filter_eq { all_rows ; school ( ihsaa id ) ; knox community } ; enrollment } ; hop { filter_eq { all_rows ; school ( ihsaa id ) ; culver community } ; enrollment } }, interpretation: select the rows whose school ( ihsaa id ) record fuzzily matches to knox community . take the enrollment record of this row . select the rows whose school ( ihsaa id ) record fuzzily matches to culver community . take the enrollment record of this row . the first record is greater than the second record .
yes
Definition: Given an adjective, generate its antonym. An antonym of a word is a word opposite in meaning to it. Input: different Output:
same
In this task you will be given a string that only contains single digit numbers spelled out. The input string will not contain spaces between the different numbers. Your task is to return the number that the string spells out. The string will spell out each digit of the number for example '1726' will be 'oneseventwosix' instead of 'one thousand seven hundred six'. Example: twotwoonesixzeronine Example solution: 221609 Example explanation: The string is properly converted into a number based on the spelling of each digit. The string started with 'twotwo' therefore the number also started with '22'. This is a good example. Problem: ninethreefivefoursixsixninetwoeightzerosixfive
Solution: 935466928065
In this task, you are given a hateful post in Bengali that expresses hate or encourages violence towards a person or a group based on the protected characteristics such as race, religion, sex, and sexual orientation. You are expected to classify the post into two classes: religious or non-political religious on the topic. One example is below. Q: কোনো মেয়ে ইসলাম ধর্ম গ্রহণ করলে আমি তাকে বিয়ে করতে রাজি(আমি কুরআন হাফেজ)। A: religious Rationale: Here it expresses hate against the religion, hence tagged as religious. Q: আরো একটি লাশ উপহার দিল বিএসএফ A:
non-religious
In this task you are expected to write an SQL query that will return the data asked for in the question. An SQL query works by selecting data from a table where certain conditions apply. A table contains columns where every row in that table must have a value for each column. Every table has a primary key that uniquely identifies each row, usually an id. To choose which columns are returned you specify that after the "SELECT" statement. Next, you use a "FROM" statement to specify what tables you want to select the data from. When you specify a table you can rename it with the "AS" statement. You can reference that table by whatever name follows the "AS" statement. If you want to select data from multiple tables you need to use the "JOIN" statement. This will join the tables together by pairing a row in one table with every row in the other table (Cartesian Product). To limit the number of rows returned you should use the "ON" statement. This will only return rows where the condition specified after the statement is true, this is usually an equals operator with primary keys. You can also use the "WHERE" statement to specify that only rows with column values statisfying a certain condition, should be returned. The "GROUP BY" statement will group rows together that have equal column values for whatever columns follows the statement. The "HAVING" statement will return groups that statisfy whatever condition follows the statement. Any column(s) being returned from grouped rows must either be an aggregate function, (AVG, MAX, COUNT, SUM, ...) of a column, or the column(s) that the data was grouped by. To sort the returned data you can use the "ORDER BY" command which will order the data by whatever aggregate function or column follows the statement. The "DESC" statement will sort in descending order and the "ASC" statement will sort in ascending order. Finally, you can use the "LIMIT" statement to return a certain number of rows. When "*" is used in an SQL statement every column is returned. For example, SELECT * FROM table WHERE attribute = 1, will select every column from rows with the attribute column equal to 1. Example input: Find the id and city of the student address with the highest average monthly rental. Example output: SELECT T2.address_id , T1.city FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id GROUP BY T2.address_id ORDER BY AVG(monthly_rental) DESC LIMIT 1 Example explanation: First we select the student's id and city of their address. Next, to find where each student lived we must join the "Addresses" table with the "Student_Addresses" table on rows with the same "address_id". Finally, we want to return the student address with the highest monthly rent. This is a good example. Q: Whic`h unique cities are in Asian countries where Chinese is the official language? A:
SELECT DISTINCT T3.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode JOIN city AS T3 ON T1.Code = T3.CountryCode WHERE T2.IsOfficial = 'T' AND T2.Language = 'Chinese' AND T1.Continent = "Asia"
Given a premise, an initial context, an original ending, and a counterfactual context, the task is to generate a new story ending aligned with the counterfactual context and as close to the original ending as possible. Each instance consists of a five-sentence story. The premise is the first sentence of a story, and the second sentence, which is the initial context, provides more information about the story's context and the story's general plot. The original ending is the last three sentences of the story. Also, a counterfactual context is a slight modification to the initial context. You should write a new story ending that edits the original story ending as little as possible to regain coherence with the counterfactual context. To sum up, you should write the last three sentences of a story based on the premise(first sentence) and the counterfactual context(second sentence) of the story. Q: Premise: Mitch read that there would be a big sale on TVs at a store. Initial Context: He camped out all night to be first in line for the deal. Original Ending: Once the doors opened he dashed to the electronics department. Another many fought Mitch for the TV's. Mitch put the other man in a sleeper hold to pacify him. Counterfactual Context: He didn't want to camp out all night, so he ended up missing out on the sale. A:
Once the doors opened, he was at the back of the line as he dashed to the electronics department. Many people had fought for the TVs. Mitch didn't see any more TVs on sale.
Detailed Instructions: A ploynomial equation is a sum of terms. Here each term is either a constant number, or consists of the variable x raised to a certain power and multiplied by a number. These numbers are called weights. For example, in the polynomial: 2x^2+3x+4, the weights are: 2,3,4. You can present a polynomial with the list of its weights, for example, equation weights = [6, 4] represent the equation 6x + 4 and equation weights = [1, 3, 4] represent the equation 1x^2 + 3x + 4. In this task, you need to compute the result of a polynomial expression by substituing a given value of x in the given polynomial equation. Equation weights are given as a list. Q: x = 9, equation weights = [6, 1, 3, 0] A:
4482
Detailed Instructions: In this task, you are given music product reviews in German language. The goal is to classify the review as "POS" if the overall sentiment of the review is positive or as "NEG" if the overall sentiment of the review is negative. Q: Naja . Ich finde die CD nicht so toll... wurde mir empfohlen aber irgendwie finde ich van halen nich besonders abwechslungsreich: fast alles in dur, die stimme von dem sänger ist nur mit ohropax zu ertragen. das war garantiert meine erste und letzte vanhalen cd. A:
NEG
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Input: [19, 28, 37, 46, 55, 64, 73, 82, 91, 100, 109, 118, 127, 136, 145, 154, 163, 172, 181, 190] Output:
1
Read the given sentence and if it is a general advice then indicate via "yes". Otherwise indicate via "no". advice is basically offering suggestions about the best course of action to someone. advice can come in a variety of forms, for example Direct advice and Indirect advice. (1) Direct advice: Using words (e.g., suggest, advice, recommend), verbs (e.g., can, could, should, may), or using questions (e.g., why don't you's, how about, have you thought about). (2) Indirect advice: contains hints from personal experiences with the intention for someone to do the same thing or statements that imply an action should (or should not) be taken. Example input: Our ruminating thoughts will still show up while you do it but you'll slowly be teaching yourself to let go of those thoughts and let them pass by. Example output: yes Example explanation: This sentence suggesting someone to let go of their respective thoughts. Hence the answer is "yes". Q: At a job where it 's suit and tie or white collar , I would really think about it . A:
yes
Teacher: In this task, you are given a string with unique characters in it and you need to return the character from the string which has the maximum ASCII value. ASCII stands for American Standard Code For Information Interchange and It assigns a unique number to each character. The characters [a - z] have an ASCII range of 97-122 and [A-Z] have an ASCII range of 65-90 respectively. Teacher: Now, understand the problem? If you are still confused, see the following example: aBxyZde Solution: y Reason: y has the maximum ascii value in the given string. Now, solve this instance: vUoqTWuY Student:
v
Detailed Instructions: In this task, you're given a sentence and question. Based on the information provided in a given sentence, you should identify the shortest continuous text span from the sentence that serves as an answer to the given question. Answer the question using coreference resolution. Coreference resolution is the task of clustering mentions in text that refer to the same underlying real world entities. For example let's take a sentence 'I voted for Obama because he was most aligned with my values, she said.' Here in this example 'I', 'my', and 'she' belong to the same cluster and 'Obama' and 'he' belong to the same cluster. Now let's discuss another example , original sentence: 'I voted for Trump because he was most aligned with my values',John said. Now here is the same sentence with resolved coreferences: 'John voted for Trump because Trump was most aligned with John's values',John said. Q: Sentence: There are too many deer in the park, so the park service brought in a small pack of wolves. The population should decrease over the next few years. Question: Which population will decrease? A:
deer
You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right [Q]: [166, 162, 158, 154, 150, 146, 142, 138, 134, 130, 126, 122, 118, 114, 110, 106, 102, 98, 94, 90, 86, 82, 78, 74, 70, 66, 62, 58, 54, 50, 46, 42, 38, 34, 30, 26, 22, 18, 14] [A]: 1 [Q]: [35, 42, 49, 56, 63, 70, 77, 84, 91, 98, 105] [A]: 1 [Q]: [28, 37, 46, 55, 64, 73, 82, 91, 100, 109, 118, 127] [A]:
1
Given a short bio of a person, find the minimal text span containing the date of birth of the person. The output must be the minimal text span that contains the birth date, month and year as long as they are present. For instance, given a bio like 'I was born on 27th of Decemeber 1990, and graduated high school on 23rd October 2008.' the output should be '27th of December 1990'. Example input: Basinger was born in Athens, Georgia, on December 8, 1953 Example output: December 8, 1953 Example explanation: The output is correct as it is a valid text span, is of minimal length and is the correct date of birth. Q: Margot Elise Robbie was born on 2 July 1990 in Dalby, Queensland, to Doug Robbie, a former farm-owner and sugarcane tycoon, and Sarie Kessler, a physiotherapist A:
2 July 1990
Detailed Instructions: In this task you will be given a list of dictionaries. A dictionary is a set of key-value pairs, where each key is unique and has a value associated with that key. You should sort the list of dictionaries from smallest to largest by their 'first' key. If there is two dictionaries with the same 'first' value then sort them by their 'second' key. Negative numbers should come before positive numbers. Q: [{'first': 12, 'second': -93}, {'first': 24, 'second': 19}, {'first': -30, 'second': -38}, {'first': -67, 'second': 43}, {'first': 88, 'second': 71}, {'first': -22, 'second': -91}, {'first': 15, 'second': 56}, {'first': 88, 'second': 87}, {'first': 70, 'second': -4}, {'first': -23, 'second': -97}] A:
[{'first': -67, 'second': 43}, {'first': -30, 'second': -38}, {'first': -23, 'second': -97}, {'first': -22, 'second': -91}, {'first': 12, 'second': -93}, {'first': 15, 'second': 56}, {'first': 24, 'second': 19}, {'first': 70, 'second': -4}, {'first': 88, 'second': 71}, {'first': 88, 'second': 87}]
In this task you will be given a list of integers. You should find the minimum absolute difference between 2 integers in the list. The absolute difference is the absolute value of one integer subtracted by another. The output should be a single integer which is the smallest possible absolute distance. Example: [9, 40, -33, 12, 17, -32, 40] Example solution: 0 Example explanation: The minimum absolute difference is 0 because '40 - 40 = 0' and '40' appears in the list twice. So this is a good example. Problem: [45, -68, 15, 16, 36, -18, -79, 1, -24, 89]
Solution: 1
Given a part of privacy policy text, identify the purpose for which the user information is collected/used. The purpose should be given inside the policy text, answer as 'Not Specified' otherwise Example: The site collects your IP address or device IDs for advertising. Collection happens when you implicitly provide information on the website. Example solution: Advertising Example explanation: The given policy text states that it uses user information for 'advertising' explicitly Problem: A named third party does receive your health information for an unspecified purpose. You can opt out by contacting the company for the use of your information.
Solution: Unspecified
In this task, you are given commands (in terms of logical operations) and natural interpretation of the given command to select relevant rows from the given table. Your job is to generate a label "yes" if the interpretation is appropriate for the command, otherwise generate label "no". Here are the definitions of logical operators: 1. count: returns the number of rows in the view. 2. only: returns whether there is exactly one row in the view. 3. hop: returns the value under the header column of the row. 4. and: returns the boolean operation result of two arguments. 5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column. 6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column. 7. argmax/argmin: returns the row with the max/min value in header column. 8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column. 9. eq/not_eq: returns if the two arguments are equal. 10. round_eq: returns if the two arguments are roughly equal under certain tolerance. 11. greater/less: returns if the first argument is greater/less than the second argument. 12. diff: returns the difference between two arguments. 13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument. 14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument. 15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument. 16. filter_all: returns the view itself for the case of describing the whole table 17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument. 18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument. 19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument. 20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument. 21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument. 22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument. One example is below. Q: Command: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }, interpretation: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06. A: yes Rationale: Here, the command and interpretion given for the command is correct that 3rd maximum should be selected from given table rows. Hence, the label is 'yes'. Q: Command: and { only { filter_eq { all_rows ; reason for non - seating ; elected , but declined to take office } } ; eq { hop { filter_eq { all_rows ; reason for non - seating ; elected , but declined to take office } ; member - elect } ; john cantine } }, interpretation: select the rows whose rider record fuzzily matches to suzuki . there is only one such row in the table . A:
no
Definition: Given an adjective, generate its antonym. An antonym of a word is a word opposite in meaning to it. Input: unperplexed Output:
perplexed
You will be given two sentences. One of them is created by paraphrasing the original one, with changes on an aspect, or using synonyms. Your task is to decide what is the difference between two sentences. Types of change are explained below: Tense: The verbs in the sentence are changed in tense. Number: Plural nouns, verbs and pronouns are changed into single ones or the other way around. Voice: If the verbs are in active voice, they're changed to passive or the other way around. Adverb: The paraphrase has one adverb or more than the original sentence. Gender: The paraphrase differs from the original sentence in the gender of the names and pronouns. Synonym: Some words or phrases of the original sentence are replaced with synonym words or phrases. Changes in the names of people are also considered a synonym change. Classify your answers into Tense, Number, Voice, Adverb, Gender, and Synonym. Let me give you an example: original sentence: Lily spoke to Donna , breaking her silence . paraphrase: Lily is speaking to Donna , breaking her silence . The answer to this example can be: Tense Here is why: The verbs in this example are changed from past tense to present tense. OK. solve this: original sentence: I couldn't put the pot on the shelf because it was too tall . paraphrase: I couldn't easily put the pot on the shelf because it was too tall . Answer:
Adverb
You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Example input: [1,2,2,3] Example output: 1 Example explanation: The array is monotonic as 1 < 2 <= 2 < 3 Q: [11, 22, 91, 7, 82, 0, 89, 19, 13, 17] A:
2
Adverse drug reactions are appreciably harmful or unpleasant reactions resulting from an intervention related to the use of medical products, which predicts hazard from future administration and warrants prevention or specific treatment, or alteration of the dosage regimen, or withdrawal of the product. Given medical case reports extracted from MEDLINE, the task is to classify whether the case report mentions the presence of any adverse drug reaction. Classify your answers into non-adverse drug event and adverse drug event. Let me give you an example: A case is reported of a child with fatal pulmonary fibrosis following BCNU therapy. The answer to this example can be: adverse drug event Here is why: Here, the child is facing some trouble after undergoing a particular therapy, thereby causing an adverse effect of the therapy. OK. solve this: SETTING: Hospital-based pathology laboratory processing inpatient and outpatient specimens. Answer:
non-adverse drug event
Given a part of privacy policy text, identify the purpose for which the user information is collected/used. The purpose should be given inside the policy text, answer as 'Not Specified' otherwise Q: The site collects your generic personal information for service operations or security. Collection happens when you implicitly provide information in an unspecified way. A:
Service Operation and Security
The provided file includes inquiries about restaurants in Spanish, and we ask you to translate those to English language. Please bear in mind the following guidelines while doing the translation: 1) We are looking for the most naturally written and formal form of each sentence in your language. We are *NOT* looking for colloquial forms of the sentence. We are looking for formal form which is how you would type your queries in a text-based virtual assistant. 2) The words between quotation marks *SHOULD NOT* be translated. We expect you to keep those values intact and include the quotation marks around them as well. 3) The fully capitalized words like DATE_0, or DURATION_0 *SHOULD NOT* be translated. Please keep them as they are in the translations. 4) Please do not localize measurement units like miles to kilometers during your translation. miles should be translated to its equivalent in your language. 6) Note the input is all lowercased except for fully capitalized special placeholders (e.g. NUMBER, DATE, TIME). Please do the same in your translations. Q: dame reseñas para " jade buffet " . A:
give me reviews for " jade buffet " .
Given two entities as input, classify as "yes" if second entity is the part of the first entity. Otherwise classify them as "no". These are entities of meronym In linguistics, meronymy is a semantic relation between a meronym denoting a part and a holonym denoting a whole. In simpler terms, a meronym (i.e., second entity) is in a part-of relationship with its holonym (i.e., first entity). Q: Entity 1: organism Entity 2: mineral calcite A:
yes
Turn the given fact into a question by a simple rearrangement of words. This typically involves replacing some part of the given fact with a WH word. For example, replacing the subject of the provided fact with the word "what" can form a valid question. Don't be creative! You just need to rearrange the words to turn the fact into a question - easy! Don't just randomly remove a word from the given fact to form a question. Remember that your question must evaluate scientific understanding. Pick a word or a phrase in the given fact to be the correct answer, then make the rest of the question. You can also form a question without any WH words. For example, "A radio converts electricity into?" Example input: Fact: pesticides can harm animals. Example output: What can harm animals? Example explanation: It's a good question because it is formed by simply replacing the word "pesticides" with "what". Q: Fact: Animals take in food by eating producers or other living things. A:
What takes in food by eating producers or other living things?
Given the sentence, generate "yes, and" response. "Yes, and" is a rule-of-thumb in improvisational comedy that suggests that a participant in a dialogue should accept what another participant has stated ("Yes") and then expand on that line of thought or context ("and..."). 1 In short, a "Yes, and" is a dialogue exchange in which a speaker responds by adding new information on top of the information/setting that was constructed by another speaker. Note that a "Yes, and" does not require someone explicitly saying 'yes, and...' as part of a dialogue exchange, although it could be the case if it agrees with the description above. There are many ways in which a response could implicitly/explicitly agree to the prompt without specifically saying 'yes, and...'. Example input: I just want to say if this does not work out I promise to to personally show up to each of your homes and apologize for my life not working out the way that it should. Example output: You know what, come tell us at the community pool. Example explanation: This is a good response. Because it accepts in indirect way the input sentence and supports it. Q: You ever noticed that jewelry's crazy? Like people just assign value to shiny things but they don't really have value. A:
Yeah. It's funny 'cause it's true.
Detailed Instructions: In this task, you are given a date in a particular format and you need to convert to another format. If given format is "dd/mm/yyyy" then convert to "mm/dd/yyyy". If given format is "mm/dd/yyyy" then convert to "dd/mm/yyyy". Q: 16/12/1825, input_format=dd/mm/yyyy A:
12/16/1825
Instructions: Turn the given fact into a question by a simple rearrangement of words. This typically involves replacing some part of the given fact with a WH word. For example, replacing the subject of the provided fact with the word "what" can form a valid question. Don't be creative! You just need to rearrange the words to turn the fact into a question - easy! Don't just randomly remove a word from the given fact to form a question. Remember that your question must evaluate scientific understanding. Pick a word or a phrase in the given fact to be the correct answer, then make the rest of the question. You can also form a question without any WH words. For example, "A radio converts electricity into?" Input: Fact: soil comes from rocks. Output:
where does soil come from?
Detailed Instructions: In this task you will be given a list of integers. A list contains numbers separated by a comma. You need to round every integer to the closest power of 2. A power of 2 is a number in the form '2^n', it is a number that is the result of multiplying by 2 n times. The following are all powers of 2, '2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096'. If an integer is exactly in equally far from two different powers of 2 then you should output the larger power of 2. The output should be a list of integers that is the result of rounding each integer int the input list to the closest power of 2. The output should include a '[' to denote the start of the output list and ']' to denote the end of the output list. Q: [246, 563, 4618, 555, 7, 65, 4, 237, 1731, 3926, 4309] A:
[256, 512, 4096, 512, 8, 64, 4, 256, 2048, 4096, 4096]
You will be given two sentences. One of them is created by paraphrasing the original one, with changes on an aspect, or using synonyms. Your task is to decide what is the difference between two sentences. Types of change are explained below: Tense: The verbs in the sentence are changed in tense. Number: Plural nouns, verbs and pronouns are changed into single ones or the other way around. Voice: If the verbs are in active voice, they're changed to passive or the other way around. Adverb: The paraphrase has one adverb or more than the original sentence. Gender: The paraphrase differs from the original sentence in the gender of the names and pronouns. Synonym: Some words or phrases of the original sentence are replaced with synonym words or phrases. Changes in the names of people are also considered a synonym change. Classify your answers into Tense, Number, Voice, Adverb, Gender, and Synonym. One example is below. Q: original sentence: Lily spoke to Donna , breaking her silence . paraphrase: Lily is speaking to Donna , breaking her silence . A: Tense Rationale: The verbs in this example are changed from past tense to present tense. Q: original sentence: Fred watched TV while George went out to buy groceries . After an hour he got up . paraphrase: Fred lazily watched TV while George dutifully went out to buy groceries . After an hour he then got up . A:
Adverb
Detailed Instructions: In this task you will be given a list of numbers and you should remove all duplicates in the list. If every number is repeated in the list an empty list should be returned. Your list should be numbers inside brackets, just like the given list. Q: [3, 3, 5, 6, 6, 0, 5, 6, 6] A:
[0]
Detailed Instructions: In mathematics, the absolute value of a number is the non-negative value of that number, without regarding its sign. For example, the absolute value of -2 is 2, and the absolute value of 5 is 5. In this task you will be given a list of numbers and you need to return the element with highest absolute value. If a negative and positive element have the same absolute value you should return the positive element. The absolute value for negative numbers can be found by multiplying them by -1. After finding the element with the maximum absolute value you should return the value of that element before you applied the absolute value. Q: [ 34.928 -3.81 53.324 -0.848 -68.696 11.799] A:
-68.696
Detailed Instructions: In this task you will be given two lists of numbers and you need to calculate the intersection between these two lists. The intersection between two lists is another list where every element is common between the two original lists. If there are no elements in the intersection, answer with an empty list. Your list of numbers must be inside brackets. Sort the numbers in your answer in an ascending order, that is, no matter what the order of the numbers in the lists is, you should put them in your answer in an ascending order. Q: [2, 3, 9, 6, 6, 3, 4, 5, 6] , [9, 8, 6, 8, 8, 7, 10, 4, 3] A:
[3, 4, 6, 9]
In this task you will be given two lists of numbers and you need to calculate the intersection between these two lists. The intersection between two lists is another list where every element is common between the two original lists. If there are no elements in the intersection, answer with an empty list. Your list of numbers must be inside brackets. Sort the numbers in your answer in an ascending order, that is, no matter what the order of the numbers in the lists is, you should put them in your answer in an ascending order. Let me give you an example: [2,5,1,4],[2,5,8,4,2,0] The answer to this example can be: [2,4,5] Here is why: The elements 2,4, and 5 are in both lists. This is a good example. OK. solve this: [2, 10, 2, 9, 6, 2, 2, 3, 3, 1] , [4, 7, 3, 6, 1, 5, 8, 1, 4, 1] Answer:
[1, 3, 6]
Instructions: Turn the given fact into a question by a simple rearrangement of words. This typically involves replacing some part of the given fact with a WH word. For example, replacing the subject of the provided fact with the word "what" can form a valid question. Don't be creative! You just need to rearrange the words to turn the fact into a question - easy! Don't just randomly remove a word from the given fact to form a question. Remember that your question must evaluate scientific understanding. Pick a word or a phrase in the given fact to be the correct answer, then make the rest of the question. You can also form a question without any WH words. For example, "A radio converts electricity into?" Input: Fact: chronic impact causes the temperature of an object to increase. Output:
what causes the temperature of an object to increase?
Given a part of privacy policy text, identify the purpose for which the user information is collected/used. The purpose should be given inside the policy text, answer as 'Not Specified' otherwise Q: The site collects your website activities for advertising. Collection happens when you implicitly provide information on the website. You can opt out using the provided link for the use of your information. A:
Advertising
In this task you will be given a string and you should find the longest substring that is a palindrome. A palindrome is a string that is the same backwards as it is forwards. If the shortest possible palindrome is length 1 you should return the first character. One example is below. Q: gocogccocco A: gocog Rationale: The substring 'gocog' is the longest possible substring that is also a palindrome. So this is a good example. Q: zkkqkzqkqzkkz A:
kzqkqzk
In this task you will be given a list of integers. You should remove any integer that is not prime. A prime integer is an integer that is only divisible by '1' and itself. The output should be the list of prime numbers in the input list. If there are no primes in the input list an empty list ("[]") should be returned. Example: [47, 444, 859, 530, 197, 409] Example solution: [47, 859, 197, 409] Example explanation: The integers '444' and '530' are not prime integers and they were removed from the list. Problem: [197, 653, 181, 103, 179, 409, 73, 271, 461, 41, 436, 245, 617, 366, 733, 51, 919, 446, 947, 234]
Solution: [197, 653, 181, 103, 179, 409, 73, 271, 461, 41, 617, 733, 919, 947]
Part 1. Definition In this task, you are given a country name and you need to return the Top Level Domain (TLD) of the given country. The TLD is the part that follows immediately after the "dot" symbol in a website's address. The output, TLD is represented by a ".", followed by the domain. Part 2. Example Andorra Answer: .ad Explanation: .ad is the TLD of the country called Andorra. Part 3. Exercise Benin Answer:
.bj
A ploynomial equation is a sum of terms. Here each term is either a constant number, or consists of the variable x raised to a certain power and multiplied by a number. These numbers are called weights. For example, in the polynomial: 2x^2+3x+4, the weights are: 2,3,4. You can present a polynomial with the list of its weights, for example, equation weights = [6, 4] represent the equation 6x + 4 and equation weights = [1, 3, 4] represent the equation 1x^2 + 3x + 4. In this task, you need to compute the result of a polynomial expression by substituing a given value of x in the given polynomial equation. Equation weights are given as a list. Example input: x = 3, equation weights = [4, 2] Example output: 14 Example explanation: Here, the weights represent the polynomial: 4x + 2, so we should multiply 4 by 3, and add it to 2 which results in (4*3 + 2 =) 14. Q: x = 7, equation weights = [5, 2, 8, 6, 3] A:
13128
In this task you will be given a list of dictionaries. A dictionary is a set of key-value pairs, where each key is unique and has a value associated with that key. You should sort the list of dictionaries from smallest to largest by their 'first' key. If there is two dictionaries with the same 'first' value then sort them by their 'second' key. Negative numbers should come before positive numbers. Example input: [{'first': 8, 'second': 7}, {'first': -7, 'second': -2}, {'first': 8, 'second': 2}] Example output: [{'first': -7, 'second': -2}, {'first': 8, 'second': 2}, {'first': 8, 'second': 7}] Example explanation: The two dictionaries that had the same 'first' value were sorted by their 'second' value and the smaller one was listed first. So this is a good example. Q: [{'first': -68, 'second': 76}, {'first': 93, 'second': 50}, {'first': -18, 'second': -53}, {'first': -70, 'second': -59}, {'first': -68, 'second': -62}, {'first': 8, 'second': -64}] A:
[{'first': -70, 'second': -59}, {'first': -68, 'second': -62}, {'first': -68, 'second': 76}, {'first': -18, 'second': -53}, {'first': 8, 'second': -64}, {'first': 93, 'second': 50}]
Detailed Instructions: In mathematics, the absolute value of a number is the non-negative value of that number, without regarding its sign. For example, the absolute value of -2 is 2, and the absolute value of 5 is 5. In this task you will be given a list of numbers and you need to return the element with highest absolute value. If a negative and positive element have the same absolute value you should return the positive element. The absolute value for negative numbers can be found by multiplying them by -1. After finding the element with the maximum absolute value you should return the value of that element before you applied the absolute value. Q: [-56.616 2.429 81.987] A:
81.987
Given the task definition and input, reply with output. This task is to find the number of 'For' loops present in the given cpp program. int f(int a,int b); int main() { int n,c[100],i,a,sum; scanf("%d",&n); for(i=1;i<=n;i++) { scanf("%d",&c[i]); } for(i=1;i<=n;i++) { a=c[i]; sum=f(a,2); printf("%d\n",sum); } return 0; } int f(int a,int b) { int sum=1; int i; if(a<b) return 0; for(i=b;i<a;i++) { if(a%i!=0) continue; else sum=sum+f(a/i,i); } return sum; }
3