prompt
stringlengths 105
7.32k
| response
stringlengths 1
1.45k
|
---|---|
In this task, you will be given a list of numbers. The goal is to divide all the numbers in the list by a constant such that the sum of the resulting list is 1. The output should be rounded to 3 decimals.
Example input: [1, 2, 3]
Example output: [0.167, 0.333, 0.500]
Example explanation: The output list sums to 1.0 and has the same weight as the input 0.333 is twice as large as 0.167, .5 is 3 times as large as 0.167, and 0.5 is 1.5 times as large as 0.333. This is a good example.
Q: [-78.133, 232.221, 26.536, 15.473, 178.394, 120.127, 129.704, 11.663, 101.213]
A: | [-0.106 0.315 0.036 0.021 0.242 0.163 0.176 0.016 0.137] |
Read the given sentence and if it is a general advice then indicate via "yes". Otherwise indicate via "no". advice is basically offering suggestions about the best course of action to someone. advice can come in a variety of forms, for example Direct advice and Indirect advice. (1) Direct advice: Using words (e.g., suggest, advice, recommend), verbs (e.g., can, could, should, may), or using questions (e.g., why don't you's, how about, have you thought about). (2) Indirect advice: contains hints from personal experiences with the intention for someone to do the same thing or statements that imply an action should (or should not) be taken.
One example: Our ruminating thoughts will still show up while you do it but you'll slowly be teaching yourself to let go of those thoughts and let them pass by.
Solution is here: yes
Explanation: This sentence suggesting someone to let go of their respective thoughts. Hence the answer is "yes".
Now, solve this: I was the same after I graduated .
Solution: | no |
Q:Generate a 5-star review (1 being lowest and 5 being highest) about an app with package com.google.android.gms.
A: | Its is good |
Answer the following question: Generate a 5-star review (1 being lowest and 5 being highest) about an app with package com.google.android.gms.
Answer: | Good |
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.
Find the starting date and ending data in location for the document named "Robin CV". | SELECT T1.date_in_location_from , T1.date_in_locaton_to FROM Document_locations AS T1 JOIN All_documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = "Robin CV" |
Read the given sentence and if it is a general advice then indicate via "yes". Otherwise indicate via "no". advice is basically offering suggestions about the best course of action to someone. advice can come in a variety of forms, for example Direct advice and Indirect advice. (1) Direct advice: Using words (e.g., suggest, advice, recommend), verbs (e.g., can, could, should, may), or using questions (e.g., why don't you's, how about, have you thought about). (2) Indirect advice: contains hints from personal experiences with the intention for someone to do the same thing or statements that imply an action should (or should not) be taken.
Example: Our ruminating thoughts will still show up while you do it but you'll slowly be teaching yourself to let go of those thoughts and let them pass by.
Example solution: yes
Example explanation: This sentence suggesting someone to let go of their respective thoughts. Hence the answer is "yes".
Problem: Sorry you 're dealing with this .
| Solution: no |
Detailed Instructions: In this task you will be given two lists of numbers and you need to calculate the intersection between these two lists. The intersection between two lists is another list where every element is common between the two original lists. If there are no elements in the intersection, answer with an empty list. Your list of numbers must be inside brackets. Sort the numbers in your answer in an ascending order, that is, no matter what the order of the numbers in the lists is, you should put them in your answer in an ascending order.
Q: [8, 7, 8, 6, 7, 9] , [10, 10, 2, 2, 9, 5]
A: | [9] |
Teacher: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.
Teacher: Now, understand the problem? Solve this instance: من خیلی دوست داشتم ......... با اینکه داستان واقعی و برگرفته از اتفاقات و حوادث کشور بود و نوشته ی ناب نبود ولی فیلم بسیار خوش ساخت بود و تداعی گر روزهایی در گذشته از صفحه حوادث روزنامه !
Student: | داستان |
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.
Q: I believe that the final decision should be given to the bereaved; those affected by the murder.
A: | Valid |
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...'.
One example is below.
Q: 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.
A: You know what, come tell us at the community pool.
Rationale: This is a good response. Because it accepts in indirect way the input sentence and supports it.
Q: Yes, Billy is the skeptic of our gang.
A: | I really am, I don't even believe I came out of my mother. |
A ploynomial equation is a sum of terms. Here each term is either a constant number, or consists of the variable x raised to a certain power and multiplied by a number. These numbers are called weights. For example, in the polynomial: 2x^2+3x+4, the weights are: 2,3,4. You can present a polynomial with the list of its weights, for example, equation weights = [6, 4] represent the equation 6x + 4 and equation weights = [1, 3, 4] represent the equation 1x^2 + 3x + 4. In this task, you need to compute the result of a polynomial expression by substituing a given value of x in the given polynomial equation. Equation weights are given as a list.
Example input: x = 3, equation weights = [4, 2]
Example output: 14
Example explanation: Here, the weights represent the polynomial: 4x + 2, so we should multiply 4 by 3, and add it to 2 which results in (4*3 + 2 =) 14.
Q: x = 1, equation weights = [1, 9, 2]
A: | 12 |
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.
Q: If someone killed a relative of mine, I'd want to PERSONALLY throw the switch or put a bullet in their head.
A: | Valid |
In this task, you are given a hateful post in Bengali that expresses hate or encourages violence towards a person or a group based on the protected characteristics such as race, religion, sex, and sexual orientation. You are expected to classify the post into two classes: religious or non-political religious on the topic.
One example is below.
Q: কোনো মেয়ে ইসলাম ধর্ম গ্রহণ করলে আমি তাকে বিয়ে করতে রাজি(আমি কুরআন হাফেজ)।
A: religious
Rationale: Here it expresses hate against the religion, hence tagged as religious.
Q: তুদের কে বের ক রে দেয়াই খুব ভাল করছে,
A: | non-religious |
The provided text is in English, and we ask you to translate the text to the Croatian language. Please bear in mind the following guidelines while translating: 1) We want a natural translation, a formal form. 2) Use the symbols like '#@%$-+_=^&!*' as-is. *Include* the special characters as suited when translating to Croatian. 3) Quantities like millions or billions should be translated to their equivalent in Croatian language 4) Note the input is all case-sensitive except for special placeholders and output is expected to be case-sensitive. 5) The output must have Croatian characters like Ž or č and the output must preserve the Croatian language characters. 6) The input contains punctuations and output is expected to have relevant punctuations for grammatical accuracy.
Q: But I do know there are three things you can do.
A: | Ali znam da postoje tri stvari koje možete učiniti. |
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...'.
One example is below.
Q: 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.
A: You know what, come tell us at the community pool.
Rationale: This is a good response. Because it accepts in indirect way the input sentence and supports it.
Q: Gwyneth, you're daydreaming again. Would you like to share with the rest of the class what you're thinking about, in detail?
A: | I was thinking about bludgeoning each and every one of you with a mace, you know it has the spikes? It's like a club with spikes. You just hit someone 'til they're a pulp. |
In this task you will be given an arithmetic operation and you have to find its answer. The operators '+' and '-' have been replaced with new symbols. Specifically, '+' has been replaced with the symbol '@' and '-' with the symbol '#'. You need to perform the operations in the given equation return the answer
One example: 6 @ 17
Solution is here: 23
Explanation: Here, '@' represents the addition operation. So, the answer is 23 (6+17=23).
Now, solve this: 9261 # 7923 @ 2860 # 8743 # 2971 @ 9367
Solution: | 1851 |
Detailed Instructions: 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.
Q: The killer is not going to take away innocent lives anymore because the killer is dead.
A: | Valid |
Given a part of privacy policy text, identify the purpose for which the user information is collected/used. The purpose should be given inside the policy text, answer as 'Not Specified' otherwise
Example: The site collects your IP address or device IDs for advertising. Collection happens when you implicitly provide information on the website.
Example solution: Advertising
Example explanation: The given policy text states that it uses user information for 'advertising' explicitly
Problem: The site collects your financial information for an unspecified purpose. Collection happens when you explicitly provide information in an unspecified way, and your data is identifiable. You can choose not to use the service or feature for the collection of your information.
| Solution: Unspecified |
In this task you will be given a list of dictionaries. A dictionary is a set of key-value pairs, where each key is unique and has a value associated with that key. You should sort the list of dictionaries from smallest to largest by their 'first' key. If there is two dictionaries with the same 'first' value then sort them by their 'second' key. Negative numbers should come before positive numbers.
Let me give you an example: [{'first': 8, 'second': 7}, {'first': -7, 'second': -2}, {'first': 8, 'second': 2}]
The answer to this example can be: [{'first': -7, 'second': -2}, {'first': 8, 'second': 2}, {'first': 8, 'second': 7}]
Here is why: The two dictionaries that had the same 'first' value were sorted by their 'second' value and the smaller one was listed first. So this is a good example.
OK. solve this:
[{'first': -44, 'second': 68}, {'first': 99, 'second': -97}, {'first': -72, 'second': -22}, {'first': 78, 'second': 76}, {'first': -29, 'second': 18}, {'first': 53, 'second': 25}, {'first': -51, 'second': 45}, {'first': -73, 'second': -56}]
Answer: | [{'first': -73, 'second': -56}, {'first': -72, 'second': -22}, {'first': -51, 'second': 45}, {'first': -44, 'second': 68}, {'first': -29, 'second': 18}, {'first': 53, 'second': 25}, {'first': 78, 'second': 76}, {'first': 99, 'second': -97}] |
Instructions: In this task, you are given a country name and you need to return the Top Level Domain (TLD) of the given country. The TLD is the part that follows immediately after the "dot" symbol in a website's address. The output, TLD is represented by a ".", followed by the domain.
Input: San Marino
Output: | .sm |
Detailed Instructions: In this task you will be given a list of numbers and you should remove all duplicates in the list. If every number is repeated in the list an empty list should be returned. Your list should be numbers inside brackets, just like the given list.
Q: [3, 5, 2, 5, 2, 4, 1]
A: | [3, 4, 1] |
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.
One example is below.
Q: aBxyZde
A: y
Rationale: y has the maximum ascii value in the given string.
Q: HRULSiup
A: | u |
Detailed Instructions: A ploynomial equation is a sum of terms. Here each term is either a constant number, or consists of the variable x raised to a certain power and multiplied by a number. These numbers are called weights. For example, in the polynomial: 2x^2+3x+4, the weights are: 2,3,4. You can present a polynomial with the list of its weights, for example, equation weights = [6, 4] represent the equation 6x + 4 and equation weights = [1, 3, 4] represent the equation 1x^2 + 3x + 4. In this task, you need to compute the result of a polynomial expression by substituing a given value of x in the given polynomial equation. Equation weights are given as a list.
Q: x = 4, equation weights = [2, 5]
A: | 13 |
TASK DEFINITION: This task is to find the number of 'For' loops present in the given cpp program.
PROBLEM: int main()
{
int a[10000],b[10000],p,q,m,n,i,j;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("\n%d",&a[i]);
}
for(i=0;i<n;i++){
printf("%d\n",ans(a[i],2));
}
return 0;
}
int ans(int sum,int min)
{
int w,x,u=1;
for(w=min;w<sum/2;w++){
x=sum%w;
if(x==0){
if(w<=sum/w)
u+=ans(sum/w,w);
}
}
return u;
}
SOLUTION: 3
PROBLEM: int ys(int af,int bf)
{
int s;
if(af<bf)
s=0;
if(af==bf)
s=1;
if(af>bf)
{
s=1;
for(int i=af/2;i>=bf;i--)
{
if(af%i == 0)
{
s+=ys(af/i,i);
}
}
}
return s;
}
int main()
{
int n;
cin >> n;
int p;
while(cin>>p)
{
cout << ys(p,2) << endl;
}
return 0;
}
SOLUTION: 1
PROBLEM: //*****************************************************
//*?????????.cpp *
//*?????? *
//*?????2010?12?8? *
//*???????????????? *
//*****************************************************
int answer=0;//???????
int a=2;//???2????
void f(int,int);//?????
int main()//???
{
int n=0;
int i=0;
int data[100]={0};
cin>>n;//????
for(i=0;i<n;i++)
{
cin>>data[i];
}
for(i=0;i<n;i++)
{
f(data[i],a);
cout<<answer<<endl;
answer=0;//??
}
}
void f(int m,int n)//???
{
int i=0;
if(m==1)//??????1 ?????????
{
answer=answer+1;
}
for(i=n;i<=m;i++)//???2?????
{
if(m%i==0)
{
f(m/i,i);
}
}
}
SOLUTION: | 3
|
In this task, you are given two strings A,B. You must perform the following operations to generate the required output list: (i) Find the longest common substring in the strings A and B, (ii) Convert this substring to all lowercase and sort it alphabetically, (iii) Replace the substring at its respective positions in the two lists with the updated substring.
One example: bYubMFxyTqR, AcDbMFxSnI
Solution is here: bYubfmxyTqR, AcDbfmxSnI
Explanation: Here, 'bMFx' is the longest common substring in both the input strings 'bYubMFxyTqR' and 'AcDbMFxSnI'. Sorting it and converting to lowercase gives 'bfmx'. Replacing 'bfmx' instead of 'bMFx' in the two strings gives 'bYubfmxyTqR' and 'AcDbfmxSnI'
Now, solve this: fbGUuLvuU, JjSUuLIh
Solution: | fbGluuvuU, JjSluuIh |
You will be given two sentences. One of them is created by paraphrasing the original one, with changes on an aspect, or using synonyms. Your task is to decide what is the difference between two sentences. Types of change are explained below:
Tense: The verbs in the sentence are changed in tense.
Number: Plural nouns, verbs and pronouns are changed into single ones or the other way around.
Voice: If the verbs are in active voice, they're changed to passive or the other way around.
Adverb: The paraphrase has one adverb or more than the original sentence.
Gender: The paraphrase differs from the original sentence in the gender of the names and pronouns.
Synonym: Some words or phrases of the original sentence are replaced with synonym words or phrases. Changes in the names of people are also considered a synonym change. Classify your answers into Tense, Number, Voice, Adverb, Gender, and Synonym.
Example: original sentence: Lily spoke to Donna , breaking her silence . paraphrase: Lily is speaking to Donna , breaking her silence .
Example solution: Tense
Example explanation: The verbs in this example are changed from past tense to present tense.
Problem: original sentence: This morning , Joey built a sand castle on the beach , and put a toy flag in the highest tower , but this afternoon the tide knocked it down . paraphrase: This morning , Joey and Bill built sand castles on the beach , and put toy flags in the highest towers , but this afternoon the tide knocked them down .
| Solution: Number |
Indicate with `Yes` if the given question involves the provided reasoning `Category`. Indicate with `No`, otherwise. We define five categories of temporal reasoning. First: "event duration" which is defined as the understanding of how long events last. For example, "brushing teeth", usually takes few minutes. Second: "transient v. stationary" events. This category is based on the understanding of whether an event will change over time or not. For example, the sentence "he was born in the U.S." contains a stationary event since it will last forever; however, "he is hungry" contains a transient event since it will remain true for a short period of time. Third: "event ordering" which is the understanding of how events are usually ordered in nature. For example, "earning money" usually comes before "spending money". The fourth one is "absolute timepoint". This category deals with the understanding of when events usually happen. For example, "going to school" usually happens during the day (not at 2 A.M). The last category is "frequency" which refers to how often an event is likely to be repeated. For example, "taking showers" typically occurs ~5 times a week, "going to Saturday market" usually happens every few weeks/months, etc.
[EX Q]: Sentence: Other times, they play a game with Quack where they wave at Quack and laugh.
Question: What do they do after playing a game with Quack?
Category: Event Ordering.
[EX A]: Yes.
[EX Q]: Sentence: He says that instead of everyone dying , they could keep at least one of their princes alive .
Question: What time was the prince saved?
Category: Absolute Timepoint.
[EX A]: Yes.
[EX Q]: Sentence: Ruling that the order was mutually binding, Judge Thornton also cited the men for contempt.
Question: When did the judge cite the men for contempt?
Category: Event Ordering.
[EX A]: | No.
|
Given a negotiation between two participants, answer 'Yes' if both participants agree to the deal, otherwise answer 'No'.
Example input: THEM: i need the hats and the ball YOU: i can give you one hat and the ball. i want 2 books and 1 hat THEM: i have to have both hats and the ball or both hats and a book to make a deal YOU: sorry, i won`t make a deal without a hat THEM: if you take 1 hat i have to have everything else YOU: sorry can`t do THEM: no deal YOU: yesh no deal, sorry THEM: no deal YOU: no deal.
Example output: No
Example explanation: Both participants do not agree to the deal, so the answer is No.
Q: THEM: i'd like the book, the rest to you YOU: i dont think that works for me. how about i get the book and 2 balls and you can have the hat and 1 ball THEM: the others are worthless to me, i have to have the book YOU: sorry, no deal then THEM: ok, no deal, sorry YOU: ok THEM: thank you YOU: just waiting for the button THEM: me too! YOU: yep.
A: | No |
Given the task definition and input, reply with output. In this task, you are given an english sentence and a kurdish sentence you have to determine if they both are faithful translations of each other.
Construct an answer that is 'Yes' if the second 'Kurdish' sentence is a translation of 'English' sentence and 'No' otherwise
'English : The blast has caused a 20-meter deep dip and damages in many houses in the village.','Kurdish : Walîtiyê herwiha dîyar kiriye ew erebeya hatî teqandin malê dijîyê bûye ku li meha Gulanê ji Çewlîgê hatiye dizîn.'
| Yes |
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.
[Q]: sheep
[A]: mammal
[Q]: swan
[A]: waterbird
[Q]: endemic
[A]: | widespread
|
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.
Example: What college did this president attend? Where did this president meet his wife?
Example solution: Did this president meet his wife in college?
Example explanation: This is a good question. By combining "meet wife" and "college" we get to a new question.
Problem: Do i have to worry about bears at this national park? Is this national park open year around?
| Solution: Are the bears active at this national park year round? |
Detailed Instructions: In this task you will be given a list of integers. You should remove any integer that is not prime. A prime integer is an integer that is only divisible by '1' and itself. The output should be the list of prime numbers in the input list. If there are no primes in the input list an empty list ("[]") should be returned.
Q: [430, 2, 5, 593, 439, 916, 919, 483, 59]
A: | [2, 5, 593, 439, 919, 59] |
You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right
One example: [1,2,2,3]
Solution is here: 1
Explanation: The array is monotonic as 1 < 2 <= 2 < 3
Now, solve this: [49, 57, 65, 73, 81, 89, 97]
Solution: | 1 |
You will be given two sentences. One of them is created by paraphrasing the original one, with changes on an aspect, or using synonyms. Your task is to decide what is the difference between two sentences. Types of change are explained below:
Tense: The verbs in the sentence are changed in tense.
Number: Plural nouns, verbs and pronouns are changed into single ones or the other way around.
Voice: If the verbs are in active voice, they're changed to passive or the other way around.
Adverb: The paraphrase has one adverb or more than the original sentence.
Gender: The paraphrase differs from the original sentence in the gender of the names and pronouns.
Synonym: Some words or phrases of the original sentence are replaced with synonym words or phrases. Changes in the names of people are also considered a synonym change. Classify your answers into Tense, Number, Voice, Adverb, Gender, and Synonym.
Example input: original sentence: Lily spoke to Donna , breaking her silence . paraphrase: Lily is speaking to Donna , breaking her silence .
Example output: Tense
Example explanation: The verbs in this example are changed from past tense to present tense.
Q: original sentence: Susan knows all about Ann's personal problems because she is nosy . paraphrase: Susan always knows all about Ann's personal problems because she is nosy .
A: | Adverb |
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.
Example input: [0,1,0,2,5,1]
Example output: [2,5]
Example explanation: The only elements that are not duplicated is 2 and 5. This is a good example.
Q: [4, 5, 5, 4, 0, 2, 0, 6, 1]
A: | [2, 6, 1] |
Detailed Instructions: In this task, you are given two sets, and you need to count the number of elements at the union of two given sets. A Set is shown by two curly braces and comma-separated numbers inside, like {1, 2, 3}. Union of two given sets is the smallest set which contains all the elements of both the sets. To find the union of two given sets, A and B is a set that consists of all the elements of A and all the elements of B such that no element is repeated.
Problem:Set1: '{3, 4, 5, 7, 13, 15}', Set2: '{2, 3, 8, 12, 15}'. How many elements are there in the union of Set1 and Set2 ?
Solution: | 9 |
Given a sequence of actions to navigate an agent in its environment, provide the correct command in a limited form of natural language that matches the sequence of actions when executed. Commands are lowercase and encapsulate the logic of the sequence of actions. Actions are individual steps that serve as the building blocks for a command. There are only six actions: 'I_LOOK', 'I_WALK', 'I_RUN', 'I_JUMP', 'I_TURN_LEFT', and 'I_TURN_RIGHT'. These actions respectively align with the commands 'look', 'walk', 'run', 'jump', 'turn left', and 'turn right'. For commands, 'left' and 'right' are used to denote the direction of an action. opposite turns the agent backward in the specified direction. The word 'around' makes the agent execute an action while turning around in the specified direction. The word 'and' means to execute the next scope of the command following the previous scope of the command. The word 'after' signifies to execute the previous scope of the command following the next scope of the command. The words 'twice' and 'thrice' trigger repetition of a command that they scope over two times or three times, respectively. Actions and commands do not have quotations in the input and output.
Q: I_TURN_LEFT I_RUN I_TURN_RIGHT I_RUN
A: | run right after run left |
Detailed Instructions: Adverse drug reactions are appreciably harmful or unpleasant reactions resulting from an intervention related to the use of medical products, which predicts hazard from future administration and warrants prevention or specific treatment, or alteration of the dosage regimen, or withdrawal of the product. Given medical case reports extracted from MEDLINE, the task is to classify whether the case report mentions the presence of any adverse drug reaction. Classify your answers into non-adverse drug event and adverse drug event.
See one example below:
Problem: A case is reported of a child with fatal pulmonary fibrosis following BCNU therapy.
Solution: adverse drug event
Explanation: Here, the child is facing some trouble after undergoing a particular therapy, thereby causing an adverse effect of the therapy.
Problem: The nodules regressed after withdrawal of methotrexate therapy in one patient and were arrested with the addition of hydroxychloroquine in the other.
Solution: | adverse drug event |
Detailed Instructions: In this task, you will be given sentences in which you have to recognize the name of the body cells. A cell is a mass of cytoplasm that is bound externally by a cell membrane. Usually microscopic in size, cells are the smallest structural units of living matter and compose all living things. Although there might be several correct answers, you need to write one of them.
Problem: Human Langerin - DTA mice constitutively lack LCs and develop exaggerated contact hypersensitivity ( CHS ) responses .
Solution: | LCs |
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.
Q: An Indian pub named Zizzi is child friendly, with a rating of 1 out of 5.
A: | name[Zizzi], eatType[pub], food[Indian], customer rating[1 out of 5], familyFriendly[yes] |
You will be given two sentences. One of them is created by paraphrasing the original one, with changes on an aspect, or using synonyms. Your task is to decide what is the difference between two sentences. Types of change are explained below:
Tense: The verbs in the sentence are changed in tense.
Number: Plural nouns, verbs and pronouns are changed into single ones or the other way around.
Voice: If the verbs are in active voice, they're changed to passive or the other way around.
Adverb: The paraphrase has one adverb or more than the original sentence.
Gender: The paraphrase differs from the original sentence in the gender of the names and pronouns.
Synonym: Some words or phrases of the original sentence are replaced with synonym words or phrases. Changes in the names of people are also considered a synonym change. Classify your answers into Tense, Number, Voice, Adverb, Gender, and Synonym.
Q: original sentence: Pete envies Martin because he is very successful . paraphrase: Anna envies Emma because she is very successful .
A: | Gender |
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...'.
One example is below.
Q: 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.
A: You know what, come tell us at the community pool.
Rationale: This is a good response. Because it accepts in indirect way the input sentence and supports it.
Q: JoJo, you fell on hard times?
A: | I have. Well, things haven't been as good as the Poltergeist years; ever since Poltergeist. You get type-casted and you start drinking and then your husband leaves you. |
Detailed Instructions: Given a sequence of actions to navigate an agent in its environment, provide the correct command in a limited form of natural language that matches the sequence of actions when executed. Commands are lowercase and encapsulate the logic of the sequence of actions. Actions are individual steps that serve as the building blocks for a command. There are only six actions: 'I_LOOK', 'I_WALK', 'I_RUN', 'I_JUMP', 'I_TURN_LEFT', and 'I_TURN_RIGHT'. These actions respectively align with the commands 'look', 'walk', 'run', 'jump', 'turn left', and 'turn right'. For commands, 'left' and 'right' are used to denote the direction of an action. opposite turns the agent backward in the specified direction. The word 'around' makes the agent execute an action while turning around in the specified direction. The word 'and' means to execute the next scope of the command following the previous scope of the command. The word 'after' signifies to execute the previous scope of the command following the next scope of the command. The words 'twice' and 'thrice' trigger repetition of a command that they scope over two times or three times, respectively. Actions and commands do not have quotations in the input and output.
Q: I_TURN_RIGHT I_TURN_LEFT I_TURN_LEFT
A: | turn right and turn left twice |
You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right
Ex Input:
[13, 20, 27, 34, 41, 48, 55, 62, 69, 76, 83, 90, 97, 104, 111, 118, 125, 132, 139, 146, 153, 160, 167]
Ex Output:
1
Ex Input:
[55, 27, 83, 68, 4, 81, 88, 70, 52, 11]
Ex Output:
2
Ex Input:
[81, 53, 10, 74, 25, 45, 80, 69, 44, 13]
Ex Output:
| 2
|
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.
One example is below.
Q: The fact that you do not want to donate to these poor, needy people only shows me that you really do not care about the embryos
A: Invalid
Rationale: It is not an argument on the topic of death penalty.
Q: The killer is not going to take away innocent lives anymore because the killer is dead.
A: | Valid |
Adverse drug reactions are appreciably harmful or unpleasant reactions resulting from an intervention related to the use of medical products, which predicts hazard from future administration and warrants prevention or specific treatment, or alteration of the dosage regimen, or withdrawal of the product. Given medical case reports extracted from MEDLINE, the task is to classify whether the case report mentions the presence of any adverse drug reaction. Classify your answers into non-adverse drug event and adverse drug event.
Example input: A case is reported of a child with fatal pulmonary fibrosis following BCNU therapy.
Example output: adverse drug event
Example explanation: Here, the child is facing some trouble after undergoing a particular therapy, thereby causing an adverse effect of the therapy.
Q: He became hyperkalemic on rechallenge with timolol and normokalemic following its withdrawal.
A: | adverse drug event |
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.
--------
Question: heterosexual
Answer: person
Question: sparrow
Answer: animal
Question: van
Answer: | conveyance
|
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'.
Input: Consider Input: eightthreenineeighttwoonefive
Output: 8398215
Input: Consider Input: sixsixsevenninezero
Output: 66790
Input: Consider Input: ninesixeighteightsevenninesixonetwofoursixone
| Output: 968879612461
|
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.
Ex Input:
روزنامه نگاری که خانه نشین شد روزنامه نگاری که مهاجرت کرد روزنامه نگاری که کافه دار شد روزنامه نگاری که کشاورز شد . . . . و اسبی که دیگر متعلق به صاحبش نشد... . . . . . بانو مینا اکبری درود و سپاس وافر از این ایده و همت عالی
Ex Output:
کارگردانی
Ex Input:
من با سکانس پایان فیلم مشکل دارم آخرین سکانس چی داشت می گفت دختره تو هواپیما بود یا نه؟(خیانت کرده بود یا نه؟) به نظرم این پایان باز نیست ، فیلم بدون پایانه
Ex Output:
داستان
Ex Input:
فیلمی سیاسی-اجتماعی با کمی چاشنی طنز و تا حدودی اغراق آمیز و حوادث غیرقابل باور و ضعف فیلمنامه مشهود در جای جای فیلم..به عنوان فیلم اول شروع خوبی برای جواد رضویان نخواهد بود و بعید است فیلم به موفقیت فیلم هم نسلان رضویان مثل عطاران،آقاخانی و... برسد.
Ex Output:
| داستان
|
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.
Q: Sentence: Unless you want to take the " tell the customer how wrong she is and try and force her into a dress she 's obviously not loving " approach which will likely {{ get }} you ... uh ... nowhere .
Word: get
A: | VB |
In this task you will be given a list of dictionaries. A dictionary is a set of key-value pairs, where each key is unique and has a value associated with that key. You should sort the list of dictionaries from smallest to largest by their 'first' key. If there is two dictionaries with the same 'first' value then sort them by their 'second' key. Negative numbers should come before positive numbers.
Example: [{'first': 8, 'second': 7}, {'first': -7, 'second': -2}, {'first': 8, 'second': 2}]
Example solution: [{'first': -7, 'second': -2}, {'first': 8, 'second': 2}, {'first': 8, 'second': 7}]
Example explanation: The two dictionaries that had the same 'first' value were sorted by their 'second' value and the smaller one was listed first. So this is a good example.
Problem: [{'first': -2, 'second': -87}, {'first': -9, 'second': -59}, {'first': 21, 'second': 8}, {'first': -55, 'second': -70}, {'first': -57, 'second': -88}, {'first': -74, 'second': 77}, {'first': 94, 'second': 44}, {'first': 23, 'second': 6}, {'first': 44, 'second': 43}, {'first': -90, 'second': 32}]
| Solution: [{'first': -90, 'second': 32}, {'first': -74, 'second': 77}, {'first': -57, 'second': -88}, {'first': -55, 'second': -70}, {'first': -9, 'second': -59}, {'first': -2, 'second': -87}, {'first': 21, 'second': 8}, {'first': 23, 'second': 6}, {'first': 44, 'second': 43}, {'first': 94, 'second': 44}] |
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.
Q: We believe that mucositis was a contributing factor to this case of fatal hyperkalemia after administration of succinylcholine, with a mechanism similar to that reported with thermal injury.
A: | adverse drug event |
Detailed Instructions: In this task, you are given a country name, and you need to return the year in which the country became independent. Independence is a nation's independence or statehood, usually after ceasing to be a group or part of another nation or state, or more rarely after the end of military occupation.
Problem:Trinidad and Tobago
Solution: | 1962 |
Given the task definition and input, reply with output. You will be given two sentences. One of them is created by paraphrasing the original one, with changes on an aspect, or using synonyms. Your task is to decide what is the difference between two sentences. Types of change are explained below:
Tense: The verbs in the sentence are changed in tense.
Number: Plural nouns, verbs and pronouns are changed into single ones or the other way around.
Voice: If the verbs are in active voice, they're changed to passive or the other way around.
Adverb: The paraphrase has one adverb or more than the original sentence.
Gender: The paraphrase differs from the original sentence in the gender of the names and pronouns.
Synonym: Some words or phrases of the original sentence are replaced with synonym words or phrases. Changes in the names of people are also considered a synonym change. Classify your answers into Tense, Number, Voice, Adverb, Gender, and Synonym.
original sentence: They broadcast an announcement , but a subway came into the station and I couldn't hear it . paraphrase: They are broadcasting an announcement , but a subway is coming into the station and I can't hear it .
| Tense |
You are given a time in 24-Hours format, and you need to convert it to time in the 12-Hours format. For a 24-Hours format time larger than 12:00, subtract 12 hours from the given time, then add 'PM'. For example, if you have 14:30 hours, subtract 12 hours, and the result is 2:30 PM. If the 24-Hours format time is less than or equal to 12:00, add 'AM'. For example, say you have 10:15 hours, add the 'AM' to the end, here we get 10:15 AM. Note that 00:00 Hrs in 24-Hours format is 12:00 AM in 12-Hours format and 12:00 Hrs in 24-Hours format would be 12:00 PM in 12-Hours format.
[Q]: 15:08 Hrs
[A]: 03:08 PM
[Q]: 02:56 Hrs
[A]: 02:56 AM
[Q]: 20:30 Hrs
[A]: | 08:30 PM
|
In this task, you will be given a list of numbers. The goal is to divide all the numbers in the list by a constant such that the sum of the resulting list is 1. The output should be rounded to 3 decimals.
Example input: [1, 2, 3]
Example output: [0.167, 0.333, 0.500]
Example explanation: The output list sums to 1.0 and has the same weight as the input 0.333 is twice as large as 0.167, .5 is 3 times as large as 0.167, and 0.5 is 1.5 times as large as 0.333. This is a good example.
Q: [-80.584, 241.626, 229.326, 41.045, 4.393]
A: | [-0.185 0.554 0.526 0.094 0.01 ] |
Turn the given fact into a question by a simple rearrangement of words. This typically involves replacing some part of the given fact with a WH word. For example, replacing the subject of the provided fact with the word "what" can form a valid question. Don't be creative! You just need to rearrange the words to turn the fact into a question - easy! Don't just randomly remove a word from the given fact to form a question. Remember that your question must evaluate scientific understanding. Pick a word or a phrase in the given fact to be the correct answer, then make the rest of the question. You can also form a question without any WH words. For example, "A radio converts electricity into?"
Example input: Fact: pesticides can harm animals.
Example output: What can harm animals?
Example explanation: It's a good question because it is formed by simply replacing the word "pesticides" with "what".
Q: Fact: Green plants are not Heterotrophs.
A: | What living things are not Heterotrophs? |
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.
Example: Command: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }, interpretation: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Example solution: yes
Example explanation: Here, the command and interpretion given for the command is correct that 3rd maximum should be selected from given table rows. Hence, the label is 'yes'.
Problem: Command: and { eq { nth_min { all_rows ; place ; 1 } ; 1 } ; eq { hop { nth_argmin { all_rows ; place ; 1 } ; player } ; vijay singh } }, interpretation: the 1st minimum place record of all rows is 1 . the player record of the row with 1st minimum place record is vijay singh .
| Solution: yes |
In this task you will be given a list of dictionaries. A dictionary is a set of key-value pairs, where each key is unique and has a value associated with that key. You should sort the list of dictionaries from smallest to largest by their 'first' key. If there is two dictionaries with the same 'first' value then sort them by their 'second' key. Negative numbers should come before positive numbers.
One example: [{'first': 8, 'second': 7}, {'first': -7, 'second': -2}, {'first': 8, 'second': 2}]
Solution is here: [{'first': -7, 'second': -2}, {'first': 8, 'second': 2}, {'first': 8, 'second': 7}]
Explanation: The two dictionaries that had the same 'first' value were sorted by their 'second' value and the smaller one was listed first. So this is a good example.
Now, solve this: [{'first': -73, 'second': 40}, {'first': 62, 'second': -50}, {'first': -62, 'second': 45}, {'first': -95, 'second': -69}]
Solution: | [{'first': -95, 'second': -69}, {'first': -73, 'second': 40}, {'first': -62, 'second': 45}, {'first': 62, 'second': -50}] |
In this task you will be given a string that only contains single digit numbers spelled out. The input string will not contain spaces between the different numbers. Your task is to return the number that the string spells out. The string will spell out each digit of the number for example '1726' will be 'oneseventwosix' instead of 'one thousand seven hundred six'.
Example: twotwoonesixzeronine
Example solution: 221609
Example explanation: The string is properly converted into a number based on the spelling of each digit. The string started with 'twotwo' therefore the number also started with '22'. This is a good example.
Problem: oneonetwosevenoneeightzerofourfiveninezeroone
| Solution: 112718045901 |
In this task, you are given two strings A,B. You must perform the following operations to generate the required output list: (i) Find the longest common substring in the strings A and B, (ii) Convert this substring to all lowercase and sort it alphabetically, (iii) Replace the substring at its respective positions in the two lists with the updated substring.
One example: bYubMFxyTqR, AcDbMFxSnI
Solution is here: bYubfmxyTqR, AcDbfmxSnI
Explanation: Here, 'bMFx' is the longest common substring in both the input strings 'bYubMFxyTqR' and 'AcDbMFxSnI'. Sorting it and converting to lowercase gives 'bfmx'. Replacing 'bfmx' instead of 'bMFx' in the two strings gives 'bYubfmxyTqR' and 'AcDbfmxSnI'
Now, solve this: nabsCarSYnjaeUmJA, GIMbsCarSYnjlkoFQea
Solution: | naabcjnrssyaeUmJA, GIMabcjnrssylkoFQea |
Instructions: 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.
Input: Honduras
Output: | Central America |
In this task, you will be given a list of numbers. The goal is to divide all the numbers in the list by a constant such that the sum of the resulting list is 1. The output should be rounded to 3 decimals.
Example: [1, 2, 3]
Example solution: [0.167, 0.333, 0.500]
Example explanation: The output list sums to 1.0 and has the same weight as the input 0.333 is twice as large as 0.167, .5 is 3 times as large as 0.167, and 0.5 is 1.5 times as large as 0.333. This is a good example.
Problem: [113.564, -24.778, 28.792, 144.993, -63.973, 125.941, -56.14, -85.393]
| Solution: [ 0.621 -0.135 0.157 0.792 -0.35 0.688 -0.307 -0.467] |
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.
--------
Question: Command: round_eq { avg { all_rows ; for } ; 31 }, interpretation: select the row whose points record of all rows is 2nd maximum . the name record of this row is angelika buck / erich buck .
Answer: no
Question: Command: less { hop { filter_eq { all_rows ; location ; arnhem } ; date ( from ) } ; hop { filter_eq { all_rows ; location ; nijmegen } ; date ( from ) } }, interpretation: select the rows whose no record is arbitrary . the number of such rows is 11 .
Answer: no
Question: Command: eq { count { filter_eq { all_rows ; relationship ; mac taylor } } ; 2 }, interpretation: select the rows whose rank record is less than or equal to 10 . the number of such rows is 8 .
Answer: | no
|
Adverse drug reactions are appreciably harmful or unpleasant reactions resulting from an intervention related to the use of medical products, which predicts hazard from future administration and warrants prevention or specific treatment, or alteration of the dosage regimen, or withdrawal of the product. Given medical case reports extracted from MEDLINE, the task is to classify whether the case report mentions the presence of any adverse drug reaction. Classify your answers into non-adverse drug event and adverse drug event.
Example: A case is reported of a child with fatal pulmonary fibrosis following BCNU therapy.
Example solution: adverse drug event
Example explanation: Here, the child is facing some trouble after undergoing a particular therapy, thereby causing an adverse effect of the therapy.
Problem: She had been treated for pulmonary tuberculosis seven years prior to admission.
| Solution: non-adverse drug event |
In this task you will be given an arithmetic operation and you have to find its answer. The operators '+' and '-' have been replaced with new symbols. Specifically, '+' has been replaced with the symbol '@' and '-' with the symbol '#'. You need to perform the operations in the given equation return the answer
Example: 6 @ 17
Example solution: 23
Example explanation: Here, '@' represents the addition operation. So, the answer is 23 (6+17=23).
Problem: 2553 # 2781 # 5327 # 1413 # 1000 @ 3131
| Solution: -4837 |
Detailed Instructions: In this task you will be given a list of numbers and you should remove all duplicates in the list. If every number is repeated in the list an empty list should be returned. Your list should be numbers inside brackets, just like the given list.
Q: [3, 2, 5, 0, 1, 3]
A: | [2, 5, 0, 1] |
Part 1. Definition
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.
Part 2. Example
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
Answer: 1
Explanation: Query correctly extracts data for male spouse of M2
Part 3. Exercise
Query: SELECT count(*) WHERE {
?x0 ns:film.editor.film ?x1 .
?x0 ns:people.person.nationality ns:m.0d0vqn .
?x1 ns:film.film.prequel ?x2 .
?x2 ns:film.film.prequel M1 .
FILTER ( M2 != ?x0 ) .
M2 ns:people.person.gender ns:m.05zppz .
M2 ns:people.person.sibling_s/ns:people.sibling_relationship.sibling|ns:fictional_universe.fictional_character.siblings/ns:fictional_universe.sibling_relationship_of_fictional_characters.siblings ?x0
} Question: Was a film 's prequel edited by M0
Answer: | 0 |
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.
Ex Input:
I_RUN I_TURN_RIGHT I_RUN I_TURN_RIGHT I_RUN I_TURN_RIGHT I_RUN
Ex Output:
run right thrice after run
Ex Input:
I_TURN_LEFT I_WALK I_TURN_LEFT I_WALK I_TURN_LEFT I_WALK I_TURN_LEFT I_WALK I_TURN_LEFT I_WALK I_TURN_LEFT I_WALK I_TURN_LEFT I_WALK I_TURN_LEFT I_WALK I_RUN
Ex Output:
run after walk around left twice
Ex Input:
I_TURN_LEFT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT
Ex Output:
| turn left and turn around right twice
|
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.
Problem:Query: SELECT count(*) WHERE {
?x0 ns:organization.organization_founder.organizations_founded M0 .
?x1 a ns:film.cinematographer .
M2 ns:film.film.starring/ns:film.performance.actor ?x0 .
M2 ns:film.film.starring/ns:film.performance.actor ?x1 .
M2 ns:film.film.starring/ns:film.performance.actor M3
} Question: Did M2 star M0 's founder , star M3 , and star a cinematographer
Solution: | 1 |
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.
Input: Consider Input: Command: most_eq { all_rows ; venue ; lansdowne road , dublin , ireland }, interpretation: the sum of the gold record of all rows is 36 .
Output: no
Input: Consider Input: Command: round_eq { avg { all_rows ; win % } ; 505 }, interpretation: select the rows whose episodes record is less than 40 . there is only one such row in the table . the season no record of this unqiue row is 1 .
Output: no
Input: Consider Input: Command: eq { hop { argmax { all_rows ; home team score } ; home team } ; sydney }, interpretation: select the row whose home team score record of all rows is maximum . the home team record of this row is sydney .
| Output: yes
|
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.
Q: The Eagle is a poorly rated moderate price Italian food coffee shop. It is not child friendly and it is located in riverside by Burger King.
A: | name[The Eagle], eatType[coffee shop], food[Italian], priceRange[moderate], customer rating[1 out of 5], area[riverside], familyFriendly[no], near[Burger King] |
In this task you will be given a list of integers. A list contains numbers separated by a comma. You need to round every integer to the closest power of 2. A power of 2 is a number in the form '2^n', it is a number that is the result of multiplying by 2 n times. The following are all powers of 2, '2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096'. If an integer is exactly in equally far from two different powers of 2 then you should output the larger power of 2. The output should be a list of integers that is the result of rounding each integer int the input list to the closest power of 2. The output should include a '[' to denote the start of the output list and ']' to denote the end of the output list.
Input: Consider Input: [48, 1447, 1432, 3090, 20, 80, 2, 84, 1232, 1585, 3846, 24, 39, 2, 38]
Output: [64, 1024, 1024, 4096, 16, 64, 2, 64, 1024, 2048, 4096, 32, 32, 2, 32]
Input: Consider Input: [174, 616, 2159, 2455, 13, 30, 3, 12, 1427, 4877, 2660, 12, 56, 4]
Output: [128, 512, 2048, 2048, 16, 32, 4, 16, 1024, 4096, 2048, 16, 64, 4]
Input: Consider Input: [29, 791, 2187, 3399, 7, 53, 3, 154, 1434, 2999, 2036, 17, 30]
| Output: [32, 1024, 2048, 4096, 8, 64, 4, 128, 1024, 2048, 2048, 16, 32]
|
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: Last month I dropped off my oldest child at a university that is 7 hours away from my house. The whole family came along for the drop-off. We had a great time driving to the university. We talked about so many issues, such as how to take a show in a shared bathroom to how to get the most out of going to college. Once we got to the campus, we participated in all the activity on campus. We met the roommate. We explored the whole campus and met so many interesting people. The best part of the day was when my child told us how grateful she is to us for being so supportive of her with her life choices. It was such a bitter-sweet moment. I would never forget this day. I know that I will miss my child a lot. I got a great satisfaction knowing my child made the right choice for college. I think my husband and I did a good job raising her. I will always be grateful to have a wonderful child like her. I would not even take anything for granted.
A: | recalled |
In this task you will be given a list of dictionaries. A dictionary is a set of key-value pairs, where each key is unique and has a value associated with that key. You should sort the list of dictionaries from smallest to largest by their 'first' key. If there is two dictionaries with the same 'first' value then sort them by their 'second' key. Negative numbers should come before positive numbers.
One example: [{'first': 8, 'second': 7}, {'first': -7, 'second': -2}, {'first': 8, 'second': 2}]
Solution is here: [{'first': -7, 'second': -2}, {'first': 8, 'second': 2}, {'first': 8, 'second': 7}]
Explanation: The two dictionaries that had the same 'first' value were sorted by their 'second' value and the smaller one was listed first. So this is a good example.
Now, solve this: [{'first': 30, 'second': 62}, {'first': 8, 'second': 52}, {'first': 2, 'second': 63}, {'first': 46, 'second': 79}, {'first': -35, 'second': -86}, {'first': -29, 'second': 91}, {'first': -19, 'second': -28}]
Solution: | [{'first': -35, 'second': -86}, {'first': -29, 'second': 91}, {'first': -19, 'second': -28}, {'first': 2, 'second': 63}, {'first': 8, 'second': 52}, {'first': 30, 'second': 62}, {'first': 46, 'second': 79}] |
Indicate with `Yes` if the given question involves the provided reasoning `Category`. Indicate with `No`, otherwise. We define five categories of temporal reasoning. First: "event duration" which is defined as the understanding of how long events last. For example, "brushing teeth", usually takes few minutes. Second: "transient v. stationary" events. This category is based on the understanding of whether an event will change over time or not. For example, the sentence "he was born in the U.S." contains a stationary event since it will last forever; however, "he is hungry" contains a transient event since it will remain true for a short period of time. Third: "event ordering" which is the understanding of how events are usually ordered in nature. For example, "earning money" usually comes before "spending money". The fourth one is "absolute timepoint". This category deals with the understanding of when events usually happen. For example, "going to school" usually happens during the day (not at 2 A.M). The last category is "frequency" which refers to how often an event is likely to be repeated. For example, "taking showers" typically occurs ~5 times a week, "going to Saturday market" usually happens every few weeks/months, etc.
Sentence: The Portuguese Crown, delighted with its first important discovery, immediately embarked on a program of colonization.
Question: Do the original colonies still exist?
Category: Transient v. Stationary. | Yes. |
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.
Example: [2,5,1,4],[2,5,8,4,2,0]
Example solution: [2,4,5]
Example explanation: The elements 2,4, and 5 are in both lists. This is a good example.
Problem: [6, 5, 10, 9, 8, 5, 9, 10, 10, 1] , [3, 2, 5, 9, 10, 7, 6, 9, 7, 7]
| Solution: [5, 6, 9, 10] |
Detailed Instructions: In this task, you will be given a list of numbers. The goal is to divide all the numbers in the list by a constant such that the sum of the resulting list is 1. The output should be rounded to 3 decimals.
Q: [164.047, -4.184, -29.645, -94.018, 246.771, 14.899, 187.587, 129.264, 187.687]
A: | [ 0.204 -0.005 -0.037 -0.117 0.308 0.019 0.234 0.161 0.234] |
In this task you will be given a list of integers. You should find the minimum absolute difference between 2 integers in the list. The absolute difference is the absolute value of one integer subtracted by another. The output should be a single integer which is the smallest possible absolute distance.
Example: [9, 40, -33, 12, 17, -32, 40]
Example solution: 0
Example explanation: The minimum absolute difference is 0 because '40 - 40 = 0' and '40' appears in the list twice. So this is a good example.
Problem: [5, 66, 71, -48, -2, 3, -80]
| Solution: 2 |
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.
Example: [2,5,1,4],[2,5,8,4,2,0]
Example solution: [2,4,5]
Example explanation: The elements 2,4, and 5 are in both lists. This is a good example.
Problem: [1, 9, 5, 5, 3, 6, 6] , [7, 4, 4, 6, 9, 7, 6]
| Solution: [6, 9] |
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: Niue
Example Output: Polynesia
Example Input: Canada
Example Output: North America
Example Input: Northern Mariana Islands
Example Output: | Micronesia
|
In this task you will be given a list of integers. A list contains numbers separated by a comma. You need to round every integer to the closest power of 2. A power of 2 is a number in the form '2^n', it is a number that is the result of multiplying by 2 n times. The following are all powers of 2, '2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096'. If an integer is exactly in equally far from two different powers of 2 then you should output the larger power of 2. The output should be a list of integers that is the result of rounding each integer int the input list to the closest power of 2. The output should include a '[' to denote the start of the output list and ']' to denote the end of the output list.
Q: [53, 1951, 2799, 783, 20, 59, 3, 74, 135, 4579, 4173]
A: | [64, 2048, 2048, 1024, 16, 64, 4, 64, 128, 4096, 4096] |
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.
Example input: I want you now to imagine a wearable robot that gives you superhuman abilities, or another one that takes wheelchair users up standing and walking again.
Example output: Želim da sada zamislite nosiv robot koji vam daje nadljudske sposobnosti, ili neki drugi koji omogučuje korisnicima invalidskih kolica da stoje i ponovno hodaju.
Example explanation: The translation correctly preserves the characters in Croatian.
Q: So I'm trying to bridge this gap between this idea and this melody.
A: | Tako nastojim premostiti taj jaz između te ideje i te melodije. |
Given the task definition, example input & output, solve the new input case.
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.
Example: crystal
Output: rock
A crystal is a type of rock, so rock is a valid hypernym output.
New input case for you: cockroach
Output: | pest |
In this task, you are given two strings A,B. You must perform the following operations to generate the required output list: (i) Find the longest common substring in the strings A and B, (ii) Convert this substring to all lowercase and sort it alphabetically, (iii) Replace the substring at its respective positions in the two lists with the updated substring.
Example: bYubMFxyTqR, AcDbMFxSnI
Example solution: bYubfmxyTqR, AcDbfmxSnI
Example explanation: Here, 'bMFx' is the longest common substring in both the input strings 'bYubMFxyTqR' and 'AcDbMFxSnI'. Sorting it and converting to lowercase gives 'bfmx'. Replacing 'bfmx' instead of 'bMFx' in the two strings gives 'bYubfmxyTqR' and 'AcDbfmxSnI'
Problem: jzdhyRbfdBreEKgtmZrJtqyAikQXNUU, LnmFVdlbfdBreEKgtmZrJtqhZuBRjHo
| Solution: jzdhyRbbdeefgjkmqrrttzyAikQXNUU, LnmFVdlbbdeefgjkmqrrttzhZuBRjHo |
Detailed Instructions: 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.
Q: Context: 'I understand that atleast you are going to be close to water, that will be our most important thing since we will be thirsty and you know kids and trying to tell them to ration the water...LOL' 'for sure thats not going to work to well ' 'are you hiking alone?'
Utterance: 'no i will have my husband and my dog with me'
A: | No |
Given a premise, an initial context, an original ending, and a counterfactual context, the task is to generate a new story ending aligned with the counterfactual context and as close to the original ending as possible. Each instance consists of a five-sentence story. The premise is the first sentence of a story, and the second sentence, which is the initial context, provides more information about the story's context and the story's general plot. The original ending is the last three sentences of the story. Also, a counterfactual context is a slight modification to the initial context. You should write a new story ending that edits the original story ending as little as possible to regain coherence with the counterfactual context. To sum up, you should write the last three sentences of a story based on the premise(first sentence) and the counterfactual context(second sentence) of the story.
Q: Premise: Alan's class watched a video about world hunger.
Initial Context: Alan was moved and really wanted to do something to help.
Original Ending: He started a local food bank and began providing meals to the needy. He knew it wasn't fixing the world, but it was a step. Within a month he had helped provide over a thousand meals!
Counterfactual Context: Alan was moved and really wanted to make videos.
A: | He made a video about a local food bank and watched them provide meals to the needy. He knew it wasn't fixing the world, but it was a step. Within a month the profit from his videos had helped the food bank provide over a thousand meals! |
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'.
One example is below.
Q: twotwoonesixzeronine
A: 221609
Rationale: The string is properly converted into a number based on the spelling of each digit. The string started with 'twotwo' therefore the number also started with '22'. This is a good example.
Q: zeroninefoursixfiveninesixthreeeight
A: | 094659638 |
Detailed Instructions: 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.
Q: Context: 'I could use a little to cook with, But food is my main concern. Is it hot where you will be? ' 'Ya so I could use a lot of water! Would you be willing for me to take one food two water and two firewood? ' 'Since we will have so much food to cook we could probably use the extra firewood too,would you be ok with me taking 2 food and 1 water and 2 firewood?🙂'
Utterance: 'No I'm giving you two of your top items I think it's only fair I get more items. '
A: | No |
Teacher:This task is to find the number of 'For' loops present in the given cpp program.
Teacher: Now, understand the problem? Solve this instance: int count;
void solve(int num,int a,int m)
{
int i;
if(num==1)
{
count++;
return;}
for(i=2;i<=num;i++)
{
if(i>=a&&(num%i)==0)
solve(num/i,i,m+1);
}
}
main()
{
int n,i;
scanf("%d",&n);
for(i=0;i<n;i++)
{
int num,a;
count=0;
scanf("%d",&num);
solve(num,0,1);
printf("%d\n",count);}
}
Student: | 2 |
Detailed Instructions: In this task, you are given music product reviews in German language. The goal is to classify the review as "POS" if the overall sentiment of the review is positive or as "NEG" if the overall sentiment of the review is negative.
Problem:Super . Ich finde das neue Album super.Wer diese Musik nicht mag, muss sie ja nicht kaufen oder hören - man wird dazu ja nicht gezwungen.Es sind einige tolle Lieder drauf. Für Leute die diese Musik mögen, auf jeden Fall kaufenswert!
Solution: | POS |
Definition: In this task, you are given a country name and you need to return the region of the world map that the country is located in. The possible regions that are considered valid answers are: Caribbean, Southern Europe, Eastern Europe, Western Europe, South America, North America, Central America, Antarctica, Australia and New Zealand, Central Africa, Northern Africa, Eastern Africa, Western Africa, Southern Africa, Eastern Asia, Southern and Central Asia, Southeast Asia, Middle East, Melanesia, Polynesia, British Isles, Micronesia, Nordic Countries, Baltic Countries.
Input: Lithuania
Output: | Baltic Countries |
Given a short bio of a person, find the minimal text span containing the date of birth of the person. The output must be the minimal text span that contains the birth date, month and year as long as they are present. For instance, given a bio like 'I was born on 27th of Decemeber 1990, and graduated high school on 23rd October 2008.' the output should be '27th of December 1990'.
[EX Q]: Milena Markovna Kunis was born on August 14, 1983, in Chernivtsi, Ukrainian SSR, in the Soviet Union
[EX A]: August 14, 1983
[EX Q]: Widmark was born December 26, 1914 in Sunrise Township, Minnesota, the son of Ethel Mae (née Barr) and Carl Henry Widmark
[EX A]: December 26, 1914
[EX Q]: Yelchin was born on March 11, 1989, in Leningrad, Russian SFSR, Soviet Union (now Saint Petersburg, Russia)
[EX A]: | March 11, 1989
|
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.
One example: I_TURN_LEFT I_JUMP
Solution is here: jump left
Explanation: If the agent turned to the left and jumped, then the agent jumped to the left.
Now, solve this: I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_LEFT I_WALK I_TURN_LEFT I_WALK I_TURN_LEFT I_WALK I_TURN_LEFT I_WALK I_TURN_LEFT I_WALK I_TURN_LEFT I_WALK I_TURN_LEFT I_WALK I_TURN_LEFT I_WALK
Solution: | turn opposite right thrice and walk around left twice |
Given a sequence of actions to navigate an agent in its environment, provide the correct command in a limited form of natural language that matches the sequence of actions when executed. Commands are lowercase and encapsulate the logic of the sequence of actions. Actions are individual steps that serve as the building blocks for a command. There are only six actions: 'I_LOOK', 'I_WALK', 'I_RUN', 'I_JUMP', 'I_TURN_LEFT', and 'I_TURN_RIGHT'. These actions respectively align with the commands 'look', 'walk', 'run', 'jump', 'turn left', and 'turn right'. For commands, 'left' and 'right' are used to denote the direction of an action. opposite turns the agent backward in the specified direction. The word 'around' makes the agent execute an action while turning around in the specified direction. The word 'and' means to execute the next scope of the command following the previous scope of the command. The word 'after' signifies to execute the previous scope of the command following the next scope of the command. The words 'twice' and 'thrice' trigger repetition of a command that they scope over two times or three times, respectively. Actions and commands do not have quotations in the input and output.
Q: I_TURN_LEFT I_LOOK I_TURN_RIGHT I_LOOK
A: | look left and look right |
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: all
Solution: | tall |
Detailed Instructions: 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.
Q: [84, 14, 53, 27, -83, -50, -77]
A: | 6 |
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.
Input: Consider Input: That mood being TOTALLY wrong for him, I got him in private and asked if he had problems with me , or anything else going on at work.
Output: Invalid
Input: Consider Input: We Americans are allowed to defend this sanctity by DIVINE RIGHT.
Output: Invalid
Input: Consider Input: Unless there can be solid uncontestable evidence shown that the death penalty is significant in deterring crime, this cannot be used as an argument for the death penalty.
| Output: Valid
|
Given a negotiation between two participants, answer 'Yes' if both participants agree to the deal, otherwise answer 'No'.
Example input: THEM: i need the hats and the ball YOU: i can give you one hat and the ball. i want 2 books and 1 hat THEM: i have to have both hats and the ball or both hats and a book to make a deal YOU: sorry, i won`t make a deal without a hat THEM: if you take 1 hat i have to have everything else YOU: sorry can`t do THEM: no deal YOU: yesh no deal, sorry THEM: no deal YOU: no deal.
Example output: No
Example explanation: Both participants do not agree to the deal, so the answer is No.
Q: THEM: let's go 50 / 50... i want two books and one ball YOU: how about i take both basketballs and you have the rest? THEM: kool. good deal.
A: | Yes |
Given the task definition and input, reply with output. Given a premise, an initial context, an original ending, and a counterfactual context, the task is to generate a new story ending aligned with the counterfactual context and as close to the original ending as possible. Each instance consists of a five-sentence story. The premise is the first sentence of a story, and the second sentence, which is the initial context, provides more information about the story's context and the story's general plot. The original ending is the last three sentences of the story. Also, a counterfactual context is a slight modification to the initial context. You should write a new story ending that edits the original story ending as little as possible to regain coherence with the counterfactual context. To sum up, you should write the last three sentences of a story based on the premise(first sentence) and the counterfactual context(second sentence) of the story.
Premise: Ivan had a simple math test.
Initial Context: So he thought he could do every problem as quickly as possible.
Original Ending: He finished in a few minutes and confidently turned in his test. And he was in a good mood the whole day. But when he got his test score back, he was devastated.
Counterfactual Context: He aced it.
| He finished in a few minutes and confidently turned in his test. And he was in a good mood the whole day. When he got his test score back, he was ecstatic. |
Subsets and Splits