prompt
stringlengths 98
11.7k
| response
stringlengths 1
1.45k
|
---|---|
Part 1. Definition
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.
Part 2. Example
I_TURN_LEFT I_JUMP
Answer: jump left
Explanation: If the agent turned to the left and jumped, then the agent jumped to the left.
Part 3. Exercise
I_TURN_RIGHT I_TURN_RIGHT I_JUMP I_TURN_RIGHT I_TURN_RIGHT I_JUMP I_TURN_RIGHT I_TURN_RIGHT I_JUMP I_TURN_RIGHT I_JUMP I_TURN_RIGHT I_JUMP I_TURN_RIGHT I_JUMP
Answer: | jump right thrice after jump opposite right thrice |
Teacher:Given a concept word, generate a hypernym for it. A hypernym is a superordinate, i.e. a word with a broad meaning constituting a category, that generalizes another word. For example, color is a hypernym of red.
Teacher: Now, understand the problem? Solve this instance: workforce
Student: | employment |
You will be given a definition of a task first, then some input of the task.
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.
The problem is that the active ingredient in there -- as I mentioned earlier -- comes from pigs.
Output: | Problem je da aktivni sastojak u njemu -- kao što sam maloprije spomenuo -- dolazi od svinja. |
Detailed Instructions: 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.
See one example below:
Problem: News Headline: France is ‘ hunting down its citizens who joined {Isis} without trial in Iraq
Edit: twins
Solution: Not Funny
Explanation: The edited sentence is not making much sense, therefore it's not funny.
Problem: News Headline: The Democrats ’ {hypocrisy} fest : Disingenuous attacks on Bernie Sanders persist — and his popularity climbs
Edit: dance
Solution: | Funny |
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]: Haltet ein, das ist ja schrecklich! . Zuerst die Bewertung der einzelnen Titel: 01. Under Control Schnell, aber leider nicht melodisch genug, teilweise auch disharmonisch. Nix besonderes. 02. Higher Than The Sky Ebenfalls teilweise disharmonisch, hat aber immerhin einen guten Refrain (bis auf das Ende). Ansonsten nix besonderes. 03. Deep In The Blackest Hole Ein ziemlich eintöniger Titel, der aber immerhin einen guten Refrain hat. "Peavys" Stimme ist hier auffällig schwach, ohne Feuer. 04. End Of All Days Der beste Titel des Albums, melodisch und mitreißend. Der Refrain ist sehr gut (bis auf das Ende). 05. Visions Ein etwas zwiespältiger Titel, der ausschließlich von seinem mitreißenden Refrain lebt. Der Rest ist nix besonderes, halbwegs melodisch, teilweise jedoch etwas disharmonisch. Bis hierher hinterlässt das Album einen durchschnittlichen bis leicht positiven Eindruck, diese Qualität konnte man von RAGE erwarten. Was nun aber folgt, ist ein Absturz in den tiefsten musikalischen Folterkeller. 06. Desperation Ein disharmonischer Titel mit schwachem Refrain. Insgesamt schwach. 07. Voice From The Vault Sehr disharmonisch, eine echte Zumutung für den Hörer. Beim Refrain haben sich "Peavy" & Co. stark am Refrain von "End Of All Days" orientiert, die Ähnlichkeit fällt sofort auf. Doch selbst dieser erstklassige Refrain wurde hier so verunstaltet, dass es in den Ohren wehtut. 08. Let The Night Begin Wieder ein disharmonischer Titel mit schwachem Refrain. Insgesamt schwach. 09. Fortress Dasselbe in langsamem Tempo. Wieder teilweise disharmonisch und mit schwachem Refrain. Insgesamt schwach. 10. Frozen Fire Sehr disharmonisch, sehr schwacher Refrain. Insgesamt sehr schwach, eine echte Zumutung. 11. Talking To The Dead Teilweise disharmonisch, und ein schwacher Refrain. Insgesamt schwach. 12. Face Behind The Mask Teilweise disharmonisch, aber mit akzeptablem Refrain. Dennoch insgesamt schwach. 13. Silent Victory Sehr disharmonisch, und ein schwacher Refrain. Insgesamt sehr schwach, eine echte Zumutung. 14. Fading Hours Zum Schluss noch ein melodischer Titel mit klassischen Elementen, eine Art Vorschau auf das Album "XIII". Aber: Wer "XIII" hat, braucht diesen Titel nicht. Fazit: Zu Beginn ein paar mittelmäßige und ein sehr guter Titel, danach aber nur noch Murks (abgesehen von "Fading Hours"). Am Schluss ist man heilfroh, dass man es endlich überstanden hat. "End Of All Days" ist das schlechteste RAGE-Album seit "Reflections Of A Shadow", Heavy Metal zum Abgewöhnen. Was für ein Absturz nach dem genialen Vorgänger "Black In Mind".
[A]: NEG
[Q]: Göttlich! . Hier haben wir es mit einem absolut wegweisenden Weltklasse-Album aus dem Sektor Melodic-Speed-Metal zu tun. Obwohl sich dieses Werk gar nicht so einfach in eine Sparte einordnen läßt, da sehr geschickt Klassik- und auch Folkloreelemente in die Songs eingearbeitet sind. Dieses ergibt jedoch ein Album von unglaublicher Intensität und musikalischer Schönheit. Man wird vom ersten Ton des fantastischen Intros an in eine ferne Welt entführt. Schon mit diesem ersten Album, daß für mächtig Wirbel in Fan- und Medienkreisen sorgte, schafften es RHAPSODY ein enorm hohes musikalisches Niveau zu erreichen. Man braucht sich gar nicht die Mühe zu machen hier evtl. andere Bands zu Vergleichszwecken heranziehen zu wollen. Die Italiener etablierten sofort Ihren ureigenen bis heute unerreicht gebliebenen Stil. In Fabio Leone (vormals bei LABYRINTH) konnte man einen Sänger der Extraklasse vorweisen, und mit Mastermind Luca Turilli an der Gitarre, der in einigen Interviews unverhohlen seine Bewunderung für Yngwie Malmsteen und einige klassische Komponisten kundtat, hat man einen Songwriter der hier sein Meisterwerk erschuf! Obwohl es dieses überragende Werk einfach verdient hat in seiner Gesamtheit gehört zu werden, da ihm zudem noch ein Fantasy-Konzept zugrunde liegt, hier einige Anspieltipps: „Rage Of The Winter", „Land Of Immortals", das wunderschöne, rein akkustisch gehaltene „Forrest Of The Unicorns" sowie „Lord Of The Thunder". Besser geht's nicht mehr!
[A]: POS
[Q]: Naja . Seltsame Reihenfolge der Bands schon in der Sendung..und dann ist auf der CD nicht mal Led Zeppelin vertreten..dafür aber Pink...außerdem wird sich der typische Black Sabbath Hörer nur schwer mit den meisten übrigen Künstlern anfreunden können..
[A]: | NEG
|
You will be given a definition of a task first, then some input of the task.
In this task, you need to provide the parts-of-speech tag of a word present in a sentence specified within curly braces ( '{{ ... }}' ). The parts-of-speech tags are fine labels that represent a category of words with similar grammatical properties. The list of part-of-speech tags i.e tagset of this corpus is : '$': Dollar Sign, "''": Single Quotes, ',': Comma Symbol, '-LRB-': Left Parantheses, '-RRB-': Right Parantheses, '.': Period, ':': Colon, 'ADD': Email Address, 'AFX': Affix, 'CC': Coordinating conjunction, 'CD': Cardinal Number, 'DT': Determiner, 'EX': Existential there, 'FW': Foreign Word, 'GW': Go with, 'HYPH': Hyphen symbol, 'IN': Preposition or a subordinating conjunction, 'JJ': Adjective, 'JJR': A comparative Adjective, 'JJS': A Superlative Adjective, 'LS': List item Marker, 'MD': Modal, 'NFP': Superfluous punctuation, 'NN': Singular Noun, 'NNP': Singular Proper Noun, 'NNPS': Prural Proper Noun, 'NNS': Prural Noun, 'PDT': Pre-determiner, 'POS': Possessive Ending, 'PRP': Personal pronoun, 'PRP$': Possessive Pronoun, 'RB': Adverb, 'RBR': Comparative Adverb, 'RBS': Superlative Adverb, 'RP': Particle, 'SYM': Symbol, 'TO': To , 'UH': Interjection, 'VB': Base form Verb, 'VBD': Verb in Past tense, 'VBG': Verb in present participle, 'VBN': Verb in past participle, 'VBP': Verb in non-3rd person singular present, 'VBZ': Verb in 3rd person singular present, 'WDT': Wh-determiner, 'WP': Wh-pronoun, 'WP$' Possessive Wh-pronoun, 'WRB': Wh-adverb, 'XX': Unknown, '``': Double backticks.
Sentence: Let your dog go in when he wants to for {{ no }} reason .
Word: no
Output: | DT |
Teacher: 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.
Teacher: Now, understand the problem? If you are still confused, see the following example:
কোনো মেয়ে ইসলাম ধর্ম গ্রহণ করলে আমি তাকে বিয়ে করতে রাজি(আমি কুরআন হাফেজ)।
Solution: religious
Reason: Here it expresses hate against the religion, hence tagged as religious.
Now, solve this instance: তোর মায়ে কি ইংলিশ চোদা নাকিরে!
Student: | non-religious |
Definition: In this task, you need to provide the parts-of-speech tag of a word present in a sentence specified within curly braces ( '{{ ... }}' ). The parts-of-speech tags are fine labels that represent a category of words with similar grammatical properties. The list of part-of-speech tags i.e tagset of this corpus is : '$': Dollar Sign, "''": Single Quotes, ',': Comma Symbol, '-LRB-': Left Parantheses, '-RRB-': Right Parantheses, '.': Period, ':': Colon, 'ADD': Email Address, 'AFX': Affix, 'CC': Coordinating conjunction, 'CD': Cardinal Number, 'DT': Determiner, 'EX': Existential there, 'FW': Foreign Word, 'GW': Go with, 'HYPH': Hyphen symbol, 'IN': Preposition or a subordinating conjunction, 'JJ': Adjective, 'JJR': A comparative Adjective, 'JJS': A Superlative Adjective, 'LS': List item Marker, 'MD': Modal, 'NFP': Superfluous punctuation, 'NN': Singular Noun, 'NNP': Singular Proper Noun, 'NNPS': Prural Proper Noun, 'NNS': Prural Noun, 'PDT': Pre-determiner, 'POS': Possessive Ending, 'PRP': Personal pronoun, 'PRP$': Possessive Pronoun, 'RB': Adverb, 'RBR': Comparative Adverb, 'RBS': Superlative Adverb, 'RP': Particle, 'SYM': Symbol, 'TO': To , 'UH': Interjection, 'VB': Base form Verb, 'VBD': Verb in Past tense, 'VBG': Verb in present participle, 'VBN': Verb in past participle, 'VBP': Verb in non-3rd person singular present, 'VBZ': Verb in 3rd person singular present, 'WDT': Wh-determiner, 'WP': Wh-pronoun, 'WP$' Possessive Wh-pronoun, 'WRB': Wh-adverb, 'XX': Unknown, '``': Double backticks.
Input: Sentence: Laurie Ellis Enron Net Works LLC Client Services Phone : {{ ( }} 713 ) 345-9945 Fax : ( 713 ) 646-8420 Email : [email protected]
Word: (
Output: | -LRB- |
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.
Several case reports of aplastic anemia with use of acetazolamide, and two cases with use of methazolamide, have appeared in the literature.
adverse drug event
We hypothesize that early glutamine supplemented tube feedings in children receiving intensive chemotherapy alone or in combination with bone marrow transplantation will result in improved nutrition with fewer infections and lower cost than TPN-supplemented patients.
non-adverse drug event
Although hypophosphatemia induced by aluminum-containing antacids is rare, treatment of peptic ulcer disease with a combination of two aluminum-containing agents may increase the risk of clinically significant hypophosphatemia.
| non-adverse drug event
|
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.
One example: A case is reported of a child with fatal pulmonary fibrosis following BCNU therapy.
Solution is here: adverse drug event
Explanation: Here, the child is facing some trouble after undergoing a particular therapy, thereby causing an adverse effect of the therapy.
Now, solve this: Alternating antineutrophil cytoplasmic antibody specificity: drug-induced vasculitis in a patient with Wegener's granulomatosis.
Solution: | non-adverse drug event |
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.
Example Input: eeroroeooroeo
Example Output: ror
Example Input: twtewtwtwwtte
Example Output: wtwtw
Example Input: ooeeeoleleoe
Example Output: | oeeeo
|
Detailed Instructions: This task is to find the number of 'For' loops present in the given cpp program.
See one example below:
Problem: 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
Explanation: 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.
Problem: //????????
//??????
int f(int a,int m) //???a???????m?????????
{
if(a<m)
return 0;
int kind=1;
for(int i=m;i<a;i++)
{
if(a%i==0) //??????????????
kind=kind+f(a/i,i);
}
return kind;
}
int main()
{
int n,a[100];
cin>>n;
for(int i=0;i<n;i++) //??n???
cin>>a[i];
for(int i=0;i<n;i++)
cout<<f(a[i],2)<<endl; //????
return 0;
}
Solution: | 3 |
Detailed Instructions: 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.
See one example below:
Problem: Aromi is an English restaurant in the city centre.
Solution: name[Aromi], eatType[restaurant], food[English], area[city centre]
Explanation: The output correctly parses all the parseable attributes in the input, no more, no less.
Problem: There is a French coffee shop called Cocum. It serves cheap food.
Solution: | name[Cocum], eatType[coffee shop], food[French], priceRange[less than £20], customer rating[average], familyFriendly[yes] |
Detailed Instructions: 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.
Q: News Headline: Russian {prisoners} transported in ' cruel , inhuman and degrading conditions in train carriages from Soviet era '
Edit: politicians
A: | Not Funny |
Teacher: 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.
Teacher: Now, understand the problem? If you are still confused, see the following example:
[1, 2, 3]
Solution: [0.167, 0.333, 0.500]
Reason: 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.
Now, solve this instance: [-69.326, 77.777, 212.099, -55.911, 62.599]
Student: | [-0.305 0.342 0.933 -0.246 0.275] |
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).
Entity 1: earth 's atmosphere
Entity 2: methane | yes |
Given the task definition and input, reply with output. Read the given story and classify it as 'imagined', 'recalled', or 'retold'. If a story is imagined, the person who wrote the story is making it up, pretending they experienced it. If a story is recalled, the person who wrote the story really experienced it and is recalling it from memory. If a story is retold, it is a real memory like the 'recalled' stories, but written down much later after previously writing a 'recalled' story about the same events. So, recalled stories and retold stories will be fairly similar, in that they both were real experiences for the writer. Imagined stories have a more linear flow and contain more commonsense knowledge, whereas recalled stories are less connected and contain more specific concrete events. Additionally, higher levels of self reference are found in imagined stories. Between recalled and retold stories, retold stories flow significantly more linearly than recalled stories, and retold stories are significantly higher in scores for cognitive processes and positive tone.
The past two months have seemed like a blur, but in the past two weeks, everything seemed to go in slow motion. Leading up to our graduation, every day was jam packed with things to do. We were cramming for exams, touching up final papers, analyzing data for research projects. And that was just for school. We also had to find time to apply for jobs, so many jobs. And of course we couldn’t neglect each other. We went out every weekend. We were finally all 21 and didn’t have to worry about fake ids, so we really took advantage of the full range of bar selections across the city. We felt like we were finally growing up and finally ready to enter the real world. Graduation day two weeks ago was the culmination of all of that. We partied like we never had before, and we finally didn’t have to stress about waking on time the next day battling a hangover to get to class. After that, though, the dorms closed. We all had to leave. I went back to my family’s house for a while, and the whole world seemed to stop. As adult as I felt the past few months, I was whisked back to childhood by my parents, controlling my every move once again. I still didn’t have a job, but felt like I was running out of places to apply. My friends from high school mostly weren’t around, either, so days passed so slowly. I have to admit, I enjoyed it at first, finally free of the deadlines, but without the friends and life I’d built in college, all the fun things I wished I could do with my free time just weren’t around to enjoy anymore. This past week has been so hard. I hardly bothered to leave my room much less the house. But you know what, just when I felt like I needed to resign to this being my life, days of reminiscing for college, I got a call! Last night, I got an interview for a job at my top choice of firms. I’m so excited, and it’s really brought my life back into focus. Shopping tomorrow, interview prepping on Wednesday, and if all goes well, my first real job next month!
| imagined |
Teacher: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.
Teacher: Now, understand the problem? Solve this instance: News Headline: When Abbas {spews} anti-Semitic vitriol the response is thunderous . Not so much for Poland 's prime minister
Edit: whispers
Student: | Not Funny |
Definition: 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.
Input: The Wrestlers is a restaurant serving French food. It is not child-friendly. The prices are more than £ 30. Customer ratings are low.
Output: | name[The Wrestlers], food[French], priceRange[more than £30], customer rating[low], familyFriendly[no] |
instruction:
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.
question:
News Headline: Four Republicans Withhold Support for Andy Puzder to Head {Labor} Department
Edit: party
answer:
Not Funny
question:
News Headline: Why Trump would really , really rather not {fire} Scott Pruitt
Edit: hug
answer:
Funny
question:
News Headline: Republican senators realizing legislative {agenda} is in their own hands
Edit: menu
answer:
| Not Funny
|
TASK DEFINITION: Given a concept word, generate a hypernym for it. A hypernym is a superordinate, i.e. a word with a broad meaning constituting a category, that generalizes another word. For example, color is a hypernym of red.
PROBLEM: couch
SOLUTION: object
PROBLEM: tiger
SOLUTION: carnivore
PROBLEM: silver
SOLUTION: | element
|
Detailed Instructions: 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.
Q: Which company started the earliest the maintenance contract? Show the company name.
A: | SELECT T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Contracts AS T2 ON T1.company_id = T2.maintenance_contract_company_id ORDER BY T2.contract_start_date ASC LIMIT 1 |
Instructions: In this task, you need to provide the parts-of-speech tag of a word present in a sentence specified within curly braces ( '{{ ... }}' ). The parts-of-speech tags are fine labels that represent a category of words with similar grammatical properties. The list of part-of-speech tags i.e tagset of this corpus is : '$': Dollar Sign, "''": Single Quotes, ',': Comma Symbol, '-LRB-': Left Parantheses, '-RRB-': Right Parantheses, '.': Period, ':': Colon, 'ADD': Email Address, 'AFX': Affix, 'CC': Coordinating conjunction, 'CD': Cardinal Number, 'DT': Determiner, 'EX': Existential there, 'FW': Foreign Word, 'GW': Go with, 'HYPH': Hyphen symbol, 'IN': Preposition or a subordinating conjunction, 'JJ': Adjective, 'JJR': A comparative Adjective, 'JJS': A Superlative Adjective, 'LS': List item Marker, 'MD': Modal, 'NFP': Superfluous punctuation, 'NN': Singular Noun, 'NNP': Singular Proper Noun, 'NNPS': Prural Proper Noun, 'NNS': Prural Noun, 'PDT': Pre-determiner, 'POS': Possessive Ending, 'PRP': Personal pronoun, 'PRP$': Possessive Pronoun, 'RB': Adverb, 'RBR': Comparative Adverb, 'RBS': Superlative Adverb, 'RP': Particle, 'SYM': Symbol, 'TO': To , 'UH': Interjection, 'VB': Base form Verb, 'VBD': Verb in Past tense, 'VBG': Verb in present participle, 'VBN': Verb in past participle, 'VBP': Verb in non-3rd person singular present, 'VBZ': Verb in 3rd person singular present, 'WDT': Wh-determiner, 'WP': Wh-pronoun, 'WP$' Possessive Wh-pronoun, 'WRB': Wh-adverb, 'XX': Unknown, '``': Double backticks.
Input: Sentence: Al Qaeda members and sympathizers feel that the FBI 's involvement in countries like Egypt , Saudi Arabia , Pakistan , Indonesia , and the {{ Philippines }} interferes with the sovereignty of those countries .
Word: Philippines
Output: | NNPS |
Definition: 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.
Input: [83, 54, 38]
Output: | 16 |
You will be given a definition of a task first, then some input of the task.
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.
In this case senna was likely the cause of a subacute cholestatic hepatitis exemplifying again the potential role of herbal related liver injury.
Output: | adverse drug event |
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.
Example input: Angola
Example output: Central Africa
Example explanation: Angola is located in the Central Africa region of the world map.
Q: Vietnam
A: | Southeast Asia |
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: [-42.457 87.138 39.627 45.928 92.13 -82.235 80.82 -71.785 98.606]
A: | 98.606 |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Input: 18/06/1013
Output: | 0 |
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.
Let me give you an example: Angola
The answer to this example can be: Central Africa
Here is why: Angola is located in the Central Africa region of the world map.
OK. solve this:
Liechtenstein
Answer: | Western Europe |
Teacher: 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.
Teacher: Now, understand the problem? If you are still confused, see the following example:
x = 3, equation weights = [4, 2]
Solution: 14
Reason: 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.
Now, solve this instance: x = 5, equation weights = [8, 5, 3]
Student: | 228 |
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:
gwtWjvYErXdQJNCcBS
Ex Output:
w
Ex Input:
uzLMorR
Ex Output:
z
Ex Input:
FpRBAc
Ex Output:
| p
|
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'.
Problem:onesixonezeronine
Solution: | 16109 |
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.
Ex Input:
Set1: '{3, 4, 8, 9, 11, 14, 17, 20}', Set2: '{1, 2, 3, 5, 6, 8, 10, 13, 16}'. How many elements are there in the union of Set1 and Set2 ?
Ex Output:
15
Ex Input:
Set1: '{10, 3, 13, 14}', Set2: '{1, 2, 4, 5, 8, 11, 12, 19, 20}'. How many elements are there in the union of Set1 and Set2 ?
Ex Output:
13
Ex Input:
Set1: '{1, 3, 6, 14, 18, 19}', Set2: '{3, 4, 9, 11, 13, 14, 15, 18, 19, 20}'. How many elements are there in the union of Set1 and Set2 ?
Ex Output:
| 12
|
Detailed Instructions: 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.
See one example below:
Problem: password = a
Solution: 5
Explanation: Using 5 steps, it can become a strong password
Problem: password = Xi18L
Solution: | 1 |
Given a concept word, generate a hypernym for it. A hypernym is a superordinate, i.e. a word with a broad meaning constituting a category, that generalizes another word. For example, color is a hypernym of red.
gross | disgusting |
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 .
Example 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)
Example explanation: 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.
Problem: Amb la posada en funcionament del funicular es completen les obres en infraestructures malmeses a Montserrat a causa dels aiguats .
| Solution: Amb (O) la (O) posada (O) en (O) funcionament (O) del (O) funicular (O) es (O) completen (O) les (O) obres (O) en (O) infraestructures (O) malmeses (O) a (O) Montserrat (B-LOC) a (O) causa (O) dels (O) aiguats (O) . (O) |
In this task, you are given two questions about a domain. Your task is to combine the main subjects of the questions to write a new, natural-sounding question. For example, if the first question is about the tallness of the president and the second question is about his performance at college, the new question can be about his tallness at college. Try to find the main idea of each question, then combine them; you can use different words or make the subjects negative (i.e., ask about shortness instead of tallness) to combine the subjects. The questions are in three domains: presidents, national parks, and dogs. Each question has a keyword indicating its domain. Keywords are "this national park", "this dog breed", and "this president", which will be replaced with the name of an actual president, a national park, or a breed of dog. Hence, in the new question, this keyword should also be used the same way. Do not write unnatural questions. (i.e., would not be a question someone might normally ask about domains). Do not write open-ended or subjective questions. (e.g., questions that can be answered differently by different people.) If you couldn't find the answer to your question from a single Google search, try to write a different question. You do not have to stick with the original question word for word, but you should try to create a question that combines the main subjects of the question.
Input: Consider Input: Does this dog breed have short legs compared to the size of its body? Is this dog breed a human created mix of other breeds?
Output: Has this dog breed been created from other breeds so that it has short legs?
Input: Consider Input: Can i hike to a waterfall at this national park? What are the popular tourist spots in this national park?
Output: What time of year is best to see the popular waterfalls in this national park?
Input: Consider Input: What tree is most populous in this national park? Does this national park have caves you can enter without a permit?
| Output: Which cave is the longest at this national park?
|
You will be given a definition of a task first, then some input of the task.
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.
The Golden Curry is a restaurant with a customer rating of 1 out 5 that is also non-family friendly.
Output: | name[The Golden Curry], food[French], customer rating[low], familyFriendly[no] |
Detailed Instructions: 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.
Problem:eebelelebeeel
Solution: | eebelelebee |
Definition: 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.
Input: x = 6, equation weights = [9, 7, 2]
Output: | 368 |
The input is taken from a negotiation between two participants who take the role of campsite neighbors and negotiate for Food, Water, and Firewood packages, based on their individual preferences and requirements. Given an utterance and recent dialogue context containing past 3 utterances (wherever available), output Yes if the utterance contains the self-need strategy, otherwise output No. self-need is a selfish negotiation strategy. It is used to create a personal need for an item in the negotiation, such as by pointing out that the participant sweats a lot to show preference towards water packages.
Example Input: Context: 'Hello, how are you today? 🙂' 'good, how are you 🙂'
Utterance: 'Great! I'm on a camping trip with my five children, how about you?'
Example Output: No
Example Input: Context: 'Hello, how are you doing today?' 'Hi! I am doing good.What about you?' 'Doing well, I'm exciting about my next camping trip with my family. '
Utterance: 'Yeah that's fine.What you need the most?'
Example Output: No
Example Input: Context: 'I have, i love camping! How about you?' 'I have not, but I don't really have an interest for it, either.' 'Thats a shame, i am sure you would like it if you give it a try, especially if you build a large fire 🙂'
Utterance: 'I was going to say, the fire would be probably one of the few things I would be interested in! I love being warm.'
Example Output: | Yes
|
TASK DEFINITION: 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.
PROBLEM: Gilmour oder Pink Floyd ... verzaubernd schön!!!!! . Also, mir ist es egal, ob auf dem Cover David Gilmour oder Pink Floyd steht. Wichtig ist, was drin ist. Und da kommt mir beim Anhören dieser Musik nur eins in den Sinn: Pink Floyd!! Die beste Pink Floyd Scheibe seit 20 Jahren. Anknüpfend an die Vergangenheit aber diesen typischen und unnachahmlichen Musikstil weiterentwickelnd, schenkt uns Gilmour ein Stück zeitlos traumhafte Musik. Ein Meisterwerk eines großen Musikers, dessen virtuoses Gitarenspiel und wunderbarer Gesang einen verzaubern und entspannen läßt. Alle Songs eine Ohrenweide, von denen "A Pocketful Of Stones" und "On An Island" und The Blue" es mir besonders angetan haben. Großartig!
SOLUTION: POS
PROBLEM: Kaum Reibungswärme . Wieder ein Konzeptalbum aus dem Hause Hancock; diesmal als Hommage an die Sängerin/Autorin Joni Mitchell gedacht. An Prominenz fehlt es nicht: Neben Hancock am Piano sind Wayne Shorter ts,ss, der hier leider ziemlich untergehende Dave Holland b, der ebenfalls kaum hervortretende Gitarren-Neustar Lionel Loueke g und Vinnie Colaiuta dm am Werk und drapieren die gesanglichen Beiträge von u.a. Norah Jones, Tina Turner, Luciana Souza, Leonard Cohen sowie der also Geadelten selbst. Gewiss, die einzelnen Songs sind zum Teil recht hübsch, wenngleich von geringer Variationsbreite. Bemerkenswert ist, dass Tina Turner hier Gelegenheit hat, das verbleichende Etikett der Rockröhre abzustreifen und tatsächlich einmal ihr Gesangstalent vorzführen. Wayne Shorter steuert neben der Komposition Nefertiti" aus der späteren Phase des 2. klassischen Miles Davis Quintetts (was die wohl mit Joni Mitchell zu tun hat?) seine zerbrechlichen aber immer noch schimmernden Saxofontöne bei; Ingredienzien zu einem Gebräu, das dann doch keine richtig wärmende Suppe wird. Das Ganze funktioniert vor allem deshalb nicht, weil bei Mitchell Song, Text und Interpretation eine Einheit bilden, was hier ent- und somit auseinander fällt. Deshalb hält man sich wohl besser ans Original, denn Joni ist bei Mitchell doch wohl am besten aufgehoben.
SOLUTION: NEG
PROBLEM: Düster . Eine düstere Mischung... Romantische Lieder, gefolgt von harten Bekenntnissen. TIPP: "Life will never be the same again" Ein zum Nachdenken anregendes Lied. Eine CD die zeigt, dass gute Musik auch aus Österreich kommen kann!
SOLUTION: | POS
|
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.
Einfach schön! . "Kind of Blue" von Miles Davis hat eine längere Geschichte in meinem Platten- und CD-Schrank. In den frühen Siebzigern hörte ich erstmals diese 'uralten' Aufnahmen - sie stammen aus dem Jahr 1959 - und war sofort verzaubert von dem ruhigen und fließenden Charakter dieser Musik. Der LP folgte die CD-Ausgabe in Gold und dieser dann die hier besprochene. Zu "Kind of Blue" ist eigentlich alles gesagt und geschrieben, Miles Davis hat hier zusammen mit Julian "Cannonball" Adderley, John Coltrane, Wynton Kelly, Bill Evans, Paul Chambers und Jimmy Cobb ein Album eingespielt, welches als einer der Meilensteine des Jazz zu bezeichnen ist, - die Soli basieren nicht mehr auf Akkordwechseln sondern auf Skalen, was der Musik einen schwebenden Charakter mitgibt. Das Ergebnis ist einfach schön. So ist es nicht verwunderlich, dass dieses Album nun über mehrere Generationen hinweg seine Käufer findet. Die hier vorliegende Ausgabe ist die nach meinem Geschmack gelungendste, der Ton ist klar, das Booklet ist informativ und zudem ist mit einer zweiten Version von "Flamenco Sketches" auch noch ein Bonus Track enthalten. Sehr empfehlenswert! | POS |
Part 1. Definition
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.
Part 2. Example
[9, 40, -33, 12, 17, -32, 40]
Answer: 0
Explanation: The minimum absolute difference is 0 because '40 - 40 = 0' and '40' appears in the list twice. So this is a good example.
Part 3. Exercise
[95, -39, -32]
Answer: | 7 |
Given the task definition and input, reply with output. 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: eq { hop { nth_argmin { all_rows ; time ; 1 } ; winner } ; cashier 's dream }, interpretation: select the row whose time record of all rows is 1st minimum . the winner record of this row is cashier 's dream .
| yes |
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: [39.78 74.824]
A: | 74.824 |
Detailed 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.
Problem:rpbZqUJAWRXuILVClvw
Solution: | w |
Q: 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.
[185, 1861, 1138]
A: | [128, 2048, 1024] |
In this task, you need to provide the parts-of-speech tag of a word present in a sentence specified within curly braces ( '{{ ... }}' ). The parts-of-speech tags are fine labels that represent a category of words with similar grammatical properties. The list of part-of-speech tags i.e tagset of this corpus is : '$': Dollar Sign, "''": Single Quotes, ',': Comma Symbol, '-LRB-': Left Parantheses, '-RRB-': Right Parantheses, '.': Period, ':': Colon, 'ADD': Email Address, 'AFX': Affix, 'CC': Coordinating conjunction, 'CD': Cardinal Number, 'DT': Determiner, 'EX': Existential there, 'FW': Foreign Word, 'GW': Go with, 'HYPH': Hyphen symbol, 'IN': Preposition or a subordinating conjunction, 'JJ': Adjective, 'JJR': A comparative Adjective, 'JJS': A Superlative Adjective, 'LS': List item Marker, 'MD': Modal, 'NFP': Superfluous punctuation, 'NN': Singular Noun, 'NNP': Singular Proper Noun, 'NNPS': Prural Proper Noun, 'NNS': Prural Noun, 'PDT': Pre-determiner, 'POS': Possessive Ending, 'PRP': Personal pronoun, 'PRP$': Possessive Pronoun, 'RB': Adverb, 'RBR': Comparative Adverb, 'RBS': Superlative Adverb, 'RP': Particle, 'SYM': Symbol, 'TO': To , 'UH': Interjection, 'VB': Base form Verb, 'VBD': Verb in Past tense, 'VBG': Verb in present participle, 'VBN': Verb in past participle, 'VBP': Verb in non-3rd person singular present, 'VBZ': Verb in 3rd person singular present, 'WDT': Wh-determiner, 'WP': Wh-pronoun, 'WP$' Possessive Wh-pronoun, 'WRB': Wh-adverb, 'XX': Unknown, '``': Double backticks.
Example Input: Sentence: [ MfM Act 3 , Sc. {{ 2 }} ] }
Word: 2
Example Output: CD
Example Input: Sentence: I did n't think so but you could be right . {{ " }}
Word: "
Example Output: ''
Example Input: Sentence: The Irish weather works on the ‘ four seasons in a day ’ principle , which basically {{ means }} that you ca n’t predict a thing when it comes to the behaviour of the sky .
Word: means
Example Output: | VBZ
|
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
A named third party does receive your unspecified personal information for targeted advertising. The data is personally identifiable.
Advertising
The site collects your contact information for marketing purposes. Collection happens when you explicitly provide information in an unspecified way. You can choose not to use the service or feature for the use of your information.
Marketing
The site collects your computer information for a basic service or feature. Collection happens when you implicitly provide information on the website.
| Basic service/feature
|
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.
Input: [5, 9, 1, 6, 9, 1, 9, 6, 3, 9] , [3, 2, 9, 5, 1, 10, 6, 5, 2, 1]
Output: | [1, 3, 5, 6, 9] |
Definition: 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.
Input: poopfofoopp
Output: | poop |
Teacher: This task is to find the number of 'For' loops present in the given cpp program.
Teacher: Now, understand the problem? If you are still confused, see the following example:
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
Reason: 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.
Now, solve this instance: int f(int,int);
int main()
{
int n,i,a,b[100];
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&a);
b[i]=f(a,2);
}
for(i=0;i<n;i++)
{
printf("%d\n",b[i]);
}
return 0;
}
int f(int x,int y)
{
int j,sum=1;
if(x<y)
sum=0;
else
{
for(j=y;j<x;j++)
{
if(x%j==0)
sum=sum+f(x/j,j);
}
}
return sum;
}
Student: | 3 |
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.
[444, 105]
[]
[705, 510, 853, 304]
[853]
[772, 953, 307, 761, 986, 949, 873, 71, 131]
| [953, 307, 761, 71, 131]
|
Given a negotiation between two participants, answer 'Yes' if both participants agree to the deal, otherwise answer 'No'.
THEM: if i can have the hat, you can have the rest. : ) YOU: ok, sounds good to m.
Yes
THEM: hi, i need 3 books and 2 hats YOU: sorry i need the hats and balls THEM: no deal then, i can`t, it`s low score for me YOU: i understand. no deal THEM: no deal YOU: no deal THEM: no deal YOU: no deal THEM: no deal YOU: no deal.
No
THEM: i will take the books, you can have the rest YOU: deal.
| Yes
|
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.
--------
Question: [-19.399 -52.553 -99.377 81.401]
Answer: -99.377
Question: [-89.609 31.981 -95.802]
Answer: -95.802
Question: [-46.896 -95.844 -13.548 47.721 -67.999]
Answer: | -95.844
|
Given an adjective, generate its antonym. An antonym of a word is a word opposite in meaning to it.
[Q]: ribless
[A]: ribbed
[Q]: convertible
[A]: inconvertible
[Q]: stingy
[A]: | generous
|
Definition: 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.
Input: SuTYZkPrL, eNATYZknt
Output: | SuktyzPrL, eNAktyznt |
We would like you to assess the QUALITY of each of the following argument (discussing Death Penalty) and determine if the argument is Valid or Invalid. A valid argument is clearly interpretable and either expresses an argument, or a premise or a conclusion that can be used in an argument for the topic of death penalty. An invalid argument is a phrase that cannot be interpreted as an argument or not on the topic of death penalty.
But they do have a law forcing post-conviction DNA testing.
Valid
Some murders are done spare of the moment, it doesn't make it right, but people can change.
Valid
I don't think anyone has been put the death for third degree murder either.
| Valid
|
Detailed Instructions: 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.
Q: eddedebedddbde
A: | debed |
Detailed Instructions: 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.
Problem:News Headline: President Trump 's options on {Syria} likely limited to cruise missile strike , experts say
Edit: bingo
Solution: | Not Funny |
Teacher: 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.
Teacher: Now, understand the problem? If you are still confused, see the following example:
[16, 205, 171, 2, 9, 317]
Solution: [16, 256, 128, 2, 8, 256]
Reason: 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.
Now, solve this instance: [102, 845, 2385, 1973, 15, 65, 4, 72]
Student: | [128, 1024, 2048, 2048, 16, 64, 4, 64] |
Teacher: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.
Teacher: Now, understand the problem? Solve this instance: x = 0, equation weights = [2, 9]
Student: | 9 |
Part 1. Definition
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...'.
Part 2. Example
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.
Answer: You know what, come tell us at the community pool.
Explanation: This is a good response. Because it accepts in indirect way the input sentence and supports it.
Part 3. Exercise
I realize now, in this square, all is perfect. All is good.
Answer: | Your memory is getting worse and worse. |
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.
[1, 10, 4, 4, 10, 10, 7, 3, 8, 6] , [2, 4, 9, 3, 5, 3, 10, 10, 5, 8] | [3, 4, 8, 10] |
You will be given a definition of a task first, then some input of the task.
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.
You can quit the email app; you can't quit your boss.
Output: | Možete izaći iz aplikacije za e-poštu, ali ne možete otkazati svom šefu. |
Instructions: Given a negotiation between two participants, answer 'Yes' if both participants agree to the deal, otherwise answer 'No'.
Input: THEM: i really need the book to study with and 1 of the balls. YOU: i need the book THEM: if i don't get the book, i will fail an important class. how about you can take all of the balls if i get the book? YOU: you can have the book, if i can get everything else.
Output: | Yes |
Instructions: In this task you're given two statements in Marathi. You must judge whether the second sentence is the cause or effect of the first one. The sentences are separated by a newline character. Output either the word 'cause' or 'effect' .
Input: ड्रायव्हरने तिच्या शिंगाचा गौरव केला.
तिच्या गाडीत आणखी एक कार फिरली.
Output: | cause |
Teacher: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.
Teacher: Now, understand the problem? Solve this instance: [ 3.139 17.91 -47.187 -14.941 42.612]
Student: | -47.187 |
You will be given a definition of a task first, then an example. Follow the example to solve a new instance of the task.
In this task, you need to provide the parts-of-speech tag of a word present in a sentence specified within curly braces ( '{{ ... }}' ). The parts-of-speech tags are fine labels that represent a category of words with similar grammatical properties. The list of part-of-speech tags i.e tagset of this corpus is : '$': Dollar Sign, "''": Single Quotes, ',': Comma Symbol, '-LRB-': Left Parantheses, '-RRB-': Right Parantheses, '.': Period, ':': Colon, 'ADD': Email Address, 'AFX': Affix, 'CC': Coordinating conjunction, 'CD': Cardinal Number, 'DT': Determiner, 'EX': Existential there, 'FW': Foreign Word, 'GW': Go with, 'HYPH': Hyphen symbol, 'IN': Preposition or a subordinating conjunction, 'JJ': Adjective, 'JJR': A comparative Adjective, 'JJS': A Superlative Adjective, 'LS': List item Marker, 'MD': Modal, 'NFP': Superfluous punctuation, 'NN': Singular Noun, 'NNP': Singular Proper Noun, 'NNPS': Prural Proper Noun, 'NNS': Prural Noun, 'PDT': Pre-determiner, 'POS': Possessive Ending, 'PRP': Personal pronoun, 'PRP$': Possessive Pronoun, 'RB': Adverb, 'RBR': Comparative Adverb, 'RBS': Superlative Adverb, 'RP': Particle, 'SYM': Symbol, 'TO': To , 'UH': Interjection, 'VB': Base form Verb, 'VBD': Verb in Past tense, 'VBG': Verb in present participle, 'VBN': Verb in past participle, 'VBP': Verb in non-3rd person singular present, 'VBZ': Verb in 3rd person singular present, 'WDT': Wh-determiner, 'WP': Wh-pronoun, 'WP$' Possessive Wh-pronoun, 'WRB': Wh-adverb, 'XX': Unknown, '``': Double backticks.
Sentence: Those things ended up being a windsheild washer fluid tank {{ ( }} 1 screw ) and the air filter canister ( 4 spring clips ) .
Word: (
Solution: -LRB-
Why? "(" is the symbol for Left Parantheses (-LRB-).
New input: Sentence: {{ There }} are plenty of good dentists in Fernandina .
Word: There
Solution: | EX |
Detailed Instructions: Read the given story and classify it as 'imagined', 'recalled', or 'retold'. If a story is imagined, the person who wrote the story is making it up, pretending they experienced it. If a story is recalled, the person who wrote the story really experienced it and is recalling it from memory. If a story is retold, it is a real memory like the 'recalled' stories, but written down much later after previously writing a 'recalled' story about the same events. So, recalled stories and retold stories will be fairly similar, in that they both were real experiences for the writer. Imagined stories have a more linear flow and contain more commonsense knowledge, whereas recalled stories are less connected and contain more specific concrete events. Additionally, higher levels of self reference are found in imagined stories. Between recalled and retold stories, retold stories flow significantly more linearly than recalled stories, and retold stories are significantly higher in scores for cognitive processes and positive tone.
Q: I'm still thinking about how I could have done something different that time. I don't even know why. It's still been pretty recent, one month, from when it happened. I felt, at the time, that I had to tell him something, I guess. An old friend of mine's Mother had passed away. While he was torn about the whole thing, it made me think about the times I spent with her. She took good care of me even though I wasn't technically family and we had a lot of good times together. That was a long time ago, though, and that probably made it easier for me to settle with the fact that I could not even make time to attend her funeral. I was surprised by how he handled my rejection well enough, but also how I was even able to accept it afterwards. I guess I'm realizing a part of myself that lacks the empathy that I wish I had. So, running through events quickly in my head, I probably was thinking about the significance or connection I had to the event but instead should have been thinking about how my friend would feel about my attendance. I think this event gave me a good perspective on what I am and what I think I should become. I need to be able to hold the people that I care for, and the people that care for me, closer than I do. Maybe there was really no way I could attend the funeral. Maybe I couldn't repay the people I love. But, I think I could have realized and felt that what I had done was unusual.
A: | imagined |
Detailed Instructions: In this task, you need to provide the parts-of-speech tag of a word present in a sentence specified within curly braces ( '{{ ... }}' ). The parts-of-speech tags are fine labels that represent a category of words with similar grammatical properties. The list of part-of-speech tags i.e tagset of this corpus is : '$': Dollar Sign, "''": Single Quotes, ',': Comma Symbol, '-LRB-': Left Parantheses, '-RRB-': Right Parantheses, '.': Period, ':': Colon, 'ADD': Email Address, 'AFX': Affix, 'CC': Coordinating conjunction, 'CD': Cardinal Number, 'DT': Determiner, 'EX': Existential there, 'FW': Foreign Word, 'GW': Go with, 'HYPH': Hyphen symbol, 'IN': Preposition or a subordinating conjunction, 'JJ': Adjective, 'JJR': A comparative Adjective, 'JJS': A Superlative Adjective, 'LS': List item Marker, 'MD': Modal, 'NFP': Superfluous punctuation, 'NN': Singular Noun, 'NNP': Singular Proper Noun, 'NNPS': Prural Proper Noun, 'NNS': Prural Noun, 'PDT': Pre-determiner, 'POS': Possessive Ending, 'PRP': Personal pronoun, 'PRP$': Possessive Pronoun, 'RB': Adverb, 'RBR': Comparative Adverb, 'RBS': Superlative Adverb, 'RP': Particle, 'SYM': Symbol, 'TO': To , 'UH': Interjection, 'VB': Base form Verb, 'VBD': Verb in Past tense, 'VBG': Verb in present participle, 'VBN': Verb in past participle, 'VBP': Verb in non-3rd person singular present, 'VBZ': Verb in 3rd person singular present, 'WDT': Wh-determiner, 'WP': Wh-pronoun, 'WP$' Possessive Wh-pronoun, 'WRB': Wh-adverb, 'XX': Unknown, '``': Double backticks.
See one example below:
Problem: Sentence: Those things ended up being a windsheild washer fluid tank {{ ( }} 1 screw ) and the air filter canister ( 4 spring clips ) .
Word: (
Solution: -LRB-
Explanation: "(" is the symbol for Left Parantheses (-LRB-).
Problem: Sentence: << Doctor RODERIGO LOPEZ ( 1525 {{ - }} 1594 ) was the Portugese Jewish doctor accused by Essex of trying to poison Queen Elizabeth .
Word: -
Solution: | SYM |
Detailed Instructions: Determine if the provided SQL statement properly addresses the given question. Output 1 if the SQL statement is correct and 0 otherwise. 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.
See one example below:
Problem: Query: SELECT DISTINCT ?x0 WHERE {
?x0 a ns:people.person .
?x0 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses ?x1 .
?x1 ns:people.person.gender ns:m.05zppz .
?x1 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses M2 .
FILTER ( ?x0 != ?x1 ) .
FILTER ( ?x1 != M2 )
} Question: Who did M2 's male spouse marry
Solution: 1
Explanation: Query correctly extracts data for male spouse of M2
Problem: Query: SELECT count(*) WHERE {
?x0 a ns:film.writer .
M1 ns:film.film.executive_produced_by ?x0 .
M1 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M1 ns:film.film.written_by ?x0
} Question: Was M1 executive produced , produced , and written by a screenwriter
Solution: | 1 |
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 Input: [829, 371, 377, 497, 839, 5, 653, 617, 907, 867, 827, 350, 399, 947, 483, 601, 577]
Example Output: [829, 839, 5, 653, 617, 907, 827, 947, 601, 577]
Example Input: [490, 879, 241, 587, 557, 146, 947, 424, 103]
Example Output: [241, 587, 557, 947, 103]
Example Input: [5, 211]
Example Output: | [5, 211]
|
You will be given a definition of a task first, then some input of the task.
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?"
Fact: internet is used for communication.
Output: | what is used for communication? |
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 a sentence in Korean, provide an equivalent paraphrased translation in French that retains the same meaning both through the translation and the paraphrase.
1975 년부터 76 년까지 NBA 시즌은 전국 농구 협회 (National Basketball Association)의 30 번째 시즌이었다.
Solution: La saison 1975-1976 de la National Basketball Association était la 30e saison de la NBA.
Why? This is a correct and accurate translation from Korean to French because the translated paraphrase retains the main message that between the years 1975-1976, the 30th NBA season occurred.
New input: 그는 Assam Football Association의 회장과 Assam Sports Council의 회장으로 여러 차례 선출되었으며, Assam Cricket Association의 부회장이기도했습니다.
Solution: | Il a été élu président de l'Association de football d'Assam et du Conseil des sports d'Assam pour plusieurs mandats. il était également vice-président de l'Association de cricket d'Assam. |
Detailed Instructions: 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.
Problem:News Headline: Cambodia 's Hun Sen says he and Trump object to ' anarchic ' {media}
Edit: spiders
Solution: | Not Funny |
Instructions: Given an input word generate a word that rhymes exactly with the input word. If not rhyme is found return "No"
Input: sun
Output: | done |
Detailed Instructions: Given an input word generate a word that rhymes exactly with the input word. If not rhyme is found return "No"
See one example below:
Problem: difficult
Solution: No
Explanation: The word difficult has no natural English rhymes and so the model outputs No as specified in the instructions.
Problem: gun
Solution: | one |
Instructions: 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.
Input: The Cricketers is a coffee shop serving fast food near The Portland Arms. It has a high customer rating and is child friendly.
Output: | name[The Cricketers], eatType[coffee shop], food[Fast food], customer rating[high], familyFriendly[yes], near[The Portland Arms] |
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.
Q: فیلم از لحاظ مضمون و فیلمنامه خوبه بزرگترین ایرادش اینه چن تا سکانس لوس و بد داره یه جورایی کاش اونارو نداشت
A: داستان
****
Q: درود. فیلم خوش ساخت و جذابی ست. خصوصا برای هم نسل های من که دوم خرداد را دیده اند. اما بعنوان یک مستند حجم اطلاعات کم بود و مصاحبه ها می توانست خلاقانه تر باشد.
A: کارگردانی
****
Q: قبلا فیلم چند متر مکعب عشق رو تو جشنواره دیده بودم امسال هم از دیدن فیلم جدید برادران محمودی لذت بردم. دست خوش
A: | کارگردانی
****
|
TASK DEFINITION: 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.
PROBLEM: Command: greater { hop { filter_eq { all_rows ; county ; clark } ; casinos } ; hop { filter_eq { all_rows ; county ; south lake tahoe } ; casinos } }, interpretation: the sum of the races record of all rows is 190 .
SOLUTION: no
PROBLEM: Command: less { hop { filter_eq { all_rows ; name ; frank borman } ; born } ; hop { filter_eq { all_rows ; name ; jim lovell } ; born } }, interpretation: select the rows whose jyutping record fuzzily matches to loeng2 . take the imperial value record of this row . select the rows whose jyutping record fuzzily matches to daam3 . take the imperial value record of this row . the first record is less than the second record .
SOLUTION: no
PROBLEM: Command: eq { hop { nth_argmax { all_rows ; points ; 2 } ; name } ; angelika buck / erich buck }, interpretation: select the row whose points record of all rows is 2nd maximum . the name record of this row is angelika buck / erich buck .
SOLUTION: | yes
|
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.
[665, 726, 313, 11, 241, 164, 993, 477, 579, 205, 461, 7, 461, 557, 303, 883, 41, 23, 831, 309] | [313, 11, 241, 461, 7, 461, 557, 883, 41, 23] |
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.
Q: Sentence: All Muslims-as he defined them-therefore must take up arms in this fight.
Question: What happened after the Muslims took arms?
Category: Event Ordering.
A: | Yes. |
This task is to find the number of 'For' loops present in the given cpp program.
int num =0;
void fenjie(int n,int x)
{
extern int num;
if ( n == 1)
num ++;
else
for(int i = x; i<=n;i++)
if(n % i == 0)
fenjie(n/i,i);
}
int main()
{
int n,k;
cin >> k;
for(int j = 0;j!= k;j++)
{extern int num;
num =0;
cin >> n;
fenjie(n,2);
cout<<num<<endl;
}
return 0;
} | 2 |
Given the task definition and input, reply with output. Given a concept word, generate a hypernym for it. A hypernym is a superordinate, i.e. a word with a broad meaning constituting a category, that generalizes another word. For example, color is a hypernym of red.
eagle
| predator |
Given an input word generate a word that rhymes exactly with the input word. If not rhyme is found return "No"
Q: cook
A: | hook |
Instructions: 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.
Input: The Punter sells French food. its price range is less than £20.
Output: | name[The Punter], food[French], priceRange[less than £20] |
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.
Ex Input:
original sentence: The cat was lying by the mouse hole waiting for the mouse , but it was too cautious . paraphrase: the feline was lying by the rodent hole waiting for the rodent , but it was too cautious .
Ex Output:
Synonym
Ex Input:
original sentence: I put the cake away in the refrigerator . It has a lot of butter in it . paraphrase: I just put the cake away in the refrigerator . It certainly has a lot of butter in it .
Ex Output:
Adverb
Ex Input:
original sentence: Bob was playing cards with Adam and was way ahead . If Adam hadn't had a sudden run of good luck , he would have lost . paraphrase: Jane was playing cards with Lucy and was way ahead . If Lucy hadn't had a sudden run of good luck , she would have lost .
Ex Output:
| Gender
|
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
فیلم بدی نبود جدا از سادگی های سینا که به حماقت تبدیل میشد و نا مشخص بودن نسبت هانیه توسلی با این خانواده،، 8سال دوست دختر باباشون بوده یعنی؟ بازی فرخ نژاد، ام جی و سینا در مجموع قابل قبول بود و چهره پردازی عالی
Answer: | بازی |
instruction:
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.
question:
A family friendly place located on the Riverside near All Bar One called Green Man has cheap prices.
answer:
name[Green Man], food[Japanese], priceRange[cheap], area[riverside], familyFriendly[yes], near[All Bar One]
question:
The 5 out of 5 rated The Cricketers coffee shop is located near The Portland Arms. This shop serves French food in a child friendly atmosphere.
answer:
name[The Cricketers], eatType[coffee shop], food[French], customer rating[5 out of 5], familyFriendly[yes], near[The Portland Arms]
question:
Located near the river and the Crowne Plaza, Taste of Cambridge is an adult only coffee shop offering spirits and appetizers.
answer:
| name[Taste of Cambridge], eatType[coffee shop], food[French], area[riverside], familyFriendly[no], near[Crowne Plaza Hotel]
|
TASK DEFINITION: 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).
PROBLEM: Entity 1: frogfish
Entity 2: air pressure
SOLUTION: no
PROBLEM: Entity 1: x chromosome
Entity 2: gene
SOLUTION: yes
PROBLEM: Entity 1: membrane
Entity 2: tongue
SOLUTION: | no
|
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.
--------
Question: [5, 4, 3, 5, 3]
Answer: [4]
Question: [6, 6, 5, 3, 3, 4, 6]
Answer: [5, 4]
Question: [4, 2, 1, 6, 4, 7, 3, 4]
Answer: | [2, 1, 6, 7, 3]
|
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...'.
You left some hazy instructions when you were being strangled by the monkey's paw. Can you please just go over it with me? | Yes, open the piano. Use the keys to play the tune. |
Detailed Instructions: 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.
Problem:OyEMEo, mxEMtj
Solution: | OyemEo, mxemtj |
Definition: 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...'.
Input: I think my dad is way worse than your dad.
Output: | Well, given I just saved my dad from being murdered by your dad, I actually am going to agree with that. You can come stay with us if you want. |
Q: 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.
[6, 5, 5, 1, 1, 3, 3, 4, 5]
A: | [6, 4] |
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.
One example is below.
Q: Angola
A: Central Africa
Rationale: Angola is located in the Central Africa region of the world map.
Q: Norway
A: | Nordic Countries |
Teacher: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.
Teacher: Now, understand the problem? Solve this instance: Slovenia
Student: | Southern Europe |
Detailed Instructions: 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'.
Problem:Paral·lelament a les accions informatives i per a reduir els efectes de l' aturada , l' Ajuntament instal·larà 22 contenidors de recollida de brossa més als carrers del Nucli Antic on la recollida encara es fa porta a porta .
Solution: | Paral·lelament (O) a (O) les (O) accions (O) informatives (O) i (O) per (O) a (O) reduir (O) els (O) efectes (O) de (O) l' (O) aturada (O) , (O) l' (O) Ajuntament (B-ORG) instal·larà (O) 22 (O) contenidors (O) de (O) recollida (O) de (O) brossa (O) més (O) als (O) carrers (O) del (O) Nucli (B-LOC) Antic (I-LOC) on (O) la (O) recollida (O) encara (O) es (O) fa (O) porta (O) a (O) porta (O) . (O) |
Subsets and Splits